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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Add comment