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]
impl<T> Separate<T> where
T: Attribute, Trait Implementations
impl<T: Clone + Attribute> Clone for Separate<T> where
T::Repr: Clone, [src]
impl<T: Clone + Attribute> Clone for Separate<T> where
T::Repr: Clone, fn clone(&self) -> Separate<T>[src]
fn clone(&self) -> Separate<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
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]
impl<T: Copy + Attribute> Copy for Separate<T> where
T::Repr: Copy, impl<T: Debug + Attribute> Debug for Separate<T> where
T::Repr: Debug, [src]
impl<T: Debug + Attribute> Debug for Separate<T> where
T::Repr: Debug, fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: PartialEq + Attribute> PartialEq for Separate<T> where
T::Repr: PartialEq, [src]
impl<T: PartialEq + Attribute> PartialEq for Separate<T> where
T::Repr: PartialEq, fn eq(&self, other: &Separate<T>) -> bool[src]
fn eq(&self, other: &Separate<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Separate<T>) -> bool[src]
fn ne(&self, other: &Separate<T>) -> boolThis method tests for !=.
impl<T> Pod for Separate<T> where
T: Attribute, [src]
impl<T> Pod for Separate<T> where
T: Attribute, impl<T> VertexFormat for Separate<T> where
T: Attribute, [src]
impl<T> VertexFormat for Separate<T> where
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]
fn size() -> usizeReturns the size of a single vertex in bytes.
fn attribute<F>() -> AttributeFormat where
F: Attribute,
Self: With<F>, [src]
fn attribute<F>() -> AttributeFormat where
F: Attribute,
Self: With<F>, Returns attribute of vertex by type
impl<T> With<T> for Separate<T> where
T: Attribute, [src]
impl<T> With<T> for Separate<T> where
T: Attribute, const FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: 0, format: <T>::FORMAT,}
Individual format of the attribute for this vertex format