From: Chad Versace Date: Mon, 13 Jul 2015 19:48:44 +0000 (-0700) Subject: vk/0.132: Move VKImageUsageFlags X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=601d0891a69fa0fdbf6a89aa72117d372f20170f;p=mesa.git vk/0.132: Move VKImageUsageFlags --- diff --git a/include/vulkan/vulkan.h b/include/vulkan/vulkan.h index ccf6257dcab..e7b9659bb72 100644 --- a/include/vulkan/vulkan.h +++ b/include/vulkan/vulkan.h @@ -899,6 +899,18 @@ typedef enum { } VkFormatFeatureFlagBits; typedef VkFlags VkFormatFeatureFlags; +typedef enum { + VK_IMAGE_USAGE_GENERAL = 0, + VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT = 0x00000001, + VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT = 0x00000002, + VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004, + VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008, + VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010, + VK_IMAGE_USAGE_DEPTH_STENCIL_BIT = 0x00000020, + VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040, +} VkImageUsageFlagBits; +typedef VkFlags VkImageUsageFlags; + typedef enum { VK_QUEUE_GRAPHICS_BIT = 0x00000001, VK_QUEUE_COMPUTE_BIT = 0x00000002, @@ -978,18 +990,6 @@ typedef enum { } VkBufferCreateFlagBits; typedef VkFlags VkBufferCreateFlags; -typedef enum { - VK_IMAGE_USAGE_GENERAL = 0, - VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT = 0x00000001, - VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT = 0x00000002, - VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004, - VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008, - VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010, - VK_IMAGE_USAGE_DEPTH_STENCIL_BIT = 0x00000020, - VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040, -} VkImageUsageFlagBits; -typedef VkFlags VkImageUsageFlags; - typedef enum { VK_IMAGE_CREATE_INVARIANT_DATA_BIT = 0x00000001, VK_IMAGE_CREATE_SPARSE_BIT = 0x00000002,