mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-26 00:34:35 +00:00
6150e408ee
This library is a utility which tracks all the required details so that applications can have a simplified interface to the swapchain. * Creation - Pass a SwapchainBuilder to specify how the swapchain should be created. * Recreation - Recreates the swapchain upon request. * Semaphores - Handles creation and usage of them, a particularly thorny part of swapchain management. Additional Libraries: - DelayedDeletionQueue; for easy deletion of objects currently in flight - ImagelessFramebufferBuilder; for easy creation of imageless framebuffers The new code lives in VkSwapchainManager.h, so its easier to distinguish the core parts of vk-bootstrap from the optional.
24 lines
798 B
CMake
24 lines
798 B
CMake
add_executable(vk-bootstrap-triangle triangle.cpp)
|
|
target_link_libraries(vk-bootstrap-triangle
|
|
PRIVATE
|
|
glfw
|
|
vk-bootstrap
|
|
vk-bootstrap-compiler-warnings
|
|
vk-bootstrap-vulkan-headers)
|
|
target_include_directories(vk-bootstrap-triangle PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) #path to build directory for shaders
|
|
|
|
target_compile_features(vk-bootstrap-triangle PUBLIC cxx_std_17)
|
|
|
|
add_custom_command(
|
|
TARGET vk-bootstrap-triangle
|
|
POST_BUILD
|
|
COMMAND
|
|
${CMAKE_COMMAND} -E copy_directory
|
|
${CMAKE_SOURCE_DIR}/example/shaders ${CMAKE_CURRENT_BINARY_DIR}
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
configure_file (
|
|
"${PROJECT_SOURCE_DIR}/example/example_config.h.in"
|
|
"${CMAKE_CURRENT_BINARY_DIR}/example_config.h"
|
|
)
|