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: 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>
[src]
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>
[src]
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
1.3.0
Feeds a slice of this type into the state provided.
impl<R: Eq + Resources> Eq for Attribute<R>
[src]
impl<R: Debug + Resources> Debug for Attribute<R>
[src]
impl<R: Clone + Resources> Clone for Attribute<R>
[src]
fn clone(&self) -> Attribute<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more