style: rustfmt run

This commit is contained in:
alphafetus committed 2026-05-08 16:51:18 -04:00
1 parent e7659ba387
commit 0661494b0f
17 files changed
+259 -227

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
use crate::common::instance::MeshInstance;
use vulkano::buffer::BufferContents;
use vulkano::pipeline::graphics::vertex_input::Vertex;
use crate::common::instance::MeshInstance;
/// A transformation matrix for a mesh that can be passed into the shaders.
#[derive(BufferContents, Vertex)]
+1 -1
View File
@@ -1,2 +1,2 @@
pub mod vertex3;
pub mod instance;
pub mod vertex3;
+6 -4
View File
@@ -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(),
}
}
}