public AmtCommandBufferRecord AsRecord() { var replay = mInstructions.ToReplay(); replay.ComputeGrid = Compute.AsGrid(); replay.GraphicsGrid = Graphics.AsGrid(); replay.BlitGrid = Blit.AsGrid(); return(replay); }