#[repr(C)]pub struct SDL_GPUBufferBinding {
pub buffer: *mut SDL_GPUBuffer,
pub offset: Uint32,
}Expand description
Fields§
§buffer: *mut SDL_GPUBufferThe buffer to bind. Must have been created with SDL_GPU_BUFFERUSAGE_VERTEX for SDL_BindGPUVertexBuffers, or SDL_GPU_BUFFERUSAGE_INDEX for SDL_BindGPUIndexBuffer.
offset: Uint32The starting byte of the data to bind in the buffer.
Trait Implementations§
Source§impl Clone for SDL_GPUBufferBinding
impl Clone for SDL_GPUBufferBinding
Source§fn clone(&self) -> SDL_GPUBufferBinding
fn clone(&self) -> SDL_GPUBufferBinding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_GPUBufferBinding
impl Debug for SDL_GPUBufferBinding
Source§impl Default for SDL_GPUBufferBinding
impl Default for SDL_GPUBufferBinding
impl Copy for SDL_GPUBufferBinding
Auto Trait Implementations§
impl Freeze for SDL_GPUBufferBinding
impl RefUnwindSafe for SDL_GPUBufferBinding
impl !Send for SDL_GPUBufferBinding
impl !Sync for SDL_GPUBufferBinding
impl Unpin for SDL_GPUBufferBinding
impl UnwindSafe for SDL_GPUBufferBinding
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