dawn-cmake/include/dawn
Stephen White fed6b6b35b Turn AdapterBase into a wrapper class.
Change AdapterBase from an alias to PhysicalDeviceBase to a thin
wrapper class holding a ref to a PhysicalDeviceBase. This way,
mutiple AdapterBases can point at the same PhysicalDeviceBase.

For now, InstanceBase wraps all PhysicalDeviceBases discovered by a
backend in a single AdapterBase. In the future, this relationship will
become many-to-one.

Since Devices now maintain a ref on the AdapterBase wrapper (in order to
query toggles, etc), PhysicalDeviceBase::CreateDeviceImpl() now takes
the AdapterBase as an argument, so that the PhysicalDeviceBase knows
which AdapterBase to vend a Device for.

Note that the Toggles also still remain on the PhysicalDeviceBase, to
be moved up to the AdapterBase in a future change.

Bug: dawn:1774
Change-Id: Idef5d24fbd66d8552959230e246e453abddcc736
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/131001
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2023-05-03 01:29:44 +00:00
..
native Turn AdapterBase into a wrapper class. 2023-05-03 01:29:44 +00:00
platform Add dawn version hash to cache keys. 2022-06-24 23:39:49 +00:00
wire Run ./tools/format 2022-11-18 11:57:37 +00:00
BUILD.gn Remove dawn_wsi.h 2023-04-07 13:33:26 +00:00
EnumClassBitmasks.h Make EnumClassBitmask's BoolConvertible constructor explicit. 2023-01-30 13:51:32 +00:00
dawn_proc.h Enable build/header_guard 2022-04-11 18:30:50 +00:00
dawn_thread_dispatch_proc.h Enable build/header_guard 2022-04-11 18:30:50 +00:00