GLSL 4.6: Implement atomic counter ops and SPV_KHR_shader_atomic_counter_ops.
This commit is contained in:
parent
de16e52b25
commit
0d0c6d38f0
10 changed files with 202 additions and 8 deletions
17
Test/spv.460.frag
Normal file
17
Test/spv.460.frag
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#version 460 core
|
||||
|
||||
layout(binding = 0) uniform atomic_uint aui;
|
||||
uint ui;
|
||||
|
||||
void main()
|
||||
{
|
||||
atomicCounterAdd(aui, ui);
|
||||
atomicCounterSubtract(aui, ui);
|
||||
atomicCounterMin(aui, ui);
|
||||
atomicCounterMax(aui, ui);
|
||||
atomicCounterAnd(aui, ui);
|
||||
atomicCounterOr(aui, ui);
|
||||
atomicCounterXor(aui, ui);
|
||||
atomicCounterExchange(aui, ui);
|
||||
atomicCounterCompSwap(aui, ui, ui);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue