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
1318559
Regression
No
Struct reflection is not reported when compiling Vulkan or Metal shaders
Reproduction steps:
1. Add the attached shader "Vulkan_Metal_missing_struct_reflection.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" or Metal
4. Click the "Compile and show code" button
Expected result:
Shader compiles for Vulkan or Metal without errors
Actual result:
Error message "Struct 'myStruct' is not found." is printed to the Console Window and only "Vector4 myStruct.m_Float4 at 0" is present in the "Constant Buffer" reflection part of the compiled output (no struct definition)
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
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
- [RenderingDebugger][InputSystemPackage] Ctrl+Backspace shortcut doesn't work to open the Rendering Debugger when New Input System is in use
- No option to skip video transcoding when launching a Project
- “ValidateSchema Error2” error is thrown in the Player when using IL2CPP Scripting Backend
Add comment