Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
0
Found in
2019.4
2020.1
2020.2
2021.1
2021.2
Issue ID
1318610
Regression
No
Having a struct in the global CBuffer makes OpenGLCore and GLES3 targets not report reflection for the CBuffer
Reproduction steps:
1. Add the attached shader "GLES3_GLCore_missing_Globals_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 tick "Custom" and "OpenGLCore" or "GLES3x"
4. Click the "Compile and show code" button
Expected result:
The "Compile and show code" output for OpenGLCore and GLES3 contains the 'Constant Buffer "$Globals"' reflection section
Actual result:
No reflection for the Globals constant buffer is in the "Compile and show code" output
Note: if the usage of "myStruct" is commented out from the shader, the 'Constant Buffer "$Globals"' section will appear in the "Compile and show code" output
Reproducible in: 2021.2.0a7, 2021.1.0b9, 2020.2.6f1, 2020.1.17f1, 2019.4.21f1
Couldn't reproduce in: 2018.4.32f1 (Doesn't output constant buffer information)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Rendering locks up when not looking at a transparent material on Meta Quest 2
- Volumetrics break when using a Custom Pass to create a Thickness Buffer for Alpha Clipping
- All tests are run instead of only the failed ones when the "Rerun Failed" button is pressed
- GameObject is not masked when the "Render PostProcessing Effects" pass executes with a resolved non-MSAA Color target and MSAA DepthStencil target
- [Android] Gfx.WaitForGfxCommandsFromMainThread high performance usage and inconsistency when built Player scene has Canvas GameObject on a specific Project
Add comment