gpu: make setBindGroup methods use slice helper API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-11 13:05:24 -07:00 committed by Stephen Gutekanst
parent b369635193
commit 5d88387dac
7 changed files with 35 additions and 16 deletions

View file

@ -155,10 +155,13 @@ The slice helpers are:
* `Buffer.getConstMappedRange`
* `Buffer.getMappedRange`
* `CommandEncoder.writeBuffer`
* `ComputePassEncoder.setBindGroup`
* `Device.enumerateFeaturesOwned`
* `Queue.writeTexture`
* `Queue.writeBuffer`
* `RenderPassEncoder.executeBundles`
* `RenderBundleEncoder.setBindGroup`
* `RenderPassEncoder.setBindGroup`
### Typed callbacks
@ -220,7 +223,4 @@ There may be other opportunities for helpers, to improve the existing APIs, or a
The following are definitive candidates for helpers we haven't implemented yet:
* `gpu.ComputePassEncoder.setBindGroup` (slice param)
* `gpu.RenderBundleEncoder.setBindGroup` (slice param)
* `gpu.RenderPassEncoder.setBindGroup` (slice param)
* Other `next_in_chain` extensions (look at dawn.json after the bug to get this documented was fixed)
* Other `next_in_chain` extensions (marked with a `// TODO` already)