Пример #1
0
 public virtual void Visit(ShaderLibrary library)
 {
     foreach (var type in library.GetTypes())
     {
         Visit(type);
     }
 }
Пример #2
0
 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);
     }
 }