Skip to content

Commit 59691ae

Browse files
csyongheTim Foley
authored and
Tim Foley
committed
Allow extension on interface (shader-slang#369)
This completes item 5 in issue shader-slang#361. The interesting change is that when checking for interface conformance, we include the requirements (include transitive interfaces) defined in extensions as well. (check.cpp line 1946) All the other changes are for one thing: reoder the semantic checkings to two explicit stages: check header and check body. In check header phase, we check everything except function bodies, register all extensions with their target decls, then check interface conformances for all concrete types. In body checking phase, we look inside the function bodies and check concrete statements/expressions. This change ensures that we take extension into consideration in all places where it should be.
1 parent 68fd448 commit 59691ae

7 files changed

+412
-245
lines changed

0 commit comments

Comments
 (0)