summaryrefslogtreecommitdiff
path: root/source/slang/slang-hlsl-to-vulkan-layout-options.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-03-11 14:52:16 -0700
committerGitHub <noreply@github.com>2024-03-11 14:52:16 -0700
commit7c7fbd572874bdbb3e6f965da3abb918013e1ac8 (patch)
tree47b09522ec72b4ab651127d67e7ebc6020bac376 /source/slang/slang-hlsl-to-vulkan-layout-options.cpp
parent1bbcf25af514a9ae24f7006747177f2d1b3b7c0d (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-hlsl-to-vulkan-layout-options.cpp')
-rw-r--r--source/slang/slang-hlsl-to-vulkan-layout-options.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/slang/slang-hlsl-to-vulkan-layout-options.cpp b/source/slang/slang-hlsl-to-vulkan-layout-options.cpp
index 0e6f70294..4246b7b39 100644
--- a/source/slang/slang-hlsl-to-vulkan-layout-options.cpp
+++ b/source/slang/slang-hlsl-to-vulkan-layout-options.cpp
@@ -53,7 +53,6 @@ void HLSLToVulkanLayoutOptions::loadFromOptionSet(CompilerOptionSet& optionSet)
m_globalsBinding.set = (*bindGlobals)[0].intValue2;
}
}
- m_invertY = optionSet.getBoolOption(CompilerOptionName::VulkanInvertY);
m_useGLLayout = optionSet.getBoolOption(CompilerOptionName::VulkanUseGLLayout);
m_useOriginalEntryPointName = optionSet.getBoolOption(CompilerOptionName::VulkanUseEntryPointName);
@@ -123,7 +122,7 @@ Index HLSLToVulkanLayoutOptions::getShift(Kind kind, Index set) const
bool HLSLToVulkanLayoutOptions::hasState() const
{
- return canInferBindings() || hasGlobalsBinding() || shouldInvertY() || getUseOriginalEntryPointName()
+ return canInferBindings() || hasGlobalsBinding() || getUseOriginalEntryPointName()
|| shouldUseGLLayout() || shouldEmitSPIRVReflectionInfo();
}