summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir.cpp')
-rw-r--r--source/slang/slang-ir.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp
index 5e5d94b14..ff1cd49ea 100644
--- a/source/slang/slang-ir.cpp
+++ b/source/slang/slang-ir.cpp
@@ -3798,6 +3798,8 @@ 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:
@@ -7421,6 +7423,8 @@ bool isIntegralType(IRType* t)
case BaseType::UInt64:
case BaseType::IntPtr:
case BaseType::UIntPtr:
+ case BaseType::Int8x4Packed:
+ case BaseType::UInt8x4Packed:
return true;
default:
return false;
@@ -7467,6 +7471,10 @@ 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: