Enum three_d::renderer::material::MaterialType
source · 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§fn eq(&self, other: &MaterialType) -> bool
fn eq(&self, other: &MaterialType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MaterialType
impl PartialOrd for MaterialType
source§fn partial_cmp(&self, other: &MaterialType) -> Option<Ordering>
fn partial_cmp(&self, other: &MaterialType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for MaterialType
impl Eq for MaterialType
impl StructuralPartialEq for MaterialType
Auto Trait Implementations§
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