pub struct DepthBiasStateBuilder<CS: State> { /* private fields */ }Expand description
Builder for wgpu::DepthBiasState
Set all required fields and any optional fields, then call build().
Builder field setters:
- constant Optional, defaults to
0i32 - slope_scale Optional, defaults to
0f32 - clamp Optional, defaults to
0f32
Implementations§
Source§impl DepthBiasStateBuilder<Empty>
impl DepthBiasStateBuilder<Empty>
pub fn new() -> DepthBiasStateBuilder<Empty>
Source§impl<CS: State> DepthBiasStateBuilder<CS>
impl<CS: State> DepthBiasStateBuilder<CS>
Sourcepub fn constant(self, constant: i32) -> DepthBiasStateBuilder<SetConstant<CS>>where
CS::Constant: ConstantIsEmpty,
pub fn constant(self, constant: i32) -> DepthBiasStateBuilder<SetConstant<CS>>where
CS::Constant: ConstantIsEmpty,
Setter for wgpu::DepthBiasState::constant. Optional, defaults to 0i32.
Sourcepub fn slope_scale(
self,
slope_scale: f32,
) -> DepthBiasStateBuilder<SetSlopeScale<CS>>where
CS::SlopeScale: SlopeScaleIsEmpty,
pub fn slope_scale(
self,
slope_scale: f32,
) -> DepthBiasStateBuilder<SetSlopeScale<CS>>where
CS::SlopeScale: SlopeScaleIsEmpty,
Setter for wgpu::DepthBiasState::slope_scale. Optional, defaults to 0f32.
Sourcepub fn clamp(self, clamp: f32) -> DepthBiasStateBuilder<SetClamp<CS>>where
CS::Clamp: ClampIsEmpty,
pub fn clamp(self, clamp: f32) -> DepthBiasStateBuilder<SetClamp<CS>>where
CS::Clamp: ClampIsEmpty,
Setter for wgpu::DepthBiasState::clamp. Optional, defaults to 0f32.
Source§impl<CS: Complete> DepthBiasStateBuilder<CS>
impl<CS: Complete> DepthBiasStateBuilder<CS>
pub fn build(self) -> DepthBiasState
Trait Implementations§
Source§impl<CS: Complete> Nested<DepthBiasState> for DepthBiasStateBuilder<CS>
impl<CS: Complete> Nested<DepthBiasState> for DepthBiasStateBuilder<CS>
fn unnest(self) -> DepthBiasState
Auto Trait Implementations§
impl<CS> Freeze for DepthBiasStateBuilder<CS>
impl<CS> RefUnwindSafe for DepthBiasStateBuilder<CS>where
<CS as State>::Constant: RefUnwindSafe,
<CS as State>::SlopeScale: RefUnwindSafe,
<CS as State>::Clamp: RefUnwindSafe,
impl<CS> Send for DepthBiasStateBuilder<CS>
impl<CS> Sync for DepthBiasStateBuilder<CS>
impl<CS> Unpin for DepthBiasStateBuilder<CS>
impl<CS> UnwindSafe for DepthBiasStateBuilder<CS>where
<CS as State>::Constant: UnwindSafe,
<CS as State>::SlopeScale: UnwindSafe,
<CS as State>::Clamp: UnwindSafe,
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