dawn-cmake/generator/templates
Corentin Wallez 00d6215be9 dawn_wire/client: Add ToAPI and FromAPI helpers.
In the client code, we often need to translate between WGPUObject (the
API type) to Object* (the internal client type). This added a bunch of
reinterpret_casts that make the code less readable and more fragile.

This CL adds FromAPI and ToAPI helpers in the autogenerated
ApiObjects_autogen.h header, that convert between API and internal types
in a type-safe way.

Bug: dawn:445

Change-Id: Ia1bf624f0315ced496b95cb660adf88abd916d71
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/24063
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Stephen White <senorblanco@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
2020-06-30 18:39:50 +00:00
..
dawn_native Support chained extension structs on the wire 2020-04-03 17:37:48 +00:00
dawn_wire dawn_wire/client: Add ToAPI and FromAPI helpers. 2020-06-30 18:39:50 +00:00
opengl Separate device lost from internal errors. 2020-04-01 12:07:43 +00:00
dawn_proc.c Add Instance and CreateInstance to webgpu.h 2020-01-10 13:06:48 +00:00
dawn_proc_table.h Add Instance and CreateInstance to webgpu.h 2020-01-10 13:06:48 +00:00
library_webgpu_enum_tables.js Generators for Emscripten 2020-01-28 23:54:38 +00:00
mock_webgpu.cpp Factor compilation of ~MockProcTable in mock_webgpu.cpp 2020-04-16 18:08:23 +00:00
mock_webgpu.h Factor compilation of ~MockProcTable in mock_webgpu.cpp 2020-04-16 18:08:23 +00:00
webgpu.h Remove deprecated "Binding" types and members 2020-05-13 17:05:55 +00:00
webgpu_cpp.cpp Update WGPUChainedStruct usage to match webgpu.h 2020-01-25 09:30:40 +00:00
webgpu_cpp.h Remove deprecated "Binding" types and members 2020-05-13 17:05:55 +00:00
webgpu_struct_info.json Generators for Emscripten 2020-01-28 23:54:38 +00:00