diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-21 12:22:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-21 12:22:31 -0800 |
| commit | b3b6c44cb8b8ebc413d41f9ca3833d8242f3c805 (patch) | |
| tree | e73edb286c8179f7fc3677b75bfa2468eb811e60 /source/slang/slang-emit-spirv.cpp | |
| parent | 70ea0b048970b9d2e00451636c88313093de2337 (diff) | |
Fix SPIRV lowering issue. (#3608)
* Fix SPIRV pointer lowering issue.
Fixes #3605.
* Add another pointer test.
Fixes #3601.
* Fixes #3600.
* Fix #3595.
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
| -rw-r--r-- | source/slang/slang-emit-spirv.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index 784ded1c9..b9e868b89 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -5287,6 +5287,7 @@ SlangResult emitSPIRVFromIR( for (auto ptrType : context.m_forwardDeclaredPointers) { auto spvPtrType = context.m_mapIRInstToSpvInst[ptrType]; + context.ensureInst(ptrType->getValueType()); auto parent = spvPtrType->parent; spvPtrType->removeFromParent(); parent->addInst(spvPtrType); |
