You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compile the HDRP path tracing shader only for the supported d3d platforms
The compilation of the HDRP path tracing shader timeouts on some consoles. The issue can be reproduced just by switching to the PS5 platform.
https://jira.unity3d.com/browse/UUM-72861
Due to hardware/API limitations, the path tracer is only fully functional on d3d platforms right now, so with my PR we only target these platforms.
Copy file name to clipboardExpand all lines: Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/PathTracing/Shaders/PathTracingMain.raytrace
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,9 @@
1
1
// We do not rely on recursion, beyond subsurface scattering
2
2
#pragma max_recursion_depth 2
3
3
4
+
// On some consoles we get a timeout when compiling this, so we only target d3d platforms
5
+
#pragma only_renderers d3d11
6
+
4
7
// SRP/HDRP includes
5
8
#define SHADER_TARGET 50
6
9
// Include and define the shader pass (Required for light cluster code)
0 commit comments