diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-11 14:52:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-11 14:52:16 -0700 |
| commit | 7c7fbd572874bdbb3e6f965da3abb918013e1ac8 (patch) | |
| tree | 47b09522ec72b4ab651127d67e7ebc6020bac376 /source/slang/slang-emit.cpp | |
| parent | 1bbcf25af514a9ae24f7006747177f2d1b3b7c0d (diff) | |
Add `-fvk-use-dx-position-w` and fix ExecutionMode ordering for geometry shaders. (#3731)
* Add `-fvk-use-dx-position-w`.
* Fix ordering of OutputVertices and output primitive type decoration in spirv.
* Fix.
* fix
* Fix.
* Move test around.
Diffstat (limited to 'source/slang/slang-emit.cpp')
| -rw-r--r-- | source/slang/slang-emit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 5ec6fa62a..0ec9b0c1a 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -934,6 +934,8 @@ Result linkAndOptimizeIR( legalizeUniformBufferLoad(irModule); if (targetProgram->getOptionSet().getBoolOption(CompilerOptionName::VulkanInvertY)) invertYOfPositionOutput(irModule); + if (targetProgram->getOptionSet().getBoolOption(CompilerOptionName::VulkanUseDxPositionW)) + rcpWOfPositionInput(irModule); } // Lower sizeof/alignof |
