Fix dump_shaders for Vulkan backend in CMake build

Change-Id: I6670abe2fbc77418a5923643db0d377d38212288
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/118620
Reviewed-by: Austin Eng <enga@chromium.org>
Kokoro: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
Antonio Maiorano 2023-02-06 18:30:09 +00:00 committed by Dawn LUCI CQ
parent 26286c67a9
commit b3d5fb19bb
1 changed files with 1 additions and 0 deletions

View File

@ -400,6 +400,7 @@ if (DAWN_ENABLE_NULL)
endif()
if (DAWN_ENABLE_OPENGL OR DAWN_ENABLE_VULKAN)
target_compile_definitions(dawn_native PRIVATE "DAWN_ENABLE_SPIRV_VALIDATION")
target_sources(dawn_native PRIVATE
"SpirvValidation.cpp"
"SpirvValidation.h"