summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-hlsl.cpp
diff options
context:
space:
mode:
authorDarren Wihandi <65404740+fairywreath@users.noreply.github.com>2024-12-27 02:52:49 -0500
committerGitHub <noreply@github.com>2024-12-26 23:52:49 -0800
commit7cecc518e753a90d9b638e8dd1140730ab010ca7 (patch)
tree2d8769853421ffda8671e7d10b79e53f2e9c25f9 /source/slang/slang-emit-hlsl.cpp
parent2ad1f8138771cef32b710f8c47d4c7beb3f4eab5 (diff)
Add packed 8bit builtin types (#5939)
* Add packed bytes builtin type * fix test
Diffstat (limited to 'source/slang/slang-emit-hlsl.cpp')
-rw-r--r--source/slang/slang-emit-hlsl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp
index c43f075b2..40d6f75d9 100644
--- a/source/slang/slang-emit-hlsl.cpp
+++ b/source/slang/slang-emit-hlsl.cpp
@@ -822,6 +822,8 @@ 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
@@ -861,6 +863,8 @@ 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:
@@ -1193,6 +1197,8 @@ 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;