Deprecate Buffer::SetSubData in favor of Queue::WriteBuffer
Bug: dawn:22
Change-Id: I00b3cd65ac4eb494b05918251f4b3b2bcaf24f71
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/22200
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
diff --git a/dawn.json b/dawn.json
index d44c029..d398a4e 100644
--- a/dawn.json
+++ b/dawn.json
@@ -902,6 +902,15 @@
"args": [
{"name": "descriptor", "type": "fence descriptor", "annotation": "const*", "optional": true}
]
+ },
+ {
+ "name": "write buffer",
+ "args": [
+ {"name": "buffer", "type": "buffer"},
+ {"name": "buffer offset", "type": "uint64_t"},
+ {"name": "data", "type": "void", "annotation": "const*", "length": "size"},
+ {"name": "size", "type": "size_t"}
+ ]
}
]
},
@@ -1636,6 +1645,9 @@
"int32_t": {
"category": "native"
},
+ "size_t": {
+ "category": "native"
+ },
"uint64_t": {
"category": "native"
},