Deprecate BG[L]Desc::binding[s|Count] in favor of entr[ies|yCount]
Bug: dawn:22
Change-Id: I02188d70103a1bee25b9b2024a2ea9f785656236
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19862
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/dawn.json b/dawn.json
index 7564e53..29b99c7 100644
--- a/dawn.json
+++ b/dawn.json
@@ -77,8 +77,10 @@
"members": [
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
{"name": "layout", "type": "bind group layout"},
- {"name": "binding count", "type": "uint32_t"},
- {"name": "bindings", "type": "bind group entry", "annotation": "const*", "length": "binding count"}
+ {"name": "binding count", "type": "uint32_t", "default": 0},
+ {"name": "bindings", "type": "bind group entry", "annotation": "const*", "length": "binding count"},
+ {"name": "entry count", "type": "uint32_t", "default": 0},
+ {"name": "entries", "type": "bind group entry", "annotation": "const*", "length": "entry count"}
]
},
"bind group layout": {
@@ -104,8 +106,10 @@
"extensible": true,
"members": [
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
- {"name": "binding count", "type": "uint32_t"},
- {"name": "bindings", "type": "bind group layout entry", "annotation": "const*", "length": "binding count"}
+ {"name": "binding count", "type": "uint32_t", "default": 0},
+ {"name": "bindings", "type": "bind group layout entry", "annotation": "const*", "length": "binding count"},
+ {"name": "entry count", "type": "uint32_t", "default": 0},
+ {"name": "entries", "type": "bind group layout entry", "annotation": "const*", "length": "entry count"}
]
},
"binding type": {