pub struct SDL_GPUCommandBuffer { /* private fields */ }Expand description
An opaque handle representing a command buffer.
Most state is managed via command buffers. When setting state using a command buffer, that state is local to the command buffer.
Commands only begin execution on the GPU once SDL_SubmitGPUCommandBuffer is
called. Once the command buffer is submitted, it is no longer valid to use
it.
Command buffers are executed in submission order. If you submit command buffer A and then command buffer B all commands in A will begin executing before any command in B begins executing.
In multi-threading scenarios, you should only access a command buffer on the thread you acquired it from.
§Availability
This struct is available since SDL 3.2.0.
§See also
Auto Trait Implementations§
impl Freeze for SDL_GPUCommandBuffer
impl RefUnwindSafe for SDL_GPUCommandBuffer
impl Send for SDL_GPUCommandBuffer
impl Sync for SDL_GPUCommandBuffer
impl Unpin for SDL_GPUCommandBuffer
impl UnwindSafe for SDL_GPUCommandBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more