1#version 460 core 2 3struct S { 4 float f; 5 vec4 v; 6}; 7 8in S s; 9 10void main() 11{ 12 interpolateAtCentroid(s.v); 13 bool b1; 14 b1 = anyInvocation(b1); 15 b1 = allInvocations(b1); 16 b1 = 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} 33