From 28adf8917e53953dbfebd746410a427a55eed814 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 9 Sep 2021 11:39:04 -0700 Subject: `reinterpret` and 16-bit value packing. (#1933) * `reinterpret` and 16-bit value packing. * Update `half-texture` cross-compile test reference result. * Revert inadvertent reformatting of slang-ir-inst-defs.h Co-authored-by: Yong He --- source/slang/slang-ir.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source/slang/slang-ir.cpp') diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index 60aaafa83..601ebca26 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -4100,6 +4100,18 @@ namespace Slang return inst; } + IRInst* IRBuilder::emitBitOr(IRType* type, IRInst* left, IRInst* right) + { + auto inst = createInst( + this, + kIROp_BitOr, + type, + left, + right); + addInst(inst); + return inst; + } + IRInst* IRBuilder::emitBitNot(IRType* type, IRInst* value) { auto inst = createInst( -- cgit v1.2.3