renderer_vulkan: Add declarations file
This file is intended to be included instead of vulkan/vulkan.hpp. It includes declarations of unique handlers using a dynamic dispatcher instead of a static one (which would require linking to a Vulkan library).
This commit is contained in:
parent
b12ab4d805
commit
18fe910957
2 changed files with 52 additions and 0 deletions
|
@ -101,6 +101,13 @@ add_library(video_core STATIC
|
|||
video_core.h
|
||||
)
|
||||
|
||||
if (ENABLE_VULKAN)
|
||||
target_sources(video_core PRIVATE renderer_vulkan/declarations.h)
|
||||
|
||||
target_include_directories(video_core PRIVATE ../../externals/Vulkan-Headers/include)
|
||||
target_compile_definitions(video_core PRIVATE HAS_VULKAN)
|
||||
endif()
|
||||
|
||||
create_target_directory_groups(video_core)
|
||||
|
||||
target_link_libraries(video_core PUBLIC common core)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue