Search Issue Tracker
Fixed in 5.4.0
Votes
0
Found in
5.4.0b10
Issue ID
780831
Regression
No
[GLCore][HLSL2GLSL] Using uniform naming t0 or other generated ones results in error
Info:
Using sames names that a generated in HLSL2GLSL translation results in redaclaration. For example glsl shaders in unit uses temp names t0, t1 ... tx if you declare t0 in you shaders it results in error.
Project Steps:
1. Open project.
2. You should get compute shader error:
"
GLSL compilation failed:
0(24) : error C1038: declaration of "t0" conflicts with previous declaration at 0(8)
0(30) : error C7563: assignment to uniform t0
0(30) : error C7623: implicit narrowing of type from "vec4" to "float"
0(31) : error C1031: swizzle mask element not present in operand "ww"
0(33) : error C1031: swizzle mask element not present in operand "w"
0(33) : error C7563: assignment to uniform t0
0(35) : error C7563: assignment to uniform t0
0(36) : error C1031: swizzle mask element not present in operand "xyz"
0(37) : error C1031: swizzle mask element not present in operand "w"
"
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Add comment