mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Correct usage of VulkanRegistry_DIR
This commit is contained in:
parent
34e07e9e39
commit
e996ef2b31
@ -56,12 +56,12 @@ message("CMAKE_CXX_STANDARD = <${CMAKE_CXX_STANDARD}>")
|
||||
|
||||
if (NOT DEFINED VulkanRegistry_DIR)
|
||||
if (DEFINED VULKAN_HPP_VULKAN_HEADERS_SRC_DIR)
|
||||
set(VulkanRegistry_DIR ${VULKAN_HPP_VULKAN_HEADERS_SRC_DIR})
|
||||
set(VulkanRegistry_DIR "${VULKAN_HPP_VULKAN_HEADERS_SRC_DIR/registry"})
|
||||
else()
|
||||
set(VulkanRegistry_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Vulkan-Headers")
|
||||
set(VulkanRegistry_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Vulkan-Headers/registry")
|
||||
endif()
|
||||
endif()
|
||||
file(TO_NATIVE_PATH ${VulkanRegistry_DIR}/registry/vk.xml vk_spec)
|
||||
file(TO_NATIVE_PATH ${VulkanRegistry_DIR}/vk.xml vk_spec)
|
||||
string(REPLACE "\\" "\\\\" vk_spec ${vk_spec})
|
||||
add_definitions(-DVK_SPEC="${vk_spec}")
|
||||
|
||||
|
@ -543,7 +543,7 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
return std::array<T, N>::operator[]( index );
|
||||
}
|
||||
|
||||
VULKAN_HPP_CONSTEXPR T & operator[]( int index ) VULKAN_HPP_NOEXCEPT
|
||||
T & operator[]( int index ) VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
return std::array<T, N>::operator[]( index );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user