Skip to content

Commit 2207dd1

Browse files
committed
Set strip_index_format
The WebGPU spec mandates that strip_index_format is set even though we're not using draw_indexed(). wgpu-rs now also validates that since gfx-rs/wgpu#2177.
1 parent 215f3be commit 2207dd1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pipeline.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ fn build<D>(
308308
primitive: wgpu::PrimitiveState {
309309
topology: wgpu::PrimitiveTopology::TriangleStrip,
310310
front_face: wgpu::FrontFace::Cw,
311+
strip_index_format: Some(wgpu::IndexFormat::Uint16),
311312
..Default::default()
312313
},
313314
depth_stencil,

0 commit comments

Comments
 (0)