mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
Add WGPUAdapterProperties and expose it in DawnNative
The dawn_native::Adapter::GetPCIInfo/GetBackendType/GetDeviceType methods are now deprecated in favor of a method returning a webgpu.h AdapterProperties structure. Deprecated function are still available to avoid breaking Chromium or Skia compilation. This reduces the difference between dawn.json and webgpu.h BUG=dawn:160 Change-Id: Ib68fe1c4d1d87676c01c212c91f80fdd26056c56 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/14541 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
5fc2c82c11
commit
f12c9dba6d
@@ -26,9 +26,9 @@ namespace dawn_native { namespace null {
|
||||
|
||||
// Implementation of pre-Device objects: the null adapter, null backend connection and Connect()
|
||||
|
||||
Adapter::Adapter(InstanceBase* instance) : AdapterBase(instance, BackendType::Null) {
|
||||
Adapter::Adapter(InstanceBase* instance) : AdapterBase(instance, wgpu::BackendType::Null) {
|
||||
mPCIInfo.name = "Null backend";
|
||||
mDeviceType = DeviceType::CPU;
|
||||
mAdapterType = wgpu::AdapterType::CPU;
|
||||
|
||||
// Enable all extensions by default for the convenience of tests.
|
||||
mSupportedExtensions.extensionsBitSet.flip();
|
||||
@@ -47,7 +47,7 @@ namespace dawn_native { namespace null {
|
||||
|
||||
class Backend : public BackendConnection {
|
||||
public:
|
||||
Backend(InstanceBase* instance) : BackendConnection(instance, BackendType::Null) {
|
||||
Backend(InstanceBase* instance) : BackendConnection(instance, wgpu::BackendType::Null) {
|
||||
}
|
||||
|
||||
std::vector<std::unique_ptr<AdapterBase>> DiscoverDefaultAdapters() override {
|
||||
|
||||
Reference in New Issue
Block a user