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 (5)

  1. KevLac

    Sep 22, 2025 18:07

    not fixed on 6000.2.4 here the error:
    Shader error in 'Universal Render Pipeline/Particles/Unlit': undeclared identifier '_FOVEATED_RENDERING_NON_UNIFORM_RASTER' at Play/Library/PackageCache/com.unity.render-pipelines.core@e2a954003fc5/ShaderLibrary/FoveatedRendering.hlsl(22) (on metal) Compiling Subshader: 0, Pass: ForwardLit, Vertex program with <no keywords> Platform defines: SHADER_API_MOBILE UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 Disabled keywords: FOG_EXP FOG_EXP2 FOG_LINEAR SHADER_API_GLES30 SHADER_API_GLES31 SHADER_API_GLES32 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_ENABLE_DETAIL_NORMALMAP UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHTMAP_RGBM_ENCODING UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_PBS_USE_BRDF1 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_VIRTUAL_TEXTURING _ALPHAMODULATE_ON _ALPHAPREMULTIPLY_ON _ALPHATEST_ON _COLORADDSUBDIFF_ON _COLORCOLOR_ON _COLOROVERLAY_ON _DISTORTION_ON _EMISSION _FADING_ON _FLIPBOOKBLENDING_ON _NORMALMAP _SOFTPARTICLES_ON

  2. unity_9B83593C55C9E6067C37

    Mar 24, 2025 12:40

    I think I have this issue as well on metal. Pink material using this shader:

    Shader error in 'Universal Render Pipeline/Particles/UnlitStencil': undeclared identifier '_FOVEATED_RENDERING_NON_UNIFORM_RASTER'

    Unity 6000.0.28f1

  3. kirilledelman

    Aug 09, 2024 19:13

    Despite "fixed" status, not fixed in 14.0.11 in Unity 2022.3.37f1

  4. 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

  5. bml

    May 24, 2024 06:10

    Showing up on 6000.0.3f1 with all three rendering paths.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.