Search Issue Tracker
By Design
Votes
0
Found in
2020.3.42f1
2021.3.15f1
2022.1.24f1
2022.2.0f1
2023.1.0a22
Issue ID
UUM-21412
Regression
No
Data type compiles to uint when declaring a struct in a shader
Steps to reproduce:
1. Open the “NMShader” project
2. Open the “KeepItReal” shader in Assets/Shaders
3. Observe the code where the struct “MyStruct” is
4. Select the “KeepItReal” shader
5. In the Inspector menu press the arrow on the right side of “Compile and show code” and select both Metal and GLES3x
6. In the Inspector menu press “Compile and show code”
7. Observe the compiled code where the “MyBuffer_Type” struct is
Expected result: The data type stays the same as in the not compiled shader
Actual result: A shader with declared struct compiles data types to uint
Reproducible with: 2020.3.42f1, 2021.3.15f1, 2022.1.24f1, 2022.2.0f1, 2023.1.0a22
Reproduced on: macOS Monterey 12.2 (Intel)
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
- [URP][Tutorial] Universal 3D Sample tutorial issues
- Gradle error: "...Unexpected error during link..." is thrown when building for Android and targeting API Level 34
- Crash on ReplaceTextureData when rapidly changing light intensity
- Uneven lighting is seen on the GameObjects when Sky Occlusion is enabled
- Editor freezes and a "Failed to present D3D11 swapchain" error appears when toggling loop time option and entering Play Mode
Resolution Note:
Works as intended.