Trait amethyst_renderer::Attribute [−][src]
pub trait Attribute { type Repr: Pod + Send + Sync; const NAME: &'static str; const FORMAT: Format; const SIZE: u32; }
Trait for vertex attributes to implement
Associated Types
Associated Constants
const NAME: &'static str
Name of the attribute It is used to bind to the attributes in shaders
const FORMAT: Format
Format of the attribute defines arity and type
const SIZE: u32
Size of the attribue
Implementors
impl Attribute for JointWeights type Repr = [f32; 4];
impl Attribute for JointIds type Repr = [u16; 4];
impl Attribute for Position type Repr = [f32; 3];
impl Attribute for Color type Repr = [f32; 4];
impl Attribute for TexCoord type Repr = [f32; 2];
impl Attribute for Normal type Repr = [f32; 3];
impl Attribute for Tangent type Repr = [f32; 3];