hacked in enough to actually push the errors out to the load_font function

master
mitchellhansen 5 years ago
parent 2bc9ebdc6b
commit da836f318e

@ -32,7 +32,7 @@ impl RuntimeVertexDef {
// https://github.com/tomaka/vulkano-examples/blob/gltf/gltf/gltf_system.rs
num_vertices = 3;
// for (attribute_id, attribute) in primitive.attributes().enumerate() {
@ -152,11 +152,18 @@ unsafe impl<I> VertexDefinition<I> for RuntimeVertexDef
AttributeInfo { offset: 0, format: binding.format }));
}
// The number of actually bound inputs
let buffers = vec![
(0, mem::size_of::<i32>(), InputRate::Vertex),
(1, mem::size_of::<i32>(), InputRate::Vertex),
(2, mem::size_of::<i32>(), InputRate::Vertex),
(3, mem::size_of::<i32>(), InputRate::Vertex),
(4, mem::size_of::<i32>(), InputRate::Vertex),
(5, mem::size_of::<i32>(), InputRate::Vertex),
(6, mem::size_of::<i32>(), InputRate::Vertex),
].into_iter();
Ok((buffers_iter, attributes.into_iter()))
Ok((buffers, attributes.into_iter()))
}
}

Loading…
Cancel
Save