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)”

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

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.