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