mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-27 21:20:30 +00:00
13 lines
277 B
GLSL
13 lines
277 B
GLSL
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;
|
|
}
|