| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1 | // | 
|  | 2 | // File: vulkan.h | 
|  | 3 | // | 
|  | 4 | /* | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 5 | ** Copyright (c) 2014-2015 The Khronos Group Inc. | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 6 | ** | 
|  | 7 | ** Permission is hereby granted, free of charge, to any person obtaining a | 
|  | 8 | ** copy of this software and/or associated documentation files (the | 
|  | 9 | ** "Materials"), to deal in the Materials without restriction, including | 
|  | 10 | ** without limitation the rights to use, copy, modify, merge, publish, | 
|  | 11 | ** distribute, sublicense, and/or sell copies of the Materials, and to | 
|  | 12 | ** permit persons to whom the Materials are furnished to do so, subject to | 
|  | 13 | ** the following conditions: | 
|  | 14 | ** | 
|  | 15 | ** The above copyright notice and this permission notice shall be included | 
|  | 16 | ** in all copies or substantial portions of the Materials. | 
|  | 17 | ** | 
|  | 18 | ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | 
|  | 19 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | 
|  | 20 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | 
|  | 21 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | 
|  | 22 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | 
|  | 23 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | 
|  | 24 | ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. | 
|  | 25 | */ | 
|  | 26 |  | 
|  | 27 | #ifndef __VULKAN_H__ | 
|  | 28 | #define __VULKAN_H__ | 
|  | 29 |  | 
|  | 30 | #define VK_MAKE_VERSION(major, minor, patch) \ | 
|  | 31 | ((major << 22) | (minor << 12) | patch) | 
|  | 32 |  | 
| Courtney Goeltzenleuchter | b0cedb8 | 2015-04-09 11:52:55 -0600 | [diff] [blame] | 33 | #include "vk_platform.h" | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 34 |  | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 35 | // Vulkan API version supported by this file | 
| Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 36 | #define VK_API_VERSION VK_MAKE_VERSION(0, 121, 0) | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 37 |  | 
|  | 38 | #ifdef __cplusplus | 
|  | 39 | extern "C" | 
|  | 40 | { | 
|  | 41 | #endif // __cplusplus | 
|  | 42 |  | 
|  | 43 | /* | 
|  | 44 | *************************************************************************************************** | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 45 | *   Core Vulkan API | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 46 | *************************************************************************************************** | 
|  | 47 | */ | 
|  | 48 |  | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 49 | #if defined (__cplusplus) && (VK_UINTPTRLEAST64_MAX == UINTPTR_MAX) | 
|  | 50 | #define VK_TYPE_SAFE_COMPATIBLE_HANDLES 1 | 
|  | 51 | #endif | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 52 |  | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 53 | #if defined(VK_TYPE_SAFE_COMPATIBLE_HANDLES) && !defined(VK_DISABLE_TYPE_SAFE_HANDLES) | 
|  | 54 | #define VK_DEFINE_PTR_HANDLE(_obj) struct _obj##_T { char _dummy; }; typedef _obj##_T* _obj; | 
|  | 55 | #define VK_DEFINE_PTR_SUBCLASS_HANDLE(_obj, _base) struct _obj##_T : public _base##_T {}; typedef _obj##_T* _obj; | 
|  | 56 |  | 
|  | 57 | #define VK_DEFINE_BASE_HANDLE(_obj) VK_DEFINE_PTR_HANDLE(_obj) | 
|  | 58 | #define VK_DEFINE_DISP_SUBCLASS_HANDLE(_obj, _base) VK_DEFINE_PTR_SUBCLASS_HANDLE(_obj, _base) | 
|  | 59 | #define VK_DEFINE_NONDISP_SUBCLASS_HANDLE(_obj, _base) VK_DEFINE_PTR_SUBCLASS_HANDLE(_obj, _base) | 
|  | 60 | #else | 
|  | 61 | #define VK_DEFINE_BASE_HANDLE(_obj) typedef VkUintPtrLeast64 _obj; | 
|  | 62 | #define VK_DEFINE_DISP_SUBCLASS_HANDLE(_obj, _base) typedef uintptr_t _obj; | 
|  | 63 | #define VK_DEFINE_NONDISP_SUBCLASS_HANDLE(_obj, _base) typedef VkUintPtrLeast64 _obj; | 
|  | 64 | #endif | 
|  | 65 |  | 
|  | 66 | VK_DEFINE_BASE_HANDLE(VkObject) | 
|  | 67 |  | 
|  | 68 | VK_DEFINE_DISP_SUBCLASS_HANDLE(VkInstance, VkObject) | 
|  | 69 | VK_DEFINE_DISP_SUBCLASS_HANDLE(VkPhysicalDevice, VkObject) | 
|  | 70 | VK_DEFINE_DISP_SUBCLASS_HANDLE(VkDevice, VkObject) | 
|  | 71 | VK_DEFINE_DISP_SUBCLASS_HANDLE(VkQueue, VkObject) | 
|  | 72 | VK_DEFINE_DISP_SUBCLASS_HANDLE(VkCmdBuffer, VkObject) | 
|  | 73 |  | 
|  | 74 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkNonDispatchable, VkObject) | 
|  | 75 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkDeviceMemory, VkNonDispatchable) | 
|  | 76 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkBuffer, VkNonDispatchable) | 
|  | 77 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkBufferView, VkNonDispatchable) | 
|  | 78 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkImage, VkNonDispatchable) | 
|  | 79 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkImageView, VkNonDispatchable) | 
|  | 80 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkColorAttachmentView, VkNonDispatchable) | 
|  | 81 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkDepthStencilView, VkNonDispatchable) | 
| Courtney Goeltzenleuchter | a607df1 | 2015-06-18 21:49:59 -0600 | [diff] [blame] | 82 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkShaderModule, VkNonDispatchable) | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 83 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkShader, VkNonDispatchable) | 
|  | 84 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkPipeline, VkNonDispatchable) | 
|  | 85 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkPipelineLayout, VkNonDispatchable) | 
|  | 86 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkSampler, VkNonDispatchable) | 
|  | 87 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkDescriptorSet, VkNonDispatchable) | 
|  | 88 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkDescriptorSetLayout, VkNonDispatchable) | 
|  | 89 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkDescriptorPool, VkNonDispatchable) | 
|  | 90 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkDynamicStateObject, VkNonDispatchable) | 
|  | 91 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkDynamicVpState, VkDynamicStateObject) | 
|  | 92 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkDynamicRsState, VkDynamicStateObject) | 
|  | 93 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkDynamicCbState, VkDynamicStateObject) | 
|  | 94 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkDynamicDsState, VkDynamicStateObject) | 
|  | 95 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkFence, VkNonDispatchable) | 
|  | 96 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkSemaphore, VkNonDispatchable) | 
|  | 97 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkEvent, VkNonDispatchable) | 
|  | 98 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkQueryPool, VkNonDispatchable) | 
|  | 99 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkFramebuffer, VkNonDispatchable) | 
|  | 100 | VK_DEFINE_NONDISP_SUBCLASS_HANDLE(VkRenderPass, VkNonDispatchable) | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 101 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 102 | #define VK_MAX_PHYSICAL_DEVICE_NAME 256 | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 103 | #define VK_MAX_EXTENSION_NAME       256 | 
| Mark Lobodzinski | eb68f0e | 2015-07-03 10:26:22 -0600 | [diff] [blame] | 104 | #define VK_MAX_DESCRIPTION          256 | 
| Mark Lobodzinski | b3fbcd9 | 2015-07-02 16:49:40 -0600 | [diff] [blame] | 105 | #define VK_MAX_MEMORY_TYPES         32 | 
|  | 106 | #define VK_MAX_MEMORY_HEAPS         16 | 
|  | 107 | #define VK_LOD_CLAMP_NONE           MAX_FLOAT | 
|  | 108 | #define VK_LAST_MIP_LEVEL           UINT32_MAX | 
|  | 109 | #define VK_LAST_ARRAY_SLICE         UINT32_MAX | 
| Courtney Goeltzenleuchter | 62b2d43 | 2015-06-04 11:35:43 -0600 | [diff] [blame] | 110 |  | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 111 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 112 | #define VK_WHOLE_SIZE           UINT64_MAX | 
|  | 113 |  | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 114 | #define VK_TRUE  1 | 
|  | 115 | #define VK_FALSE 0 | 
|  | 116 |  | 
|  | 117 | #define VK_NULL_HANDLE 0 | 
|  | 118 |  | 
|  | 119 | // This macro defines INT_MAX in enumerations to force compilers to use 32 bits | 
|  | 120 | // to represent them. This may or may not be necessary on some compilers. The | 
|  | 121 | // option to compile it out may allow compilers that warn about missing enumerants | 
|  | 122 | // in switch statements to be silenced. | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 123 | // Using this macro is not needed for flag bit enums because those aren't used | 
|  | 124 | // as storage type anywhere. | 
|  | 125 | #define VK_MAX_ENUM(Prefix) VK_##Prefix##_MAX_ENUM = 0x7FFFFFFF | 
|  | 126 |  | 
|  | 127 | // This macro defines the BEGIN_RANGE, END_RANGE, NUM, and MAX_ENUM constants for | 
|  | 128 | // the enumerations. | 
|  | 129 | #define VK_ENUM_RANGE(Prefix, First, Last) \ | 
|  | 130 | VK_##Prefix##_BEGIN_RANGE                               = VK_##Prefix##_##First, \ | 
|  | 131 | VK_##Prefix##_END_RANGE                                 = VK_##Prefix##_##Last, \ | 
|  | 132 | VK_NUM_##Prefix                                         = (VK_##Prefix##_END_RANGE - VK_##Prefix##_BEGIN_RANGE + 1), \ | 
|  | 133 | VK_MAX_ENUM(Prefix) | 
|  | 134 |  | 
|  | 135 | // This is a helper macro to define the value of flag bit enum values. | 
|  | 136 | #define VK_BIT(bit)     (1 << (bit)) | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 137 |  | 
|  | 138 | // ------------------------------------------------------------------------------------------------ | 
|  | 139 | // Enumerations | 
|  | 140 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 141 | typedef enum VkImageLayout_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 142 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 143 | VK_IMAGE_LAYOUT_UNDEFINED                               = 0x00000000,   // Implicit layout an image is when its contents are undefined due to various reasons (e.g. right after creation) | 
|  | 144 | VK_IMAGE_LAYOUT_GENERAL                                 = 0x00000001,   // General layout when image can be used for any kind of access | 
|  | 145 | VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL                = 0x00000002,   // Optimal layout when image is only used for color attachment read/write | 
|  | 146 | VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL        = 0x00000003,   // Optimal layout when image is only used for depth/stencil attachment read/write | 
|  | 147 | VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL         = 0x00000004,   // Optimal layout when image is used for read only depth/stencil attachment and shader access | 
|  | 148 | VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL                = 0x00000005,   // Optimal layout when image is used for read only shader access | 
| Mark Lobodzinski | 2b3fa3d | 2015-07-01 15:18:26 -0600 | [diff] [blame] | 149 | VK_IMAGE_LAYOUT_TRANSFER_SOURCE_OPTIMAL                 = 0x00000006,   // Optimal layout when image is used only as source of transfer operations | 
|  | 150 | VK_IMAGE_LAYOUT_TRANSFER_DESTINATION_OPTIMAL            = 0x00000007,   // Optimal layout when image is used only as destination of transfer operations | 
| Tony Barbour | 71a8512 | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 151 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 152 | VK_ENUM_RANGE(IMAGE_LAYOUT, UNDEFINED, TRANSFER_DESTINATION_OPTIMAL) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 153 | } VkImageLayout; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 154 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 155 | typedef enum VkAttachmentLoadOp_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 156 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 157 | VK_ATTACHMENT_LOAD_OP_LOAD                              = 0x00000000, | 
|  | 158 | VK_ATTACHMENT_LOAD_OP_CLEAR                             = 0x00000001, | 
|  | 159 | VK_ATTACHMENT_LOAD_OP_DONT_CARE                         = 0x00000002, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 160 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 161 | VK_ENUM_RANGE(ATTACHMENT_LOAD_OP, LOAD, DONT_CARE) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 162 | } VkAttachmentLoadOp; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 163 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 164 | typedef enum VkAttachmentStoreOp_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 165 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 166 | VK_ATTACHMENT_STORE_OP_STORE                            = 0x00000000, | 
|  | 167 | VK_ATTACHMENT_STORE_OP_RESOLVE_MSAA                     = 0x00000001, | 
|  | 168 | VK_ATTACHMENT_STORE_OP_DONT_CARE                        = 0x00000002, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 169 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 170 | VK_ENUM_RANGE(ATTACHMENT_STORE_OP, STORE, DONT_CARE) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 171 | } VkAttachmentStoreOp; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 172 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 173 | typedef enum VkImageType_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 174 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 175 | VK_IMAGE_TYPE_1D                                        = 0x00000000, | 
|  | 176 | VK_IMAGE_TYPE_2D                                        = 0x00000001, | 
|  | 177 | VK_IMAGE_TYPE_3D                                        = 0x00000002, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 178 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 179 | VK_ENUM_RANGE(IMAGE_TYPE, 1D, 3D) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 180 | } VkImageType; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 181 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 182 | typedef enum VkImageTiling_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 183 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 184 | VK_IMAGE_TILING_LINEAR                                  = 0x00000000, | 
|  | 185 | VK_IMAGE_TILING_OPTIMAL                                 = 0x00000001, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 186 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 187 | VK_ENUM_RANGE(IMAGE_TILING, LINEAR, OPTIMAL) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 188 | } VkImageTiling; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 189 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 190 | typedef enum VkImageViewType_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 191 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 192 | VK_IMAGE_VIEW_TYPE_1D                                   = 0x00000000, | 
|  | 193 | VK_IMAGE_VIEW_TYPE_2D                                   = 0x00000001, | 
|  | 194 | VK_IMAGE_VIEW_TYPE_3D                                   = 0x00000002, | 
|  | 195 | VK_IMAGE_VIEW_TYPE_CUBE                                 = 0x00000003, | 
| Mark Lobodzinski | e3f6611 | 2015-07-02 09:53:03 -0600 | [diff] [blame] | 196 | VK_IMAGE_VIEW_TYPE_1D_ARRAY                             = 0x00000004, | 
|  | 197 | VK_IMAGE_VIEW_TYPE_2D_ARRAY                             = 0x00000005, | 
|  | 198 | VK_IMAGE_VIEW_TYPE_CUBE_ARRAY                           = 0x00000006, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 199 |  | 
| Mark Lobodzinski | e3f6611 | 2015-07-02 09:53:03 -0600 | [diff] [blame] | 200 | VK_ENUM_RANGE(IMAGE_VIEW_TYPE, 1D, CUBE_ARRAY) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 201 | } VkImageViewType; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 202 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 203 | typedef enum VkImageAspect_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 204 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 205 | VK_IMAGE_ASPECT_COLOR                                   = 0x00000000, | 
|  | 206 | VK_IMAGE_ASPECT_DEPTH                                   = 0x00000001, | 
|  | 207 | VK_IMAGE_ASPECT_STENCIL                                 = 0x00000002, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 208 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 209 | VK_ENUM_RANGE(IMAGE_ASPECT, COLOR, STENCIL) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 210 | } VkImageAspect; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 211 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 212 | typedef enum VkBufferViewType_ | 
|  | 213 | { | 
|  | 214 | VK_BUFFER_VIEW_TYPE_RAW                                 = 0x00000000,   // Raw buffer without special structure (UBO, SSBO) | 
|  | 215 | VK_BUFFER_VIEW_TYPE_FORMATTED                           = 0x00000001,   // Buffer with format (TBO, IBO) | 
|  | 216 |  | 
|  | 217 | VK_ENUM_RANGE(BUFFER_VIEW_TYPE, RAW, FORMATTED) | 
|  | 218 | } VkBufferViewType; | 
|  | 219 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 220 | typedef enum VkChannelSwizzle_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 221 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 222 | VK_CHANNEL_SWIZZLE_ZERO                                 = 0x00000000, | 
|  | 223 | VK_CHANNEL_SWIZZLE_ONE                                  = 0x00000001, | 
|  | 224 | VK_CHANNEL_SWIZZLE_R                                    = 0x00000002, | 
|  | 225 | VK_CHANNEL_SWIZZLE_G                                    = 0x00000003, | 
|  | 226 | VK_CHANNEL_SWIZZLE_B                                    = 0x00000004, | 
|  | 227 | VK_CHANNEL_SWIZZLE_A                                    = 0x00000005, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 228 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 229 | VK_ENUM_RANGE(CHANNEL_SWIZZLE, ZERO, A) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 230 | } VkChannelSwizzle; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 231 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 232 | typedef enum VkDescriptorType_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 233 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 234 | VK_DESCRIPTOR_TYPE_SAMPLER                              = 0x00000000, | 
| Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 235 | VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER               = 0x00000001, | 
|  | 236 | VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE                        = 0x00000002, | 
|  | 237 | VK_DESCRIPTOR_TYPE_STORAGE_IMAGE                        = 0x00000003, | 
|  | 238 | VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER                 = 0x00000004, | 
|  | 239 | VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER                 = 0x00000005, | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 240 | VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER                       = 0x00000006, | 
| Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 241 | VK_DESCRIPTOR_TYPE_STORAGE_BUFFER                       = 0x00000007, | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 242 | VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC               = 0x00000008, | 
| Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 243 | VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC               = 0x00000009, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 244 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 245 | VK_ENUM_RANGE(DESCRIPTOR_TYPE, SAMPLER, STORAGE_BUFFER_DYNAMIC) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 246 | } VkDescriptorType; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 247 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 248 | typedef enum VkDescriptorPoolUsage_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 249 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 250 | VK_DESCRIPTOR_POOL_USAGE_ONE_SHOT                       = 0x00000000, | 
|  | 251 | VK_DESCRIPTOR_POOL_USAGE_DYNAMIC                        = 0x00000001, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 252 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 253 | VK_ENUM_RANGE(DESCRIPTOR_POOL_USAGE, ONE_SHOT, DYNAMIC) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 254 | } VkDescriptorPoolUsage; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 255 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 256 | typedef enum VkDescriptorSetUsage_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 257 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 258 | VK_DESCRIPTOR_SET_USAGE_ONE_SHOT                        = 0x00000000, | 
|  | 259 | VK_DESCRIPTOR_SET_USAGE_STATIC                          = 0x00000001, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 260 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 261 | VK_ENUM_RANGE(DESCRIPTOR_SET_USAGE, ONE_SHOT, STATIC) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 262 | } VkDescriptorSetUsage; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 263 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 264 | typedef enum VkQueryType_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 265 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 266 | VK_QUERY_TYPE_OCCLUSION                                 = 0x00000000, | 
| Courtney Goeltzenleuchter | bb594ba | 2015-04-16 21:42:44 -0600 | [diff] [blame] | 267 | VK_QUERY_TYPE_PIPELINE_STATISTICS                       = 0x00000001, // Optional | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 268 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 269 | VK_ENUM_RANGE(QUERY_TYPE, OCCLUSION, PIPELINE_STATISTICS) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 270 | } VkQueryType; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 271 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 272 | typedef enum VkTimestampType_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 273 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 274 | VK_TIMESTAMP_TYPE_TOP                                   = 0x00000000, | 
|  | 275 | VK_TIMESTAMP_TYPE_BOTTOM                                = 0x00000001, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 276 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 277 | VK_ENUM_RANGE(TIMESTAMP_TYPE, TOP, BOTTOM) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 278 | } VkTimestampType; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 279 |  | 
| Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 280 | typedef enum VkRenderPassContents_ | 
|  | 281 | { | 
|  | 282 | VK_RENDER_PASS_CONTENTS_INLINE                          = 0x00000000, | 
|  | 283 | VK_RENDER_PASS_CONTENTS_SECONDARY_CMD_BUFFERS           = 0x00000001, | 
|  | 284 |  | 
|  | 285 | VK_ENUM_RANGE(RENDER_PASS_CONTENTS, INLINE, SECONDARY_CMD_BUFFERS) | 
|  | 286 | } VkRenderPassContents; | 
|  | 287 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 288 | typedef enum VkBorderColor_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 289 | { | 
| Tony Barbour | 26b17f8 | 2015-06-25 16:56:44 -0600 | [diff] [blame] | 290 | VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK                 = 0x00000000, | 
|  | 291 | VK_BORDER_COLOR_INT_TRANSPARENT_BLACK                   = 0x00000001, | 
|  | 292 | VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK                      = 0x00000002, | 
|  | 293 | VK_BORDER_COLOR_INT_OPAQUE_BLACK                        = 0x00000003, | 
|  | 294 | VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE                      = 0x00000004, | 
|  | 295 | VK_BORDER_COLOR_INT_OPAQUE_WHITE                        = 0x00000005, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 296 |  | 
| Tony Barbour | 26b17f8 | 2015-06-25 16:56:44 -0600 | [diff] [blame] | 297 | VK_ENUM_RANGE(BORDER_COLOR, FLOAT_TRANSPARENT_BLACK, INT_OPAQUE_WHITE) | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 298 | } VkBorderColor; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 299 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 300 | typedef enum VkPipelineBindPoint_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 301 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 302 | VK_PIPELINE_BIND_POINT_COMPUTE                          = 0x00000000, | 
|  | 303 | VK_PIPELINE_BIND_POINT_GRAPHICS                         = 0x00000001, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 304 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 305 | VK_ENUM_RANGE(PIPELINE_BIND_POINT, COMPUTE, GRAPHICS) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 306 | } VkPipelineBindPoint; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 307 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 308 | typedef enum VkStateBindPoint_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 309 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 310 | VK_STATE_BIND_POINT_VIEWPORT                            = 0x00000000, | 
|  | 311 | VK_STATE_BIND_POINT_RASTER                              = 0x00000001, | 
|  | 312 | VK_STATE_BIND_POINT_COLOR_BLEND                         = 0x00000002, | 
|  | 313 | VK_STATE_BIND_POINT_DEPTH_STENCIL                       = 0x00000003, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 314 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 315 | VK_ENUM_RANGE(STATE_BIND_POINT, VIEWPORT, DEPTH_STENCIL) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 316 | } VkStateBindPoint; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 317 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 318 | typedef enum VkPrimitiveTopology_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 319 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 320 | VK_PRIMITIVE_TOPOLOGY_POINT_LIST                        = 0x00000000, | 
|  | 321 | VK_PRIMITIVE_TOPOLOGY_LINE_LIST                         = 0x00000001, | 
|  | 322 | VK_PRIMITIVE_TOPOLOGY_LINE_STRIP                        = 0x00000002, | 
|  | 323 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST                     = 0x00000003, | 
|  | 324 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP                    = 0x00000004, | 
|  | 325 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN                      = 0x00000005, | 
|  | 326 | VK_PRIMITIVE_TOPOLOGY_LINE_LIST_ADJ                     = 0x00000006, | 
|  | 327 | VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_ADJ                    = 0x00000007, | 
|  | 328 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_ADJ                 = 0x00000008, | 
|  | 329 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_ADJ                = 0x00000009, | 
|  | 330 | VK_PRIMITIVE_TOPOLOGY_PATCH                             = 0x0000000a, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 331 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 332 | VK_ENUM_RANGE(PRIMITIVE_TOPOLOGY, POINT_LIST, PATCH) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 333 | } VkPrimitiveTopology; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 334 |  | 
| Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 335 | typedef enum VkCmdBufferLevel_ | 
|  | 336 | { | 
|  | 337 | VK_CMD_BUFFER_LEVEL_PRIMARY                             = 0x00000000, | 
|  | 338 | VK_CMD_BUFFER_LEVEL_SECONDARY                           = 0x00000001, | 
|  | 339 |  | 
|  | 340 | VK_ENUM_RANGE(CMD_BUFFER_LEVEL, PRIMARY, SECONDARY) | 
|  | 341 | } VkCmdBufferLevel; | 
|  | 342 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 343 | typedef enum VkIndexType_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 344 | { | 
| Mark Lobodzinski | 75721e8 | 2015-07-02 10:03:43 -0600 | [diff] [blame] | 345 | VK_INDEX_TYPE_UINT16                                    = 0x00000000, | 
|  | 346 | VK_INDEX_TYPE_UINT32                                    = 0x00000001, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 347 |  | 
| Mark Lobodzinski | 75721e8 | 2015-07-02 10:03:43 -0600 | [diff] [blame] | 348 | VK_ENUM_RANGE(INDEX_TYPE, UINT16, UINT32) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 349 | } VkIndexType; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 350 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 351 | typedef enum VkTexFilter_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 352 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 353 | VK_TEX_FILTER_NEAREST                                   = 0x00000000, | 
|  | 354 | VK_TEX_FILTER_LINEAR                                    = 0x00000001, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 355 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 356 | VK_ENUM_RANGE(TEX_FILTER, NEAREST, LINEAR) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 357 | } VkTexFilter; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 358 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 359 | typedef enum VkTexMipmapMode_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 360 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 361 | VK_TEX_MIPMAP_MODE_BASE                                 = 0x00000000,   // Always choose base level | 
|  | 362 | VK_TEX_MIPMAP_MODE_NEAREST                              = 0x00000001,   // Choose nearest mip level | 
|  | 363 | VK_TEX_MIPMAP_MODE_LINEAR                               = 0x00000002,   // Linear filter between mip levels | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 364 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 365 | VK_ENUM_RANGE(TEX_MIPMAP_MODE, BASE, LINEAR) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 366 | } VkTexMipmapMode; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 367 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 368 | typedef enum VkTexAddress_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 369 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 370 | VK_TEX_ADDRESS_WRAP                                     = 0x00000000, | 
|  | 371 | VK_TEX_ADDRESS_MIRROR                                   = 0x00000001, | 
|  | 372 | VK_TEX_ADDRESS_CLAMP                                    = 0x00000002, | 
|  | 373 | VK_TEX_ADDRESS_MIRROR_ONCE                              = 0x00000003, | 
|  | 374 | VK_TEX_ADDRESS_CLAMP_BORDER                             = 0x00000004, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 375 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 376 | VK_ENUM_RANGE(TEX_ADDRESS, WRAP, CLAMP_BORDER) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 377 | } VkTexAddress; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 378 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 379 | typedef enum VkCompareOp_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 380 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 381 | VK_COMPARE_OP_NEVER                                     = 0x00000000, | 
|  | 382 | VK_COMPARE_OP_LESS                                      = 0x00000001, | 
|  | 383 | VK_COMPARE_OP_EQUAL                                     = 0x00000002, | 
|  | 384 | VK_COMPARE_OP_LESS_EQUAL                                = 0x00000003, | 
|  | 385 | VK_COMPARE_OP_GREATER                                   = 0x00000004, | 
|  | 386 | VK_COMPARE_OP_NOT_EQUAL                                 = 0x00000005, | 
|  | 387 | VK_COMPARE_OP_GREATER_EQUAL                             = 0x00000006, | 
|  | 388 | VK_COMPARE_OP_ALWAYS                                    = 0x00000007, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 389 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 390 | VK_ENUM_RANGE(COMPARE_OP, NEVER, ALWAYS) | 
|  | 391 | } VkCompareOp; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 392 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 393 | typedef enum VkFillMode_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 394 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 395 | VK_FILL_MODE_POINTS                                     = 0x00000000, | 
|  | 396 | VK_FILL_MODE_WIREFRAME                                  = 0x00000001, | 
|  | 397 | VK_FILL_MODE_SOLID                                      = 0x00000002, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 398 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 399 | VK_ENUM_RANGE(FILL_MODE, POINTS, SOLID) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 400 | } VkFillMode; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 401 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 402 | typedef enum VkCullMode_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 403 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 404 | VK_CULL_MODE_NONE                                       = 0x00000000, | 
|  | 405 | VK_CULL_MODE_FRONT                                      = 0x00000001, | 
|  | 406 | VK_CULL_MODE_BACK                                       = 0x00000002, | 
|  | 407 | VK_CULL_MODE_FRONT_AND_BACK                             = 0x00000003, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 408 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 409 | VK_ENUM_RANGE(CULL_MODE, NONE, FRONT_AND_BACK) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 410 | } VkCullMode; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 411 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 412 | typedef enum VkFrontFace_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 413 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 414 | VK_FRONT_FACE_CCW                                       = 0x00000000, | 
|  | 415 | VK_FRONT_FACE_CW                                        = 0x00000001, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 416 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 417 | VK_ENUM_RANGE(FRONT_FACE, CCW, CW) | 
|  | 418 | } VkFrontFace; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 419 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 420 | typedef enum VkProvokingVertex_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 421 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 422 | VK_PROVOKING_VERTEX_FIRST                               = 0x00000000, | 
|  | 423 | VK_PROVOKING_VERTEX_LAST                                = 0x00000001, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 424 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 425 | VK_ENUM_RANGE(PROVOKING_VERTEX, FIRST, LAST) | 
|  | 426 | } VkProvokingVertex; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 427 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 428 | typedef enum VkCoordinateOrigin_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 429 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 430 | VK_COORDINATE_ORIGIN_UPPER_LEFT                         = 0x00000000, | 
|  | 431 | VK_COORDINATE_ORIGIN_LOWER_LEFT                         = 0x00000001, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 432 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 433 | VK_ENUM_RANGE(COORDINATE_ORIGIN, UPPER_LEFT, LOWER_LEFT) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 434 | } VkCoordinateOrigin; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 435 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 436 | typedef enum VkDepthMode_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 437 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 438 | VK_DEPTH_MODE_ZERO_TO_ONE                               = 0x00000000, | 
|  | 439 | VK_DEPTH_MODE_NEGATIVE_ONE_TO_ONE                       = 0x00000001, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 440 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 441 | VK_ENUM_RANGE(DEPTH_MODE, ZERO_TO_ONE, NEGATIVE_ONE_TO_ONE) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 442 | } VkDepthMode; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 443 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 444 | typedef enum VkBlend_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 445 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 446 | VK_BLEND_ZERO                                           = 0x00000000, | 
|  | 447 | VK_BLEND_ONE                                            = 0x00000001, | 
|  | 448 | VK_BLEND_SRC_COLOR                                      = 0x00000002, | 
|  | 449 | VK_BLEND_ONE_MINUS_SRC_COLOR                            = 0x00000003, | 
|  | 450 | VK_BLEND_DEST_COLOR                                     = 0x00000004, | 
|  | 451 | VK_BLEND_ONE_MINUS_DEST_COLOR                           = 0x00000005, | 
|  | 452 | VK_BLEND_SRC_ALPHA                                      = 0x00000006, | 
|  | 453 | VK_BLEND_ONE_MINUS_SRC_ALPHA                            = 0x00000007, | 
|  | 454 | VK_BLEND_DEST_ALPHA                                     = 0x00000008, | 
|  | 455 | VK_BLEND_ONE_MINUS_DEST_ALPHA                           = 0x00000009, | 
|  | 456 | VK_BLEND_CONSTANT_COLOR                                 = 0x0000000a, | 
|  | 457 | VK_BLEND_ONE_MINUS_CONSTANT_COLOR                       = 0x0000000b, | 
|  | 458 | VK_BLEND_CONSTANT_ALPHA                                 = 0x0000000c, | 
|  | 459 | VK_BLEND_ONE_MINUS_CONSTANT_ALPHA                       = 0x0000000d, | 
|  | 460 | VK_BLEND_SRC_ALPHA_SATURATE                             = 0x0000000e, | 
|  | 461 | VK_BLEND_SRC1_COLOR                                     = 0x0000000f, | 
|  | 462 | VK_BLEND_ONE_MINUS_SRC1_COLOR                           = 0x00000010, | 
|  | 463 | VK_BLEND_SRC1_ALPHA                                     = 0x00000011, | 
|  | 464 | VK_BLEND_ONE_MINUS_SRC1_ALPHA                           = 0x00000012, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 465 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 466 | VK_ENUM_RANGE(BLEND, ZERO, ONE_MINUS_SRC1_ALPHA) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 467 | } VkBlend; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 468 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 469 | typedef enum VkBlendOp_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 470 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 471 | VK_BLEND_OP_ADD                                         = 0x00000000, | 
|  | 472 | VK_BLEND_OP_SUBTRACT                                    = 0x00000001, | 
|  | 473 | VK_BLEND_OP_REVERSE_SUBTRACT                            = 0x00000002, | 
|  | 474 | VK_BLEND_OP_MIN                                         = 0x00000003, | 
|  | 475 | VK_BLEND_OP_MAX                                         = 0x00000004, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 476 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 477 | VK_ENUM_RANGE(BLEND_OP, ADD, MAX) | 
|  | 478 | } VkBlendOp; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 479 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 480 | typedef enum VkStencilOp_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 481 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 482 | VK_STENCIL_OP_KEEP                                      = 0x00000000, | 
|  | 483 | VK_STENCIL_OP_ZERO                                      = 0x00000001, | 
|  | 484 | VK_STENCIL_OP_REPLACE                                   = 0x00000002, | 
|  | 485 | VK_STENCIL_OP_INC_CLAMP                                 = 0x00000003, | 
|  | 486 | VK_STENCIL_OP_DEC_CLAMP                                 = 0x00000004, | 
|  | 487 | VK_STENCIL_OP_INVERT                                    = 0x00000005, | 
|  | 488 | VK_STENCIL_OP_INC_WRAP                                  = 0x00000006, | 
|  | 489 | VK_STENCIL_OP_DEC_WRAP                                  = 0x00000007, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 490 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 491 | VK_ENUM_RANGE(STENCIL_OP, KEEP, DEC_WRAP) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 492 | } VkStencilOp; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 493 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 494 | typedef enum VkLogicOp_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 495 | { | 
| Tony Barbour | 6be764c | 2015-06-26 13:28:56 -0600 | [diff] [blame] | 496 | VK_LOGIC_OP_CLEAR                                       = 0x00000000, | 
|  | 497 | VK_LOGIC_OP_AND                                         = 0x00000001, | 
|  | 498 | VK_LOGIC_OP_AND_REVERSE                                 = 0x00000002, | 
|  | 499 | VK_LOGIC_OP_COPY                                        = 0x00000003, | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 500 | VK_LOGIC_OP_AND_INVERTED                                = 0x00000004, | 
|  | 501 | VK_LOGIC_OP_NOOP                                        = 0x00000005, | 
|  | 502 | VK_LOGIC_OP_XOR                                         = 0x00000006, | 
|  | 503 | VK_LOGIC_OP_OR                                          = 0x00000007, | 
|  | 504 | VK_LOGIC_OP_NOR                                         = 0x00000008, | 
|  | 505 | VK_LOGIC_OP_EQUIV                                       = 0x00000009, | 
|  | 506 | VK_LOGIC_OP_INVERT                                      = 0x0000000a, | 
|  | 507 | VK_LOGIC_OP_OR_REVERSE                                  = 0x0000000b, | 
|  | 508 | VK_LOGIC_OP_COPY_INVERTED                               = 0x0000000c, | 
|  | 509 | VK_LOGIC_OP_OR_INVERTED                                 = 0x0000000d, | 
|  | 510 | VK_LOGIC_OP_NAND                                        = 0x0000000e, | 
|  | 511 | VK_LOGIC_OP_SET                                         = 0x0000000f, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 512 |  | 
| Tony Barbour | 6be764c | 2015-06-26 13:28:56 -0600 | [diff] [blame] | 513 | VK_ENUM_RANGE(LOGIC_OP, CLEAR, SET) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 514 | } VkLogicOp; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 515 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 516 | typedef enum VkSystemAllocType_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 517 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 518 | VK_SYSTEM_ALLOC_TYPE_API_OBJECT                         = 0x00000000, | 
|  | 519 | VK_SYSTEM_ALLOC_TYPE_INTERNAL                           = 0x00000001, | 
|  | 520 | VK_SYSTEM_ALLOC_TYPE_INTERNAL_TEMP                      = 0x00000002, | 
|  | 521 | VK_SYSTEM_ALLOC_TYPE_INTERNAL_SHADER                    = 0x00000003, | 
|  | 522 | VK_SYSTEM_ALLOC_TYPE_DEBUG                              = 0x00000004, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 523 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 524 | VK_ENUM_RANGE(SYSTEM_ALLOC_TYPE, API_OBJECT, DEBUG) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 525 | } VkSystemAllocType; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 526 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 527 | typedef enum VkPhysicalDeviceType_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 528 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 529 | VK_PHYSICAL_DEVICE_TYPE_OTHER                           = 0x00000000, | 
|  | 530 | VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU                  = 0x00000001, | 
|  | 531 | VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU                    = 0x00000002, | 
|  | 532 | VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU                     = 0x00000003, | 
|  | 533 | VK_PHYSICAL_DEVICE_TYPE_CPU                             = 0x00000004, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 534 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 535 | VK_ENUM_RANGE(PHYSICAL_DEVICE_TYPE, OTHER, CPU) | 
|  | 536 | } VkPhysicalDeviceType; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 537 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 538 | typedef enum VkVertexInputStepRate_ | 
|  | 539 | { | 
|  | 540 | VK_VERTEX_INPUT_STEP_RATE_VERTEX                        = 0x0, | 
|  | 541 | VK_VERTEX_INPUT_STEP_RATE_INSTANCE                      = 0x1, | 
|  | 542 | VK_VERTEX_INPUT_STEP_RATE_DRAW                          = 0x2,  //Optional | 
|  | 543 |  | 
|  | 544 | VK_ENUM_RANGE(VERTEX_INPUT_STEP_RATE, VERTEX, DRAW) | 
|  | 545 | } VkVertexInputStepRate; | 
|  | 546 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 547 | // Vulkan format definitions | 
|  | 548 | typedef enum VkFormat_ | 
|  | 549 | { | 
|  | 550 | VK_FORMAT_UNDEFINED                                     = 0x00000000, | 
|  | 551 | VK_FORMAT_R4G4_UNORM                                    = 0x00000001, | 
|  | 552 | VK_FORMAT_R4G4_USCALED                                  = 0x00000002, | 
|  | 553 | VK_FORMAT_R4G4B4A4_UNORM                                = 0x00000003, | 
|  | 554 | VK_FORMAT_R4G4B4A4_USCALED                              = 0x00000004, | 
|  | 555 | VK_FORMAT_R5G6B5_UNORM                                  = 0x00000005, | 
|  | 556 | VK_FORMAT_R5G6B5_USCALED                                = 0x00000006, | 
|  | 557 | VK_FORMAT_R5G5B5A1_UNORM                                = 0x00000007, | 
|  | 558 | VK_FORMAT_R5G5B5A1_USCALED                              = 0x00000008, | 
|  | 559 | VK_FORMAT_R8_UNORM                                      = 0x00000009, | 
|  | 560 | VK_FORMAT_R8_SNORM                                      = 0x0000000A, | 
|  | 561 | VK_FORMAT_R8_USCALED                                    = 0x0000000B, | 
|  | 562 | VK_FORMAT_R8_SSCALED                                    = 0x0000000C, | 
|  | 563 | VK_FORMAT_R8_UINT                                       = 0x0000000D, | 
|  | 564 | VK_FORMAT_R8_SINT                                       = 0x0000000E, | 
|  | 565 | VK_FORMAT_R8_SRGB                                       = 0x0000000F, | 
|  | 566 | VK_FORMAT_R8G8_UNORM                                    = 0x00000010, | 
|  | 567 | VK_FORMAT_R8G8_SNORM                                    = 0x00000011, | 
|  | 568 | VK_FORMAT_R8G8_USCALED                                  = 0x00000012, | 
|  | 569 | VK_FORMAT_R8G8_SSCALED                                  = 0x00000013, | 
|  | 570 | VK_FORMAT_R8G8_UINT                                     = 0x00000014, | 
|  | 571 | VK_FORMAT_R8G8_SINT                                     = 0x00000015, | 
|  | 572 | VK_FORMAT_R8G8_SRGB                                     = 0x00000016, | 
|  | 573 | VK_FORMAT_R8G8B8_UNORM                                  = 0x00000017, | 
|  | 574 | VK_FORMAT_R8G8B8_SNORM                                  = 0x00000018, | 
|  | 575 | VK_FORMAT_R8G8B8_USCALED                                = 0x00000019, | 
|  | 576 | VK_FORMAT_R8G8B8_SSCALED                                = 0x0000001A, | 
|  | 577 | VK_FORMAT_R8G8B8_UINT                                   = 0x0000001B, | 
|  | 578 | VK_FORMAT_R8G8B8_SINT                                   = 0x0000001C, | 
|  | 579 | VK_FORMAT_R8G8B8_SRGB                                   = 0x0000001D, | 
|  | 580 | VK_FORMAT_R8G8B8A8_UNORM                                = 0x0000001E, | 
|  | 581 | VK_FORMAT_R8G8B8A8_SNORM                                = 0x0000001F, | 
|  | 582 | VK_FORMAT_R8G8B8A8_USCALED                              = 0x00000020, | 
|  | 583 | VK_FORMAT_R8G8B8A8_SSCALED                              = 0x00000021, | 
|  | 584 | VK_FORMAT_R8G8B8A8_UINT                                 = 0x00000022, | 
|  | 585 | VK_FORMAT_R8G8B8A8_SINT                                 = 0x00000023, | 
|  | 586 | VK_FORMAT_R8G8B8A8_SRGB                                 = 0x00000024, | 
|  | 587 | VK_FORMAT_R10G10B10A2_UNORM                             = 0x00000025, | 
|  | 588 | VK_FORMAT_R10G10B10A2_SNORM                             = 0x00000026, | 
|  | 589 | VK_FORMAT_R10G10B10A2_USCALED                           = 0x00000027, | 
|  | 590 | VK_FORMAT_R10G10B10A2_SSCALED                           = 0x00000028, | 
|  | 591 | VK_FORMAT_R10G10B10A2_UINT                              = 0x00000029, | 
|  | 592 | VK_FORMAT_R10G10B10A2_SINT                              = 0x0000002A, | 
|  | 593 | VK_FORMAT_R16_UNORM                                     = 0x0000002B, | 
|  | 594 | VK_FORMAT_R16_SNORM                                     = 0x0000002C, | 
|  | 595 | VK_FORMAT_R16_USCALED                                   = 0x0000002D, | 
|  | 596 | VK_FORMAT_R16_SSCALED                                   = 0x0000002E, | 
|  | 597 | VK_FORMAT_R16_UINT                                      = 0x0000002F, | 
|  | 598 | VK_FORMAT_R16_SINT                                      = 0x00000030, | 
|  | 599 | VK_FORMAT_R16_SFLOAT                                    = 0x00000031, | 
|  | 600 | VK_FORMAT_R16G16_UNORM                                  = 0x00000032, | 
|  | 601 | VK_FORMAT_R16G16_SNORM                                  = 0x00000033, | 
|  | 602 | VK_FORMAT_R16G16_USCALED                                = 0x00000034, | 
|  | 603 | VK_FORMAT_R16G16_SSCALED                                = 0x00000035, | 
|  | 604 | VK_FORMAT_R16G16_UINT                                   = 0x00000036, | 
|  | 605 | VK_FORMAT_R16G16_SINT                                   = 0x00000037, | 
|  | 606 | VK_FORMAT_R16G16_SFLOAT                                 = 0x00000038, | 
|  | 607 | VK_FORMAT_R16G16B16_UNORM                               = 0x00000039, | 
|  | 608 | VK_FORMAT_R16G16B16_SNORM                               = 0x0000003A, | 
|  | 609 | VK_FORMAT_R16G16B16_USCALED                             = 0x0000003B, | 
|  | 610 | VK_FORMAT_R16G16B16_SSCALED                             = 0x0000003C, | 
|  | 611 | VK_FORMAT_R16G16B16_UINT                                = 0x0000003D, | 
|  | 612 | VK_FORMAT_R16G16B16_SINT                                = 0x0000003E, | 
|  | 613 | VK_FORMAT_R16G16B16_SFLOAT                              = 0x0000003F, | 
|  | 614 | VK_FORMAT_R16G16B16A16_UNORM                            = 0x00000040, | 
|  | 615 | VK_FORMAT_R16G16B16A16_SNORM                            = 0x00000041, | 
|  | 616 | VK_FORMAT_R16G16B16A16_USCALED                          = 0x00000042, | 
|  | 617 | VK_FORMAT_R16G16B16A16_SSCALED                          = 0x00000043, | 
|  | 618 | VK_FORMAT_R16G16B16A16_UINT                             = 0x00000044, | 
|  | 619 | VK_FORMAT_R16G16B16A16_SINT                             = 0x00000045, | 
|  | 620 | VK_FORMAT_R16G16B16A16_SFLOAT                           = 0x00000046, | 
|  | 621 | VK_FORMAT_R32_UINT                                      = 0x00000047, | 
|  | 622 | VK_FORMAT_R32_SINT                                      = 0x00000048, | 
|  | 623 | VK_FORMAT_R32_SFLOAT                                    = 0x00000049, | 
|  | 624 | VK_FORMAT_R32G32_UINT                                   = 0x0000004A, | 
|  | 625 | VK_FORMAT_R32G32_SINT                                   = 0x0000004B, | 
|  | 626 | VK_FORMAT_R32G32_SFLOAT                                 = 0x0000004C, | 
|  | 627 | VK_FORMAT_R32G32B32_UINT                                = 0x0000004D, | 
|  | 628 | VK_FORMAT_R32G32B32_SINT                                = 0x0000004E, | 
|  | 629 | VK_FORMAT_R32G32B32_SFLOAT                              = 0x0000004F, | 
|  | 630 | VK_FORMAT_R32G32B32A32_UINT                             = 0x00000050, | 
|  | 631 | VK_FORMAT_R32G32B32A32_SINT                             = 0x00000051, | 
|  | 632 | VK_FORMAT_R32G32B32A32_SFLOAT                           = 0x00000052, | 
|  | 633 | VK_FORMAT_R64_SFLOAT                                    = 0x00000053, | 
|  | 634 | VK_FORMAT_R64G64_SFLOAT                                 = 0x00000054, | 
|  | 635 | VK_FORMAT_R64G64B64_SFLOAT                              = 0x00000055, | 
|  | 636 | VK_FORMAT_R64G64B64A64_SFLOAT                           = 0x00000056, | 
|  | 637 | VK_FORMAT_R11G11B10_UFLOAT                              = 0x00000057, | 
|  | 638 | VK_FORMAT_R9G9B9E5_UFLOAT                               = 0x00000058, | 
|  | 639 | VK_FORMAT_D16_UNORM                                     = 0x00000059, | 
|  | 640 | VK_FORMAT_D24_UNORM                                     = 0x0000005A, | 
|  | 641 | VK_FORMAT_D32_SFLOAT                                    = 0x0000005B, | 
|  | 642 | VK_FORMAT_S8_UINT                                       = 0x0000005C, | 
|  | 643 | VK_FORMAT_D16_UNORM_S8_UINT                             = 0x0000005D, | 
|  | 644 | VK_FORMAT_D24_UNORM_S8_UINT                             = 0x0000005E, | 
|  | 645 | VK_FORMAT_D32_SFLOAT_S8_UINT                            = 0x0000005F, | 
|  | 646 | VK_FORMAT_BC1_RGB_UNORM                                 = 0x00000060, | 
|  | 647 | VK_FORMAT_BC1_RGB_SRGB                                  = 0x00000061, | 
|  | 648 | VK_FORMAT_BC1_RGBA_UNORM                                = 0x00000062, | 
|  | 649 | VK_FORMAT_BC1_RGBA_SRGB                                 = 0x00000063, | 
|  | 650 | VK_FORMAT_BC2_UNORM                                     = 0x00000064, | 
|  | 651 | VK_FORMAT_BC2_SRGB                                      = 0x00000065, | 
|  | 652 | VK_FORMAT_BC3_UNORM                                     = 0x00000066, | 
|  | 653 | VK_FORMAT_BC3_SRGB                                      = 0x00000067, | 
|  | 654 | VK_FORMAT_BC4_UNORM                                     = 0x00000068, | 
|  | 655 | VK_FORMAT_BC4_SNORM                                     = 0x00000069, | 
|  | 656 | VK_FORMAT_BC5_UNORM                                     = 0x0000006A, | 
|  | 657 | VK_FORMAT_BC5_SNORM                                     = 0x0000006B, | 
|  | 658 | VK_FORMAT_BC6H_UFLOAT                                   = 0x0000006C, | 
|  | 659 | VK_FORMAT_BC6H_SFLOAT                                   = 0x0000006D, | 
|  | 660 | VK_FORMAT_BC7_UNORM                                     = 0x0000006E, | 
|  | 661 | VK_FORMAT_BC7_SRGB                                      = 0x0000006F, | 
|  | 662 | VK_FORMAT_ETC2_R8G8B8_UNORM                             = 0x00000070, | 
|  | 663 | VK_FORMAT_ETC2_R8G8B8_SRGB                              = 0x00000071, | 
|  | 664 | VK_FORMAT_ETC2_R8G8B8A1_UNORM                           = 0x00000072, | 
|  | 665 | VK_FORMAT_ETC2_R8G8B8A1_SRGB                            = 0x00000073, | 
|  | 666 | VK_FORMAT_ETC2_R8G8B8A8_UNORM                           = 0x00000074, | 
|  | 667 | VK_FORMAT_ETC2_R8G8B8A8_SRGB                            = 0x00000075, | 
|  | 668 | VK_FORMAT_EAC_R11_UNORM                                 = 0x00000076, | 
|  | 669 | VK_FORMAT_EAC_R11_SNORM                                 = 0x00000077, | 
|  | 670 | VK_FORMAT_EAC_R11G11_UNORM                              = 0x00000078, | 
|  | 671 | VK_FORMAT_EAC_R11G11_SNORM                              = 0x00000079, | 
|  | 672 | VK_FORMAT_ASTC_4x4_UNORM                                = 0x0000007A, | 
|  | 673 | VK_FORMAT_ASTC_4x4_SRGB                                 = 0x0000007B, | 
|  | 674 | VK_FORMAT_ASTC_5x4_UNORM                                = 0x0000007C, | 
|  | 675 | VK_FORMAT_ASTC_5x4_SRGB                                 = 0x0000007D, | 
|  | 676 | VK_FORMAT_ASTC_5x5_UNORM                                = 0x0000007E, | 
|  | 677 | VK_FORMAT_ASTC_5x5_SRGB                                 = 0x0000007F, | 
|  | 678 | VK_FORMAT_ASTC_6x5_UNORM                                = 0x00000080, | 
|  | 679 | VK_FORMAT_ASTC_6x5_SRGB                                 = 0x00000081, | 
|  | 680 | VK_FORMAT_ASTC_6x6_UNORM                                = 0x00000082, | 
|  | 681 | VK_FORMAT_ASTC_6x6_SRGB                                 = 0x00000083, | 
|  | 682 | VK_FORMAT_ASTC_8x5_UNORM                                = 0x00000084, | 
|  | 683 | VK_FORMAT_ASTC_8x5_SRGB                                 = 0x00000085, | 
|  | 684 | VK_FORMAT_ASTC_8x6_UNORM                                = 0x00000086, | 
|  | 685 | VK_FORMAT_ASTC_8x6_SRGB                                 = 0x00000087, | 
|  | 686 | VK_FORMAT_ASTC_8x8_UNORM                                = 0x00000088, | 
|  | 687 | VK_FORMAT_ASTC_8x8_SRGB                                 = 0x00000089, | 
|  | 688 | VK_FORMAT_ASTC_10x5_UNORM                               = 0x0000008A, | 
|  | 689 | VK_FORMAT_ASTC_10x5_SRGB                                = 0x0000008B, | 
|  | 690 | VK_FORMAT_ASTC_10x6_UNORM                               = 0x0000008C, | 
|  | 691 | VK_FORMAT_ASTC_10x6_SRGB                                = 0x0000008D, | 
|  | 692 | VK_FORMAT_ASTC_10x8_UNORM                               = 0x0000008E, | 
|  | 693 | VK_FORMAT_ASTC_10x8_SRGB                                = 0x0000008F, | 
|  | 694 | VK_FORMAT_ASTC_10x10_UNORM                              = 0x00000090, | 
|  | 695 | VK_FORMAT_ASTC_10x10_SRGB                               = 0x00000091, | 
|  | 696 | VK_FORMAT_ASTC_12x10_UNORM                              = 0x00000092, | 
|  | 697 | VK_FORMAT_ASTC_12x10_SRGB                               = 0x00000093, | 
|  | 698 | VK_FORMAT_ASTC_12x12_UNORM                              = 0x00000094, | 
|  | 699 | VK_FORMAT_ASTC_12x12_SRGB                               = 0x00000095, | 
|  | 700 | VK_FORMAT_B4G4R4A4_UNORM                                = 0x00000096, | 
|  | 701 | VK_FORMAT_B5G5R5A1_UNORM                                = 0x00000097, | 
|  | 702 | VK_FORMAT_B5G6R5_UNORM                                  = 0x00000098, | 
|  | 703 | VK_FORMAT_B5G6R5_USCALED                                = 0x00000099, | 
|  | 704 | VK_FORMAT_B8G8R8_UNORM                                  = 0x0000009A, | 
|  | 705 | VK_FORMAT_B8G8R8_SNORM                                  = 0x0000009B, | 
|  | 706 | VK_FORMAT_B8G8R8_USCALED                                = 0x0000009C, | 
|  | 707 | VK_FORMAT_B8G8R8_SSCALED                                = 0x0000009D, | 
|  | 708 | VK_FORMAT_B8G8R8_UINT                                   = 0x0000009E, | 
|  | 709 | VK_FORMAT_B8G8R8_SINT                                   = 0x0000009F, | 
|  | 710 | VK_FORMAT_B8G8R8_SRGB                                   = 0x000000A0, | 
|  | 711 | VK_FORMAT_B8G8R8A8_UNORM                                = 0x000000A1, | 
|  | 712 | VK_FORMAT_B8G8R8A8_SNORM                                = 0x000000A2, | 
|  | 713 | VK_FORMAT_B8G8R8A8_USCALED                              = 0x000000A3, | 
|  | 714 | VK_FORMAT_B8G8R8A8_SSCALED                              = 0x000000A4, | 
|  | 715 | VK_FORMAT_B8G8R8A8_UINT                                 = 0x000000A5, | 
|  | 716 | VK_FORMAT_B8G8R8A8_SINT                                 = 0x000000A6, | 
|  | 717 | VK_FORMAT_B8G8R8A8_SRGB                                 = 0x000000A7, | 
|  | 718 | VK_FORMAT_B10G10R10A2_UNORM                             = 0x000000A8, | 
|  | 719 | VK_FORMAT_B10G10R10A2_SNORM                             = 0x000000A9, | 
|  | 720 | VK_FORMAT_B10G10R10A2_USCALED                           = 0x000000AA, | 
|  | 721 | VK_FORMAT_B10G10R10A2_SSCALED                           = 0x000000AB, | 
|  | 722 | VK_FORMAT_B10G10R10A2_UINT                              = 0x000000AC, | 
|  | 723 | VK_FORMAT_B10G10R10A2_SINT                              = 0x000000AD, | 
|  | 724 |  | 
|  | 725 | VK_ENUM_RANGE(FORMAT, UNDEFINED, B10G10R10A2_SINT) | 
|  | 726 | } VkFormat; | 
|  | 727 |  | 
|  | 728 | // Shader stage enumerant | 
|  | 729 | typedef enum VkShaderStage_ | 
|  | 730 | { | 
|  | 731 | VK_SHADER_STAGE_VERTEX                                  = 0, | 
|  | 732 | VK_SHADER_STAGE_TESS_CONTROL                            = 1, | 
|  | 733 | VK_SHADER_STAGE_TESS_EVALUATION                         = 2, | 
|  | 734 | VK_SHADER_STAGE_GEOMETRY                                = 3, | 
|  | 735 | VK_SHADER_STAGE_FRAGMENT                                = 4, | 
|  | 736 | VK_SHADER_STAGE_COMPUTE                                 = 5, | 
|  | 737 |  | 
|  | 738 | VK_ENUM_RANGE(SHADER_STAGE, VERTEX, COMPUTE) | 
|  | 739 | } VkShaderStage; | 
|  | 740 |  | 
|  | 741 | // Structure type enumerant | 
|  | 742 | typedef enum VkStructureType_ | 
|  | 743 | { | 
| Tony Barbour | 15fb095 | 2015-06-26 15:02:35 -0600 | [diff] [blame] | 744 | VK_STRUCTURE_TYPE_APPLICATION_INFO                        = 0, | 
|  | 745 | VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO                      = 1, | 
|  | 746 | VK_STRUCTURE_TYPE_MEMORY_ALLOC_INFO                       = 2, | 
|  | 747 | VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO                  = 3, | 
|  | 748 | VK_STRUCTURE_TYPE_COLOR_ATTACHMENT_VIEW_CREATE_INFO       = 4, | 
|  | 749 | VK_STRUCTURE_TYPE_DEPTH_STENCIL_VIEW_CREATE_INFO          = 5, | 
|  | 750 | VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO               = 6, | 
|  | 751 | VK_STRUCTURE_TYPE_SHADER_CREATE_INFO                      = 7, | 
|  | 752 | VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO            = 8, | 
|  | 753 | VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO                     = 9, | 
|  | 754 | VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO       = 10, | 
|  | 755 | VK_STRUCTURE_TYPE_DYNAMIC_VP_STATE_CREATE_INFO            = 11, | 
|  | 756 | VK_STRUCTURE_TYPE_DYNAMIC_RS_STATE_CREATE_INFO            = 12, | 
|  | 757 | VK_STRUCTURE_TYPE_DYNAMIC_CB_STATE_CREATE_INFO            = 13, | 
|  | 758 | VK_STRUCTURE_TYPE_DYNAMIC_DS_STATE_CREATE_INFO            = 14, | 
|  | 759 | VK_STRUCTURE_TYPE_CMD_BUFFER_CREATE_INFO                  = 15, | 
|  | 760 | VK_STRUCTURE_TYPE_EVENT_CREATE_INFO                       = 16, | 
|  | 761 | VK_STRUCTURE_TYPE_FENCE_CREATE_INFO                       = 17, | 
|  | 762 | VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO                   = 18, | 
|  | 763 | VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO                  = 19, | 
|  | 764 | VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO       = 20, | 
|  | 765 | VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO           = 21, | 
|  | 766 | VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = 22, | 
|  | 767 | VK_STRUCTURE_TYPE_PIPELINE_IA_STATE_CREATE_INFO           = 23, | 
|  | 768 | VK_STRUCTURE_TYPE_PIPELINE_TESS_STATE_CREATE_INFO         = 24, | 
|  | 769 | VK_STRUCTURE_TYPE_PIPELINE_VP_STATE_CREATE_INFO           = 25, | 
|  | 770 | VK_STRUCTURE_TYPE_PIPELINE_RS_STATE_CREATE_INFO           = 26, | 
|  | 771 | VK_STRUCTURE_TYPE_PIPELINE_MS_STATE_CREATE_INFO           = 27, | 
|  | 772 | VK_STRUCTURE_TYPE_PIPELINE_CB_STATE_CREATE_INFO           = 28, | 
|  | 773 | VK_STRUCTURE_TYPE_PIPELINE_DS_STATE_CREATE_INFO           = 29, | 
|  | 774 | VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO                       = 30, | 
|  | 775 | VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO                      = 31, | 
|  | 776 | VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO                 = 32, | 
|  | 777 | VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO                 = 33, | 
|  | 778 | VK_STRUCTURE_TYPE_CMD_BUFFER_BEGIN_INFO                   = 34, | 
| Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 779 |  | 
| Tony Barbour | 15fb095 | 2015-06-26 15:02:35 -0600 | [diff] [blame] | 780 | VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO                 = 36, | 
|  | 781 | VK_STRUCTURE_TYPE_MEMORY_BARRIER                          = 37, | 
|  | 782 | VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER                   = 38, | 
|  | 783 | VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER                    = 39, | 
|  | 784 | VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO             = 40, | 
|  | 785 | VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET                    = 41, | 
|  | 786 | VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET                     = 42, | 
|  | 787 | VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO                    = 43, | 
|  | 788 | VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO             = 44, | 
|  | 789 | VK_STRUCTURE_TYPE_EXTENSION_PROPERTIES                    = 45, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 790 |  | 
| Courtney Goeltzenleuchter | f579fa6 | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 791 | VK_ENUM_RANGE(STRUCTURE_TYPE, APPLICATION_INFO, EXTENSION_PROPERTIES) | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 792 | } VkStructureType; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 793 |  | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 794 | // Object type enumerant | 
|  | 795 | typedef enum VkObjectType_ | 
|  | 796 | { | 
|  | 797 | VK_OBJECT_TYPE_INSTANCE                                 = 0, | 
|  | 798 | VK_OBJECT_TYPE_PHYSICAL_DEVICE                          = 1, | 
|  | 799 | VK_OBJECT_TYPE_DEVICE                                   = 2, | 
|  | 800 | VK_OBJECT_TYPE_QUEUE                                    = 3, | 
|  | 801 | VK_OBJECT_TYPE_COMMAND_BUFFER                           = 4, | 
|  | 802 | VK_OBJECT_TYPE_DEVICE_MEMORY                            = 5, | 
|  | 803 | VK_OBJECT_TYPE_BUFFER                                   = 6, | 
|  | 804 | VK_OBJECT_TYPE_BUFFER_VIEW                              = 7, | 
|  | 805 | VK_OBJECT_TYPE_IMAGE                                    = 8, | 
|  | 806 | VK_OBJECT_TYPE_IMAGE_VIEW                               = 9, | 
|  | 807 | VK_OBJECT_TYPE_COLOR_ATTACHMENT_VIEW                    = 10, | 
|  | 808 | VK_OBJECT_TYPE_DEPTH_STENCIL_VIEW                       = 11, | 
| Courtney Goeltzenleuchter | a607df1 | 2015-06-18 21:49:59 -0600 | [diff] [blame] | 809 | VK_OBJECT_TYPE_SHADER_MODULE                            = 12, | 
|  | 810 | VK_OBJECT_TYPE_SHADER                                   = 13, | 
|  | 811 | VK_OBJECT_TYPE_PIPELINE                                 = 14, | 
|  | 812 | VK_OBJECT_TYPE_PIPELINE_LAYOUT                          = 15, | 
|  | 813 | VK_OBJECT_TYPE_SAMPLER                                  = 16, | 
|  | 814 | VK_OBJECT_TYPE_DESCRIPTOR_SET                           = 17, | 
|  | 815 | VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT                    = 18, | 
|  | 816 | VK_OBJECT_TYPE_DESCRIPTOR_POOL                          = 19, | 
|  | 817 | VK_OBJECT_TYPE_DYNAMIC_VP_STATE                         = 20, | 
|  | 818 | VK_OBJECT_TYPE_DYNAMIC_RS_STATE                         = 21, | 
|  | 819 | VK_OBJECT_TYPE_DYNAMIC_CB_STATE                         = 22, | 
|  | 820 | VK_OBJECT_TYPE_DYNAMIC_DS_STATE                         = 23, | 
|  | 821 | VK_OBJECT_TYPE_FENCE                                    = 24, | 
|  | 822 | VK_OBJECT_TYPE_SEMAPHORE                                = 25, | 
|  | 823 | VK_OBJECT_TYPE_EVENT                                    = 26, | 
|  | 824 | VK_OBJECT_TYPE_QUERY_POOL                               = 27, | 
|  | 825 | VK_OBJECT_TYPE_FRAMEBUFFER                              = 28, | 
|  | 826 | VK_OBJECT_TYPE_RENDER_PASS                              = 29, | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 827 |  | 
|  | 828 | // Valid ranges for core Vulkan: | 
|  | 829 | VK_OBJECT_TYPE_BEGIN_RANGE                              = VK_OBJECT_TYPE_INSTANCE, | 
|  | 830 | VK_OBJECT_TYPE_END_RANGE                                = VK_OBJECT_TYPE_RENDER_PASS, | 
|  | 831 | VK_NUM_OBJECT_TYPE                                      = (VK_OBJECT_TYPE_END_RANGE - VK_OBJECT_TYPE_BEGIN_RANGE + 1), | 
|  | 832 | VK_MAX_ENUM(VkObjectType) | 
|  | 833 | } VkObjectType; | 
|  | 834 |  | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 835 | // ------------------------------------------------------------------------------------------------ | 
|  | 836 | // Error and return codes | 
|  | 837 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 838 | typedef enum VkResult_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 839 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 840 | // Return codes for successful operation execution (> = 0) | 
|  | 841 | VK_SUCCESS                                              = 0x0000000, | 
|  | 842 | VK_UNSUPPORTED                                          = 0x0000001, | 
|  | 843 | VK_NOT_READY                                            = 0x0000002, | 
|  | 844 | VK_TIMEOUT                                              = 0x0000003, | 
|  | 845 | VK_EVENT_SET                                            = 0x0000004, | 
|  | 846 | VK_EVENT_RESET                                          = 0x0000005, | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 847 | VK_INCOMPLETE                                           = 0x0000006, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 848 |  | 
|  | 849 | // Error codes (negative values) | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 850 | VK_ERROR_UNKNOWN                                        = -(0x00000001), | 
|  | 851 | VK_ERROR_UNAVAILABLE                                    = -(0x00000002), | 
|  | 852 | VK_ERROR_INITIALIZATION_FAILED                          = -(0x00000003), | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 853 | VK_ERROR_OUT_OF_HOST_MEMORY                             = -(0x00000004), | 
|  | 854 | VK_ERROR_OUT_OF_DEVICE_MEMORY                           = -(0x00000005), | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 855 | VK_ERROR_DEVICE_ALREADY_CREATED                         = -(0x00000006), | 
|  | 856 | VK_ERROR_DEVICE_LOST                                    = -(0x00000007), | 
|  | 857 | VK_ERROR_INVALID_POINTER                                = -(0x00000008), | 
|  | 858 | VK_ERROR_INVALID_VALUE                                  = -(0x00000009), | 
|  | 859 | VK_ERROR_INVALID_HANDLE                                 = -(0x0000000A), | 
|  | 860 | VK_ERROR_INVALID_ORDINAL                                = -(0x0000000B), | 
|  | 861 | VK_ERROR_INVALID_MEMORY_SIZE                            = -(0x0000000C), | 
|  | 862 | VK_ERROR_INVALID_EXTENSION                              = -(0x0000000D), | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 863 | VK_ERROR_INVALID_LAYER                                  = -(0x0000000E), | 
|  | 864 | VK_ERROR_INVALID_FLAGS                                  = -(0x0000000F), | 
|  | 865 | VK_ERROR_INVALID_ALIGNMENT                              = -(0x00000010), | 
|  | 866 | VK_ERROR_INVALID_FORMAT                                 = -(0x00000011), | 
|  | 867 | VK_ERROR_INVALID_IMAGE                                  = -(0x00000012), | 
|  | 868 | VK_ERROR_INVALID_DESCRIPTOR_SET_DATA                    = -(0x00000013), | 
|  | 869 | VK_ERROR_INVALID_QUEUE_TYPE                             = -(0x00000014), | 
|  | 870 | VK_ERROR_INVALID_OBJECT_TYPE                            = -(0x00000015), | 
|  | 871 | VK_ERROR_UNSUPPORTED_SHADER_IL_VERSION                  = -(0x00000016), | 
|  | 872 | VK_ERROR_BAD_SHADER_CODE                                = -(0x00000017), | 
|  | 873 | VK_ERROR_BAD_PIPELINE_DATA                              = -(0x00000018), | 
|  | 874 | VK_ERROR_NOT_MAPPABLE                                   = -(0x00000019), | 
|  | 875 | VK_ERROR_MEMORY_MAP_FAILED                              = -(0x0000001A), | 
|  | 876 | VK_ERROR_MEMORY_UNMAP_FAILED                            = -(0x0000001B), | 
|  | 877 | VK_ERROR_INCOMPATIBLE_DEVICE                            = -(0x0000001C), | 
|  | 878 | VK_ERROR_INCOMPATIBLE_DRIVER                            = -(0x0000001D), | 
|  | 879 | VK_ERROR_INCOMPLETE_COMMAND_BUFFER                      = -(0x0000001E), | 
|  | 880 | VK_ERROR_BUILDING_COMMAND_BUFFER                        = -(0x0000001F), | 
|  | 881 | VK_ERROR_MEMORY_NOT_BOUND                               = -(0x00000020), | 
|  | 882 | VK_ERROR_INCOMPATIBLE_QUEUE                             = -(0x00000021), | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 883 |  | 
|  | 884 | VK_MAX_ENUM(RESULT) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 885 | } VkResult; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 886 |  | 
|  | 887 | // ------------------------------------------------------------------------------------------------ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 888 | // Flags | 
|  | 889 |  | 
|  | 890 | // Device creation flags | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 891 | typedef VkFlags VkDeviceCreateFlags; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 892 |  | 
|  | 893 | // Queue capabilities | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 894 | typedef VkFlags VkQueueFlags; | 
|  | 895 | typedef enum VkQueueFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 896 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 897 | VK_QUEUE_GRAPHICS_BIT                                   = VK_BIT(0),    // Queue supports graphics operations | 
|  | 898 | VK_QUEUE_COMPUTE_BIT                                    = VK_BIT(1),    // Queue supports compute operations | 
|  | 899 | VK_QUEUE_DMA_BIT                                        = VK_BIT(2),    // Queue supports DMA operations | 
| Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 900 | VK_QUEUE_SPARSE_MEMMGR_BIT                              = VK_BIT(3),    // Queue supports sparse resource memory management operations | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 901 | VK_QUEUE_EXTENDED_BIT                                   = VK_BIT(30),   // Extended queue | 
|  | 902 | } VkQueueFlagBits; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 903 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 904 | // Memory properties passed into vkAllocMemory(). | 
|  | 905 | typedef VkFlags VkMemoryPropertyFlags; | 
|  | 906 | typedef enum VkMemoryPropertyFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 907 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 908 | VK_MEMORY_PROPERTY_DEVICE_ONLY                          = 0,            // If otherwise stated, then allocate memory on device | 
|  | 909 | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT                     = VK_BIT(0),    // Memory should be mappable by host | 
| Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 910 | VK_MEMORY_PROPERTY_HOST_NON_COHERENT_BIT                = VK_BIT(1),    // Memory may not have i/o coherency so vkFlushMappedMemoryRanges and | 
|  | 911 | // vkInvalidateMappedMemoryRanges must be used flush/invalidate host cache | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 912 | VK_MEMORY_PROPERTY_HOST_UNCACHED_BIT                    = VK_BIT(2),    // Memory should not be cached by the host | 
|  | 913 | VK_MEMORY_PROPERTY_HOST_WRITE_COMBINED_BIT              = VK_BIT(3),    // Memory should support host write combining | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 914 | } VkMemoryPropertyFlagBits; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 915 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 916 | // Memory output flags passed to resource transition commands | 
|  | 917 | typedef VkFlags VkMemoryOutputFlags; | 
|  | 918 | typedef enum VkMemoryOutputFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 919 | { | 
| Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 920 | VK_MEMORY_OUTPUT_HOST_WRITE_BIT                         = VK_BIT(0),    // Controls output coherency of host writes | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 921 | VK_MEMORY_OUTPUT_SHADER_WRITE_BIT                       = VK_BIT(1),    // Controls output coherency of generic shader writes | 
|  | 922 | VK_MEMORY_OUTPUT_COLOR_ATTACHMENT_BIT                   = VK_BIT(2),    // Controls output coherency of color attachment writes | 
|  | 923 | VK_MEMORY_OUTPUT_DEPTH_STENCIL_ATTACHMENT_BIT           = VK_BIT(3),    // Controls output coherency of depth/stencil attachment writes | 
|  | 924 | VK_MEMORY_OUTPUT_TRANSFER_BIT                           = VK_BIT(4),    // Controls output coherency of transfer operations | 
|  | 925 | } VkMemoryOutputFlagBits; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 926 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 927 | // Memory input flags passed to resource transition commands | 
|  | 928 | typedef VkFlags VkMemoryInputFlags; | 
|  | 929 | typedef enum VkMemoryInputFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 930 | { | 
| Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 931 | VK_MEMORY_INPUT_HOST_READ_BIT                           = VK_BIT(0),    // Controls input coherency of host reads | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 932 | VK_MEMORY_INPUT_INDIRECT_COMMAND_BIT                    = VK_BIT(1),    // Controls input coherency of indirect command reads | 
|  | 933 | VK_MEMORY_INPUT_INDEX_FETCH_BIT                         = VK_BIT(2),    // Controls input coherency of index fetches | 
|  | 934 | VK_MEMORY_INPUT_VERTEX_ATTRIBUTE_FETCH_BIT              = VK_BIT(3),    // Controls input coherency of vertex attribute fetches | 
|  | 935 | VK_MEMORY_INPUT_UNIFORM_READ_BIT                        = VK_BIT(4),    // Controls input coherency of uniform buffer reads | 
|  | 936 | VK_MEMORY_INPUT_SHADER_READ_BIT                         = VK_BIT(5),    // Controls input coherency of generic shader reads | 
|  | 937 | VK_MEMORY_INPUT_COLOR_ATTACHMENT_BIT                    = VK_BIT(6),    // Controls input coherency of color attachment reads | 
|  | 938 | VK_MEMORY_INPUT_DEPTH_STENCIL_ATTACHMENT_BIT            = VK_BIT(7),    // Controls input coherency of depth/stencil attachment reads | 
|  | 939 | VK_MEMORY_INPUT_TRANSFER_BIT                            = VK_BIT(8),    // Controls input coherency of transfer operations | 
|  | 940 | } VkMemoryInputFlagBits; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 941 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 942 | // Buffer usage flags | 
|  | 943 | typedef VkFlags VkBufferUsageFlags; | 
|  | 944 | typedef enum VkBufferUsageFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 945 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 946 | VK_BUFFER_USAGE_GENERAL                                 = 0,            // No special usage | 
|  | 947 | VK_BUFFER_USAGE_TRANSFER_SOURCE_BIT                     = VK_BIT(0),    // Can be used as a source of transfer operations | 
|  | 948 | VK_BUFFER_USAGE_TRANSFER_DESTINATION_BIT                = VK_BIT(1),    // Can be used as a destination of transfer operations | 
|  | 949 | VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT                = VK_BIT(2),    // Can be used as TBO | 
|  | 950 | VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT                = VK_BIT(3),    // Can be used as IBO | 
|  | 951 | VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT                      = VK_BIT(4),    // Can be used as UBO | 
|  | 952 | VK_BUFFER_USAGE_STORAGE_BUFFER_BIT                      = VK_BIT(5),    // Can be used as SSBO | 
|  | 953 | VK_BUFFER_USAGE_INDEX_BUFFER_BIT                        = VK_BIT(6),    // Can be used as source of fixed function index fetch (index buffer) | 
|  | 954 | VK_BUFFER_USAGE_VERTEX_BUFFER_BIT                       = VK_BIT(7),    // Can be used as source of fixed function vertex fetch (VBO) | 
|  | 955 | VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT                     = VK_BIT(8),    // Can be the source of indirect parameters (e.g. indirect buffer, parameter buffer) | 
|  | 956 | } VkBufferUsageFlagBits; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 957 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 958 | // Buffer creation flags | 
|  | 959 | typedef VkFlags VkBufferCreateFlags; | 
|  | 960 | typedef enum VkBufferCreateFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 961 | { | 
| Courtney Goeltzenleuchter | 908aa75 | 2015-06-18 17:01:41 -0600 | [diff] [blame] | 962 | VK_BUFFER_CREATE_SPARSE_BIT                             = VK_BIT(0),    // Buffer should support sparse backing | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 963 | } VkBufferCreateFlagBits; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 964 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 965 | // Shader stage flags | 
|  | 966 | typedef VkFlags VkShaderStageFlags; | 
|  | 967 | typedef enum VkShaderStageFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 968 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 969 | VK_SHADER_STAGE_VERTEX_BIT                              = VK_BIT(0), | 
|  | 970 | VK_SHADER_STAGE_TESS_CONTROL_BIT                        = VK_BIT(1), | 
|  | 971 | VK_SHADER_STAGE_TESS_EVALUATION_BIT                     = VK_BIT(2), | 
|  | 972 | VK_SHADER_STAGE_GEOMETRY_BIT                            = VK_BIT(3), | 
|  | 973 | VK_SHADER_STAGE_FRAGMENT_BIT                            = VK_BIT(4), | 
|  | 974 | VK_SHADER_STAGE_COMPUTE_BIT                             = VK_BIT(5), | 
|  | 975 |  | 
|  | 976 | VK_SHADER_STAGE_ALL                                     = 0x7FFFFFFF, | 
|  | 977 | } VkShaderStageFlagBits; | 
|  | 978 |  | 
|  | 979 | // Image usage flags | 
|  | 980 | typedef VkFlags VkImageUsageFlags; | 
|  | 981 | typedef enum VkImageUsageFlagBits_ | 
|  | 982 | { | 
|  | 983 | VK_IMAGE_USAGE_GENERAL                                  = 0,            // No special usage | 
|  | 984 | VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT                      = VK_BIT(0),    // Can be used as a source of transfer operations | 
|  | 985 | VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT                 = VK_BIT(1),    // Can be used as a destination of transfer operations | 
|  | 986 | VK_IMAGE_USAGE_SAMPLED_BIT                              = VK_BIT(2),    // Can be sampled from (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types) | 
|  | 987 | VK_IMAGE_USAGE_STORAGE_BIT                              = VK_BIT(3),    // Can be used as storage image (STORAGE_IMAGE descriptor type) | 
|  | 988 | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT                     = VK_BIT(4),    // Can be used as framebuffer color attachment | 
|  | 989 | VK_IMAGE_USAGE_DEPTH_STENCIL_BIT                        = VK_BIT(5),    // Can be used as framebuffer depth/stencil attachment | 
|  | 990 | VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT                 = VK_BIT(6),    // Image data not needed outside of rendering | 
|  | 991 | } VkImageUsageFlagBits; | 
|  | 992 |  | 
|  | 993 | // Image creation flags | 
|  | 994 | typedef VkFlags VkImageCreateFlags; | 
|  | 995 | typedef enum VkImageCreateFlagBits_ | 
|  | 996 | { | 
|  | 997 | VK_IMAGE_CREATE_INVARIANT_DATA_BIT                      = VK_BIT(0), | 
| Courtney Goeltzenleuchter | 908aa75 | 2015-06-18 17:01:41 -0600 | [diff] [blame] | 998 | VK_IMAGE_CREATE_SPARSE_BIT                              = VK_BIT(1),    // Image should support sparse backing | 
|  | 999 | VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT                      = VK_BIT(2),    // Allows image views to have different format than the base image | 
|  | 1000 | VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT                     = VK_BIT(3),    // Allows creating image views with cube type from the created image | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1001 | } VkImageCreateFlagBits; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1002 |  | 
|  | 1003 | // Depth-stencil view creation flags | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1004 | typedef VkFlags VkDepthStencilViewCreateFlags; | 
|  | 1005 | typedef enum VkDepthStencilViewCreateFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1006 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1007 | VK_DEPTH_STENCIL_VIEW_CREATE_READ_ONLY_DEPTH_BIT        = VK_BIT(0), | 
|  | 1008 | VK_DEPTH_STENCIL_VIEW_CREATE_READ_ONLY_STENCIL_BIT      = VK_BIT(1), | 
|  | 1009 | } VkDepthStencilViewCreateFlagBits; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1010 |  | 
|  | 1011 | // Pipeline creation flags | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1012 | typedef VkFlags VkPipelineCreateFlags; | 
|  | 1013 | typedef enum VkPipelineCreateFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1014 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1015 | VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT             = VK_BIT(0), | 
|  | 1016 | VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT                = VK_BIT(1), | 
|  | 1017 | } VkPipelineCreateFlagBits; | 
|  | 1018 |  | 
|  | 1019 | // Channel flags | 
|  | 1020 | typedef VkFlags VkChannelFlags; | 
|  | 1021 | typedef enum VkChannelFlagBits_ | 
|  | 1022 | { | 
|  | 1023 | VK_CHANNEL_R_BIT                                        = VK_BIT(0), | 
|  | 1024 | VK_CHANNEL_G_BIT                                        = VK_BIT(1), | 
|  | 1025 | VK_CHANNEL_B_BIT                                        = VK_BIT(2), | 
|  | 1026 | VK_CHANNEL_A_BIT                                        = VK_BIT(3), | 
|  | 1027 | } VkChannelFlagBits; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1028 |  | 
|  | 1029 | // Fence creation flags | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1030 | typedef VkFlags VkFenceCreateFlags; | 
|  | 1031 | typedef enum VkFenceCreateFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1032 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1033 | VK_FENCE_CREATE_SIGNALED_BIT                            = VK_BIT(0), | 
|  | 1034 | } VkFenceCreateFlagBits; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1035 |  | 
|  | 1036 | // Semaphore creation flags | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1037 | typedef VkFlags VkSemaphoreCreateFlags; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1038 |  | 
|  | 1039 | // Format capability flags | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1040 | typedef VkFlags VkFormatFeatureFlags; | 
|  | 1041 | typedef enum VkFormatFeatureFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1042 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1043 | VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT                     = VK_BIT(0),    // Format can be used for sampled images (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types) | 
|  | 1044 | VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT                     = VK_BIT(1),    // Format can be used for storage images (STORAGE_IMAGE descriptor type) | 
|  | 1045 | VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT              = VK_BIT(2),    // Format supports atomic operations in case it's used for storage images | 
|  | 1046 | VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT              = VK_BIT(3),    // Format can be used for uniform texel buffers (TBOs) | 
|  | 1047 | VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT              = VK_BIT(4),    // Format can be used for storage texel buffers (IBOs) | 
|  | 1048 | VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT       = VK_BIT(5),    // Format supports atomic operations in case it's used for storage texel buffers | 
|  | 1049 | VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT                     = VK_BIT(6),    // Format can be used for vertex buffers (VBOs) | 
|  | 1050 | VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT                  = VK_BIT(7),    // Format can be used for color attachment images | 
|  | 1051 | VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT            = VK_BIT(8),    // Format supports blending in case it's used for color attachment images | 
|  | 1052 | VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT          = VK_BIT(9),    // Format can be used for depth/stencil attachment images | 
|  | 1053 | VK_FORMAT_FEATURE_CONVERSION_BIT                        = VK_BIT(10),   // Format can be used as the source or destination of format converting blits | 
|  | 1054 | } VkFormatFeatureFlagBits; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1055 |  | 
| Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 1056 | // Pipeline stage flags | 
|  | 1057 | typedef enum { | 
|  | 1058 | VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT                       = VK_BIT(0), | 
|  | 1059 | VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT                     = VK_BIT(1), | 
|  | 1060 | VK_PIPELINE_STAGE_VERTEX_INPUT_BIT                      = VK_BIT(2), | 
|  | 1061 | VK_PIPELINE_STAGE_VERTEX_SHADER_BIT                     = VK_BIT(3), | 
|  | 1062 | VK_PIPELINE_STAGE_TESS_CONTROL_SHADER_BIT               = VK_BIT(4), | 
|  | 1063 | VK_PIPELINE_STAGE_TESS_EVALUATION_SHADER_BIT            = VK_BIT(5), | 
|  | 1064 | VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT                   = VK_BIT(6), | 
|  | 1065 | VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT                   = VK_BIT(7), | 
|  | 1066 | VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT              = VK_BIT(8), | 
|  | 1067 | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT               = VK_BIT(9), | 
|  | 1068 | VK_PIPELINE_STAGE_ATTACHMENT_OUTPUT_BIT                 = VK_BIT(10), | 
|  | 1069 | VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT                    = VK_BIT(11), | 
|  | 1070 | VK_PIPELINE_STAGE_TRANSFER_BIT                          = VK_BIT(12), | 
|  | 1071 | VK_PIPELINE_STAGE_HOST_BIT                              = VK_BIT(13), | 
|  | 1072 | VK_PIPELINE_STAGE_ALL_GRAPHICS                          = 0x000007FF, | 
|  | 1073 | VK_PIPELINE_STAGE_ALL_GPU_COMMANDS                      = 0x00001FFF, | 
|  | 1074 | } VkPipelineStageFlagBits; | 
|  | 1075 |  | 
|  | 1076 | typedef VkFlags VkPipelineStageFlags; | 
|  | 1077 |  | 
| Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 1078 | // Image aspect flags | 
|  | 1079 | typedef VkFlags VkImageAspectFlags; | 
|  | 1080 | typedef enum VkImageAspectFlagBits_ | 
|  | 1081 | { | 
|  | 1082 | VK_IMAGE_ASPECT_COLOR_BIT                               = VK_BIT(0), | 
|  | 1083 | VK_IMAGE_ASPECT_DEPTH_BIT                               = VK_BIT(1), | 
|  | 1084 | VK_IMAGE_ASPECT_STENCIL_BIT                             = VK_BIT(2), | 
|  | 1085 | } VkImageAspectFlagBits; | 
|  | 1086 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1087 | // Query control flags | 
|  | 1088 | typedef VkFlags VkQueryControlFlags; | 
|  | 1089 | typedef enum VkQueryControlFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1090 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1091 | VK_QUERY_CONTROL_CONSERVATIVE_BIT                       = VK_BIT(0),    // Allow conservative results to be collected by the query | 
|  | 1092 | } VkQueryControlFlagBits; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1093 |  | 
| Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 1094 | // Query result flags | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1095 | typedef VkFlags VkQueryResultFlags; | 
|  | 1096 | typedef enum VkQueryResultFlagBits_ | 
| Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 1097 | { | 
| Courtney Goeltzenleuchter | 48d7bac | 2015-06-09 08:45:23 -0600 | [diff] [blame] | 1098 | VK_QUERY_RESULT_DEFAULT                                 = 0,           // Results of the queries are immediately written to the destination buffer as 32-bit values | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1099 | VK_QUERY_RESULT_64_BIT                                  = VK_BIT(0),   // Results of the queries are written to the destination buffer as 64-bit values | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1100 | VK_QUERY_RESULT_WAIT_BIT                                = VK_BIT(1),   // Results of the queries are waited on before proceeding with the result copy | 
|  | 1101 | VK_QUERY_RESULT_WITH_AVAILABILITY_BIT                   = VK_BIT(2),   // Besides the results of the query, the availability of the results is also written | 
|  | 1102 | VK_QUERY_RESULT_PARTIAL_BIT                             = VK_BIT(3),   // Copy the partial results of the query even if the final results aren't available | 
|  | 1103 | } VkQueryResultFlagBits; | 
| Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 1104 |  | 
| Courtney Goeltzenleuchter | a607df1 | 2015-06-18 21:49:59 -0600 | [diff] [blame] | 1105 | // Shader module creation flags | 
|  | 1106 | typedef VkFlags VkShaderModuleCreateFlags; | 
|  | 1107 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1108 | // Shader creation flags | 
|  | 1109 | typedef VkFlags VkShaderCreateFlags; | 
|  | 1110 |  | 
|  | 1111 | // Event creation flags | 
|  | 1112 | typedef VkFlags VkEventCreateFlags; | 
|  | 1113 |  | 
|  | 1114 | // Command buffer creation flags | 
|  | 1115 | typedef VkFlags VkCmdBufferCreateFlags; | 
|  | 1116 |  | 
|  | 1117 | // Command buffer optimization flags | 
|  | 1118 | typedef VkFlags VkCmdBufferOptimizeFlags; | 
|  | 1119 | typedef enum VkCmdBufferOptimizeFlagBits_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1120 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1121 | VK_CMD_BUFFER_OPTIMIZE_SMALL_BATCH_BIT                  = VK_BIT(0), | 
|  | 1122 | VK_CMD_BUFFER_OPTIMIZE_PIPELINE_SWITCH_BIT              = VK_BIT(1), | 
|  | 1123 | VK_CMD_BUFFER_OPTIMIZE_ONE_TIME_SUBMIT_BIT              = VK_BIT(2), | 
|  | 1124 | VK_CMD_BUFFER_OPTIMIZE_DESCRIPTOR_SET_SWITCH_BIT        = VK_BIT(3), | 
| Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 1125 | VK_CMD_BUFFER_OPTIMIZE_NO_SIMULTANEOUS_USE_BIT = 0x00000010, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1126 | } VkCmdBufferOptimizeFlagBits; | 
|  | 1127 |  | 
| Courtney Goeltzenleuchter | f6d8f7b | 2015-04-16 09:13:59 -0600 | [diff] [blame] | 1128 | // Pipeline statistics flags | 
|  | 1129 | typedef VkFlags VkQueryPipelineStatisticFlags; | 
|  | 1130 | typedef enum VkQueryPipelineStatisticFlagBits_ { | 
|  | 1131 | VK_QUERY_PIPELINE_STATISTIC_IA_VERTICES_BIT             = VK_BIT(0),  // Optional | 
|  | 1132 | VK_QUERY_PIPELINE_STATISTIC_IA_PRIMITIVES_BIT           = VK_BIT(1),  // Optional | 
|  | 1133 | VK_QUERY_PIPELINE_STATISTIC_VS_INVOCATIONS_BIT          = VK_BIT(2),  // Optional | 
|  | 1134 | VK_QUERY_PIPELINE_STATISTIC_GS_INVOCATIONS_BIT          = VK_BIT(3),  // Optional | 
|  | 1135 | VK_QUERY_PIPELINE_STATISTIC_GS_PRIMITIVES_BIT           = VK_BIT(4),  // Optional | 
|  | 1136 | VK_QUERY_PIPELINE_STATISTIC_C_INVOCATIONS_BIT           = VK_BIT(5),  // Optional | 
|  | 1137 | VK_QUERY_PIPELINE_STATISTIC_C_PRIMITIVES_BIT            = VK_BIT(6),  // Optional | 
|  | 1138 | VK_QUERY_PIPELINE_STATISTIC_FS_INVOCATIONS_BIT          = VK_BIT(7),  // Optional | 
|  | 1139 | VK_QUERY_PIPELINE_STATISTIC_TCS_PATCHES_BIT             = VK_BIT(8),  // Optional | 
|  | 1140 | VK_QUERY_PIPELINE_STATISTIC_TES_INVOCATIONS_BIT         = VK_BIT(9),  // Optional | 
|  | 1141 | VK_QUERY_PIPELINE_STATISTIC_CS_INVOCATIONS_BIT          = VK_BIT(10), // Optional | 
|  | 1142 | } VkQueryPipelineStatisticFlagBits; | 
|  | 1143 |  | 
| Courtney Goeltzenleuchter | 07fd6b6 | 2015-04-17 20:48:17 -0600 | [diff] [blame] | 1144 | // Memory mapping flags | 
|  | 1145 | typedef VkFlags VkMemoryMapFlags; | 
| Courtney Goeltzenleuchter | f6d8f7b | 2015-04-16 09:13:59 -0600 | [diff] [blame] | 1146 |  | 
| Mark Lobodzinski | 3fbc9c2 | 2015-07-02 17:09:57 -0600 | [diff] [blame] | 1147 | // Memory heap flags | 
|  | 1148 | typedef VkFlags VkMemoryHeapFlags; | 
|  | 1149 | typedef enum VkMemoryHeapFlagBits_ { | 
|  | 1150 | VK_MEMORY_HEAP_HOST_LOCAL                               = VK_BIT(0),   // If set, heap represents host memory | 
|  | 1151 | } VkMemoryHeapFlagBits; | 
|  | 1152 |  | 
|  | 1153 |  | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1154 | // ------------------------------------------------------------------------------------------------ | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1155 | // Vulkan structures | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1156 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1157 | typedef struct VkOffset2D_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1158 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1159 | int32_t                                     x; | 
|  | 1160 | int32_t                                     y; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1161 | } VkOffset2D; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1162 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1163 | typedef struct VkOffset3D_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1164 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1165 | int32_t                                     x; | 
|  | 1166 | int32_t                                     y; | 
|  | 1167 | int32_t                                     z; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1168 | } VkOffset3D; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1169 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1170 | typedef struct VkExtent2D_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1171 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1172 | int32_t                                     width; | 
|  | 1173 | int32_t                                     height; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1174 | } VkExtent2D; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1175 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1176 | typedef struct VkExtent3D_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1177 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1178 | int32_t                                     width; | 
|  | 1179 | int32_t                                     height; | 
|  | 1180 | int32_t                                     depth; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1181 | } VkExtent3D; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1182 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1183 | typedef struct VkViewport_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1184 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1185 | float                                       originX; | 
|  | 1186 | float                                       originY; | 
|  | 1187 | float                                       width; | 
|  | 1188 | float                                       height; | 
|  | 1189 | float                                       minDepth; | 
|  | 1190 | float                                       maxDepth; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1191 | } VkViewport; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1192 |  | 
| Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 1193 | typedef struct VkRect2D_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1194 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1195 | VkOffset2D                                  offset; | 
|  | 1196 | VkExtent2D                                  extent; | 
| Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 1197 | } VkRect2D; | 
|  | 1198 |  | 
|  | 1199 | typedef struct VkRect3D_ | 
|  | 1200 | { | 
|  | 1201 | VkOffset3D                                  offset; | 
|  | 1202 | VkExtent3D                                  extent; | 
|  | 1203 | } VkRect3D; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1204 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1205 | typedef struct VkChannelMapping_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1206 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1207 | VkChannelSwizzle                            r; | 
|  | 1208 | VkChannelSwizzle                            g; | 
|  | 1209 | VkChannelSwizzle                            b; | 
|  | 1210 | VkChannelSwizzle                            a; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1211 | } VkChannelMapping; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1212 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1213 | typedef struct VkPhysicalDeviceProperties_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1214 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1215 | uint32_t                                    apiVersion; | 
|  | 1216 | uint32_t                                    driverVersion; | 
|  | 1217 | uint32_t                                    vendorId; | 
|  | 1218 | uint32_t                                    deviceId; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1219 | VkPhysicalDeviceType                        deviceType; | 
|  | 1220 | char                                        deviceName[VK_MAX_PHYSICAL_DEVICE_NAME]; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1221 | } VkPhysicalDeviceProperties; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1222 |  | 
| Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 1223 | typedef struct VkPhysicalDeviceFeatures_ | 
|  | 1224 | { | 
| Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1225 | bool32_t                                    robustBufferAccess; | 
|  | 1226 | bool32_t                                    fullDrawIndexUint32; | 
|  | 1227 | bool32_t                                    imageCubeArray; | 
|  | 1228 | bool32_t                                    independentBlend; | 
|  | 1229 | bool32_t                                    geometryShader; | 
|  | 1230 | bool32_t                                    tessellationShader; | 
|  | 1231 | bool32_t                                    sampleRateShading; | 
|  | 1232 | bool32_t                                    dualSourceBlend; | 
|  | 1233 | bool32_t                                    logicOp; | 
|  | 1234 | bool32_t                                    instancedDrawIndirect; | 
|  | 1235 | bool32_t                                    depthClip; | 
|  | 1236 | bool32_t                                    depthBiasClamp; | 
|  | 1237 | bool32_t                                    fillModeNonSolid; | 
|  | 1238 | bool32_t                                    depthBounds; | 
|  | 1239 | bool32_t                                    wideLines; | 
|  | 1240 | bool32_t                                    largePoints; | 
|  | 1241 | bool32_t                                    textureCompressionETC2; | 
|  | 1242 | bool32_t                                    textureCompressionASTC_LDR; | 
|  | 1243 | bool32_t                                    textureCompressionBC; | 
|  | 1244 | bool32_t                                    pipelineStatisticsQuery; | 
|  | 1245 | bool32_t                                    vertexSideEffects; | 
|  | 1246 | bool32_t                                    tessellationSideEffects; | 
|  | 1247 | bool32_t                                    geometrySideEffects; | 
|  | 1248 | bool32_t                                    fragmentSideEffects; | 
|  | 1249 | bool32_t                                    shaderTessellationPointSize; | 
|  | 1250 | bool32_t                                    shaderGeometryPointSize; | 
|  | 1251 | bool32_t                                    shaderTextureGatherExtended; | 
|  | 1252 | bool32_t                                    shaderStorageImageExtendedFormats; | 
|  | 1253 | bool32_t                                    shaderStorageImageMultisample; | 
|  | 1254 | bool32_t                                    shaderStorageBufferArrayConstantIndexing; | 
|  | 1255 | bool32_t                                    shaderStorageImageArrayConstantIndexing; | 
|  | 1256 | bool32_t                                    shaderUniformBufferArrayDynamicIndexing; | 
|  | 1257 | bool32_t                                    shaderSampledImageArrayDynamicIndexing; | 
|  | 1258 | bool32_t                                    shaderStorageBufferArrayDynamicIndexing; | 
|  | 1259 | bool32_t                                    shaderStorageImageArrayDynamicIndexing; | 
|  | 1260 | bool32_t                                    shaderClipDistance; | 
|  | 1261 | bool32_t                                    shaderCullDistance; | 
|  | 1262 | bool32_t                                    shaderFloat64; | 
|  | 1263 | bool32_t                                    shaderInt64; | 
|  | 1264 | bool32_t                                    shaderFloat16; | 
|  | 1265 | bool32_t                                    shaderInt16; | 
| Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 1266 | } VkPhysicalDeviceFeatures; | 
|  | 1267 |  | 
|  | 1268 | typedef struct VkPhysicalDeviceLimits_ | 
|  | 1269 | { | 
| Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1270 | uint32_t                                    maxImageDimension1D; | 
|  | 1271 | uint32_t                                    maxImageDimension2D; | 
|  | 1272 | uint32_t                                    maxImageDimension3D; | 
|  | 1273 | uint32_t                                    maxImageDimensionCube; | 
|  | 1274 | uint32_t                                    maxImageArrayLayers; | 
|  | 1275 | uint32_t                                    maxTexelBufferSize; | 
|  | 1276 | uint32_t                                    maxUniformBufferSize; | 
|  | 1277 | uint32_t                                    maxStorageBufferSize; | 
|  | 1278 | uint32_t                                    maxPushConstantsSize; | 
|  | 1279 | uint32_t                                    maxMemoryAllocationCount; | 
|  | 1280 | VkDeviceSize                                maxInlineMemoryUpdateSize; | 
|  | 1281 | uint32_t                                    maxBoundDescriptorSets; | 
|  | 1282 | uint32_t                                    maxDescriptorSets; | 
|  | 1283 | uint32_t                                    maxPerStageDescriptorSamplers; | 
|  | 1284 | uint32_t                                    maxPerStageDescriptorUniformBuffers; | 
|  | 1285 | uint32_t                                    maxPerStageDescriptorStorageBuffers; | 
|  | 1286 | uint32_t                                    maxPerStageDescriptorSampledImages; | 
|  | 1287 | uint32_t                                    maxPerStageDescriptorStorageImages; | 
|  | 1288 | uint32_t                                    maxDescriptorSetSamplers; | 
|  | 1289 | uint32_t                                    maxDescriptorSetUniformBuffers; | 
|  | 1290 | uint32_t                                    maxDescriptorSetStorageBuffers; | 
|  | 1291 | uint32_t                                    maxDescriptorSetSampledImages; | 
|  | 1292 | uint32_t                                    maxDescriptorSetStorageImages; | 
|  | 1293 | uint32_t                                    maxVertexInputAttributes; | 
|  | 1294 | uint32_t                                    maxVertexInputAttributeOffset; | 
|  | 1295 | uint32_t                                    maxVertexInputBindingStride; | 
|  | 1296 | uint32_t                                    maxVertexOutputComponents; | 
|  | 1297 | uint32_t                                    maxTessGenLevel; | 
|  | 1298 | uint32_t                                    maxTessPatchSize; | 
|  | 1299 | uint32_t                                    maxTessControlPerVertexInputComponents; | 
|  | 1300 | uint32_t                                    maxTessControlPerVertexOutputComponents; | 
|  | 1301 | uint32_t                                    maxTessControlPerPatchOutputComponents; | 
|  | 1302 | uint32_t                                    maxTessControlTotalOutputComponents; | 
|  | 1303 | uint32_t                                    maxTessEvaluationInputComponents; | 
|  | 1304 | uint32_t                                    maxTessEvaluationOutputComponents; | 
|  | 1305 | uint32_t                                    maxGeometryShaderInvocations; | 
|  | 1306 | uint32_t                                    maxGeometryInputComponents; | 
|  | 1307 | uint32_t                                    maxGeometryOutputComponents; | 
|  | 1308 | uint32_t                                    maxGeometryOutputVertices; | 
|  | 1309 | uint32_t                                    maxGeometryTotalOutputComponents; | 
|  | 1310 | uint32_t                                    maxFragmentInputComponents; | 
|  | 1311 | uint32_t                                    maxFragmentOutputBuffers; | 
|  | 1312 | uint32_t                                    maxFragmentDualSourceBuffers; | 
|  | 1313 | uint32_t                                    maxFragmentCombinedOutputResources; | 
|  | 1314 | uint32_t                                    maxComputeSharedMemorySize; | 
|  | 1315 | uint32_t                                    maxComputeWorkGroupCount[3]; | 
|  | 1316 | uint32_t                                    maxComputeWorkGroupInvocations; | 
|  | 1317 | uint32_t                                    maxComputeWorkGroupSize[3]; | 
|  | 1318 | uint32_t                                    subPixelPrecisionBits; | 
|  | 1319 | uint32_t                                    subTexelPrecisionBits; | 
|  | 1320 | uint32_t                                    mipmapPrecisionBits; | 
|  | 1321 | uint32_t                                    maxDrawIndexedIndexValue; | 
|  | 1322 | uint32_t                                    maxDrawIndirectInstanceCount; | 
|  | 1323 | bool32_t                                    primitiveRestartForPatches; | 
|  | 1324 | float                                       maxSamplerLodBias; | 
|  | 1325 | uint32_t                                    maxSamplerAnisotropy; | 
|  | 1326 | uint32_t                                    maxViewports; | 
|  | 1327 | uint32_t                                    maxDynamicViewportStates; | 
|  | 1328 | uint32_t                                    maxViewportDimensions[2]; | 
|  | 1329 | float                                       viewportBoundsRange[2]; | 
|  | 1330 | uint32_t                                    viewportSubPixelBits; | 
|  | 1331 | uint32_t                                    minMemoryMapAlignment; | 
|  | 1332 | uint32_t                                    minTexelBufferOffsetAlignment; | 
|  | 1333 | uint32_t                                    minUniformBufferOffsetAlignment; | 
|  | 1334 | uint32_t                                    minStorageBufferOffsetAlignment; | 
|  | 1335 | uint32_t                                    minTexelOffset; | 
|  | 1336 | uint32_t                                    maxTexelOffset; | 
|  | 1337 | uint32_t                                    minTexelGatherOffset; | 
|  | 1338 | uint32_t                                    maxTexelGatherOffset; | 
|  | 1339 | uint32_t                                    minInterpolationOffset; | 
|  | 1340 | uint32_t                                    maxInterpolationOffset; | 
|  | 1341 | uint32_t                                    subPixelInterpolationOffsetBits; | 
|  | 1342 | uint32_t                                    maxFramebufferWidth; | 
|  | 1343 | uint32_t                                    maxFramebufferHeight; | 
|  | 1344 | uint32_t                                    maxFramebufferLayers; | 
|  | 1345 | uint32_t                                    maxFramebufferColorSamples; | 
|  | 1346 | uint32_t                                    maxFramebufferDepthSamples; | 
|  | 1347 | uint32_t                                    maxFramebufferStencilSamples; | 
|  | 1348 | uint32_t                                    maxColorAttachments; | 
|  | 1349 | uint32_t                                    maxSampledImageColorSamples; | 
|  | 1350 | uint32_t                                    maxSampledImageDepthSamples; | 
|  | 1351 | uint32_t                                    maxSampledImageIntegerSamples; | 
|  | 1352 | uint32_t                                    maxStorageImageSamples; | 
|  | 1353 | uint32_t                                    maxSampleMaskWords; | 
|  | 1354 | uint64_t                                    timestampFrequency; | 
|  | 1355 | uint32_t                                    maxClipDistances; | 
|  | 1356 | uint32_t                                    maxCullDistances; | 
|  | 1357 | uint32_t                                    maxCombinedClipAndCullDistances; | 
|  | 1358 | float                                       pointSizeRange[2]; | 
|  | 1359 | float                                       lineWidthRange[2]; | 
|  | 1360 | float                                       pointSizeGranularity; | 
|  | 1361 | float                                       lineWidthGranularity; | 
| Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 1362 | } VkPhysicalDeviceLimits; | 
|  | 1363 |  | 
|  | 1364 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1365 | typedef struct VkPhysicalDevicePerformance_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1366 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1367 | float                                       maxDeviceClock; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1368 | float                                       aluPerClock; | 
|  | 1369 | float                                       texPerClock; | 
|  | 1370 | float                                       primsPerClock; | 
|  | 1371 | float                                       pixelsPerClock; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1372 | } VkPhysicalDevicePerformance; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1373 |  | 
| Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 1374 | typedef struct VkExtensionProperties_ | 
|  | 1375 | { | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 1376 | char                                        extName[VK_MAX_EXTENSION_NAME];     // extension name | 
| Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 1377 | uint32_t                                    version;                            // version of the extension specification | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 1378 | uint32_t                                    specVersion;                        // version number constructed via VK_API_VERSION | 
| Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 1379 | } VkExtensionProperties; | 
|  | 1380 |  | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 1381 | typedef struct VkLayerProperties_ | 
|  | 1382 | { | 
|  | 1383 | char                                        layerName[VK_MAX_EXTENSION_NAME];   // extension name | 
|  | 1384 | uint32_t                                    specVersion;                        // version of spec this layer is compatible with | 
|  | 1385 | uint32_t                                    implVersion;                        // version of the layer | 
|  | 1386 | char                                        description[VK_MAX_DESCRIPTION]; // additional description | 
|  | 1387 | } VkLayerProperties; | 
|  | 1388 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1389 | typedef struct VkApplicationInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1390 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1391 | VkStructureType                             sType;              // Type of structure. Should be VK_STRUCTURE_TYPE_APPLICATION_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1392 | const void*                                 pNext;              // Next structure in chain | 
|  | 1393 | const char*                                 pAppName; | 
|  | 1394 | uint32_t                                    appVersion; | 
|  | 1395 | const char*                                 pEngineName; | 
|  | 1396 | uint32_t                                    engineVersion; | 
|  | 1397 | uint32_t                                    apiVersion; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1398 | } VkApplicationInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1399 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1400 | typedef void* (VKAPI *PFN_vkAllocFunction)( | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1401 | void*                                       pUserData, | 
|  | 1402 | size_t                                      size, | 
|  | 1403 | size_t                                      alignment, | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1404 | VkSystemAllocType                           allocType); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1405 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1406 | typedef void (VKAPI *PFN_vkFreeFunction)( | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1407 | void*                                       pUserData, | 
|  | 1408 | void*                                       pMem); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1409 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1410 | typedef struct VkAllocCallbacks_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1411 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1412 | void*                                       pUserData; | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1413 | PFN_vkAllocFunction                         pfnAlloc; | 
|  | 1414 | PFN_vkFreeFunction                          pfnFree; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1415 | } VkAllocCallbacks; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1416 |  | 
| Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1417 | typedef struct VkDeviceQueueCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1418 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1419 | uint32_t                                    queueNodeIndex; | 
|  | 1420 | uint32_t                                    queueCount; | 
| Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1421 | } VkDeviceQueueCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1422 |  | 
| Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1423 | typedef struct VkDeviceCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1424 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1425 | VkStructureType                             sType;                      // Should be VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1426 | const void*                                 pNext;                      // Pointer to next structure | 
|  | 1427 | uint32_t                                    queueRecordCount; | 
| Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1428 | const VkDeviceQueueCreateInfo*              pRequestedQueues; | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 1429 | uint32_t                                    layerCount; | 
|  | 1430 | const char*const*                           ppEnabledLayerNames;        // Indicate extensions to enable by index value | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1431 | uint32_t                                    extensionCount; | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 1432 | const char*const*                           ppEnabledExtensionNames;    // Indicate extensions to enable by index value | 
| Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 1433 | const VkPhysicalDeviceFeatures*             pEnabledFeatures; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1434 | VkDeviceCreateFlags                         flags;                      // Device creation flags | 
| Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1435 | } VkDeviceCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1436 |  | 
| Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1437 | typedef struct VkInstanceCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1438 | { | 
| Courtney Goeltzenleuchter | bb594ba | 2015-04-16 21:42:44 -0600 | [diff] [blame] | 1439 | VkStructureType                             sType;                      // Should be VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1440 | const void*                                 pNext;                      // Pointer to next structure | 
| Courtney Goeltzenleuchter | bb594ba | 2015-04-16 21:42:44 -0600 | [diff] [blame] | 1441 | const VkApplicationInfo*                    pAppInfo; | 
|  | 1442 | const VkAllocCallbacks*                     pAllocCb; | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 1443 | uint32_t                                    layerCount; | 
|  | 1444 | const char*const*                           ppEnabledLayerNames;        // Indicate extensions to enable by index value | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1445 | uint32_t                                    extensionCount; | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 1446 | const char*const*                           ppEnabledExtensionNames;    // Indicate extensions to enable by index value | 
| Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1447 | } VkInstanceCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1448 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1449 | typedef struct VkPhysicalDeviceQueueProperties_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1450 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1451 | VkQueueFlags                                queueFlags;                 // Queue flags | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1452 | uint32_t                                    queueCount; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1453 | bool32_t                                    supportsTimestamps; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1454 | } VkPhysicalDeviceQueueProperties; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1455 |  | 
| Mark Lobodzinski | b3fbcd9 | 2015-07-02 16:49:40 -0600 | [diff] [blame] | 1456 | typedef struct VkMemoryType_ | 
|  | 1457 | { | 
|  | 1458 | VkMemoryPropertyFlags                       propertyFlags;              // Memory properties of this memory type | 
|  | 1459 | uint32_t                                    heapIndex;                  // Index of the memory heap allocations of this memory type are taken from | 
|  | 1460 | } VkMemoryType; | 
|  | 1461 |  | 
|  | 1462 | typedef struct VkMemoryHeap_ | 
|  | 1463 | { | 
|  | 1464 | VkDeviceSize                                size;                       // Available memory in the heap | 
| Mark Lobodzinski | 3fbc9c2 | 2015-07-02 17:09:57 -0600 | [diff] [blame] | 1465 | VkMemoryHeapFlags                           flags;                      // Flags for the heap | 
| Mark Lobodzinski | b3fbcd9 | 2015-07-02 16:49:40 -0600 | [diff] [blame] | 1466 | } VkMemoryHeap; | 
|  | 1467 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1468 | typedef struct VkPhysicalDeviceMemoryProperties_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1469 | { | 
| Mark Lobodzinski | b3fbcd9 | 2015-07-02 16:49:40 -0600 | [diff] [blame] | 1470 | uint32_t                                    memoryTypeCount; | 
|  | 1471 | VkMemoryType                                memoryTypes[VK_MAX_MEMORY_TYPES]; | 
|  | 1472 | uint32_t                                    memoryHeapCount; | 
|  | 1473 | VkMemoryHeap                                memoryHeaps[VK_MAX_MEMORY_HEAPS]; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1474 | } VkPhysicalDeviceMemoryProperties; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1475 |  | 
| Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1476 | typedef struct VkMemoryAllocInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1477 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1478 | VkStructureType                             sType;                      // Must be VK_STRUCTURE_TYPE_MEMORY_ALLOC_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1479 | const void*                                 pNext;                      // Pointer to next structure | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1480 | VkDeviceSize                                allocationSize;             // Size of memory allocation | 
| Mark Lobodzinski | b3fbcd9 | 2015-07-02 16:49:40 -0600 | [diff] [blame] | 1481 | uint32_t                                    memoryTypeIndex;            // Index of the memory type to allocate from | 
| Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1482 | } VkMemoryAllocInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1483 |  | 
| Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 1484 | typedef struct VkMappedMemoryRange_ | 
|  | 1485 | { | 
|  | 1486 | VkStructureType                             sType;                      // Must be VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE | 
|  | 1487 | const void*                                 pNext;                      // Pointer to next structure | 
|  | 1488 | VkDeviceMemory                              mem;                        // Mapped memory object | 
|  | 1489 | VkDeviceSize                                offset;                     // Offset within the mapped memory the range starts from | 
|  | 1490 | VkDeviceSize                                size;                       // Size of the range within the mapped memory | 
|  | 1491 | } VkMappedMemoryRange; | 
|  | 1492 |  | 
| Mark Lobodzinski | b3fbcd9 | 2015-07-02 16:49:40 -0600 | [diff] [blame] | 1493 | typedef struct VkMemoryRequirements_ | 
|  | 1494 | { | 
|  | 1495 | VkDeviceSize                                size;                       // Specified in bytes | 
|  | 1496 | VkDeviceSize                                alignment;                  // Specified in bytes | 
|  | 1497 | VkDeviceSize                                granularity;                // Granularity at which memory can be bound to resource sub-ranges specified in bytes (usually the page size) | 
|  | 1498 | uint32_t                                    memoryTypeBits;             // Bitfield of the allowed memory type indices into memoryTypes[] for this object | 
|  | 1499 | } VkMemoryRequirements; | 
|  | 1500 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1501 | typedef struct VkFormatProperties_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1502 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1503 | VkFormatFeatureFlags                        linearTilingFeatures;       // Format features in case of linear tiling | 
|  | 1504 | VkFormatFeatureFlags                        optimalTilingFeatures;      // Format features in case of optimal tiling | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1505 | } VkFormatProperties; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1506 |  | 
| Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1507 | typedef struct VkDescriptorInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1508 | { | 
| Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1509 | VkBufferView                                bufferView;                 // Buffer view to write to the descriptor (in case it's a buffer descriptor, otherwise should be VK_NULL_HANDLE) | 
|  | 1510 | VkSampler                                   sampler;                    // Sampler to write to the descriptor (in case it's a SAMPLER or COMBINED_IMAGE_SAMPLER descriptor, otherwise should be VK_NULL_HANDLE) | 
|  | 1511 | VkImageView                                 imageView;                  // Image view to write to the descriptor (in case it's a SAMPLED_IMAGE, STORAGE_IMAGE, or COMBINED_IMAGE_SAMPLER descriptor, otherwise should be VK_NULL_HANDLE) | 
|  | 1512 | VkImageLayout                               imageLayout;                // Layout the image is expected to be in when accessed using this descriptor (only used if <imageView> is not VK_NULL_HANDLE) | 
|  | 1513 | } VkDescriptorInfo; | 
|  | 1514 |  | 
|  | 1515 | typedef struct VkWriteDescriptorSet_ | 
|  | 1516 | { | 
|  | 1517 | VkStructureType                             sType;                      // Must be VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1518 | const void*                                 pNext;                      // Pointer to next structure | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1519 |  | 
| Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1520 | VkDescriptorSet                             destSet;                    // Destination descriptor set | 
|  | 1521 | uint32_t                                    destBinding;                // Binding within the destination descriptor set to write | 
|  | 1522 | uint32_t                                    destArrayElement;           // Array element within the destination binding to write | 
|  | 1523 |  | 
|  | 1524 | uint32_t                                    count;                      // Number of descriptors to write (determines the size of the array pointed by <pDescriptors>) | 
|  | 1525 |  | 
|  | 1526 | VkDescriptorType                            descriptorType;             // Descriptor type to write (determines which fields of the array pointed by <pDescriptors> are going to be used) | 
|  | 1527 | const VkDescriptorInfo*                     pDescriptors;               // Array of info structures describing the descriptors to write | 
|  | 1528 | } VkWriteDescriptorSet; | 
|  | 1529 |  | 
|  | 1530 | typedef struct VkCopyDescriptorSet_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1531 | { | 
| Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1532 | VkStructureType                             sType;                      // Must be VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1533 | const void*                                 pNext;                      // Pointer to next structure | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1534 |  | 
| Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1535 | VkDescriptorSet                             srcSet;                     // Source descriptor set | 
|  | 1536 | uint32_t                                    srcBinding;                 // Binding within the source descriptor set to copy from | 
|  | 1537 | uint32_t                                    srcArrayElement;            // Array element within the source binding to copy from | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1538 |  | 
| Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1539 | VkDescriptorSet                             destSet;                    // Destination descriptor set | 
|  | 1540 | uint32_t                                    destBinding;                // Binding within the destination descriptor set to copy to | 
|  | 1541 | uint32_t                                    destArrayElement;           // Array element within the destination binding to copy to | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1542 |  | 
| Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1543 | uint32_t                                    count;                      // Number of descriptors to copy | 
|  | 1544 | } VkCopyDescriptorSet; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1545 |  | 
| Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1546 | typedef struct VkBufferCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1547 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1548 | VkStructureType                             sType;                      // Must be VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1549 | const void*                                 pNext;                      // Pointer to next structure. | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1550 | VkDeviceSize                                size;                       // Specified in bytes | 
|  | 1551 | VkBufferUsageFlags                          usage;                      // Buffer usage flags | 
|  | 1552 | VkBufferCreateFlags                         flags;                      // Buffer creation flags | 
| Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1553 | } VkBufferCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1554 |  | 
| Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1555 | typedef struct VkBufferViewCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1556 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1557 | VkStructureType                             sType;                      // Must be VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1558 | const void*                                 pNext;                      // Pointer to next structure. | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1559 | VkBuffer                                    buffer; | 
|  | 1560 | VkBufferViewType                            viewType; | 
|  | 1561 | VkFormat                                    format;                     // Optionally specifies format of elements | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1562 | VkDeviceSize                                offset;                     // Specified in bytes | 
|  | 1563 | VkDeviceSize                                range;                      // View size specified in bytes | 
| Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1564 | } VkBufferViewCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1565 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1566 | typedef struct VkImageSubresource_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1567 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1568 | VkImageAspect                               aspect; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1569 | uint32_t                                    mipLevel; | 
|  | 1570 | uint32_t                                    arraySlice; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1571 | } VkImageSubresource; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1572 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1573 | typedef struct VkImageSubresourceRange_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1574 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1575 | VkImageAspect                               aspect; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1576 | uint32_t                                    baseMipLevel; | 
|  | 1577 | uint32_t                                    mipLevels; | 
|  | 1578 | uint32_t                                    baseArraySlice; | 
|  | 1579 | uint32_t                                    arraySize; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1580 | } VkImageSubresourceRange; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1581 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1582 | typedef struct VkMemoryBarrier_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1583 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1584 | VkStructureType                             sType;                      // Must be VK_STRUCTURE_TYPE_MEMORY_BARRIER | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1585 | const void*                                 pNext;                      // Pointer to next structure. | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1586 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1587 | VkMemoryOutputFlags                         outputMask;                 // Outputs the barrier should sync | 
|  | 1588 | VkMemoryInputFlags                          inputMask;                  // Inputs the barrier should sync to | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1589 | } VkMemoryBarrier; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1590 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1591 | typedef struct VkBufferMemoryBarrier_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1592 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1593 | VkStructureType                             sType;                      // Must be VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1594 | const void*                                 pNext;                      // Pointer to next structure. | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1595 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1596 | VkMemoryOutputFlags                         outputMask;                 // Outputs the barrier should sync | 
|  | 1597 | VkMemoryInputFlags                          inputMask;                  // Inputs the barrier should sync to | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1598 |  | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1599 | VkBuffer                                    buffer;                     // Buffer to sync | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1600 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1601 | VkDeviceSize                                offset;                     // Offset within the buffer to sync | 
|  | 1602 | VkDeviceSize                                size;                       // Amount of bytes to sync | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1603 | } VkBufferMemoryBarrier; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1604 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1605 | typedef struct VkImageMemoryBarrier_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1606 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1607 | VkStructureType                             sType;                      // Must be VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1608 | const void*                                 pNext;                      // Pointer to next structure. | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1609 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1610 | VkMemoryOutputFlags                         outputMask;                 // Outputs the barrier should sync | 
|  | 1611 | VkMemoryInputFlags                          inputMask;                  // Inputs the barrier should sync to | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1612 |  | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1613 | VkImageLayout                               oldLayout;                  // Current layout of the image | 
|  | 1614 | VkImageLayout                               newLayout;                  // New layout to transition the image to | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1615 |  | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1616 | VkImage                                     image;                      // Image to sync | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1617 |  | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1618 | VkImageSubresourceRange                     subresourceRange;           // Subresource range to sync | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1619 | } VkImageMemoryBarrier; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1620 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1621 | typedef struct VkImageCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1622 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1623 | VkStructureType                             sType;                      // Must be VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1624 | const void*                                 pNext;                      // Pointer to next structure. | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1625 | VkImageType                                 imageType; | 
|  | 1626 | VkFormat                                    format; | 
|  | 1627 | VkExtent3D                                  extent; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1628 | uint32_t                                    mipLevels; | 
|  | 1629 | uint32_t                                    arraySize; | 
|  | 1630 | uint32_t                                    samples; | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1631 | VkImageTiling                               tiling; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1632 | VkImageUsageFlags                           usage;                      // Image usage flags | 
|  | 1633 | VkImageCreateFlags                          flags;                      // Image creation flags | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1634 | } VkImageCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1635 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1636 | typedef struct VkSubresourceLayout_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1637 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1638 | VkDeviceSize                                offset;                 // Specified in bytes | 
|  | 1639 | VkDeviceSize                                size;                   // Specified in bytes | 
|  | 1640 | VkDeviceSize                                rowPitch;               // Specified in bytes | 
|  | 1641 | VkDeviceSize                                depthPitch;             // Specified in bytes | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1642 | } VkSubresourceLayout; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1643 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1644 | typedef struct VkImageViewCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1645 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1646 | VkStructureType                             sType;                  // Must be VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1647 | const void*                                 pNext;                  // Pointer to next structure | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1648 | VkImage                                     image; | 
|  | 1649 | VkImageViewType                             viewType; | 
|  | 1650 | VkFormat                                    format; | 
|  | 1651 | VkChannelMapping                            channels; | 
|  | 1652 | VkImageSubresourceRange                     subresourceRange; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1653 | } VkImageViewCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1654 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1655 | typedef struct VkColorAttachmentViewCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1656 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1657 | VkStructureType                             sType;                  // Must be VK_STRUCTURE_TYPE_COLOR_ATTACHMENT_VIEW_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1658 | const void*                                 pNext;                  // Pointer to next structure | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1659 | VkImage                                     image; | 
|  | 1660 | VkFormat                                    format; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1661 | uint32_t                                    mipLevel; | 
|  | 1662 | uint32_t                                    baseArraySlice; | 
|  | 1663 | uint32_t                                    arraySize; | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1664 | VkImage                                     msaaResolveImage; | 
|  | 1665 | VkImageSubresourceRange                     msaaResolveSubResource; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1666 | } VkColorAttachmentViewCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1667 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1668 | typedef struct VkDepthStencilViewCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1669 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1670 | VkStructureType                             sType;                  // Must be VK_STRUCTURE_TYPE_DEPTH_STENCIL_VIEW_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1671 | const void*                                 pNext;                  // Pointer to next structure | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1672 | VkImage                                     image; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1673 | uint32_t                                    mipLevel; | 
|  | 1674 | uint32_t                                    baseArraySlice; | 
|  | 1675 | uint32_t                                    arraySize; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1676 | VkDepthStencilViewCreateFlags               flags;                  // Depth stencil attachment view flags | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1677 | } VkDepthStencilViewCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1678 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1679 | typedef struct VkColorAttachmentBindInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1680 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1681 | VkColorAttachmentView                       view; | 
|  | 1682 | VkImageLayout                               layout; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1683 | } VkColorAttachmentBindInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1684 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1685 | typedef struct VkDepthStencilBindInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1686 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1687 | VkDepthStencilView                          view; | 
|  | 1688 | VkImageLayout                               layout; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1689 | } VkDepthStencilBindInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1690 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1691 | typedef struct VkBufferCopy_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1692 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1693 | VkDeviceSize                                srcOffset;              // Specified in bytes | 
|  | 1694 | VkDeviceSize                                destOffset;             // Specified in bytes | 
|  | 1695 | VkDeviceSize                                copySize;               // Specified in bytes | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1696 | } VkBufferCopy; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1697 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1698 | typedef struct VkImageMemoryBindInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1699 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1700 | VkImageSubresource                          subresource; | 
|  | 1701 | VkOffset3D                                  offset; | 
|  | 1702 | VkExtent3D                                  extent; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1703 | } VkImageMemoryBindInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1704 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1705 | typedef struct VkImageCopy_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1706 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1707 | VkImageSubresource                          srcSubresource; | 
| Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1708 | VkOffset3D                                  srcOffset;             // Specified in pixels for both compressed and uncompressed images | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1709 | VkImageSubresource                          destSubresource; | 
| Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1710 | VkOffset3D                                  destOffset;            // Specified in pixels for both compressed and uncompressed images | 
|  | 1711 | VkExtent3D                                  extent;                // Specified in pixels for both compressed and uncompressed images | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1712 | } VkImageCopy; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1713 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1714 | typedef struct VkImageBlit_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1715 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1716 | VkImageSubresource                          srcSubresource; | 
| Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1717 | VkOffset3D                                  srcOffset;              // Specified in pixels for both compressed and uncompressed images | 
|  | 1718 | VkExtent3D                                  srcExtent;              // Specified in pixels for both compressed and uncompressed images | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1719 | VkImageSubresource                          destSubresource; | 
| Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1720 | VkOffset3D                                  destOffset;             // Specified in pixels for both compressed and uncompressed images | 
|  | 1721 | VkExtent3D                                  destExtent;             // Specified in pixels for both compressed and uncompressed images | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1722 | } VkImageBlit; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1723 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1724 | typedef struct VkBufferImageCopy_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1725 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1726 | VkDeviceSize                                bufferOffset;           // Specified in bytes | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1727 | VkImageSubresource                          imageSubresource; | 
| Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1728 | VkOffset3D                                  imageOffset;            // Specified in pixels for both compressed and uncompressed images | 
|  | 1729 | VkExtent3D                                  imageExtent;            // Specified in pixels for both compressed and uncompressed images | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1730 | } VkBufferImageCopy; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1731 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1732 | typedef struct VkImageResolve_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1733 | { | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1734 | VkImageSubresource                          srcSubresource; | 
| Tony Barbour | 2e64be8 | 2015-04-13 13:11:12 -0600 | [diff] [blame] | 1735 | VkOffset3D                                  srcOffset; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1736 | VkImageSubresource                          destSubresource; | 
| Tony Barbour | 2e64be8 | 2015-04-13 13:11:12 -0600 | [diff] [blame] | 1737 | VkOffset3D                                  destOffset; | 
|  | 1738 | VkExtent3D                                  extent; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1739 | } VkImageResolve; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1740 |  | 
| Courtney Goeltzenleuchter | a607df1 | 2015-06-18 21:49:59 -0600 | [diff] [blame] | 1741 | typedef struct VkShaderModuleCreateInfo_ | 
|  | 1742 | { | 
|  | 1743 | VkStructureType                             sType;              // Must be VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO | 
|  | 1744 | const void*                                 pNext;              // Pointer to next structure | 
|  | 1745 | size_t                                      codeSize;           // Specified in bytes | 
|  | 1746 | const void*                                 pCode;              // Binary code of size codeSize | 
|  | 1747 | VkShaderModuleCreateFlags                   flags;              // Reserved | 
|  | 1748 | } VkShaderModuleCreateInfo; | 
|  | 1749 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1750 | typedef struct VkShaderCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1751 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1752 | VkStructureType                             sType;              // Must be VK_STRUCTURE_TYPE_SHADER_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1753 | const void*                                 pNext;              // Pointer to next structure | 
| Courtney Goeltzenleuchter | a607df1 | 2015-06-18 21:49:59 -0600 | [diff] [blame] | 1754 | VkShaderModule                              module;             // Module containing entry point | 
| Courtney Goeltzenleuchter | ee4027d | 2015-06-28 13:01:17 -0600 | [diff] [blame] | 1755 | const char*                                 pName;              // Null-terminate entry point name | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1756 | VkShaderCreateFlags                         flags;              // Reserved | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1757 | } VkShaderCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1758 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1759 | typedef struct VkDescriptorSetLayoutBinding_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1760 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1761 | VkDescriptorType                            descriptorType;     // Type of the descriptors in this binding | 
| Chia-I Wu | 712bb5d | 2015-05-25 16:22:52 +0800 | [diff] [blame] | 1762 | uint32_t                                    arraySize;          // Number of descriptors in this binding | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1763 | VkShaderStageFlags                          stageFlags;         // Shader stages this binding is visible to | 
|  | 1764 | const VkSampler*                            pImmutableSamplers; // Immutable samplers (used if descriptor type is SAMPLER or COMBINED_IMAGE_SAMPLER, is either NULL or contains <count> number of elements) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1765 | } VkDescriptorSetLayoutBinding; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1766 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1767 | typedef struct VkDescriptorSetLayoutCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1768 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1769 | VkStructureType                             sType;              // Must be VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO | 
|  | 1770 | const void*                                 pNext;              // Pointer to next structure | 
|  | 1771 | uint32_t                                    count;              // Number of bindings in the descriptor set layout | 
|  | 1772 | const VkDescriptorSetLayoutBinding*         pBinding;           // Array of descriptor set layout bindings | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1773 | } VkDescriptorSetLayoutCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1774 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1775 | typedef struct VkDescriptorTypeCount_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1776 | { | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1777 | VkDescriptorType                            type; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1778 | uint32_t                                    count; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1779 | } VkDescriptorTypeCount; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1780 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1781 | typedef struct VkDescriptorPoolCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1782 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1783 | VkStructureType                             sType;              // Must be VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1784 | const void*                                 pNext;              // Pointer to next structure | 
|  | 1785 | uint32_t                                    count; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1786 | const VkDescriptorTypeCount*                pTypeCount; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1787 | } VkDescriptorPoolCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1788 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1789 | typedef struct VkLinkConstBuffer_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1790 | { | 
|  | 1791 | uint32_t                                    bufferId; | 
|  | 1792 | size_t                                      bufferSize; | 
|  | 1793 | const void*                                 pBufferData; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1794 | } VkLinkConstBuffer; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1795 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1796 | typedef struct VkSpecializationMapEntry_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1797 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1798 | uint32_t                                    constantId;         // The SpecConstant ID specified in the BIL | 
|  | 1799 | uint32_t                                    offset;             // Offset of the value in the data block | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1800 | } VkSpecializationMapEntry; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1801 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1802 | typedef struct VkSpecializationInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1803 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1804 | uint32_t                                    mapEntryCount; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1805 | const VkSpecializationMapEntry*             pMap;               // mapEntryCount entries | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1806 | const void*                                 pData; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1807 | } VkSpecializationInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1808 |  | 
| Mark Lobodzinski | d5732f3 | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1809 | typedef struct VkPipelineShaderStageCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1810 | { | 
| Mark Lobodzinski | d5732f3 | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1811 | VkStructureType                             sType;          // Must be VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO | 
|  | 1812 | const void*                                 pNext;          // Pointer to next structure | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1813 | VkShaderStage                               stage; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1814 | VkShader                                    shader; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1815 | uint32_t                                    linkConstBufferCount; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1816 | const VkLinkConstBuffer*                    pLinkConstBufferInfo; | 
|  | 1817 | const VkSpecializationInfo*                 pSpecializationInfo; | 
| Mark Lobodzinski | d5732f3 | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1818 | } VkPipelineShaderStageCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1819 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1820 | typedef struct VkComputePipelineCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1821 | { | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1822 | VkStructureType                             sType;          // Must be VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO | 
|  | 1823 | const void*                                 pNext;          // Pointer to next structure | 
| Mark Lobodzinski | d5732f3 | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1824 | VkPipelineShaderStageCreateInfo             cs; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1825 | VkPipelineCreateFlags                       flags;          // Pipeline creation flags | 
| Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 1826 | VkPipelineLayout                            layout;         // Interface layout of the pipeline | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1827 | } VkComputePipelineCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1828 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1829 | typedef struct VkVertexInputBindingDescription_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1830 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1831 | uint32_t                                    binding;        // Vertex buffer binding id | 
| Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1832 | uint32_t                                    strideInBytes;  // Distance between vertices in bytes (0 = no advancement) | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1833 |  | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1834 | VkVertexInputStepRate                       stepRate;       // Rate at which binding is incremented | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1835 | } VkVertexInputBindingDescription; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1836 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1837 | typedef struct VkVertexInputAttributeDescription_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1838 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1839 | uint32_t                                    location;       // location of the shader vertex attrib | 
|  | 1840 | uint32_t                                    binding;        // Vertex buffer binding id | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1841 |  | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1842 | VkFormat                                    format;         // format of source data | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1843 |  | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1844 | uint32_t                                    offsetInBytes;  // Offset of first element in bytes from base of vertex | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1845 | } VkVertexInputAttributeDescription; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1846 |  | 
| Mark Lobodzinski | d5732f3 | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1847 | typedef struct VkPipelineVertexInputStateCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1848 | { | 
| Mark Lobodzinski | d5732f3 | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1849 | VkStructureType                             sType;          // Should be VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1850 | const void*                                 pNext;          // Pointer to next structure | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1851 |  | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1852 | uint32_t                                    bindingCount;   // number of bindings | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1853 | const VkVertexInputBindingDescription*      pVertexBindingDescriptions; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1854 |  | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1855 | uint32_t                                    attributeCount; // number of attributes | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1856 | const VkVertexInputAttributeDescription*    pVertexAttributeDescriptions; | 
| Mark Lobodzinski | d5732f3 | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1857 | } VkPipelineVertexInputStateCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1858 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1859 | typedef struct VkPipelineIaStateCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1860 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1861 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_PIPELINE_IA_STATE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1862 | const void*                                 pNext;      // Pointer to next structure | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1863 | VkPrimitiveTopology                         topology; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1864 | bool32_t                                    disableVertexReuse;         // optional | 
|  | 1865 | bool32_t                                    primitiveRestartEnable; | 
|  | 1866 | uint32_t                                    primitiveRestartIndex;      // optional (GL45) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1867 | } VkPipelineIaStateCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1868 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1869 | typedef struct VkPipelineTessStateCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1870 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1871 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_PIPELINE_TESS_STATE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1872 | const void*                                 pNext;      // Pointer to next structure | 
|  | 1873 | uint32_t                                    patchControlPoints; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1874 | } VkPipelineTessStateCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1875 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1876 | typedef struct VkPipelineVpStateCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1877 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1878 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_PIPELINE_VP_STATE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1879 | const void*                                 pNext;      // Pointer to next structure | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1880 | uint32_t                                    viewportCount; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1881 | VkCoordinateOrigin                          clipOrigin;                 // optional (GL45) | 
|  | 1882 | VkDepthMode                                 depthMode;                  // optional (GL45) | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1883 | } VkPipelineVpStateCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1884 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1885 | typedef struct VkPipelineRsStateCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1886 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1887 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_PIPELINE_RS_STATE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1888 | const void*                                 pNext;      // Pointer to next structure | 
|  | 1889 | bool32_t                                    depthClipEnable; | 
|  | 1890 | bool32_t                                    rasterizerDiscardEnable; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1891 | VkCoordinateOrigin                          pointOrigin;                // optional (GL45) | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1892 | VkProvokingVertex                           provokingVertex;            // optional (GL45) | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1893 | VkFillMode                                  fillMode;                   // optional (GL45) | 
|  | 1894 | VkCullMode                                  cullMode; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1895 | VkFrontFace                                 frontFace; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1896 | } VkPipelineRsStateCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1897 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1898 | typedef struct VkPipelineMsStateCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1899 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1900 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_PIPELINE_MS_STATE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1901 | const void*                                 pNext;      // Pointer to next structure | 
| Tony Barbour | dfd533a | 2015-06-26 10:18:34 -0600 | [diff] [blame] | 1902 | uint32_t                                    rasterSamples; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1903 | bool32_t                                    multisampleEnable;          // optional (GL45) | 
|  | 1904 | bool32_t                                    sampleShadingEnable;        // optional (GL45) | 
|  | 1905 | float                                       minSampleShading;           // optional (GL45) | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1906 | VkSampleMask                                sampleMask; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1907 | } VkPipelineMsStateCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1908 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1909 | typedef struct VkPipelineCbAttachmentState_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1910 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1911 | bool32_t                                    blendEnable; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1912 | VkFormat                                    format; | 
|  | 1913 | VkBlend                                     srcBlendColor; | 
|  | 1914 | VkBlend                                     destBlendColor; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1915 | VkBlendOp                                   blendOpColor; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1916 | VkBlend                                     srcBlendAlpha; | 
|  | 1917 | VkBlend                                     destBlendAlpha; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1918 | VkBlendOp                                   blendOpAlpha; | 
|  | 1919 | VkChannelFlags                              channelWriteMask; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1920 | } VkPipelineCbAttachmentState; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1921 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1922 | typedef struct VkPipelineCbStateCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1923 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1924 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_PIPELINE_CB_STATE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1925 | const void*                                 pNext;      // Pointer to next structure | 
|  | 1926 | bool32_t                                    alphaToCoverageEnable; | 
|  | 1927 | bool32_t                                    logicOpEnable; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1928 | VkLogicOp                                   logicOp; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1929 | uint32_t                                    attachmentCount;    // # of pAttachments | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1930 | const VkPipelineCbAttachmentState*          pAttachments; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1931 | } VkPipelineCbStateCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1932 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1933 | typedef struct VkStencilOpState_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1934 | { | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1935 | VkStencilOp                                 stencilFailOp; | 
|  | 1936 | VkStencilOp                                 stencilPassOp; | 
|  | 1937 | VkStencilOp                                 stencilDepthFailOp; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1938 | VkCompareOp                                 stencilCompareOp; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1939 | } VkStencilOpState; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1940 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1941 | typedef struct VkPipelineDsStateCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1942 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1943 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_PIPELINE_DS_STATE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1944 | const void*                                 pNext;      // Pointer to next structure | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1945 | VkFormat                                    format; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1946 | bool32_t                                    depthTestEnable; | 
|  | 1947 | bool32_t                                    depthWriteEnable; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1948 | VkCompareOp                                 depthCompareOp; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1949 | bool32_t                                    depthBoundsEnable;          // optional (depth_bounds_test) | 
|  | 1950 | bool32_t                                    stencilTestEnable; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1951 | VkStencilOpState                            front; | 
|  | 1952 | VkStencilOpState                            back; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1953 | } VkPipelineDsStateCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1954 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1955 | typedef struct VkGraphicsPipelineCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1956 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1957 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1958 | const void*                                 pNext;      // Pointer to next structure | 
| Mark Lobodzinski | d5732f3 | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1959 | uint32_t                                    stageCount; | 
|  | 1960 | const VkPipelineShaderStageCreateInfo*      pStages;    // One entry for each active shader stage | 
|  | 1961 | const VkPipelineVertexInputStateCreateInfo* pVertexInputState; | 
|  | 1962 | const VkPipelineIaStateCreateInfo*          pIaState; | 
|  | 1963 | const VkPipelineTessStateCreateInfo*        pTessState; | 
|  | 1964 | const VkPipelineVpStateCreateInfo*          pVpState; | 
|  | 1965 | const VkPipelineRsStateCreateInfo*          pRsState; | 
|  | 1966 | const VkPipelineMsStateCreateInfo*          pMsState; | 
|  | 1967 | const VkPipelineDsStateCreateInfo*          pDsState; | 
|  | 1968 | const VkPipelineCbStateCreateInfo*          pCbState; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1969 | VkPipelineCreateFlags                       flags;      // Pipeline creation flags | 
| Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 1970 | VkPipelineLayout                            layout;     // Interface layout of the pipeline | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1971 | } VkGraphicsPipelineCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1972 |  | 
| Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 1973 | typedef struct VkPipelineLayoutCreateInfo_ | 
|  | 1974 | { | 
|  | 1975 | VkStructureType                             sType;              // Must be VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO | 
|  | 1976 | const void*                                 pNext;              // Pointer to next structure | 
| Courtney Goeltzenleuchter | 07fd6b6 | 2015-04-17 20:48:17 -0600 | [diff] [blame] | 1977 |  | 
| Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 1978 | uint32_t                                    descriptorSetCount; // Number of descriptor sets interfaced by the pipeline | 
|  | 1979 | const VkDescriptorSetLayout*                pSetLayouts;        // Array of <setCount> number of descriptor set layout objects defining the layout of the | 
|  | 1980 | } VkPipelineLayoutCreateInfo; | 
|  | 1981 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1982 | typedef struct VkSamplerCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1983 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1984 | VkStructureType                             sType;          // Must be VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1985 | const void*                                 pNext;          // Pointer to next structure | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1986 | VkTexFilter                                 magFilter;      // Filter mode for magnification | 
|  | 1987 | VkTexFilter                                 minFilter;      // Filter mode for minifiation | 
|  | 1988 | VkTexMipmapMode                             mipMode;        // Mipmap selection mode | 
|  | 1989 | VkTexAddress                                addressU; | 
|  | 1990 | VkTexAddress                                addressV; | 
|  | 1991 | VkTexAddress                                addressW; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1992 | float                                       mipLodBias; | 
|  | 1993 | uint32_t                                    maxAnisotropy; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1994 | VkCompareOp                                 compareOp; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1995 | float                                       minLod; | 
|  | 1996 | float                                       maxLod; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1997 | VkBorderColor                               borderColor; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1998 | } VkSamplerCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1999 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2000 | typedef struct VkDynamicVpStateCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2001 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2002 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_DYNAMIC_VP_STATE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2003 | const void*                                 pNext;      // Pointer to next structure | 
|  | 2004 | uint32_t                                    viewportAndScissorCount;  // number of entries in pViewports and pScissors | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2005 | const VkViewport*                           pViewports; | 
| Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 2006 | const VkRect2D*                             pScissors; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2007 | } VkDynamicVpStateCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2008 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2009 | typedef struct VkDynamicRsStateCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2010 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2011 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_DYNAMIC_RS_STATE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2012 | const void*                                 pNext;      // Pointer to next structure | 
|  | 2013 | float                                       depthBias; | 
|  | 2014 | float                                       depthBiasClamp; | 
|  | 2015 | float                                       slopeScaledDepthBias; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2016 | float                                       lineWidth;          // optional (GL45) - Width of lines | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2017 | } VkDynamicRsStateCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2018 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2019 | typedef struct VkDynamicCbStateCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2020 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2021 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_DYNAMIC_CB_STATE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2022 | const void*                                 pNext;      // Pointer to next structure | 
|  | 2023 | float                                       blendConst[4]; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2024 | } VkDynamicCbStateCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2025 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2026 | typedef struct VkDynamicDsStateCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2027 | { | 
| Mark Lobodzinski | 365feea | 2015-06-12 11:14:17 -0600 | [diff] [blame] | 2028 | VkStructureType                             sType;              // Must be VK_STRUCTURE_TYPE_DYNAMIC_DS_STATE_CREATE_INFO | 
|  | 2029 | const void*                                 pNext;              // Pointer to next structure | 
|  | 2030 | float                                       minDepthBounds;     // optional (depth_bounds_test) | 
|  | 2031 | float                                       maxDepthBounds;     // optional (depth_bounds_test) | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2032 | uint32_t                                    stencilReadMask; | 
|  | 2033 | uint32_t                                    stencilWriteMask; | 
|  | 2034 | uint32_t                                    stencilFrontRef; | 
|  | 2035 | uint32_t                                    stencilBackRef; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2036 | } VkDynamicDsStateCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2037 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2038 | typedef struct VkCmdBufferCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2039 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2040 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_CMD_BUFFER_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2041 | const void*                                 pNext;      // Pointer to next structure | 
|  | 2042 | uint32_t                                    queueNodeIndex; | 
| Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 2043 | VkCmdBufferLevel                            level; | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2044 | VkCmdBufferCreateFlags                      flags;      // Command buffer creation flags | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2045 | } VkCmdBufferCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2046 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2047 | typedef struct VkCmdBufferBeginInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2048 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2049 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_CMD_BUFFER_BEGIN_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2050 | const void*                                 pNext;      // Pointer to next structure | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2051 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2052 | VkCmdBufferOptimizeFlags                    flags;      // Command buffer optimization flags | 
| Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 2053 |  | 
|  | 2054 | VkRenderPass                                renderPass; | 
|  | 2055 | VkFramebuffer                               framebuffer; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2056 | } VkCmdBufferBeginInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2057 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2058 | typedef struct VkRenderPassBegin_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2059 | { | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2060 | VkRenderPass                                renderPass; | 
|  | 2061 | VkFramebuffer                               framebuffer; | 
| Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 2062 | VkRenderPassContents                        contents; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2063 | } VkRenderPassBegin; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2064 |  | 
| Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 2065 | // Union allowing specification of floating point, integer, or unsigned integer color data. Actual value selected is based on format. | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2066 | typedef union VkClearColorValue_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2067 | { | 
| Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 2068 | float                                       f32[4]; | 
|  | 2069 | int32_t                                     s32[4]; | 
|  | 2070 | uint32_t                                    u32[4]; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2071 | } VkClearColorValue; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2072 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2073 | typedef struct VkRenderPassCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2074 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2075 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2076 | const void*                                 pNext;      // Pointer to next structure | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2077 |  | 
| Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 2078 | VkRect2D                                    renderArea; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2079 | uint32_t                                    colorAttachmentCount; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2080 | VkExtent2D                                  extent; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2081 | uint32_t                                    sampleCount; | 
|  | 2082 | uint32_t                                    layers; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2083 | const VkFormat*                             pColorFormats; | 
|  | 2084 | const VkImageLayout*                        pColorLayouts; | 
|  | 2085 | const VkAttachmentLoadOp*                   pColorLoadOps; | 
|  | 2086 | const VkAttachmentStoreOp*                  pColorStoreOps; | 
| Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 2087 | const VkClearColorValue*                    pColorLoadClearValues; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2088 | VkFormat                                    depthStencilFormat; | 
|  | 2089 | VkImageLayout                               depthStencilLayout; | 
|  | 2090 | VkAttachmentLoadOp                          depthLoadOp; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2091 | float                                       depthLoadClearValue; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2092 | VkAttachmentStoreOp                         depthStoreOp; | 
|  | 2093 | VkAttachmentLoadOp                          stencilLoadOp; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2094 | uint32_t                                    stencilLoadClearValue; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2095 | VkAttachmentStoreOp                         stencilStoreOp; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2096 | } VkRenderPassCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2097 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2098 | typedef struct VkEventCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2099 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2100 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_EVENT_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2101 | const void*                                 pNext;      // Pointer to next structure | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2102 | VkEventCreateFlags                          flags;      // Event creation flags | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2103 | } VkEventCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2104 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2105 | typedef struct VkFenceCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2106 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2107 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_FENCE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2108 | const void*                                 pNext;      // Pointer to next structure | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2109 | VkFenceCreateFlags                          flags;      // Fence creation flags | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2110 | } VkFenceCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2111 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2112 | typedef struct VkSemaphoreCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2113 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2114 | VkStructureType                             sType;      // Must be VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2115 | const void*                                 pNext;      // Pointer to next structure | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2116 | VkSemaphoreCreateFlags                      flags;      // Semaphore creation flags | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2117 | } VkSemaphoreCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2118 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2119 | typedef struct VkQueryPoolCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2120 | { | 
| Courtney Goeltzenleuchter | f6d8f7b | 2015-04-16 09:13:59 -0600 | [diff] [blame] | 2121 | VkStructureType                             sType;              // Must be VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO | 
|  | 2122 | const void*                                 pNext;              // Pointer to next structure | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2123 | VkQueryType                                 queryType; | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2124 | uint32_t                                    slots; | 
| Courtney Goeltzenleuchter | f6d8f7b | 2015-04-16 09:13:59 -0600 | [diff] [blame] | 2125 | VkQueryPipelineStatisticFlags               pipelineStatistics; // Optional | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2126 | } VkQueryPoolCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2127 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2128 | typedef struct VkFramebufferCreateInfo_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2129 | { | 
| Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2130 | VkStructureType                             sType;  // Must be VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2131 | const void*                                 pNext;  // Pointer to next structure | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2132 |  | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2133 | uint32_t                                    colorAttachmentCount; | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2134 | const VkColorAttachmentBindInfo*            pColorAttachments; | 
|  | 2135 | const VkDepthStencilBindInfo*               pDepthStencilAttachment; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2136 |  | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2137 | uint32_t                                    sampleCount; | 
|  | 2138 | uint32_t                                    width; | 
|  | 2139 | uint32_t                                    height; | 
|  | 2140 | uint32_t                                    layers; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2141 | } VkFramebufferCreateInfo; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2142 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2143 | typedef struct VkDrawIndirectCmd_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2144 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2145 | uint32_t                                    vertexCount; | 
|  | 2146 | uint32_t                                    instanceCount; | 
|  | 2147 | uint32_t                                    firstVertex; | 
|  | 2148 | uint32_t                                    firstInstance; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2149 | } VkDrawIndirectCmd; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2150 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2151 | typedef struct VkDrawIndexedIndirectCmd_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2152 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2153 | uint32_t                                    indexCount; | 
|  | 2154 | uint32_t                                    instanceCount; | 
|  | 2155 | uint32_t                                    firstIndex; | 
|  | 2156 | int32_t                                     vertexOffset; | 
|  | 2157 | uint32_t                                    firstInstance; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2158 | } VkDrawIndexedIndirectCmd; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2159 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2160 | typedef struct VkDispatchIndirectCmd_ | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2161 | { | 
| Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2162 | uint32_t                                    x; | 
|  | 2163 | uint32_t                                    y; | 
|  | 2164 | uint32_t                                    z; | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2165 | } VkDispatchIndirectCmd; | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2166 |  | 
|  | 2167 | // ------------------------------------------------------------------------------------------------ | 
|  | 2168 | // API functions | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2169 | typedef VkResult (VKAPI *PFN_vkCreateInstance)(const VkInstanceCreateInfo* pCreateInfo, VkInstance* pInstance); | 
|  | 2170 | typedef VkResult (VKAPI *PFN_vkDestroyInstance)(VkInstance instance); | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2171 | typedef VkResult (VKAPI *PFN_vkEnumeratePhysicalDevices)(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices); | 
| Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 2172 | typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceFeatures)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures); | 
|  | 2173 | typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceFormatInfo)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties *pFormatInfo); | 
|  | 2174 | typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceLimits)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceLimits* pLimits); | 
| Jon Ashburn | b0fbe91 | 2015-05-06 10:15:07 -0600 | [diff] [blame] | 2175 | typedef void *   (VKAPI *PFN_vkGetInstanceProcAddr)(VkInstance instance, const char * pName); | 
| Jon Ashburn | 8d1b0b5 | 2015-05-18 13:20:15 -0600 | [diff] [blame] | 2176 | typedef void *   (VKAPI *PFN_vkGetDeviceProcAddr)(VkDevice device, const char * pName); | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2177 | typedef VkResult (VKAPI *PFN_vkCreateDevice)(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo, VkDevice* pDevice); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2178 | typedef VkResult (VKAPI *PFN_vkDestroyDevice)(VkDevice device); | 
| Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2179 | typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties); | 
|  | 2180 | typedef VkResult (VKAPI *PFN_vkGetPhysicalDevicePerformance)(VkPhysicalDevice physicalDevice, VkPhysicalDevicePerformance* pPerformance); | 
|  | 2181 | typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceQueueCount)(VkPhysicalDevice physicalDevice, uint32_t* pCount); | 
|  | 2182 | typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceQueueProperties)(VkPhysicalDevice physicalDevice, uint32_t count, VkPhysicalDeviceQueueProperties* pQueueProperties); | 
|  | 2183 | typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceMemoryProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties* pMemoryProperies); | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 2184 | typedef VkResult (VKAPI *PFN_vkGetGlobalExtensionProperties)(const char * pLayerName, uint32_t* pCount, VkExtensionProperties* pProperties); | 
|  | 2185 | typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceExtensionProperties)(VkPhysicalDevice physicalDevice, const char* pLayerName, uint32_t *pCount, VkExtensionProperties* pProperties); | 
|  | 2186 | typedef VkResult (VKAPI *PFN_vkGetGlobalLayerProperties)(uint32_t* pCount, VkLayerProperties* pProperties); | 
|  | 2187 | typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceLayerProperties)(VkPhysicalDevice physicalDevice, uint32_t *pCount, VkLayerProperties* pProperties); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2188 | typedef VkResult (VKAPI *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueNodeIndex, uint32_t queueIndex, VkQueue* pQueue); | 
|  | 2189 | typedef VkResult (VKAPI *PFN_vkQueueSubmit)(VkQueue queue, uint32_t cmdBufferCount, const VkCmdBuffer* pCmdBuffers, VkFence fence); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2190 | typedef VkResult (VKAPI *PFN_vkQueueWaitIdle)(VkQueue queue); | 
|  | 2191 | typedef VkResult (VKAPI *PFN_vkDeviceWaitIdle)(VkDevice device); | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2192 | typedef VkResult (VKAPI *PFN_vkAllocMemory)(VkDevice device, const VkMemoryAllocInfo* pAllocInfo, VkDeviceMemory* pMem); | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2193 | typedef VkResult (VKAPI *PFN_vkFreeMemory)(VkDevice device, VkDeviceMemory mem); | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2194 | typedef VkResult (VKAPI *PFN_vkMapMemory)(VkDevice device, VkDeviceMemory mem, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData); | 
|  | 2195 | typedef VkResult (VKAPI *PFN_vkUnmapMemory)(VkDevice device, VkDeviceMemory mem); | 
| Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 2196 | typedef VkResult (VKAPI *PFN_vkFlushMappedMemoryRanges)(VkDevice device, uint32_t memRangeCount, const VkMappedMemoryRange* pMemRanges); | 
|  | 2197 | typedef VkResult (VKAPI *PFN_vkInvalidateMappedMemoryRanges)(VkDevice device, uint32_t memRangeCount, const VkMappedMemoryRange* pMemRanges); | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2198 | typedef VkResult (VKAPI *PFN_vkDestroyObject)(VkDevice device, VkObjectType objType, VkObject object); | 
| Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2199 | typedef VkResult (VKAPI *PFN_vkGetObjectMemoryRequirements)(VkDevice device, VkObjectType objType, VkObject object, VkMemoryRequirements* pMemoryRequirements); | 
| Mark Lobodzinski | 2306535 | 2015-05-29 09:32:35 -0500 | [diff] [blame] | 2200 | typedef VkResult (VKAPI *PFN_vkBindObjectMemory)(VkDevice device, VkObjectType objType, VkObject object, VkDeviceMemory mem, VkDeviceSize offset); | 
|  | 2201 | typedef VkResult (VKAPI *PFN_vkQueueBindSparseBufferMemory)(VkQueue queue, VkBuffer buffer, VkDeviceSize rangeOffset, VkDeviceSize rangeSize, VkDeviceMemory mem, VkDeviceSize memOffset); | 
|  | 2202 | typedef VkResult (VKAPI *PFN_vkQueueBindSparseImageMemory)(VkQueue queue, VkImage image, const VkImageMemoryBindInfo* pBindInfo, VkDeviceMemory mem, VkDeviceSize memOffset); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2203 | typedef VkResult (VKAPI *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, VkFence* pFence); | 
| Courtney Goeltzenleuchter | 2bf8f90 | 2015-06-18 17:28:20 -0600 | [diff] [blame] | 2204 | typedef VkResult (VKAPI *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences); | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2205 | typedef VkResult (VKAPI *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2206 | typedef VkResult (VKAPI *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, bool32_t waitAll, uint64_t timeout); | 
|  | 2207 | typedef VkResult (VKAPI *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, VkSemaphore* pSemaphore); | 
|  | 2208 | typedef VkResult (VKAPI *PFN_vkQueueSignalSemaphore)(VkQueue queue, VkSemaphore semaphore); | 
|  | 2209 | typedef VkResult (VKAPI *PFN_vkQueueWaitSemaphore)(VkQueue queue, VkSemaphore semaphore); | 
|  | 2210 | typedef VkResult (VKAPI *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo* pCreateInfo, VkEvent* pEvent); | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2211 | typedef VkResult (VKAPI *PFN_vkGetEventStatus)(VkDevice device, VkEvent event); | 
|  | 2212 | typedef VkResult (VKAPI *PFN_vkSetEvent)(VkDevice device, VkEvent event); | 
|  | 2213 | typedef VkResult (VKAPI *PFN_vkResetEvent)(VkDevice device, VkEvent event); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2214 | typedef VkResult (VKAPI *PFN_vkCreateQueryPool)(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, VkQueryPool* pQueryPool); | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2215 | typedef VkResult (VKAPI *PFN_vkGetQueryPoolResults)(VkDevice device, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, size_t* pDataSize, void* pData, VkQueryResultFlags flags); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2216 | typedef VkResult (VKAPI *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkBuffer* pBuffer); | 
|  | 2217 | typedef VkResult (VKAPI *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, VkBufferView* pView); | 
|  | 2218 | typedef VkResult (VKAPI *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo* pCreateInfo, VkImage* pImage); | 
| Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2219 | typedef VkResult (VKAPI *PFN_vkGetImageSubresourceLayout)(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2220 | typedef VkResult (VKAPI *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, VkImageView* pView); | 
|  | 2221 | typedef VkResult (VKAPI *PFN_vkCreateColorAttachmentView)(VkDevice device, const VkColorAttachmentViewCreateInfo* pCreateInfo, VkColorAttachmentView* pView); | 
|  | 2222 | typedef VkResult (VKAPI *PFN_vkCreateDepthStencilView)(VkDevice device, const VkDepthStencilViewCreateInfo* pCreateInfo, VkDepthStencilView* pView); | 
| Courtney Goeltzenleuchter | a607df1 | 2015-06-18 21:49:59 -0600 | [diff] [blame] | 2223 | typedef VkResult (VKAPI *PFN_vkCreateShaderModule)(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, VkShaderModule* pShaderModule); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2224 | typedef VkResult (VKAPI *PFN_vkCreateShader)(VkDevice device, const VkShaderCreateInfo* pCreateInfo, VkShader* pShader); | 
|  | 2225 | typedef VkResult (VKAPI *PFN_vkCreateGraphicsPipeline)(VkDevice device, const VkGraphicsPipelineCreateInfo* pCreateInfo, VkPipeline* pPipeline); | 
|  | 2226 | typedef VkResult (VKAPI *PFN_vkCreateGraphicsPipelineDerivative)(VkDevice device, const VkGraphicsPipelineCreateInfo* pCreateInfo, VkPipeline basePipeline, VkPipeline* pPipeline); | 
|  | 2227 | typedef VkResult (VKAPI *PFN_vkCreateComputePipeline)(VkDevice device, const VkComputePipelineCreateInfo* pCreateInfo, VkPipeline* pPipeline); | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2228 | typedef VkResult (VKAPI *PFN_vkStorePipeline)(VkDevice device, VkPipeline pipeline, size_t* pDataSize, void* pData); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2229 | typedef VkResult (VKAPI *PFN_vkLoadPipeline)(VkDevice device, size_t dataSize, const void* pData, VkPipeline* pPipeline); | 
|  | 2230 | typedef VkResult (VKAPI *PFN_vkLoadPipelineDerivative)(VkDevice device, size_t dataSize, const void* pData, VkPipeline basePipeline, VkPipeline* pPipeline); | 
| Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 2231 | typedef VkResult (VKAPI *PFN_vkCreatePipelineLayout)(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, VkPipelineLayout* pPipelineLayout); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2232 | typedef VkResult (VKAPI *PFN_vkCreateSampler)(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, VkSampler* pSampler); | 
|  | 2233 | typedef VkResult (VKAPI *PFN_vkCreateDescriptorSetLayout)(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, VkDescriptorSetLayout* pSetLayout); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2234 | typedef VkResult (VKAPI *PFN_vkCreateDescriptorPool)(VkDevice device, VkDescriptorPoolUsage poolUsage, uint32_t maxSets, const VkDescriptorPoolCreateInfo* pCreateInfo, VkDescriptorPool* pDescriptorPool); | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2235 | typedef VkResult (VKAPI *PFN_vkResetDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool); | 
|  | 2236 | typedef VkResult (VKAPI *PFN_vkAllocDescriptorSets)(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorSetUsage setUsage, uint32_t count, const VkDescriptorSetLayout* pSetLayouts, VkDescriptorSet* pDescriptorSets, uint32_t* pCount); | 
| Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 2237 | typedef VkResult (VKAPI *PFN_vkUpdateDescriptorSets)(VkDevice device, uint32_t writeCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t copyCount, const VkCopyDescriptorSet* pDescriptorCopies); | 
| Courtney Goeltzenleuchter | 502744a | 2015-04-10 16:24:50 -0600 | [diff] [blame] | 2238 | typedef VkResult (VKAPI *PFN_vkCreateDynamicViewportState)(VkDevice device, const VkDynamicVpStateCreateInfo* pCreateInfo, VkDynamicVpState* pState); | 
|  | 2239 | typedef VkResult (VKAPI *PFN_vkCreateDynamicRasterState)(VkDevice device, const VkDynamicRsStateCreateInfo* pCreateInfo, VkDynamicRsState* pState); | 
|  | 2240 | typedef VkResult (VKAPI *PFN_vkCreateDynamicColorBlendState)(VkDevice device, const VkDynamicCbStateCreateInfo* pCreateInfo, VkDynamicCbState* pState); | 
|  | 2241 | typedef VkResult (VKAPI *PFN_vkCreateDynamicDepthStencilState)(VkDevice device, const VkDynamicDsStateCreateInfo* pCreateInfo, VkDynamicDsState* pState); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2242 | typedef VkResult (VKAPI *PFN_vkCreateCommandBuffer)(VkDevice device, const VkCmdBufferCreateInfo* pCreateInfo, VkCmdBuffer* pCmdBuffer); | 
|  | 2243 | typedef VkResult (VKAPI *PFN_vkBeginCommandBuffer)(VkCmdBuffer cmdBuffer, const VkCmdBufferBeginInfo* pBeginInfo); | 
|  | 2244 | typedef VkResult (VKAPI *PFN_vkEndCommandBuffer)(VkCmdBuffer cmdBuffer); | 
|  | 2245 | typedef VkResult (VKAPI *PFN_vkResetCommandBuffer)(VkCmdBuffer cmdBuffer); | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2246 | typedef void     (VKAPI *PFN_vkCmdBindPipeline)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline); | 
|  | 2247 | typedef void     (VKAPI *PFN_vkCmdBindDynamicStateObject)(VkCmdBuffer cmdBuffer, VkStateBindPoint stateBindPoint, VkDynamicStateObject state); | 
| Mark Lobodzinski | f2093b6 | 2015-06-15 13:21:21 -0600 | [diff] [blame] | 2248 | typedef void     (VKAPI *PFN_vkCmdBindDescriptorSets)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t setCount, const VkDescriptorSet* pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t* pDynamicOffsets); | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2249 | typedef void     (VKAPI *PFN_vkCmdBindIndexBuffer)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType); | 
|  | 2250 | typedef void     (VKAPI *PFN_vkCmdBindVertexBuffers)(VkCmdBuffer cmdBuffer, uint32_t startBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets); | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2251 | typedef void     (VKAPI *PFN_vkCmdDraw)(VkCmdBuffer cmdBuffer, uint32_t firstVertex, uint32_t vertexCount, uint32_t firstInstance, uint32_t instanceCount); | 
|  | 2252 | typedef void     (VKAPI *PFN_vkCmdDrawIndexed)(VkCmdBuffer cmdBuffer, uint32_t firstIndex, uint32_t indexCount, int32_t vertexOffset, uint32_t firstInstance, uint32_t instanceCount); | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2253 | typedef void     (VKAPI *PFN_vkCmdDrawIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t count, uint32_t stride); | 
|  | 2254 | typedef void     (VKAPI *PFN_vkCmdDrawIndexedIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t count, uint32_t stride); | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2255 | typedef void     (VKAPI *PFN_vkCmdDispatch)(VkCmdBuffer cmdBuffer, uint32_t x, uint32_t y, uint32_t z); | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2256 | typedef void     (VKAPI *PFN_vkCmdDispatchIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset); | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2257 | typedef void     (VKAPI *PFN_vkCmdCopyBuffer)(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkBuffer destBuffer, uint32_t regionCount, const VkBufferCopy* pRegions); | 
|  | 2258 | typedef void     (VKAPI *PFN_vkCmdCopyImage)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageCopy* pRegions); | 
| Mark Lobodzinski | ee5eef1 | 2015-05-22 14:43:25 -0500 | [diff] [blame] | 2259 | typedef void     (VKAPI *PFN_vkCmdBlitImage)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkTexFilter filter); | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2260 | typedef void     (VKAPI *PFN_vkCmdCopyBufferToImage)(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions); | 
|  | 2261 | typedef void     (VKAPI *PFN_vkCmdCopyImageToBuffer)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer destBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions); | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2262 | typedef void     (VKAPI *PFN_vkCmdUpdateBuffer)(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize dataSize, const uint32_t* pData); | 
|  | 2263 | typedef void     (VKAPI *PFN_vkCmdFillBuffer)(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize fillSize, uint32_t data); | 
| Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 2264 | typedef void     (VKAPI *PFN_vkCmdClearColorImage)(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); | 
| Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 2265 | typedef void     (VKAPI *PFN_vkCmdClearDepthStencilImage)(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, float depth, uint32_t stencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); | 
| Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 2266 | typedef void     (VKAPI *PFN_vkCmdClearColorAttachment)(VkCmdBuffer cmdBuffer, uint32_t colorAttachment, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rectCount, const VkRect3D* pRects); | 
| Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 2267 | typedef void     (VKAPI *PFN_vkCmdClearDepthStencilAttachment)(VkCmdBuffer cmdBuffer, VkImageAspectFlags imageAspectMask, VkImageLayout imageLayout, float depth, uint32_t stencil, uint32_t rectCount, const VkRect3D* pRects); | 
| Tony Barbour | 6865d4a | 2015-04-13 15:02:52 -0600 | [diff] [blame] | 2268 | typedef void     (VKAPI *PFN_vkCmdResolveImage)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageResolve* pRegions); | 
| Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 2269 | typedef void     (VKAPI *PFN_vkCmdSetEvent)(VkCmdBuffer cmdBuffer, VkEvent event, VkPipelineStageFlags stageMask); | 
|  | 2270 | typedef void     (VKAPI *PFN_vkCmdResetEvent)(VkCmdBuffer cmdBuffer, VkEvent event, VkPipelineStageFlags stageMask); | 
|  | 2271 | typedef void     (VKAPI *PFN_vkCmdWaitEvents)(VkCmdBuffer cmdBuffer, uint32_t eventCount, const VkEvent* pEvents, VkPipelineStageFlags sourceStageMask, VkPipelineStageFlags destStageMask, uint32_t memBarrierCount, const void** ppMemBarriers); | 
|  | 2272 | typedef void     (VKAPI *PFN_vkCmdPipelineBarrier)(VkCmdBuffer cmdBuffer, VkPipelineStageFlags sourceStageMask, VkPipelineStageFlags destStageMask, bool32_t byRegion, uint32_t memBarrierCount, const void** ppMemBarriers); | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2273 | typedef void     (VKAPI *PFN_vkCmdBeginQuery)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot, VkQueryControlFlags flags); | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2274 | typedef void     (VKAPI *PFN_vkCmdEndQuery)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot); | 
|  | 2275 | typedef void     (VKAPI *PFN_vkCmdResetQueryPool)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount); | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2276 | typedef void     (VKAPI *PFN_vkCmdWriteTimestamp)(VkCmdBuffer cmdBuffer, VkTimestampType timestampType, VkBuffer destBuffer, VkDeviceSize destOffset); | 
| Tony Barbour | 71a8512 | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 2277 | typedef void     (VKAPI *PFN_vkCmdCopyQueryPoolResults)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize destStride, VkQueryResultFlags flags); | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2278 | typedef VkResult (VKAPI *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, VkFramebuffer* pFramebuffer); | 
|  | 2279 | typedef VkResult (VKAPI *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, VkRenderPass* pRenderPass); | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2280 | typedef void     (VKAPI *PFN_vkCmdBeginRenderPass)(VkCmdBuffer cmdBuffer, const VkRenderPassBegin* pRenderPassBegin); | 
| Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 2281 | typedef void     (VKAPI *PFN_vkCmdEndRenderPass)(VkCmdBuffer cmdBuffer); | 
|  | 2282 | typedef void     (VKAPI *PFN_vkCmdExecuteCommands)(VkCmdBuffer cmdBuffer, uint32_t cmdBuffersCount, const VkCmdBuffer* pCmdBuffers); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2283 |  | 
|  | 2284 | #ifdef VK_PROTOTYPES | 
|  | 2285 |  | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2286 | // Device initialization | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2287 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2288 | VkResult VKAPI vkCreateInstance( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2289 | const VkInstanceCreateInfo*                 pCreateInfo, | 
|  | 2290 | VkInstance*                                 pInstance); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2291 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2292 | VkResult VKAPI vkDestroyInstance( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2293 | VkInstance                                  instance); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2294 |  | 
| Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 2295 | VkResult VKAPI vkEnumeratePhysicalDevices( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2296 | VkInstance                                  instance, | 
| Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 2297 | uint32_t*                                   pPhysicalDeviceCount, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2298 | VkPhysicalDevice*                           pPhysicalDevices); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2299 |  | 
| Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 2300 | VkResult VKAPI vkGetPhysicalDeviceFeatures( | 
|  | 2301 | VkPhysicalDevice                            physicalDevice, | 
|  | 2302 | VkPhysicalDeviceFeatures*                   pFeatures); | 
|  | 2303 |  | 
|  | 2304 | VkResult VKAPI vkGetPhysicalDeviceFormatInfo( | 
|  | 2305 | VkPhysicalDevice                            physicalDevice, | 
|  | 2306 | VkFormat                                    format, | 
|  | 2307 | VkFormatProperties*                         pFormatInfo); | 
|  | 2308 |  | 
|  | 2309 | VkResult VKAPI vkGetPhysicalDeviceLimits( | 
|  | 2310 | VkPhysicalDevice                            physicalDevice, | 
|  | 2311 | VkPhysicalDeviceLimits*                     pLimits); | 
|  | 2312 |  | 
| Jon Ashburn | b0fbe91 | 2015-05-06 10:15:07 -0600 | [diff] [blame] | 2313 | void * VKAPI vkGetInstanceProcAddr( | 
|  | 2314 | VkInstance                                  instance, | 
|  | 2315 | const char*                                 pName); | 
|  | 2316 |  | 
| Jon Ashburn | 8d1b0b5 | 2015-05-18 13:20:15 -0600 | [diff] [blame] | 2317 | void * VKAPI vkGetDeviceProcAddr( | 
|  | 2318 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2319 | const char*                                 pName); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2320 | // Device functions | 
|  | 2321 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2322 | VkResult VKAPI vkCreateDevice( | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2323 | VkPhysicalDevice                            physicalDevice, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2324 | const VkDeviceCreateInfo*                   pCreateInfo, | 
|  | 2325 | VkDevice*                                   pDevice); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2326 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2327 | VkResult VKAPI vkDestroyDevice( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2328 | VkDevice                                    device); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2329 |  | 
| Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2330 | VkResult VKAPI vkGetPhysicalDeviceProperties( | 
|  | 2331 | VkPhysicalDevice                            physicalDevice, | 
|  | 2332 | VkPhysicalDeviceProperties*                 pProperties); | 
|  | 2333 |  | 
|  | 2334 | VkResult VKAPI vkGetPhysicalDevicePerformance( | 
|  | 2335 | VkPhysicalDevice                            physicalDevice, | 
|  | 2336 | VkPhysicalDevicePerformance*                pPerformance); | 
|  | 2337 |  | 
|  | 2338 | VkResult VKAPI vkGetPhysicalDeviceQueueCount( | 
|  | 2339 | VkPhysicalDevice                            physicalDevice, | 
|  | 2340 | uint32_t*                                   pCount); | 
|  | 2341 |  | 
|  | 2342 | VkResult VKAPI vkGetPhysicalDeviceQueueProperties( | 
|  | 2343 | VkPhysicalDevice                            physicalDevice, | 
|  | 2344 | uint32_t                                    count, | 
|  | 2345 | VkPhysicalDeviceQueueProperties*            pQueueProperties); | 
|  | 2346 |  | 
|  | 2347 | VkResult VKAPI vkGetPhysicalDeviceMemoryProperties( | 
|  | 2348 | VkPhysicalDevice                            physicalDevice, | 
|  | 2349 | VkPhysicalDeviceMemoryProperties*           pMemoryProperies); | 
|  | 2350 |  | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2351 | // Extension discovery functions | 
| Courtney Goeltzenleuchter | d7a5cff | 2015-04-23 17:49:22 -0600 | [diff] [blame] | 2352 |  | 
| Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2353 | VkResult VKAPI vkGetGlobalExtensionProperties( | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 2354 | const char*                                 pLayerName, | 
|  | 2355 | uint32_t*                                   pCount, | 
| Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2356 | VkExtensionProperties*                      pProperties); | 
|  | 2357 |  | 
| Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2358 | VkResult VKAPI vkGetPhysicalDeviceExtensionProperties( | 
|  | 2359 | VkPhysicalDevice                            physicalDevice, | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 2360 | const char*                                 pLayerName, | 
|  | 2361 | uint32_t*                                   pCount, | 
| Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2362 | VkExtensionProperties*                      pProperties); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2363 |  | 
| Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame^] | 2364 | VkResult VKAPI vkGetGlobalLayerProperties( | 
|  | 2365 | uint32_t*                                   pCount, | 
|  | 2366 | VkLayerProperties*                          pProperties); | 
|  | 2367 |  | 
|  | 2368 | VkResult VKAPI vkGetPhysicalDeviceLayerProperties( | 
|  | 2369 | VkPhysicalDevice                            physicalDevice, | 
|  | 2370 | uint32_t*                                   pCount, | 
|  | 2371 | VkLayerProperties*                          pProperties); | 
|  | 2372 |  | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2373 | // Queue functions | 
|  | 2374 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2375 | VkResult VKAPI vkGetDeviceQueue( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2376 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2377 | uint32_t                                    queueNodeIndex, | 
|  | 2378 | uint32_t                                    queueIndex, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2379 | VkQueue*                                    pQueue); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2380 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2381 | VkResult VKAPI vkQueueSubmit( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2382 | VkQueue                                     queue, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2383 | uint32_t                                    cmdBufferCount, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2384 | const VkCmdBuffer*                          pCmdBuffers, | 
|  | 2385 | VkFence                                     fence); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2386 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2387 | VkResult VKAPI vkQueueWaitIdle( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2388 | VkQueue                                     queue); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2389 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2390 | VkResult VKAPI vkDeviceWaitIdle( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2391 | VkDevice                                    device); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2392 |  | 
|  | 2393 | // Memory functions | 
|  | 2394 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2395 | VkResult VKAPI vkAllocMemory( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2396 | VkDevice                                    device, | 
|  | 2397 | const VkMemoryAllocInfo*                    pAllocInfo, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2398 | VkDeviceMemory*                             pMem); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2399 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2400 | VkResult VKAPI vkFreeMemory( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2401 | VkDevice                                    device, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2402 | VkDeviceMemory                              mem); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2403 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2404 | VkResult VKAPI vkMapMemory( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2405 | VkDevice                                    device, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2406 | VkDeviceMemory                              mem, | 
| Tony Barbour | 71a8512 | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 2407 | VkDeviceSize                                offset, | 
|  | 2408 | VkDeviceSize                                size, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2409 | VkMemoryMapFlags                            flags, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2410 | void**                                      ppData); | 
|  | 2411 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2412 | VkResult VKAPI vkUnmapMemory( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2413 | VkDevice                                    device, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2414 | VkDeviceMemory                              mem); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2415 |  | 
| Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 2416 | VkResult VKAPI vkFlushMappedMemoryRanges( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2417 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 2418 | uint32_t                                    memRangeCount, | 
|  | 2419 | const VkMappedMemoryRange*                  pMemRanges); | 
|  | 2420 |  | 
|  | 2421 | VkResult VKAPI vkInvalidateMappedMemoryRanges( | 
|  | 2422 | VkDevice                                    device, | 
|  | 2423 | uint32_t                                    memRangeCount, | 
|  | 2424 | const VkMappedMemoryRange*                  pMemRanges); | 
| Tony Barbour | b125054 | 2015-04-16 19:23:13 -0600 | [diff] [blame] | 2425 |  | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2426 | // Generic API object functions | 
|  | 2427 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2428 | VkResult VKAPI vkDestroyObject( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2429 | VkDevice                                    device, | 
|  | 2430 | VkObjectType                                objType, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2431 | VkObject                                    object); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2432 |  | 
| Tony Barbour | 71a8512 | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 2433 | // Memory management API functions | 
| Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 2434 |  | 
| Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 2435 | VkResult VKAPI vkBindObjectMemory( | 
|  | 2436 | VkDevice                                    device, | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2437 | VkObjectType                                objType, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2438 | VkObject                                    object, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2439 | VkDeviceMemory                              mem, | 
|  | 2440 | VkDeviceSize                                memOffset); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2441 |  | 
| Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2442 | VkResult VKAPI vkGetObjectMemoryRequirements( | 
|  | 2443 | VkDevice                                    device, | 
|  | 2444 | VkObjectType                                objType, | 
|  | 2445 | VkObject                                    object, | 
|  | 2446 | VkMemoryRequirements*                       pMemoryRequirements); | 
|  | 2447 |  | 
| Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 2448 | VkResult VKAPI vkQueueBindSparseBufferMemory( | 
| Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 2449 | VkQueue                                     queue, | 
| Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 2450 | VkBuffer                                    buffer, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2451 | VkDeviceSize                                rangeOffset, | 
|  | 2452 | VkDeviceSize                                rangeSize, | 
|  | 2453 | VkDeviceMemory                              mem, | 
|  | 2454 | VkDeviceSize                                memOffset); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2455 |  | 
| Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 2456 | VkResult VKAPI vkQueueBindSparseImageMemory( | 
| Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 2457 | VkQueue                                     queue, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2458 | VkImage                                     image, | 
| Jeremy Hayes | af0d72c | 2015-04-15 15:20:03 -0600 | [diff] [blame] | 2459 | const VkImageMemoryBindInfo*                pBindInfo, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2460 | VkDeviceMemory                              mem, | 
|  | 2461 | VkDeviceSize                                memOffset); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2462 |  | 
|  | 2463 | // Fence functions | 
|  | 2464 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2465 | VkResult VKAPI vkCreateFence( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2466 | VkDevice                                    device, | 
|  | 2467 | const VkFenceCreateInfo*                    pCreateInfo, | 
|  | 2468 | VkFence*                                    pFence); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2469 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2470 | VkResult VKAPI vkResetFences( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2471 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2472 | uint32_t                                    fenceCount, | 
| Courtney Goeltzenleuchter | 2bf8f90 | 2015-06-18 17:28:20 -0600 | [diff] [blame] | 2473 | const VkFence*                              pFences); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2474 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2475 | VkResult VKAPI vkGetFenceStatus( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2476 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2477 | VkFence                                     fence); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2478 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2479 | VkResult VKAPI vkWaitForFences( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2480 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2481 | uint32_t                                    fenceCount, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2482 | const VkFence*                              pFences, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2483 | bool32_t                                    waitAll, | 
|  | 2484 | uint64_t                                    timeout); // timeout in nanoseconds | 
|  | 2485 |  | 
|  | 2486 | // Queue semaphore functions | 
|  | 2487 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2488 | VkResult VKAPI vkCreateSemaphore( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2489 | VkDevice                                    device, | 
|  | 2490 | const VkSemaphoreCreateInfo*                pCreateInfo, | 
|  | 2491 | VkSemaphore*                                pSemaphore); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2492 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2493 | VkResult VKAPI vkQueueSignalSemaphore( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2494 | VkQueue                                     queue, | 
|  | 2495 | VkSemaphore                                 semaphore); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2496 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2497 | VkResult VKAPI vkQueueWaitSemaphore( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2498 | VkQueue                                     queue, | 
|  | 2499 | VkSemaphore                                 semaphore); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2500 |  | 
|  | 2501 | // Event functions | 
|  | 2502 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2503 | VkResult VKAPI vkCreateEvent( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2504 | VkDevice                                    device, | 
|  | 2505 | const VkEventCreateInfo*                    pCreateInfo, | 
|  | 2506 | VkEvent*                                    pEvent); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2507 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2508 | VkResult VKAPI vkGetEventStatus( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2509 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2510 | VkEvent                                     event); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2511 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2512 | VkResult VKAPI vkSetEvent( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2513 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2514 | VkEvent                                     event); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2515 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2516 | VkResult VKAPI vkResetEvent( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2517 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2518 | VkEvent                                     event); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2519 |  | 
|  | 2520 | // Query functions | 
|  | 2521 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2522 | VkResult VKAPI vkCreateQueryPool( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2523 | VkDevice                                    device, | 
|  | 2524 | const VkQueryPoolCreateInfo*                pCreateInfo, | 
|  | 2525 | VkQueryPool*                                pQueryPool); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2526 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2527 | VkResult VKAPI vkGetQueryPoolResults( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2528 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2529 | VkQueryPool                                 queryPool, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2530 | uint32_t                                    startQuery, | 
|  | 2531 | uint32_t                                    queryCount, | 
|  | 2532 | size_t*                                     pDataSize, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2533 | void*                                       pData, | 
|  | 2534 | VkQueryResultFlags                          flags); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2535 |  | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2536 | // Buffer functions | 
|  | 2537 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2538 | VkResult VKAPI vkCreateBuffer( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2539 | VkDevice                                    device, | 
|  | 2540 | const VkBufferCreateInfo*                   pCreateInfo, | 
|  | 2541 | VkBuffer*                                   pBuffer); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2542 |  | 
|  | 2543 | // Buffer view functions | 
|  | 2544 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2545 | VkResult VKAPI vkCreateBufferView( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2546 | VkDevice                                    device, | 
|  | 2547 | const VkBufferViewCreateInfo*               pCreateInfo, | 
|  | 2548 | VkBufferView*                               pView); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2549 |  | 
|  | 2550 | // Image functions | 
|  | 2551 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2552 | VkResult VKAPI vkCreateImage( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2553 | VkDevice                                    device, | 
|  | 2554 | const VkImageCreateInfo*                    pCreateInfo, | 
|  | 2555 | VkImage*                                    pImage); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2556 |  | 
| Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2557 | VkResult VKAPI vkGetImageSubresourceLayout( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2558 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2559 | VkImage                                     image, | 
|  | 2560 | const VkImageSubresource*                   pSubresource, | 
| Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2561 | VkSubresourceLayout*                        pLayout); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2562 |  | 
|  | 2563 | // Image view functions | 
|  | 2564 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2565 | VkResult VKAPI vkCreateImageView( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2566 | VkDevice                                    device, | 
|  | 2567 | const VkImageViewCreateInfo*                pCreateInfo, | 
|  | 2568 | VkImageView*                                pView); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2569 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2570 | VkResult VKAPI vkCreateColorAttachmentView( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2571 | VkDevice                                    device, | 
|  | 2572 | const VkColorAttachmentViewCreateInfo*      pCreateInfo, | 
|  | 2573 | VkColorAttachmentView*                      pView); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2574 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2575 | VkResult VKAPI vkCreateDepthStencilView( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2576 | VkDevice                                    device, | 
|  | 2577 | const VkDepthStencilViewCreateInfo*         pCreateInfo, | 
|  | 2578 | VkDepthStencilView*                         pView); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2579 |  | 
|  | 2580 | // Shader functions | 
|  | 2581 |  | 
| Courtney Goeltzenleuchter | a607df1 | 2015-06-18 21:49:59 -0600 | [diff] [blame] | 2582 | VkResult VKAPI vkCreateShaderModule( | 
|  | 2583 | VkDevice                                    device, | 
|  | 2584 | const VkShaderModuleCreateInfo*             pCreateInfo, | 
|  | 2585 | VkShaderModule*                             pShaderModule); | 
|  | 2586 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2587 | VkResult VKAPI vkCreateShader( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2588 | VkDevice                                    device, | 
|  | 2589 | const VkShaderCreateInfo*                   pCreateInfo, | 
|  | 2590 | VkShader*                                   pShader); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2591 |  | 
|  | 2592 | // Pipeline functions | 
|  | 2593 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2594 | VkResult VKAPI vkCreateGraphicsPipeline( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2595 | VkDevice                                    device, | 
|  | 2596 | const VkGraphicsPipelineCreateInfo*         pCreateInfo, | 
|  | 2597 | VkPipeline*                                 pPipeline); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2598 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2599 | VkResult VKAPI vkCreateGraphicsPipelineDerivative( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2600 | VkDevice                                    device, | 
|  | 2601 | const VkGraphicsPipelineCreateInfo*         pCreateInfo, | 
|  | 2602 | VkPipeline                                  basePipeline, | 
|  | 2603 | VkPipeline*                                 pPipeline); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2604 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2605 | VkResult VKAPI vkCreateComputePipeline( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2606 | VkDevice                                    device, | 
|  | 2607 | const VkComputePipelineCreateInfo*          pCreateInfo, | 
|  | 2608 | VkPipeline*                                 pPipeline); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2609 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2610 | VkResult VKAPI vkStorePipeline( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2611 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2612 | VkPipeline                                  pipeline, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2613 | size_t*                                     pDataSize, | 
|  | 2614 | void*                                       pData); | 
|  | 2615 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2616 | VkResult VKAPI vkLoadPipeline( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2617 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2618 | size_t                                      dataSize, | 
|  | 2619 | const void*                                 pData, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2620 | VkPipeline*                                 pPipeline); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2621 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2622 | VkResult VKAPI vkLoadPipelineDerivative( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2623 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2624 | size_t                                      dataSize, | 
|  | 2625 | const void*                                 pData, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2626 | VkPipeline                                  basePipeline, | 
|  | 2627 | VkPipeline*                                 pPipeline); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2628 |  | 
| Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 2629 | // Pipeline layout functions | 
|  | 2630 |  | 
|  | 2631 | VkResult VKAPI vkCreatePipelineLayout( | 
|  | 2632 | VkDevice                                    device, | 
|  | 2633 | const VkPipelineLayoutCreateInfo*           pCreateInfo, | 
|  | 2634 | VkPipelineLayout*                           pPipelineLayout); | 
|  | 2635 |  | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2636 | // Sampler functions | 
|  | 2637 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2638 | VkResult VKAPI vkCreateSampler( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2639 | VkDevice                                    device, | 
|  | 2640 | const VkSamplerCreateInfo*                  pCreateInfo, | 
|  | 2641 | VkSampler*                                  pSampler); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2642 |  | 
|  | 2643 | // Descriptor set functions | 
|  | 2644 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2645 | VkResult VKAPI vkCreateDescriptorSetLayout( | 
|  | 2646 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2647 | const VkDescriptorSetLayoutCreateInfo*      pCreateInfo, | 
|  | 2648 | VkDescriptorSetLayout*                      pSetLayout); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2649 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2650 | VkResult VKAPI vkCreateDescriptorPool( | 
|  | 2651 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2652 | VkDescriptorPoolUsage                       poolUsage, | 
|  | 2653 | uint32_t                                    maxSets, | 
|  | 2654 | const VkDescriptorPoolCreateInfo*           pCreateInfo, | 
|  | 2655 | VkDescriptorPool*                           pDescriptorPool); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2656 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2657 | VkResult VKAPI vkResetDescriptorPool( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2658 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2659 | VkDescriptorPool                            descriptorPool); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2660 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2661 | VkResult VKAPI vkAllocDescriptorSets( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2662 | VkDevice                                    device, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2663 | VkDescriptorPool                            descriptorPool, | 
|  | 2664 | VkDescriptorSetUsage                        setUsage, | 
|  | 2665 | uint32_t                                    count, | 
|  | 2666 | const VkDescriptorSetLayout*                pSetLayouts, | 
|  | 2667 | VkDescriptorSet*                            pDescriptorSets, | 
|  | 2668 | uint32_t*                                   pCount); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2669 |  | 
| Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 2670 | VkResult VKAPI vkUpdateDescriptorSets( | 
| Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2671 | VkDevice                                    device, | 
| Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 2672 | uint32_t                                    writeCount, | 
|  | 2673 | const VkWriteDescriptorSet*                 pDescriptorWrites, | 
|  | 2674 | uint32_t                                    copyCount, | 
|  | 2675 | const VkCopyDescriptorSet*                  pDescriptorCopies); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2676 |  | 
|  | 2677 | // State object functions | 
|  | 2678 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2679 | VkResult VKAPI vkCreateDynamicViewportState( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2680 | VkDevice                                    device, | 
|  | 2681 | const VkDynamicVpStateCreateInfo*           pCreateInfo, | 
|  | 2682 | VkDynamicVpState*                           pState); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2683 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2684 | VkResult VKAPI vkCreateDynamicRasterState( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2685 | VkDevice                                    device, | 
|  | 2686 | const VkDynamicRsStateCreateInfo*           pCreateInfo, | 
|  | 2687 | VkDynamicRsState*                           pState); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2688 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2689 | VkResult VKAPI vkCreateDynamicColorBlendState( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2690 | VkDevice                                    device, | 
|  | 2691 | const VkDynamicCbStateCreateInfo*           pCreateInfo, | 
|  | 2692 | VkDynamicCbState*                           pState); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2693 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2694 | VkResult VKAPI vkCreateDynamicDepthStencilState( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2695 | VkDevice                                    device, | 
|  | 2696 | const VkDynamicDsStateCreateInfo*           pCreateInfo, | 
|  | 2697 | VkDynamicDsState*                           pState); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2698 |  | 
|  | 2699 | // Command buffer functions | 
|  | 2700 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2701 | VkResult VKAPI vkCreateCommandBuffer( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2702 | VkDevice                                    device, | 
|  | 2703 | const VkCmdBufferCreateInfo*                pCreateInfo, | 
|  | 2704 | VkCmdBuffer*                                pCmdBuffer); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2705 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2706 | VkResult VKAPI vkBeginCommandBuffer( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2707 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2708 | const VkCmdBufferBeginInfo*                 pBeginInfo); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2709 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2710 | VkResult VKAPI vkEndCommandBuffer( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2711 | VkCmdBuffer                                 cmdBuffer); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2712 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2713 | VkResult VKAPI vkResetCommandBuffer( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2714 | VkCmdBuffer                                 cmdBuffer); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2715 |  | 
|  | 2716 | // Command buffer building functions | 
|  | 2717 |  | 
|  | 2718 | void VKAPI vkCmdBindPipeline( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2719 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2720 | VkPipelineBindPoint                         pipelineBindPoint, | 
|  | 2721 | VkPipeline                                  pipeline); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2722 |  | 
|  | 2723 | void VKAPI vkCmdBindDynamicStateObject( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2724 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2725 | VkStateBindPoint                            stateBindPoint, | 
|  | 2726 | VkDynamicStateObject                        dynamicState); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2727 |  | 
|  | 2728 | void VKAPI vkCmdBindDescriptorSets( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2729 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2730 | VkPipelineBindPoint                         pipelineBindPoint, | 
| Mark Lobodzinski | f2093b6 | 2015-06-15 13:21:21 -0600 | [diff] [blame] | 2731 | VkPipelineLayout                            layout, | 
| Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 2732 | uint32_t                                    firstSet, | 
|  | 2733 | uint32_t                                    setCount, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2734 | const VkDescriptorSet*                      pDescriptorSets, | 
| Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 2735 | uint32_t                                    dynamicOffsetCount, | 
|  | 2736 | const uint32_t*                             pDynamicOffsets); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2737 |  | 
|  | 2738 | void VKAPI vkCmdBindIndexBuffer( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2739 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2740 | VkBuffer                                    buffer, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2741 | VkDeviceSize                                offset, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2742 | VkIndexType                                 indexType); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2743 |  | 
| Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 2744 | void VKAPI vkCmdBindVertexBuffers( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2745 | VkCmdBuffer                                 cmdBuffer, | 
| Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 2746 | uint32_t                                    startBinding, | 
|  | 2747 | uint32_t                                    bindingCount, | 
|  | 2748 | const VkBuffer*                             pBuffers, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2749 | const VkDeviceSize*                         pOffsets); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2750 |  | 
|  | 2751 | void VKAPI vkCmdDraw( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2752 | VkCmdBuffer                                 cmdBuffer, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2753 | uint32_t                                    firstVertex, | 
|  | 2754 | uint32_t                                    vertexCount, | 
|  | 2755 | uint32_t                                    firstInstance, | 
|  | 2756 | uint32_t                                    instanceCount); | 
|  | 2757 |  | 
|  | 2758 | void VKAPI vkCmdDrawIndexed( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2759 | VkCmdBuffer                                 cmdBuffer, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2760 | uint32_t                                    firstIndex, | 
|  | 2761 | uint32_t                                    indexCount, | 
|  | 2762 | int32_t                                     vertexOffset, | 
|  | 2763 | uint32_t                                    firstInstance, | 
|  | 2764 | uint32_t                                    instanceCount); | 
|  | 2765 |  | 
|  | 2766 | void VKAPI vkCmdDrawIndirect( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2767 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2768 | VkBuffer                                    buffer, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2769 | VkDeviceSize                                offset, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2770 | uint32_t                                    count, | 
|  | 2771 | uint32_t                                    stride); | 
|  | 2772 |  | 
|  | 2773 | void VKAPI vkCmdDrawIndexedIndirect( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2774 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2775 | VkBuffer                                    buffer, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2776 | VkDeviceSize                                offset, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2777 | uint32_t                                    count, | 
|  | 2778 | uint32_t                                    stride); | 
|  | 2779 |  | 
|  | 2780 | void VKAPI vkCmdDispatch( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2781 | VkCmdBuffer                                 cmdBuffer, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2782 | uint32_t                                    x, | 
|  | 2783 | uint32_t                                    y, | 
|  | 2784 | uint32_t                                    z); | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2785 |  | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2786 | void VKAPI vkCmdDispatchIndirect( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2787 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2788 | VkBuffer                                    buffer, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2789 | VkDeviceSize                                offset); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2790 |  | 
|  | 2791 | void VKAPI vkCmdCopyBuffer( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2792 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2793 | VkBuffer                                    srcBuffer, | 
|  | 2794 | VkBuffer                                    destBuffer, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2795 | uint32_t                                    regionCount, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2796 | const VkBufferCopy*                         pRegions); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2797 |  | 
|  | 2798 | void VKAPI vkCmdCopyImage( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2799 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2800 | VkImage                                     srcImage, | 
|  | 2801 | VkImageLayout                               srcImageLayout, | 
|  | 2802 | VkImage                                     destImage, | 
|  | 2803 | VkImageLayout                               destImageLayout, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2804 | uint32_t                                    regionCount, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2805 | const VkImageCopy*                          pRegions); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2806 |  | 
|  | 2807 | void VKAPI vkCmdBlitImage( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2808 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2809 | VkImage                                     srcImage, | 
|  | 2810 | VkImageLayout                               srcImageLayout, | 
|  | 2811 | VkImage                                     destImage, | 
|  | 2812 | VkImageLayout                               destImageLayout, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2813 | uint32_t                                    regionCount, | 
| Mark Lobodzinski | ee5eef1 | 2015-05-22 14:43:25 -0500 | [diff] [blame] | 2814 | const VkImageBlit*                          pRegions, | 
|  | 2815 | VkTexFilter                                 filter); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2816 |  | 
|  | 2817 | void VKAPI vkCmdCopyBufferToImage( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2818 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2819 | VkBuffer                                    srcBuffer, | 
|  | 2820 | VkImage                                     destImage, | 
|  | 2821 | VkImageLayout                               destImageLayout, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2822 | uint32_t                                    regionCount, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2823 | const VkBufferImageCopy*                    pRegions); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2824 |  | 
|  | 2825 | void VKAPI vkCmdCopyImageToBuffer( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2826 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2827 | VkImage                                     srcImage, | 
|  | 2828 | VkImageLayout                               srcImageLayout, | 
|  | 2829 | VkBuffer                                    destBuffer, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2830 | uint32_t                                    regionCount, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2831 | const VkBufferImageCopy*                    pRegions); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2832 |  | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2833 | void VKAPI vkCmdUpdateBuffer( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2834 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2835 | VkBuffer                                    destBuffer, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2836 | VkDeviceSize                                destOffset, | 
|  | 2837 | VkDeviceSize                                dataSize, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2838 | const uint32_t*                             pData); | 
|  | 2839 |  | 
|  | 2840 | void VKAPI vkCmdFillBuffer( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2841 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2842 | VkBuffer                                    destBuffer, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2843 | VkDeviceSize                                destOffset, | 
|  | 2844 | VkDeviceSize                                fillSize, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2845 | uint32_t                                    data); | 
|  | 2846 |  | 
|  | 2847 | void VKAPI vkCmdClearColorImage( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2848 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2849 | VkImage                                     image, | 
|  | 2850 | VkImageLayout                               imageLayout, | 
| Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 2851 | const VkClearColorValue*                    pColor, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2852 | uint32_t                                    rangeCount, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2853 | const VkImageSubresourceRange*              pRanges); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2854 |  | 
| Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 2855 | void VKAPI vkCmdClearDepthStencilImage( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2856 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2857 | VkImage                                     image, | 
|  | 2858 | VkImageLayout                               imageLayout, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2859 | float                                       depth, | 
|  | 2860 | uint32_t                                    stencil, | 
|  | 2861 | uint32_t                                    rangeCount, | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2862 | const VkImageSubresourceRange*              pRanges); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2863 |  | 
| Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 2864 | void VKAPI vkCmdClearColorAttachment( | 
|  | 2865 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2866 | uint32_t                                    colorAttachment, | 
|  | 2867 | VkImageLayout                               imageLayout, | 
| Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 2868 | const VkClearColorValue*                    pColor, | 
| Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 2869 | uint32_t                                    rectCount, | 
|  | 2870 | const VkRect3D*                             pRects); | 
|  | 2871 |  | 
|  | 2872 | void VKAPI vkCmdClearDepthStencilAttachment( | 
|  | 2873 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2874 | VkImageAspectFlags                          imageAspectMask, | 
|  | 2875 | VkImageLayout                               imageLayout, | 
|  | 2876 | float                                       depth, | 
|  | 2877 | uint32_t                                    stencil, | 
|  | 2878 | uint32_t                                    rectCount, | 
|  | 2879 | const VkRect3D*                             pRects); | 
|  | 2880 |  | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2881 | void VKAPI vkCmdResolveImage( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2882 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2883 | VkImage                                     srcImage, | 
|  | 2884 | VkImageLayout                               srcImageLayout, | 
|  | 2885 | VkImage                                     destImage, | 
|  | 2886 | VkImageLayout                               destImageLayout, | 
| Tony Barbour | 6865d4a | 2015-04-13 15:02:52 -0600 | [diff] [blame] | 2887 | uint32_t                                    regionCount, | 
|  | 2888 | const VkImageResolve*                       pRegions); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2889 |  | 
|  | 2890 | void VKAPI vkCmdSetEvent( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2891 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2892 | VkEvent                                     event, | 
| Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 2893 | VkPipelineStageFlags                        stageMask); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2894 |  | 
|  | 2895 | void VKAPI vkCmdResetEvent( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2896 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2897 | VkEvent                                     event, | 
| Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 2898 | VkPipelineStageFlags                        stageMask); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2899 |  | 
|  | 2900 | void VKAPI vkCmdWaitEvents( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2901 | VkCmdBuffer                                 cmdBuffer, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2902 | uint32_t                                    eventCount, | 
|  | 2903 | const VkEvent*                              pEvents, | 
| Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 2904 | VkPipelineStageFlags                        sourceStageMask, | 
|  | 2905 | VkPipelineStageFlags                        destStageMask, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2906 | uint32_t                                    memBarrierCount, | 
|  | 2907 | const void**                                ppMemBarriers); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2908 |  | 
|  | 2909 | void VKAPI vkCmdPipelineBarrier( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2910 | VkCmdBuffer                                 cmdBuffer, | 
| Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 2911 | VkPipelineStageFlags                        sourceStageMask, | 
|  | 2912 | VkPipelineStageFlags                        destStageMask, | 
|  | 2913 | bool32_t                                    byRegion, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2914 | uint32_t                                    memBarrierCount, | 
|  | 2915 | const void**                                ppMemBarriers); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2916 |  | 
|  | 2917 | void VKAPI vkCmdBeginQuery( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2918 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2919 | VkQueryPool                                 queryPool, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2920 | uint32_t                                    slot, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2921 | VkQueryControlFlags                         flags); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2922 |  | 
|  | 2923 | void VKAPI vkCmdEndQuery( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2924 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2925 | VkQueryPool                                 queryPool, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2926 | uint32_t                                    slot); | 
|  | 2927 |  | 
|  | 2928 | void VKAPI vkCmdResetQueryPool( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2929 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2930 | VkQueryPool                                 queryPool, | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2931 | uint32_t                                    startQuery, | 
|  | 2932 | uint32_t                                    queryCount); | 
|  | 2933 |  | 
|  | 2934 | void VKAPI vkCmdWriteTimestamp( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2935 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2936 | VkTimestampType                             timestampType, | 
|  | 2937 | VkBuffer                                    destBuffer, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2938 | VkDeviceSize                                destOffset); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2939 |  | 
| Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 2940 | void VKAPI vkCmdCopyQueryPoolResults( | 
|  | 2941 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2942 | VkQueryPool                                 queryPool, | 
|  | 2943 | uint32_t                                    startQuery, | 
|  | 2944 | uint32_t                                    queryCount, | 
|  | 2945 | VkBuffer                                    destBuffer, | 
| Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2946 | VkDeviceSize                                destOffset, | 
|  | 2947 | VkDeviceSize                                destStride, | 
| Tony Barbour | 71a8512 | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 2948 | VkQueryResultFlags                          flags); | 
| Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 2949 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2950 | VkResult VKAPI vkCreateFramebuffer( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2951 | VkDevice                                    device, | 
|  | 2952 | const VkFramebufferCreateInfo*              pCreateInfo, | 
|  | 2953 | VkFramebuffer*                              pFramebuffer); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2954 |  | 
| Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2955 | VkResult VKAPI vkCreateRenderPass( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2956 | VkDevice                                    device, | 
|  | 2957 | const VkRenderPassCreateInfo*               pCreateInfo, | 
|  | 2958 | VkRenderPass*                               pRenderPass); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2959 |  | 
|  | 2960 | void VKAPI vkCmdBeginRenderPass( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2961 | VkCmdBuffer                                 cmdBuffer, | 
|  | 2962 | const VkRenderPassBegin*                    pRenderPassBegin); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2963 |  | 
|  | 2964 | void VKAPI vkCmdEndRenderPass( | 
| Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 2965 | VkCmdBuffer                                 cmdBuffer); | 
|  | 2966 |  | 
|  | 2967 | void VKAPI vkCmdExecuteCommands( | 
| Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2968 | VkCmdBuffer                                 cmdBuffer, | 
| Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 2969 | uint32_t                                    cmdBuffersCount, | 
|  | 2970 | const VkCmdBuffer*                          pCmdBuffers); | 
| Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2971 |  | 
|  | 2972 | #endif // VK_PROTOTYPES | 
|  | 2973 |  | 
|  | 2974 | #ifdef __cplusplus | 
|  | 2975 | } // extern "C" | 
|  | 2976 | #endif // __cplusplus | 
|  | 2977 |  | 
|  | 2978 | #endif // __VULKAN_H__ |