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