macro_rules! impl_vertex {
($out:ty $(, $member:ident)*) => { ... };
}
๐Deprecated since 0.33.0: derive
Vertex
instead and use field-level attributes to specify formatExpand description
Implements the Vertex
trait on a struct.
ยงExamples
#[derive(BufferContents, Default)]
#[repr(C)]
struct Vertex {
position: [f32; 3],
color: [f32; 4],
}
vulkano::impl_vertex!(Vertex, position, color);