Add ref release for webgpu.h

Change-Id: Id1a7baea8c77a98dab39bcf3449c9ec81df255b9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/70022
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Corentin Wallez 2023-05-23 09:39:29 +00:00 committed by Dawn LUCI CQ
parent 8d45d44905
commit 2c89f5c5b7
1 changed files with 2 additions and 8 deletions

View File

@ -819,16 +819,10 @@ def as_formatType(typ):
def c_methods(params, typ): def c_methods(params, typ):
return typ.methods + [ return typ.methods + [
x for x in [ Method(Name('reference'), params['types']['void'], [], False, {}),
Method(Name('reference'), params['types']['void'], [], False, Method(Name('release'), params['types']['void'], [], False, {}),
{'tags': ['dawn', 'emscripten']}),
Method(Name('release'), params['types']['void'], [], False,
{'tags': ['dawn', 'emscripten']}),
] if item_is_enabled(params['enabled_tags'], x.json_data)
and not item_is_disabled(params['disabled_tags'], x.json_data)
] ]
def get_c_methods_sorted_by_name(api_params): def get_c_methods_sorted_by_name(api_params):
unsorted = [(as_MethodSuffix(typ.name, method.name), typ, method) \ unsorted = [(as_MethodSuffix(typ.name, method.name), typ, method) \
for typ in api_params['by_category']['object'] \ for typ in api_params['by_category']['object'] \