yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

John KessenichSPV: Fix #1258: cache constant structs by id, not opcode.46413d57

main
247 B22 linesraw
1#version 450
2
3precision highp float;
4
5struct U {
6    mat2 m;
7};
8
9struct T {
10    mat2 m;
11};
12
13struct S {
14    T t;
15    U u;
16};
17
18void main()
19{
20    S s1 = S(T(mat2(1.0)), U(mat2(1.0)));
21    S s2 = S(T(mat2(1.0)), U(mat2(1.0)));
22}