Trait luminance::vertex::Vertex
[−]
[src]
pub trait Vertex { fn vertex_format() -> VertexFormat; }
A type that can be used as a Vertex
has to implement that trait – it must provide a mapping
to VertexFormat
.
If you’re not sure on how to implement that or if you want to use automatic types, feel free
to use the primary supported types and Chain
or tuples.
Required Methods
fn vertex_format() -> VertexFormat
Implementors
impl Vertex for ()
impl Vertex for i32
impl Vertex for [i32; 1]
impl Vertex for [i32; 2]
impl Vertex for [i32; 3]
impl Vertex for [i32; 4]
impl Vertex for u32
impl Vertex for [u32; 1]
impl Vertex for [u32; 2]
impl Vertex for [u32; 3]
impl Vertex for [u32; 4]
impl Vertex for f32
impl Vertex for [f32; 1]
impl Vertex for [f32; 2]
impl Vertex for [f32; 3]
impl Vertex for [f32; 4]
impl Vertex for bool
impl Vertex for [bool; 1]
impl Vertex for [bool; 2]
impl Vertex for [bool; 3]
impl Vertex for [bool; 4]
impl<A, B> Vertex for Chain<A, B> where A: Vertex, B: Vertex
impl<A, B> Vertex for (A, B) where A: Vertex, B: Vertex
impl<A, B, C> Vertex for (A, B, C) where A: Vertex, B: Vertex, C: Vertex
impl<A, B, C, D> Vertex for (A, B, C, D) where A: Vertex, B: Vertex, C: Vertex, D: Vertex
impl<A, B, C, D, E> Vertex for (A, B, C, D, E) where A: Vertex, B: Vertex, C: Vertex, D: Vertex, E: Vertex
impl<A, B, C, D, E, F> Vertex for (A, B, C, D, E, F) where A: Vertex, B: Vertex, C: Vertex, D: Vertex, E: Vertex, F: Vertex
impl<A, B, C, D, E, F, G> Vertex for (A, B, C, D, E, F, G) where A: Vertex, B: Vertex, C: Vertex, D: Vertex, E: Vertex, F: Vertex, G: Vertex
impl<A, B, C, D, E, F, G, H> Vertex for (A, B, C, D, E, F, G, H) where A: Vertex, B: Vertex, C: Vertex, D: Vertex, E: Vertex, F: Vertex, G: Vertex, H: Vertex
impl<A, B, C, D, E, F, G, H, I> Vertex for (A, B, C, D, E, F, G, H, I) where A: Vertex, B: Vertex, C: Vertex, D: Vertex, E: Vertex, F: Vertex, G: Vertex, H: Vertex, I: Vertex
impl<A, B, C, D, E, F, G, H, I, J> Vertex for (A, B, C, D, E, F, G, H, I, J) where A: Vertex, B: Vertex, C: Vertex, D: Vertex, E: Vertex, F: Vertex, G: Vertex, H: Vertex, I: Vertex, J: Vertex