Remove m_success from vk::DynamicLoader
This commit is contained in:
@@ -108298,9 +108298,9 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
{
|
||||
public:
|
||||
# ifdef VULKAN_HPP_NO_EXCEPTIONS
|
||||
DynamicLoader( std::string const & vulkanLibraryName = {} ) VULKAN_HPP_NOEXCEPT : m_success( false )
|
||||
DynamicLoader( std::string const & vulkanLibraryName = {} ) VULKAN_HPP_NOEXCEPT
|
||||
# else
|
||||
DynamicLoader( std::string const & vulkanLibraryName = {} ) : m_success( false )
|
||||
DynamicLoader( std::string const & vulkanLibraryName = {} )
|
||||
# endif
|
||||
{
|
||||
if ( !vulkanLibraryName.empty() )
|
||||
@@ -108330,9 +108330,8 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
# endif
|
||||
}
|
||||
|
||||
m_success = ( m_library != nullptr );
|
||||
# ifndef VULKAN_HPP_NO_EXCEPTIONS
|
||||
if ( !m_success )
|
||||
if ( m_library == nullptr )
|
||||
{
|
||||
// NOTE there should be an InitializationFailedError, but msvc insists on the symbol does not exist within the
|
||||
// scope of this function.
|
||||
@@ -108343,9 +108342,7 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
|
||||
DynamicLoader( DynamicLoader const & ) = delete;
|
||||
|
||||
DynamicLoader( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT
|
||||
: m_success( other.m_success )
|
||||
, m_library( other.m_library )
|
||||
DynamicLoader( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT : m_library( other.m_library )
|
||||
{
|
||||
other.m_library = nullptr;
|
||||
}
|
||||
@@ -108354,7 +108351,6 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
|
||||
DynamicLoader & operator=( DynamicLoader && other ) VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
m_success = other.m_success;
|
||||
std::swap( m_library, other.m_library );
|
||||
return *this;
|
||||
}
|
||||
@@ -108387,11 +108383,10 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
|
||||
bool success() const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
return m_success;
|
||||
return m_library != nullptr;
|
||||
}
|
||||
|
||||
private:
|
||||
bool m_success;
|
||||
# if defined( __linux__ ) || defined( __APPLE__ )
|
||||
void * m_library;
|
||||
# elif defined( _WIN32 )
|
||||
|
||||
Reference in New Issue
Block a user