From 680900a9caccfead5eb5296afa4b168ba6464804 Mon Sep 17 00:00:00 2001 From: David Neto Date: Thu, 30 Dec 2021 20:16:33 +0000 Subject: [PATCH] Fix dawn.node compilation Fix the use of DawnTogglesDeviceDescriptor. The dawn.node GPUAdaptor binindg code is already in the wgpu namespace so use DawnTogglesDeviceDescriptor directly instead of prefixing it with wgpu:: Bug: dawn:160 Change-Id: I01ab76983aabe150df5769764735d90e4f1e73bb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/74840 Auto-Submit: David Neto Reviewed-by: Austin Eng Commit-Queue: Austin Eng --- src/dawn_node/binding/GPUAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dawn_node/binding/GPUAdapter.cpp b/src/dawn_node/binding/GPUAdapter.cpp index 4b4def5232..8de1269e1a 100644 --- a/src/dawn_node/binding/GPUAdapter.cpp +++ b/src/dawn_node/binding/GPUAdapter.cpp @@ -218,7 +218,7 @@ namespace wgpu { namespace binding { desc.requiredFeaturesCount = requiredFeatures.size(); desc.requiredFeatures = requiredFeatures.data(); - wgpu::DawnDeviceTogglesDescriptor togglesDesc = {}; + DawnTogglesDeviceDescriptor togglesDesc = {}; desc.nextInChain = &togglesDesc; togglesDesc.forceEnabledTogglesCount = forceEnabledToggles.size(); togglesDesc.forceEnabledToggles = forceEnabledToggles.data();