mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 07:06:11 +00:00
CMake: Add support with Swiftshader with DAWN_ENABLE_SWIFTSHADER
Change-Id: I2b3d906bac760a22f33104231a6341415cbff3b5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/85365 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
6efd54e2ae
commit
be352ea5b9
@@ -442,6 +442,10 @@ if (DAWN_ENABLE_OPENGL)
|
||||
target_link_libraries(dawn_native PRIVATE dawn_khronos_platform)
|
||||
endif()
|
||||
|
||||
if (DAWN_ENABLE_SWIFTSHADER)
|
||||
target_compile_definitions(dawn_native PRIVATE "DAWN_ENABLE_SWIFTSHADER")
|
||||
endif()
|
||||
|
||||
if (DAWN_ENABLE_VULKAN)
|
||||
target_sources(dawn_native PRIVATE
|
||||
"${DAWN_INCLUDE_DIR}/dawn/native/VulkanBackend.h"
|
||||
|
||||
Reference in New Issue
Block a user