pub struct VertexAttribute {
pub name: Attribute,
pub format: VertexFormat,
pub size: u8,
pub normalized: bool,
}
Expand description
The details of a vertex attribute.
Fields§
§name: Attribute
The name of this description.
format: VertexFormat
The data type of each component of this element.
size: u8
The number of components per generic vertex element.
normalized: bool
Whether fixed-point data values should be normalized.
Trait Implementations§
source§impl Clone for VertexAttribute
impl Clone for VertexAttribute
source§fn clone(&self) -> VertexAttribute
fn clone(&self) -> VertexAttribute
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 VertexAttribute
impl Debug for VertexAttribute
source§impl Default for VertexAttribute
impl Default for VertexAttribute
source§impl<'de> Deserialize<'de> for VertexAttribute
impl<'de> Deserialize<'de> for VertexAttribute
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 PartialEq<VertexAttribute> for VertexAttribute
impl PartialEq<VertexAttribute> for VertexAttribute
source§fn eq(&self, other: &VertexAttribute) -> bool
fn eq(&self, other: &VertexAttribute) -> bool
source§impl Serialize for VertexAttribute
impl Serialize for VertexAttribute
impl Copy for VertexAttribute
impl Eq for VertexAttribute
impl StructuralEq for VertexAttribute
impl StructuralPartialEq for VertexAttribute
Auto Trait Implementations§
impl RefUnwindSafe for VertexAttribute
impl Send for VertexAttribute
impl Sync for VertexAttribute
impl Unpin for VertexAttribute
impl UnwindSafe for VertexAttribute
Blanket Implementations§
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
. Read more§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more§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. Read more§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. Read more