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