Skip to content

Commit 8e3c705

Browse files
pmavridisEvergreen
authored andcommitted
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.
1 parent 4a4aa11 commit 8e3c705

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/PathTracing/Shaders/PathTracingMain.raytrace

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// We do not rely on recursion, beyond subsurface scattering
22
#pragma max_recursion_depth 2
33

4+
// On some consoles we get a timeout when compiling this, so we only target d3d platforms
5+
#pragma only_renderers d3d11
6+
47
// SRP/HDRP includes
58
#define SHADER_TARGET 50
69
// Include and define the shader pass (Required for light cluster code)

0 commit comments

Comments
 (0)