From a81efa750f093fdbfcf28c5d9bd619fca119bcde Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 16 Apr 2019 07:46:02 -0700 Subject: Add the missing case for `AssocTypeDecl` in varying parameters' layout generation. (#947) --- source/slang/parameter-binding.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/slang/parameter-binding.cpp') diff --git a/source/slang/parameter-binding.cpp b/source/slang/parameter-binding.cpp index caab5ce6e..293a24338 100644 --- a/source/slang/parameter-binding.cpp +++ b/source/slang/parameter-binding.cpp @@ -1736,6 +1736,12 @@ static RefPtr processEntryPointVaryingParameter( genParamTypeLayout->findOrAddResourceInfo(LayoutResourceKind::GenericResource)->count += 1; return genParamTypeLayout; } + else if (auto associatedTypeParam = declRef.as()) + { + RefPtr assocTypeLayout = new TypeLayout(); + assocTypeLayout->type = type; + return assocTypeLayout; + } else { SLANG_UNEXPECTED("unhandled type kind"); -- cgit v1.2.3