CommandBuffer
One frame's recorded GPU work. Acquire with GpuDevice.acquireCommandBuffer and finish with submit.
Functions
Waits for the next swapchain texture of window and returns it, or null when the window cannot be drawn to right now, such as while it is minimized. The texture is valid until this command buffer is submitted.
Begins a copy pass for uploads.
Begins a render pass that clears target to clearColor and keeps whatever is drawn into it.
Records a read-back of texture into this command buffer if window has captures queued with Window.capture, and returns it, or returns null and records nothing when none is queued. Takes the queued captures off window either way.
Sends the recorded work to the GPU and returns a fence that signals when it has finished. Release the fence with GpuDevice.release(fence) after waiting on it.