Struct screen_13::driver::graphic::DepthStencilModeBuilder
source · pub struct DepthStencilModeBuilder { /* private fields */ }
Expand description
Builder for DepthStencilMode
.
Implementations§
source§impl DepthStencilModeBuilder
impl DepthStencilModeBuilder
sourcepub fn back(self, value: StencilMode) -> Self
pub fn back(self, value: StencilMode) -> Self
Control parameters of the stencil test.
sourcepub fn bounds_test(self, value: bool) -> Self
pub fn bounds_test(self, value: bool) -> Self
Controls whether depth bounds testing is enabled.
sourcepub fn compare_op(self, value: CompareOp) -> Self
pub fn compare_op(self, value: CompareOp) -> Self
A value specifying the comparison operator to use in the depth comparison step of the depth test.
sourcepub fn depth_test(self, value: bool) -> Self
pub fn depth_test(self, value: bool) -> Self
Controls whether depth testing is enabled.
sourcepub fn depth_write(self, value: bool) -> Self
pub fn depth_write(self, value: bool) -> Self
Controls whether depth writes are enabled when depth_test
is true
.
Depth writes are always disabled when depth_test
is false
.
sourcepub fn front(self, value: StencilMode) -> Self
pub fn front(self, value: StencilMode) -> Self
Control parameters of the stencil test.
sourcepub fn min<VALUE: Into<OrderedFloat<f32>>>(self, value: VALUE) -> Self
pub fn min<VALUE: Into<OrderedFloat<f32>>>(self, value: VALUE) -> Self
Minimum depth bound used in the depth bounds test.
sourcepub fn max<VALUE: Into<OrderedFloat<f32>>>(self, value: VALUE) -> Self
pub fn max<VALUE: Into<OrderedFloat<f32>>>(self, value: VALUE) -> Self
Maximum depth bound used in the depth bounds test.
sourcepub fn stencil_test(self, value: bool) -> Self
pub fn stencil_test(self, value: bool) -> Self
Controls whether stencil testing is enabled.
source§impl DepthStencilModeBuilder
impl DepthStencilModeBuilder
sourcepub fn build(self) -> DepthStencilMode
pub fn build(self) -> DepthStencilMode
Builds a new DepthStencilMode
.
Trait Implementations§
source§impl Clone for DepthStencilModeBuilder
impl Clone for DepthStencilModeBuilder
source§fn clone(&self) -> DepthStencilModeBuilder
fn clone(&self) -> DepthStencilModeBuilder
Returns a copy 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 DepthStencilModeBuilder
impl Debug for DepthStencilModeBuilder
source§impl Default for DepthStencilModeBuilder
impl Default for DepthStencilModeBuilder
impl Copy for DepthStencilModeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DepthStencilModeBuilder
impl Send for DepthStencilModeBuilder
impl Sync for DepthStencilModeBuilder
impl Unpin for DepthStencilModeBuilder
impl UnwindSafe for DepthStencilModeBuilder
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.