From a74a5494b34e2b41a294042ab8b3e7bce115dcba Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 16 Jan 2018 15:38:36 -0500 Subject: bug fixes to get falcor example shader code to compile. 1. prevent cyclic lookups when an interface inherits transitively from itself. 2. in `createGlobalGenericParamSubstitution`, create a default substitution for the base type declref before using it to lookup the witness table. --- source/slang/syntax.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/slang/syntax.h') diff --git a/source/slang/syntax.h b/source/slang/syntax.h index 93e421977..b37301dec 100644 --- a/source/slang/syntax.h +++ b/source/slang/syntax.h @@ -969,6 +969,8 @@ namespace Slang // used at all, to avoid allocation. List items; + HashSet> lookedupDecls; + // Was at least one result found? bool isValid() const { return item.declRef.getDecl() != nullptr; } @@ -1009,7 +1011,6 @@ namespace Slang struct LookupRequest { SemanticsVisitor* semantics = nullptr; - RefPtr scope = nullptr; RefPtr endScope = nullptr; -- cgit v1.2.3