Unity Issue Tracker - Entities Graphics Occlusion shader throws errors when building the project
Fixed
UUM-21617
Entities Graphics Occlusion shader throws errors when building the project
Unity: Culling
BOC
Fixed
2023.1.X
2022.2.X
Fix is available in Entities Graphics 1.0.8
Could not verify with 2023.2 due to a known issue.
Fix was verified with 2022.2.19f1 and Entities Graphics 1.0.8
Fix is available in Entities Graphics 1.0.8
Fix was verified with 2022.2.19f1 and Entities Graphics 1.0.8
How to reproduce:
1. Open the attached “repro-project.zip“ project
2. Build the project
3. Observe the Console
Expected result: The Build is finished.
Actual result: The Build is interrupted and errors are thrown in the Console.
Reproducible with: 2022.2.1f1 (1.0.0-pre.15), 2023.1.0a23 (1.0.0-pre.15)
Could not test with: 2020.3.42f1, 2021.3.15f1 (Entities-Graphics is not supported)
Reproducible on: Windows 10, macOS 11.6.5 (Intel)
Errors:
Shader error in 'Hidden/OcclusionDebugOccluders': 'UnitySetupInstanceID': no matching 1 parameter function at line 62 (on d3d11)
Shader error in 'Hidden/OcclusionDebugOccluders': invalid subscript 'instanceID' at line 62 (on d3d11)
Notes:
The project uses the occlusion define in Project Settings > Player > Scripting Define Symbols
The project has the MockHMD package installed
and enabled in Project Settings > XR Plugin Management > Desktop tab
The project has openGL included in the API list for macOS / Windows in Project Settings > Player > Other Settings
No repro when:
The MockHMD package is not installed
The openGL core is removed from the API list and then the editor restart
Still repros when:
Project Settings > URP Global Settings > Strip Debug Variants is ON
occlusion define removed from project settings
either option for the render mode dropdown in Project Settings > XR Plugin Management > MockHMD
Project Settings > XR Plugin Management > Initialise on Startup is OFF
Or, MockHMD is disabled in the plugin providers list
Prioritise and Follow this issue
Have a workaround or additional info about this issue?