コード例 #1
0
ファイル: BatchGroup.cs プロジェクト: jli94/Fracture
        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);
 }