mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
`RenderBundleEncoder::set_index_buffer` and `set_vertex_buffer` interpret a `size` of `None` to mean "from the given offset to the end of the buffer", but `std::num::NonZeroU64::new` produces `None` when its argument is zero, which is quite different. Fix this similarly to the way it's handled in `op_webgpu_render_pass_set_index_buffer`. The WebGPU spec says this should work; filed as #3170.