From 155e0804edbc9e7175cb0a6ed60d3daff0ba5e01 Mon Sep 17 00:00:00 2001 From: Darren Wihandi <65404740+fairywreath@users.noreply.github.com> Date: Wed, 19 Mar 2025 16:26:26 -0400 Subject: Add SPIRV atomic debug type (#6616) Co-authored-by: Ellie Hermaszewska --- source/slang/slang-emit-spirv-ops-debug-info-ext.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'source/slang/slang-emit-spirv-ops-debug-info-ext.h') 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 @@ -400,6 +400,28 @@ SpvInst* emitOpDebugTypePointer( flags); } +template +SpvInst* emitOpDebugTypeQualifier( + SpvInstParent* parent, + IRInst* inst, + const T& idResultType, + SpvInst* set, + SpvInst* baseType, + IRInst* typeQualifier) +{ + static_assert(isSingular); + return emitInst( + parent, + inst, + SpvOpExtInst, + idResultType, + kResultID, + set, + SpvWord(4), + baseType, + typeQualifier); +} + template SpvInst* emitOpDebugScope( SpvInstParent* parent, -- cgit v1.2.3