webgpu: Align writeBuffer with spec (#33147)

* Sync `WriteBuffer`

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Set good expectations

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Change assert to debug_assert

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Samson 2024-08-21 13:46:23 +02:00 committed by GitHub
parent 3b8c638a84
commit 65bd5a3b99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 24 additions and 37 deletions

View file

@ -1242,7 +1242,6 @@ impl WGPU {
data,
} => {
let global = &self.global;
//TODO: Report result to content process
let result = gfx_select!(queue_id => global.queue_write_buffer(
queue_id,
buffer_id,