Hash :
70b90f22
Author :
Date :
2025-05-09T16:51:31
WebGPU: Use the C API only from the proc table Define WGPU_SKIP_DECLARATIONS so that errors are generated when using the global c or cpp functions. The default proc table getter requires the cpp API is visible. Hide this in a new wgpu_proc_utils so the rest of the WebGPU backend cannot see those APIs. Bug: angleproject:342213844 Change-Id: Ia1e9bfd25b0bb538cebeaa0efe7b9d2eeabc990d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6534317 Reviewed-by: Liza Burakova <liza@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: Matthew Denton <mpdenton@chromium.org>
# Copyright 2024 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# This file houses the build configuration for the ANGLE Wgpu back-end.
import("//third_party/dawn/scripts/dawn_features.gni")
import("../../../../gni/angle.gni")
import("wgpu_sources.gni")
assert(angle_enable_wgpu)
assert(defined(angle_dawn_dir))
config("angle_wgpu_backend_config") {
defines = [ "ANGLE_ENABLE_WGPU" ]
}
angle_source_set("angle_wgpu_backend") {
sources = wgpu_backend_sources
public_deps = [ "$angle_root:libANGLE_headers" ]
defines = [ "WGPU_SKIP_DECLARATIONS" ]
deps = [
"$angle_root:angle_image_util",
"${angle_dawn_dir}/include/dawn:headers",
"${angle_dawn_dir}/src/dawn:proc",
"${angle_dawn_dir}/src/dawn/native",
"${angle_root}:translator",
]
}