Skip to content

Commit 4b8bdd7

Browse files
IonutNedelcuUnityEvergreen
authored andcommitted
Fix case UUM-101780.
1 parent e600a15 commit 4b8bdd7

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Raytracing/HDRaytracingManager.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,9 @@ internal void EvaluateRTASDebugView(RenderGraph renderGraph, HDCamera hdCamera)
746746
if (!m_ValidRayTracingState)
747747
return;
748748

749-
using (var builder = renderGraph.AddRenderPass<RTASDebugPassData>("Debug view of the RTAS", out var passData, ProfilingSampler.Get(HDProfileId.RaytracingBuildAccelerationStructureDebug)))
749+
RTASDebugPassData passData;
750+
751+
using (var builder = renderGraph.AddRenderPass<RTASDebugPassData>("Debug view of the RTAS", out passData, ProfilingSampler.Get(HDProfileId.RaytracingBuildAccelerationStructureDebug)))
750752
{
751753
builder.EnableAsyncCompute(false);
752754

@@ -788,10 +790,10 @@ internal void EvaluateRTASDebugView(RenderGraph renderGraph, HDCamera hdCamera)
788790
// Evaluate the debug view
789791
ctx.cmd.DispatchRays(data.debugRTASRT, m_RTASDebugRTKernel, (uint)data.actualWidth, (uint)data.actualHeight, (uint)data.viewCount);
790792
});
791-
792-
// Use the debug texture to do the full screen debug
793-
PushFullScreenDebugTexture(renderGraph, passData.outputTexture, FullScreenDebugMode.RayTracingAccelerationStructure);
794793
}
794+
795+
// Use the debug texture to do the full screen debug
796+
PushFullScreenDebugTexture(renderGraph, passData.outputTexture, FullScreenDebugMode.RayTracingAccelerationStructure);
795797
}
796798

797799
internal static int RayTracingFrameIndex(HDCamera hdCamera, int targetFrameCount = 8)

0 commit comments

Comments
 (0)