feat: attempt to implement math library
Adds many files, but the next thing is to implement the MeshRegistry properly.
This commit is contained in:
1 parent
9e4f531bd4
commit
e7659ba387
18 files changed
+1232
-136
No files matched your search
@@ -0,0 +1,15 @@
|
||||
use vulkano::buffer::BufferContents;
|
||||
use vulkano::pipeline::graphics::vertex_input::Vertex;
|
||||
|
||||
#[derive(Debug, 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() }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user