dawn-cmake/generator/templates/dawn_native
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
..
ChainUtils.cpp Add helper functions to iterate over ChainedStructs 2021-04-22 17:49:42 +00:00
ChainUtils.h Improve validation messages for surface/swap chain 2021-10-21 19:25:04 +00:00
ObjectType.cpp Refactors dawn_native objects for list tracking and adds destroy skeleton API. 2021-09-28 15:40:01 +00:00
ObjectType.h Fix build on GCC: Add missing include 2021-09-28 19:52:35 +00:00
ProcTable.cpp Add a build target for a webgpu_dawn library 2021-12-09 20:03:48 +00:00
ValidationUtils.cpp Make dawn_native use the webgpu.h header 2019-10-23 11:57:41 +00:00
ValidationUtils.h Make dawn_native use the webgpu.h header 2019-10-23 11:57:41 +00:00
api_dawn_native_proc.cpp Add a build target for a webgpu_dawn library 2021-12-09 20:03:48 +00:00
dawn_platform.h Don't connect to backends that aren't needed 2021-12-02 18:12:57 +00:00
webgpu_absl_format.cpp Make validation error formatting more consistent 2021-11-03 01:31:19 +00:00
webgpu_absl_format.h Improve validation errors for ShaderModule 2021-10-08 10:16:27 +00:00
wgpu_structs.cpp Add a mechanism for finding the best tier for a set of limits 2021-09-28 01:04:10 +00:00
wgpu_structs.h Add basic or stub implementations of upstream instance/adapter APIs 2021-12-14 23:22:46 +00:00