#[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.
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_GPUGraphicsPipelineCreateInfo
Fields§
§compare_op: SDL_GPUCompareOp< The comparison operator used for depth testing.
back_stencil_state: SDL_GPUStencilOpState< The stencil op state for back-facing triangles.
front_stencil_state: SDL_GPUStencilOpState< The stencil op state for front-facing triangles.
compare_mask: Uint8< Selects the bits of the stencil values participating in the stencil test.
write_mask: Uint8< Selects the bits of the stencil values updated by the stencil test.
enable_depth_test: bool< true enables the depth test.
enable_depth_write: bool< true enables depth writes. Depth writes are always disabled when enable_depth_test is false.
enable_stencil_test: bool< true enables the stencil test.
padding1: Uint8§padding2: Uint8§padding3: Uint8Trait 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§impl Hash for SDL_GPUDepthStencilState
impl Hash for SDL_GPUDepthStencilState
impl Copy 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 UnsafeUnpin 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