diff options
| author | Darren Wihandi <65404740+fairywreath@users.noreply.github.com> | 2025-02-28 16:23:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-28 13:23:29 -0800 |
| commit | efbfa7832afff7e6285713086259abda2456ed55 (patch) | |
| tree | d5a94eb66867d7f9dc01e4c1a25502443bf71040 /source/slang/slang-ir-util.cpp | |
| parent | 618b4c7657f539e66f032cd40554798bc0d68f6d (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-util.cpp')
| -rw-r--r-- | source/slang/slang-ir-util.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/source/slang/slang-ir-util.cpp b/source/slang/slang-ir-util.cpp index 39c1c5bb1..f75a24ac6 100644 --- a/source/slang/slang-ir-util.cpp +++ b/source/slang/slang-ir-util.cpp @@ -107,8 +107,6 @@ IROp getTypeStyle(IROp op) case kIROp_UInt64Type: case kIROp_IntPtrType: case kIROp_UIntPtrType: - case kIROp_Int8x4PackedType: - case kIROp_UInt8x4PackedType: { // All int like return kIROp_IntType; @@ -144,8 +142,6 @@ IROp getTypeStyle(BaseType op) case BaseType::UInt: case BaseType::UInt64: case BaseType::UIntPtr: - case BaseType::Int8x4Packed: - case BaseType::UInt8x4Packed: return kIROp_IntType; case BaseType::Half: case BaseType::Float: @@ -476,12 +472,6 @@ void getTypeNameHint(StringBuilder& sb, IRInst* type) case kIROp_UIntPtrType: sb << "uintptr"; break; - case kIROp_Int8x4PackedType: - sb << "int8_t4_packed"; - break; - case kIROp_UInt8x4PackedType: - sb << "uint8_t4_packed"; - break; case kIROp_CharType: sb << "char"; break; @@ -1862,10 +1852,6 @@ UnownedStringSlice getBasicTypeNameHint(IRType* basicType) return UnownedStringSlice::fromLiteral("uint64"); case kIROp_UIntPtrType: return UnownedStringSlice::fromLiteral("uintptr"); - case kIROp_Int8x4PackedType: - return UnownedStringSlice::fromLiteral("int8_t4_packed"); - case kIROp_UInt8x4PackedType: - return UnownedStringSlice::fromLiteral("uint8_t4_packed"); case kIROp_FloatType: return UnownedStringSlice::fromLiteral("float"); case kIROp_HalfType: |
