#[repr(transparent)]pub struct SDL_GPUStencilOp(pub c_int);Expand description
Specifies what happens to a stored stencil value if stencil tests fail or pass.
§Availability
This enum is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
INVALID | SDL_GPU_STENCILOP_INVALID | |
KEEP | SDL_GPU_STENCILOP_KEEP | Keeps the current value. |
ZERO | SDL_GPU_STENCILOP_ZERO | Sets the value to 0. |
REPLACE | SDL_GPU_STENCILOP_REPLACE | Sets the value to reference. |
INCREMENT_AND_CLAMP | SDL_GPU_STENCILOP_INCREMENT_AND_CLAMP | Increments the current value and clamps to the maximum value. |
DECREMENT_AND_CLAMP | SDL_GPU_STENCILOP_DECREMENT_AND_CLAMP | Decrements the current value and clamps to 0. |
INVERT | SDL_GPU_STENCILOP_INVERT | Bitwise-inverts the current value. |
INCREMENT_AND_WRAP | SDL_GPU_STENCILOP_INCREMENT_AND_WRAP | Increments the current value and wraps back to 0. |
DECREMENT_AND_WRAP | SDL_GPU_STENCILOP_DECREMENT_AND_WRAP | Decrements the current value and wraps to the maximum value. |
Tuple Fields§
§0: c_intImplementations§
Source§impl SDL_GPUStencilOp
impl SDL_GPUStencilOp
pub const INVALID: Self
Sourcepub const INCREMENT_AND_CLAMP: Self
pub const INCREMENT_AND_CLAMP: Self
Increments the current value and clamps to the maximum value.
Sourcepub const DECREMENT_AND_CLAMP: Self
pub const DECREMENT_AND_CLAMP: Self
Decrements the current value and clamps to 0.
Sourcepub const INCREMENT_AND_WRAP: Self
pub const INCREMENT_AND_WRAP: Self
Increments the current value and wraps back to 0.
Sourcepub const DECREMENT_AND_WRAP: Self
pub const DECREMENT_AND_WRAP: Self
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
Available on crate feature debug-impls only.
impl Debug for SDL_GPUStencilOp
Available on crate feature
debug-impls only.Source§impl Default for SDL_GPUStencilOp
impl Default for SDL_GPUStencilOp
Source§fn default() -> SDL_GPUStencilOp
fn default() -> SDL_GPUStencilOp
Returns the “default value” for a type. Read more
Source§impl From<SDL_GPUStencilOp> for c_int
impl From<SDL_GPUStencilOp> for c_int
Source§fn from(value: SDL_GPUStencilOp) -> Self
fn from(value: SDL_GPUStencilOp) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_GPUStencilOp
Available on crate feature metadata only.
impl GroupMetadata for SDL_GPUStencilOp
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_GPUStencilOp
impl Hash for SDL_GPUStencilOp
Source§impl Ord for SDL_GPUStencilOp
impl Ord for SDL_GPUStencilOp
Source§fn cmp(&self, other: &SDL_GPUStencilOp) -> Ordering
fn cmp(&self, other: &SDL_GPUStencilOp) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<SDL_GPUStencilOp> for c_int
impl PartialEq<SDL_GPUStencilOp> for c_int
Source§impl PartialEq<i32> for SDL_GPUStencilOp
impl PartialEq<i32> for SDL_GPUStencilOp
Source§impl PartialEq for SDL_GPUStencilOp
impl PartialEq for SDL_GPUStencilOp
Source§impl PartialOrd for SDL_GPUStencilOp
impl PartialOrd 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 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