Struct gfx::render::mesh::Attribute [] [src]

pub struct Attribute<R: Resources> {
    pub name: String,
    pub buffer: RawBuffer<R>,
    pub format: Format,
}

Describes a single attribute of a vertex buffer, including its type, name, etc.

Fields

name

A name to match the shader input

buffer

Vertex buffer to contain the data

format

Format of the attribute

Trait Implementations

Derived Implementations

impl<R: PartialEq + Resources> PartialEq for Attribute<R> where R: PartialEq

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

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

impl<R: Hash + Resources> Hash for Attribute<R> where R: Hash

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl<R: Eq + Resources> Eq for Attribute<R> where R: Eq

impl<R: Debug + Resources> Debug for Attribute<R> where R: Debug

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

impl<R: Clone + Resources> Clone for Attribute<R> where R: Clone

fn clone(&self) -> Attribute<R>

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