add README for using Direct to Display swapchain and fix a typo.
This commit is contained in:
parent
9b5127f894
commit
6989e12f2a
2 changed files with 5 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ include_directories(external/gli)
|
|||
include_directories(external/assimp)
|
||||
include_directories(base)
|
||||
|
||||
OPTION(USE_D2D_WSI "Build the project using debugging code" OFF)
|
||||
OPTION(USE_D2D_WSI "Build the project using Direct to Display swapchain" OFF)
|
||||
|
||||
IF(WIN32)
|
||||
find_library(VULKAN_LIB NAMES vulkan-1 vulkan PATHS ${CMAKE_SOURCE_DIR}/libs/vulkan)
|
||||
|
|
@ -23,8 +23,8 @@ ELSE(WIN32)
|
|||
find_package(ASSIMP REQUIRED)
|
||||
find_package(Threads REQUIRED)
|
||||
IF(USE_D2D_WSI)
|
||||
MESSAGE("Using direct to display extension...")
|
||||
add_definitions(-D_DIRECT2DISPLAY)
|
||||
MESSAGE("Using direct to display extension...")
|
||||
add_definitions(-D_DIRECT2DISPLAY)
|
||||
ELSE(USE_D2D_WSI)
|
||||
find_package(XCB REQUIRED)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_USE_PLATFORM_XCB_KHR")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue