コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }