yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
2fcdd64e
main
1 2cbuffer nameless { 3float3 anonMember1 ; 4float3x2 m23 ; 5int scalarAfterm23 ; 6float4 anonDeadMember2 ; 7float4 anonMember3 ; 8int scalarBeforeArray ; 9float floatArray [5 ]; 10int scalarAfterArray ; 11float2x2 m22 [9 ]; 12}; 13 14cbuffer c_nameless { 15float3 c_anonMember1 ; 16float3x2 c_m23 ; 17int c_scalarAfterm23 ; 18float4 c_anonDeadMember2 ; 19float4 c_anonMember3 ; 20}; 21 22cbuffer namelessdead { 23int a ; 24}; 25 26struct N1 { 27float a ; 28}; 29 30struct N2 { 31float b ; 32float c ; 33float d ; 34}; 35 36struct N3 { 37N1 n1 ; 38N2 n2 ; 39}; 40 41cbuffer nested { 42N3 foo ; 43} 44 45struct TS { 46int a ; 47int dead ; 48}; 49 50uniform TS s ; 51 52uniform float uf1 ; 53uniform float uf2 ; 54uniform float ufDead3 ; 55uniform float ufDead4 ; 56 57uniform float2x2 dm22 [10 ]; 58 59struct deep1 { 60float2 va [3 ]; 61bool b ; 62}; 63 64struct deep2 { 65int i ; 66deep1 d1 [4 ]; 67}; 68 69struct deep3 { 70float4 iv4 ; 71deep2 d2 ; 72int3 v3 ; 73}; 74 75uniform deep3 deepA [2 ],deepB [2 ],deepC [3 ],deepD [2 ]; 76 77const bool control = true; 78 79void deadFunction () 80{ 81float4 v = anonDeadMember2 ; 82float f = ufDead4 ; 83} 84 85void liveFunction2 () 86{ 87float3 v = anonMember1 ; 88float f = uf1 ; 89} 90 91tbuffer abl { 92float foo1 ; 93} 94 95tbuffer abl2 { 96float foo2 ; 97} 98 99void flizv (in float attributeFloat ,in float2 attributeFloat2 ,in float3 attributeFloat3 ,in float4 attributeFloat4 ,in float4x4 attributeMat4 ) 100{ 101liveFunction2 (); 102 103if (!control ) 104deadFunction (); 105 106float f ; 107int i ; 108if (control ) { 109liveFunction2 (); 110f = anonMember3 .z ; 111f = s .a ; 112f = m23 [1 ].y + scalarAfterm23 ; 113f = c_m23 [1 ].y + c_scalarAfterm23 ; 114f += scalarBeforeArray ; 115f += floatArray [2 ]; 116f += floatArray [4 ]; 117f += scalarAfterArray ; 118f += m22 [i ][1 ][0 ]; 119f += dm22 [3 ][0 ][1 ]; 120f += m22 [2 ][1 ].y ; 121f += foo .n1 .a + foo .n2 .b + foo .n2 .c + foo .n2 .d ; 122f += deepA [i ].d2 .d1 [2 ].va [1 ].x ; 123f += deepB [1 ].d2 .d1 [i ].va [1 ].x ; 124f += deepB [i ].d2 .d1 [i ].va [1 ].x ; 125deep3 d = deepC [1 ]; 126deep3 da [2 ]= deepD ; 127 }else 128f = ufDead3 ; 129 130f += foo1 + foo2 ; 131f += foo2 ; 132 133f += attributeFloat ; 134f += attributeFloat2 .x ; 135f += attributeFloat3 .x ; 136f += attributeFloat4 .x ; 137f += attributeMat4 [0 ][1 ]; 138}