public override void Prepare(PrepareContext context) { BatchCombiner.CombineBatches(ref _DrawCalls, context.BatchesToRelease); _DrawCalls.Sort(Frame.BatchComparer); context.PrepareMany(_DrawCalls); OnPrepareDone(); }
void IBatchContainer.PrepareChildren(ref PrepareContext context) { BatchCombiner.CombineBatches(ref _DrawCalls, ref context.BatchesToRelease); _DrawCalls.Sort(Frame.BatchComparer); context.PrepareMany(ref _DrawCalls); }