Пример #1
0
        private void CmdCopyBuffer(GLCmdCommandRecording arg1, uint arg2)
        {
            var encoder = arg1.Blit;

            Debug.Assert(encoder != null);
            var grid = encoder.Grid;

            Debug.Assert(grid != null);
            var entrypoint = encoder.Entrypoint;

            Debug.Assert(entrypoint != null);
            Debug.Assert(grid.CopyBuffers != null);
            var item = grid.CopyBuffers[arg2];

            if (item.Regions != null)
            {
                foreach (var region in item.Regions)
                {
                    entrypoint.CopyBuffer(item.Source, item.Destination, region.ReadOffset, region.WriteOffset, region.Size);
                }
            }
        }
Пример #2
0
 public void Perform(GLCmdCommandRecording recording)
 {
     Operation(recording, Index);
 }