From 37e0e63bde4e41fd61d08fe78cdb55d16383d4a2 Mon Sep 17 00:00:00 2001 From: Julien Ignace Date: Thu, 2 Dec 2021 13:45:35 +0100 Subject: [PATCH 1/2] Fixed a nullref when enabling raycount without ray tracing. --- .../Runtime/RenderPipeline/HDRenderPipeline.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs index 48c52487c45..656eda7e820 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs @@ -89,7 +89,7 @@ internal static HDRenderPipeline currentPipeline /// /// Specifes which ray count value should be returned. /// The approximated ray count for a frame - public uint GetRaysPerFrame(RayCountValues rayValues) { return m_RayCountManager.GetRaysPerFrame(rayValues); } + public uint GetRaysPerFrame(RayCountValues rayValues) { return m_RayCountManager != null ? m_RayCountManager.GetRaysPerFrame(rayValues) : 0; } // Renderer Bake configuration can vary depends on if shadow mask is enabled or no PerObjectData m_CurrentRendererConfigurationBakedLighting = HDUtils.k_RendererConfigurationBakedLighting; From 7ad86cd20a4dfb166fc1bb126c4b640e8ea22829 Mon Sep 17 00:00:00 2001 From: Julien Ignace Date: Thu, 2 Dec 2021 13:47:40 +0100 Subject: [PATCH 2/2] Update 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 fa227471b99..2bd40e26950 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -53,6 +53,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed edges and ghosting appearing on shadow matte due to the shadow being black outside the range of the light (case 1371441). - Fixed the ray tracing fallbacks being broken since an Nvidia Driver Update. - Fixed layer lit shader UI. +- Fixed a nullref when enabling raycount without ray tracing. ## [13.1.2] - 2021-11-05