From 942baaedc1001cdb0b4eaea3b2f3cac32d17b019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Leli=C3=A8vre?= Date: Thu, 24 Sep 2020 18:57:45 +0200 Subject: [PATCH 1/2] Fixed wizard DXR setup for non-compatible systems --- .../Editor/Wizard/HDWizard.Configuration.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/Editor/Wizard/HDWizard.Configuration.cs b/com.unity.render-pipelines.high-definition/Editor/Wizard/HDWizard.Configuration.cs index d19a5aeca40..4c8c9fb492d 100644 --- a/com.unity.render-pipelines.high-definition/Editor/Wizard/HDWizard.Configuration.cs +++ b/com.unity.render-pipelines.high-definition/Editor/Wizard/HDWizard.Configuration.cs @@ -633,7 +633,8 @@ void CheckPersistantNeedReboot() bool IsDXRAssetCorrect() => HDRenderPipeline.defaultAsset != null - && HDRenderPipeline.defaultAsset.renderPipelineRayTracingResources != null; + && HDRenderPipeline.defaultAsset.renderPipelineRayTracingResources != null + && SystemInfo.supportsRayTracing; void FixDXRAsset(bool fromAsyncUnused) { if (!IsHdrpAssetUsedCorrect()) @@ -641,6 +642,8 @@ void FixDXRAsset(bool fromAsyncUnused) HDRenderPipeline.defaultAsset.renderPipelineRayTracingResources = AssetDatabase.LoadAssetAtPath(HDUtils.GetHDRenderPipelinePath() + "Runtime/RenderPipelineResources/HDRenderPipelineRayTracingResources.asset"); ResourceReloader.ReloadAllNullIn(HDRenderPipeline.defaultAsset.renderPipelineRayTracingResources, HDUtils.GetHDRenderPipelinePath()); + if (!SystemInfo.supportsRayTracing) + Debug.LogError("Your hardware and/or OS don't support DXR!"); } bool IsDXRScreenSpaceShadowCorrect() From 09cd65600dd793bf124e404094f4930b653ada08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Leli=C3=A8vre?= Date: Thu, 24 Sep 2020 19:00:41 +0200 Subject: [PATCH 2/2] Updated changelog --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index d2cd053a6af..28c31f76ff3 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -83,6 +83,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed SSGI compilation issues on PS4. - Fixed "Screen position out of view frustum" error when camera is on exactly the planar reflection probe plane. - Workaround issue that caused objects using eye shader to not be rendered on xbox. +- Fixed wizard DXR setup on non-DXR compatible devices. ### Changed - Preparation pass for RTSSShadows to be supported by render graph.