From 7cecc518e753a90d9b638e8dd1140730ab010ca7 Mon Sep 17 00:00:00 2001 From: Darren Wihandi <65404740+fairywreath@users.noreply.github.com> Date: Fri, 27 Dec 2024 02:52:49 -0500 Subject: Add packed 8bit builtin types (#5939) * Add packed bytes builtin type * fix test --- source/slang/slang-emit-spirv.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/slang/slang-emit-spirv.cpp') diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index 51ff9066c..676a16228 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -1465,6 +1465,8 @@ struct SPIRVEmitContext : public SourceEmitterBase, public SPIRVEmitSharedContex case kIROp_Int8Type: case kIROp_IntType: case kIROp_Int64Type: + case kIROp_Int8x4PackedType: + case kIROp_UInt8x4PackedType: { const IntInfo i = getIntTypeInfo(as(inst)); if (i.width == 16) @@ -7366,6 +7368,8 @@ struct SPIRVEmitContext : public SourceEmitterBase, public SPIRVEmitSharedContex case kIROp_UInt64Type: case kIROp_UInt8Type: case kIROp_UIntPtrType: + case kIROp_Int8x4PackedType: + case kIROp_UInt8x4PackedType: spvEncoding = 6; // Unsigned break; case kIROp_FloatType: -- cgit v1.2.3