mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-30 22:51:06 +00:00
18 lines
404 B
JavaScript
18 lines
404 B
JavaScript
#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);
|
|
}
|