diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/spirv/depth-replacing-none.slang | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/spirv/depth-replacing-none.slang b/tests/spirv/depth-replacing-none.slang index 15932356d..8eec8daff 100644 --- a/tests/spirv/depth-replacing-none.slang +++ b/tests/spirv/depth-replacing-none.slang @@ -9,9 +9,10 @@ struct PSOut } // CHECK-NOT: OpExecutionMode {{.*}} DepthReplacing -PSOut main() +// Using SV_Position does not cause us generate DepthReplacing. +PSOut main(float4 pos : SV_Position) { PSOut psout; - psout.color = float4(1.0f, 0.0f, 0.0f, 1.0f); + psout.color = pos; return psout; } |
