#[repr(transparent)]pub struct SDL_GPULoadOp(pub c_uint);Expand description
Specifies how the contents of a texture attached to a render pass are treated at the beginning of the render pass.
Available Since: This enum is available since SDL 3.2.0.
See Also: SDL_BeginGPURenderPass
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_GPULoadOp
impl SDL_GPULoadOp
Sourcepub const SDL_GPU_LOADOP_LOAD: SDL_GPULoadOp
pub const SDL_GPU_LOADOP_LOAD: SDL_GPULoadOp
< The previous contents of the texture will be preserved.
Sourcepub const SDL_GPU_LOADOP_CLEAR: SDL_GPULoadOp
pub const SDL_GPU_LOADOP_CLEAR: SDL_GPULoadOp
< The contents of the texture will be cleared to a color.
Sourcepub const SDL_GPU_LOADOP_DONT_CARE: SDL_GPULoadOp
pub const SDL_GPU_LOADOP_DONT_CARE: SDL_GPULoadOp
< The previous contents of the texture need not be preserved. The contents will be undefined.
Trait Implementations§
Source§impl Clone for SDL_GPULoadOp
impl Clone for SDL_GPULoadOp
Source§fn clone(&self) -> SDL_GPULoadOp
fn clone(&self) -> SDL_GPULoadOp
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_GPULoadOp
impl Debug for SDL_GPULoadOp
Source§impl Hash for SDL_GPULoadOp
impl Hash for SDL_GPULoadOp
Source§impl PartialEq for SDL_GPULoadOp
impl PartialEq for SDL_GPULoadOp
impl Copy for SDL_GPULoadOp
impl Eq for SDL_GPULoadOp
impl StructuralPartialEq for SDL_GPULoadOp
Auto Trait Implementations§
impl Freeze for SDL_GPULoadOp
impl RefUnwindSafe for SDL_GPULoadOp
impl Send for SDL_GPULoadOp
impl Sync for SDL_GPULoadOp
impl Unpin for SDL_GPULoadOp
impl UnsafeUnpin for SDL_GPULoadOp
impl UnwindSafe for SDL_GPULoadOp
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