diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/hlsl.earlydepthstencil.frag')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/glslang/Test/hlsl.earlydepthstencil.frag | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.earlydepthstencil.frag b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.earlydepthstencil.frag new file mode 100644 index 00000000000..c80dcae76d7 --- /dev/null +++ b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.earlydepthstencil.frag @@ -0,0 +1,12 @@ +RWTexture2D<uint> Values; + +struct InputStruct { + float4 Position : SV_POSITION; +}; + +[earlydepthstencil] +uint main(InputStruct input) : SV_Target { + uint oldVal; + InterlockedExchange(Values[uint2(input.Position.x, input.Position.y)], 1.0, oldVal); + return oldVal; +} |