pub struct SDL_GPUBuffer { /* private fields */ }Expand description
An opaque handle representing a buffer.
Used for vertices, indices, indirect draw commands, and general compute data.
§Availability
This struct is available since SDL 3.2.0.
§See also
SDL_CreateGPUBufferSDL_UploadToGPUBufferSDL_DownloadFromGPUBufferSDL_CopyGPUBufferToBufferSDL_BindGPUVertexBuffersSDL_BindGPUIndexBufferSDL_BindGPUVertexStorageBuffersSDL_BindGPUFragmentStorageBuffersSDL_DrawGPUPrimitivesIndirectSDL_DrawGPUIndexedPrimitivesIndirectSDL_BindGPUComputeStorageBuffersSDL_DispatchGPUComputeIndirectSDL_ReleaseGPUBuffer
Auto Trait Implementations§
impl Freeze for SDL_GPUBuffer
impl RefUnwindSafe for SDL_GPUBuffer
impl Send for SDL_GPUBuffer
impl Sync for SDL_GPUBuffer
impl Unpin for SDL_GPUBuffer
impl UnwindSafe for SDL_GPUBuffer
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