Implement the extension GL_ARB_shader_group_vote.
This commit is contained in:
parent
97f4e0fe19
commit
338b185a2b
10 changed files with 159 additions and 3 deletions
21
Test/spv.shaderGroupVote.comp
Normal file
21
Test/spv.shaderGroupVote.comp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#version 450
|
||||
|
||||
#extension GL_ARB_shader_group_vote : enable
|
||||
|
||||
layout(local_size_x = 4, local_size_y = 4) in;
|
||||
|
||||
layout(std430, binding = 0) buffer Buffers
|
||||
{
|
||||
bool b;
|
||||
};
|
||||
|
||||
void main()
|
||||
{
|
||||
bool b1 = b;
|
||||
|
||||
b1 = anyInvocationARB(b1);
|
||||
b1 = allInvocationsARB(b1);
|
||||
b1 = allInvocationsEqualARB(b1);
|
||||
|
||||
b = b1;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue