diff options
| author | Yong He <yonghe@outlook.com> | 2021-08-17 09:39:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-17 09:39:02 -0700 |
| commit | 858c7c57b125afed9b5b2329d6b02477284e4803 (patch) | |
| tree | 49f67b342448dcfb19913d8ccc089d956de14462 /source/slang/slang.cpp | |
| parent | 6406523511037987d8b8ab881aea41389afd57eb (diff) | |
Add GLSL450 intrinsics to SPIRV direct emit. (#1921)
* Add GLSL450 intrinsics to SPIRV direct emit.
* Fix.
* Fix compiler error.
* Fix.
* Fix compiler error.
* Make direct-spirv tests actually run.
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 913be346e..ef6872e76 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -1100,12 +1100,6 @@ void TargetRequest::addCapability(CapabilityAtom capability) cookedCapabilities = CapabilitySet::makeEmpty(); } -void TargetRequest::setDirectSPIRVEmitMode() -{ - m_emitSPIRVDirectly = true; - cookedCapabilities.makeEmpty(); -} - CapabilitySet TargetRequest::getTargetCaps() { if(!cookedCapabilities.isEmpty()) @@ -1140,7 +1134,7 @@ CapabilitySet TargetRequest::getTargetCaps() break; case CodeGenTarget::SPIRV: case CodeGenTarget::SPIRVAssembly: - if (m_emitSPIRVDirectly) + if (targetFlags & SLANG_TARGET_FLAG_GENERATE_SPIRV_DIRECTLY) { atoms.add(CapabilityAtom::SPIRV_DIRECT); } |
