# include <vector>
#endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
-static_assert( VK_HEADER_VERSION == 21 , "Wrong VK_HEADER_VERSION!" );
+static_assert( VK_HEADER_VERSION == 24 , "Wrong VK_HEADER_VERSION!" );
// 32-bit vulkan is not typesafe for handles, so don't allow copy constructors on this platform by default.
// To enable this feature on 32-bit platforms please define VULKAN_HPP_TYPESAFE_CONVERSION
-#if defined(__LP64__) || defined(_WIN64) || defined(__x86_64__) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
+#if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__) ) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
#define VULKAN_HPP_TYPESAFE_CONVERSION 1
#endif
eErrorIncompatibleDriver = VK_ERROR_INCOMPATIBLE_DRIVER,
eErrorTooManyObjects = VK_ERROR_TOO_MANY_OBJECTS,
eErrorFormatNotSupported = VK_ERROR_FORMAT_NOT_SUPPORTED,
+ eErrorFragmentedPool = VK_ERROR_FRAGMENTED_POOL,
eErrorSurfaceLostKHR = VK_ERROR_SURFACE_LOST_KHR,
eErrorNativeWindowInUseKHR = VK_ERROR_NATIVE_WINDOW_IN_USE_KHR,
eSuboptimalKHR = VK_SUBOPTIMAL_KHR,
case Result::eErrorIncompatibleDriver: return "ErrorIncompatibleDriver";
case Result::eErrorTooManyObjects: return "ErrorTooManyObjects";
case Result::eErrorFormatNotSupported: return "ErrorFormatNotSupported";
+ case Result::eErrorFragmentedPool: return "ErrorFragmentedPool";
case Result::eErrorSurfaceLostKHR: return "ErrorSurfaceLostKHR";
case Result::eErrorNativeWindowInUseKHR: return "ErrorNativeWindowInUseKHR";
case Result::eSuboptimalKHR: return "SuboptimalKHR";
}
#endif
+ bool operator==(DeviceMemory const &rhs) const
+ {
+ return m_deviceMemory == rhs.m_deviceMemory;
+ }
+
+ bool operator!=(DeviceMemory const &rhs) const
+ {
+ return m_deviceMemory != rhs.m_deviceMemory;
+ }
+
+ bool operator<(DeviceMemory const &rhs) const
+ {
+ return m_deviceMemory < rhs.m_deviceMemory;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(CommandPool const &rhs) const
+ {
+ return m_commandPool == rhs.m_commandPool;
+ }
+
+ bool operator!=(CommandPool const &rhs) const
+ {
+ return m_commandPool != rhs.m_commandPool;
+ }
+
+ bool operator<(CommandPool const &rhs) const
+ {
+ return m_commandPool < rhs.m_commandPool;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(Buffer const &rhs) const
+ {
+ return m_buffer == rhs.m_buffer;
+ }
+
+ bool operator!=(Buffer const &rhs) const
+ {
+ return m_buffer != rhs.m_buffer;
+ }
+
+ bool operator<(Buffer const &rhs) const
+ {
+ return m_buffer < rhs.m_buffer;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(BufferView const &rhs) const
+ {
+ return m_bufferView == rhs.m_bufferView;
+ }
+
+ bool operator!=(BufferView const &rhs) const
+ {
+ return m_bufferView != rhs.m_bufferView;
+ }
+
+ bool operator<(BufferView const &rhs) const
+ {
+ return m_bufferView < rhs.m_bufferView;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(Image const &rhs) const
+ {
+ return m_image == rhs.m_image;
+ }
+
+ bool operator!=(Image const &rhs) const
+ {
+ return m_image != rhs.m_image;
+ }
+
+ bool operator<(Image const &rhs) const
+ {
+ return m_image < rhs.m_image;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(ImageView const &rhs) const
+ {
+ return m_imageView == rhs.m_imageView;
+ }
+
+ bool operator!=(ImageView const &rhs) const
+ {
+ return m_imageView != rhs.m_imageView;
+ }
+
+ bool operator<(ImageView const &rhs) const
+ {
+ return m_imageView < rhs.m_imageView;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(ShaderModule const &rhs) const
+ {
+ return m_shaderModule == rhs.m_shaderModule;
+ }
+
+ bool operator!=(ShaderModule const &rhs) const
+ {
+ return m_shaderModule != rhs.m_shaderModule;
+ }
+
+ bool operator<(ShaderModule const &rhs) const
+ {
+ return m_shaderModule < rhs.m_shaderModule;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(Pipeline const &rhs) const
+ {
+ return m_pipeline == rhs.m_pipeline;
+ }
+
+ bool operator!=(Pipeline const &rhs) const
+ {
+ return m_pipeline != rhs.m_pipeline;
+ }
+
+ bool operator<(Pipeline const &rhs) const
+ {
+ return m_pipeline < rhs.m_pipeline;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(PipelineLayout const &rhs) const
+ {
+ return m_pipelineLayout == rhs.m_pipelineLayout;
+ }
+
+ bool operator!=(PipelineLayout const &rhs) const
+ {
+ return m_pipelineLayout != rhs.m_pipelineLayout;
+ }
+
+ bool operator<(PipelineLayout const &rhs) const
+ {
+ return m_pipelineLayout < rhs.m_pipelineLayout;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(Sampler const &rhs) const
+ {
+ return m_sampler == rhs.m_sampler;
+ }
+
+ bool operator!=(Sampler const &rhs) const
+ {
+ return m_sampler != rhs.m_sampler;
+ }
+
+ bool operator<(Sampler const &rhs) const
+ {
+ return m_sampler < rhs.m_sampler;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(DescriptorSet const &rhs) const
+ {
+ return m_descriptorSet == rhs.m_descriptorSet;
+ }
+
+ bool operator!=(DescriptorSet const &rhs) const
+ {
+ return m_descriptorSet != rhs.m_descriptorSet;
+ }
+
+ bool operator<(DescriptorSet const &rhs) const
+ {
+ return m_descriptorSet < rhs.m_descriptorSet;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(DescriptorSetLayout const &rhs) const
+ {
+ return m_descriptorSetLayout == rhs.m_descriptorSetLayout;
+ }
+
+ bool operator!=(DescriptorSetLayout const &rhs) const
+ {
+ return m_descriptorSetLayout != rhs.m_descriptorSetLayout;
+ }
+
+ bool operator<(DescriptorSetLayout const &rhs) const
+ {
+ return m_descriptorSetLayout < rhs.m_descriptorSetLayout;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(DescriptorPool const &rhs) const
+ {
+ return m_descriptorPool == rhs.m_descriptorPool;
+ }
+
+ bool operator!=(DescriptorPool const &rhs) const
+ {
+ return m_descriptorPool != rhs.m_descriptorPool;
+ }
+
+ bool operator<(DescriptorPool const &rhs) const
+ {
+ return m_descriptorPool < rhs.m_descriptorPool;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(Fence const &rhs) const
+ {
+ return m_fence == rhs.m_fence;
+ }
+
+ bool operator!=(Fence const &rhs) const
+ {
+ return m_fence != rhs.m_fence;
+ }
+
+ bool operator<(Fence const &rhs) const
+ {
+ return m_fence < rhs.m_fence;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(Semaphore const &rhs) const
+ {
+ return m_semaphore == rhs.m_semaphore;
+ }
+
+ bool operator!=(Semaphore const &rhs) const
+ {
+ return m_semaphore != rhs.m_semaphore;
+ }
+
+ bool operator<(Semaphore const &rhs) const
+ {
+ return m_semaphore < rhs.m_semaphore;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(Event const &rhs) const
+ {
+ return m_event == rhs.m_event;
+ }
+
+ bool operator!=(Event const &rhs) const
+ {
+ return m_event != rhs.m_event;
+ }
+
+ bool operator<(Event const &rhs) const
+ {
+ return m_event < rhs.m_event;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(QueryPool const &rhs) const
+ {
+ return m_queryPool == rhs.m_queryPool;
+ }
+
+ bool operator!=(QueryPool const &rhs) const
+ {
+ return m_queryPool != rhs.m_queryPool;
+ }
+
+ bool operator<(QueryPool const &rhs) const
+ {
+ return m_queryPool < rhs.m_queryPool;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(Framebuffer const &rhs) const
+ {
+ return m_framebuffer == rhs.m_framebuffer;
+ }
+
+ bool operator!=(Framebuffer const &rhs) const
+ {
+ return m_framebuffer != rhs.m_framebuffer;
+ }
+
+ bool operator<(Framebuffer const &rhs) const
+ {
+ return m_framebuffer < rhs.m_framebuffer;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(RenderPass const &rhs) const
+ {
+ return m_renderPass == rhs.m_renderPass;
+ }
+
+ bool operator!=(RenderPass const &rhs) const
+ {
+ return m_renderPass != rhs.m_renderPass;
+ }
+
+ bool operator<(RenderPass const &rhs) const
+ {
+ return m_renderPass < rhs.m_renderPass;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(PipelineCache const &rhs) const
+ {
+ return m_pipelineCache == rhs.m_pipelineCache;
+ }
+
+ bool operator!=(PipelineCache const &rhs) const
+ {
+ return m_pipelineCache != rhs.m_pipelineCache;
+ }
+
+ bool operator<(PipelineCache const &rhs) const
+ {
+ return m_pipelineCache < rhs.m_pipelineCache;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(DisplayKHR const &rhs) const
+ {
+ return m_displayKHR == rhs.m_displayKHR;
+ }
+
+ bool operator!=(DisplayKHR const &rhs) const
+ {
+ return m_displayKHR != rhs.m_displayKHR;
+ }
+
+ bool operator<(DisplayKHR const &rhs) const
+ {
+ return m_displayKHR < rhs.m_displayKHR;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(DisplayModeKHR const &rhs) const
+ {
+ return m_displayModeKHR == rhs.m_displayModeKHR;
+ }
+
+ bool operator!=(DisplayModeKHR const &rhs) const
+ {
+ return m_displayModeKHR != rhs.m_displayModeKHR;
+ }
+
+ bool operator<(DisplayModeKHR const &rhs) const
+ {
+ return m_displayModeKHR < rhs.m_displayModeKHR;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(SurfaceKHR const &rhs) const
+ {
+ return m_surfaceKHR == rhs.m_surfaceKHR;
+ }
+
+ bool operator!=(SurfaceKHR const &rhs) const
+ {
+ return m_surfaceKHR != rhs.m_surfaceKHR;
+ }
+
+ bool operator<(SurfaceKHR const &rhs) const
+ {
+ return m_surfaceKHR < rhs.m_surfaceKHR;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(SwapchainKHR const &rhs) const
+ {
+ return m_swapchainKHR == rhs.m_swapchainKHR;
+ }
+
+ bool operator!=(SwapchainKHR const &rhs) const
+ {
+ return m_swapchainKHR != rhs.m_swapchainKHR;
+ }
+
+ bool operator<(SwapchainKHR const &rhs) const
+ {
+ return m_swapchainKHR < rhs.m_swapchainKHR;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
}
#endif
+ bool operator==(DebugReportCallbackEXT const &rhs) const
+ {
+ return m_debugReportCallbackEXT == rhs.m_debugReportCallbackEXT;
+ }
+
+ bool operator!=(DebugReportCallbackEXT const &rhs) const
+ {
+ return m_debugReportCallbackEXT != rhs.m_debugReportCallbackEXT;
+ }
+
+ bool operator<(DebugReportCallbackEXT const &rhs) const
+ {
+ return m_debugReportCallbackEXT < rhs.m_debugReportCallbackEXT;
+ }
+
#if !defined(VULKAN_HPP_TYPESAFE_CONVERSION)
explicit
#endif
eAstc12x10UnormBlock = VK_FORMAT_ASTC_12x10_UNORM_BLOCK,
eAstc12x10SrgbBlock = VK_FORMAT_ASTC_12x10_SRGB_BLOCK,
eAstc12x12UnormBlock = VK_FORMAT_ASTC_12x12_UNORM_BLOCK,
- eAstc12x12SrgbBlock = VK_FORMAT_ASTC_12x12_SRGB_BLOCK
+ eAstc12x12SrgbBlock = VK_FORMAT_ASTC_12x12_SRGB_BLOCK,
+ ePvrtc12BppUnormBlockIMG = VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG,
+ ePvrtc14BppUnormBlockIMG = VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG,
+ ePvrtc22BppUnormBlockIMG = VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG,
+ ePvrtc24BppUnormBlockIMG = VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG,
+ ePvrtc12BppSrgbBlockIMG = VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG,
+ ePvrtc14BppSrgbBlockIMG = VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG,
+ ePvrtc22BppSrgbBlockIMG = VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG,
+ ePvrtc24BppSrgbBlockIMG = VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG
};
struct VertexInputAttributeDescription
}
#endif
+ bool operator==(CommandBuffer const &rhs) const
+ {
+ return m_commandBuffer == rhs.m_commandBuffer;
+ }
+
+ bool operator!=(CommandBuffer const &rhs) const
+ {
+ return m_commandBuffer != rhs.m_commandBuffer;
+ }
+
+ bool operator<(CommandBuffer const &rhs) const
+ {
+ return m_commandBuffer < rhs.m_commandBuffer;
+ }
+
Result begin( const CommandBufferBeginInfo* pBeginInfo ) const
{
return static_cast<Result>( vkBeginCommandBuffer( m_commandBuffer, reinterpret_cast<const VkCommandBufferBeginInfo*>( pBeginInfo ) ) );
}
#endif
+ bool operator==(Queue const &rhs) const
+ {
+ return m_queue == rhs.m_queue;
+ }
+
+ bool operator!=(Queue const &rhs) const
+ {
+ return m_queue != rhs.m_queue;
+ }
+
+ bool operator<(Queue const &rhs) const
+ {
+ return m_queue < rhs.m_queue;
+ }
+
Result submit( uint32_t submitCount, const SubmitInfo* pSubmits, Fence fence ) const
{
return static_cast<Result>( vkQueueSubmit( m_queue, submitCount, reinterpret_cast<const VkSubmitInfo*>( pSubmits ), static_cast<VkFence>( fence ) ) );
}
#endif
+ bool operator==(Device const &rhs) const
+ {
+ return m_device == rhs.m_device;
+ }
+
+ bool operator!=(Device const &rhs) const
+ {
+ return m_device != rhs.m_device;
+ }
+
+ bool operator<(Device const &rhs) const
+ {
+ return m_device < rhs.m_device;
+ }
+
PFN_vkVoidFunction getProcAddr( const char* pName ) const
{
return vkGetDeviceProcAddr( m_device, pName );
}
#endif
+ bool operator==(PhysicalDevice const &rhs) const
+ {
+ return m_physicalDevice == rhs.m_physicalDevice;
+ }
+
+ bool operator!=(PhysicalDevice const &rhs) const
+ {
+ return m_physicalDevice != rhs.m_physicalDevice;
+ }
+
+ bool operator<(PhysicalDevice const &rhs) const
+ {
+ return m_physicalDevice < rhs.m_physicalDevice;
+ }
+
void getProperties( PhysicalDeviceProperties* pProperties ) const
{
vkGetPhysicalDeviceProperties( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties*>( pProperties ) );
}
#endif
+ bool operator==(Instance const &rhs) const
+ {
+ return m_instance == rhs.m_instance;
+ }
+
+ bool operator!=(Instance const &rhs) const
+ {
+ return m_instance != rhs.m_instance;
+ }
+
+ bool operator<(Instance const &rhs) const
+ {
+ return m_instance < rhs.m_instance;
+ }
+
void destroy( const AllocationCallbacks* pAllocator ) const
{
vkDestroyInstance( m_instance, reinterpret_cast<const VkAllocationCallbacks*>( pAllocator ) );
case Format::eAstc12x10SrgbBlock: return "Astc12x10SrgbBlock";
case Format::eAstc12x12UnormBlock: return "Astc12x12UnormBlock";
case Format::eAstc12x12SrgbBlock: return "Astc12x12SrgbBlock";
+ case Format::ePvrtc12BppUnormBlockIMG: return "Pvrtc12BppUnormBlockIMG";
+ case Format::ePvrtc14BppUnormBlockIMG: return "Pvrtc14BppUnormBlockIMG";
+ case Format::ePvrtc22BppUnormBlockIMG: return "Pvrtc22BppUnormBlockIMG";
+ case Format::ePvrtc24BppUnormBlockIMG: return "Pvrtc24BppUnormBlockIMG";
+ case Format::ePvrtc12BppSrgbBlockIMG: return "Pvrtc12BppSrgbBlockIMG";
+ case Format::ePvrtc14BppSrgbBlockIMG: return "Pvrtc14BppSrgbBlockIMG";
+ case Format::ePvrtc22BppSrgbBlockIMG: return "Pvrtc22BppSrgbBlockIMG";
+ case Format::ePvrtc24BppSrgbBlockIMG: return "Pvrtc24BppSrgbBlockIMG";
default: return "invalid";
}
}