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.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source/slang/slang-ir.cpp') diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index 1b0f99cd3..b982385fa 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -3814,8 +3814,6 @@ IRInst* IRBuilder::emitDefaultConstruct(IRType* type, bool fallback) case kIROp_UIntType: case kIROp_UIntPtrType: case kIROp_UInt64Type: - case kIROp_Int8x4PackedType: - case kIROp_UInt8x4PackedType: case kIROp_CharType: return getIntValue(type, 0); case kIROp_BoolType: @@ -7543,8 +7541,6 @@ bool isIntegralType(IRType* t) case BaseType::UInt64: case BaseType::IntPtr: case BaseType::UIntPtr: - case BaseType::Int8x4Packed: - case BaseType::UInt8x4Packed: return true; default: return false; @@ -7591,10 +7587,6 @@ IntInfo getIntTypeInfo(const IRType* intType) case kIROp_Int64Type: return {64, true}; - case kIROp_Int8x4PackedType: - case kIROp_UInt8x4PackedType: - return {32, false}; - case kIROp_IntPtrType: // target platform dependent case kIROp_UIntPtrType: // target platform dependent default: -- cgit v1.2.3