summaryrefslogtreecommitdiff
path: root/engine/src/renderer/vertex_buffers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/renderer/vertex_buffers.rs')
-rw-r--r--engine/src/renderer/vertex_buffers.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/src/renderer/vertex_buffers.rs b/engine/src/renderer/vertex_buffers.rs
index bb988d9..e7cba91 100644
--- a/engine/src/renderer/vertex_buffers.rs
+++ b/engine/src/renderer/vertex_buffers.rs
@@ -1,5 +1,7 @@
use std::mem::size_of_val;
+use crate::vertex::Vertex;
+
#[derive(Debug)]
pub struct VertexBuffers<const CNT: usize>
{
@@ -23,7 +25,7 @@ impl<const CNT: usize> VertexBuffers<CNT>
pub fn store(
&self,
buffer_index: usize,
- vertices: &[f32],
+ vertices: &[Vertex],
usage: BufferUsage,
) -> Option<()>
{