mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
Add build time flag to control enabling SPIRV-Cross reflection
This adds a flag to enable using the reflection compiler from SPIRV-Cross, and also updates the build rules to make sure that the GLSL compiler is also present when using reflection, since the reflection compiler subclassess the GLSL compiler. BUG=dawn:231 Change-Id: I4e227cb955a3bb794d906dabdadffdaca001352b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11920 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
86d921e048
commit
d561448d0d
@@ -37,4 +37,11 @@ declare_args() {
|
||||
|
||||
# Enables the compilation of Dawn's Vulkan backend
|
||||
dawn_enable_vulkan = is_linux || is_win || is_fuchsia
|
||||
|
||||
# Enable use of reflection compiler in spirv-cross. This is needed
|
||||
# if performing reflection on systems that the platform language
|
||||
# shader is SPIR-V, since there isn't an instance of the
|
||||
# GLSL/HLSL/MSL compiler. This implicitly pulls in the GLSL
|
||||
# compiler, since it is a sub-class of if.
|
||||
dawn_enable_cross_reflection = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user