Add new errors to WGPUBufferMapAsyncStatusStatus

This CL adds "mapping already pending", "offset out of range",
"size out of range", and "validation error".
Those errors will be used in future CLs both in Dawn and Blink.

Bug: chromium:1431622

Change-Id: I70121f49542042b47e30f4acc67a8e9a869fc452
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/130260
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Fr <beaufort.francois@gmail.com>
This commit is contained in:
François Beaufort 2023-04-28 17:07:45 +00:00 committed by Dawn LUCI CQ
parent d7a4483148
commit ad571cfb7c
1 changed files with 5 additions and 1 deletions

View File

@ -489,7 +489,11 @@
{"value": 2, "name": "unknown"},
{"value": 3, "name": "device lost"},
{"value": 4, "name": "destroyed before callback"},
{"value": 5, "name": "unmapped before callback"}
{"value": 5, "name": "unmapped before callback"},
{"value": 6, "name": "mapping already pending"},
{"value": 7, "name": "offset out of range"},
{"value": 8, "name": "size out of range"},
{"value": 9, "name": "validation error"}
]
},
"buffer map state": {