From e347d4fd51b6a74ae68fa7281c345ba554dde5eb Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 1 Sep 2023 15:55:51 -0700 Subject: [PATCH] vertex index buffer is very cool --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 1a904c7..5d36a9f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -619,6 +619,8 @@ impl strafe_client::framework::Example for Skybox { } rpass.set_pipeline(&self.ground_pipeline); + //rpass.set_index_buffer(&[0u16,1,2,1,2,3][..] as wgpu::BufferSlice, wgpu::IndexFormat::Uint16); + //rpass.draw_indexed(0..4, 0, 0..1); rpass.draw(0..6, 0..1); rpass.set_pipeline(&self.sky_pipeline);