Add missing return statement to to_string functions on *Flags. (#287)

This commit is contained in:
Andreas Süßenbach 2019-02-05 10:59:17 +01:00 committed by Markus Tavenrath
parent 05497cb191
commit 9a4f863d6e
2 changed files with 67 additions and 1 deletions

View File

@ -669,7 +669,8 @@ void writeBitmaskToStringFunction(std::ostream & os, std::string const& bitmaskN
static const std::string bodyTemplate = R"( static const std::string bodyTemplate = R"(
if ( !value ) return "{}"; if ( !value ) return "{}";
std::string result; std::string result;
${cases})"; ${cases}
return result;)";
functionBody = replaceWithMap(bodyTemplate, { { "cases", casesString } }); functionBody = replaceWithMap(bodyTemplate, { { "cases", casesString } });
} }

View File

@ -5646,6 +5646,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & AccessFlagBits::eAccelerationStructureReadNV ) result += "AccelerationStructureReadNV | "; if ( value & AccessFlagBits::eAccelerationStructureReadNV ) result += "AccelerationStructureReadNV | ";
if ( value & AccessFlagBits::eAccelerationStructureWriteNV ) result += "AccelerationStructureWriteNV | "; if ( value & AccessFlagBits::eAccelerationStructureWriteNV ) result += "AccelerationStructureWriteNV | ";
if ( value & AccessFlagBits::eFragmentDensityMapReadEXT ) result += "FragmentDensityMapReadEXT"; if ( value & AccessFlagBits::eFragmentDensityMapReadEXT ) result += "FragmentDensityMapReadEXT";
return result;
} }
#ifdef VK_USE_PLATFORM_ANDROID_KHR #ifdef VK_USE_PLATFORM_ANDROID_KHR
@ -5705,6 +5706,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & AttachmentDescriptionFlagBits::eMayAlias ) result += "MayAlias"; if ( value & AttachmentDescriptionFlagBits::eMayAlias ) result += "MayAlias";
return result;
} }
enum class BufferCreateFlagBits enum class BufferCreateFlagBits
@ -5759,6 +5761,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & BufferCreateFlagBits::eSparseAliased ) result += "SparseAliased | "; if ( value & BufferCreateFlagBits::eSparseAliased ) result += "SparseAliased | ";
if ( value & BufferCreateFlagBits::eProtected ) result += "Protected | "; if ( value & BufferCreateFlagBits::eProtected ) result += "Protected | ";
if ( value & BufferCreateFlagBits::eDeviceAddressCaptureReplayEXT ) result += "DeviceAddressCaptureReplayEXT"; if ( value & BufferCreateFlagBits::eDeviceAddressCaptureReplayEXT ) result += "DeviceAddressCaptureReplayEXT";
return result;
} }
enum class BufferUsageFlagBits enum class BufferUsageFlagBits
@ -5840,6 +5843,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & BufferUsageFlagBits::eConditionalRenderingEXT ) result += "ConditionalRenderingEXT | "; if ( value & BufferUsageFlagBits::eConditionalRenderingEXT ) result += "ConditionalRenderingEXT | ";
if ( value & BufferUsageFlagBits::eRayTracingNV ) result += "RayTracingNV | "; if ( value & BufferUsageFlagBits::eRayTracingNV ) result += "RayTracingNV | ";
if ( value & BufferUsageFlagBits::eShaderDeviceAddressEXT ) result += "ShaderDeviceAddressEXT"; if ( value & BufferUsageFlagBits::eShaderDeviceAddressEXT ) result += "ShaderDeviceAddressEXT";
return result;
} }
enum class BufferViewCreateFlagBits enum class BufferViewCreateFlagBits
@ -5909,6 +5913,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & BuildAccelerationStructureFlagBitsNV::ePreferFastTrace ) result += "PreferFastTrace | "; if ( value & BuildAccelerationStructureFlagBitsNV::ePreferFastTrace ) result += "PreferFastTrace | ";
if ( value & BuildAccelerationStructureFlagBitsNV::ePreferFastBuild ) result += "PreferFastBuild | "; if ( value & BuildAccelerationStructureFlagBitsNV::ePreferFastBuild ) result += "PreferFastBuild | ";
if ( value & BuildAccelerationStructureFlagBitsNV::eLowMemory ) result += "LowMemory"; if ( value & BuildAccelerationStructureFlagBitsNV::eLowMemory ) result += "LowMemory";
return result;
} }
enum class ColorComponentFlagBits enum class ColorComponentFlagBits
@ -5960,6 +5965,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ColorComponentFlagBits::eG ) result += "G | "; if ( value & ColorComponentFlagBits::eG ) result += "G | ";
if ( value & ColorComponentFlagBits::eB ) result += "B | "; if ( value & ColorComponentFlagBits::eB ) result += "B | ";
if ( value & ColorComponentFlagBits::eA ) result += "A"; if ( value & ColorComponentFlagBits::eA ) result += "A";
return result;
} }
enum class CommandBufferResetFlagBits enum class CommandBufferResetFlagBits
@ -6002,6 +6008,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & CommandBufferResetFlagBits::eReleaseResources ) result += "ReleaseResources"; if ( value & CommandBufferResetFlagBits::eReleaseResources ) result += "ReleaseResources";
return result;
} }
enum class CommandBufferUsageFlagBits enum class CommandBufferUsageFlagBits
@ -6050,6 +6057,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & CommandBufferUsageFlagBits::eOneTimeSubmit ) result += "OneTimeSubmit | "; if ( value & CommandBufferUsageFlagBits::eOneTimeSubmit ) result += "OneTimeSubmit | ";
if ( value & CommandBufferUsageFlagBits::eRenderPassContinue ) result += "RenderPassContinue | "; if ( value & CommandBufferUsageFlagBits::eRenderPassContinue ) result += "RenderPassContinue | ";
if ( value & CommandBufferUsageFlagBits::eSimultaneousUse ) result += "SimultaneousUse"; if ( value & CommandBufferUsageFlagBits::eSimultaneousUse ) result += "SimultaneousUse";
return result;
} }
enum class CommandPoolCreateFlagBits enum class CommandPoolCreateFlagBits
@ -6098,6 +6106,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & CommandPoolCreateFlagBits::eTransient ) result += "Transient | "; if ( value & CommandPoolCreateFlagBits::eTransient ) result += "Transient | ";
if ( value & CommandPoolCreateFlagBits::eResetCommandBuffer ) result += "ResetCommandBuffer | "; if ( value & CommandPoolCreateFlagBits::eResetCommandBuffer ) result += "ResetCommandBuffer | ";
if ( value & CommandPoolCreateFlagBits::eProtected ) result += "Protected"; if ( value & CommandPoolCreateFlagBits::eProtected ) result += "Protected";
return result;
} }
enum class CommandPoolResetFlagBits enum class CommandPoolResetFlagBits
@ -6140,6 +6149,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & CommandPoolResetFlagBits::eReleaseResources ) result += "ReleaseResources"; if ( value & CommandPoolResetFlagBits::eReleaseResources ) result += "ReleaseResources";
return result;
} }
enum class CommandPoolTrimFlagBits enum class CommandPoolTrimFlagBits
@ -6208,6 +6218,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & CompositeAlphaFlagBitsKHR::ePreMultiplied ) result += "PreMultiplied | "; if ( value & CompositeAlphaFlagBitsKHR::ePreMultiplied ) result += "PreMultiplied | ";
if ( value & CompositeAlphaFlagBitsKHR::ePostMultiplied ) result += "PostMultiplied | "; if ( value & CompositeAlphaFlagBitsKHR::ePostMultiplied ) result += "PostMultiplied | ";
if ( value & CompositeAlphaFlagBitsKHR::eInherit ) result += "Inherit"; if ( value & CompositeAlphaFlagBitsKHR::eInherit ) result += "Inherit";
return result;
} }
enum class ConditionalRenderingFlagBitsEXT enum class ConditionalRenderingFlagBitsEXT
@ -6250,6 +6261,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & ConditionalRenderingFlagBitsEXT::eInverted ) result += "Inverted"; if ( value & ConditionalRenderingFlagBitsEXT::eInverted ) result += "Inverted";
return result;
} }
enum class CullModeFlagBits enum class CullModeFlagBits
@ -6301,6 +6313,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & CullModeFlagBits::eFront ) result += "Front | "; if ( value & CullModeFlagBits::eFront ) result += "Front | ";
if ( value & CullModeFlagBits::eBack ) result += "Back | "; if ( value & CullModeFlagBits::eBack ) result += "Back | ";
if ( value & CullModeFlagBits::eFrontAndBack ) result += "FrontAndBack"; if ( value & CullModeFlagBits::eFrontAndBack ) result += "FrontAndBack";
return result;
} }
enum class DebugReportFlagBitsEXT enum class DebugReportFlagBitsEXT
@ -6355,6 +6368,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & DebugReportFlagBitsEXT::ePerformanceWarning ) result += "PerformanceWarning | "; if ( value & DebugReportFlagBitsEXT::ePerformanceWarning ) result += "PerformanceWarning | ";
if ( value & DebugReportFlagBitsEXT::eError ) result += "Error | "; if ( value & DebugReportFlagBitsEXT::eError ) result += "Error | ";
if ( value & DebugReportFlagBitsEXT::eDebug ) result += "Debug"; if ( value & DebugReportFlagBitsEXT::eDebug ) result += "Debug";
return result;
} }
enum class DebugUtilsMessageSeverityFlagBitsEXT enum class DebugUtilsMessageSeverityFlagBitsEXT
@ -6406,6 +6420,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & DebugUtilsMessageSeverityFlagBitsEXT::eInfo ) result += "Info | "; if ( value & DebugUtilsMessageSeverityFlagBitsEXT::eInfo ) result += "Info | ";
if ( value & DebugUtilsMessageSeverityFlagBitsEXT::eWarning ) result += "Warning | "; if ( value & DebugUtilsMessageSeverityFlagBitsEXT::eWarning ) result += "Warning | ";
if ( value & DebugUtilsMessageSeverityFlagBitsEXT::eError ) result += "Error"; if ( value & DebugUtilsMessageSeverityFlagBitsEXT::eError ) result += "Error";
return result;
} }
enum class DebugUtilsMessageTypeFlagBitsEXT enum class DebugUtilsMessageTypeFlagBitsEXT
@ -6454,6 +6469,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & DebugUtilsMessageTypeFlagBitsEXT::eGeneral ) result += "General | "; if ( value & DebugUtilsMessageTypeFlagBitsEXT::eGeneral ) result += "General | ";
if ( value & DebugUtilsMessageTypeFlagBitsEXT::eValidation ) result += "Validation | "; if ( value & DebugUtilsMessageTypeFlagBitsEXT::eValidation ) result += "Validation | ";
if ( value & DebugUtilsMessageTypeFlagBitsEXT::ePerformance ) result += "Performance"; if ( value & DebugUtilsMessageTypeFlagBitsEXT::ePerformance ) result += "Performance";
return result;
} }
enum class DebugUtilsMessengerCallbackDataFlagBitsEXT enum class DebugUtilsMessengerCallbackDataFlagBitsEXT
@ -6534,6 +6550,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & DependencyFlagBits::eByRegion ) result += "ByRegion | "; if ( value & DependencyFlagBits::eByRegion ) result += "ByRegion | ";
if ( value & DependencyFlagBits::eDeviceGroup ) result += "DeviceGroup | "; if ( value & DependencyFlagBits::eDeviceGroup ) result += "DeviceGroup | ";
if ( value & DependencyFlagBits::eViewLocal ) result += "ViewLocal"; if ( value & DependencyFlagBits::eViewLocal ) result += "ViewLocal";
return result;
} }
enum class DescriptorBindingFlagBitsEXT enum class DescriptorBindingFlagBitsEXT
@ -6585,6 +6602,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & DescriptorBindingFlagBitsEXT::eUpdateUnusedWhilePending ) result += "UpdateUnusedWhilePending | "; if ( value & DescriptorBindingFlagBitsEXT::eUpdateUnusedWhilePending ) result += "UpdateUnusedWhilePending | ";
if ( value & DescriptorBindingFlagBitsEXT::ePartiallyBound ) result += "PartiallyBound | "; if ( value & DescriptorBindingFlagBitsEXT::ePartiallyBound ) result += "PartiallyBound | ";
if ( value & DescriptorBindingFlagBitsEXT::eVariableDescriptorCount ) result += "VariableDescriptorCount"; if ( value & DescriptorBindingFlagBitsEXT::eVariableDescriptorCount ) result += "VariableDescriptorCount";
return result;
} }
enum class DescriptorPoolCreateFlagBits enum class DescriptorPoolCreateFlagBits
@ -6630,6 +6648,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & DescriptorPoolCreateFlagBits::eFreeDescriptorSet ) result += "FreeDescriptorSet | "; if ( value & DescriptorPoolCreateFlagBits::eFreeDescriptorSet ) result += "FreeDescriptorSet | ";
if ( value & DescriptorPoolCreateFlagBits::eUpdateAfterBindEXT ) result += "UpdateAfterBindEXT"; if ( value & DescriptorPoolCreateFlagBits::eUpdateAfterBindEXT ) result += "UpdateAfterBindEXT";
return result;
} }
enum class DescriptorPoolResetFlagBits enum class DescriptorPoolResetFlagBits
@ -6690,6 +6709,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & DescriptorSetLayoutCreateFlagBits::ePushDescriptorKHR ) result += "PushDescriptorKHR | "; if ( value & DescriptorSetLayoutCreateFlagBits::ePushDescriptorKHR ) result += "PushDescriptorKHR | ";
if ( value & DescriptorSetLayoutCreateFlagBits::eUpdateAfterBindPoolEXT ) result += "UpdateAfterBindPoolEXT"; if ( value & DescriptorSetLayoutCreateFlagBits::eUpdateAfterBindPoolEXT ) result += "UpdateAfterBindPoolEXT";
return result;
} }
enum class DescriptorUpdateTemplateCreateFlagBits enum class DescriptorUpdateTemplateCreateFlagBits
@ -6773,6 +6793,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & DeviceGroupPresentModeFlagBitsKHR::eRemote ) result += "Remote | "; if ( value & DeviceGroupPresentModeFlagBitsKHR::eRemote ) result += "Remote | ";
if ( value & DeviceGroupPresentModeFlagBitsKHR::eSum ) result += "Sum | "; if ( value & DeviceGroupPresentModeFlagBitsKHR::eSum ) result += "Sum | ";
if ( value & DeviceGroupPresentModeFlagBitsKHR::eLocalMultiDevice ) result += "LocalMultiDevice"; if ( value & DeviceGroupPresentModeFlagBitsKHR::eLocalMultiDevice ) result += "LocalMultiDevice";
return result;
} }
enum class DeviceQueueCreateFlagBits enum class DeviceQueueCreateFlagBits
@ -6815,6 +6836,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & DeviceQueueCreateFlagBits::eProtected ) result += "Protected"; if ( value & DeviceQueueCreateFlagBits::eProtected ) result += "Protected";
return result;
} }
enum class DisplayModeCreateFlagBitsKHR enum class DisplayModeCreateFlagBitsKHR
@ -6881,6 +6903,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & DisplayPlaneAlphaFlagBitsKHR::eGlobal ) result += "Global | "; if ( value & DisplayPlaneAlphaFlagBitsKHR::eGlobal ) result += "Global | ";
if ( value & DisplayPlaneAlphaFlagBitsKHR::ePerPixel ) result += "PerPixel | "; if ( value & DisplayPlaneAlphaFlagBitsKHR::ePerPixel ) result += "PerPixel | ";
if ( value & DisplayPlaneAlphaFlagBitsKHR::ePerPixelPremultiplied ) result += "PerPixelPremultiplied"; if ( value & DisplayPlaneAlphaFlagBitsKHR::ePerPixelPremultiplied ) result += "PerPixelPremultiplied";
return result;
} }
enum class DisplaySurfaceCreateFlagBitsKHR enum class DisplaySurfaceCreateFlagBitsKHR
@ -6960,6 +6983,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ExternalFenceFeatureFlagBits::eExportable ) result += "Exportable | "; if ( value & ExternalFenceFeatureFlagBits::eExportable ) result += "Exportable | ";
if ( value & ExternalFenceFeatureFlagBits::eImportable ) result += "Importable"; if ( value & ExternalFenceFeatureFlagBits::eImportable ) result += "Importable";
return result;
} }
enum class ExternalFenceHandleTypeFlagBits enum class ExternalFenceHandleTypeFlagBits
@ -7017,6 +7041,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ExternalFenceHandleTypeFlagBits::eOpaqueWin32 ) result += "OpaqueWin32 | "; if ( value & ExternalFenceHandleTypeFlagBits::eOpaqueWin32 ) result += "OpaqueWin32 | ";
if ( value & ExternalFenceHandleTypeFlagBits::eOpaqueWin32Kmt ) result += "OpaqueWin32Kmt | "; if ( value & ExternalFenceHandleTypeFlagBits::eOpaqueWin32Kmt ) result += "OpaqueWin32Kmt | ";
if ( value & ExternalFenceHandleTypeFlagBits::eSyncFd ) result += "SyncFd"; if ( value & ExternalFenceHandleTypeFlagBits::eSyncFd ) result += "SyncFd";
return result;
} }
enum class ExternalMemoryFeatureFlagBits enum class ExternalMemoryFeatureFlagBits
@ -7070,6 +7095,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ExternalMemoryFeatureFlagBits::eDedicatedOnly ) result += "DedicatedOnly | "; if ( value & ExternalMemoryFeatureFlagBits::eDedicatedOnly ) result += "DedicatedOnly | ";
if ( value & ExternalMemoryFeatureFlagBits::eExportable ) result += "Exportable | "; if ( value & ExternalMemoryFeatureFlagBits::eExportable ) result += "Exportable | ";
if ( value & ExternalMemoryFeatureFlagBits::eImportable ) result += "Importable"; if ( value & ExternalMemoryFeatureFlagBits::eImportable ) result += "Importable";
return result;
} }
enum class ExternalMemoryFeatureFlagBitsNV enum class ExternalMemoryFeatureFlagBitsNV
@ -7118,6 +7144,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ExternalMemoryFeatureFlagBitsNV::eDedicatedOnly ) result += "DedicatedOnly | "; if ( value & ExternalMemoryFeatureFlagBitsNV::eDedicatedOnly ) result += "DedicatedOnly | ";
if ( value & ExternalMemoryFeatureFlagBitsNV::eExportable ) result += "Exportable | "; if ( value & ExternalMemoryFeatureFlagBitsNV::eExportable ) result += "Exportable | ";
if ( value & ExternalMemoryFeatureFlagBitsNV::eImportable ) result += "Importable"; if ( value & ExternalMemoryFeatureFlagBitsNV::eImportable ) result += "Importable";
return result;
} }
enum class ExternalMemoryHandleTypeFlagBits enum class ExternalMemoryHandleTypeFlagBits
@ -7199,6 +7226,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ExternalMemoryHandleTypeFlagBits::eAndroidHardwareBufferANDROID ) result += "AndroidHardwareBufferANDROID | "; if ( value & ExternalMemoryHandleTypeFlagBits::eAndroidHardwareBufferANDROID ) result += "AndroidHardwareBufferANDROID | ";
if ( value & ExternalMemoryHandleTypeFlagBits::eHostAllocationEXT ) result += "HostAllocationEXT | "; if ( value & ExternalMemoryHandleTypeFlagBits::eHostAllocationEXT ) result += "HostAllocationEXT | ";
if ( value & ExternalMemoryHandleTypeFlagBits::eHostMappedForeignMemoryEXT ) result += "HostMappedForeignMemoryEXT"; if ( value & ExternalMemoryHandleTypeFlagBits::eHostMappedForeignMemoryEXT ) result += "HostMappedForeignMemoryEXT";
return result;
} }
enum class ExternalMemoryHandleTypeFlagBitsNV enum class ExternalMemoryHandleTypeFlagBitsNV
@ -7250,6 +7278,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ExternalMemoryHandleTypeFlagBitsNV::eOpaqueWin32Kmt ) result += "OpaqueWin32Kmt | "; if ( value & ExternalMemoryHandleTypeFlagBitsNV::eOpaqueWin32Kmt ) result += "OpaqueWin32Kmt | ";
if ( value & ExternalMemoryHandleTypeFlagBitsNV::eD3D11Image ) result += "D3D11Image | "; if ( value & ExternalMemoryHandleTypeFlagBitsNV::eD3D11Image ) result += "D3D11Image | ";
if ( value & ExternalMemoryHandleTypeFlagBitsNV::eD3D11ImageKmt ) result += "D3D11ImageKmt"; if ( value & ExternalMemoryHandleTypeFlagBitsNV::eD3D11ImageKmt ) result += "D3D11ImageKmt";
return result;
} }
enum class ExternalSemaphoreFeatureFlagBits enum class ExternalSemaphoreFeatureFlagBits
@ -7299,6 +7328,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ExternalSemaphoreFeatureFlagBits::eExportable ) result += "Exportable | "; if ( value & ExternalSemaphoreFeatureFlagBits::eExportable ) result += "Exportable | ";
if ( value & ExternalSemaphoreFeatureFlagBits::eImportable ) result += "Importable"; if ( value & ExternalSemaphoreFeatureFlagBits::eImportable ) result += "Importable";
return result;
} }
enum class ExternalSemaphoreHandleTypeFlagBits enum class ExternalSemaphoreHandleTypeFlagBits
@ -7360,6 +7390,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ExternalSemaphoreHandleTypeFlagBits::eOpaqueWin32Kmt ) result += "OpaqueWin32Kmt | "; if ( value & ExternalSemaphoreHandleTypeFlagBits::eOpaqueWin32Kmt ) result += "OpaqueWin32Kmt | ";
if ( value & ExternalSemaphoreHandleTypeFlagBits::eD3D12Fence ) result += "D3D12Fence | "; if ( value & ExternalSemaphoreHandleTypeFlagBits::eD3D12Fence ) result += "D3D12Fence | ";
if ( value & ExternalSemaphoreHandleTypeFlagBits::eSyncFd ) result += "SyncFd"; if ( value & ExternalSemaphoreHandleTypeFlagBits::eSyncFd ) result += "SyncFd";
return result;
} }
enum class FenceCreateFlagBits enum class FenceCreateFlagBits
@ -7402,6 +7433,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & FenceCreateFlagBits::eSignaled ) result += "Signaled"; if ( value & FenceCreateFlagBits::eSignaled ) result += "Signaled";
return result;
} }
enum class FenceImportFlagBits enum class FenceImportFlagBits
@ -7447,6 +7479,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & FenceImportFlagBits::eTemporary ) result += "Temporary"; if ( value & FenceImportFlagBits::eTemporary ) result += "Temporary";
return result;
} }
enum class FormatFeatureFlagBits enum class FormatFeatureFlagBits
@ -7570,6 +7603,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & FormatFeatureFlagBits::eSampledImageFilterCubicIMG ) result += "SampledImageFilterCubicIMG | "; if ( value & FormatFeatureFlagBits::eSampledImageFilterCubicIMG ) result += "SampledImageFilterCubicIMG | ";
if ( value & FormatFeatureFlagBits::eSampledImageFilterMinmaxEXT ) result += "SampledImageFilterMinmaxEXT | "; if ( value & FormatFeatureFlagBits::eSampledImageFilterMinmaxEXT ) result += "SampledImageFilterMinmaxEXT | ";
if ( value & FormatFeatureFlagBits::eFragmentDensityMapEXT ) result += "FragmentDensityMapEXT"; if ( value & FormatFeatureFlagBits::eFragmentDensityMapEXT ) result += "FragmentDensityMapEXT";
return result;
} }
enum class FramebufferCreateFlagBits enum class FramebufferCreateFlagBits
@ -7630,6 +7664,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & GeometryFlagBitsNV::eOpaque ) result += "Opaque | "; if ( value & GeometryFlagBitsNV::eOpaque ) result += "Opaque | ";
if ( value & GeometryFlagBitsNV::eNoDuplicateAnyHitInvocation ) result += "NoDuplicateAnyHitInvocation"; if ( value & GeometryFlagBitsNV::eNoDuplicateAnyHitInvocation ) result += "NoDuplicateAnyHitInvocation";
return result;
} }
enum class GeometryInstanceFlagBitsNV enum class GeometryInstanceFlagBitsNV
@ -7681,6 +7716,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & GeometryInstanceFlagBitsNV::eTriangleFrontCounterclockwise ) result += "TriangleFrontCounterclockwise | "; if ( value & GeometryInstanceFlagBitsNV::eTriangleFrontCounterclockwise ) result += "TriangleFrontCounterclockwise | ";
if ( value & GeometryInstanceFlagBitsNV::eForceOpaque ) result += "ForceOpaque | "; if ( value & GeometryInstanceFlagBitsNV::eForceOpaque ) result += "ForceOpaque | ";
if ( value & GeometryInstanceFlagBitsNV::eForceNoOpaque ) result += "ForceNoOpaque"; if ( value & GeometryInstanceFlagBitsNV::eForceNoOpaque ) result += "ForceNoOpaque";
return result;
} }
#ifdef VK_USE_PLATFORM_IOS_MVK #ifdef VK_USE_PLATFORM_IOS_MVK
@ -7773,6 +7809,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ImageAspectFlagBits::eMemoryPlane1EXT ) result += "MemoryPlane1EXT | "; if ( value & ImageAspectFlagBits::eMemoryPlane1EXT ) result += "MemoryPlane1EXT | ";
if ( value & ImageAspectFlagBits::eMemoryPlane2EXT ) result += "MemoryPlane2EXT | "; if ( value & ImageAspectFlagBits::eMemoryPlane2EXT ) result += "MemoryPlane2EXT | ";
if ( value & ImageAspectFlagBits::eMemoryPlane3EXT ) result += "MemoryPlane3EXT"; if ( value & ImageAspectFlagBits::eMemoryPlane3EXT ) result += "MemoryPlane3EXT";
return result;
} }
enum class ImageCreateFlagBits enum class ImageCreateFlagBits
@ -7863,6 +7900,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ImageCreateFlagBits::eCornerSampledNV ) result += "CornerSampledNV | "; if ( value & ImageCreateFlagBits::eCornerSampledNV ) result += "CornerSampledNV | ";
if ( value & ImageCreateFlagBits::eSampleLocationsCompatibleDepthEXT ) result += "SampleLocationsCompatibleDepthEXT | "; if ( value & ImageCreateFlagBits::eSampleLocationsCompatibleDepthEXT ) result += "SampleLocationsCompatibleDepthEXT | ";
if ( value & ImageCreateFlagBits::eSubsampledEXT ) result += "SubsampledEXT"; if ( value & ImageCreateFlagBits::eSubsampledEXT ) result += "SubsampledEXT";
return result;
} }
#ifdef VK_USE_PLATFORM_FUCHSIA #ifdef VK_USE_PLATFORM_FUCHSIA
@ -7949,6 +7987,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ImageUsageFlagBits::eInputAttachment ) result += "InputAttachment | "; if ( value & ImageUsageFlagBits::eInputAttachment ) result += "InputAttachment | ";
if ( value & ImageUsageFlagBits::eShadingRateImageNV ) result += "ShadingRateImageNV | "; if ( value & ImageUsageFlagBits::eShadingRateImageNV ) result += "ShadingRateImageNV | ";
if ( value & ImageUsageFlagBits::eFragmentDensityMapEXT ) result += "FragmentDensityMapEXT"; if ( value & ImageUsageFlagBits::eFragmentDensityMapEXT ) result += "FragmentDensityMapEXT";
return result;
} }
enum class ImageViewCreateFlagBits enum class ImageViewCreateFlagBits
@ -7991,6 +8030,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & ImageViewCreateFlagBits::eFragmentDensityMapDynamicEXT ) result += "FragmentDensityMapDynamicEXT"; if ( value & ImageViewCreateFlagBits::eFragmentDensityMapDynamicEXT ) result += "FragmentDensityMapDynamicEXT";
return result;
} }
enum class IndirectCommandsLayoutUsageFlagBitsNVX enum class IndirectCommandsLayoutUsageFlagBitsNVX
@ -8042,6 +8082,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & IndirectCommandsLayoutUsageFlagBitsNVX::eSparseSequences ) result += "SparseSequences | "; if ( value & IndirectCommandsLayoutUsageFlagBitsNVX::eSparseSequences ) result += "SparseSequences | ";
if ( value & IndirectCommandsLayoutUsageFlagBitsNVX::eEmptyExecutions ) result += "EmptyExecutions | "; if ( value & IndirectCommandsLayoutUsageFlagBitsNVX::eEmptyExecutions ) result += "EmptyExecutions | ";
if ( value & IndirectCommandsLayoutUsageFlagBitsNVX::eIndexedSequences ) result += "IndexedSequences"; if ( value & IndirectCommandsLayoutUsageFlagBitsNVX::eIndexedSequences ) result += "IndexedSequences";
return result;
} }
enum class InstanceCreateFlagBits enum class InstanceCreateFlagBits
@ -8119,6 +8160,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & MemoryAllocateFlagBits::eDeviceMask ) result += "DeviceMask"; if ( value & MemoryAllocateFlagBits::eDeviceMask ) result += "DeviceMask";
return result;
} }
enum class MemoryHeapFlagBits enum class MemoryHeapFlagBits
@ -8165,6 +8207,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & MemoryHeapFlagBits::eDeviceLocal ) result += "DeviceLocal | "; if ( value & MemoryHeapFlagBits::eDeviceLocal ) result += "DeviceLocal | ";
if ( value & MemoryHeapFlagBits::eMultiInstance ) result += "MultiInstance"; if ( value & MemoryHeapFlagBits::eMultiInstance ) result += "MultiInstance";
return result;
} }
enum class MemoryMapFlagBits enum class MemoryMapFlagBits
@ -8237,6 +8280,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & MemoryPropertyFlagBits::eHostCached ) result += "HostCached | "; if ( value & MemoryPropertyFlagBits::eHostCached ) result += "HostCached | ";
if ( value & MemoryPropertyFlagBits::eLazilyAllocated ) result += "LazilyAllocated | "; if ( value & MemoryPropertyFlagBits::eLazilyAllocated ) result += "LazilyAllocated | ";
if ( value & MemoryPropertyFlagBits::eProtected ) result += "Protected"; if ( value & MemoryPropertyFlagBits::eProtected ) result += "Protected";
return result;
} }
enum class ObjectEntryUsageFlagBitsNVX enum class ObjectEntryUsageFlagBitsNVX
@ -8282,6 +8326,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ObjectEntryUsageFlagBitsNVX::eGraphics ) result += "Graphics | "; if ( value & ObjectEntryUsageFlagBitsNVX::eGraphics ) result += "Graphics | ";
if ( value & ObjectEntryUsageFlagBitsNVX::eCompute ) result += "Compute"; if ( value & ObjectEntryUsageFlagBitsNVX::eCompute ) result += "Compute";
return result;
} }
enum class PeerMemoryFeatureFlagBits enum class PeerMemoryFeatureFlagBits
@ -8339,6 +8384,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & PeerMemoryFeatureFlagBits::eCopyDst ) result += "CopyDst | "; if ( value & PeerMemoryFeatureFlagBits::eCopyDst ) result += "CopyDst | ";
if ( value & PeerMemoryFeatureFlagBits::eGenericSrc ) result += "GenericSrc | "; if ( value & PeerMemoryFeatureFlagBits::eGenericSrc ) result += "GenericSrc | ";
if ( value & PeerMemoryFeatureFlagBits::eGenericDst ) result += "GenericDst"; if ( value & PeerMemoryFeatureFlagBits::eGenericDst ) result += "GenericDst";
return result;
} }
enum class PipelineCacheCreateFlagBits enum class PipelineCacheCreateFlagBits
@ -8458,6 +8504,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & PipelineCreateFlagBits::eViewIndexFromDeviceIndex ) result += "ViewIndexFromDeviceIndex | "; if ( value & PipelineCreateFlagBits::eViewIndexFromDeviceIndex ) result += "ViewIndexFromDeviceIndex | ";
if ( value & PipelineCreateFlagBits::eDispatchBase ) result += "DispatchBase | "; if ( value & PipelineCreateFlagBits::eDispatchBase ) result += "DispatchBase | ";
if ( value & PipelineCreateFlagBits::eDeferCompileNV ) result += "DeferCompileNV"; if ( value & PipelineCreateFlagBits::eDeferCompileNV ) result += "DeferCompileNV";
return result;
} }
enum class PipelineDepthStencilStateCreateFlagBits enum class PipelineDepthStencilStateCreateFlagBits
@ -8725,6 +8772,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & PipelineStageFlagBits::eTaskShaderNV ) result += "TaskShaderNV | "; if ( value & PipelineStageFlagBits::eTaskShaderNV ) result += "TaskShaderNV | ";
if ( value & PipelineStageFlagBits::eMeshShaderNV ) result += "MeshShaderNV | "; if ( value & PipelineStageFlagBits::eMeshShaderNV ) result += "MeshShaderNV | ";
if ( value & PipelineStageFlagBits::eFragmentDensityProcessEXT ) result += "FragmentDensityProcessEXT"; if ( value & PipelineStageFlagBits::eFragmentDensityProcessEXT ) result += "FragmentDensityProcessEXT";
return result;
} }
enum class PipelineTessellationStateCreateFlagBits enum class PipelineTessellationStateCreateFlagBits
@ -8827,6 +8875,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & QueryControlFlagBits::ePrecise ) result += "Precise"; if ( value & QueryControlFlagBits::ePrecise ) result += "Precise";
return result;
} }
enum class QueryPipelineStatisticFlagBits enum class QueryPipelineStatisticFlagBits
@ -8899,6 +8948,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & QueryPipelineStatisticFlagBits::eTessellationControlShaderPatches ) result += "TessellationControlShaderPatches | "; if ( value & QueryPipelineStatisticFlagBits::eTessellationControlShaderPatches ) result += "TessellationControlShaderPatches | ";
if ( value & QueryPipelineStatisticFlagBits::eTessellationEvaluationShaderInvocations ) result += "TessellationEvaluationShaderInvocations | "; if ( value & QueryPipelineStatisticFlagBits::eTessellationEvaluationShaderInvocations ) result += "TessellationEvaluationShaderInvocations | ";
if ( value & QueryPipelineStatisticFlagBits::eComputeShaderInvocations ) result += "ComputeShaderInvocations"; if ( value & QueryPipelineStatisticFlagBits::eComputeShaderInvocations ) result += "ComputeShaderInvocations";
return result;
} }
enum class QueryPoolCreateFlagBits enum class QueryPoolCreateFlagBits
@ -8965,6 +9015,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & QueryResultFlagBits::eWait ) result += "Wait | "; if ( value & QueryResultFlagBits::eWait ) result += "Wait | ";
if ( value & QueryResultFlagBits::eWithAvailability ) result += "WithAvailability | "; if ( value & QueryResultFlagBits::eWithAvailability ) result += "WithAvailability | ";
if ( value & QueryResultFlagBits::ePartial ) result += "Partial"; if ( value & QueryResultFlagBits::ePartial ) result += "Partial";
return result;
} }
enum class QueueFlagBits enum class QueueFlagBits
@ -9019,6 +9070,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & QueueFlagBits::eTransfer ) result += "Transfer | "; if ( value & QueueFlagBits::eTransfer ) result += "Transfer | ";
if ( value & QueueFlagBits::eSparseBinding ) result += "SparseBinding | "; if ( value & QueueFlagBits::eSparseBinding ) result += "SparseBinding | ";
if ( value & QueueFlagBits::eProtected ) result += "Protected"; if ( value & QueueFlagBits::eProtected ) result += "Protected";
return result;
} }
enum class RenderPassCreateFlagBits enum class RenderPassCreateFlagBits
@ -9088,6 +9140,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ResolveModeFlagBitsKHR::eAverage ) result += "Average | "; if ( value & ResolveModeFlagBitsKHR::eAverage ) result += "Average | ";
if ( value & ResolveModeFlagBitsKHR::eMin ) result += "Min | "; if ( value & ResolveModeFlagBitsKHR::eMin ) result += "Min | ";
if ( value & ResolveModeFlagBitsKHR::eMax ) result += "Max"; if ( value & ResolveModeFlagBitsKHR::eMax ) result += "Max";
return result;
} }
enum class SampleCountFlagBits enum class SampleCountFlagBits
@ -9148,6 +9201,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & SampleCountFlagBits::e16 ) result += "16 | "; if ( value & SampleCountFlagBits::e16 ) result += "16 | ";
if ( value & SampleCountFlagBits::e32 ) result += "32 | "; if ( value & SampleCountFlagBits::e32 ) result += "32 | ";
if ( value & SampleCountFlagBits::e64 ) result += "64"; if ( value & SampleCountFlagBits::e64 ) result += "64";
return result;
} }
enum class SamplerCreateFlagBits enum class SamplerCreateFlagBits
@ -9193,6 +9247,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & SamplerCreateFlagBits::eSubsampledEXT ) result += "SubsampledEXT | "; if ( value & SamplerCreateFlagBits::eSubsampledEXT ) result += "SubsampledEXT | ";
if ( value & SamplerCreateFlagBits::eSubsampledCoarseReconstructionEXT ) result += "SubsampledCoarseReconstructionEXT"; if ( value & SamplerCreateFlagBits::eSubsampledCoarseReconstructionEXT ) result += "SubsampledCoarseReconstructionEXT";
return result;
} }
enum class SemaphoreCreateFlagBits enum class SemaphoreCreateFlagBits
@ -9253,6 +9308,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & SemaphoreImportFlagBits::eTemporary ) result += "Temporary"; if ( value & SemaphoreImportFlagBits::eTemporary ) result += "Temporary";
return result;
} }
enum class ShaderModuleCreateFlagBits enum class ShaderModuleCreateFlagBits
@ -9355,6 +9411,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & ShaderStageFlagBits::eCallableNV ) result += "CallableNV | "; if ( value & ShaderStageFlagBits::eCallableNV ) result += "CallableNV | ";
if ( value & ShaderStageFlagBits::eTaskNV ) result += "TaskNV | "; if ( value & ShaderStageFlagBits::eTaskNV ) result += "TaskNV | ";
if ( value & ShaderStageFlagBits::eMeshNV ) result += "MeshNV"; if ( value & ShaderStageFlagBits::eMeshNV ) result += "MeshNV";
return result;
} }
enum class SparseImageFormatFlagBits enum class SparseImageFormatFlagBits
@ -9403,6 +9460,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & SparseImageFormatFlagBits::eSingleMiptail ) result += "SingleMiptail | "; if ( value & SparseImageFormatFlagBits::eSingleMiptail ) result += "SingleMiptail | ";
if ( value & SparseImageFormatFlagBits::eAlignedMipSize ) result += "AlignedMipSize | "; if ( value & SparseImageFormatFlagBits::eAlignedMipSize ) result += "AlignedMipSize | ";
if ( value & SparseImageFormatFlagBits::eNonstandardBlockSize ) result += "NonstandardBlockSize"; if ( value & SparseImageFormatFlagBits::eNonstandardBlockSize ) result += "NonstandardBlockSize";
return result;
} }
enum class SparseMemoryBindFlagBits enum class SparseMemoryBindFlagBits
@ -9445,6 +9503,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & SparseMemoryBindFlagBits::eMetadata ) result += "Metadata"; if ( value & SparseMemoryBindFlagBits::eMetadata ) result += "Metadata";
return result;
} }
enum class StencilFaceFlagBits enum class StencilFaceFlagBits
@ -9493,6 +9552,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & StencilFaceFlagBits::eFront ) result += "Front | "; if ( value & StencilFaceFlagBits::eFront ) result += "Front | ";
if ( value & StencilFaceFlagBits::eBack ) result += "Back | "; if ( value & StencilFaceFlagBits::eBack ) result += "Back | ";
if ( value & StencilFaceFlagBits::eVkStencilFrontAndBack ) result += "VkStencilFrontAndBack"; if ( value & StencilFaceFlagBits::eVkStencilFrontAndBack ) result += "VkStencilFrontAndBack";
return result;
} }
enum class SubgroupFeatureFlagBits enum class SubgroupFeatureFlagBits
@ -9559,6 +9619,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & SubgroupFeatureFlagBits::eClustered ) result += "Clustered | "; if ( value & SubgroupFeatureFlagBits::eClustered ) result += "Clustered | ";
if ( value & SubgroupFeatureFlagBits::eQuad ) result += "Quad | "; if ( value & SubgroupFeatureFlagBits::eQuad ) result += "Quad | ";
if ( value & SubgroupFeatureFlagBits::ePartitionedNV ) result += "PartitionedNV"; if ( value & SubgroupFeatureFlagBits::ePartitionedNV ) result += "PartitionedNV";
return result;
} }
enum class SubpassDescriptionFlagBits enum class SubpassDescriptionFlagBits
@ -9604,6 +9665,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & SubpassDescriptionFlagBits::ePerViewAttributesNVX ) result += "PerViewAttributesNVX | "; if ( value & SubpassDescriptionFlagBits::ePerViewAttributesNVX ) result += "PerViewAttributesNVX | ";
if ( value & SubpassDescriptionFlagBits::ePerViewPositionXOnlyNVX ) result += "PerViewPositionXOnlyNVX"; if ( value & SubpassDescriptionFlagBits::ePerViewPositionXOnlyNVX ) result += "PerViewPositionXOnlyNVX";
return result;
} }
enum class SurfaceCounterFlagBitsEXT enum class SurfaceCounterFlagBitsEXT
@ -9646,6 +9708,7 @@ namespace VULKAN_HPP_NAMESPACE
std::string result; std::string result;
if ( value & SurfaceCounterFlagBitsEXT::eVblank ) result += "Vblank"; if ( value & SurfaceCounterFlagBitsEXT::eVblank ) result += "Vblank";
return result;
} }
enum class SurfaceTransformFlagBitsKHR enum class SurfaceTransformFlagBitsKHR
@ -9712,6 +9775,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & SurfaceTransformFlagBitsKHR::eHorizontalMirrorRotate180 ) result += "HorizontalMirrorRotate180 | "; if ( value & SurfaceTransformFlagBitsKHR::eHorizontalMirrorRotate180 ) result += "HorizontalMirrorRotate180 | ";
if ( value & SurfaceTransformFlagBitsKHR::eHorizontalMirrorRotate270 ) result += "HorizontalMirrorRotate270 | "; if ( value & SurfaceTransformFlagBitsKHR::eHorizontalMirrorRotate270 ) result += "HorizontalMirrorRotate270 | ";
if ( value & SurfaceTransformFlagBitsKHR::eInherit ) result += "Inherit"; if ( value & SurfaceTransformFlagBitsKHR::eInherit ) result += "Inherit";
return result;
} }
enum class SwapchainCreateFlagBitsKHR enum class SwapchainCreateFlagBitsKHR
@ -9760,6 +9824,7 @@ namespace VULKAN_HPP_NAMESPACE
if ( value & SwapchainCreateFlagBitsKHR::eSplitInstanceBindRegions ) result += "SplitInstanceBindRegions | "; if ( value & SwapchainCreateFlagBitsKHR::eSplitInstanceBindRegions ) result += "SplitInstanceBindRegions | ";
if ( value & SwapchainCreateFlagBitsKHR::eProtected ) result += "Protected | "; if ( value & SwapchainCreateFlagBitsKHR::eProtected ) result += "Protected | ";
if ( value & SwapchainCreateFlagBitsKHR::eMutableFormat ) result += "MutableFormat"; if ( value & SwapchainCreateFlagBitsKHR::eMutableFormat ) result += "MutableFormat";
return result;
} }
enum class ValidationCacheCreateFlagBitsEXT enum class ValidationCacheCreateFlagBitsEXT