diff options
Diffstat (limited to 'source/slang/slang-ast-natural-layout.cpp')
| -rw-r--r-- | source/slang/slang-ast-natural-layout.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-ast-natural-layout.cpp b/source/slang/slang-ast-natural-layout.cpp index f15dee1d1..7643e0433 100644 --- a/source/slang/slang-ast-natural-layout.cpp +++ b/source/slang/slang-ast-natural-layout.cpp @@ -153,6 +153,12 @@ NaturalSize ASTNaturalLayoutContext::_calcSizeImpl(Type* type) // Initialize empty NaturalSize size = NaturalSize::makeEmpty(); + // We can't compute the size of an abstract type pack yet. + if (isAbstractTypePack(tupleType->getTypePack())) + { + return NaturalSize::makeInvalid(); + } + // Accumulate over all the member types for (auto cur = 0; cur < tupleType->getMemberCount(); cur++) { |
