From 629a513dfc60e6ee4c8b25ba37cb49e4350c3b37 Mon Sep 17 00:00:00 2001 From: mitchellhansen Date: Mon, 20 Jan 2020 22:43:43 -0800 Subject: [PATCH] . --- src/canvas/shader/dynamic_vertex.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/canvas/shader/dynamic_vertex.rs b/src/canvas/shader/dynamic_vertex.rs index 12db11a7..38fc5232 100644 --- a/src/canvas/shader/dynamic_vertex.rs +++ b/src/canvas/shader/dynamic_vertex.rs @@ -16,13 +16,13 @@ pub struct RuntimeVertexDef { impl RuntimeVertexDef { /// primitive is an input value or struct which can then describe - /// + /// these damn values that are required for inputting them into vulkan pub fn from_primitive(primitive: u32) -> RuntimeVertexDef { + // Literally every value in this class let mut buffers = Vec::new(); let mut vertex_buffer_ids = Vec::new(); let mut attributes = Vec::new(); - let mut num_vertices = u32::max_value(); @@ -125,6 +125,7 @@ unsafe impl VertexDefinition for RuntimeVertexDef } /// I don't know what the fuck is going on here... It just repackages the buffs +/// Needs the num vertices unsafe impl VertexSource>> for RuntimeVertexDef { fn decode(&self, bufs: Vec>) -> (Vec>, usize, usize)