Skip to content

Commit

Permalink
fix: blit example use trianglelist and 3 vertices
Browse files Browse the repository at this point in the history
  • Loading branch information
CurryPseudo authored and kvark committed Feb 13, 2022
1 parent 48f8811 commit a604535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu/examples/mipmap/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit a604535

Please sign in to comment.