diff options
| author | Yong He <yonghe@outlook.com> | 2023-07-21 15:03:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-21 15:03:42 -0700 |
| commit | 0e478443815c62c6d6cd042fbbeaeceeb6830478 (patch) | |
| tree | 383a16465feadfd5800ebec547ae86d844853210 /source/slang/slang-hlsl-to-vulkan-layout-options.cpp | |
| parent | 82508d87e1199a2e299ac21b8b6ac8d192917d1d (diff) | |
Add support for `-fvk-invert-y`. (#3012)
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.cpp | 2 |
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 74a3313da..1c0e0858b 100644 --- a/source/slang/slang-hlsl-to-vulkan-layout-options.cpp +++ b/source/slang/slang-hlsl-to-vulkan-layout-options.cpp @@ -91,7 +91,7 @@ Index HLSLToVulkanLayoutOptions::getShift(Kind kind, Index set) const bool HLSLToVulkanLayoutOptions::hasState() const { - return canInferBindings() || hasGlobalsBinding(); + return canInferBindings() || hasGlobalsBinding() || shouldInvertY(); } HLSLToVulkanLayoutOptions::Binding HLSLToVulkanLayoutOptions::inferBinding(Kind kind, const Binding& inBinding) const |
