Use memcmp instead of operator==() to compare unknown types from external headers, as they might not support that operator.
This commit is contained in:
@@ -49197,7 +49197,7 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
bool operator==( ImagePipeSurfaceCreateInfoFUCHSIA const & rhs ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( flags == rhs.flags ) &&
|
||||
( imagePipeHandle == rhs.imagePipeHandle );
|
||||
( memcmp( &imagePipeHandle, &rhs.imagePipeHandle, sizeof( zx_handle_t ) ) == 0 );
|
||||
}
|
||||
|
||||
bool operator!=( ImagePipeSurfaceCreateInfoFUCHSIA const & rhs ) const VULKAN_HPP_NOEXCEPT
|
||||
@@ -70507,7 +70507,8 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
# else
|
||||
bool operator==( PresentFrameTokenGGP const & rhs ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( frameToken == rhs.frameToken );
|
||||
return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) &&
|
||||
( memcmp( &frameToken, &rhs.frameToken, sizeof( GgpFrameToken ) ) == 0 );
|
||||
}
|
||||
|
||||
bool operator!=( PresentFrameTokenGGP const & rhs ) const VULKAN_HPP_NOEXCEPT
|
||||
@@ -76134,7 +76135,7 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
bool operator==( StreamDescriptorSurfaceCreateInfoGGP const & rhs ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( flags == rhs.flags ) &&
|
||||
( streamDescriptor == rhs.streamDescriptor );
|
||||
( memcmp( &streamDescriptor, &rhs.streamDescriptor, sizeof( GgpStreamDescriptor ) ) == 0 );
|
||||
}
|
||||
|
||||
bool operator!=( StreamDescriptorSurfaceCreateInfoGGP const & rhs ) const VULKAN_HPP_NOEXCEPT
|
||||
@@ -79316,7 +79317,7 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
bool operator==( XcbSurfaceCreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( flags == rhs.flags ) &&
|
||||
( connection == rhs.connection ) && ( window == rhs.window );
|
||||
( connection == rhs.connection ) && ( memcmp( &window, &rhs.window, sizeof( xcb_window_t ) ) == 0 );
|
||||
}
|
||||
|
||||
bool operator!=( XcbSurfaceCreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT
|
||||
@@ -79414,7 +79415,7 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
bool operator==( XlibSurfaceCreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT
|
||||
{
|
||||
return ( sType == rhs.sType ) && ( pNext == rhs.pNext ) && ( flags == rhs.flags ) && ( dpy == rhs.dpy ) &&
|
||||
( window == rhs.window );
|
||||
( memcmp( &window, &rhs.window, sizeof( Window ) ) == 0 );
|
||||
}
|
||||
|
||||
bool operator!=( XlibSurfaceCreateInfoKHR const & rhs ) const VULKAN_HPP_NOEXCEPT
|
||||
|
||||
Reference in New Issue
Block a user