updated flow chart

master
mitchellhansen 5 years ago
parent f1e8990dba
commit 88b078d1ff

@ -1 +1 @@
<mxfile host="Electron" modified="2019-10-18T02:50:39.490Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/12.1.0 Chrome/76.0.3809.139 Electron/6.0.7 Safari/537.36" etag="gdkInc9XTT3MuKbpz291" version="12.1.0" type="device" pages="1"><diagram id="207_h35IBA5InrABCH76" name="Page-1">7Vxdb6M4FP01kWYeUgEGkjw2yXxJnZ1qUu1sn1YOOOCpgyPjNMn8+rXBhIBJm26hkCpS1cEX44Rz7r3n+sK0BybL7RcGV+F36iPSswx/2wPTnmVZQ9sR/0jLLrWYA2eUWgKGfWXLDTP8Bymjoaxr7KO4MJFTSjheFY0ejSLk8YINMkY3xWkLSoqfuoIB0gwzDxLd+gv7PFTWkWXkJ74iHITZR1uGOrOE2WxliEPo082BCXzqgQmjlKdHy+0EEQlfBkx63ecjZ/ffjKGIn3LBL3B/99fsAdyEs+sfaOM+LtZR301XeYRkre74Dm25+sJ8l8EQb/CSwEiMxgsa8Zk6Y4oxJDiIxLEnvgZiwvCIGMcCwWt1gtOVsHohJv4N3NG1/LIxh95DNhqHlOE/YllI1JriNOPKGSy3MGMmrxRmQ1gZisWc2wwBs2T6DreFiTcw5srgUULgKsbz/W0sIQtwNKac06WapKARt4O2RzE390yKIEB0iTjbiSnqgpHiXrk/yNx6c+BLrrKFB240VLxA5b7BfuWcYHGgOH4B3wON7541loGBkYyMaxlfuxXSHIBLr5DEMPqAJpRQwfQ0oqlHYEJKpswpCFrwoy4Rr6CHo+AmmTO1c8tPBYQ0UXHtgiRxE2LfR5Gkk3LIYcqdJGpFccQTpJyx+BF4Towrp+eILz4RYzMfix85nfEJjcS9QJzQiIRjbJB0jtM4Px5JuiMo5i33NOKtpogfVhBf4pjghLuU4yzbmf+L4KWgiqCc0TtJ+LRvaqwDnXVQwTCBc0RuaYw5pnJ9ls4tMd8WuY51YlQ3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oQgx7B0Wd8U2+o7mQWNYKuoOGvl0F+tCaA9etB3SBnV4RXoGR6zjmwLJNMBiZbZOgt3RzEipT0iEjFXnFI2v5X5LFx6oU88oM0xZxXUtIeiM55ynT6fMOlXJ6ujINYNtDa+AMXav1OHlZW1q9c+jDOExgN+uBuLtdUlB69DIYgKvBCOQUFhc8tWdaXravRVjDTVNH532fFUXWg0sZPOnvJALTnCcOx+vFAonEaND5b+Tx+HUxWUsFkD2Mai2IHL0bsQezhFd7cLWHjt5EOIJO6760LybbA0vvITwRlziPy3mGJH4PatkA/mKY/9WVNI3mf70GfPoP</diagram></mxfile> <mxfile host="Electron" modified="2019-10-18T06:15:49.913Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/12.1.0 Chrome/76.0.3809.139 Electron/6.0.7 Safari/537.36" etag="oAf7Y7yCCX11Px1P3c5p" version="12.1.0" type="device" pages="1"><diagram id="207_h35IBA5InrABCH76" name="Page-1">7V1tb5s6FP41kbYPicDmLR/bZt0mdXfVUt3dfrpywEnYCI6IszT79dcGEwImC7uF2EyZqg0fDAnPc958fOgG8G718j5B6+UnEuBoAIzgZQAnAwDgeGyyf7hkn0mAZbiZZJGEQSYzC8E0/ImF0BDSbRjgTWkiJSSi4bos9EkcY5+WZChJyK48bU6i8qeu0QJLgqmPIln6NQzoUkjHwChOfMDhYpl/NDDEmRXKZwvBZokCsjsSwXcDeJcQQrOj1csdjjh8OTDZdfcnzh6+WYJj2uSCr/D56a/pd/iwnN58xjvnx3wbD53sLj9QtBVP/IRfqPjCdJ/DsNmFqwjFbHQ7JzGdijMmG6MoXMTs2GdfAydM8AMnNGQI3ogTlKyZ1F+GUfCA9mTLv+yGIv97PrpdkiT8yW6LInFPdjqhQhmAU5ox5VcyscGkCd6wOY85AmZF9Am9lCY+oA0VAp9EEVpvwtnhMVYoWYTxLaGUrMQkAQ17HPxyEnPzwCQzAkxWmCZ7NkVcMBbcC/WHuVrvjnTJEbL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44G+gdiByljTZ9M6LGLRlqjUhuyeh9QRyOy3aUv8F3AUNiw+K/isq2I4v/cgu++w8=</diagram></mxfile>

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

@ -160,17 +160,16 @@ pub fn main() {
compu_frame.add(compute_buffer.clone(), compute_kernel.clone()); compu_frame.add(compute_buffer.clone(), compute_kernel.clone());
compu_frame.add_with_image_swap(compute_buffer.clone(), compute_kernel.clone(), &compu_sprite1); compu_frame.add_with_image_swap(compute_buffer.clone(), compute_kernel.clone(), &compu_sprite1);
// if elapsed_time > (count) as f32 {
// count += 1;
// compu_frame.add_chained(compute_buffer.clone(), compute_buffer.clone(), compute_kernel.clone());
// }
let mut canvas = CanvasFrame::new(); let mut canvas = CanvasFrame::new();
canvas.draw(&funky_sprite); canvas.draw(&funky_sprite);
canvas.draw(&test_polygon); canvas.draw(&test_polygon);
// let mut gencanvas = GenericCanvasFrame::new();
// gencanvas.draw(&text_sprite);
{ {

Loading…
Cancel
Save