Search Issue Tracker
Fixed
Fixed in 2022.3.36f1, 6000.0.9f1, 7000.0.0a14
Votes
14
Found in
2022.3.22f1
2023.2.16f1
6000.0.0b13
6000.1.0a7
7000.0.0a1
Issue ID
UUM-67560
Regression
Yes
"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+
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
Comments (3)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Terrain Tree cast Realtime and Baked shadows simultaneously when "Mixed" Light mode and "Subtractive" Baked Illumination is used in Edit mode
- OnPostprocessAllAssets() is not called for a modified Prefab when another Asset is set Dirty in the same callback
- [Android] UIToolkit ClickEvent is fired when the device is rotated
- Compilation errors occur when "uintBitsToFloat(int)" gets used in OpenGLES
- User Reporting does not send reports when Managed Stripping Level is set to Low or higher
kirilledelman
Aug 09, 2024 19:13
Despite "fixed" status, not fixed in 14.0.11 in Unity 2022.3.37f1
Jonny-Roy
Jul 02, 2024 07:17
I get this error in 2022.3.35f1 regardless of rendering path.
Temporary work around was adding:
#include_with_pragmas "Packages/com.unity.render-pipelines.core/ShaderLibrary/FoveatedRenderingKeywords.hlsl"
Just after the vert Pragma
bml
May 24, 2024 06:10
Showing up on 6000.0.3f1 with all three rendering paths.