pub struct GpuDepthStencilState {
pub format: SwapchainFormat,
pub depth_write_enabled: bool,
pub depth_compare: GpuCompareFunction,
}Expand description
Depth/stencil state for hardware depth attachment.
Fields§
§format: SwapchainFormat§depth_write_enabled: bool§depth_compare: GpuCompareFunctionImplementations§
Source§impl GpuDepthStencilState
impl GpuDepthStencilState
Sourcepub fn passes_test(&self, current_depth: f32, new_depth: f32) -> bool
pub fn passes_test(&self, current_depth: f32, new_depth: f32) -> bool
Evaluates early-Z depth comparison between current depth buffer value and incoming fragment depth.
Trait Implementations§
Source§impl Clone for GpuDepthStencilState
impl Clone for GpuDepthStencilState
impl Copy for GpuDepthStencilState
Source§impl Debug for GpuDepthStencilState
impl Debug for GpuDepthStencilState
Source§impl Default for GpuDepthStencilState
impl Default for GpuDepthStencilState
impl Eq for GpuDepthStencilState
Source§impl PartialEq for GpuDepthStencilState
impl PartialEq for GpuDepthStencilState
impl StructuralPartialEq for GpuDepthStencilState
Auto Trait Implementations§
impl Forget for GpuDepthStencilState
impl Freeze for GpuDepthStencilState
impl Move for GpuDepthStencilState
impl RefUnwindSafe for GpuDepthStencilState
impl Send for GpuDepthStencilState
impl Sync for GpuDepthStencilState
impl Unpin for GpuDepthStencilState
impl UnsafeUnpin for GpuDepthStencilState
impl UnwindSafe for 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.