gpu: make Queue.writeTexture use a slice helper

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-11 05:14:04 -07:00 committed by Stephen Gutekanst
parent 726bdf3fba
commit 77e96864ea
2 changed files with 17 additions and 3 deletions

View file

@ -152,6 +152,7 @@ Some WebGPU APIs expose slices as pointers and lengths, we either wrap these to
The slice helpers are:
* `Adapter.enumerateFeaturesOwned`
* `Queue.writeTexture`
### Typed callbacks
@ -219,7 +220,6 @@ The following are definitive candidates for helpers we haven't implemented yet:
* `gpu.ComputePassEncoder.setBindGroup` (slice param)
* `gpu.Device.enumerateFeatures` (owned slice)
* `gpu.Queue.writeBuffer` (slices)
* `gpu.Queue.writeTexture` (slices)
* `gpu.RenderBundleEncoder.setBindGroup` (slice param)
* `gpu.RenderPassEncoder.executeBundles` (slice param)
* `gpu.RenderPassEncoder.setBindGroup` (slice param)