"undeclared identifier '_FOVEATED_RENDERING_NON_UNIFORM_RASTER" error is thrown when the "FoveatedRenderingKeywords.hlsl" file is not included in a custom shader and the Rendering Path is set to Forward+
Unity: Universal RP
Fixed
6.0.X
2022.3.X
2022.3.18f1 onwards
Won't Fix
6.1.X
2023.2.X
2023.2.7f1 onwards
Already fixed in 6000.0.9f1
Cancelling this 2023.2 tech release issue since the support for this release has come to end of life. Cancelling this 2023.2 port case does not affect any LTS or Unity 6 Beta/Preview that remain open.
Reproduction steps:
1. Open the attached "Test20233URP" project
2. Open the "New Scene" scene
3. Observe the Console logs
Expected results: No "undeclared identifier '_FOVEATED_RENDERING_NON_UNIFORM_RASTER" errors are thrown and the shader compiles
Actual results: "undeclared identifier '_FOVEATED_RENDERING_NON_UNIFORM_RASTER" errors are thrown and the shader does not compile
Reproducible with: 2022.3.22f1, 2023.2.16f1, 2023.3.0b3, 6000.0.0b13
Not reproducible with: 2023.3.0b2
Could not test with: 2021.3.36f1 (Forward+ does not exist)
Reproducible on: macOS 12.6.7
Not reproducible on: Windows 11 Pro
Notes:
When the Rendering Path is set to "Forward" or "Deffered", the error is not thrown and the shader compiles properly
The compilation errors of scripts in 2022.3 and 2023.2 can be ignored as the issue with the shader throwing the error is still apparent in the Scene view
Prioritise and Follow this issue
Have a workaround or additional info about this issue?