Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1 | // |
| 2 | // File: vulkan.h |
| 3 | // |
| 4 | /* |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 5 | ** Copyright (c) 2014-2015 The Khronos Group Inc. |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 6 | ** |
| 7 | ** Permission is hereby granted, free of charge, to any person obtaining a |
| 8 | ** copy of this software and/or associated documentation files (the |
| 9 | ** "Materials"), to deal in the Materials without restriction, including |
| 10 | ** without limitation the rights to use, copy, modify, merge, publish, |
| 11 | ** distribute, sublicense, and/or sell copies of the Materials, and to |
| 12 | ** permit persons to whom the Materials are furnished to do so, subject to |
| 13 | ** the following conditions: |
| 14 | ** |
| 15 | ** The above copyright notice and this permission notice shall be included |
| 16 | ** in all copies or substantial portions of the Materials. |
| 17 | ** |
| 18 | ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 19 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 20 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 21 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 22 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 23 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 24 | ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
| 25 | */ |
| 26 | |
| 27 | #ifndef __VULKAN_H__ |
| 28 | #define __VULKAN_H__ |
| 29 | |
| 30 | #define VK_MAKE_VERSION(major, minor, patch) \ |
| 31 | ((major << 22) | (minor << 12) | patch) |
| 32 | |
Courtney Goeltzenleuchter | 2040b43 | 2015-04-09 11:52:55 -0600 | [diff] [blame] | 33 | #include "vk_platform.h" |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 34 | |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 35 | // Vulkan API version supported by this file |
Courtney Goeltzenleuchter | b25c9b9 | 2015-06-18 17:01:41 -0600 | [diff] [blame^] | 36 | #define VK_API_VERSION VK_MAKE_VERSION(0, 105, 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, |
Courtney Goeltzenleuchter | b25c9b9 | 2015-06-18 17:01:41 -0600 | [diff] [blame^] | 790 | // VK_STRUCTURE_TYPE_BUFFER_VIEW_ATTACH_INFO = 3, |
| 791 | // VK_STRUCTURE_TYPE_IMAGE_VIEW_ATTACH_INFO = 4, |
| 792 | VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 5, |
| 793 | VK_STRUCTURE_TYPE_COLOR_ATTACHMENT_VIEW_CREATE_INFO = 6, |
| 794 | VK_STRUCTURE_TYPE_DEPTH_STENCIL_VIEW_CREATE_INFO = 7, |
| 795 | VK_STRUCTURE_TYPE_SHADER_CREATE_INFO = 8, |
| 796 | VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 9, |
| 797 | VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 10, |
| 798 | VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 11, |
| 799 | VK_STRUCTURE_TYPE_DYNAMIC_VP_STATE_CREATE_INFO = 12, |
| 800 | VK_STRUCTURE_TYPE_DYNAMIC_RS_STATE_CREATE_INFO = 13, |
| 801 | VK_STRUCTURE_TYPE_DYNAMIC_CB_STATE_CREATE_INFO = 14, |
| 802 | VK_STRUCTURE_TYPE_DYNAMIC_DS_STATE_CREATE_INFO = 15, |
| 803 | VK_STRUCTURE_TYPE_CMD_BUFFER_CREATE_INFO = 16, |
| 804 | VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 17, |
| 805 | VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 18, |
| 806 | VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 19, |
| 807 | VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 20, |
| 808 | VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 21, |
| 809 | VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 22, |
| 810 | VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = 23, |
| 811 | VK_STRUCTURE_TYPE_PIPELINE_IA_STATE_CREATE_INFO = 24, |
| 812 | VK_STRUCTURE_TYPE_PIPELINE_TESS_STATE_CREATE_INFO = 25, |
| 813 | VK_STRUCTURE_TYPE_PIPELINE_VP_STATE_CREATE_INFO = 26, |
| 814 | VK_STRUCTURE_TYPE_PIPELINE_RS_STATE_CREATE_INFO = 27, |
| 815 | VK_STRUCTURE_TYPE_PIPELINE_MS_STATE_CREATE_INFO = 28, |
| 816 | VK_STRUCTURE_TYPE_PIPELINE_CB_STATE_CREATE_INFO = 29, |
| 817 | VK_STRUCTURE_TYPE_PIPELINE_DS_STATE_CREATE_INFO = 30, |
| 818 | VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 31, |
| 819 | VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 32, |
| 820 | VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 33, |
| 821 | VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 34, |
| 822 | VK_STRUCTURE_TYPE_CMD_BUFFER_BEGIN_INFO = 35, |
| 823 | VK_STRUCTURE_TYPE_CMD_BUFFER_GRAPHICS_BEGIN_INFO = 36, |
| 824 | VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 37, |
| 825 | VK_STRUCTURE_TYPE_MEMORY_BARRIER = 38, |
| 826 | VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 39, |
| 827 | VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 40, |
| 828 | VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 41, |
| 829 | VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET = 42, |
| 830 | VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET = 43, |
| 831 | VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 44, |
| 832 | VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO = 45, |
| 833 | VK_STRUCTURE_TYPE_EXTENSION_PROPERTIES = 46, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 834 | |
Courtney Goeltzenleuchter | 1c7c65d | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 835 | VK_ENUM_RANGE(STRUCTURE_TYPE, APPLICATION_INFO, EXTENSION_PROPERTIES) |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 836 | } VkStructureType; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 837 | |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 838 | // Object type enumerant |
| 839 | typedef enum VkObjectType_ |
| 840 | { |
| 841 | VK_OBJECT_TYPE_INSTANCE = 0, |
| 842 | VK_OBJECT_TYPE_PHYSICAL_DEVICE = 1, |
| 843 | VK_OBJECT_TYPE_DEVICE = 2, |
| 844 | VK_OBJECT_TYPE_QUEUE = 3, |
| 845 | VK_OBJECT_TYPE_COMMAND_BUFFER = 4, |
| 846 | VK_OBJECT_TYPE_DEVICE_MEMORY = 5, |
| 847 | VK_OBJECT_TYPE_BUFFER = 6, |
| 848 | VK_OBJECT_TYPE_BUFFER_VIEW = 7, |
| 849 | VK_OBJECT_TYPE_IMAGE = 8, |
| 850 | VK_OBJECT_TYPE_IMAGE_VIEW = 9, |
| 851 | VK_OBJECT_TYPE_COLOR_ATTACHMENT_VIEW = 10, |
| 852 | VK_OBJECT_TYPE_DEPTH_STENCIL_VIEW = 11, |
| 853 | VK_OBJECT_TYPE_SHADER = 12, |
| 854 | VK_OBJECT_TYPE_PIPELINE = 13, |
| 855 | VK_OBJECT_TYPE_PIPELINE_LAYOUT = 14, |
| 856 | VK_OBJECT_TYPE_SAMPLER = 15, |
| 857 | VK_OBJECT_TYPE_DESCRIPTOR_SET = 16, |
| 858 | VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT = 17, |
| 859 | VK_OBJECT_TYPE_DESCRIPTOR_POOL = 18, |
| 860 | VK_OBJECT_TYPE_DYNAMIC_VP_STATE = 19, |
| 861 | VK_OBJECT_TYPE_DYNAMIC_RS_STATE = 20, |
| 862 | VK_OBJECT_TYPE_DYNAMIC_CB_STATE = 21, |
| 863 | VK_OBJECT_TYPE_DYNAMIC_DS_STATE = 22, |
| 864 | VK_OBJECT_TYPE_FENCE = 23, |
| 865 | VK_OBJECT_TYPE_SEMAPHORE = 24, |
| 866 | VK_OBJECT_TYPE_EVENT = 25, |
| 867 | VK_OBJECT_TYPE_QUERY_POOL = 26, |
| 868 | VK_OBJECT_TYPE_FRAMEBUFFER = 27, |
| 869 | VK_OBJECT_TYPE_RENDER_PASS = 28, |
| 870 | |
| 871 | // Valid ranges for core Vulkan: |
| 872 | VK_OBJECT_TYPE_BEGIN_RANGE = VK_OBJECT_TYPE_INSTANCE, |
| 873 | VK_OBJECT_TYPE_END_RANGE = VK_OBJECT_TYPE_RENDER_PASS, |
| 874 | VK_NUM_OBJECT_TYPE = (VK_OBJECT_TYPE_END_RANGE - VK_OBJECT_TYPE_BEGIN_RANGE + 1), |
| 875 | VK_MAX_ENUM(VkObjectType) |
| 876 | } VkObjectType; |
| 877 | |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 878 | // ------------------------------------------------------------------------------------------------ |
| 879 | // Error and return codes |
| 880 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 881 | typedef enum VkResult_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 882 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 883 | // Return codes for successful operation execution (> = 0) |
| 884 | VK_SUCCESS = 0x0000000, |
| 885 | VK_UNSUPPORTED = 0x0000001, |
| 886 | VK_NOT_READY = 0x0000002, |
| 887 | VK_TIMEOUT = 0x0000003, |
| 888 | VK_EVENT_SET = 0x0000004, |
| 889 | VK_EVENT_RESET = 0x0000005, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 890 | |
| 891 | // Error codes (negative values) |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 892 | VK_ERROR_UNKNOWN = -(0x00000001), |
| 893 | VK_ERROR_UNAVAILABLE = -(0x00000002), |
| 894 | VK_ERROR_INITIALIZATION_FAILED = -(0x00000003), |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 895 | VK_ERROR_OUT_OF_HOST_MEMORY = -(0x00000004), |
| 896 | VK_ERROR_OUT_OF_DEVICE_MEMORY = -(0x00000005), |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 897 | VK_ERROR_DEVICE_ALREADY_CREATED = -(0x00000006), |
| 898 | VK_ERROR_DEVICE_LOST = -(0x00000007), |
| 899 | VK_ERROR_INVALID_POINTER = -(0x00000008), |
| 900 | VK_ERROR_INVALID_VALUE = -(0x00000009), |
| 901 | VK_ERROR_INVALID_HANDLE = -(0x0000000A), |
| 902 | VK_ERROR_INVALID_ORDINAL = -(0x0000000B), |
| 903 | VK_ERROR_INVALID_MEMORY_SIZE = -(0x0000000C), |
| 904 | VK_ERROR_INVALID_EXTENSION = -(0x0000000D), |
| 905 | VK_ERROR_INVALID_FLAGS = -(0x0000000E), |
| 906 | VK_ERROR_INVALID_ALIGNMENT = -(0x0000000F), |
| 907 | VK_ERROR_INVALID_FORMAT = -(0x00000010), |
| 908 | VK_ERROR_INVALID_IMAGE = -(0x00000011), |
| 909 | VK_ERROR_INVALID_DESCRIPTOR_SET_DATA = -(0x00000012), |
| 910 | VK_ERROR_INVALID_QUEUE_TYPE = -(0x00000013), |
| 911 | VK_ERROR_INVALID_OBJECT_TYPE = -(0x00000014), |
| 912 | VK_ERROR_UNSUPPORTED_SHADER_IL_VERSION = -(0x00000015), |
| 913 | VK_ERROR_BAD_SHADER_CODE = -(0x00000016), |
| 914 | VK_ERROR_BAD_PIPELINE_DATA = -(0x00000017), |
Courtney Goeltzenleuchter | ac83452 | 2015-05-01 17:56:13 -0600 | [diff] [blame] | 915 | VK_ERROR_NOT_MAPPABLE = -(0x00000018), |
| 916 | VK_ERROR_MEMORY_MAP_FAILED = -(0x00000019), |
| 917 | VK_ERROR_MEMORY_UNMAP_FAILED = -(0x0000001A), |
| 918 | VK_ERROR_INCOMPATIBLE_DEVICE = -(0x0000001B), |
| 919 | VK_ERROR_INCOMPATIBLE_DRIVER = -(0x0000001C), |
| 920 | VK_ERROR_INCOMPLETE_COMMAND_BUFFER = -(0x0000001D), |
| 921 | VK_ERROR_BUILDING_COMMAND_BUFFER = -(0x0000001E), |
| 922 | VK_ERROR_MEMORY_NOT_BOUND = -(0x0000001F), |
| 923 | VK_ERROR_INCOMPATIBLE_QUEUE = -(0x00000020), |
Courtney Goeltzenleuchter | b25c9b9 | 2015-06-18 17:01:41 -0600 | [diff] [blame^] | 924 | VK_ERROR_MISSING_EXTENSION_DEPENDENCY = -(0x00000021), |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 925 | |
| 926 | VK_MAX_ENUM(RESULT) |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 927 | } VkResult; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 928 | |
| 929 | // ------------------------------------------------------------------------------------------------ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 930 | // Flags |
| 931 | |
| 932 | // Device creation flags |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 933 | typedef VkFlags VkDeviceCreateFlags; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 934 | |
| 935 | // Queue capabilities |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 936 | typedef VkFlags VkQueueFlags; |
| 937 | typedef enum VkQueueFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 938 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 939 | VK_QUEUE_GRAPHICS_BIT = VK_BIT(0), // Queue supports graphics operations |
| 940 | VK_QUEUE_COMPUTE_BIT = VK_BIT(1), // Queue supports compute operations |
| 941 | VK_QUEUE_DMA_BIT = VK_BIT(2), // Queue supports DMA operations |
Mark Lobodzinski | fb9f564 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 942 | 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] | 943 | VK_QUEUE_EXTENDED_BIT = VK_BIT(30), // Extended queue |
| 944 | } VkQueueFlagBits; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 945 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 946 | // Memory properties passed into vkAllocMemory(). |
| 947 | typedef VkFlags VkMemoryPropertyFlags; |
| 948 | typedef enum VkMemoryPropertyFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 949 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 950 | VK_MEMORY_PROPERTY_DEVICE_ONLY = 0, // If otherwise stated, then allocate memory on device |
| 951 | 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] | 952 | VK_MEMORY_PROPERTY_HOST_NON_COHERENT_BIT = VK_BIT(1), // Memory may not have i/o coherency so vkFlushMappedMemoryRanges and |
| 953 | // vkInvalidateMappedMemoryRanges must be used flush/invalidate host cache |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 954 | VK_MEMORY_PROPERTY_HOST_UNCACHED_BIT = VK_BIT(2), // Memory should not be cached by the host |
| 955 | VK_MEMORY_PROPERTY_HOST_WRITE_COMBINED_BIT = VK_BIT(3), // Memory should support host write combining |
| 956 | VK_MEMORY_PROPERTY_PREFER_HOST_LOCAL = VK_BIT(4), // If set, prefer host access |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 957 | } VkMemoryPropertyFlagBits; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 958 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 959 | // Memory output flags passed to resource transition commands |
| 960 | typedef VkFlags VkMemoryOutputFlags; |
| 961 | typedef enum VkMemoryOutputFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 962 | { |
Courtney Goeltzenleuchter | a569a50 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 963 | 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] | 964 | VK_MEMORY_OUTPUT_SHADER_WRITE_BIT = VK_BIT(1), // Controls output coherency of generic shader writes |
| 965 | VK_MEMORY_OUTPUT_COLOR_ATTACHMENT_BIT = VK_BIT(2), // Controls output coherency of color attachment writes |
| 966 | VK_MEMORY_OUTPUT_DEPTH_STENCIL_ATTACHMENT_BIT = VK_BIT(3), // Controls output coherency of depth/stencil attachment writes |
| 967 | VK_MEMORY_OUTPUT_TRANSFER_BIT = VK_BIT(4), // Controls output coherency of transfer operations |
| 968 | } VkMemoryOutputFlagBits; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 969 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 970 | // Memory input flags passed to resource transition commands |
| 971 | typedef VkFlags VkMemoryInputFlags; |
| 972 | typedef enum VkMemoryInputFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 973 | { |
Courtney Goeltzenleuchter | a569a50 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 974 | 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] | 975 | VK_MEMORY_INPUT_INDIRECT_COMMAND_BIT = VK_BIT(1), // Controls input coherency of indirect command reads |
| 976 | VK_MEMORY_INPUT_INDEX_FETCH_BIT = VK_BIT(2), // Controls input coherency of index fetches |
| 977 | VK_MEMORY_INPUT_VERTEX_ATTRIBUTE_FETCH_BIT = VK_BIT(3), // Controls input coherency of vertex attribute fetches |
| 978 | VK_MEMORY_INPUT_UNIFORM_READ_BIT = VK_BIT(4), // Controls input coherency of uniform buffer reads |
| 979 | VK_MEMORY_INPUT_SHADER_READ_BIT = VK_BIT(5), // Controls input coherency of generic shader reads |
| 980 | VK_MEMORY_INPUT_COLOR_ATTACHMENT_BIT = VK_BIT(6), // Controls input coherency of color attachment reads |
| 981 | VK_MEMORY_INPUT_DEPTH_STENCIL_ATTACHMENT_BIT = VK_BIT(7), // Controls input coherency of depth/stencil attachment reads |
| 982 | VK_MEMORY_INPUT_TRANSFER_BIT = VK_BIT(8), // Controls input coherency of transfer operations |
| 983 | } VkMemoryInputFlagBits; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 984 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 985 | // Buffer usage flags |
| 986 | typedef VkFlags VkBufferUsageFlags; |
| 987 | typedef enum VkBufferUsageFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 988 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 989 | VK_BUFFER_USAGE_GENERAL = 0, // No special usage |
| 990 | VK_BUFFER_USAGE_TRANSFER_SOURCE_BIT = VK_BIT(0), // Can be used as a source of transfer operations |
| 991 | VK_BUFFER_USAGE_TRANSFER_DESTINATION_BIT = VK_BIT(1), // Can be used as a destination of transfer operations |
| 992 | VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = VK_BIT(2), // Can be used as TBO |
| 993 | VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = VK_BIT(3), // Can be used as IBO |
| 994 | VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = VK_BIT(4), // Can be used as UBO |
| 995 | VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = VK_BIT(5), // Can be used as SSBO |
| 996 | VK_BUFFER_USAGE_INDEX_BUFFER_BIT = VK_BIT(6), // Can be used as source of fixed function index fetch (index buffer) |
| 997 | VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = VK_BIT(7), // Can be used as source of fixed function vertex fetch (VBO) |
| 998 | VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = VK_BIT(8), // Can be the source of indirect parameters (e.g. indirect buffer, parameter buffer) |
| 999 | } VkBufferUsageFlagBits; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1000 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1001 | // Buffer creation flags |
| 1002 | typedef VkFlags VkBufferCreateFlags; |
| 1003 | typedef enum VkBufferCreateFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1004 | { |
Courtney Goeltzenleuchter | b25c9b9 | 2015-06-18 17:01:41 -0600 | [diff] [blame^] | 1005 | VK_BUFFER_CREATE_SPARSE_BIT = VK_BIT(0), // Buffer should support sparse backing |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1006 | } VkBufferCreateFlagBits; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1007 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1008 | // Shader stage flags |
| 1009 | typedef VkFlags VkShaderStageFlags; |
| 1010 | typedef enum VkShaderStageFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1011 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1012 | VK_SHADER_STAGE_VERTEX_BIT = VK_BIT(0), |
| 1013 | VK_SHADER_STAGE_TESS_CONTROL_BIT = VK_BIT(1), |
| 1014 | VK_SHADER_STAGE_TESS_EVALUATION_BIT = VK_BIT(2), |
| 1015 | VK_SHADER_STAGE_GEOMETRY_BIT = VK_BIT(3), |
| 1016 | VK_SHADER_STAGE_FRAGMENT_BIT = VK_BIT(4), |
| 1017 | VK_SHADER_STAGE_COMPUTE_BIT = VK_BIT(5), |
| 1018 | |
| 1019 | VK_SHADER_STAGE_ALL = 0x7FFFFFFF, |
| 1020 | } VkShaderStageFlagBits; |
| 1021 | |
| 1022 | // Image usage flags |
| 1023 | typedef VkFlags VkImageUsageFlags; |
| 1024 | typedef enum VkImageUsageFlagBits_ |
| 1025 | { |
| 1026 | VK_IMAGE_USAGE_GENERAL = 0, // No special usage |
| 1027 | VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT = VK_BIT(0), // Can be used as a source of transfer operations |
| 1028 | VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT = VK_BIT(1), // Can be used as a destination of transfer operations |
| 1029 | VK_IMAGE_USAGE_SAMPLED_BIT = VK_BIT(2), // Can be sampled from (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types) |
| 1030 | VK_IMAGE_USAGE_STORAGE_BIT = VK_BIT(3), // Can be used as storage image (STORAGE_IMAGE descriptor type) |
| 1031 | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = VK_BIT(4), // Can be used as framebuffer color attachment |
| 1032 | VK_IMAGE_USAGE_DEPTH_STENCIL_BIT = VK_BIT(5), // Can be used as framebuffer depth/stencil attachment |
| 1033 | VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = VK_BIT(6), // Image data not needed outside of rendering |
| 1034 | } VkImageUsageFlagBits; |
| 1035 | |
| 1036 | // Image creation flags |
| 1037 | typedef VkFlags VkImageCreateFlags; |
| 1038 | typedef enum VkImageCreateFlagBits_ |
| 1039 | { |
| 1040 | VK_IMAGE_CREATE_INVARIANT_DATA_BIT = VK_BIT(0), |
Courtney Goeltzenleuchter | b25c9b9 | 2015-06-18 17:01:41 -0600 | [diff] [blame^] | 1041 | VK_IMAGE_CREATE_SPARSE_BIT = VK_BIT(1), // Image should support sparse backing |
| 1042 | VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = VK_BIT(2), // Allows image views to have different format than the base image |
| 1043 | VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = VK_BIT(3), // Allows creating image views with cube type from the created image |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1044 | } VkImageCreateFlagBits; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1045 | |
| 1046 | // Depth-stencil view creation flags |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1047 | typedef VkFlags VkDepthStencilViewCreateFlags; |
| 1048 | typedef enum VkDepthStencilViewCreateFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1049 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1050 | VK_DEPTH_STENCIL_VIEW_CREATE_READ_ONLY_DEPTH_BIT = VK_BIT(0), |
| 1051 | VK_DEPTH_STENCIL_VIEW_CREATE_READ_ONLY_STENCIL_BIT = VK_BIT(1), |
| 1052 | } VkDepthStencilViewCreateFlagBits; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1053 | |
| 1054 | // Pipeline creation flags |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1055 | typedef VkFlags VkPipelineCreateFlags; |
| 1056 | typedef enum VkPipelineCreateFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1057 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1058 | VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = VK_BIT(0), |
| 1059 | VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = VK_BIT(1), |
| 1060 | } VkPipelineCreateFlagBits; |
| 1061 | |
| 1062 | // Channel flags |
| 1063 | typedef VkFlags VkChannelFlags; |
| 1064 | typedef enum VkChannelFlagBits_ |
| 1065 | { |
| 1066 | VK_CHANNEL_R_BIT = VK_BIT(0), |
| 1067 | VK_CHANNEL_G_BIT = VK_BIT(1), |
| 1068 | VK_CHANNEL_B_BIT = VK_BIT(2), |
| 1069 | VK_CHANNEL_A_BIT = VK_BIT(3), |
| 1070 | } VkChannelFlagBits; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1071 | |
| 1072 | // Fence creation flags |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1073 | typedef VkFlags VkFenceCreateFlags; |
| 1074 | typedef enum VkFenceCreateFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1075 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1076 | VK_FENCE_CREATE_SIGNALED_BIT = VK_BIT(0), |
| 1077 | } VkFenceCreateFlagBits; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1078 | |
| 1079 | // Semaphore creation flags |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1080 | typedef VkFlags VkSemaphoreCreateFlags; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1081 | |
| 1082 | // Format capability flags |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1083 | typedef VkFlags VkFormatFeatureFlags; |
| 1084 | typedef enum VkFormatFeatureFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1085 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1086 | VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = VK_BIT(0), // Format can be used for sampled images (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types) |
| 1087 | VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = VK_BIT(1), // Format can be used for storage images (STORAGE_IMAGE descriptor type) |
| 1088 | VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = VK_BIT(2), // Format supports atomic operations in case it's used for storage images |
| 1089 | VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = VK_BIT(3), // Format can be used for uniform texel buffers (TBOs) |
| 1090 | VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = VK_BIT(4), // Format can be used for storage texel buffers (IBOs) |
| 1091 | VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = VK_BIT(5), // Format supports atomic operations in case it's used for storage texel buffers |
| 1092 | VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = VK_BIT(6), // Format can be used for vertex buffers (VBOs) |
| 1093 | VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = VK_BIT(7), // Format can be used for color attachment images |
| 1094 | VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = VK_BIT(8), // Format supports blending in case it's used for color attachment images |
| 1095 | VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = VK_BIT(9), // Format can be used for depth/stencil attachment images |
| 1096 | VK_FORMAT_FEATURE_CONVERSION_BIT = VK_BIT(10), // Format can be used as the source or destination of format converting blits |
| 1097 | } VkFormatFeatureFlagBits; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1098 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1099 | // Query control flags |
| 1100 | typedef VkFlags VkQueryControlFlags; |
| 1101 | typedef enum VkQueryControlFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1102 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1103 | VK_QUERY_CONTROL_CONSERVATIVE_BIT = VK_BIT(0), // Allow conservative results to be collected by the query |
| 1104 | } VkQueryControlFlagBits; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1105 | |
Courtney Goeltzenleuchter | 9804906 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 1106 | // Query result flags |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1107 | typedef VkFlags VkQueryResultFlags; |
| 1108 | typedef enum VkQueryResultFlagBits_ |
Courtney Goeltzenleuchter | 9804906 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 1109 | { |
Courtney Goeltzenleuchter | c0d0bb0 | 2015-06-09 08:45:23 -0600 | [diff] [blame] | 1110 | 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] | 1111 | 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] | 1112 | VK_QUERY_RESULT_WAIT_BIT = VK_BIT(1), // Results of the queries are waited on before proceeding with the result copy |
| 1113 | VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = VK_BIT(2), // Besides the results of the query, the availability of the results is also written |
| 1114 | VK_QUERY_RESULT_PARTIAL_BIT = VK_BIT(3), // Copy the partial results of the query even if the final results aren't available |
| 1115 | } VkQueryResultFlagBits; |
Courtney Goeltzenleuchter | 9804906 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 1116 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1117 | // Shader creation flags |
| 1118 | typedef VkFlags VkShaderCreateFlags; |
| 1119 | |
| 1120 | // Event creation flags |
| 1121 | typedef VkFlags VkEventCreateFlags; |
| 1122 | |
| 1123 | // Command buffer creation flags |
| 1124 | typedef VkFlags VkCmdBufferCreateFlags; |
| 1125 | |
| 1126 | // Command buffer optimization flags |
| 1127 | typedef VkFlags VkCmdBufferOptimizeFlags; |
| 1128 | typedef enum VkCmdBufferOptimizeFlagBits_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1129 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1130 | VK_CMD_BUFFER_OPTIMIZE_SMALL_BATCH_BIT = VK_BIT(0), |
| 1131 | VK_CMD_BUFFER_OPTIMIZE_PIPELINE_SWITCH_BIT = VK_BIT(1), |
| 1132 | VK_CMD_BUFFER_OPTIMIZE_ONE_TIME_SUBMIT_BIT = VK_BIT(2), |
| 1133 | VK_CMD_BUFFER_OPTIMIZE_DESCRIPTOR_SET_SWITCH_BIT = VK_BIT(3), |
| 1134 | } VkCmdBufferOptimizeFlagBits; |
| 1135 | |
Courtney Goeltzenleuchter | 2986281 | 2015-04-16 09:13:59 -0600 | [diff] [blame] | 1136 | // Pipeline statistics flags |
| 1137 | typedef VkFlags VkQueryPipelineStatisticFlags; |
| 1138 | typedef enum VkQueryPipelineStatisticFlagBits_ { |
| 1139 | VK_QUERY_PIPELINE_STATISTIC_IA_VERTICES_BIT = VK_BIT(0), // Optional |
| 1140 | VK_QUERY_PIPELINE_STATISTIC_IA_PRIMITIVES_BIT = VK_BIT(1), // Optional |
| 1141 | VK_QUERY_PIPELINE_STATISTIC_VS_INVOCATIONS_BIT = VK_BIT(2), // Optional |
| 1142 | VK_QUERY_PIPELINE_STATISTIC_GS_INVOCATIONS_BIT = VK_BIT(3), // Optional |
| 1143 | VK_QUERY_PIPELINE_STATISTIC_GS_PRIMITIVES_BIT = VK_BIT(4), // Optional |
| 1144 | VK_QUERY_PIPELINE_STATISTIC_C_INVOCATIONS_BIT = VK_BIT(5), // Optional |
| 1145 | VK_QUERY_PIPELINE_STATISTIC_C_PRIMITIVES_BIT = VK_BIT(6), // Optional |
| 1146 | VK_QUERY_PIPELINE_STATISTIC_FS_INVOCATIONS_BIT = VK_BIT(7), // Optional |
| 1147 | VK_QUERY_PIPELINE_STATISTIC_TCS_PATCHES_BIT = VK_BIT(8), // Optional |
| 1148 | VK_QUERY_PIPELINE_STATISTIC_TES_INVOCATIONS_BIT = VK_BIT(9), // Optional |
| 1149 | VK_QUERY_PIPELINE_STATISTIC_CS_INVOCATIONS_BIT = VK_BIT(10), // Optional |
| 1150 | } VkQueryPipelineStatisticFlagBits; |
| 1151 | |
Courtney Goeltzenleuchter | 699e2aa | 2015-04-17 20:48:17 -0600 | [diff] [blame] | 1152 | // Memory mapping flags |
| 1153 | typedef VkFlags VkMemoryMapFlags; |
Courtney Goeltzenleuchter | 2986281 | 2015-04-16 09:13:59 -0600 | [diff] [blame] | 1154 | |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1155 | // ------------------------------------------------------------------------------------------------ |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1156 | // Vulkan structures |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1157 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1158 | typedef struct VkOffset2D_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1159 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1160 | int32_t x; |
| 1161 | int32_t y; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1162 | } VkOffset2D; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1163 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1164 | typedef struct VkOffset3D_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1165 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1166 | int32_t x; |
| 1167 | int32_t y; |
| 1168 | int32_t z; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1169 | } VkOffset3D; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1170 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1171 | typedef struct VkExtent2D_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1172 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1173 | int32_t width; |
| 1174 | int32_t height; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1175 | } VkExtent2D; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1176 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1177 | typedef struct VkExtent3D_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1178 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1179 | int32_t width; |
| 1180 | int32_t height; |
| 1181 | int32_t depth; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1182 | } VkExtent3D; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1183 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1184 | typedef struct VkViewport_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1185 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1186 | float originX; |
| 1187 | float originY; |
| 1188 | float width; |
| 1189 | float height; |
| 1190 | float minDepth; |
| 1191 | float maxDepth; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1192 | } VkViewport; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1193 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1194 | typedef struct VkRect_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1195 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1196 | VkOffset2D offset; |
| 1197 | VkExtent2D extent; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1198 | } VkRect; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1199 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1200 | typedef struct VkChannelMapping_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1201 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1202 | VkChannelSwizzle r; |
| 1203 | VkChannelSwizzle g; |
| 1204 | VkChannelSwizzle b; |
| 1205 | VkChannelSwizzle a; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1206 | } VkChannelMapping; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1207 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1208 | typedef struct VkPhysicalDeviceProperties_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1209 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1210 | uint32_t apiVersion; |
| 1211 | uint32_t driverVersion; |
| 1212 | uint32_t vendorId; |
| 1213 | uint32_t deviceId; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1214 | VkPhysicalDeviceType deviceType; |
| 1215 | char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME]; |
| 1216 | VkDeviceSize maxInlineMemoryUpdateSize; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1217 | uint32_t maxBoundDescriptorSets; |
| 1218 | uint32_t maxThreadGroupSize; |
| 1219 | uint64_t timestampFrequency; |
| 1220 | bool32_t multiColorAttachmentClears; |
| 1221 | uint32_t maxDescriptorSets; // at least 2? |
| 1222 | uint32_t maxViewports; // at least 16? |
| 1223 | uint32_t maxColorAttachments; // at least 8? |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1224 | } VkPhysicalDeviceProperties; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1225 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1226 | typedef struct VkPhysicalDevicePerformance_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1227 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1228 | float maxDeviceClock; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1229 | float aluPerClock; |
| 1230 | float texPerClock; |
| 1231 | float primsPerClock; |
| 1232 | float pixelsPerClock; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1233 | } VkPhysicalDevicePerformance; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1234 | |
Jon Ashburn | eb2728b | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 1235 | typedef struct VkExtensionProperties_ |
| 1236 | { |
Courtney Goeltzenleuchter | 1c7c65d | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 1237 | VkStructureType sType; // Type of structure. Should be VK_STRUCTURE_TYPE_EXTENSION_PROPERTIES |
| 1238 | char name[VK_MAX_EXTENSION_NAME]; // extension name |
Jon Ashburn | eb2728b | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 1239 | uint32_t version; // version of the extension specification |
Courtney Goeltzenleuchter | 1c7c65d | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 1240 | char description[VK_MAX_EXTENSION_NAME]; // Name of library implementing this extension |
Jon Ashburn | eb2728b | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 1241 | } VkExtensionProperties; |
| 1242 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1243 | typedef struct VkApplicationInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1244 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1245 | VkStructureType sType; // Type of structure. Should be VK_STRUCTURE_TYPE_APPLICATION_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1246 | const void* pNext; // Next structure in chain |
| 1247 | const char* pAppName; |
| 1248 | uint32_t appVersion; |
| 1249 | const char* pEngineName; |
| 1250 | uint32_t engineVersion; |
| 1251 | uint32_t apiVersion; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1252 | } VkApplicationInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1253 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1254 | typedef void* (VKAPI *PFN_vkAllocFunction)( |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1255 | void* pUserData, |
| 1256 | size_t size, |
| 1257 | size_t alignment, |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1258 | VkSystemAllocType allocType); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1259 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1260 | typedef void (VKAPI *PFN_vkFreeFunction)( |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1261 | void* pUserData, |
| 1262 | void* pMem); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1263 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1264 | typedef struct VkAllocCallbacks_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1265 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1266 | void* pUserData; |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1267 | PFN_vkAllocFunction pfnAlloc; |
| 1268 | PFN_vkFreeFunction pfnFree; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1269 | } VkAllocCallbacks; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1270 | |
Courtney Goeltzenleuchter | 070f6da | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1271 | typedef struct VkDeviceQueueCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1272 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1273 | uint32_t queueNodeIndex; |
| 1274 | uint32_t queueCount; |
Courtney Goeltzenleuchter | ddcb619 | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1275 | } VkDeviceQueueCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1276 | |
Courtney Goeltzenleuchter | 070f6da | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1277 | typedef struct VkDeviceCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1278 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1279 | VkStructureType sType; // Should be VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1280 | const void* pNext; // Pointer to next structure |
| 1281 | uint32_t queueRecordCount; |
Courtney Goeltzenleuchter | ddcb619 | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1282 | const VkDeviceQueueCreateInfo* pRequestedQueues; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1283 | uint32_t extensionCount; |
Courtney Goeltzenleuchter | 1c7c65d | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 1284 | const VkExtensionProperties* pEnabledExtensions; // Indicate extensions to enable by index value |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1285 | VkDeviceCreateFlags flags; // Device creation flags |
Courtney Goeltzenleuchter | ddcb619 | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1286 | } VkDeviceCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1287 | |
Courtney Goeltzenleuchter | 070f6da | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1288 | typedef struct VkInstanceCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1289 | { |
Courtney Goeltzenleuchter | 553acb9 | 2015-04-16 21:42:44 -0600 | [diff] [blame] | 1290 | VkStructureType sType; // Should be VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1291 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 553acb9 | 2015-04-16 21:42:44 -0600 | [diff] [blame] | 1292 | const VkApplicationInfo* pAppInfo; |
| 1293 | const VkAllocCallbacks* pAllocCb; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1294 | uint32_t extensionCount; |
Courtney Goeltzenleuchter | 1c7c65d | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 1295 | const VkExtensionProperties* pEnabledExtensions; // Indicate extensions to enable by index value |
Courtney Goeltzenleuchter | ddcb619 | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1296 | } VkInstanceCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1297 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1298 | typedef struct VkPhysicalDeviceQueueProperties_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1299 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1300 | VkQueueFlags queueFlags; // Queue flags |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1301 | uint32_t queueCount; |
| 1302 | uint32_t maxAtomicCounters; |
| 1303 | bool32_t supportsTimestamps; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1304 | } VkPhysicalDeviceQueueProperties; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1305 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1306 | typedef struct VkPhysicalDeviceMemoryProperties_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1307 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1308 | bool32_t supportsMigration; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1309 | } VkPhysicalDeviceMemoryProperties; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1310 | |
Courtney Goeltzenleuchter | 070f6da | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1311 | typedef struct VkMemoryAllocInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1312 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1313 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_MEMORY_ALLOC_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1314 | const void* pNext; // Pointer to next structure |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1315 | VkDeviceSize allocationSize; // Size of memory allocation |
| 1316 | VkMemoryPropertyFlags memProps; // Memory property flags |
Courtney Goeltzenleuchter | ddcb619 | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1317 | } VkMemoryAllocInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1318 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1319 | typedef struct VkMemoryRequirements_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1320 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1321 | VkDeviceSize size; // Specified in bytes |
| 1322 | VkDeviceSize alignment; // Specified in bytes |
Mark Lobodzinski | fb9f564 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 1323 | 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] | 1324 | VkMemoryPropertyFlags memPropsAllowed; // Allowed memory property flags |
| 1325 | VkMemoryPropertyFlags memPropsRequired; // Required memory property flags |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1326 | } VkMemoryRequirements; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1327 | |
Courtney Goeltzenleuchter | a569a50 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 1328 | typedef struct VkMappedMemoryRange_ |
| 1329 | { |
| 1330 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE |
| 1331 | const void* pNext; // Pointer to next structure |
| 1332 | VkDeviceMemory mem; // Mapped memory object |
| 1333 | VkDeviceSize offset; // Offset within the mapped memory the range starts from |
| 1334 | VkDeviceSize size; // Size of the range within the mapped memory |
| 1335 | } VkMappedMemoryRange; |
| 1336 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1337 | typedef struct VkFormatProperties_ |
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 | VkFormatFeatureFlags linearTilingFeatures; // Format features in case of linear tiling |
| 1340 | VkFormatFeatureFlags optimalTilingFeatures; // Format features in case of optimal tiling |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1341 | } VkFormatProperties; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1342 | |
Chia-I Wu | 8cd8ecd | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1343 | typedef struct VkDescriptorInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1344 | { |
Chia-I Wu | 8cd8ecd | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1345 | VkBufferView bufferView; // Buffer view to write to the descriptor (in case it's a buffer descriptor, otherwise should be VK_NULL_HANDLE) |
| 1346 | 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) |
| 1347 | 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) |
| 1348 | VkImageLayout imageLayout; // Layout the image is expected to be in when accessed using this descriptor (only used if <imageView> is not VK_NULL_HANDLE) |
| 1349 | } VkDescriptorInfo; |
| 1350 | |
| 1351 | typedef struct VkWriteDescriptorSet_ |
| 1352 | { |
| 1353 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1354 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1355 | |
Chia-I Wu | 8cd8ecd | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1356 | VkDescriptorSet destSet; // Destination descriptor set |
| 1357 | uint32_t destBinding; // Binding within the destination descriptor set to write |
| 1358 | uint32_t destArrayElement; // Array element within the destination binding to write |
| 1359 | |
| 1360 | uint32_t count; // Number of descriptors to write (determines the size of the array pointed by <pDescriptors>) |
| 1361 | |
| 1362 | VkDescriptorType descriptorType; // Descriptor type to write (determines which fields of the array pointed by <pDescriptors> are going to be used) |
| 1363 | const VkDescriptorInfo* pDescriptors; // Array of info structures describing the descriptors to write |
| 1364 | } VkWriteDescriptorSet; |
| 1365 | |
| 1366 | typedef struct VkCopyDescriptorSet_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1367 | { |
Chia-I Wu | 8cd8ecd | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1368 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1369 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1370 | |
Chia-I Wu | 8cd8ecd | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1371 | VkDescriptorSet srcSet; // Source descriptor set |
| 1372 | uint32_t srcBinding; // Binding within the source descriptor set to copy from |
| 1373 | uint32_t srcArrayElement; // Array element within the source binding to copy from |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1374 | |
Chia-I Wu | 8cd8ecd | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1375 | VkDescriptorSet destSet; // Destination descriptor set |
| 1376 | uint32_t destBinding; // Binding within the destination descriptor set to copy to |
| 1377 | uint32_t destArrayElement; // Array element within the destination binding to copy to |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1378 | |
Chia-I Wu | 8cd8ecd | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 1379 | uint32_t count; // Number of descriptors to copy |
| 1380 | } VkCopyDescriptorSet; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1381 | |
Courtney Goeltzenleuchter | 070f6da | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1382 | typedef struct VkBufferCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1383 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1384 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1385 | const void* pNext; // Pointer to next structure. |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1386 | VkDeviceSize size; // Specified in bytes |
| 1387 | VkBufferUsageFlags usage; // Buffer usage flags |
| 1388 | VkBufferCreateFlags flags; // Buffer creation flags |
Courtney Goeltzenleuchter | ddcb619 | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1389 | } VkBufferCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1390 | |
Courtney Goeltzenleuchter | 070f6da | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1391 | typedef struct VkBufferViewCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1392 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1393 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1394 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1395 | VkBuffer buffer; |
| 1396 | VkBufferViewType viewType; |
| 1397 | VkFormat format; // Optionally specifies format of elements |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1398 | VkDeviceSize offset; // Specified in bytes |
| 1399 | VkDeviceSize range; // View size specified in bytes |
Courtney Goeltzenleuchter | ddcb619 | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1400 | } VkBufferViewCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1401 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1402 | typedef struct VkImageSubresource_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1403 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1404 | VkImageAspect aspect; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1405 | uint32_t mipLevel; |
| 1406 | uint32_t arraySlice; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1407 | } VkImageSubresource; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1408 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1409 | typedef struct VkImageSubresourceRange_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1410 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1411 | VkImageAspect aspect; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1412 | uint32_t baseMipLevel; |
| 1413 | uint32_t mipLevels; |
| 1414 | uint32_t baseArraySlice; |
| 1415 | uint32_t arraySize; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1416 | } VkImageSubresourceRange; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1417 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1418 | typedef struct VkMemoryBarrier_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1419 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1420 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_MEMORY_BARRIER |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1421 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1422 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1423 | VkMemoryOutputFlags outputMask; // Outputs the barrier should sync |
| 1424 | VkMemoryInputFlags inputMask; // Inputs the barrier should sync to |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1425 | } VkMemoryBarrier; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1426 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1427 | typedef struct VkBufferMemoryBarrier_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1428 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1429 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1430 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1431 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1432 | VkMemoryOutputFlags outputMask; // Outputs the barrier should sync |
| 1433 | VkMemoryInputFlags inputMask; // Inputs the barrier should sync to |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1434 | |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1435 | VkBuffer buffer; // Buffer to sync |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1436 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1437 | VkDeviceSize offset; // Offset within the buffer to sync |
| 1438 | VkDeviceSize size; // Amount of bytes to sync |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1439 | } VkBufferMemoryBarrier; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1440 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1441 | typedef struct VkImageMemoryBarrier_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1442 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1443 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1444 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1445 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1446 | VkMemoryOutputFlags outputMask; // Outputs the barrier should sync |
| 1447 | VkMemoryInputFlags inputMask; // Inputs the barrier should sync to |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1448 | |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1449 | VkImageLayout oldLayout; // Current layout of the image |
| 1450 | VkImageLayout newLayout; // New layout to transition the image to |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1451 | |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1452 | VkImage image; // Image to sync |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1453 | |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1454 | VkImageSubresourceRange subresourceRange; // Subresource range to sync |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1455 | } VkImageMemoryBarrier; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1456 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1457 | typedef struct VkImageCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1458 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1459 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1460 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1461 | VkImageType imageType; |
| 1462 | VkFormat format; |
| 1463 | VkExtent3D extent; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1464 | uint32_t mipLevels; |
| 1465 | uint32_t arraySize; |
| 1466 | uint32_t samples; |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1467 | VkImageTiling tiling; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1468 | VkImageUsageFlags usage; // Image usage flags |
| 1469 | VkImageCreateFlags flags; // Image creation flags |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1470 | } VkImageCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1471 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1472 | typedef struct VkSubresourceLayout_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1473 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1474 | VkDeviceSize offset; // Specified in bytes |
| 1475 | VkDeviceSize size; // Specified in bytes |
| 1476 | VkDeviceSize rowPitch; // Specified in bytes |
| 1477 | VkDeviceSize depthPitch; // Specified in bytes |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1478 | } VkSubresourceLayout; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1479 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1480 | typedef struct VkImageViewCreateInfo_ |
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 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1483 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1484 | VkImage image; |
| 1485 | VkImageViewType viewType; |
| 1486 | VkFormat format; |
| 1487 | VkChannelMapping channels; |
| 1488 | VkImageSubresourceRange subresourceRange; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1489 | float minLod; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1490 | } VkImageViewCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1491 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1492 | typedef struct VkColorAttachmentViewCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1493 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1494 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_COLOR_ATTACHMENT_VIEW_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1495 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1496 | VkImage image; |
| 1497 | VkFormat format; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1498 | uint32_t mipLevel; |
| 1499 | uint32_t baseArraySlice; |
| 1500 | uint32_t arraySize; |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1501 | VkImage msaaResolveImage; |
| 1502 | VkImageSubresourceRange msaaResolveSubResource; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1503 | } VkColorAttachmentViewCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1504 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1505 | typedef struct VkDepthStencilViewCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1506 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1507 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DEPTH_STENCIL_VIEW_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1508 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1509 | VkImage image; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1510 | uint32_t mipLevel; |
| 1511 | uint32_t baseArraySlice; |
| 1512 | uint32_t arraySize; |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1513 | VkImage msaaResolveImage; |
| 1514 | VkImageSubresourceRange msaaResolveSubResource; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1515 | VkDepthStencilViewCreateFlags flags; // Depth stencil attachment view flags |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1516 | } VkDepthStencilViewCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1517 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1518 | typedef struct VkColorAttachmentBindInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1519 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1520 | VkColorAttachmentView view; |
| 1521 | VkImageLayout layout; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1522 | } VkColorAttachmentBindInfo; |
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 VkDepthStencilBindInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1525 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1526 | VkDepthStencilView view; |
| 1527 | VkImageLayout layout; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1528 | } VkDepthStencilBindInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1529 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1530 | typedef struct VkBufferCopy_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1531 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1532 | VkDeviceSize srcOffset; // Specified in bytes |
| 1533 | VkDeviceSize destOffset; // Specified in bytes |
| 1534 | VkDeviceSize copySize; // Specified in bytes |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1535 | } VkBufferCopy; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1536 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1537 | typedef struct VkImageMemoryBindInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1538 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1539 | VkImageSubresource subresource; |
| 1540 | VkOffset3D offset; |
| 1541 | VkExtent3D extent; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1542 | } VkImageMemoryBindInfo; |
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 VkImageCopy_ |
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 | VkImageSubresource srcSubresource; |
Courtney Goeltzenleuchter | ad87081 | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1547 | VkOffset3D srcOffset; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1548 | VkImageSubresource destSubresource; |
Courtney Goeltzenleuchter | ad87081 | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1549 | VkOffset3D destOffset; // Specified in pixels for both compressed and uncompressed images |
| 1550 | VkExtent3D extent; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1551 | } VkImageCopy; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1552 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1553 | typedef struct VkImageBlit_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1554 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1555 | VkImageSubresource srcSubresource; |
Courtney Goeltzenleuchter | ad87081 | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1556 | VkOffset3D srcOffset; // Specified in pixels for both compressed and uncompressed images |
| 1557 | VkExtent3D srcExtent; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1558 | VkImageSubresource destSubresource; |
Courtney Goeltzenleuchter | ad87081 | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1559 | VkOffset3D destOffset; // Specified in pixels for both compressed and uncompressed images |
| 1560 | VkExtent3D destExtent; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1561 | } VkImageBlit; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1562 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1563 | typedef struct VkBufferImageCopy_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1564 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1565 | VkDeviceSize bufferOffset; // Specified in bytes |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1566 | VkImageSubresource imageSubresource; |
Courtney Goeltzenleuchter | ad87081 | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1567 | VkOffset3D imageOffset; // Specified in pixels for both compressed and uncompressed images |
| 1568 | VkExtent3D imageExtent; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1569 | } VkBufferImageCopy; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1570 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1571 | typedef struct VkImageResolve_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1572 | { |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1573 | VkImageSubresource srcSubresource; |
Tony Barbour | e9f9994 | 2015-04-13 13:11:12 -0600 | [diff] [blame] | 1574 | VkOffset3D srcOffset; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1575 | VkImageSubresource destSubresource; |
Tony Barbour | e9f9994 | 2015-04-13 13:11:12 -0600 | [diff] [blame] | 1576 | VkOffset3D destOffset; |
| 1577 | VkExtent3D extent; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1578 | } VkImageResolve; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1579 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1580 | typedef struct VkShaderCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1581 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1582 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_SHADER_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1583 | const void* pNext; // Pointer to next structure |
| 1584 | size_t codeSize; // Specified in bytes |
| 1585 | const void* pCode; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1586 | VkShaderCreateFlags flags; // Reserved |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1587 | } VkShaderCreateInfo; |
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 VkDescriptorSetLayoutBinding_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1590 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1591 | VkDescriptorType descriptorType; // Type of the descriptors in this binding |
Chia-I Wu | d3114a2 | 2015-05-25 16:22:52 +0800 | [diff] [blame] | 1592 | uint32_t arraySize; // Number of descriptors in this binding |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1593 | VkShaderStageFlags stageFlags; // Shader stages this binding is visible to |
| 1594 | 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] | 1595 | } VkDescriptorSetLayoutBinding; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1596 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1597 | typedef struct VkDescriptorSetLayoutCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1598 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1599 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO |
| 1600 | const void* pNext; // Pointer to next structure |
| 1601 | uint32_t count; // Number of bindings in the descriptor set layout |
| 1602 | const VkDescriptorSetLayoutBinding* pBinding; // Array of descriptor set layout bindings |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1603 | } VkDescriptorSetLayoutCreateInfo; |
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 VkDescriptorTypeCount_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1606 | { |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1607 | VkDescriptorType type; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1608 | uint32_t count; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1609 | } VkDescriptorTypeCount; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1610 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1611 | typedef struct VkDescriptorPoolCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1612 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1613 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1614 | const void* pNext; // Pointer to next structure |
| 1615 | uint32_t count; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1616 | const VkDescriptorTypeCount* pTypeCount; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1617 | } VkDescriptorPoolCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1618 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1619 | typedef struct VkLinkConstBuffer_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1620 | { |
| 1621 | uint32_t bufferId; |
| 1622 | size_t bufferSize; |
| 1623 | const void* pBufferData; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1624 | } VkLinkConstBuffer; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1625 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1626 | typedef struct VkSpecializationMapEntry_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1627 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1628 | uint32_t constantId; // The SpecConstant ID specified in the BIL |
| 1629 | uint32_t offset; // Offset of the value in the data block |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1630 | } VkSpecializationMapEntry; |
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 VkSpecializationInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1633 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1634 | uint32_t mapEntryCount; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1635 | const VkSpecializationMapEntry* pMap; // mapEntryCount entries |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1636 | const void* pData; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1637 | } VkSpecializationInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1638 | |
Mark Lobodzinski | 0e0fb5c | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1639 | typedef struct VkPipelineShaderStageCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1640 | { |
Mark Lobodzinski | 0e0fb5c | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1641 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO |
| 1642 | const void* pNext; // Pointer to next structure |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1643 | VkShaderStage stage; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1644 | VkShader shader; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1645 | uint32_t linkConstBufferCount; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1646 | const VkLinkConstBuffer* pLinkConstBufferInfo; |
| 1647 | const VkSpecializationInfo* pSpecializationInfo; |
Mark Lobodzinski | 0e0fb5c | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1648 | } VkPipelineShaderStageCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1649 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1650 | typedef struct VkComputePipelineCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1651 | { |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1652 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO |
| 1653 | const void* pNext; // Pointer to next structure |
Mark Lobodzinski | 0e0fb5c | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1654 | VkPipelineShaderStageCreateInfo cs; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1655 | VkPipelineCreateFlags flags; // Pipeline creation flags |
Mark Lobodzinski | 556f721 | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 1656 | VkPipelineLayout layout; // Interface layout of the pipeline |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1657 | } VkComputePipelineCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1658 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1659 | typedef struct VkVertexInputBindingDescription_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1660 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1661 | uint32_t binding; // Vertex buffer binding id |
Courtney Goeltzenleuchter | ad87081 | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1662 | uint32_t strideInBytes; // Distance between vertices in bytes (0 = no advancement) |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1663 | |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1664 | VkVertexInputStepRate stepRate; // Rate at which binding is incremented |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1665 | } VkVertexInputBindingDescription; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1666 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1667 | typedef struct VkVertexInputAttributeDescription_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1668 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1669 | uint32_t location; // location of the shader vertex attrib |
| 1670 | uint32_t binding; // Vertex buffer binding id |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1671 | |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1672 | VkFormat format; // format of source data |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1673 | |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1674 | 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] | 1675 | } VkVertexInputAttributeDescription; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1676 | |
Mark Lobodzinski | 0e0fb5c | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1677 | typedef struct VkPipelineVertexInputStateCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1678 | { |
Mark Lobodzinski | 0e0fb5c | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1679 | VkStructureType sType; // Should be VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1680 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1681 | |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1682 | uint32_t bindingCount; // number of bindings |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1683 | const VkVertexInputBindingDescription* pVertexBindingDescriptions; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1684 | |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1685 | uint32_t attributeCount; // number of attributes |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1686 | const VkVertexInputAttributeDescription* pVertexAttributeDescriptions; |
Mark Lobodzinski | 0e0fb5c | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1687 | } VkPipelineVertexInputStateCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1688 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1689 | typedef struct VkPipelineIaStateCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1690 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1691 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_IA_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1692 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1693 | VkPrimitiveTopology topology; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1694 | bool32_t disableVertexReuse; // optional |
| 1695 | bool32_t primitiveRestartEnable; |
| 1696 | uint32_t primitiveRestartIndex; // optional (GL45) |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1697 | } VkPipelineIaStateCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1698 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1699 | typedef struct VkPipelineTessStateCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1700 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1701 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_TESS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1702 | const void* pNext; // Pointer to next structure |
| 1703 | uint32_t patchControlPoints; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1704 | } VkPipelineTessStateCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1705 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1706 | typedef struct VkPipelineVpStateCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1707 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1708 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_VP_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1709 | const void* pNext; // Pointer to next structure |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1710 | uint32_t viewportCount; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1711 | VkCoordinateOrigin clipOrigin; // optional (GL45) |
| 1712 | VkDepthMode depthMode; // optional (GL45) |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1713 | } VkPipelineVpStateCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1714 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1715 | typedef struct VkPipelineRsStateCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1716 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1717 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_RS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1718 | const void* pNext; // Pointer to next structure |
| 1719 | bool32_t depthClipEnable; |
| 1720 | bool32_t rasterizerDiscardEnable; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1721 | VkCoordinateOrigin pointOrigin; // optional (GL45) |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1722 | VkProvokingVertex provokingVertex; // optional (GL45) |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1723 | VkFillMode fillMode; // optional (GL45) |
| 1724 | VkCullMode cullMode; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1725 | VkFrontFace frontFace; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1726 | } VkPipelineRsStateCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1727 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1728 | typedef struct VkPipelineMsStateCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1729 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1730 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_MS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1731 | const void* pNext; // Pointer to next structure |
| 1732 | uint32_t samples; |
| 1733 | bool32_t multisampleEnable; // optional (GL45) |
| 1734 | bool32_t sampleShadingEnable; // optional (GL45) |
| 1735 | float minSampleShading; // optional (GL45) |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1736 | VkSampleMask sampleMask; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1737 | } VkPipelineMsStateCreateInfo; |
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 VkPipelineCbAttachmentState_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1740 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1741 | bool32_t blendEnable; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1742 | VkFormat format; |
| 1743 | VkBlend srcBlendColor; |
| 1744 | VkBlend destBlendColor; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1745 | VkBlendOp blendOpColor; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1746 | VkBlend srcBlendAlpha; |
| 1747 | VkBlend destBlendAlpha; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1748 | VkBlendOp blendOpAlpha; |
| 1749 | VkChannelFlags channelWriteMask; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1750 | } VkPipelineCbAttachmentState; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1751 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1752 | typedef struct VkPipelineCbStateCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1753 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1754 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_CB_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1755 | const void* pNext; // Pointer to next structure |
| 1756 | bool32_t alphaToCoverageEnable; |
| 1757 | bool32_t logicOpEnable; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1758 | VkLogicOp logicOp; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1759 | uint32_t attachmentCount; // # of pAttachments |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1760 | const VkPipelineCbAttachmentState* pAttachments; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1761 | } VkPipelineCbStateCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1762 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1763 | typedef struct VkStencilOpState_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1764 | { |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1765 | VkStencilOp stencilFailOp; |
| 1766 | VkStencilOp stencilPassOp; |
| 1767 | VkStencilOp stencilDepthFailOp; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1768 | VkCompareOp stencilCompareOp; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1769 | } VkStencilOpState; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1770 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1771 | typedef struct VkPipelineDsStateCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1772 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1773 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_DS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1774 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1775 | VkFormat format; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1776 | bool32_t depthTestEnable; |
| 1777 | bool32_t depthWriteEnable; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1778 | VkCompareOp depthCompareOp; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1779 | bool32_t depthBoundsEnable; // optional (depth_bounds_test) |
| 1780 | bool32_t stencilTestEnable; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1781 | VkStencilOpState front; |
| 1782 | VkStencilOpState back; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1783 | } VkPipelineDsStateCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1784 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1785 | typedef struct VkGraphicsPipelineCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1786 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1787 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1788 | const void* pNext; // Pointer to next structure |
Mark Lobodzinski | 0e0fb5c | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1789 | uint32_t stageCount; |
| 1790 | const VkPipelineShaderStageCreateInfo* pStages; // One entry for each active shader stage |
| 1791 | const VkPipelineVertexInputStateCreateInfo* pVertexInputState; |
| 1792 | const VkPipelineIaStateCreateInfo* pIaState; |
| 1793 | const VkPipelineTessStateCreateInfo* pTessState; |
| 1794 | const VkPipelineVpStateCreateInfo* pVpState; |
| 1795 | const VkPipelineRsStateCreateInfo* pRsState; |
| 1796 | const VkPipelineMsStateCreateInfo* pMsState; |
| 1797 | const VkPipelineDsStateCreateInfo* pDsState; |
| 1798 | const VkPipelineCbStateCreateInfo* pCbState; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1799 | VkPipelineCreateFlags flags; // Pipeline creation flags |
Mark Lobodzinski | 556f721 | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 1800 | VkPipelineLayout layout; // Interface layout of the pipeline |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1801 | } VkGraphicsPipelineCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1802 | |
Mark Lobodzinski | 556f721 | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 1803 | typedef struct VkPipelineLayoutCreateInfo_ |
| 1804 | { |
| 1805 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO |
| 1806 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 699e2aa | 2015-04-17 20:48:17 -0600 | [diff] [blame] | 1807 | |
Mark Lobodzinski | 556f721 | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 1808 | uint32_t descriptorSetCount; // Number of descriptor sets interfaced by the pipeline |
| 1809 | const VkDescriptorSetLayout* pSetLayouts; // Array of <setCount> number of descriptor set layout objects defining the layout of the |
| 1810 | } VkPipelineLayoutCreateInfo; |
| 1811 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1812 | typedef struct VkSamplerCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1813 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1814 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1815 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1816 | VkTexFilter magFilter; // Filter mode for magnification |
| 1817 | VkTexFilter minFilter; // Filter mode for minifiation |
| 1818 | VkTexMipmapMode mipMode; // Mipmap selection mode |
| 1819 | VkTexAddress addressU; |
| 1820 | VkTexAddress addressV; |
| 1821 | VkTexAddress addressW; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1822 | float mipLodBias; |
| 1823 | uint32_t maxAnisotropy; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1824 | VkCompareOp compareOp; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1825 | float minLod; |
| 1826 | float maxLod; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1827 | VkBorderColor borderColor; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1828 | } VkSamplerCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1829 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1830 | typedef struct VkDynamicVpStateCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1831 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1832 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DYNAMIC_VP_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1833 | const void* pNext; // Pointer to next structure |
| 1834 | uint32_t viewportAndScissorCount; // number of entries in pViewports and pScissors |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1835 | const VkViewport* pViewports; |
| 1836 | const VkRect* pScissors; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1837 | } VkDynamicVpStateCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1838 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1839 | typedef struct VkDynamicRsStateCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1840 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1841 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DYNAMIC_RS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1842 | const void* pNext; // Pointer to next structure |
| 1843 | float depthBias; |
| 1844 | float depthBiasClamp; |
| 1845 | float slopeScaledDepthBias; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1846 | float lineWidth; // optional (GL45) - Width of lines |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1847 | } VkDynamicRsStateCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1848 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1849 | typedef struct VkDynamicCbStateCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1850 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1851 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DYNAMIC_CB_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1852 | const void* pNext; // Pointer to next structure |
| 1853 | float blendConst[4]; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1854 | } VkDynamicCbStateCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1855 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1856 | typedef struct VkDynamicDsStateCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1857 | { |
Mark Lobodzinski | 4405fbf | 2015-06-12 11:14:17 -0600 | [diff] [blame] | 1858 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DYNAMIC_DS_STATE_CREATE_INFO |
| 1859 | const void* pNext; // Pointer to next structure |
| 1860 | float minDepthBounds; // optional (depth_bounds_test) |
| 1861 | float maxDepthBounds; // optional (depth_bounds_test) |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1862 | uint32_t stencilReadMask; |
| 1863 | uint32_t stencilWriteMask; |
| 1864 | uint32_t stencilFrontRef; |
| 1865 | uint32_t stencilBackRef; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1866 | } VkDynamicDsStateCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1867 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1868 | typedef struct VkCmdBufferCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1869 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1870 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_CMD_BUFFER_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1871 | const void* pNext; // Pointer to next structure |
| 1872 | uint32_t queueNodeIndex; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1873 | VkCmdBufferCreateFlags flags; // Command buffer creation flags |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1874 | } VkCmdBufferCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1875 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1876 | typedef struct VkCmdBufferBeginInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1877 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1878 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_CMD_BUFFER_BEGIN_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1879 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1880 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1881 | VkCmdBufferOptimizeFlags flags; // Command buffer optimization flags |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1882 | } VkCmdBufferBeginInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1883 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1884 | typedef struct VkRenderPassBegin_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1885 | { |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1886 | VkRenderPass renderPass; |
| 1887 | VkFramebuffer framebuffer; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1888 | } VkRenderPassBegin; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1889 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1890 | typedef struct VkCmdBufferGraphicsBeginInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1891 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1892 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_CMD_BUFFER_GRAPHICS_BEGIN_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1893 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1894 | |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1895 | 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] | 1896 | } VkCmdBufferGraphicsBeginInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1897 | |
| 1898 | // 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] | 1899 | typedef union VkClearColorValue_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1900 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1901 | float floatColor[4]; |
| 1902 | uint32_t rawColor[4]; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1903 | } VkClearColorValue; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1904 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1905 | typedef struct VkClearColor_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1906 | { |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1907 | VkClearColorValue color; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1908 | bool32_t useRawValue; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1909 | } VkClearColor; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1910 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1911 | typedef struct VkRenderPassCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1912 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1913 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1914 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1915 | |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1916 | VkRect renderArea; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1917 | uint32_t colorAttachmentCount; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1918 | VkExtent2D extent; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1919 | uint32_t sampleCount; |
| 1920 | uint32_t layers; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1921 | const VkFormat* pColorFormats; |
| 1922 | const VkImageLayout* pColorLayouts; |
| 1923 | const VkAttachmentLoadOp* pColorLoadOps; |
| 1924 | const VkAttachmentStoreOp* pColorStoreOps; |
| 1925 | const VkClearColor* pColorLoadClearValues; |
| 1926 | VkFormat depthStencilFormat; |
| 1927 | VkImageLayout depthStencilLayout; |
| 1928 | VkAttachmentLoadOp depthLoadOp; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1929 | float depthLoadClearValue; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1930 | VkAttachmentStoreOp depthStoreOp; |
| 1931 | VkAttachmentLoadOp stencilLoadOp; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1932 | uint32_t stencilLoadClearValue; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1933 | VkAttachmentStoreOp stencilStoreOp; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1934 | } VkRenderPassCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1935 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1936 | typedef struct VkEventCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1937 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1938 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_EVENT_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1939 | const void* pNext; // Pointer to next structure |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1940 | VkEventCreateFlags flags; // Event creation flags |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1941 | } VkEventCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1942 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1943 | typedef struct VkFenceCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1944 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1945 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_FENCE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1946 | const void* pNext; // Pointer to next structure |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1947 | VkFenceCreateFlags flags; // Fence creation flags |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1948 | } VkFenceCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1949 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1950 | typedef struct VkSemaphoreCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1951 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1952 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1953 | const void* pNext; // Pointer to next structure |
| 1954 | uint32_t initialCount; |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1955 | VkSemaphoreCreateFlags flags; // Semaphore creation flags |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1956 | } VkSemaphoreCreateInfo; |
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 VkQueryPoolCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1959 | { |
Courtney Goeltzenleuchter | 2986281 | 2015-04-16 09:13:59 -0600 | [diff] [blame] | 1960 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO |
| 1961 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1962 | VkQueryType queryType; |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1963 | uint32_t slots; |
Courtney Goeltzenleuchter | 2986281 | 2015-04-16 09:13:59 -0600 | [diff] [blame] | 1964 | VkQueryPipelineStatisticFlags pipelineStatistics; // Optional |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1965 | } VkQueryPoolCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1966 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1967 | typedef struct VkFramebufferCreateInfo_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1968 | { |
Courtney Goeltzenleuchter | 136eb18 | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1969 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1970 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1971 | |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1972 | uint32_t colorAttachmentCount; |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1973 | const VkColorAttachmentBindInfo* pColorAttachments; |
| 1974 | const VkDepthStencilBindInfo* pDepthStencilAttachment; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1975 | |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1976 | uint32_t sampleCount; |
| 1977 | uint32_t width; |
| 1978 | uint32_t height; |
| 1979 | uint32_t layers; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1980 | } VkFramebufferCreateInfo; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1981 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1982 | typedef struct VkDrawIndirectCmd_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1983 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1984 | uint32_t vertexCount; |
| 1985 | uint32_t instanceCount; |
| 1986 | uint32_t firstVertex; |
| 1987 | uint32_t firstInstance; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1988 | } VkDrawIndirectCmd; |
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 VkDrawIndexedIndirectCmd_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1991 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1992 | uint32_t indexCount; |
| 1993 | uint32_t instanceCount; |
| 1994 | uint32_t firstIndex; |
| 1995 | int32_t vertexOffset; |
| 1996 | uint32_t firstInstance; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1997 | } VkDrawIndexedIndirectCmd; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1998 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1999 | typedef struct VkDispatchIndirectCmd_ |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2000 | { |
Courtney Goeltzenleuchter | a8c0628 | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2001 | uint32_t x; |
| 2002 | uint32_t y; |
| 2003 | uint32_t z; |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2004 | } VkDispatchIndirectCmd; |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2005 | |
| 2006 | // ------------------------------------------------------------------------------------------------ |
| 2007 | // API functions |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2008 | typedef VkResult (VKAPI *PFN_vkCreateInstance)(const VkInstanceCreateInfo* pCreateInfo, VkInstance* pInstance); |
| 2009 | typedef VkResult (VKAPI *PFN_vkDestroyInstance)(VkInstance instance); |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2010 | typedef VkResult (VKAPI *PFN_vkEnumeratePhysicalDevices)(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices); |
| 2011 | 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] | 2012 | typedef void * (VKAPI *PFN_vkGetInstanceProcAddr)(VkInstance instance, const char * pName); |
Jon Ashburn | 1245cec | 2015-05-18 13:20:15 -0600 | [diff] [blame] | 2013 | typedef void * (VKAPI *PFN_vkGetDeviceProcAddr)(VkDevice device, const char * pName); |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2014 | typedef VkResult (VKAPI *PFN_vkCreateDevice)(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo, VkDevice* pDevice); |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2015 | typedef VkResult (VKAPI *PFN_vkDestroyDevice)(VkDevice device); |
Jon Ashburn | eb2728b | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 2016 | 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] | 2017 | 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] | 2018 | typedef VkResult (VKAPI *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueNodeIndex, uint32_t queueIndex, VkQueue* pQueue); |
| 2019 | 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] | 2020 | typedef VkResult (VKAPI *PFN_vkQueueWaitIdle)(VkQueue queue); |
| 2021 | typedef VkResult (VKAPI *PFN_vkDeviceWaitIdle)(VkDevice device); |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2022 | typedef VkResult (VKAPI *PFN_vkAllocMemory)(VkDevice device, const VkMemoryAllocInfo* pAllocInfo, VkDeviceMemory* pMem); |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2023 | typedef VkResult (VKAPI *PFN_vkFreeMemory)(VkDevice device, VkDeviceMemory mem); |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2024 | typedef VkResult (VKAPI *PFN_vkMapMemory)(VkDevice device, VkDeviceMemory mem, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData); |
| 2025 | typedef VkResult (VKAPI *PFN_vkUnmapMemory)(VkDevice device, VkDeviceMemory mem); |
Courtney Goeltzenleuchter | a569a50 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 2026 | typedef VkResult (VKAPI *PFN_vkFlushMappedMemoryRanges)(VkDevice device, uint32_t memRangeCount, const VkMappedMemoryRange* pMemRanges); |
| 2027 | typedef VkResult (VKAPI *PFN_vkInvalidateMappedMemoryRanges)(VkDevice device, uint32_t memRangeCount, const VkMappedMemoryRange* pMemRanges); |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2028 | typedef VkResult (VKAPI *PFN_vkDestroyObject)(VkDevice device, VkObjectType objType, VkObject object); |
| 2029 | 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] | 2030 | typedef VkResult (VKAPI *PFN_vkBindObjectMemory)(VkDevice device, VkObjectType objType, VkObject object, VkDeviceMemory mem, VkDeviceSize offset); |
| 2031 | typedef VkResult (VKAPI *PFN_vkQueueBindSparseBufferMemory)(VkQueue queue, VkBuffer buffer, VkDeviceSize rangeOffset, VkDeviceSize rangeSize, VkDeviceMemory mem, VkDeviceSize memOffset); |
| 2032 | 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] | 2033 | typedef VkResult (VKAPI *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, VkFence* pFence); |
| 2034 | typedef VkResult (VKAPI *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, VkFence* pFences); |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2035 | typedef VkResult (VKAPI *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence); |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2036 | typedef VkResult (VKAPI *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, bool32_t waitAll, uint64_t timeout); |
| 2037 | typedef VkResult (VKAPI *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, VkSemaphore* pSemaphore); |
| 2038 | typedef VkResult (VKAPI *PFN_vkQueueSignalSemaphore)(VkQueue queue, VkSemaphore semaphore); |
| 2039 | typedef VkResult (VKAPI *PFN_vkQueueWaitSemaphore)(VkQueue queue, VkSemaphore semaphore); |
| 2040 | typedef VkResult (VKAPI *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo* pCreateInfo, VkEvent* pEvent); |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2041 | typedef VkResult (VKAPI *PFN_vkGetEventStatus)(VkDevice device, VkEvent event); |
| 2042 | typedef VkResult (VKAPI *PFN_vkSetEvent)(VkDevice device, VkEvent event); |
| 2043 | typedef VkResult (VKAPI *PFN_vkResetEvent)(VkDevice device, VkEvent event); |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2044 | typedef VkResult (VKAPI *PFN_vkCreateQueryPool)(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, VkQueryPool* pQueryPool); |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2045 | 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] | 2046 | typedef VkResult (VKAPI *PFN_vkGetFormatInfo)(VkDevice device, VkFormat format, VkFormatInfoType infoType, size_t* pDataSize, void* pData); |
| 2047 | typedef VkResult (VKAPI *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkBuffer* pBuffer); |
| 2048 | typedef VkResult (VKAPI *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, VkBufferView* pView); |
| 2049 | typedef VkResult (VKAPI *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo* pCreateInfo, VkImage* pImage); |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2050 | 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] | 2051 | typedef VkResult (VKAPI *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, VkImageView* pView); |
| 2052 | typedef VkResult (VKAPI *PFN_vkCreateColorAttachmentView)(VkDevice device, const VkColorAttachmentViewCreateInfo* pCreateInfo, VkColorAttachmentView* pView); |
| 2053 | typedef VkResult (VKAPI *PFN_vkCreateDepthStencilView)(VkDevice device, const VkDepthStencilViewCreateInfo* pCreateInfo, VkDepthStencilView* pView); |
| 2054 | typedef VkResult (VKAPI *PFN_vkCreateShader)(VkDevice device, const VkShaderCreateInfo* pCreateInfo, VkShader* pShader); |
| 2055 | typedef VkResult (VKAPI *PFN_vkCreateGraphicsPipeline)(VkDevice device, const VkGraphicsPipelineCreateInfo* pCreateInfo, VkPipeline* pPipeline); |
| 2056 | typedef VkResult (VKAPI *PFN_vkCreateGraphicsPipelineDerivative)(VkDevice device, const VkGraphicsPipelineCreateInfo* pCreateInfo, VkPipeline basePipeline, VkPipeline* pPipeline); |
| 2057 | typedef VkResult (VKAPI *PFN_vkCreateComputePipeline)(VkDevice device, const VkComputePipelineCreateInfo* pCreateInfo, VkPipeline* pPipeline); |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2058 | 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] | 2059 | typedef VkResult (VKAPI *PFN_vkLoadPipeline)(VkDevice device, size_t dataSize, const void* pData, VkPipeline* pPipeline); |
| 2060 | 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] | 2061 | typedef VkResult (VKAPI *PFN_vkCreatePipelineLayout)(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, VkPipelineLayout* pPipelineLayout); |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2062 | typedef VkResult (VKAPI *PFN_vkCreateSampler)(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, VkSampler* pSampler); |
| 2063 | typedef VkResult (VKAPI *PFN_vkCreateDescriptorSetLayout)(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, VkDescriptorSetLayout* pSetLayout); |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2064 | 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] | 2065 | typedef VkResult (VKAPI *PFN_vkResetDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool); |
| 2066 | 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] | 2067 | 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] | 2068 | typedef VkResult (VKAPI *PFN_vkCreateDynamicViewportState)(VkDevice device, const VkDynamicVpStateCreateInfo* pCreateInfo, VkDynamicVpState* pState); |
| 2069 | typedef VkResult (VKAPI *PFN_vkCreateDynamicRasterState)(VkDevice device, const VkDynamicRsStateCreateInfo* pCreateInfo, VkDynamicRsState* pState); |
| 2070 | typedef VkResult (VKAPI *PFN_vkCreateDynamicColorBlendState)(VkDevice device, const VkDynamicCbStateCreateInfo* pCreateInfo, VkDynamicCbState* pState); |
| 2071 | typedef VkResult (VKAPI *PFN_vkCreateDynamicDepthStencilState)(VkDevice device, const VkDynamicDsStateCreateInfo* pCreateInfo, VkDynamicDsState* pState); |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2072 | typedef VkResult (VKAPI *PFN_vkCreateCommandBuffer)(VkDevice device, const VkCmdBufferCreateInfo* pCreateInfo, VkCmdBuffer* pCmdBuffer); |
| 2073 | typedef VkResult (VKAPI *PFN_vkBeginCommandBuffer)(VkCmdBuffer cmdBuffer, const VkCmdBufferBeginInfo* pBeginInfo); |
| 2074 | typedef VkResult (VKAPI *PFN_vkEndCommandBuffer)(VkCmdBuffer cmdBuffer); |
| 2075 | typedef VkResult (VKAPI *PFN_vkResetCommandBuffer)(VkCmdBuffer cmdBuffer); |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2076 | typedef void (VKAPI *PFN_vkCmdBindPipeline)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline); |
| 2077 | typedef void (VKAPI *PFN_vkCmdBindDynamicStateObject)(VkCmdBuffer cmdBuffer, VkStateBindPoint stateBindPoint, VkDynamicStateObject state); |
Mark Lobodzinski | a65c463 | 2015-06-15 13:21:21 -0600 | [diff] [blame] | 2078 | typedef void (VKAPI *PFN_vkCmdBindDescriptorSets)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t setCount, const VkDescriptorSet* pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t* pDynamicOffsets); |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2079 | typedef void (VKAPI *PFN_vkCmdBindIndexBuffer)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType); |
| 2080 | 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] | 2081 | typedef void (VKAPI *PFN_vkCmdDraw)(VkCmdBuffer cmdBuffer, uint32_t firstVertex, uint32_t vertexCount, uint32_t firstInstance, uint32_t instanceCount); |
| 2082 | 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] | 2083 | typedef void (VKAPI *PFN_vkCmdDrawIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t count, uint32_t stride); |
| 2084 | 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] | 2085 | 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] | 2086 | typedef void (VKAPI *PFN_vkCmdDispatchIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset); |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2087 | typedef void (VKAPI *PFN_vkCmdCopyBuffer)(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkBuffer destBuffer, uint32_t regionCount, const VkBufferCopy* pRegions); |
| 2088 | 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] | 2089 | 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] | 2090 | typedef void (VKAPI *PFN_vkCmdCopyBufferToImage)(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions); |
| 2091 | 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] | 2092 | typedef void (VKAPI *PFN_vkCmdUpdateBuffer)(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize dataSize, const uint32_t* pData); |
| 2093 | 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] | 2094 | 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] | 2095 | 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] | 2096 | 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] | 2097 | typedef void (VKAPI *PFN_vkCmdSetEvent)(VkCmdBuffer cmdBuffer, VkEvent event, VkPipeEvent pipeEvent); |
| 2098 | typedef void (VKAPI *PFN_vkCmdResetEvent)(VkCmdBuffer cmdBuffer, VkEvent event, VkPipeEvent pipeEvent); |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2099 | typedef void (VKAPI *PFN_vkCmdWaitEvents)(VkCmdBuffer cmdBuffer, VkWaitEvent waitEvent, uint32_t eventCount, const VkEvent* pEvents, uint32_t memBarrierCount, const void** ppMemBarriers); |
| 2100 | typedef void (VKAPI *PFN_vkCmdPipelineBarrier)(VkCmdBuffer cmdBuffer, VkWaitEvent waitEvent, uint32_t pipeEventCount, const VkPipeEvent* pPipeEvents, uint32_t memBarrierCount, const void** ppMemBarriers); |
| 2101 | 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] | 2102 | typedef void (VKAPI *PFN_vkCmdEndQuery)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot); |
| 2103 | 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] | 2104 | 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] | 2105 | 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] | 2106 | 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] | 2107 | typedef void (VKAPI *PFN_vkCmdLoadAtomicCounters)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t startCounter, uint32_t counterCount, VkBuffer srcBuffer, VkDeviceSize srcOffset); |
| 2108 | 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] | 2109 | typedef VkResult (VKAPI *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, VkFramebuffer* pFramebuffer); |
| 2110 | typedef VkResult (VKAPI *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, VkRenderPass* pRenderPass); |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2111 | typedef void (VKAPI *PFN_vkCmdBeginRenderPass)(VkCmdBuffer cmdBuffer, const VkRenderPassBegin* pRenderPassBegin); |
| 2112 | typedef void (VKAPI *PFN_vkCmdEndRenderPass)(VkCmdBuffer cmdBuffer, VkRenderPass renderPass); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2113 | |
| 2114 | #ifdef VK_PROTOTYPES |
| 2115 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2116 | // Device initialization |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2117 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2118 | VkResult VKAPI vkCreateInstance( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2119 | const VkInstanceCreateInfo* pCreateInfo, |
| 2120 | VkInstance* pInstance); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2121 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2122 | VkResult VKAPI vkDestroyInstance( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2123 | VkInstance instance); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2124 | |
Jon Ashburn | 07b309a | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 2125 | VkResult VKAPI vkEnumeratePhysicalDevices( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2126 | VkInstance instance, |
Jon Ashburn | 07b309a | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 2127 | uint32_t* pPhysicalDeviceCount, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2128 | VkPhysicalDevice* pPhysicalDevices); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2129 | |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2130 | VkResult VKAPI vkGetPhysicalDeviceInfo( |
| 2131 | VkPhysicalDevice physicalDevice, |
| 2132 | VkPhysicalDeviceInfoType infoType, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2133 | size_t* pDataSize, |
| 2134 | void* pData); |
| 2135 | |
Jon Ashburn | 53c1677 | 2015-05-06 10:15:07 -0600 | [diff] [blame] | 2136 | void * VKAPI vkGetInstanceProcAddr( |
| 2137 | VkInstance instance, |
| 2138 | const char* pName); |
| 2139 | |
Jon Ashburn | 1245cec | 2015-05-18 13:20:15 -0600 | [diff] [blame] | 2140 | void * VKAPI vkGetDeviceProcAddr( |
| 2141 | VkDevice device, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2142 | const char* pName); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2143 | // Device functions |
| 2144 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2145 | VkResult VKAPI vkCreateDevice( |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2146 | VkPhysicalDevice physicalDevice, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2147 | const VkDeviceCreateInfo* pCreateInfo, |
| 2148 | VkDevice* pDevice); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2149 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2150 | VkResult VKAPI vkDestroyDevice( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2151 | VkDevice device); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2152 | |
| 2153 | // Extension discovery functions |
Courtney Goeltzenleuchter | da4a99e | 2015-04-23 17:49:22 -0600 | [diff] [blame] | 2154 | |
Jon Ashburn | eb2728b | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 2155 | VkResult VKAPI vkGetGlobalExtensionInfo( |
Courtney Goeltzenleuchter | 699e2aa | 2015-04-17 20:48:17 -0600 | [diff] [blame] | 2156 | VkExtensionInfoType infoType, |
| 2157 | uint32_t extensionIndex, |
| 2158 | size_t* pDataSize, |
| 2159 | void* pData); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2160 | |
Tobin Ehlis | 0ef6ec5 | 2015-04-16 12:51:37 -0600 | [diff] [blame] | 2161 | VkResult VKAPI vkGetPhysicalDeviceExtensionInfo( |
Courtney Goeltzenleuchter | 699e2aa | 2015-04-17 20:48:17 -0600 | [diff] [blame] | 2162 | VkPhysicalDevice physicalDevice, |
| 2163 | VkExtensionInfoType infoType, |
| 2164 | uint32_t extensionIndex, |
| 2165 | size_t* pDataSize, |
| 2166 | void* pData); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2167 | |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2168 | // Queue functions |
| 2169 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2170 | VkResult VKAPI vkGetDeviceQueue( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2171 | VkDevice device, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2172 | uint32_t queueNodeIndex, |
| 2173 | uint32_t queueIndex, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2174 | VkQueue* pQueue); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2175 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2176 | VkResult VKAPI vkQueueSubmit( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2177 | VkQueue queue, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2178 | uint32_t cmdBufferCount, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2179 | const VkCmdBuffer* pCmdBuffers, |
| 2180 | VkFence fence); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2181 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2182 | VkResult VKAPI vkQueueWaitIdle( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2183 | VkQueue queue); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2184 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2185 | VkResult VKAPI vkDeviceWaitIdle( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2186 | VkDevice device); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2187 | |
| 2188 | // Memory functions |
| 2189 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2190 | VkResult VKAPI vkAllocMemory( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2191 | VkDevice device, |
| 2192 | const VkMemoryAllocInfo* pAllocInfo, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2193 | VkDeviceMemory* pMem); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2194 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2195 | VkResult VKAPI vkFreeMemory( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2196 | VkDevice device, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2197 | VkDeviceMemory mem); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2198 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2199 | VkResult VKAPI vkMapMemory( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2200 | VkDevice device, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2201 | VkDeviceMemory mem, |
Tony Barbour | 3e3420a | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 2202 | VkDeviceSize offset, |
| 2203 | VkDeviceSize size, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2204 | VkMemoryMapFlags flags, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2205 | void** ppData); |
| 2206 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2207 | VkResult VKAPI vkUnmapMemory( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2208 | VkDevice device, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2209 | VkDeviceMemory mem); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2210 | |
Courtney Goeltzenleuchter | a569a50 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 2211 | VkResult VKAPI vkFlushMappedMemoryRanges( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2212 | VkDevice device, |
Courtney Goeltzenleuchter | a569a50 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 2213 | uint32_t memRangeCount, |
| 2214 | const VkMappedMemoryRange* pMemRanges); |
| 2215 | |
| 2216 | VkResult VKAPI vkInvalidateMappedMemoryRanges( |
| 2217 | VkDevice device, |
| 2218 | uint32_t memRangeCount, |
| 2219 | const VkMappedMemoryRange* pMemRanges); |
Tony Barbour | 859ceab | 2015-04-16 19:23:13 -0600 | [diff] [blame] | 2220 | |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2221 | // Generic API object functions |
| 2222 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2223 | VkResult VKAPI vkDestroyObject( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2224 | VkDevice device, |
| 2225 | VkObjectType objType, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2226 | VkObject object); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2227 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2228 | VkResult VKAPI vkGetObjectInfo( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2229 | VkDevice device, |
| 2230 | VkObjectType objType, |
| 2231 | VkObject object, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2232 | VkObjectInfoType infoType, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2233 | size_t* pDataSize, |
| 2234 | void* pData); |
| 2235 | |
Tony Barbour | 3e3420a | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 2236 | // Memory management API functions |
Mark Lobodzinski | cf26e07 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 2237 | |
Mark Lobodzinski | fb9f564 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 2238 | VkResult VKAPI vkBindObjectMemory( |
| 2239 | VkDevice device, |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2240 | VkObjectType objType, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2241 | VkObject object, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2242 | VkDeviceMemory mem, |
| 2243 | VkDeviceSize memOffset); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2244 | |
Mark Lobodzinski | fb9f564 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 2245 | VkResult VKAPI vkQueueBindSparseBufferMemory( |
Mark Lobodzinski | cf26e07 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 2246 | VkQueue queue, |
Mark Lobodzinski | fb9f564 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 2247 | VkBuffer buffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2248 | VkDeviceSize rangeOffset, |
| 2249 | VkDeviceSize rangeSize, |
| 2250 | VkDeviceMemory mem, |
| 2251 | VkDeviceSize memOffset); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2252 | |
Mark Lobodzinski | fb9f564 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 2253 | VkResult VKAPI vkQueueBindSparseImageMemory( |
Mark Lobodzinski | cf26e07 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 2254 | VkQueue queue, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2255 | VkImage image, |
Jeremy Hayes | 4753653 | 2015-04-15 15:20:03 -0600 | [diff] [blame] | 2256 | const VkImageMemoryBindInfo* pBindInfo, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2257 | VkDeviceMemory mem, |
| 2258 | VkDeviceSize memOffset); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2259 | |
| 2260 | // Fence functions |
| 2261 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2262 | VkResult VKAPI vkCreateFence( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2263 | VkDevice device, |
| 2264 | const VkFenceCreateInfo* pCreateInfo, |
| 2265 | VkFence* pFence); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2266 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2267 | VkResult VKAPI vkResetFences( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2268 | VkDevice device, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2269 | uint32_t fenceCount, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2270 | VkFence* pFences); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2271 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2272 | VkResult VKAPI vkGetFenceStatus( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2273 | VkDevice device, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2274 | VkFence fence); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2275 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2276 | VkResult VKAPI vkWaitForFences( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2277 | VkDevice device, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2278 | uint32_t fenceCount, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2279 | const VkFence* pFences, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2280 | bool32_t waitAll, |
| 2281 | uint64_t timeout); // timeout in nanoseconds |
| 2282 | |
| 2283 | // Queue semaphore functions |
| 2284 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2285 | VkResult VKAPI vkCreateSemaphore( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2286 | VkDevice device, |
| 2287 | const VkSemaphoreCreateInfo* pCreateInfo, |
| 2288 | VkSemaphore* pSemaphore); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2289 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2290 | VkResult VKAPI vkQueueSignalSemaphore( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2291 | VkQueue queue, |
| 2292 | VkSemaphore semaphore); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2293 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2294 | VkResult VKAPI vkQueueWaitSemaphore( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2295 | VkQueue queue, |
| 2296 | VkSemaphore semaphore); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2297 | |
| 2298 | // Event functions |
| 2299 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2300 | VkResult VKAPI vkCreateEvent( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2301 | VkDevice device, |
| 2302 | const VkEventCreateInfo* pCreateInfo, |
| 2303 | VkEvent* pEvent); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2304 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2305 | VkResult VKAPI vkGetEventStatus( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2306 | VkDevice device, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2307 | VkEvent event); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2308 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2309 | VkResult VKAPI vkSetEvent( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2310 | VkDevice device, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2311 | VkEvent event); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2312 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2313 | VkResult VKAPI vkResetEvent( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2314 | VkDevice device, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2315 | VkEvent event); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2316 | |
| 2317 | // Query functions |
| 2318 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2319 | VkResult VKAPI vkCreateQueryPool( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2320 | VkDevice device, |
| 2321 | const VkQueryPoolCreateInfo* pCreateInfo, |
| 2322 | VkQueryPool* pQueryPool); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2323 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2324 | VkResult VKAPI vkGetQueryPoolResults( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2325 | VkDevice device, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2326 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2327 | uint32_t startQuery, |
| 2328 | uint32_t queryCount, |
| 2329 | size_t* pDataSize, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2330 | void* pData, |
| 2331 | VkQueryResultFlags flags); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2332 | |
| 2333 | // Format capabilities |
| 2334 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2335 | VkResult VKAPI vkGetFormatInfo( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2336 | VkDevice device, |
| 2337 | VkFormat format, |
| 2338 | VkFormatInfoType infoType, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2339 | size_t* pDataSize, |
| 2340 | void* pData); |
| 2341 | |
| 2342 | // Buffer functions |
| 2343 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2344 | VkResult VKAPI vkCreateBuffer( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2345 | VkDevice device, |
| 2346 | const VkBufferCreateInfo* pCreateInfo, |
| 2347 | VkBuffer* pBuffer); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2348 | |
| 2349 | // Buffer view functions |
| 2350 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2351 | VkResult VKAPI vkCreateBufferView( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2352 | VkDevice device, |
| 2353 | const VkBufferViewCreateInfo* pCreateInfo, |
| 2354 | VkBufferView* pView); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2355 | |
| 2356 | // Image functions |
| 2357 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2358 | VkResult VKAPI vkCreateImage( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2359 | VkDevice device, |
| 2360 | const VkImageCreateInfo* pCreateInfo, |
| 2361 | VkImage* pImage); |
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 vkGetImageSubresourceInfo( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2364 | VkDevice device, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2365 | VkImage image, |
| 2366 | const VkImageSubresource* pSubresource, |
| 2367 | VkSubresourceInfoType infoType, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2368 | size_t* pDataSize, |
| 2369 | void* pData); |
| 2370 | |
| 2371 | // Image view functions |
| 2372 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2373 | VkResult VKAPI vkCreateImageView( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2374 | VkDevice device, |
| 2375 | const VkImageViewCreateInfo* pCreateInfo, |
| 2376 | VkImageView* pView); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2377 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2378 | VkResult VKAPI vkCreateColorAttachmentView( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2379 | VkDevice device, |
| 2380 | const VkColorAttachmentViewCreateInfo* pCreateInfo, |
| 2381 | VkColorAttachmentView* pView); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2382 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2383 | VkResult VKAPI vkCreateDepthStencilView( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2384 | VkDevice device, |
| 2385 | const VkDepthStencilViewCreateInfo* pCreateInfo, |
| 2386 | VkDepthStencilView* pView); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2387 | |
| 2388 | // Shader functions |
| 2389 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2390 | VkResult VKAPI vkCreateShader( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2391 | VkDevice device, |
| 2392 | const VkShaderCreateInfo* pCreateInfo, |
| 2393 | VkShader* pShader); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2394 | |
| 2395 | // Pipeline functions |
| 2396 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2397 | VkResult VKAPI vkCreateGraphicsPipeline( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2398 | VkDevice device, |
| 2399 | const VkGraphicsPipelineCreateInfo* pCreateInfo, |
| 2400 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2401 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2402 | VkResult VKAPI vkCreateGraphicsPipelineDerivative( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2403 | VkDevice device, |
| 2404 | const VkGraphicsPipelineCreateInfo* pCreateInfo, |
| 2405 | VkPipeline basePipeline, |
| 2406 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2407 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2408 | VkResult VKAPI vkCreateComputePipeline( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2409 | VkDevice device, |
| 2410 | const VkComputePipelineCreateInfo* pCreateInfo, |
| 2411 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2412 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2413 | VkResult VKAPI vkStorePipeline( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2414 | VkDevice device, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2415 | VkPipeline pipeline, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2416 | size_t* pDataSize, |
| 2417 | void* pData); |
| 2418 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2419 | VkResult VKAPI vkLoadPipeline( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2420 | VkDevice device, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2421 | size_t dataSize, |
| 2422 | const void* pData, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2423 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2424 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2425 | VkResult VKAPI vkLoadPipelineDerivative( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2426 | VkDevice device, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2427 | size_t dataSize, |
| 2428 | const void* pData, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2429 | VkPipeline basePipeline, |
| 2430 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2431 | |
Mark Lobodzinski | 556f721 | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 2432 | // Pipeline layout functions |
| 2433 | |
| 2434 | VkResult VKAPI vkCreatePipelineLayout( |
| 2435 | VkDevice device, |
| 2436 | const VkPipelineLayoutCreateInfo* pCreateInfo, |
| 2437 | VkPipelineLayout* pPipelineLayout); |
| 2438 | |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2439 | // Sampler functions |
| 2440 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2441 | VkResult VKAPI vkCreateSampler( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2442 | VkDevice device, |
| 2443 | const VkSamplerCreateInfo* pCreateInfo, |
| 2444 | VkSampler* pSampler); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2445 | |
| 2446 | // Descriptor set functions |
| 2447 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2448 | VkResult VKAPI vkCreateDescriptorSetLayout( |
| 2449 | VkDevice device, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2450 | const VkDescriptorSetLayoutCreateInfo* pCreateInfo, |
| 2451 | VkDescriptorSetLayout* pSetLayout); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2452 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2453 | VkResult VKAPI vkCreateDescriptorPool( |
| 2454 | VkDevice device, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2455 | VkDescriptorPoolUsage poolUsage, |
| 2456 | uint32_t maxSets, |
| 2457 | const VkDescriptorPoolCreateInfo* pCreateInfo, |
| 2458 | VkDescriptorPool* pDescriptorPool); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2459 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2460 | VkResult VKAPI vkResetDescriptorPool( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2461 | VkDevice device, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2462 | VkDescriptorPool descriptorPool); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2463 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2464 | VkResult VKAPI vkAllocDescriptorSets( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2465 | VkDevice device, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2466 | VkDescriptorPool descriptorPool, |
| 2467 | VkDescriptorSetUsage setUsage, |
| 2468 | uint32_t count, |
| 2469 | const VkDescriptorSetLayout* pSetLayouts, |
| 2470 | VkDescriptorSet* pDescriptorSets, |
| 2471 | uint32_t* pCount); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2472 | |
Chia-I Wu | 8cd8ecd | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 2473 | VkResult VKAPI vkUpdateDescriptorSets( |
Mike Stroyan | 230e625 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2474 | VkDevice device, |
Chia-I Wu | 8cd8ecd | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 2475 | uint32_t writeCount, |
| 2476 | const VkWriteDescriptorSet* pDescriptorWrites, |
| 2477 | uint32_t copyCount, |
| 2478 | const VkCopyDescriptorSet* pDescriptorCopies); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2479 | |
| 2480 | // State object functions |
| 2481 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2482 | VkResult VKAPI vkCreateDynamicViewportState( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2483 | VkDevice device, |
| 2484 | const VkDynamicVpStateCreateInfo* pCreateInfo, |
| 2485 | VkDynamicVpState* pState); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2486 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2487 | VkResult VKAPI vkCreateDynamicRasterState( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2488 | VkDevice device, |
| 2489 | const VkDynamicRsStateCreateInfo* pCreateInfo, |
| 2490 | VkDynamicRsState* pState); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2491 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2492 | VkResult VKAPI vkCreateDynamicColorBlendState( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2493 | VkDevice device, |
| 2494 | const VkDynamicCbStateCreateInfo* pCreateInfo, |
| 2495 | VkDynamicCbState* pState); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2496 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2497 | VkResult VKAPI vkCreateDynamicDepthStencilState( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2498 | VkDevice device, |
| 2499 | const VkDynamicDsStateCreateInfo* pCreateInfo, |
| 2500 | VkDynamicDsState* pState); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2501 | |
| 2502 | // Command buffer functions |
| 2503 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2504 | VkResult VKAPI vkCreateCommandBuffer( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2505 | VkDevice device, |
| 2506 | const VkCmdBufferCreateInfo* pCreateInfo, |
| 2507 | VkCmdBuffer* pCmdBuffer); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2508 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2509 | VkResult VKAPI vkBeginCommandBuffer( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2510 | VkCmdBuffer cmdBuffer, |
| 2511 | const VkCmdBufferBeginInfo* pBeginInfo); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2512 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2513 | VkResult VKAPI vkEndCommandBuffer( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2514 | VkCmdBuffer cmdBuffer); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2515 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2516 | VkResult VKAPI vkResetCommandBuffer( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2517 | VkCmdBuffer cmdBuffer); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2518 | |
| 2519 | // Command buffer building functions |
| 2520 | |
| 2521 | void VKAPI vkCmdBindPipeline( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2522 | VkCmdBuffer cmdBuffer, |
| 2523 | VkPipelineBindPoint pipelineBindPoint, |
| 2524 | VkPipeline pipeline); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2525 | |
| 2526 | void VKAPI vkCmdBindDynamicStateObject( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2527 | VkCmdBuffer cmdBuffer, |
| 2528 | VkStateBindPoint stateBindPoint, |
| 2529 | VkDynamicStateObject dynamicState); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2530 | |
| 2531 | void VKAPI vkCmdBindDescriptorSets( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2532 | VkCmdBuffer cmdBuffer, |
| 2533 | VkPipelineBindPoint pipelineBindPoint, |
Mark Lobodzinski | a65c463 | 2015-06-15 13:21:21 -0600 | [diff] [blame] | 2534 | VkPipelineLayout layout, |
Cody Northrop | 1a01b1d | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 2535 | uint32_t firstSet, |
| 2536 | uint32_t setCount, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2537 | const VkDescriptorSet* pDescriptorSets, |
Cody Northrop | 1a01b1d | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 2538 | uint32_t dynamicOffsetCount, |
| 2539 | const uint32_t* pDynamicOffsets); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2540 | |
| 2541 | void VKAPI vkCmdBindIndexBuffer( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2542 | VkCmdBuffer cmdBuffer, |
| 2543 | VkBuffer buffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2544 | VkDeviceSize offset, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2545 | VkIndexType indexType); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2546 | |
Courtney Goeltzenleuchter | 4696294 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 2547 | void VKAPI vkCmdBindVertexBuffers( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2548 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 4696294 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 2549 | uint32_t startBinding, |
| 2550 | uint32_t bindingCount, |
| 2551 | const VkBuffer* pBuffers, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2552 | const VkDeviceSize* pOffsets); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2553 | |
| 2554 | void VKAPI vkCmdDraw( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2555 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2556 | uint32_t firstVertex, |
| 2557 | uint32_t vertexCount, |
| 2558 | uint32_t firstInstance, |
| 2559 | uint32_t instanceCount); |
| 2560 | |
| 2561 | void VKAPI vkCmdDrawIndexed( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2562 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2563 | uint32_t firstIndex, |
| 2564 | uint32_t indexCount, |
| 2565 | int32_t vertexOffset, |
| 2566 | uint32_t firstInstance, |
| 2567 | uint32_t instanceCount); |
| 2568 | |
| 2569 | void VKAPI vkCmdDrawIndirect( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2570 | VkCmdBuffer cmdBuffer, |
| 2571 | VkBuffer buffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2572 | VkDeviceSize offset, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2573 | uint32_t count, |
| 2574 | uint32_t stride); |
| 2575 | |
| 2576 | void VKAPI vkCmdDrawIndexedIndirect( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2577 | VkCmdBuffer cmdBuffer, |
| 2578 | VkBuffer buffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2579 | VkDeviceSize offset, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2580 | uint32_t count, |
| 2581 | uint32_t stride); |
| 2582 | |
| 2583 | void VKAPI vkCmdDispatch( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2584 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2585 | uint32_t x, |
| 2586 | uint32_t y, |
| 2587 | uint32_t z); |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2588 | |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2589 | void VKAPI vkCmdDispatchIndirect( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2590 | VkCmdBuffer cmdBuffer, |
| 2591 | VkBuffer buffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2592 | VkDeviceSize offset); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2593 | |
| 2594 | void VKAPI vkCmdCopyBuffer( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2595 | VkCmdBuffer cmdBuffer, |
| 2596 | VkBuffer srcBuffer, |
| 2597 | VkBuffer destBuffer, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2598 | uint32_t regionCount, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2599 | const VkBufferCopy* pRegions); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2600 | |
| 2601 | void VKAPI vkCmdCopyImage( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2602 | VkCmdBuffer cmdBuffer, |
| 2603 | VkImage srcImage, |
| 2604 | VkImageLayout srcImageLayout, |
| 2605 | VkImage destImage, |
| 2606 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2607 | uint32_t regionCount, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2608 | const VkImageCopy* pRegions); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2609 | |
| 2610 | void VKAPI vkCmdBlitImage( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2611 | VkCmdBuffer cmdBuffer, |
| 2612 | VkImage srcImage, |
| 2613 | VkImageLayout srcImageLayout, |
| 2614 | VkImage destImage, |
| 2615 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2616 | uint32_t regionCount, |
Mark Lobodzinski | 20f6859 | 2015-05-22 14:43:25 -0500 | [diff] [blame] | 2617 | const VkImageBlit* pRegions, |
| 2618 | VkTexFilter filter); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2619 | |
| 2620 | void VKAPI vkCmdCopyBufferToImage( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2621 | VkCmdBuffer cmdBuffer, |
| 2622 | VkBuffer srcBuffer, |
| 2623 | VkImage destImage, |
| 2624 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2625 | uint32_t regionCount, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2626 | const VkBufferImageCopy* pRegions); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2627 | |
| 2628 | void VKAPI vkCmdCopyImageToBuffer( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2629 | VkCmdBuffer cmdBuffer, |
| 2630 | VkImage srcImage, |
| 2631 | VkImageLayout srcImageLayout, |
| 2632 | VkBuffer destBuffer, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2633 | uint32_t regionCount, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2634 | const VkBufferImageCopy* pRegions); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2635 | |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2636 | void VKAPI vkCmdUpdateBuffer( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2637 | VkCmdBuffer cmdBuffer, |
| 2638 | VkBuffer destBuffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2639 | VkDeviceSize destOffset, |
| 2640 | VkDeviceSize dataSize, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2641 | const uint32_t* pData); |
| 2642 | |
| 2643 | void VKAPI vkCmdFillBuffer( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2644 | VkCmdBuffer cmdBuffer, |
| 2645 | VkBuffer destBuffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2646 | VkDeviceSize destOffset, |
| 2647 | VkDeviceSize fillSize, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2648 | uint32_t data); |
| 2649 | |
| 2650 | void VKAPI vkCmdClearColorImage( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2651 | VkCmdBuffer cmdBuffer, |
| 2652 | VkImage image, |
| 2653 | VkImageLayout imageLayout, |
Courtney Goeltzenleuchter | da4a99e | 2015-04-23 17:49:22 -0600 | [diff] [blame] | 2654 | const VkClearColor* pColor, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2655 | uint32_t rangeCount, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2656 | const VkImageSubresourceRange* pRanges); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2657 | |
| 2658 | void VKAPI vkCmdClearDepthStencil( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2659 | VkCmdBuffer cmdBuffer, |
| 2660 | VkImage image, |
| 2661 | VkImageLayout imageLayout, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2662 | float depth, |
| 2663 | uint32_t stencil, |
| 2664 | uint32_t rangeCount, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2665 | const VkImageSubresourceRange* pRanges); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2666 | |
| 2667 | void VKAPI vkCmdResolveImage( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2668 | VkCmdBuffer cmdBuffer, |
| 2669 | VkImage srcImage, |
| 2670 | VkImageLayout srcImageLayout, |
| 2671 | VkImage destImage, |
| 2672 | VkImageLayout destImageLayout, |
Tony Barbour | 11f7437 | 2015-04-13 15:02:52 -0600 | [diff] [blame] | 2673 | uint32_t regionCount, |
| 2674 | const VkImageResolve* pRegions); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2675 | |
| 2676 | void VKAPI vkCmdSetEvent( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2677 | VkCmdBuffer cmdBuffer, |
| 2678 | VkEvent event, |
| 2679 | VkPipeEvent pipeEvent); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2680 | |
| 2681 | void VKAPI vkCmdResetEvent( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2682 | VkCmdBuffer cmdBuffer, |
| 2683 | VkEvent event, |
| 2684 | VkPipeEvent pipeEvent); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2685 | |
| 2686 | void VKAPI vkCmdWaitEvents( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2687 | VkCmdBuffer cmdBuffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2688 | VkWaitEvent waitEvent, |
| 2689 | uint32_t eventCount, |
| 2690 | const VkEvent* pEvents, |
| 2691 | uint32_t memBarrierCount, |
| 2692 | const void** ppMemBarriers); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2693 | |
| 2694 | void VKAPI vkCmdPipelineBarrier( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2695 | VkCmdBuffer cmdBuffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2696 | VkWaitEvent waitEvent, |
| 2697 | uint32_t pipeEventCount, |
| 2698 | const VkPipeEvent* pPipeEvents, |
| 2699 | uint32_t memBarrierCount, |
| 2700 | const void** ppMemBarriers); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2701 | |
| 2702 | void VKAPI vkCmdBeginQuery( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2703 | VkCmdBuffer cmdBuffer, |
| 2704 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2705 | uint32_t slot, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2706 | VkQueryControlFlags flags); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2707 | |
| 2708 | void VKAPI vkCmdEndQuery( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2709 | VkCmdBuffer cmdBuffer, |
| 2710 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2711 | uint32_t slot); |
| 2712 | |
| 2713 | void VKAPI vkCmdResetQueryPool( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2714 | VkCmdBuffer cmdBuffer, |
| 2715 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2716 | uint32_t startQuery, |
| 2717 | uint32_t queryCount); |
| 2718 | |
| 2719 | void VKAPI vkCmdWriteTimestamp( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2720 | VkCmdBuffer cmdBuffer, |
| 2721 | VkTimestampType timestampType, |
| 2722 | VkBuffer destBuffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2723 | VkDeviceSize destOffset); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2724 | |
Courtney Goeltzenleuchter | 9804906 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 2725 | void VKAPI vkCmdCopyQueryPoolResults( |
| 2726 | VkCmdBuffer cmdBuffer, |
| 2727 | VkQueryPool queryPool, |
| 2728 | uint32_t startQuery, |
| 2729 | uint32_t queryCount, |
| 2730 | VkBuffer destBuffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2731 | VkDeviceSize destOffset, |
| 2732 | VkDeviceSize destStride, |
Tony Barbour | 3e3420a | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 2733 | VkQueryResultFlags flags); |
Courtney Goeltzenleuchter | 9804906 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 2734 | |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2735 | void VKAPI vkCmdInitAtomicCounters( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2736 | VkCmdBuffer cmdBuffer, |
| 2737 | VkPipelineBindPoint pipelineBindPoint, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2738 | uint32_t startCounter, |
| 2739 | uint32_t counterCount, |
| 2740 | const uint32_t* pData); |
| 2741 | |
| 2742 | void VKAPI vkCmdLoadAtomicCounters( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2743 | VkCmdBuffer cmdBuffer, |
| 2744 | VkPipelineBindPoint pipelineBindPoint, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2745 | uint32_t startCounter, |
| 2746 | uint32_t counterCount, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2747 | VkBuffer srcBuffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2748 | VkDeviceSize srcOffset); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2749 | |
| 2750 | void VKAPI vkCmdSaveAtomicCounters( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2751 | VkCmdBuffer cmdBuffer, |
| 2752 | VkPipelineBindPoint pipelineBindPoint, |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2753 | uint32_t startCounter, |
| 2754 | uint32_t counterCount, |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2755 | VkBuffer destBuffer, |
Tony Barbour | 8205d90 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2756 | VkDeviceSize destOffset); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2757 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2758 | VkResult VKAPI vkCreateFramebuffer( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2759 | VkDevice device, |
| 2760 | const VkFramebufferCreateInfo* pCreateInfo, |
| 2761 | VkFramebuffer* pFramebuffer); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2762 | |
Courtney Goeltzenleuchter | 382489d | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2763 | VkResult VKAPI vkCreateRenderPass( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2764 | VkDevice device, |
| 2765 | const VkRenderPassCreateInfo* pCreateInfo, |
| 2766 | VkRenderPass* pRenderPass); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2767 | |
| 2768 | void VKAPI vkCmdBeginRenderPass( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2769 | VkCmdBuffer cmdBuffer, |
| 2770 | const VkRenderPassBegin* pRenderPassBegin); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2771 | |
| 2772 | void VKAPI vkCmdEndRenderPass( |
Courtney Goeltzenleuchter | f4f6959 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2773 | VkCmdBuffer cmdBuffer, |
| 2774 | VkRenderPass renderPass); |
Courtney Goeltzenleuchter | 89e99e6 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2775 | |
| 2776 | #endif // VK_PROTOTYPES |
| 2777 | |
| 2778 | #ifdef __cplusplus |
| 2779 | } // extern "C" |
| 2780 | #endif // __cplusplus |
| 2781 | |
| 2782 | #endif // __VULKAN_H__ |