diff options
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index e43c9a556..4d83823d2 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -1740,7 +1740,9 @@ CapabilitySet TargetRequest::getTargetCaps() CapabilitySet targetCap = CapabilitySet(atoms); CapabilitySet latestSpirvCapSet = CapabilitySet(CapabilityName::spirv_latest); - CapabilityName latestSpirvAtom = (CapabilityName)latestSpirvCapSet.getExpandedAtoms()[0].getExpandedAtoms().getLast(); + auto latestSpirvCapSetElements = latestSpirvCapSet.getAtomSets()->getElements<CapabilityAtom>(); + CapabilityName latestSpirvAtom = (CapabilityName)latestSpirvCapSetElements[latestSpirvCapSetElements.getCount()-2]; //-1 gets shader stage + for (auto atomVal : optionSet.getArray(CompilerOptionName::Capability)) { auto atom = (CapabilityName)atomVal.intValue; |
