Struct gfx::shade::core::AttributeVar
source · pub struct AttributeVar {
pub name: String,
pub slot: u8,
pub base_type: BaseType,
pub container: ContainerType,
}
Expand description
Vertex information that a shader takes as input.
Fields§
§name: String
Name of this attribute.
slot: u8
Slot of the vertex attribute.
base_type: BaseType
Type that this attribute is composed of.
container: ContainerType
“Scalarness” of this attribute.
Trait Implementations§
source§impl Clone for AttributeVar
impl Clone for AttributeVar
source§fn clone(&self) -> AttributeVar
fn clone(&self) -> AttributeVar
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 AttributeVar
impl Debug for AttributeVar
source§impl Hash for AttributeVar
impl Hash for AttributeVar
source§impl PartialEq<AttributeVar> for AttributeVar
impl PartialEq<AttributeVar> for AttributeVar
source§fn eq(&self, other: &AttributeVar) -> bool
fn eq(&self, other: &AttributeVar) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.