Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
0
Found in
2018.4
2019.4
2020.1
2020.2
2021.1
2021.2
Issue ID
1318555
Regression
No
Vulkan shader compilation fails when shader uses an array of structs
Reproduction steps:
1. Add the attached shader "vulkan_struct_array_issue.shader" to a project
2. Select the shader
3. In the shader's Inspector Window select the dropdown next to "Compile and show code" and set "Custom" and "Vulkan"
4. Click the "Compile and show code" button
Expected result:
Shader compiles for Vulkan without errors
Actual result:
The following errors are printed to the Console Window and are added to the Shader Inspector:
"Shader error in 'vulkan_struct_array_issue': glslang: '' : compilation terminated at line 33 (on vulkan)"
"Shader error in 'vulkan_struct_array_issue': glslang: '[' : array index out of range '4' at line 33 (on vulkan)"
Reproducible in: 2021.2.0a7, 2021.1.0b9, 2020.2.6f1, 2020.1.17f1, 2019.4.21f1, 2018.4.32f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Buttons in the Overlay Menu in the Scene View are all gray even if they're activated when Game View is maximized and minimized
- NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
- Editor crashes on PrepareSpriteTilingData when exiting Play mode
Add comment