Struct wgpu_types::DepthBiasState
source · [−]Expand description
Describes the biasing setting for the depth target.
For use in DepthStencilState
.
Corresponds to a portion of WebGPU GPUDepthStencilState
.
Fields
constant: i32
Constant depth biasing factor, in basic units of the depth format.
slope_scale: f32
Slope depth biasing factor.
clamp: f32
Depth bias clamp value (absolute).
Implementations
sourceimpl DepthBiasState
impl DepthBiasState
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Returns true if the depth biasing is enabled.
Trait Implementations
sourceimpl Clone for DepthBiasState
impl Clone for DepthBiasState
sourcefn clone(&self) -> DepthBiasState
fn clone(&self) -> DepthBiasState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DepthBiasState
impl Debug for DepthBiasState
sourceimpl Default for DepthBiasState
impl Default for DepthBiasState
sourcefn default() -> DepthBiasState
fn default() -> DepthBiasState
Returns the “default value” for a type. Read more
sourceimpl PartialEq<DepthBiasState> for DepthBiasState
impl PartialEq<DepthBiasState> for DepthBiasState
sourcefn eq(&self, other: &DepthBiasState) -> bool
fn eq(&self, other: &DepthBiasState) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DepthBiasState) -> bool
fn ne(&self, other: &DepthBiasState) -> bool
This method tests for !=
.
impl Copy for DepthBiasState
impl StructuralPartialEq for DepthBiasState
Auto Trait Implementations
impl RefUnwindSafe for DepthBiasState
impl Send for DepthBiasState
impl Sync for DepthBiasState
impl Unpin for DepthBiasState
impl UnwindSafe for DepthBiasState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more