#[repr(transparent)]pub struct SDL_GPUStencilOp(pub c_uint);Expand description
Specifies what happens to a stored stencil value if stencil tests fail or pass.
Available Since: This enum is available since SDL 3.2.0.
See Also: SDL_CreateGPUGraphicsPipeline
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_GPUStencilOp
impl SDL_GPUStencilOp
pub const SDL_GPU_STENCILOP_INVALID: SDL_GPUStencilOp
Sourcepub const SDL_GPU_STENCILOP_KEEP: SDL_GPUStencilOp
pub const SDL_GPU_STENCILOP_KEEP: SDL_GPUStencilOp
< Keeps the current value.
Sourcepub const SDL_GPU_STENCILOP_ZERO: SDL_GPUStencilOp
pub const SDL_GPU_STENCILOP_ZERO: SDL_GPUStencilOp
< Sets the value to 0.
Sourcepub const SDL_GPU_STENCILOP_REPLACE: SDL_GPUStencilOp
pub const SDL_GPU_STENCILOP_REPLACE: SDL_GPUStencilOp
< Sets the value to reference.
Sourcepub const SDL_GPU_STENCILOP_INCREMENT_AND_CLAMP: SDL_GPUStencilOp
pub const SDL_GPU_STENCILOP_INCREMENT_AND_CLAMP: SDL_GPUStencilOp
< Increments the current value and clamps to the maximum value.
Sourcepub const SDL_GPU_STENCILOP_DECREMENT_AND_CLAMP: SDL_GPUStencilOp
pub const SDL_GPU_STENCILOP_DECREMENT_AND_CLAMP: SDL_GPUStencilOp
< Decrements the current value and clamps to 0.
Sourcepub const SDL_GPU_STENCILOP_INVERT: SDL_GPUStencilOp
pub const SDL_GPU_STENCILOP_INVERT: SDL_GPUStencilOp
< Bitwise-inverts the current value.
Sourcepub const SDL_GPU_STENCILOP_INCREMENT_AND_WRAP: SDL_GPUStencilOp
pub const SDL_GPU_STENCILOP_INCREMENT_AND_WRAP: SDL_GPUStencilOp
< Increments the current value and wraps back to 0.
Sourcepub const SDL_GPU_STENCILOP_DECREMENT_AND_WRAP: SDL_GPUStencilOp
pub const SDL_GPU_STENCILOP_DECREMENT_AND_WRAP: SDL_GPUStencilOp
< Decrements the current value and wraps to the maximum value.
Trait Implementations§
Source§impl Clone for SDL_GPUStencilOp
impl Clone for SDL_GPUStencilOp
Source§fn clone(&self) -> SDL_GPUStencilOp
fn clone(&self) -> SDL_GPUStencilOp
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_GPUStencilOp
impl Debug for SDL_GPUStencilOp
Source§impl Hash for SDL_GPUStencilOp
impl Hash for SDL_GPUStencilOp
Source§impl PartialEq for SDL_GPUStencilOp
impl PartialEq for SDL_GPUStencilOp
impl Copy for SDL_GPUStencilOp
impl Eq for SDL_GPUStencilOp
impl StructuralPartialEq for SDL_GPUStencilOp
Auto Trait Implementations§
impl Freeze for SDL_GPUStencilOp
impl RefUnwindSafe for SDL_GPUStencilOp
impl Send for SDL_GPUStencilOp
impl Sync for SDL_GPUStencilOp
impl Unpin for SDL_GPUStencilOp
impl UnsafeUnpin for SDL_GPUStencilOp
impl UnwindSafe for SDL_GPUStencilOp
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