summaryrefslogtreecommitdiff
path: root/source/slang/slang-hlsl-to-vulkan-layout-options.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-01-19 18:02:40 -0800
committerGitHub <noreply@github.com>2024-01-19 18:02:40 -0800
commitfdc17a974970559d8ff76d52c3ce40aaa056d441 (patch)
treea7b2264776982707b36f901ac50acd4e047fd2bd /source/slang/slang-hlsl-to-vulkan-layout-options.cpp
parent84b214389cacde9f3c94d61b3d4ca6a927cecd04 (diff)
Add `-fspv-reflect` support. (#3464)
* Add `-fspv-reflect` support. Closes #3462. * Fix. * Fix. * Remove use of `SPV_GOOGLE_hlsl_functionality1`. * Fix spirv validation error. * Fix test. * Update typename hints. * Update commandline options doc. * Remove superfluous empty lines. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-hlsl-to-vulkan-layout-options.cpp')
-rw-r--r--source/slang/slang-hlsl-to-vulkan-layout-options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-hlsl-to-vulkan-layout-options.cpp b/source/slang/slang-hlsl-to-vulkan-layout-options.cpp
index d15b60f3b..36044e43a 100644
--- a/source/slang/slang-hlsl-to-vulkan-layout-options.cpp
+++ b/source/slang/slang-hlsl-to-vulkan-layout-options.cpp
@@ -92,7 +92,7 @@ Index HLSLToVulkanLayoutOptions::getShift(Kind kind, Index set) const
bool HLSLToVulkanLayoutOptions::hasState() const
{
return canInferBindings() || hasGlobalsBinding() || shouldInvertY() || getUseOriginalEntryPointName()
- || shouldUseGLLayout();
+ || shouldUseGLLayout() || shouldEmitSPIRVReflectionInfo();
}
HLSLToVulkanLayoutOptions::Binding HLSLToVulkanLayoutOptions::inferBinding(Kind kind, const Binding& inBinding) const