summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-any-value-marshalling.cpp
diff options
context:
space:
mode:
authorDarren Wihandi <65404740+fairywreath@users.noreply.github.com>2025-02-28 16:23:29 -0500
committerGitHub <noreply@github.com>2025-02-28 13:23:29 -0800
commitefbfa7832afff7e6285713086259abda2456ed55 (patch)
treed5a94eb66867d7f9dc01e4c1a25502443bf71040 /source/slang/slang-ir-any-value-marshalling.cpp
parent618b4c7657f539e66f032cd40554798bc0d68f6d (diff)
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 <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-ir-any-value-marshalling.cpp')
-rw-r--r--source/slang/slang-ir-any-value-marshalling.cpp8
1 files changed, 0 insertions, 8 deletions
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<uint32_t>(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: