blob: f846606f987eba301fb5b0ae7bef40f7958f524a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//TEST:CROSS_COMPILE: -profile ps_5_0 -entry main -target spirv-assembly
// Ensure that we can lower to `imageAtomicAdd` correctly.
RWTexture2D<uint> t;
float4 main() : SV_Target
{
uint u;
InterlockedAdd(t[uint2(0)], 1, u);
return u;
}
|