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.


name: String

A name to match the shader input

buffer: RawBuffer<R>

Vertex buffer to contain the data

format: Format

Format of the attribute

Trait Implementations

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

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

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

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

Feeds this value into the state given, updating the hasher as necessary.

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

Feeds a slice of this type into the state provided.

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

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

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

Formats the value using the given formatter.

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

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

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more