Add C overload for dawn_native::Adapter::GetProperties

This helps Chromium move to using this method and stop using
dawn_native::AdapterType/BackendType.

Bug: dawn:824
Change-Id: I9e16edd271d3406bc45e3b9fd472bd94bbf53b30
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/75583
Auto-Submit: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Brandon Jones <bajones@chromium.org>
Commit-Queue: Brandon Jones <bajones@chromium.org>
diff --git a/src/dawn_native/DawnNative.cpp b/src/dawn_native/DawnNative.cpp
index 03afef2..0156afb 100644
--- a/src/dawn_native/DawnNative.cpp
+++ b/src/dawn_native/DawnNative.cpp
@@ -94,6 +94,10 @@
         properties->name = mImpl->GetPCIInfo().name.c_str();
     }
 
+    void Adapter::GetProperties(WGPUAdapterProperties* properties) const {
+        GetProperties(reinterpret_cast<wgpu::AdapterProperties*>(properties));
+    }
+
     BackendType Adapter::GetBackendType() const {
         switch (mImpl->GetBackendType()) {
             case wgpu::BackendType::D3D12:
diff --git a/src/include/dawn_native/DawnNative.h b/src/include/dawn_native/DawnNative.h
index 79f6fa7..f95f128 100644
--- a/src/include/dawn_native/DawnNative.h
+++ b/src/include/dawn_native/DawnNative.h
@@ -108,6 +108,7 @@
         // Essentially webgpu.h's wgpuAdapterGetProperties while we don't have WGPUAdapter in
         // dawn.json
         void GetProperties(wgpu::AdapterProperties* properties) const;
+        void GetProperties(WGPUAdapterProperties* properties) const;
 
         std::vector<const char*> GetSupportedExtensions() const;
         std::vector<const char*> GetSupportedFeatures() const;