mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-18 00:37:43 +00:00
46413d5780
Constants were generally cached by type opcode, but all structures share the same type opcode (OpTypeStruct), so they need to be cached by type id.
23 lines
247 B
GLSL
23 lines
247 B
GLSL
#version 450
|
|
|
|
precision highp float;
|
|
|
|
struct U {
|
|
mat2 m;
|
|
};
|
|
|
|
struct T {
|
|
mat2 m;
|
|
};
|
|
|
|
struct S {
|
|
T t;
|
|
U u;
|
|
};
|
|
|
|
void main()
|
|
{
|
|
S s1 = S(T(mat2(1.0)), U(mat2(1.0)));
|
|
S s2 = S(T(mat2(1.0)), U(mat2(1.0)));
|
|
}
|