[−][src]Trait luminance::vertex::Vertex
A type that can be used as a Vertex
has to implement that trait – it must provide an
associated VertexDesc
value via a function call. This associated value gives enough
information on the types being used as attributes to reify enough memory data to align and, size
and type buffers correctly.
In theory, you should never have to implement that trait directly. Instead, feel free to use the
[luminance-derive] Vertex
proc-macro-derive instead.
Note: implementing this trait is
unsafe
.
Associated Constants
pub const ATTR_COUNT: usize
[src]
Number of attributes.
Required methods
pub fn vertex_desc() -> VertexDesc
[src]
The associated vertex format.