From 601d0891a69fa0fdbf6a89aa72117d372f20170f Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Mon, 13 Jul 2015 12:48:44 -0700 Subject: [PATCH] vk/0.132: Move VKImageUsageFlags --- include/vulkan/vulkan.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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, -- 2.30.2