Copyright © 2026 Unity Technologies
The Ray Tracing Shader error is expected in the new version. We won't allow to bind texture that has a dimension (e.g. RWTexture2DArray) to a shader resources that has another dimension (e.g. RWTexture2D). This is consistent with other shader types. For example Compute Shaders don't allow this. Also multi_compile is not supported in raytrace shaders. #pragma multi_compile _ STEREO_INSTANCING_ON in RaytracedReflections_URP won't do anything. As a workaround you can create 2 different ray generation shaders, 1 for each type of output - RWTexture2DArray and RWTexture2D and bind the correct render target to the shader resource.
Reproduction steps:
Expected result: No error appears
Actual result: Errors appear in the Console
Ray Tracing Shader "RaytracedRender_URP": Property "RenderTarget" has mismatching output texture dimension (expected 2, got 5). Dispatching ray generation shader "RaytraceRenderRayGeneration" failed!
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Ray Tracing Shader "RaytracedReflections_URP": Property "RenderTarget" has mismatching output texture dimension (expected 2, got 5). Dispatching ray generation shader "ReflectionRayGeneration_Forward" failed!
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Reproduced with: 12.1.6 (2021.3.2f1), 12.1.7 (2021.3.5f1)
Not reproduced with: 10.9.0 (2020.3.36f1), 12.1.6 (2021.3.1f1)
Could not test with: 7.7.1 (2019.4.40f1) (project crashes), 13.1.8 (2022.1.6f1), 14.0.3 (2022.2.0a17) (can’t test due to other errors related to cameraColorTarget)
Reproducible on: Windows 11
Issues you vote on will appear here