Disable OpenGLES in uwp compilation.

Bug: dawn:766
Change-Id: I0e6910edbb1ee794487ed7132484e445779f6cf7
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/52660
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: 陈俊嘉 <cjj19970505@live.cn>
This commit is contained in:
陈俊嘉 2021-05-31 08:46:21 +00:00 committed by Dawn LUCI CQ
parent 2e660b38ec
commit 16201e64c4
1 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,9 @@ declare_args() {
# Enables the compilation of Dawn's OpenGLES backend
# (WebGPU/Compat subset)
dawn_enable_opengles = (is_linux && !is_chromeos) || is_win
# Disables OpenGLES when compiling for UWP, since UWP only supports d3d
dawn_enable_opengles =
(is_linux && !is_chromeos) || (is_win && !dawn_is_winuwp)
# Enables the compilation of Dawn's Vulkan backend
# Disables vulkan when compiling for UWP, since UWP only supports d3d