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