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-hlsl.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source/slang/slang-emit-hlsl.cpp') diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp index 59d40d3a1..89300e13e 100644 --- a/source/slang/slang-emit-hlsl.cpp +++ b/source/slang/slang-emit-hlsl.cpp @@ -902,8 +902,6 @@ bool HLSLSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOu case BaseType::UInt64: case BaseType::UIntPtr: case BaseType::Bool: - case BaseType::Int8x4Packed: - case BaseType::UInt8x4Packed: // Because the intermediate type will always // be an integer type, we can convert to // another integer type of the same size @@ -943,8 +941,6 @@ bool HLSLSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOu case BaseType::UInt: case BaseType::Int: case BaseType::Bool: - case BaseType::Int8x4Packed: - case BaseType::UInt8x4Packed: break; case BaseType::UInt16: case BaseType::Int16: @@ -1330,8 +1326,6 @@ void HLSLSourceEmitter::emitSimpleTypeImpl(IRType* type) case kIROp_Int16Type: case kIROp_UInt16Type: case kIROp_HalfType: - case kIROp_Int8x4PackedType: - case kIROp_UInt8x4PackedType: { m_writer->emit(getDefaultBuiltinTypeName(type->getOp())); return; -- cgit v1.2.3