Struct amethyst_renderer::Separate
[−]
[src]
#[repr(C)]pub struct Separate<T: Attribute>(_);
Vertex format for attributes in separate buffers
Methods
impl<T> Separate<T> where
T: Attribute,
[src]
T: Attribute,
Trait Implementations
impl<T: Clone + Attribute> Clone for Separate<T> where
T::Repr: Clone,
[src]
T::Repr: Clone,
fn clone(&self) -> Separate<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Copy + Attribute> Copy for Separate<T> where
T::Repr: Copy,
[src]
T::Repr: Copy,
impl<T: Debug + Attribute> Debug for Separate<T> where
T::Repr: Debug,
[src]
T::Repr: Debug,
impl<T: PartialEq + Attribute> PartialEq for Separate<T> where
T::Repr: PartialEq,
[src]
T::Repr: PartialEq,
fn eq(&self, __arg_0: &Separate<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Separate<T>) -> bool
[src]
This method tests for !=
.
impl<T> Pod for Separate<T> where
T: Attribute,
[src]
T: Attribute,
impl<T> VertexFormat for Separate<T> where
T: Attribute,
[src]
T: Attribute,
const ATTRIBUTES: Attributes<'static>
ATTRIBUTES: Attributes<'static> = &[(<T>::NAME, Element{offset: 0, format: <T>::FORMAT,})]
List of all attributes formats with name and offset.
fn size() -> usize
[src]
Returns the size of a single vertex in bytes.
fn attribute<F>() -> AttributeFormat where
F: Attribute,
Self: With<F>,
[src]
F: Attribute,
Self: With<F>,
Returns attribute of vertex by type
impl<T> With<T> for Separate<T> where
T: Attribute,
[src]
T: Attribute,
const FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: 0, format: <T>::FORMAT,}
Individual format of the attribute for this vertex format