Search Issue Tracker
Fixed in 2022.3.10f1
Fixed in 2022.3.X, 2023.1.X, 2023.2.X, 2023.3.X, 7000.0.0a1, future release
Won't Fix in 2021.3.X
Votes
0
Found in
2021.3.31f1
2022.3.10f1
2023.1.2f1
2023.2.0a21
2023.3.0a2
Issue ID
UUM-41272
Regression
No
Compute shaders using glsl reserved words fail to compile when using Vulkan Graphics API
Reproduction steps:
1. Open the attached “repro-project“
2. Open the Assets/Test.unity scene
3. Observe the errors in the Console
Reproducible with: 2023.1.2f1, 2023.2.0a21
Could not test with: 2021.3.28f1, 2022.3.4f1 (could not downgrade the project)
Reproduced on: Windows 10 Pro
Notes:
1. Not reproducible on DirectX12 Graphics API
2. The following errors are displayed in the Console:
”Shader error in 'Test': glslang: '' : compilation terminated at kernel ToTex at line 26 (on vulkan)”
”Shader error in 'Test': glslang: 'input' : Reserved word. at kernel ToTex at line 26 (on vulkan)”
”Test.compute: Kernel at index (0) is invalid
UnityEngine.ComputeShader:Dispatch (int,int,int,int)
Test:Start () (at Assets/Test.cs:24)”
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
- Some post-processing volume overrides only update after a refresh when using HDRP
- Video Player glitches when Skip On Drop is enabled
- GameObject movement in Scene view becomes stuttery and intermittently freezes when using non-standard pointers across editor tabs or window boundaries
- Addressables.CheckForCatalogUpdates() always returns 0 when "Only update catalogs manually" is enabled
- VFX Graph forces a lengthy recompilation freeze when exiting Play Mode with a cloned Render Pipeline asset
Resolution Note (2021.3.X):
Backporting this fix would require more time than usual, since some foundational code doesn't exist on this version. Users can work around the bug by not using words reserved in GLSL in their shaders.