style: rustfmt run
This commit is contained in:
1 parent
e7659ba387
commit
0661494b0f
17 files changed
+259
-227
No files matched your search
+6
-4
@@ -1,15 +1,17 @@
|
||||
use vulkano::buffer::BufferContents;
|
||||
use vulkano::pipeline::graphics::vertex_input::Vertex;
|
||||
|
||||
#[derive(Debug, BufferContents, Vertex)]
|
||||
#[derive(Debug, Clone, BufferContents, Vertex)]
|
||||
#[repr(C)]
|
||||
pub struct Vertex3 {
|
||||
#[format(R32G32B32_SFLOAT)]
|
||||
pub(crate) position: [f32; 3],
|
||||
}
|
||||
|
||||
impl From<&[f32; 3]> for Vertex3 {
|
||||
fn from(v: &[f32; 3]) -> Self {
|
||||
Self { position: v.clone() }
|
||||
impl From<[f32; 3]> for Vertex3 {
|
||||
fn from(v: [f32; 3]) -> Self {
|
||||
Self {
|
||||
position: v.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user