Struct gfx::device::shade::Attribute [] [src]

pub struct Attribute {
    pub name: String,
    pub location: usize,
    pub count: usize,
    pub base_type: BaseType,
    pub container: ContainerType,
}

Vertex information that a shader takes as input.

Fields

name

Name of this attribute.

location

Vertex attribute binding.

count

Number of elements this attribute represents.

base_type

Type that this attribute is composed of.

container

"Scalarness" of this attribute.

Trait Implementations

Derived Implementations

impl Debug for Attribute

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Attribute

fn eq(&self, __arg_0: &Attribute) -> bool

fn ne(&self, __arg_0: &Attribute) -> bool

impl Clone for Attribute

fn clone(&self) -> Attribute

fn clone_from(&mut self, source: &Self)