summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir.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.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.cpp')
-rw-r--r--source/slang/slang-ir.cpp8
1 files changed, 0 insertions, 8 deletions
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: