[webgpu-headers] Adds macros to renames "count" fields.

- No operational changes.

github.com/webgpu-native/webgpu-headers/issues/193

Change-Id: Ifd94af829abdc9ee6d1da6253bc0f05f68e3deac
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/739596
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
diff --git a/tools/graphite/dawn/GraphiteDawnTestContext.cpp b/tools/graphite/dawn/GraphiteDawnTestContext.cpp
index 0e1a294..799d000 100644
--- a/tools/graphite/dawn/GraphiteDawnTestContext.cpp
+++ b/tools/graphite/dawn/GraphiteDawnTestContext.cpp
@@ -70,7 +70,11 @@
         wgpu::FeatureName::DepthClipControl,
     };
     wgpu::DeviceDescriptor desc;
+#ifdef WGPU_BREAKING_CHANGE_COUNT_RENAME
+    desc.requiredFeatureCount = features.size();
+#else
     desc.requiredFeaturesCount = features.size();
+#endif
     desc.requiredFeatures      = features.data();
 
 #if !defined(SK_DEBUG)
@@ -78,7 +82,11 @@
         std::array<const char*, 1> toggles = {
             "skip_validation",
         };
+#ifdef WGPU_BREAKING_CHANGE_COUNT_RENAME
+        deviceTogglesDesc.enabledToggleCount = toggles.size();
+#else
         deviceTogglesDesc.enabledTogglesCount = toggles.size();
+#endif
         deviceTogglesDesc.enabledToggles      = toggles.data();
         desc.nextInChain                      = &deviceTogglesDesc;
 #endif