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-emit-c-like.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'source/slang/slang-emit-c-like.cpp') diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index 1c48d98ef..ff40d5b28 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -266,11 +266,6 @@ void CLikeSourceEmitter::emitSimpleType(IRType* type) case kIROp_UIntPtrType: return UnownedStringSlice("uintptr_t"); - case kIROp_Int8x4PackedType: - return UnownedStringSlice("int8_t4_packed"); - case kIROp_UInt8x4PackedType: - return UnownedStringSlice("uint8_t4_packed"); - case kIROp_HalfType: return UnownedStringSlice("half"); @@ -1334,8 +1329,6 @@ void CLikeSourceEmitter::emitSimpleValueImpl(IRInst* inst) return; } case BaseType::UInt: - case BaseType::Int8x4Packed: - case BaseType::UInt8x4Packed: { m_writer->emit(UInt(uint32_t(litInst->value.intVal))); m_writer->emit("U"); @@ -4045,8 +4038,6 @@ void CLikeSourceEmitter::emitVecNOrScalar( m_writer->emit("ushort"); break; case kIROp_UIntType: - case kIROp_Int8x4PackedType: - case kIROp_UInt8x4PackedType: m_writer->emit("uint"); break; case kIROp_UInt64Type: -- cgit v1.2.3