Macro vulkano::impl_vertex
source · [−]macro_rules! impl_vertex {
($out:ty $(, $member:ident)*) => { ... };
}
Expand description
Implements the Vertex
trait on a struct.
Example
#[repr(C)]
#[derive(Clone, Copy, Debug, Default, Zeroable, Pod)]
struct Vertex{
position: [f32; 3],
color: [f32; 4]
}
vulkano::impl_vertex!(Vertex, position, color);