pub struct DepthBias {
pub constant: f32,
pub slope_scaled: f32,
pub clamp: f32,
}Expand description
A depth bias, D3D12’s three terms: bias = constant * r + slope_scaled * max_slope, limited to clamp when that
is not zero (r the smallest resolvable depth difference).
Fields§
§constant: f32The constant term, in units of the smallest resolvable depth difference.
slope_scaled: f32The factor of the polygon’s maximum depth slope.
clamp: f32The most the bias may reach in magnitude; 0 for no limit.
Trait Implementations§
impl Copy for DepthBias
Source§impl Serialize for DepthBias
impl Serialize for DepthBias
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DepthBias
Auto Trait Implementations§
impl Forget for DepthBias
impl Freeze for DepthBias
impl RefUnwindSafe for DepthBias
impl Send for DepthBias
impl Sync for DepthBias
impl Unpin for DepthBias
impl UnsafeUnpin for DepthBias
impl UnwindSafe for DepthBias
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