RetroArch/deps/SPIRV-Cross/shaders/amd/shader_group_vote.comp
aliaspider 5af5222249 update SPIRV-Cross
- https://github.com/KhronosGroup/SPIRV-Cross/commit/
66a407285e36a0f772e3209cb86ded6e3d900f6a
2018-01-26 13:48:17 +01:00

19 lines
477 B
Plaintext

#version 450
#extension GL_ARB_shader_group_vote : require
layout (local_size_x = 64) in;
layout (std430, binding = 0) buffer inputData
{
float inputDataArray[];
};
void main ()
{
float thisLaneData = inputDataArray [gl_LocalInvocationID.x];
bool laneActive = (thisLaneData > 0);
bool allInvocations = allInvocationsARB(laneActive);
bool anyInvocations = anyInvocationARB(laneActive);
bool allInvocationsEqual = allInvocationsEqualARB(laneActive);
}