summaryrefslogtreecommitdiffstats
path: root/wgpu/src/triangle.rs
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu/src/triangle.rs')
-rw-r--r--wgpu/src/triangle.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs
index d632c26c..f1770e9a 100644
--- a/wgpu/src/triangle.rs
+++ b/wgpu/src/triangle.rs
@@ -92,7 +92,6 @@ impl Pipeline {
) {
//count the total number of vertices & indices we need to handle
let (total_vertices, total_indices) = meshes.attribute_count();
- println!("total vertices: {}, total indices: {}", total_vertices, total_indices);
//Only create buffers if they need to be re-sized or don't exist
if needs_recreate(&self.vertex_buffer, total_vertices) {
@@ -136,14 +135,11 @@ impl Pipeline {
mesh.origin.y,
);
- println!("Mesh attribute data: Vertex: {:?}, Index: {:?}", mesh.buffers.vertices, mesh.buffers.indices);
-
let vertices = bytemuck::cast_slice(&mesh.buffers.vertices);
let indices = bytemuck::cast_slice(&mesh.buffers.indices);
//TODO: it's (probably) more efficient to reduce this write command and
// iterate first and then upload
- println!("vertex buffer len: {}, index length: {}", vertices.len(), indices.len());
vertex_buffer.write(offset_v, vertices);
index_buffer.write(offset_i, indices);