From 97d3554f993c539c81daddf01a0ed024b773c7da Mon Sep 17 00:00:00 2001 From: David Neto Date: Wed, 26 Apr 2023 00:34:53 +0000 Subject: [PATCH] dawn/node: fix binding for GPUBufferMapState This fixes a linking problem. The conversion function should be a member of the Convert class, not a freestanding function. Change-Id: Ifa351e4ba6fb0e95fed311a11e9dc56e13eb1a0b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/129260 Reviewed-by: Ben Clayton Reviewed-by: Kai Ninomiya Commit-Queue: Jiawei Shao Kokoro: Kokoro --- src/dawn/node/binding/Converter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dawn/node/binding/Converter.cpp b/src/dawn/node/binding/Converter.cpp index afbf80b60d..a83f67011b 100644 --- a/src/dawn/node/binding/Converter.cpp +++ b/src/dawn/node/binding/Converter.cpp @@ -1724,7 +1724,7 @@ bool Converter::Convert(interop::GPUQueryType& out, wgpu::QueryType in) { return false; } -bool Convert(interop::GPUBufferMapState& out, wgpu::BufferMapState in) { +bool Converter::Convert(interop::GPUBufferMapState& out, wgpu::BufferMapState in) { switch (in) { case wgpu::BufferMapState::Unmapped: out = interop::GPUBufferMapState::kUnmapped;