private void ConsumeWork(MyRenderingWork work, Queue <CommandList> accumulator) { foreach (var pass in work.Passes) { pass.Join(); } foreach (var rc in work.RCs) { accumulator.Enqueue(MyRenderUtils.JoinAndGetCommandList(rc)); MyManagers.DeferredRCs.FreeRC(rc); } }
internal static void ConsumeWork(MyRenderingWork work, Queue <CommandList> accumulator) { foreach (var pass in work.Passes) { pass.Join(); } foreach (var rc in work.Contexts) { accumulator.Enqueue(rc.GrabCommandList()); rc.Join(); MyRenderContextPool.FreeRC(rc); } }