pub struct MaterialDrawOptions {
pub color_mask: [bool; 4],
pub depth_mask: bool,
pub blending: MaterialBlending,
}
Fields§
§color_mask: [bool; 4]
§depth_mask: bool
§blending: MaterialBlending
Implementations§
source§impl MaterialDrawOptions
impl MaterialDrawOptions
pub fn transparent() -> Self
source§impl MaterialDrawOptions
impl MaterialDrawOptions
pub fn apply(&self, context: &Context, render_stats: &mut RenderStats)
Trait Implementations§
source§impl Clone for MaterialDrawOptions
impl Clone for MaterialDrawOptions
source§fn clone(&self) -> MaterialDrawOptions
fn clone(&self) -> MaterialDrawOptions
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 MaterialDrawOptions
impl Debug for MaterialDrawOptions
source§impl Default for MaterialDrawOptions
impl Default for MaterialDrawOptions
source§impl<'de> Deserialize<'de> for MaterialDrawOptions
impl<'de> Deserialize<'de> for MaterialDrawOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MaterialDrawOptions
impl Send for MaterialDrawOptions
impl Sync for MaterialDrawOptions
impl Unpin for MaterialDrawOptions
impl UnwindSafe for MaterialDrawOptions
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> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more