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