Re-introduce vulkan/vulkan.hpp; adjust include order to use that header in samples and tests (#340)

This commit is contained in:
Andreas Süßenbach 2019-06-11 13:25:36 +02:00 committed by Markus Tavenrath
parent cd6e0a6a89
commit a6ad0f1eff
5 changed files with 57360 additions and 3 deletions

View File

@ -40,7 +40,7 @@ file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Vulkan-Headers/registry/vk.xml v
string(REPLACE "\\" "\\\\" vk_spec ${vk_spec})
add_definitions(-DVK_SPEC="${vk_spec}")
file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Vulkan-Headers/include/vulkan.hpp vulkan_hpp)
file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/vulkan/vulkan.hpp vulkan_hpp)
string(REPLACE "\\" "\\\\" vulkan_hpp ${vulkan_hpp})
add_definitions(-DVULKAN_HPP_FILE="${vulkan_hpp}")

View File

@ -5111,6 +5111,7 @@ namespace std
generator.checkCorrectness();
std::ofstream ofs(VULKAN_HPP_FILE);
assert(!ofs.fail());
ofs << generator.getVulkanLicenseHeader() << std::endl
<< includes
<< std::endl

View File

@ -29,8 +29,8 @@ endif()
FILE (GLOB linkunits ${CMAKE_CURRENT_SOURCE_DIR}/*)
if (SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../Vulkan-Headers/include")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/..")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../Vulkan-Headers/include")
else()
include_directories("${Vulkan_INCLUDE_DIRS}")
endif()

View File

@ -29,8 +29,8 @@ endif()
FILE (GLOB linkunits ${CMAKE_CURRENT_SOURCE_DIR}/*)
if (TESTS_BUILD_WITH_LOCAL_VULKAN_HPP)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../Vulkan-Headers/include")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/..")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../Vulkan-Headers/include")
else()
include_directories("${Vulkan_INCLUDE_DIRS}")
endif()

57356
vulkan/vulkan.hpp Normal file

File diff suppressed because it is too large Load Diff