HLSL: Fix #1679: Add HLSL earlydepthstencil -> SPV EarlyFragmentTests.

This commit is contained in:
John Kessenich 2019-01-28 22:19:43 -07:00
parent 8dff52509e
commit 544c039d26
4 changed files with 205 additions and 0 deletions

View file

@ -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;
}