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
- Unity Events added to a ScriptableObject are not invoked if they are added in Edit mode and their Call State is set to "Runtime Only"
- The Visual Effect GPU Event is forced into sleep until another Event is sent when the visual effect consists of two particle systems that communicate with Trigger Event set to On Die
- Nativeplugin Vulkan image gets deleted while in use and AccessTexture returns an invalid texture causing a crash or corruption when QualitySettings.anisotropicFiltering is called
- Error "DllNotFoundException: __Internal assembly:<unknown assembly> type:<unknown type> member:(null)" when attaching a managed debugger for the build of a specific project with Mono Scripting Backend
- Unable to select UI Toolkit Foldout element when using a gamepad controller
Resolution Note:
Works as intended.