Skip to content

Commit

Permalink
Provide CMake option to enable Vulkan API.
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
Ashkan Aliabadi committed Oct 16, 2020
1 parent 46db908 commit 416b39d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ cmake_dependent_option(
USE_VALGRIND "Use Valgrind. Only available on Linux." ON
"LINUX" OFF)
option(USE_VULKAN "Use Vulkan GPU backend" OFF)
option(USE_VULKAN_API "Use Vulkan GPU backend v2" OFF)
option(USE_VULKAN_WRAPPER "Use Vulkan wrapper" ON)
option(USE_VULKAN_SHADERC_RUNTIME "Use Vulkan Shader compilation runtime(Needs shaderc lib)" OFF)
option(USE_VULKAN_RELAXED_PRECISION "Use Vulkan relaxed precision(mediump)" OFF)
Expand Down Expand Up @@ -535,6 +536,10 @@ if(USE_VULKAN)
string(APPEND CMAKE_CXX_FLAGS " -DUSE_VULKAN")
endif()

if(USE_VULKAN_API)
string(APPEND CMAKE_CXX_FLAGS " -DUSE_VULKAN_API")
endif()

if(USE_VULKAN_WRAPPER)
string(APPEND CMAKE_CXX_FLAGS " -DUSE_VULKAN_WRAPPER")
endif()
Expand Down

0 comments on commit 416b39d

Please sign in to comment.