Search Issue Tracker
Fixed
Fixed in 2022.3.10f1, 2023.1.12f1, 2023.2.0b7, 2023.3.0a3, 7000.0.0a1
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
7000.0.0a1
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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.