diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2024-05-30 16:47:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-30 16:47:39 -0700 |
| commit | febbeb140bea65180ff4be9b164207c582235d4d (patch) | |
| tree | 06a25bfdd3dc22c584d9bb9343bf979d5ee7a3dc /source/slang/slang-emit-spirv-ops-debug-info-ext.h | |
| parent | 66252cb316b26beb86b7c2b5fce2dacdcd2cf659 (diff) | |
Support SPIR-V DebugTypePointer (#4228)
Diffstat (limited to 'source/slang/slang-emit-spirv-ops-debug-info-ext.h')
| -rw-r--r-- | source/slang/slang-emit-spirv-ops-debug-info-ext.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-emit-spirv-ops-debug-info-ext.h b/source/slang/slang-emit-spirv-ops-debug-info-ext.h index a48a9eb04..0969b65a4 100644 --- a/source/slang/slang-emit-spirv-ops-debug-info-ext.h +++ b/source/slang/slang-emit-spirv-ops-debug-info-ext.h @@ -106,6 +106,13 @@ SpvInst* emitOpDebugTypeMatrix(SpvInstParent* parent, IRInst* inst, const T& idR } template<typename T> +SpvInst* emitOpDebugTypePointer(SpvInstParent* parent, IRInst* inst, const T& idResultType, SpvInst* set, SpvInst* baseType, IRInst* storageClass, IRInst* flags) +{ + static_assert(isSingular<T>); + return emitInst(parent, inst, SpvOpExtInst, idResultType, kResultID, set, SpvWord(3), baseType, storageClass, flags); +} + +template<typename T> SpvInst* emitOpDebugScope(SpvInstParent* parent, IRInst* inst, const T& idResultType, SpvInst* set, SpvInst* scope) { static_assert(isSingular<T>); |
