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]

[src]

Create a new Separate vertex attribute

Trait Implementations

impl<T: Clone + Attribute> Clone for Separate<T> where
    T::Repr: Clone
[src]

[src]

Returns a copy of the value. Read more

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: Debug + Attribute> Debug for Separate<T> where
    T::Repr: Debug
[src]

[src]

Formats the value using the given formatter.

impl<T: PartialEq + Attribute> PartialEq for Separate<T> where
    T::Repr: PartialEq
[src]

[src]

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

[src]

This method tests for !=.

impl<T> Pod for Separate<T> where
    T: Attribute
[src]

impl<T> VertexFormat for Separate<T> where
    T: Attribute
[src]

ATTRIBUTES: Attributes<'static> = &[(<T>::NAME, Element{offset: 0, format: <T>::FORMAT,})]

List of all attributes formats with name and offset.

[src]

Returns the size of a single vertex in bytes.

[src]

Returns attribute of vertex by type

impl<T> With<T> for Separate<T> where
    T: Attribute
[src]

FORMAT: AttributeFormat = Element{offset: 0, format: <T>::FORMAT,}

Individual format of the attribute for this vertex format