mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-14 13:51:04 +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);
|
|
}
|