You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
663 B
30 lines
663 B
#[derive(Default, Debug, Clone)]
|
|
pub struct Vertex2D {
|
|
pub v_position: [f32; 2],
|
|
pub color : [f32; 4],
|
|
pub ti_position: [f32; 2],
|
|
}
|
|
|
|
vulkano::impl_vertex!(Vertex2D, v_position, color, ti_position);
|
|
|
|
|
|
|
|
//impl From<(f32, f32)> for Vertex2D {
|
|
// fn from(item: (f32, f32)) -> Self {
|
|
// Vertex2D {
|
|
// v_position: [],
|
|
// color: [],
|
|
// ti_position: []
|
|
// }
|
|
// }
|
|
//}
|
|
//
|
|
//impl From<((f32,f32),(f32, f32))> for Vertex2D {
|
|
// fn from(item: ((f32,f32),(f32, f32))) -> Self {
|
|
// Vertex2D {
|
|
// v_position: [],
|
|
// color: [],
|
|
// ti_position: []
|
|
// }
|
|
// }
|
|
//}
|