diff options
| author | Yong He <yonghe@outlook.com> | 2024-04-03 13:13:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-03 13:13:09 -0700 |
| commit | 2768e429e556f3978825beaf71cf361626057135 (patch) | |
| tree | e2714443b7c6a73baa0c2223532fdffeb2a36e4d /tests | |
| parent | a36983536c5557c713720a13c82398ba1a6c14af (diff) | |
Not emit DepthReplacing when frag shader uses SV_Position. (#3893)
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; } |
