blob: af78cdf183f0e2515e9301fa44e2fa807bb67c19 [file] [log] [blame]
cbuffer cbuffer_constants : register(b0, space1) {
uint4 constants[1];
};
RWByteAddressBuffer result : register(u1, space1);
RWByteAddressBuffer s : register(u0);
int satomicLoad(uint offset) {
int value = 0;
s.InterlockedOr(offset, 0, value);
return value;
}
int runTest() {
return satomicLoad((4u * (0u + uint(constants[0].x))));
}
[numthreads(1, 1, 1)]
void main() {
int tint_symbol = runTest();
result.Store(0u, asuint(uint(tint_symbol)));
return;
}