summaryrefslogtreecommitdiffstats
path: root/tests/spirv/atomic-64bit.slang
blob: 2b8220dd0aa2e7aedb4ed4c09d069825c3fe6d64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//TEST:SIMPLE(filecheck=CHECK):-target spirv

// CHECK: OpCapability Int64Atomics

groupshared Atomic<uint64_t> atomicVariable;

[shader("compute")]
[numthreads(1, 1, 1)]
void main(uint3 threadId : SV_DispatchThreadID)
{
    uint64_t value = 4ll;
    atomicVariable.store(value);
}