From efbfa7832afff7e6285713086259abda2456ed55 Mon Sep 17 00:00:00 2001 From: Darren Wihandi <65404740+fairywreath@users.noreply.github.com> Date: Fri, 28 Feb 2025 16:23:29 -0500 Subject: Add Slang-specific intrinsics for integer pack/unpack (#6459) * update hlsl meta * update test * use slang syntax in meta file * improve meta file * fix pack clamp u8 * remove builtin packed types, use typealias instead * fix wgsl pack clamp * fix formatting --------- Co-authored-by: Yong He --- source/slang/slang-ir-any-value-marshalling.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source/slang/slang-ir-any-value-marshalling.cpp') diff --git a/source/slang/slang-ir-any-value-marshalling.cpp b/source/slang/slang-ir-any-value-marshalling.cpp index 2dc91d299..d124b293d 100644 --- a/source/slang/slang-ir-any-value-marshalling.cpp +++ b/source/slang/slang-ir-any-value-marshalling.cpp @@ -153,8 +153,6 @@ struct AnyValueMarshallingContext case kIROp_IntPtrType: case kIROp_UIntPtrType: case kIROp_PtrType: - case kIROp_Int8x4PackedType: - case kIROp_UInt8x4PackedType: context->marshalBasicType(builder, dataType, concreteTypedVar); break; case kIROp_VectorType: @@ -311,8 +309,6 @@ struct AnyValueMarshallingContext break; } case kIROp_UIntType: - case kIROp_Int8x4PackedType: - case kIROp_UInt8x4PackedType: #if SLANG_PTR_IS_32 case kIROp_UIntPtrType: #endif @@ -560,8 +556,6 @@ struct AnyValueMarshallingContext break; } case kIROp_UIntType: - case kIROp_Int8x4PackedType: - case kIROp_UInt8x4PackedType: { ensureOffsetAt4ByteBoundary(); if (fieldOffset < static_cast(anyValInfo->fieldKeys.getCount())) @@ -861,8 +855,6 @@ SlangInt _getAnyValueSizeRaw(IRType* type, SlangInt offset) case kIROp_FloatType: case kIROp_UIntType: case kIROp_BoolType: - case kIROp_Int8x4PackedType: - case kIROp_UInt8x4PackedType: return alignUp(offset, 4) + 4; case kIROp_UInt64Type: case kIROp_Int64Type: -- cgit v1.2.3