#[repr(C)]pub struct SDL_GPUDepthStencilState {
pub compare_op: SDL_GPUCompareOp,
pub back_stencil_state: SDL_GPUStencilOpState,
pub front_stencil_state: SDL_GPUStencilOpState,
pub compare_mask: Uint8,
pub write_mask: Uint8,
pub enable_depth_test: bool,
pub enable_depth_write: bool,
pub enable_stencil_test: bool,
pub padding1: Uint8,
pub padding2: Uint8,
pub padding3: Uint8,
}Expand description
A structure specifying the parameters of the graphics pipeline depth stencil state.
§Availability
This struct is available since SDL 3.2.0.
§See also
§Notes for sdl3-sys
This struct has padding fields which shouldn’t be accessed directly; use struct update syntax with e.g. ..Default::default() for manual construction.
Fields§
§compare_op: SDL_GPUCompareOpThe comparison operator used for depth testing.
back_stencil_state: SDL_GPUStencilOpStateThe stencil op state for back-facing triangles.
front_stencil_state: SDL_GPUStencilOpStateThe stencil op state for front-facing triangles.
compare_mask: Uint8Selects the bits of the stencil values participating in the stencil test.
write_mask: Uint8Selects the bits of the stencil values updated by the stencil test.
enable_depth_test: booltrue enables the depth test.
enable_depth_write: booltrue enables depth writes. Depth writes are always disabled when enable_depth_test is false.
enable_stencil_test: booltrue enables the stencil test.
padding1: Uint8👎Deprecated: padding fields are exempt from semver; init with
§..Default::default()padding2: Uint8👎Deprecated: padding fields are exempt from semver; init with
§..Default::default()padding3: Uint8👎Deprecated: padding fields are exempt from semver; init with
..Default::default()Trait Implementations§
Source§impl Clone for SDL_GPUDepthStencilState
impl Clone for SDL_GPUDepthStencilState
Source§fn clone(&self) -> SDL_GPUDepthStencilState
fn clone(&self) -> SDL_GPUDepthStencilState
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_GPUDepthStencilState
impl Debug for SDL_GPUDepthStencilState
Source§impl Default for SDL_GPUDepthStencilState
impl Default for SDL_GPUDepthStencilState
Source§fn default() -> SDL_GPUDepthStencilState
fn default() -> SDL_GPUDepthStencilState
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_GPUDepthStencilState
impl Hash for SDL_GPUDepthStencilState
Source§impl PartialEq for SDL_GPUDepthStencilState
impl PartialEq for SDL_GPUDepthStencilState
impl Copy for SDL_GPUDepthStencilState
impl Eq for SDL_GPUDepthStencilState
impl StructuralPartialEq for SDL_GPUDepthStencilState
Auto Trait Implementations§
impl Freeze for SDL_GPUDepthStencilState
impl RefUnwindSafe for SDL_GPUDepthStencilState
impl Send for SDL_GPUDepthStencilState
impl Sync for SDL_GPUDepthStencilState
impl Unpin for SDL_GPUDepthStencilState
impl UnwindSafe for SDL_GPUDepthStencilState
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