mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-21 20:00:11 +00:00
Include <memory> in vulkan_raii.hpp to have std::unique_ptr available. (#1762)
This commit is contained in:
parent
52666b03f5
commit
d2f13e2f7f
@ -586,6 +586,7 @@ void VulkanHppGenerator::generateRAIIHppFile() const
|
||||
#ifndef VULKAN_RAII_HPP
|
||||
#define VULKAN_RAII_HPP
|
||||
|
||||
#include <memory> // std::unique_ptr
|
||||
#include <utility> // std::exchange, std::forward
|
||||
#include <vulkan/${api}.hpp>
|
||||
|
||||
|
@ -16302,9 +16302,9 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
}
|
||||
# elif defined( __APPLE__ )
|
||||
m_library = dlopen( "libvulkan.dylib", RTLD_NOW | RTLD_LOCAL );
|
||||
if (m_library == nullptr)
|
||||
if ( m_library == nullptr )
|
||||
{
|
||||
m_library = dlopen("libvulkan.1.dylib", RTLD_NOW | RTLD_LOCAL);
|
||||
m_library = dlopen( "libvulkan.1.dylib", RTLD_NOW | RTLD_LOCAL );
|
||||
}
|
||||
# elif defined( _WIN32 )
|
||||
m_library = ::LoadLibraryA( "vulkan-1.dll" );
|
||||
|
@ -8,6 +8,7 @@
|
||||
#ifndef VULKAN_RAII_HPP
|
||||
#define VULKAN_RAII_HPP
|
||||
|
||||
#include <memory> // std::unique_ptr
|
||||
#include <utility> // std::exchange, std::forward
|
||||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
@ -35,7 +36,7 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
# if defined( VULKAN_HPP_RAII_NO_EXCEPTIONS )
|
||||
using Type = VULKAN_HPP_EXPECTED<T, VULKAN_HPP_NAMESPACE::Result>;
|
||||
# else
|
||||
using Type = T;
|
||||
using Type = T;
|
||||
# endif
|
||||
};
|
||||
|
||||
|
@ -6990,9 +6990,9 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
}
|
||||
# elif defined( __APPLE__ )
|
||||
m_library = dlopen( "libvulkan.dylib", RTLD_NOW | RTLD_LOCAL );
|
||||
if (m_library == nullptr)
|
||||
if ( m_library == nullptr )
|
||||
{
|
||||
m_library = dlopen("libvulkan.1.dylib", RTLD_NOW | RTLD_LOCAL);
|
||||
m_library = dlopen( "libvulkan.1.dylib", RTLD_NOW | RTLD_LOCAL );
|
||||
}
|
||||
# elif defined( _WIN32 )
|
||||
m_library = ::LoadLibraryA( "vulkan-1.dll" );
|
||||
|
@ -8,6 +8,7 @@
|
||||
#ifndef VULKAN_RAII_HPP
|
||||
#define VULKAN_RAII_HPP
|
||||
|
||||
#include <memory> // std::unique_ptr
|
||||
#include <utility> // std::exchange, std::forward
|
||||
#include <vulkan/vulkansc.hpp>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user