diff options
| author | Darren Wihandi <65404740+fairywreath@users.noreply.github.com> | 2024-12-27 02:52:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-26 23:52:49 -0800 |
| commit | 7cecc518e753a90d9b638e8dd1140730ab010ca7 (patch) | |
| tree | 2d8769853421ffda8671e7d10b79e53f2e9c25f9 /source/slang/slang-ir-any-value-marshalling.cpp | |
| parent | 2ad1f8138771cef32b710f8c47d4c7beb3f4eab5 (diff) | |
Add packed 8bit builtin types (#5939)
* Add packed bytes builtin type
* fix test
Diffstat (limited to 'source/slang/slang-ir-any-value-marshalling.cpp')
| -rw-r--r-- | source/slang/slang-ir-any-value-marshalling.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-ir-any-value-marshalling.cpp b/source/slang/slang-ir-any-value-marshalling.cpp index 6dc01d495..673a3d168 100644 --- a/source/slang/slang-ir-any-value-marshalling.cpp +++ b/source/slang/slang-ir-any-value-marshalling.cpp @@ -153,6 +153,8 @@ struct AnyValueMarshallingContext case kIROp_IntPtrType: case kIROp_UIntPtrType: case kIROp_PtrType: + case kIROp_Int8x4PackedType: + case kIROp_UInt8x4PackedType: context->marshalBasicType(builder, dataType, concreteTypedVar); break; case kIROp_VectorType: @@ -309,6 +311,8 @@ struct AnyValueMarshallingContext break; } case kIROp_UIntType: + case kIROp_Int8x4PackedType: + case kIROp_UInt8x4PackedType: #if SLANG_PTR_IS_32 case kIROp_UIntPtrType: #endif @@ -537,6 +541,8 @@ struct AnyValueMarshallingContext break; } case kIROp_UIntType: + case kIROp_Int8x4PackedType: + case kIROp_UInt8x4PackedType: { ensureOffsetAt4ByteBoundary(); if (fieldOffset < static_cast<uint32_t>(anyValInfo->fieldKeys.getCount())) @@ -812,6 +818,8 @@ SlangInt _getAnyValueSizeRaw(IRType* type, SlangInt offset) case kIROp_FloatType: case kIROp_UIntType: case kIROp_BoolType: + case kIROp_Int8x4PackedType: + case kIROp_UInt8x4PackedType: return alignUp(offset, 4) + 4; case kIROp_UInt64Type: case kIROp_Int64Type: |
