Fix typo when calling operator==(enum, enum) (#415)

This commit is contained in:
Markus Tavenrath 2019-10-28 15:27:48 +01:00 committed by Andreas Süßenbach
parent 3976a4cc75
commit 178bf4ded7
2 changed files with 38 additions and 38 deletions

View File

@ -2480,7 +2480,7 @@ void VulkanHppGenerator::appendStructCompareOperators(std::string & str, std::pa
if (member.arraySize.empty()) if (member.arraySize.empty())
{ {
if (m_bitmaskBits.find(member.type.type) != m_bitmaskBits.end()) { if (m_bitmaskBits.find(member.type.type) != m_bitmaskBits.end()) {
compareMembers += "vk::operator==( " + member.name + ", " + member.name + " )"; compareMembers += "vk::operator==( " + member.name + ", rhs." + member.name + " )";
} }
else else
{ {

View File

@ -20944,7 +20944,7 @@ namespace VULKAN_HPP_NAMESPACE
{ {
return ( flags == rhs.flags ) return ( flags == rhs.flags )
&& ( format == rhs.format ) && ( format == rhs.format )
&& vk::operator==( samples, samples ) && vk::operator==( samples, rhs.samples )
&& ( loadOp == rhs.loadOp ) && ( loadOp == rhs.loadOp )
&& ( storeOp == rhs.storeOp ) && ( storeOp == rhs.storeOp )
&& ( stencilLoadOp == rhs.stencilLoadOp ) && ( stencilLoadOp == rhs.stencilLoadOp )
@ -21124,7 +21124,7 @@ namespace VULKAN_HPP_NAMESPACE
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( flags == rhs.flags ) && ( flags == rhs.flags )
&& ( format == rhs.format ) && ( format == rhs.format )
&& vk::operator==( samples, samples ) && vk::operator==( samples, rhs.samples )
&& ( loadOp == rhs.loadOp ) && ( loadOp == rhs.loadOp )
&& ( storeOp == rhs.storeOp ) && ( storeOp == rhs.storeOp )
&& ( stencilLoadOp == rhs.stencilLoadOp ) && ( stencilLoadOp == rhs.stencilLoadOp )
@ -21527,7 +21527,7 @@ namespace VULKAN_HPP_NAMESPACE
{ {
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& vk::operator==( sampleLocationsPerPixel, sampleLocationsPerPixel ) && vk::operator==( sampleLocationsPerPixel, rhs.sampleLocationsPerPixel )
&& ( sampleLocationGridSize == rhs.sampleLocationGridSize ) && ( sampleLocationGridSize == rhs.sampleLocationGridSize )
&& ( sampleLocationsCount == rhs.sampleLocationsCount ) && ( sampleLocationsCount == rhs.sampleLocationsCount )
&& ( pSampleLocations == rhs.pSampleLocations ); && ( pSampleLocations == rhs.pSampleLocations );
@ -22588,7 +22588,7 @@ namespace VULKAN_HPP_NAMESPACE
{ {
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& vk::operator==( planeAspect, planeAspect ); && vk::operator==( planeAspect, rhs.planeAspect );
} }
bool operator!=( BindImagePlaneMemoryInfo const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( BindImagePlaneMemoryInfo const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -24459,7 +24459,7 @@ namespace VULKAN_HPP_NAMESPACE
{ {
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& vk::operator==( stage, stage ) && vk::operator==( stage, rhs.stage )
&& ( pCheckpointMarker == rhs.pCheckpointMarker ); && ( pCheckpointMarker == rhs.pCheckpointMarker );
} }
@ -26034,7 +26034,7 @@ namespace VULKAN_HPP_NAMESPACE
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( flags == rhs.flags ) && ( flags == rhs.flags )
&& vk::operator==( stage, stage ) && vk::operator==( stage, rhs.stage )
&& ( module == rhs.module ) && ( module == rhs.module )
&& ( pName == rhs.pName ) && ( pName == rhs.pName )
&& ( pSpecializationInfo == rhs.pSpecializationInfo ); && ( pSpecializationInfo == rhs.pSpecializationInfo );
@ -31030,7 +31030,7 @@ namespace VULKAN_HPP_NAMESPACE
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( swapchainCount == rhs.swapchainCount ) && ( swapchainCount == rhs.swapchainCount )
&& ( pDeviceMasks == rhs.pDeviceMasks ) && ( pDeviceMasks == rhs.pDeviceMasks )
&& vk::operator==( mode, mode ); && vk::operator==( mode, rhs.mode );
} }
bool operator!=( DeviceGroupPresentInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( DeviceGroupPresentInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -32938,9 +32938,9 @@ namespace VULKAN_HPP_NAMESPACE
&& ( displayMode == rhs.displayMode ) && ( displayMode == rhs.displayMode )
&& ( planeIndex == rhs.planeIndex ) && ( planeIndex == rhs.planeIndex )
&& ( planeStackIndex == rhs.planeStackIndex ) && ( planeStackIndex == rhs.planeStackIndex )
&& vk::operator==( transform, transform ) && vk::operator==( transform, rhs.transform )
&& ( globalAlpha == rhs.globalAlpha ) && ( globalAlpha == rhs.globalAlpha )
&& vk::operator==( alphaMode, alphaMode ) && vk::operator==( alphaMode, rhs.alphaMode )
&& ( imageExtent == rhs.imageExtent ); && ( imageExtent == rhs.imageExtent );
} }
@ -35130,7 +35130,7 @@ namespace VULKAN_HPP_NAMESPACE
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( fence == rhs.fence ) && ( fence == rhs.fence )
&& vk::operator==( handleType, handleType ); && vk::operator==( handleType, rhs.handleType );
} }
bool operator!=( FenceGetFdInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( FenceGetFdInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -35227,7 +35227,7 @@ namespace VULKAN_HPP_NAMESPACE
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( fence == rhs.fence ) && ( fence == rhs.fence )
&& vk::operator==( handleType, handleType ); && vk::operator==( handleType, rhs.handleType );
} }
bool operator!=( FenceGetWin32HandleInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( FenceGetWin32HandleInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -35888,7 +35888,7 @@ namespace VULKAN_HPP_NAMESPACE
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( coverageReductionMode == rhs.coverageReductionMode ) && ( coverageReductionMode == rhs.coverageReductionMode )
&& vk::operator==( rasterizationSamples, rasterizationSamples ) && vk::operator==( rasterizationSamples, rhs.rasterizationSamples )
&& ( depthStencilSamples == rhs.depthStencilSamples ) && ( depthStencilSamples == rhs.depthStencilSamples )
&& ( colorSamples == rhs.colorSamples ); && ( colorSamples == rhs.colorSamples );
} }
@ -36933,7 +36933,7 @@ namespace VULKAN_HPP_NAMESPACE
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( flags == rhs.flags ) && ( flags == rhs.flags )
&& vk::operator==( rasterizationSamples, rasterizationSamples ) && vk::operator==( rasterizationSamples, rhs.rasterizationSamples )
&& ( sampleShadingEnable == rhs.sampleShadingEnable ) && ( sampleShadingEnable == rhs.sampleShadingEnable )
&& ( minSampleShading == rhs.minSampleShading ) && ( minSampleShading == rhs.minSampleShading )
&& ( pSampleMask == rhs.pSampleMask ) && ( pSampleMask == rhs.pSampleMask )
@ -38639,7 +38639,7 @@ namespace VULKAN_HPP_NAMESPACE
&& ( extent == rhs.extent ) && ( extent == rhs.extent )
&& ( mipLevels == rhs.mipLevels ) && ( mipLevels == rhs.mipLevels )
&& ( arrayLayers == rhs.arrayLayers ) && ( arrayLayers == rhs.arrayLayers )
&& vk::operator==( samples, samples ) && vk::operator==( samples, rhs.samples )
&& ( tiling == rhs.tiling ) && ( tiling == rhs.tiling )
&& ( usage == rhs.usage ) && ( usage == rhs.usage )
&& ( sharingMode == rhs.sharingMode ) && ( sharingMode == rhs.sharingMode )
@ -39649,7 +39649,7 @@ namespace VULKAN_HPP_NAMESPACE
{ {
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& vk::operator==( planeAspect, planeAspect ); && vk::operator==( planeAspect, rhs.planeAspect );
} }
bool operator!=( ImagePlaneMemoryRequirementsInfo const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( ImagePlaneMemoryRequirementsInfo const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -40606,7 +40606,7 @@ namespace VULKAN_HPP_NAMESPACE
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( fence == rhs.fence ) && ( fence == rhs.fence )
&& ( flags == rhs.flags ) && ( flags == rhs.flags )
&& vk::operator==( handleType, handleType ) && vk::operator==( handleType, rhs.handleType )
&& ( fd == rhs.fd ); && ( fd == rhs.fd );
} }
@ -40735,7 +40735,7 @@ namespace VULKAN_HPP_NAMESPACE
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( fence == rhs.fence ) && ( fence == rhs.fence )
&& ( flags == rhs.flags ) && ( flags == rhs.flags )
&& vk::operator==( handleType, handleType ) && vk::operator==( handleType, rhs.handleType )
&& ( handle == rhs.handle ) && ( handle == rhs.handle )
&& ( name == rhs.name ); && ( name == rhs.name );
} }
@ -40832,7 +40832,7 @@ namespace VULKAN_HPP_NAMESPACE
{ {
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& vk::operator==( handleType, handleType ) && vk::operator==( handleType, rhs.handleType )
&& ( fd == rhs.fd ); && ( fd == rhs.fd );
} }
@ -40927,7 +40927,7 @@ namespace VULKAN_HPP_NAMESPACE
{ {
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& vk::operator==( handleType, handleType ) && vk::operator==( handleType, rhs.handleType )
&& ( pHostPointer == rhs.pHostPointer ); && ( pHostPointer == rhs.pHostPointer );
} }
@ -41034,7 +41034,7 @@ namespace VULKAN_HPP_NAMESPACE
{ {
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& vk::operator==( handleType, handleType ) && vk::operator==( handleType, rhs.handleType )
&& ( handle == rhs.handle ) && ( handle == rhs.handle )
&& ( name == rhs.name ); && ( name == rhs.name );
} }
@ -41251,7 +41251,7 @@ namespace VULKAN_HPP_NAMESPACE
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( semaphore == rhs.semaphore ) && ( semaphore == rhs.semaphore )
&& ( flags == rhs.flags ) && ( flags == rhs.flags )
&& vk::operator==( handleType, handleType ) && vk::operator==( handleType, rhs.handleType )
&& ( fd == rhs.fd ); && ( fd == rhs.fd );
} }
@ -41380,7 +41380,7 @@ namespace VULKAN_HPP_NAMESPACE
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( semaphore == rhs.semaphore ) && ( semaphore == rhs.semaphore )
&& ( flags == rhs.flags ) && ( flags == rhs.flags )
&& vk::operator==( handleType, handleType ) && vk::operator==( handleType, rhs.handleType )
&& ( handle == rhs.handle ) && ( handle == rhs.handle )
&& ( name == rhs.name ); && ( name == rhs.name );
} }
@ -42829,7 +42829,7 @@ namespace VULKAN_HPP_NAMESPACE
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( memory == rhs.memory ) && ( memory == rhs.memory )
&& vk::operator==( handleType, handleType ); && vk::operator==( handleType, rhs.handleType );
} }
bool operator!=( MemoryGetFdInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( MemoryGetFdInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -42926,7 +42926,7 @@ namespace VULKAN_HPP_NAMESPACE
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( memory == rhs.memory ) && ( memory == rhs.memory )
&& vk::operator==( handleType, handleType ); && vk::operator==( handleType, rhs.handleType );
} }
bool operator!=( MemoryGetWin32HandleInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( MemoryGetWin32HandleInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -46973,7 +46973,7 @@ namespace VULKAN_HPP_NAMESPACE
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( flags == rhs.flags ) && ( flags == rhs.flags )
&& ( usage == rhs.usage ) && ( usage == rhs.usage )
&& vk::operator==( handleType, handleType ); && vk::operator==( handleType, rhs.handleType );
} }
bool operator!=( PhysicalDeviceExternalBufferInfo const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( PhysicalDeviceExternalBufferInfo const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -47057,7 +47057,7 @@ namespace VULKAN_HPP_NAMESPACE
{ {
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& vk::operator==( handleType, handleType ); && vk::operator==( handleType, rhs.handleType );
} }
bool operator!=( PhysicalDeviceExternalFenceInfo const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( PhysicalDeviceExternalFenceInfo const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -47141,7 +47141,7 @@ namespace VULKAN_HPP_NAMESPACE
{ {
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& vk::operator==( handleType, handleType ); && vk::operator==( handleType, rhs.handleType );
} }
bool operator!=( PhysicalDeviceExternalImageFormatInfo const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( PhysicalDeviceExternalImageFormatInfo const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -47296,7 +47296,7 @@ namespace VULKAN_HPP_NAMESPACE
{ {
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& vk::operator==( handleType, handleType ); && vk::operator==( handleType, rhs.handleType );
} }
bool operator!=( PhysicalDeviceExternalSemaphoreInfo const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( PhysicalDeviceExternalSemaphoreInfo const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -52437,7 +52437,7 @@ namespace VULKAN_HPP_NAMESPACE
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( format == rhs.format ) && ( format == rhs.format )
&& ( type == rhs.type ) && ( type == rhs.type )
&& vk::operator==( samples, samples ) && vk::operator==( samples, rhs.samples )
&& ( usage == rhs.usage ) && ( usage == rhs.usage )
&& ( tiling == rhs.tiling ); && ( tiling == rhs.tiling );
} }
@ -61052,7 +61052,7 @@ namespace VULKAN_HPP_NAMESPACE
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( semaphore == rhs.semaphore ) && ( semaphore == rhs.semaphore )
&& vk::operator==( handleType, handleType ); && vk::operator==( handleType, rhs.handleType );
} }
bool operator!=( SemaphoreGetFdInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( SemaphoreGetFdInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -61149,7 +61149,7 @@ namespace VULKAN_HPP_NAMESPACE
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& ( semaphore == rhs.semaphore ) && ( semaphore == rhs.semaphore )
&& vk::operator==( handleType, handleType ); && vk::operator==( handleType, rhs.handleType );
} }
bool operator!=( SemaphoreGetWin32HandleInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT bool operator!=( SemaphoreGetWin32HandleInfoKHR const& rhs ) const VULKAN_HPP_NOEXCEPT
@ -62496,8 +62496,8 @@ namespace VULKAN_HPP_NAMESPACE
{ {
return ( sType == rhs.sType ) return ( sType == rhs.sType )
&& ( pNext == rhs.pNext ) && ( pNext == rhs.pNext )
&& vk::operator==( depthResolveMode, depthResolveMode ) && vk::operator==( depthResolveMode, rhs.depthResolveMode )
&& vk::operator==( stencilResolveMode, stencilResolveMode ) && vk::operator==( stencilResolveMode, rhs.stencilResolveMode )
&& ( pDepthStencilResolveAttachment == rhs.pDepthStencilResolveAttachment ); && ( pDepthStencilResolveAttachment == rhs.pDepthStencilResolveAttachment );
} }
@ -62661,7 +62661,7 @@ namespace VULKAN_HPP_NAMESPACE
&& ( maxImageExtent == rhs.maxImageExtent ) && ( maxImageExtent == rhs.maxImageExtent )
&& ( maxImageArrayLayers == rhs.maxImageArrayLayers ) && ( maxImageArrayLayers == rhs.maxImageArrayLayers )
&& ( supportedTransforms == rhs.supportedTransforms ) && ( supportedTransforms == rhs.supportedTransforms )
&& vk::operator==( currentTransform, currentTransform ) && vk::operator==( currentTransform, rhs.currentTransform )
&& ( supportedCompositeAlpha == rhs.supportedCompositeAlpha ) && ( supportedCompositeAlpha == rhs.supportedCompositeAlpha )
&& ( supportedUsageFlags == rhs.supportedUsageFlags ) && ( supportedUsageFlags == rhs.supportedUsageFlags )
&& ( supportedSurfaceCounters == rhs.supportedSurfaceCounters ); && ( supportedSurfaceCounters == rhs.supportedSurfaceCounters );
@ -62713,7 +62713,7 @@ namespace VULKAN_HPP_NAMESPACE
&& ( maxImageExtent == rhs.maxImageExtent ) && ( maxImageExtent == rhs.maxImageExtent )
&& ( maxImageArrayLayers == rhs.maxImageArrayLayers ) && ( maxImageArrayLayers == rhs.maxImageArrayLayers )
&& ( supportedTransforms == rhs.supportedTransforms ) && ( supportedTransforms == rhs.supportedTransforms )
&& vk::operator==( currentTransform, currentTransform ) && vk::operator==( currentTransform, rhs.currentTransform )
&& ( supportedCompositeAlpha == rhs.supportedCompositeAlpha ) && ( supportedCompositeAlpha == rhs.supportedCompositeAlpha )
&& ( supportedUsageFlags == rhs.supportedUsageFlags ); && ( supportedUsageFlags == rhs.supportedUsageFlags );
} }
@ -63584,8 +63584,8 @@ namespace VULKAN_HPP_NAMESPACE
&& ( imageSharingMode == rhs.imageSharingMode ) && ( imageSharingMode == rhs.imageSharingMode )
&& ( queueFamilyIndexCount == rhs.queueFamilyIndexCount ) && ( queueFamilyIndexCount == rhs.queueFamilyIndexCount )
&& ( pQueueFamilyIndices == rhs.pQueueFamilyIndices ) && ( pQueueFamilyIndices == rhs.pQueueFamilyIndices )
&& vk::operator==( preTransform, preTransform ) && vk::operator==( preTransform, rhs.preTransform )
&& vk::operator==( compositeAlpha, compositeAlpha ) && vk::operator==( compositeAlpha, rhs.compositeAlpha )
&& ( presentMode == rhs.presentMode ) && ( presentMode == rhs.presentMode )
&& ( clipped == rhs.clipped ) && ( clipped == rhs.clipped )
&& ( oldSwapchain == rhs.oldSwapchain ); && ( oldSwapchain == rhs.oldSwapchain );