HLSL: Fix #1679: Add HLSL earlydepthstencil -> SPV EarlyFragmentTests.
This commit is contained in:
parent
8dff52509e
commit
544c039d26
4 changed files with 205 additions and 0 deletions
12
Test/hlsl.earlydepthstencil.frag
Normal file
12
Test/hlsl.earlydepthstencil.frag
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue