Пример #1
0
        public override void Prepare(PrepareContext context)
        {
            BatchCombiner.CombineBatches(ref _DrawCalls, context.BatchesToRelease);

            _DrawCalls.Sort(Frame.BatchComparer);
            context.PrepareMany(_DrawCalls);

            OnPrepareDone();
        }
Пример #2
0
 void IBatchContainer.PrepareChildren(ref PrepareContext context)
 {
     BatchCombiner.CombineBatches(ref _DrawCalls, ref context.BatchesToRelease);
     _DrawCalls.Sort(Frame.BatchComparer);
     context.PrepareMany(ref _DrawCalls);
 }