pub enum MaterialValueType {
Show 25 variants
Bool,
Vec2B,
Vec3B,
Vec4B,
Mat2B,
Mat3B,
Mat4B,
Scalar,
Vec2F,
Vec3F,
Vec4F,
Mat2F,
Mat3F,
Mat4F,
Integer,
Vec2I,
Vec3I,
Vec4I,
Mat2I,
Mat3I,
Mat4I,
Sampler2d,
Sampler2dArray,
Sampler3d,
Array(Box<MaterialValueType>, Option<usize>),
}Variants§
Bool
Vec2B
Vec3B
Vec4B
Mat2B
Mat3B
Mat4B
Scalar
Vec2F
Vec3F
Vec4F
Mat2F
Mat3F
Mat4F
Integer
Vec2I
Vec3I
Vec4I
Mat2I
Mat3I
Mat4I
Sampler2d
Sampler2dArray
Sampler3d
Array(Box<MaterialValueType>, Option<usize>)
Implementations§
source§impl MaterialValueType
impl MaterialValueType
pub fn category(&self) -> MaterialValueCategory
Trait Implementations§
source§impl Clone for MaterialValueType
impl Clone for MaterialValueType
source§fn clone(&self) -> MaterialValueType
fn clone(&self) -> MaterialValueType
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 MaterialValueType
impl Debug for MaterialValueType
source§impl Default for MaterialValueType
impl Default for MaterialValueType
source§impl<'de> Deserialize<'de> for MaterialValueType
impl<'de> Deserialize<'de> for MaterialValueType
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
source§impl Hash for MaterialValueType
impl Hash for MaterialValueType
source§impl PartialEq<MaterialValueType> for MaterialValueType
impl PartialEq<MaterialValueType> for MaterialValueType
source§fn eq(&self, other: &MaterialValueType) -> bool
fn eq(&self, other: &MaterialValueType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MaterialValueType
impl Serialize for MaterialValueType
source§impl ToString for MaterialValueType
impl ToString for MaterialValueType
impl Eq for MaterialValueType
impl StructuralEq for MaterialValueType
impl StructuralPartialEq for MaterialValueType
Auto Trait Implementations§
impl RefUnwindSafe for MaterialValueType
impl Send for MaterialValueType
impl Sync for MaterialValueType
impl Unpin for MaterialValueType
impl UnwindSafe for MaterialValueType
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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