From a0bd494c6385d340225a41e815b6211465a3a511 Mon Sep 17 00:00:00 2001 From: currypseudo Date: Sat, 12 Feb 2022 20:38:08 +0800 Subject: [PATCH] fix: blit example use trianglelist and 3 vertices --- wgpu/examples/mipmap/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu/examples/mipmap/main.rs b/wgpu/examples/mipmap/main.rs index cec4dfbc37..57efe0725a 100644 --- a/wgpu/examples/mipmap/main.rs +++ b/wgpu/examples/mipmap/main.rs @@ -98,7 +98,7 @@ impl Example { targets: &[TEXTURE_FORMAT.into()], }), primitive: wgpu::PrimitiveState { - topology: wgpu::PrimitiveTopology::TriangleStrip, + topology: wgpu::PrimitiveTopology::TriangleList, ..Default::default() }, depth_stencil: None, @@ -174,7 +174,7 @@ impl Example { } rpass.set_pipeline(&pipeline); rpass.set_bind_group(0, &bind_group, &[]); - rpass.draw(0..4, 0..1); + rpass.draw(0..3, 0..1); if let Some(ref query_sets) = query_sets { rpass.write_timestamp(&query_sets.timestamp, timestamp_query_index_base + 1); rpass.end_pipeline_statistics_query();