updated flow chart

This commit is contained in:
2019-10-17 23:28:37 -07:00
parent f1e8990dba
commit 88b078d1ff
3 changed files with 8 additions and 11 deletions

View File

@@ -14,15 +14,13 @@ pub struct RuntimeVertexDef {
impl RuntimeVertexDef {
pub fn from_primitive(primitive: u32) -> RuntimeVertexDef {
// use gltf::mesh::Attribute;
// use gltf::accessor::{DataType, Dimensions};
//
let mut buffers = Vec::new();
let mut vertex_buffer_ids = Vec::new();
let mut attributes = Vec::new();
let mut num_vertices = u32::max_value();
//
// for (attribute_id, attribute) in primitive.attributes().enumerate() {
// let (name, accessor) = match attribute.clone() {
// Attribute::Positions(accessor) => ("i_position".to_owned(), accessor),