mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +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
@@ -72,7 +72,9 @@ static wgpu::BackendType backendType = wgpu::BackendType::D3D12;
|
||||
static wgpu::BackendType backendType = wgpu::BackendType::Metal;
|
||||
#elif defined(DAWN_ENABLE_BACKEND_VULKAN)
|
||||
static wgpu::BackendType backendType = wgpu::BackendType::Vulkan;
|
||||
#elif defined(DAWN_ENABLE_BACKEND_OPENGL)
|
||||
#elif defined(DAWN_ENABLE_BACKEND_OPENGLES)
|
||||
static wgpu::BackendType backendType = wgpu::BackendType::OpenGLES;
|
||||
#elif defined(DAWN_ENABLE_BACKEND_DESKTOP_GL)
|
||||
static wgpu::BackendType backendType = wgpu::BackendType::OpenGL;
|
||||
#else
|
||||
# error
|
||||
|
||||
Reference in New Issue
Block a user