Wgpu-rs: `set_index_buffer` should accept index format

Created on 8 Nov 2020  路  2Comments  路  Source: gfx-rs/wgpu-rs

We should accept an index format in set_index_buffer to match the upstream API https://github.com/gpuweb/gpuweb/blob/0480646a43fabd7de42d62ee394e085c8824c975/spec/index.bs#L5441

We'll need to:

  1. update the API to accept this
  2. change the native backend to use it
  3. update the WebIDL in wasm-bindgen and use the new signature in the web backend (we can do this after 1 and 2 are complete)
enhancement help wanted

All 2 comments

In addition, render pipeline descriptor should have the index format as optional.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

donpdonp picture donpdonp  路  3Comments

roman-holovin picture roman-holovin  路  4Comments

JonathanWoollett-Light picture JonathanWoollett-Light  路  4Comments

JoshuaBatty picture JoshuaBatty  路  5Comments

OptimisticPeach picture OptimisticPeach  路  3Comments