diff options
| author | Yong He <yonghe@outlook.com> | 2023-08-24 16:32:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-24 16:32:33 -0700 |
| commit | 0470ea05a42d6c3f35d81a433fefdd440500cdbd (patch) | |
| tree | 25feb7bfd539013bfa64d8ff7698262932e39110 /source/slang/slang-emit-base.cpp | |
| parent | c515bf9edf0ceefa9a0c9b36626ea7c8f72ce36f (diff) | |
Misc. SPIRV Fixes, Part 2. (#3147)
* Misc. SPIRV Fixes, Part 2.
* Fix up.
* Fix.
* Add system smenatic values.
* 16 bit int and floats, matrix/vector reshape, bool ops.
* Fix.
* Fix.
* Allow push constant entry point params.
* entrypoint params.
* swizzleSet and swizzledStore.
* packoffset.
* string hash.
* Fix.
* Matrix arithmetics.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-emit-base.cpp')
| -rw-r--r-- | source/slang/slang-emit-base.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/slang/slang-emit-base.cpp b/source/slang/slang-emit-base.cpp index d565edb24..7ee3ea9ca 100644 --- a/source/slang/slang-emit-base.cpp +++ b/source/slang/slang-emit-base.cpp @@ -1,4 +1,5 @@ #include "slang-emit-base.h" +#include "slang-ir-util.h" namespace Slang { @@ -45,11 +46,7 @@ void SourceEmitterBase::handleRequiredCapabilities(IRInst* inst) IRVarLayout* SourceEmitterBase::getVarLayout(IRInst* var) { - auto decoration = var->findDecoration<IRLayoutDecoration>(); - if (!decoration) - return nullptr; - - return as<IRVarLayout>(decoration->getLayout()); + return findVarLayout(var); } BaseType SourceEmitterBase::extractBaseType(IRType* inType) |
