dawn-cmake/generator/templates
Austin Eng 5397f9f9d0 Add basic or stub implementations of upstream instance/adapter APIs
Adds upstream instance/adapter APIs. In dawn_native, the basic APIs
to get limits and properties are implemented, but requestAdapter and
requestDevice are not. In dawn_wire, nothing is implemented, but the
stub definitions are put in place, as well the mechanism to inject
WGPUInstance into the wire.

There is a lifetime concern with WGPUInstance and WGPUAdapter on the
wire in that we need to ensure that the client cannot free the
instance or adapter while they are in use. In the near term, this is
not a problem because Chromium will always hold ownership of the
instance and adapters outside of the wire - i.e. it won't inject and
then release ownership.

Bug: dawn:160, dawn:689
Change-Id: Id904272983f23babc9177bc163d78c4fa1044da0
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/71520
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
2021-12-14 23:22:46 +00:00
..
dawn_native Add basic or stub implementations of upstream instance/adapter APIs 2021-12-14 23:22:46 +00:00
dawn_wire dawn_wire: Directly use the data in deserialized buffer when possible 2021-12-10 02:05:28 +00:00
opengl Implement EGLImage external texture API for GL. 2021-06-03 16:19:16 +00:00
.clang-format Add .clang-format files and format more files 2020-07-15 19:51:17 +00:00
BSD_LICENSE Further api.h license issue fixes 2021-12-14 01:06:15 +00:00
api.h Further api.h license issue fixes 2021-12-14 01:06:15 +00:00
api_cpp.cpp Template hardcode functions in webgpu_cpp.cpp 2021-12-14 02:20:15 +00:00
api_cpp.h Add basic or stub implementations of upstream instance/adapter APIs 2021-12-14 23:22:46 +00:00
api_cpp_print.h Make templates webgpu_cpp.h and webgpu_cpp_print.h flexible 2021-12-07 00:46:35 +00:00
dawn_proc.c Replace hardcode functions in templates 2021-12-10 01:35:19 +00:00
dawn_proc_table.h Make the prefix of proc table configurable in api.json 2021-12-05 05:29:44 +00:00
dawn_thread_dispatch_proc.cpp Replace hardcode functions in templates 2021-12-10 01:35:19 +00:00
library_webgpu_enum_tables.js Generate multiple variants of webgpu.h header 2021-09-17 19:44:43 +00:00
mock_webgpu.cpp Add a category named function in dawn.json 2021-12-02 07:41:21 +00:00
mock_webgpu.h Add a category named function in dawn.json 2021-12-02 07:41:21 +00:00
webgpu_struct_info.json Generate multiple variants of webgpu.h header 2021-09-17 19:44:43 +00:00