dawn-cmake/include/dawn/native
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
..
D3D11Backend.h d3d11: implement Adaptor, Backend, etc 2023-04-03 21:33:54 +00:00
D3D12Backend.h d3d: move some external image related code to d3d namespace 2023-04-28 16:53:28 +00:00
D3DBackend.h d3d: move some external image related code to d3d namespace 2023-04-28 16:53:28 +00:00
DawnNative.h Turn AdapterBase into a wrapper class. 2023-05-03 01:29:44 +00:00
MetalBackend.h Remove dawn::native::ExternalImageDescriptorIOSurface::plane 2023-05-01 09:01:27 +00:00
NullBackend.h Remove all NativeSwapChain* 2023-04-05 07:24:44 +00:00
OpenGLBackend.h Remove all NativeSwapChain* 2023-04-05 07:24:44 +00:00
VulkanBackend.h Remove all NativeSwapChain* 2023-04-05 07:24:44 +00:00
dawn_native_export.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00