glslang/Test/hlsl.store.rwbyteaddressbuffer.type.comp
2017-11-27 17:13:22 +01:00

8 lines
172 B
Plaintext

RWByteAddressBuffer buffer;
[numthreads(64, 1, 1)]
void main( uint3 dispatchThreadID : SV_DispatchThreadID)
{
if(dispatchThreadID.x == 0)
buffer.Store(0, 2);
}