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