wgpu/naga/tests/out/hlsl/wgsl-atomicTexture-int64.hlsl
2025-04-03 15:08:23 +00:00

18 lines
427 B
HLSL

struct NagaConstants {
int first_vertex;
int first_instance;
uint other;
};
ConstantBuffer<NagaConstants> _NagaConstants: register(b0, space1);
RWTexture2D<uint64_t> image : register(u0);
[numthreads(2, 1, 1)]
void cs_main(uint3 id : SV_GroupThreadID)
{
InterlockedMax(image[int2(int(0), int(0))],1uL);
GroupMemoryBarrierWithGroupSync();
InterlockedMin(image[int2(int(0), int(0))],1uL);
return;
}