Enable Wayland support by default on Linux standalone builds Flip the dawn_use_wayland default from false to is_linux && !is_chromeos, matching dawn_use_x11. It stays a declare_arg() and can be overridden. This surfaced a link break: the GLFW helper (src/dawn/glfw/utils.cpp) references glfwGetWayland*(), but the GN build of GLFW has no Wayland backend. Gate that path on a new DAWN_GLFW_NO_WAYLAND define set by the GN GLFW target, so GN builds fall back to X11/XWayland while DAWN_USE_WAYLAND still enables Dawn's native Wayland surface. Bug: angleproject:40096815 Change-Id: I2d6083d728ac606c0631695c5d1cede3607385cc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/312515 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.