#[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: Uint8padding fields are exempt from semver; init with ..Default::default()
padding2: Uint8padding fields are exempt from semver; init with ..Default::default()
padding3: Uint8padding 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more