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