Debian Codegraph @

third_party/spirv-cross/shaders/amd/shader_group_vote.comp

raw
1 #version 450
2 #extension GL_ARB_shader_group_vote : require
3
4 layout (local_size_x = 64) in;
5 layout (std430, binding = 0) buffer inputData
6 {
7 float inputDataArray[];
8 };
9
10 void 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 }