pub enum MaterialType {
Opaque,
Transparent,
Deferred,
}
Expand description
Defines the material type which is needed to render the objects in the correct order. For example, transparent objects need to be rendered back to front, whereas opaque objects need to be rendered front to back.
Variants§
Trait Implementations§
Source§impl Clone for MaterialType
impl Clone for MaterialType
Source§fn clone(&self) -> MaterialType
fn clone(&self) -> MaterialType
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 MaterialType
impl Debug for MaterialType
Source§impl Ord for MaterialType
impl Ord for MaterialType
Source§fn cmp(&self, other: &MaterialType) -> Ordering
fn cmp(&self, other: &MaterialType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MaterialType
impl PartialEq for MaterialType
Source§impl PartialOrd for MaterialType
impl PartialOrd for MaterialType
impl Copy for MaterialType
impl Eq for MaterialType
impl StructuralPartialEq for MaterialType
Auto Trait Implementations§
impl Freeze for MaterialType
impl RefUnwindSafe for MaterialType
impl Send for MaterialType
impl Sync for MaterialType
impl Unpin for MaterialType
impl UnwindSafe for MaterialType
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