yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
98e733cb
main
1#version 460 core 2 3struct S { 4float f ; 5vec4 v ; 6}; 7 8in S s ; 9 10void main () 11{ 12interpolateAtCentroid (s .v ); 13bool b1 ; 14b1 = anyInvocation (b1 ); 15b1 = allInvocations (b1 ); 16b1 = allInvocationsEqual (b1 ); 17} 18 19void attExtBad () 20{ 21// ERRORs, not enabled 22 [[dependency_length (1 + 3 )]]for (int i = 0 ;i < 8 ;++ i ) { } 23 [[flatten ]]if (true) { }else { } 24} 25 26#extension GL_EXT_control_flow_attributes : enable 27 28void attExt () 29{ 30 [[dependency_length (-3 )]]do { }while (true);// ERROR, not positive 31 [[dependency_length (0 )]]do { }while (true);// ERROR, not positive 32}