dawn-cmake/generator/templates
Austin Eng 5ad5557667 Remove special-casing of device reference/release in the wire
The wire's device is externally owned so reference/release were no-ops.
To unify the code paths, remove the special casing and instead
take an extra ref on the device the wire server is created with. This
is functionally equivalent and will allow both the current wire code,
and the incoming change to allow multiple device/adapter creation to
both work.

This CL also makes it possible for the client to destroy the device
before child objects.
A follow-up CL will mitigate this on the server side.

Bug: dawn:384
Change-Id: Ic5427074469012dccf8689ec95a848e6ba2c1fc2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/37001
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Jiawei Shao <jiawei.shao@intel.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
2021-01-13 19:23:48 +00:00
..
dawn_native Fix RPDesc::occlusionQuerySet not defaulting to nullptr 2020-10-29 13:09:12 +00:00
dawn_wire Remove special-casing of device reference/release in the wire 2021-01-13 19:23:48 +00:00
opengl Refactor OpenGLVersion out of OpenGLFunctions. 2020-11-23 18:50:42 +00:00
.clang-format Add .clang-format files and format more files 2020-07-15 19:51:17 +00:00
dawn_proc.c Add Instance and CreateInstance to webgpu.h 2020-01-10 13:06:48 +00:00
dawn_proc_table.h Reland "Add a per-thread proc table using thread local storage" 2020-10-06 16:13:42 +00:00
dawn_thread_dispatch_proc.cpp Reland "Add a per-thread proc table using thread local storage" 2020-10-06 16:13:42 +00:00
library_webgpu_enum_tables.js Generators for Emscripten 2020-01-28 23:54:38 +00:00
mock_webgpu.cpp Autogenerate all of the wire callback mocks 2020-12-17 17:59:37 +00:00
mock_webgpu.h Autogenerate all of the wire callback mocks 2020-12-17 17:59:37 +00:00
webgpu.h Rename STRIDE_UNDEFINED to COPY_STRIDE_UNDEFINED 2020-12-16 07:53:30 +00:00
webgpu_cpp.cpp Niceify formatting in webgpu_cpp 2020-07-30 19:02:43 +00:00
webgpu_cpp.h Rename STRIDE_UNDEFINED to COPY_STRIDE_UNDEFINED 2020-12-16 07:53:30 +00:00
webgpu_struct_info.json Fixes for Emscripten generators 2020-07-15 08:57:49 +00:00