diff options
| author | Yong He <yonghe@outlook.com> | 2021-10-21 16:27:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-21 16:27:40 -0700 |
| commit | dc991f7cb6b7f9f7271f4e557cfdd3e59804d1d3 (patch) | |
| tree | 28d1a5974087e8d5c60645befe8808474332d3e5 /source/slang/slang-ir-any-value-marshalling.cpp | |
| parent | 9304c2d04c9bfbae33cc328d404b24aba375aa4f (diff) | |
Passing associated type arguments to existential parameters + packing for `bool`. (#1987)
* Passing associated type arguments to existential parameters + packing for `bool`.
* fix typo
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-any-value-marshalling.cpp')
| -rw-r--r-- | source/slang/slang-ir-any-value-marshalling.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/slang/slang-ir-any-value-marshalling.cpp b/source/slang/slang-ir-any-value-marshalling.cpp index c7f40efc0..2c6dcb84c 100644 --- a/source/slang/slang-ir-any-value-marshalling.cpp +++ b/source/slang/slang-ir-any-value-marshalling.cpp @@ -147,6 +147,7 @@ namespace Slang case kIROp_UInt8Type: case kIROp_UInt16Type: case kIROp_HalfType: + case kIROp_BoolType: context->marshalBasicType(builder, dataType, concreteTypedVar); break; case kIROp_VectorType: @@ -234,6 +235,7 @@ namespace Slang { case kIROp_IntType: case kIROp_FloatType: + case kIROp_BoolType: { ensureOffsetAt4ByteBoundary(); if (fieldOffset < static_cast<uint32_t>(anyValInfo->fieldKeys.getCount())) @@ -303,11 +305,11 @@ namespace Slang advanceOffset(2); break; } + case kIROp_Int8Type: + case kIROp_UInt8Type: case kIROp_UInt64Type: case kIROp_Int64Type: case kIROp_DoubleType: - case kIROp_Int8Type: - case kIROp_UInt8Type: SLANG_UNIMPLEMENTED_X("AnyValue type packing for non 32-bit elements"); break; default: @@ -397,6 +399,7 @@ namespace Slang { case kIROp_IntType: case kIROp_FloatType: + case kIROp_BoolType: { ensureOffsetAt4ByteBoundary(); if (fieldOffset < static_cast<uint32_t>(anyValInfo->fieldKeys.getCount())) |
