1#version 450 2#extension GL_ARB_shader_group_vote : require 3 4layout (local_size_x = 64) in; 5layout (std430, binding = 0) buffer inputData 6{ 7 float inputDataArray[]; 8}; 9 10void main () 11{ 12 float thisLaneData = inputDataArray [gl_LocalInvocationID.x]; 13 bool laneActive = (thisLaneData > 0); 14 15 bool allInvocations = allInvocationsARB(laneActive); 16 bool anyInvocations = anyInvocationARB(laneActive); 17 bool allInvocationsEqual = allInvocationsEqualARB(laneActive); 18} 19