Enable WGSL unconditionally in GN builds.
Bug: dawn:706 Change-Id: I1fdd0f8e61710f3375b6b2fb0152acdff4569528 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/44862 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org> Auto-Submit: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
0ed19c6640
commit
92a0588ac8
|
@ -65,6 +65,9 @@ declare_args() {
|
||||||
dawn_enable_vulkan = is_linux || is_chromeos || is_win || is_fuchsia ||
|
dawn_enable_vulkan = is_linux || is_chromeos || is_win || is_fuchsia ||
|
||||||
is_android || dawn_use_swiftshader
|
is_android || dawn_use_swiftshader
|
||||||
|
|
||||||
|
# Enable support WGSL for shaders.
|
||||||
|
dawn_enable_wgsl = true
|
||||||
|
|
||||||
# Enable use of reflection compiler in spirv-cross. This is needed
|
# Enable use of reflection compiler in spirv-cross. This is needed
|
||||||
# if performing reflection on systems that the platform language
|
# if performing reflection on systems that the platform language
|
||||||
# shader is SPIR-V, since there isn't an instance of the
|
# shader is SPIR-V, since there isn't an instance of the
|
||||||
|
@ -75,10 +78,6 @@ declare_args() {
|
||||||
# Enables error injection for faking failures to native API calls
|
# Enables error injection for faking failures to native API calls
|
||||||
dawn_enable_error_injection =
|
dawn_enable_error_injection =
|
||||||
is_debug || (build_with_chromium && use_fuzzing_engine)
|
is_debug || (build_with_chromium && use_fuzzing_engine)
|
||||||
|
|
||||||
# Enable support WGSL for shaders.
|
|
||||||
# Turned off for Skia, because Tint is currently not part of its DEPS.
|
|
||||||
dawn_enable_wgsl = !defined(is_skia_standalone)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# GN does not allow reading a variable defined in the same declare_args().
|
# GN does not allow reading a variable defined in the same declare_args().
|
||||||
|
|
Loading…
Reference in New Issue