summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-layout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-layout.cpp')
-rw-r--r--source/slang/slang-ir-layout.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-ir-layout.cpp b/source/slang/slang-ir-layout.cpp
index 82287f58e..9662dc522 100644
--- a/source/slang/slang-ir-layout.cpp
+++ b/source/slang/slang-ir-layout.cpp
@@ -331,6 +331,12 @@ case kIROp_##TYPE##Type: \
case kIROp_DefaultBufferLayoutType:
*outSizeAndAlignment = IRSizeAndAlignment(0, 4);
return SLANG_OK;
+ case kIROp_AttributedType:
+ {
+ auto attributedType = cast<IRAttributedType>(type);
+ SLANG_ASSERT(attributedType->getAttr()->getOp() == kIROp_NoDiffAttr);
+ return getSizeAndAlignment(optionSet, rules, attributedType->getBaseType(), outSizeAndAlignment);
+ }
default:
break;
}