This commit is contained in:
Piotrek
2021-05-04 20:26:15 +02:00
parent 78d3a43deb
commit 89934ba97c
13 changed files with 68 additions and 78 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
use byteorder::{ByteOrder, LittleEndian};
use rand::prelude::*;
use crate::renderer::buffers::{NODE_TEX_SIZE, NODE_TEX_LEN};
@@ -70,7 +69,7 @@ impl Nodes {
// Data
let nodes = vec![0_u32; NODE_TEX_LEN].into_boxed_slice();
println!("Node buffer size: {} MB", nodes.len() as f32 * 4.0 / 1024.0 / 1024.0);
println!("Nodes size: {} MB", (nodes.len() as f32 * 4.0 / 1024.0 / 1024.0 * 100.0).round() / 100.0);
// Done
Self { nodes, texture, size, bind_layout, bind_group }