vertex index buffer is very cool

This commit is contained in:
Quaternions 2023-09-01 15:55:51 -07:00
parent ad46418e79
commit e347d4fd51

View File

@ -619,6 +619,8 @@ impl strafe_client::framework::Example for Skybox {
} }
rpass.set_pipeline(&self.ground_pipeline); 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.draw(0..6, 0..1);
rpass.set_pipeline(&self.sky_pipeline); rpass.set_pipeline(&self.sky_pipeline);