public virtual void Visit(ShaderLibrary library) { foreach (var type in library.GetTypes()) { Visit(type); } }
public void VisitLibrary() { foreach (var constantOp in mOwningLibrary.mConstantOps.Values) { Visit(constantOp); } foreach (var staticField in mOwningLibrary.mStaticGlobals.Values) { Visit(staticField.InstanceOp); mReferencedTypesConstantsAndGlobals.Add(staticField.InstanceOp); } foreach (var type in mOwningLibrary.GetTypes()) { Visit(type); } }