diff options
| author | Yong He <yonghe@outlook.com> | 2023-11-16 21:23:13 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-16 21:23:13 -0800 |
| commit | 240aa243527eabcf87c30aabf9749396de47b1b2 (patch) | |
| tree | 00fd10c993aba5a5efee8e3bb698914efc6afe5a /source/slang/slang-emit-spirv.cpp | |
| parent | 6732f571e301754f6edc799b871f5e443eb9a9b8 (diff) | |
GLSL/SPIRV Fixes. (#3337)
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
| -rw-r--r-- | source/slang/slang-emit-spirv.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index 4c802641d..869484ab9 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -1894,6 +1894,12 @@ struct SPIRVEmitContext emitOpDecorate(getSection(SpvLogicalSectionID::Annotations), nullptr, varInst, SpvDecorationFlat); } } + + if (var->findDecorationImpl(kIROp_RequireSPIRVDescriptorIndexingExtensionDecoration)) + { + ensureExtensionDeclaration(UnownedStringSlice("SPV_EXT_descriptor_indexing")); + requireSPIRVCapability(SpvCapabilityRuntimeDescriptorArray); + } } void maybeEmitName(SpvInst* spvInst, IRInst* irInst) |
