Exemple #1
0
 internal void FindFirstPhaseAndModify(Type phaseId, WorkerPhaseModifierDelegate callback)
 {
     for (int i = 0; i < subPhases.Length; i++)
     {
         if (subPhases[i].IsPhase(phaseId))
         {
             callback(ref subPhases[i]);
         }
         else
         {
             subPhases[i].FindFirstPhaseAndModify(phaseId, callback);
         }
     }
 }
Exemple #2
0
 private void FindFirstPhaseAndModify(ref WorkerPhase workerPhase, Type phaseId, WorkerPhaseModifierDelegate callback)
 {
     if (workerPhase.IsPhase(phaseId))
     {
         callback(ref workerPhase);
     }
     else
     {
         workerPhase.FindFirstPhaseAndModify(phaseId, callback);
     }
 }
Exemple #3
0
 public void FindFirstRenderPhaseAndModify <T0>(WorkerPhaseModifierDelegate callback) where T0 : IPhaseId
 => FindFirstPhaseAndModify(ref renderRoot, typeof(T0), callback);