Add label to command buffer and compute pass descriptors

This CL adds an optional label to command buffer descriptor and compute
pass descriptor. It is not used yet but needed from the WebGPU side.

Bug: dawn:22
Change-Id: Id4247882a1e3cc63a007adf41c2539764f1be677
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11601
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: François Beaufort <beaufort.francois@gmail.com>
This commit is contained in:
François Beaufort 2019-09-25 13:56:48 +00:00 committed by Commit Bot service account
parent cf0e9d93f1
commit 6ac5a9250d
1 changed files with 6 additions and 2 deletions

View File

@ -252,7 +252,9 @@
"command buffer descriptor": { "command buffer descriptor": {
"category": "structure", "category": "structure",
"extensible": true, "extensible": true,
"members": [] "members": [
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}
]
}, },
"command encoder": { "command encoder": {
"category": "object", "category": "object",
@ -354,7 +356,9 @@
"compute pass descriptor": { "compute pass descriptor": {
"category": "structure", "category": "structure",
"extensible": true, "extensible": true,
"members": [] "members": [
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true}
]
}, },
"compute pass encoder": { "compute pass encoder": {
"category": "object", "category": "object",