mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
Split #defines for OpenGL and OpenGL ES backends.
This permits enabling the OpenGL and OpenGL ES backends independently. This change also enables the OpenGL ES backend on Windows. This will cause the end2end tests to run on OpenGL ES on the GPU-less bots, via SwANGLE. Bug: dawn:580 Change-Id: I43d514b18862d176610b95e97013a67723ddac20 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/50881 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
58ec60ea23
commit
21ce5d2965
@@ -62,7 +62,11 @@ declare_args() {
|
||||
|
||||
# Enables the compilation of Dawn's OpenGL backend
|
||||
# (best effort, non-conformant)
|
||||
dawn_enable_opengl = is_linux && !is_chromeos
|
||||
dawn_enable_desktop_gl = is_linux && !is_chromeos
|
||||
|
||||
# Enables the compilation of Dawn's OpenGLES backend
|
||||
# (WebGPU/Compat subset)
|
||||
dawn_enable_opengles = (is_linux && !is_chromeos) || is_win
|
||||
|
||||
# Enables the compilation of Dawn's Vulkan backend
|
||||
# Disables vulkan when compiling for UWP, since UWP only supports d3d
|
||||
@@ -97,3 +101,6 @@ declare_args() {
|
||||
# UWP only supports CoreWindow for windowing
|
||||
dawn_supports_glfw_for_windowing =
|
||||
(is_win && !dawn_is_winuwp) || (is_linux && !is_chromeos) || is_mac
|
||||
|
||||
# Much of the backend code is shared, so define a convenience var.
|
||||
dawn_enable_opengl = dawn_enable_opengles || dawn_enable_desktop_gl
|
||||
|
||||
Reference in New Issue
Block a user