From 4485cf3eaf142cfd5f8470e86739acc67d4e12ea Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 6 Mar 2025 14:26:34 -0800 Subject: Update SPIRV-Tools and fix new validation errors. (#6511) * Update SPIRV-Tools and fix new validation errors. * Implement pointers for glsl target. * Reworked packStorage/unpackStorage code gen to operate on pointers rather than values. --- source/slang/slang-emit-spirv-ops.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source/slang/slang-emit-spirv-ops.h') diff --git a/source/slang/slang-emit-spirv-ops.h b/source/slang/slang-emit-spirv-ops.h index 8c5316f51..880f6b083 100644 --- a/source/slang/slang-emit-spirv-ops.h +++ b/source/slang/slang-emit-spirv-ops.h @@ -1409,6 +1409,20 @@ SpvInst* emitOpBitcast( return emitInst(parent, inst, SpvOpBitcast, idResultType, kResultID, operand); } +// https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#OpCopyLogical +template +SpvInst* emitOpCopyLogical( + SpvInstParent* parent, + IRInst* inst, + const T1& idResultType, + const T2& operand) +{ + static_assert(isSingular); + static_assert(isSingular); + return emitInst(parent, inst, SpvOpCopyLogical, idResultType, kResultID, operand); +} + + // https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#OpSNegate template SpvInst* emitOpSNegate( -- cgit v1.2.3