diff options
| author | Darren Wihandi <65404740+fairywreath@users.noreply.github.com> | 2025-03-19 16:26:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-19 20:26:26 +0000 |
| commit | 155e0804edbc9e7175cb0a6ed60d3daff0ba5e01 (patch) | |
| tree | 25797527a6e263a6a38c3ce3f04380a57d8c0d1e /source/slang/slang-emit-spirv-ops-debug-info-ext.h | |
| parent | 4eb7a27ac4532a49b9d383d2b0d80bc0ec317b4c (diff) | |
Add SPIRV atomic debug type (#6616)
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
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 | 22 |
1 files changed, 22 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 5f1e8c1ec..41c6e1faa 100644 --- a/source/slang/slang-emit-spirv-ops-debug-info-ext.h +++ b/source/slang/slang-emit-spirv-ops-debug-info-ext.h @@ -401,6 +401,28 @@ SpvInst* emitOpDebugTypePointer( } template<typename T> +SpvInst* emitOpDebugTypeQualifier( + SpvInstParent* parent, + IRInst* inst, + const T& idResultType, + SpvInst* set, + SpvInst* baseType, + IRInst* typeQualifier) +{ + static_assert(isSingular<T>); + return emitInst( + parent, + inst, + SpvOpExtInst, + idResultType, + kResultID, + set, + SpvWord(4), + baseType, + typeQualifier); +} + +template<typename T> SpvInst* emitOpDebugScope( SpvInstParent* parent, IRInst* inst, |
