You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
404 B
18 lines
404 B
#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);
|
|
}
|