Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1 | #ifndef __vulkan_h_ |
| 2 | #define __vulkan_h_ 1 |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 8 | /* |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 9 | ** Copyright (c) 2015 The Khronos Group Inc. |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 10 | ** |
| 11 | ** Permission is hereby granted, free of charge, to any person obtaining a |
| 12 | ** copy of this software and/or associated documentation files (the |
| 13 | ** "Materials"), to deal in the Materials without restriction, including |
| 14 | ** without limitation the rights to use, copy, modify, merge, publish, |
| 15 | ** distribute, sublicense, and/or sell copies of the Materials, and to |
| 16 | ** permit persons to whom the Materials are furnished to do so, subject to |
| 17 | ** the following conditions: |
| 18 | ** |
| 19 | ** The above copyright notice and this permission notice shall be included |
| 20 | ** in all copies or substantial portions of the Materials. |
| 21 | ** |
| 22 | ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 23 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 24 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 25 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 26 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 27 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 28 | ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
| 29 | */ |
| 30 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 31 | /* |
| 32 | ** This header is generated from the Khronos Vulkan XML API Registry. |
| 33 | ** |
| 34 | */ |
| 35 | |
| 36 | |
| 37 | #define VK_VERSION_1_0 1 |
| 38 | #include "vk_platform.h" |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 39 | |
| 40 | #define VK_MAKE_VERSION(major, minor, patch) \ |
| 41 | ((major << 22) | (minor << 12) | patch) |
| 42 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 43 | // Vulkan API version supported by this file |
Chia-I Wu | 396af6c | 2015-10-26 19:28:45 +0800 | [diff] [blame] | 44 | #define VK_API_VERSION VK_MAKE_VERSION(0, 184, 0) |
Cody Northrop | 44967fd | 2015-08-11 15:25:08 -0600 | [diff] [blame] | 45 | |
| 46 | |
Courtney Goeltzenleuchter | fa533f0 | 2015-10-16 10:04:24 -0600 | [diff] [blame] | 47 | #if defined(__cplusplus) && ((defined(_MSC_VER) && _MSC_VER >= 1800) || __cplusplus >= 201103L) |
Cody Northrop | 44967fd | 2015-08-11 15:25:08 -0600 | [diff] [blame] | 48 | #define VK_NULL_HANDLE nullptr |
| 49 | #else |
| 50 | #define VK_NULL_HANDLE 0 |
| 51 | #endif |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 52 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 53 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 54 | #define VK_DEFINE_HANDLE(obj) typedef struct obj##_T* obj; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 55 | |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 56 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 57 | #if defined(__cplusplus) |
Cody Northrop | 3cc85e9 | 2015-08-04 10:47:08 -0600 | [diff] [blame] | 58 | #if ((defined(_MSC_VER) && _MSC_VER >= 1800) || __cplusplus >= 201103L) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 59 | // The bool operator only works if there are no implicit conversions from an obj to |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 60 | // a bool-compatible type, which can then be used to unintentionally violate type safety. |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 61 | // C++11 and above supports the "explicit" keyword on conversion operators to stop this |
| 62 | // from happening. Otherwise users of C++ below C++11 won't get direct access to evaluating |
| 63 | // the object handle as a bool in expressions like: |
| 64 | // if (obj) vkDestroy(obj); |
| 65 | #define VK_NONDISP_HANDLE_OPERATOR_BOOL() explicit operator bool() const { return handle != 0; } |
Cody Northrop | 44967fd | 2015-08-11 15:25:08 -0600 | [diff] [blame] | 66 | #define VK_NONDISP_HANDLE_CONSTRUCTOR_FROM_UINT64(obj) \ |
| 67 | explicit obj(uint64_t x) : handle(x) { } \ |
| 68 | obj(decltype(nullptr)) : handle(0) { } |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 69 | #else |
| 70 | #define VK_NONDISP_HANDLE_OPERATOR_BOOL() |
Cody Northrop | 44967fd | 2015-08-11 15:25:08 -0600 | [diff] [blame] | 71 | #define VK_NONDISP_HANDLE_CONSTRUCTOR_FROM_UINT64(obj) \ |
| 72 | obj(uint64_t x) : handle(x) { } |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 73 | #endif |
| 74 | #define VK_DEFINE_NONDISP_HANDLE(obj) \ |
| 75 | struct obj { \ |
Courtney Goeltzenleuchter | 1a68a9c | 2015-07-29 10:53:07 -0600 | [diff] [blame] | 76 | obj() : handle(0) { } \ |
Cody Northrop | 44967fd | 2015-08-11 15:25:08 -0600 | [diff] [blame] | 77 | VK_NONDISP_HANDLE_CONSTRUCTOR_FROM_UINT64(obj) \ |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 78 | obj& operator =(uint64_t x) { handle = x; return *this; } \ |
| 79 | bool operator==(const obj& other) const { return handle == other.handle; } \ |
| 80 | bool operator!=(const obj& other) const { return handle != other.handle; } \ |
| 81 | bool operator!() const { return !handle; } \ |
| 82 | VK_NONDISP_HANDLE_OPERATOR_BOOL() \ |
| 83 | uint64_t handle; \ |
| 84 | }; |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 85 | #else |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 86 | #define VK_DEFINE_NONDISP_HANDLE(obj) typedef struct obj##_T { uint64_t handle; } obj; |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 87 | #endif |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 88 | |
| 89 | |
| 90 | |
Cody Northrop | 22b7fae | 2015-08-11 11:21:48 -0600 | [diff] [blame] | 91 | typedef uint32_t VkBool32; |
| 92 | typedef uint32_t VkFlags; |
| 93 | typedef uint64_t VkDeviceSize; |
| 94 | typedef uint32_t VkSampleMask; |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 95 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 96 | VK_DEFINE_HANDLE(VkInstance) |
| 97 | VK_DEFINE_HANDLE(VkPhysicalDevice) |
| 98 | VK_DEFINE_HANDLE(VkDevice) |
| 99 | VK_DEFINE_HANDLE(VkQueue) |
Courtney Goeltzenleuchter | 646b907 | 2015-10-20 18:04:07 -0600 | [diff] [blame] | 100 | VK_DEFINE_NONDISP_HANDLE(VkSemaphore) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 101 | VK_DEFINE_HANDLE(VkCmdBuffer) |
| 102 | VK_DEFINE_NONDISP_HANDLE(VkFence) |
| 103 | VK_DEFINE_NONDISP_HANDLE(VkDeviceMemory) |
| 104 | VK_DEFINE_NONDISP_HANDLE(VkBuffer) |
| 105 | VK_DEFINE_NONDISP_HANDLE(VkImage) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 106 | VK_DEFINE_NONDISP_HANDLE(VkEvent) |
| 107 | VK_DEFINE_NONDISP_HANDLE(VkQueryPool) |
| 108 | VK_DEFINE_NONDISP_HANDLE(VkBufferView) |
| 109 | VK_DEFINE_NONDISP_HANDLE(VkImageView) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 110 | VK_DEFINE_NONDISP_HANDLE(VkShaderModule) |
| 111 | VK_DEFINE_NONDISP_HANDLE(VkShader) |
| 112 | VK_DEFINE_NONDISP_HANDLE(VkPipelineCache) |
| 113 | VK_DEFINE_NONDISP_HANDLE(VkPipelineLayout) |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 114 | VK_DEFINE_NONDISP_HANDLE(VkRenderPass) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 115 | VK_DEFINE_NONDISP_HANDLE(VkPipeline) |
| 116 | VK_DEFINE_NONDISP_HANDLE(VkDescriptorSetLayout) |
| 117 | VK_DEFINE_NONDISP_HANDLE(VkSampler) |
| 118 | VK_DEFINE_NONDISP_HANDLE(VkDescriptorPool) |
| 119 | VK_DEFINE_NONDISP_HANDLE(VkDescriptorSet) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 120 | VK_DEFINE_NONDISP_HANDLE(VkFramebuffer) |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 121 | VK_DEFINE_NONDISP_HANDLE(VkCmdPool) |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 122 | |
Cody Northrop | 22b7fae | 2015-08-11 11:21:48 -0600 | [diff] [blame] | 123 | #define VK_LOD_CLAMP_NONE 1000.0f |
Courtney Goeltzenleuchter | 13dbde0 | 2015-08-28 16:47:15 -0600 | [diff] [blame] | 124 | #define VK_REMAINING_MIP_LEVELS (~0U) |
Courtney Goeltzenleuchter | 4a26189 | 2015-09-10 16:38:41 -0600 | [diff] [blame] | 125 | #define VK_REMAINING_ARRAY_LAYERS (~0U) |
Cody Northrop | 22b7fae | 2015-08-11 11:21:48 -0600 | [diff] [blame] | 126 | #define VK_WHOLE_SIZE (~0ULL) |
| 127 | #define VK_ATTACHMENT_UNUSED (~0U) |
| 128 | #define VK_TRUE 1 |
| 129 | #define VK_FALSE 0 |
Cody Northrop | 22b7fae | 2015-08-11 11:21:48 -0600 | [diff] [blame] | 130 | #define VK_QUEUE_FAMILY_IGNORED (~0U) |
Courtney Goeltzenleuchter | 304e656 | 2015-09-16 16:38:23 -0600 | [diff] [blame] | 131 | #define VK_SUBPASS_EXTERNAL (~0U) |
Cody Northrop | 22b7fae | 2015-08-11 11:21:48 -0600 | [diff] [blame] | 132 | #define VK_MAX_PHYSICAL_DEVICE_NAME 256 |
| 133 | #define VK_UUID_LENGTH 16 |
| 134 | #define VK_MAX_MEMORY_TYPES 32 |
| 135 | #define VK_MAX_MEMORY_HEAPS 16 |
| 136 | #define VK_MAX_EXTENSION_NAME 256 |
| 137 | #define VK_MAX_DESCRIPTION 256 |
| 138 | |
Courtney Goeltzenleuchter | 62b2d43 | 2015-06-04 11:35:43 -0600 | [diff] [blame] | 139 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 140 | typedef enum { |
| 141 | VK_SUCCESS = 0, |
Courtney Goeltzenleuchter | 1d2f0dd | 2015-10-22 11:03:31 -0600 | [diff] [blame] | 142 | VK_NOT_READY = 1, |
| 143 | VK_TIMEOUT = 2, |
| 144 | VK_EVENT_SET = 3, |
| 145 | VK_EVENT_RESET = 4, |
| 146 | VK_INCOMPLETE = 5, |
Courtney Goeltzenleuchter | 55659b7 | 2015-09-14 18:01:17 -0600 | [diff] [blame] | 147 | VK_ERROR_OUT_OF_HOST_MEMORY = -1, |
| 148 | VK_ERROR_OUT_OF_DEVICE_MEMORY = -2, |
| 149 | VK_ERROR_INITIALIZATION_FAILED = -3, |
| 150 | VK_ERROR_DEVICE_LOST = -4, |
| 151 | VK_ERROR_MEMORY_MAP_FAILED = -5, |
| 152 | VK_ERROR_LAYER_NOT_PRESENT = -6, |
| 153 | VK_ERROR_EXTENSION_NOT_PRESENT = -7, |
Courtney Goeltzenleuchter | fdfade7 | 2015-10-19 16:50:21 -0600 | [diff] [blame] | 154 | VK_ERROR_FEATURE_NOT_PRESENT = -8, |
| 155 | VK_ERROR_INCOMPATIBLE_DRIVER = -9, |
Courtney Goeltzenleuchter | 55659b7 | 2015-09-14 18:01:17 -0600 | [diff] [blame] | 156 | VK_RESULT_BEGIN_RANGE = VK_ERROR_INCOMPATIBLE_DRIVER, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 157 | VK_RESULT_END_RANGE = VK_INCOMPLETE, |
Courtney Goeltzenleuchter | 55659b7 | 2015-09-14 18:01:17 -0600 | [diff] [blame] | 158 | VK_RESULT_NUM = (VK_INCOMPLETE - VK_ERROR_INCOMPATIBLE_DRIVER + 1), |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 159 | VK_RESULT_MAX_ENUM = 0x7FFFFFFF |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 160 | } VkResult; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 161 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 162 | typedef enum { |
| 163 | VK_STRUCTURE_TYPE_APPLICATION_INFO = 0, |
| 164 | VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = 1, |
| 165 | VK_STRUCTURE_TYPE_MEMORY_ALLOC_INFO = 2, |
| 166 | VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 3, |
Courtney Goeltzenleuchter | 5861a1b | 2015-09-01 17:30:39 -0600 | [diff] [blame] | 167 | VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO = 4, |
| 168 | VK_STRUCTURE_TYPE_SHADER_CREATE_INFO = 5, |
| 169 | VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 6, |
| 170 | VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 7, |
| 171 | VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 8, |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 172 | VK_STRUCTURE_TYPE_CMD_BUFFER_ALLOC_INFO = 9, |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 173 | VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 10, |
| 174 | VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 11, |
| 175 | VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 12, |
| 176 | VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 13, |
| 177 | VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 14, |
| 178 | VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 15, |
| 179 | VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = 16, |
| 180 | VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO = 17, |
| 181 | VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO = 18, |
| 182 | VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO = 19, |
| 183 | VK_STRUCTURE_TYPE_PIPELINE_RASTER_STATE_CREATE_INFO = 20, |
| 184 | VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO = 21, |
| 185 | VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO = 22, |
| 186 | VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO = 23, |
| 187 | VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 24, |
| 188 | VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 25, |
| 189 | VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 26, |
| 190 | VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 27, |
| 191 | VK_STRUCTURE_TYPE_CMD_BUFFER_BEGIN_INFO = 28, |
| 192 | VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 29, |
| 193 | VK_STRUCTURE_TYPE_MEMORY_BARRIER = 30, |
| 194 | VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 31, |
| 195 | VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 32, |
| 196 | VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 33, |
| 197 | VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET = 34, |
| 198 | VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET = 35, |
| 199 | VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 36, |
| 200 | VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO = 37, |
| 201 | VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE = 38, |
| 202 | VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO = 39, |
| 203 | VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION = 40, |
| 204 | VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION = 41, |
| 205 | VK_STRUCTURE_TYPE_SUBPASS_DEPENDENCY = 42, |
| 206 | VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO = 43, |
| 207 | VK_STRUCTURE_TYPE_CMD_POOL_CREATE_INFO = 44, |
| 208 | VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO = 45, |
Courtney Goeltzenleuchter | 95edc60 | 2015-09-21 17:19:25 -0600 | [diff] [blame] | 209 | VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO = 46, |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 210 | VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOC_INFO = 47, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 211 | VK_STRUCTURE_TYPE_BEGIN_RANGE = VK_STRUCTURE_TYPE_APPLICATION_INFO, |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 212 | VK_STRUCTURE_TYPE_END_RANGE = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOC_INFO, |
| 213 | VK_STRUCTURE_TYPE_NUM = (VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOC_INFO - VK_STRUCTURE_TYPE_APPLICATION_INFO + 1), |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 214 | VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF |
| 215 | } VkStructureType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 216 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 217 | typedef enum { |
| 218 | VK_SYSTEM_ALLOC_TYPE_API_OBJECT = 0, |
| 219 | VK_SYSTEM_ALLOC_TYPE_INTERNAL = 1, |
| 220 | VK_SYSTEM_ALLOC_TYPE_INTERNAL_TEMP = 2, |
| 221 | VK_SYSTEM_ALLOC_TYPE_INTERNAL_SHADER = 3, |
| 222 | VK_SYSTEM_ALLOC_TYPE_DEBUG = 4, |
| 223 | VK_SYSTEM_ALLOC_TYPE_BEGIN_RANGE = VK_SYSTEM_ALLOC_TYPE_API_OBJECT, |
| 224 | VK_SYSTEM_ALLOC_TYPE_END_RANGE = VK_SYSTEM_ALLOC_TYPE_DEBUG, |
| 225 | VK_SYSTEM_ALLOC_TYPE_NUM = (VK_SYSTEM_ALLOC_TYPE_DEBUG - VK_SYSTEM_ALLOC_TYPE_API_OBJECT + 1), |
| 226 | VK_SYSTEM_ALLOC_TYPE_MAX_ENUM = 0x7FFFFFFF |
| 227 | } VkSystemAllocType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 228 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 229 | typedef enum { |
| 230 | VK_FORMAT_UNDEFINED = 0, |
| 231 | VK_FORMAT_R4G4_UNORM = 1, |
| 232 | VK_FORMAT_R4G4_USCALED = 2, |
| 233 | VK_FORMAT_R4G4B4A4_UNORM = 3, |
| 234 | VK_FORMAT_R4G4B4A4_USCALED = 4, |
| 235 | VK_FORMAT_R5G6B5_UNORM = 5, |
| 236 | VK_FORMAT_R5G6B5_USCALED = 6, |
| 237 | VK_FORMAT_R5G5B5A1_UNORM = 7, |
| 238 | VK_FORMAT_R5G5B5A1_USCALED = 8, |
| 239 | VK_FORMAT_R8_UNORM = 9, |
| 240 | VK_FORMAT_R8_SNORM = 10, |
| 241 | VK_FORMAT_R8_USCALED = 11, |
| 242 | VK_FORMAT_R8_SSCALED = 12, |
| 243 | VK_FORMAT_R8_UINT = 13, |
| 244 | VK_FORMAT_R8_SINT = 14, |
| 245 | VK_FORMAT_R8_SRGB = 15, |
| 246 | VK_FORMAT_R8G8_UNORM = 16, |
| 247 | VK_FORMAT_R8G8_SNORM = 17, |
| 248 | VK_FORMAT_R8G8_USCALED = 18, |
| 249 | VK_FORMAT_R8G8_SSCALED = 19, |
| 250 | VK_FORMAT_R8G8_UINT = 20, |
| 251 | VK_FORMAT_R8G8_SINT = 21, |
| 252 | VK_FORMAT_R8G8_SRGB = 22, |
| 253 | VK_FORMAT_R8G8B8_UNORM = 23, |
| 254 | VK_FORMAT_R8G8B8_SNORM = 24, |
| 255 | VK_FORMAT_R8G8B8_USCALED = 25, |
| 256 | VK_FORMAT_R8G8B8_SSCALED = 26, |
| 257 | VK_FORMAT_R8G8B8_UINT = 27, |
| 258 | VK_FORMAT_R8G8B8_SINT = 28, |
| 259 | VK_FORMAT_R8G8B8_SRGB = 29, |
| 260 | VK_FORMAT_R8G8B8A8_UNORM = 30, |
| 261 | VK_FORMAT_R8G8B8A8_SNORM = 31, |
| 262 | VK_FORMAT_R8G8B8A8_USCALED = 32, |
| 263 | VK_FORMAT_R8G8B8A8_SSCALED = 33, |
| 264 | VK_FORMAT_R8G8B8A8_UINT = 34, |
| 265 | VK_FORMAT_R8G8B8A8_SINT = 35, |
| 266 | VK_FORMAT_R8G8B8A8_SRGB = 36, |
| 267 | VK_FORMAT_R10G10B10A2_UNORM = 37, |
| 268 | VK_FORMAT_R10G10B10A2_SNORM = 38, |
| 269 | VK_FORMAT_R10G10B10A2_USCALED = 39, |
| 270 | VK_FORMAT_R10G10B10A2_SSCALED = 40, |
| 271 | VK_FORMAT_R10G10B10A2_UINT = 41, |
| 272 | VK_FORMAT_R10G10B10A2_SINT = 42, |
| 273 | VK_FORMAT_R16_UNORM = 43, |
| 274 | VK_FORMAT_R16_SNORM = 44, |
| 275 | VK_FORMAT_R16_USCALED = 45, |
| 276 | VK_FORMAT_R16_SSCALED = 46, |
| 277 | VK_FORMAT_R16_UINT = 47, |
| 278 | VK_FORMAT_R16_SINT = 48, |
| 279 | VK_FORMAT_R16_SFLOAT = 49, |
| 280 | VK_FORMAT_R16G16_UNORM = 50, |
| 281 | VK_FORMAT_R16G16_SNORM = 51, |
| 282 | VK_FORMAT_R16G16_USCALED = 52, |
| 283 | VK_FORMAT_R16G16_SSCALED = 53, |
| 284 | VK_FORMAT_R16G16_UINT = 54, |
| 285 | VK_FORMAT_R16G16_SINT = 55, |
| 286 | VK_FORMAT_R16G16_SFLOAT = 56, |
| 287 | VK_FORMAT_R16G16B16_UNORM = 57, |
| 288 | VK_FORMAT_R16G16B16_SNORM = 58, |
| 289 | VK_FORMAT_R16G16B16_USCALED = 59, |
| 290 | VK_FORMAT_R16G16B16_SSCALED = 60, |
| 291 | VK_FORMAT_R16G16B16_UINT = 61, |
| 292 | VK_FORMAT_R16G16B16_SINT = 62, |
| 293 | VK_FORMAT_R16G16B16_SFLOAT = 63, |
| 294 | VK_FORMAT_R16G16B16A16_UNORM = 64, |
| 295 | VK_FORMAT_R16G16B16A16_SNORM = 65, |
| 296 | VK_FORMAT_R16G16B16A16_USCALED = 66, |
| 297 | VK_FORMAT_R16G16B16A16_SSCALED = 67, |
| 298 | VK_FORMAT_R16G16B16A16_UINT = 68, |
| 299 | VK_FORMAT_R16G16B16A16_SINT = 69, |
| 300 | VK_FORMAT_R16G16B16A16_SFLOAT = 70, |
| 301 | VK_FORMAT_R32_UINT = 71, |
| 302 | VK_FORMAT_R32_SINT = 72, |
| 303 | VK_FORMAT_R32_SFLOAT = 73, |
| 304 | VK_FORMAT_R32G32_UINT = 74, |
| 305 | VK_FORMAT_R32G32_SINT = 75, |
| 306 | VK_FORMAT_R32G32_SFLOAT = 76, |
| 307 | VK_FORMAT_R32G32B32_UINT = 77, |
| 308 | VK_FORMAT_R32G32B32_SINT = 78, |
| 309 | VK_FORMAT_R32G32B32_SFLOAT = 79, |
| 310 | VK_FORMAT_R32G32B32A32_UINT = 80, |
| 311 | VK_FORMAT_R32G32B32A32_SINT = 81, |
| 312 | VK_FORMAT_R32G32B32A32_SFLOAT = 82, |
| 313 | VK_FORMAT_R64_SFLOAT = 83, |
| 314 | VK_FORMAT_R64G64_SFLOAT = 84, |
| 315 | VK_FORMAT_R64G64B64_SFLOAT = 85, |
| 316 | VK_FORMAT_R64G64B64A64_SFLOAT = 86, |
| 317 | VK_FORMAT_R11G11B10_UFLOAT = 87, |
| 318 | VK_FORMAT_R9G9B9E5_UFLOAT = 88, |
| 319 | VK_FORMAT_D16_UNORM = 89, |
Courtney Goeltzenleuchter | 286fb5f | 2015-09-10 17:17:43 -0600 | [diff] [blame] | 320 | VK_FORMAT_D24_UNORM_X8 = 90, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 321 | VK_FORMAT_D32_SFLOAT = 91, |
| 322 | VK_FORMAT_S8_UINT = 92, |
| 323 | VK_FORMAT_D16_UNORM_S8_UINT = 93, |
| 324 | VK_FORMAT_D24_UNORM_S8_UINT = 94, |
| 325 | VK_FORMAT_D32_SFLOAT_S8_UINT = 95, |
| 326 | VK_FORMAT_BC1_RGB_UNORM = 96, |
| 327 | VK_FORMAT_BC1_RGB_SRGB = 97, |
| 328 | VK_FORMAT_BC1_RGBA_UNORM = 98, |
| 329 | VK_FORMAT_BC1_RGBA_SRGB = 99, |
| 330 | VK_FORMAT_BC2_UNORM = 100, |
| 331 | VK_FORMAT_BC2_SRGB = 101, |
| 332 | VK_FORMAT_BC3_UNORM = 102, |
| 333 | VK_FORMAT_BC3_SRGB = 103, |
| 334 | VK_FORMAT_BC4_UNORM = 104, |
| 335 | VK_FORMAT_BC4_SNORM = 105, |
| 336 | VK_FORMAT_BC5_UNORM = 106, |
| 337 | VK_FORMAT_BC5_SNORM = 107, |
| 338 | VK_FORMAT_BC6H_UFLOAT = 108, |
| 339 | VK_FORMAT_BC6H_SFLOAT = 109, |
| 340 | VK_FORMAT_BC7_UNORM = 110, |
| 341 | VK_FORMAT_BC7_SRGB = 111, |
| 342 | VK_FORMAT_ETC2_R8G8B8_UNORM = 112, |
| 343 | VK_FORMAT_ETC2_R8G8B8_SRGB = 113, |
| 344 | VK_FORMAT_ETC2_R8G8B8A1_UNORM = 114, |
| 345 | VK_FORMAT_ETC2_R8G8B8A1_SRGB = 115, |
| 346 | VK_FORMAT_ETC2_R8G8B8A8_UNORM = 116, |
| 347 | VK_FORMAT_ETC2_R8G8B8A8_SRGB = 117, |
| 348 | VK_FORMAT_EAC_R11_UNORM = 118, |
| 349 | VK_FORMAT_EAC_R11_SNORM = 119, |
| 350 | VK_FORMAT_EAC_R11G11_UNORM = 120, |
| 351 | VK_FORMAT_EAC_R11G11_SNORM = 121, |
| 352 | VK_FORMAT_ASTC_4x4_UNORM = 122, |
| 353 | VK_FORMAT_ASTC_4x4_SRGB = 123, |
| 354 | VK_FORMAT_ASTC_5x4_UNORM = 124, |
| 355 | VK_FORMAT_ASTC_5x4_SRGB = 125, |
| 356 | VK_FORMAT_ASTC_5x5_UNORM = 126, |
| 357 | VK_FORMAT_ASTC_5x5_SRGB = 127, |
| 358 | VK_FORMAT_ASTC_6x5_UNORM = 128, |
| 359 | VK_FORMAT_ASTC_6x5_SRGB = 129, |
| 360 | VK_FORMAT_ASTC_6x6_UNORM = 130, |
| 361 | VK_FORMAT_ASTC_6x6_SRGB = 131, |
| 362 | VK_FORMAT_ASTC_8x5_UNORM = 132, |
| 363 | VK_FORMAT_ASTC_8x5_SRGB = 133, |
| 364 | VK_FORMAT_ASTC_8x6_UNORM = 134, |
| 365 | VK_FORMAT_ASTC_8x6_SRGB = 135, |
| 366 | VK_FORMAT_ASTC_8x8_UNORM = 136, |
| 367 | VK_FORMAT_ASTC_8x8_SRGB = 137, |
| 368 | VK_FORMAT_ASTC_10x5_UNORM = 138, |
| 369 | VK_FORMAT_ASTC_10x5_SRGB = 139, |
| 370 | VK_FORMAT_ASTC_10x6_UNORM = 140, |
| 371 | VK_FORMAT_ASTC_10x6_SRGB = 141, |
| 372 | VK_FORMAT_ASTC_10x8_UNORM = 142, |
| 373 | VK_FORMAT_ASTC_10x8_SRGB = 143, |
| 374 | VK_FORMAT_ASTC_10x10_UNORM = 144, |
| 375 | VK_FORMAT_ASTC_10x10_SRGB = 145, |
| 376 | VK_FORMAT_ASTC_12x10_UNORM = 146, |
| 377 | VK_FORMAT_ASTC_12x10_SRGB = 147, |
| 378 | VK_FORMAT_ASTC_12x12_UNORM = 148, |
| 379 | VK_FORMAT_ASTC_12x12_SRGB = 149, |
| 380 | VK_FORMAT_B4G4R4A4_UNORM = 150, |
| 381 | VK_FORMAT_B5G5R5A1_UNORM = 151, |
| 382 | VK_FORMAT_B5G6R5_UNORM = 152, |
| 383 | VK_FORMAT_B5G6R5_USCALED = 153, |
| 384 | VK_FORMAT_B8G8R8_UNORM = 154, |
| 385 | VK_FORMAT_B8G8R8_SNORM = 155, |
| 386 | VK_FORMAT_B8G8R8_USCALED = 156, |
| 387 | VK_FORMAT_B8G8R8_SSCALED = 157, |
| 388 | VK_FORMAT_B8G8R8_UINT = 158, |
| 389 | VK_FORMAT_B8G8R8_SINT = 159, |
| 390 | VK_FORMAT_B8G8R8_SRGB = 160, |
| 391 | VK_FORMAT_B8G8R8A8_UNORM = 161, |
| 392 | VK_FORMAT_B8G8R8A8_SNORM = 162, |
| 393 | VK_FORMAT_B8G8R8A8_USCALED = 163, |
| 394 | VK_FORMAT_B8G8R8A8_SSCALED = 164, |
| 395 | VK_FORMAT_B8G8R8A8_UINT = 165, |
| 396 | VK_FORMAT_B8G8R8A8_SINT = 166, |
| 397 | VK_FORMAT_B8G8R8A8_SRGB = 167, |
| 398 | VK_FORMAT_B10G10R10A2_UNORM = 168, |
| 399 | VK_FORMAT_B10G10R10A2_SNORM = 169, |
| 400 | VK_FORMAT_B10G10R10A2_USCALED = 170, |
| 401 | VK_FORMAT_B10G10R10A2_SSCALED = 171, |
| 402 | VK_FORMAT_B10G10R10A2_UINT = 172, |
| 403 | VK_FORMAT_B10G10R10A2_SINT = 173, |
| 404 | VK_FORMAT_BEGIN_RANGE = VK_FORMAT_UNDEFINED, |
| 405 | VK_FORMAT_END_RANGE = VK_FORMAT_B10G10R10A2_SINT, |
| 406 | VK_FORMAT_NUM = (VK_FORMAT_B10G10R10A2_SINT - VK_FORMAT_UNDEFINED + 1), |
| 407 | VK_FORMAT_MAX_ENUM = 0x7FFFFFFF |
| 408 | } VkFormat; |
| 409 | |
| 410 | typedef enum { |
| 411 | VK_IMAGE_TYPE_1D = 0, |
| 412 | VK_IMAGE_TYPE_2D = 1, |
| 413 | VK_IMAGE_TYPE_3D = 2, |
| 414 | VK_IMAGE_TYPE_BEGIN_RANGE = VK_IMAGE_TYPE_1D, |
| 415 | VK_IMAGE_TYPE_END_RANGE = VK_IMAGE_TYPE_3D, |
| 416 | VK_IMAGE_TYPE_NUM = (VK_IMAGE_TYPE_3D - VK_IMAGE_TYPE_1D + 1), |
| 417 | VK_IMAGE_TYPE_MAX_ENUM = 0x7FFFFFFF |
| 418 | } VkImageType; |
| 419 | |
| 420 | typedef enum { |
| 421 | VK_IMAGE_TILING_LINEAR = 0, |
| 422 | VK_IMAGE_TILING_OPTIMAL = 1, |
| 423 | VK_IMAGE_TILING_BEGIN_RANGE = VK_IMAGE_TILING_LINEAR, |
| 424 | VK_IMAGE_TILING_END_RANGE = VK_IMAGE_TILING_OPTIMAL, |
| 425 | VK_IMAGE_TILING_NUM = (VK_IMAGE_TILING_OPTIMAL - VK_IMAGE_TILING_LINEAR + 1), |
| 426 | VK_IMAGE_TILING_MAX_ENUM = 0x7FFFFFFF |
| 427 | } VkImageTiling; |
| 428 | |
| 429 | typedef enum { |
| 430 | VK_PHYSICAL_DEVICE_TYPE_OTHER = 0, |
| 431 | VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU = 1, |
| 432 | VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU = 2, |
| 433 | VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU = 3, |
| 434 | VK_PHYSICAL_DEVICE_TYPE_CPU = 4, |
| 435 | VK_PHYSICAL_DEVICE_TYPE_BEGIN_RANGE = VK_PHYSICAL_DEVICE_TYPE_OTHER, |
| 436 | VK_PHYSICAL_DEVICE_TYPE_END_RANGE = VK_PHYSICAL_DEVICE_TYPE_CPU, |
| 437 | VK_PHYSICAL_DEVICE_TYPE_NUM = (VK_PHYSICAL_DEVICE_TYPE_CPU - VK_PHYSICAL_DEVICE_TYPE_OTHER + 1), |
| 438 | VK_PHYSICAL_DEVICE_TYPE_MAX_ENUM = 0x7FFFFFFF |
| 439 | } VkPhysicalDeviceType; |
| 440 | |
| 441 | typedef enum { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 442 | VK_QUERY_TYPE_OCCLUSION = 0, |
| 443 | VK_QUERY_TYPE_PIPELINE_STATISTICS = 1, |
| 444 | VK_QUERY_TYPE_BEGIN_RANGE = VK_QUERY_TYPE_OCCLUSION, |
| 445 | VK_QUERY_TYPE_END_RANGE = VK_QUERY_TYPE_PIPELINE_STATISTICS, |
| 446 | VK_QUERY_TYPE_NUM = (VK_QUERY_TYPE_PIPELINE_STATISTICS - VK_QUERY_TYPE_OCCLUSION + 1), |
| 447 | VK_QUERY_TYPE_MAX_ENUM = 0x7FFFFFFF |
| 448 | } VkQueryType; |
| 449 | |
| 450 | typedef enum { |
| 451 | VK_SHARING_MODE_EXCLUSIVE = 0, |
| 452 | VK_SHARING_MODE_CONCURRENT = 1, |
| 453 | VK_SHARING_MODE_BEGIN_RANGE = VK_SHARING_MODE_EXCLUSIVE, |
| 454 | VK_SHARING_MODE_END_RANGE = VK_SHARING_MODE_CONCURRENT, |
| 455 | VK_SHARING_MODE_NUM = (VK_SHARING_MODE_CONCURRENT - VK_SHARING_MODE_EXCLUSIVE + 1), |
| 456 | VK_SHARING_MODE_MAX_ENUM = 0x7FFFFFFF |
| 457 | } VkSharingMode; |
| 458 | |
| 459 | typedef enum { |
Courtney Goeltzenleuchter | b1fe3f8 | 2015-09-16 11:51:46 -0600 | [diff] [blame] | 460 | VK_IMAGE_LAYOUT_UNDEFINED = 0, |
| 461 | VK_IMAGE_LAYOUT_GENERAL = 1, |
| 462 | VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = 2, |
| 463 | VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = 3, |
| 464 | VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = 4, |
| 465 | VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = 5, |
| 466 | VK_IMAGE_LAYOUT_TRANSFER_SOURCE_OPTIMAL = 6, |
| 467 | VK_IMAGE_LAYOUT_TRANSFER_DESTINATION_OPTIMAL = 7, |
| 468 | VK_IMAGE_LAYOUT_PREINITIALIZED = 8, |
| 469 | VK_IMAGE_LAYOUT_BEGIN_RANGE = VK_IMAGE_LAYOUT_UNDEFINED, |
| 470 | VK_IMAGE_LAYOUT_END_RANGE = VK_IMAGE_LAYOUT_PREINITIALIZED, |
| 471 | VK_IMAGE_LAYOUT_NUM = (VK_IMAGE_LAYOUT_PREINITIALIZED - VK_IMAGE_LAYOUT_UNDEFINED + 1), |
| 472 | VK_IMAGE_LAYOUT_MAX_ENUM = 0x7FFFFFFF |
| 473 | } VkImageLayout; |
| 474 | |
| 475 | typedef enum { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 476 | VK_IMAGE_VIEW_TYPE_1D = 0, |
| 477 | VK_IMAGE_VIEW_TYPE_2D = 1, |
| 478 | VK_IMAGE_VIEW_TYPE_3D = 2, |
| 479 | VK_IMAGE_VIEW_TYPE_CUBE = 3, |
| 480 | VK_IMAGE_VIEW_TYPE_1D_ARRAY = 4, |
| 481 | VK_IMAGE_VIEW_TYPE_2D_ARRAY = 5, |
| 482 | VK_IMAGE_VIEW_TYPE_CUBE_ARRAY = 6, |
| 483 | VK_IMAGE_VIEW_TYPE_BEGIN_RANGE = VK_IMAGE_VIEW_TYPE_1D, |
| 484 | VK_IMAGE_VIEW_TYPE_END_RANGE = VK_IMAGE_VIEW_TYPE_CUBE_ARRAY, |
| 485 | VK_IMAGE_VIEW_TYPE_NUM = (VK_IMAGE_VIEW_TYPE_CUBE_ARRAY - VK_IMAGE_VIEW_TYPE_1D + 1), |
| 486 | VK_IMAGE_VIEW_TYPE_MAX_ENUM = 0x7FFFFFFF |
| 487 | } VkImageViewType; |
| 488 | |
| 489 | typedef enum { |
| 490 | VK_CHANNEL_SWIZZLE_ZERO = 0, |
| 491 | VK_CHANNEL_SWIZZLE_ONE = 1, |
| 492 | VK_CHANNEL_SWIZZLE_R = 2, |
| 493 | VK_CHANNEL_SWIZZLE_G = 3, |
| 494 | VK_CHANNEL_SWIZZLE_B = 4, |
| 495 | VK_CHANNEL_SWIZZLE_A = 5, |
| 496 | VK_CHANNEL_SWIZZLE_BEGIN_RANGE = VK_CHANNEL_SWIZZLE_ZERO, |
| 497 | VK_CHANNEL_SWIZZLE_END_RANGE = VK_CHANNEL_SWIZZLE_A, |
| 498 | VK_CHANNEL_SWIZZLE_NUM = (VK_CHANNEL_SWIZZLE_A - VK_CHANNEL_SWIZZLE_ZERO + 1), |
| 499 | VK_CHANNEL_SWIZZLE_MAX_ENUM = 0x7FFFFFFF |
| 500 | } VkChannelSwizzle; |
| 501 | |
| 502 | typedef enum { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 503 | VK_VERTEX_INPUT_STEP_RATE_VERTEX = 0, |
| 504 | VK_VERTEX_INPUT_STEP_RATE_INSTANCE = 1, |
| 505 | VK_VERTEX_INPUT_STEP_RATE_BEGIN_RANGE = VK_VERTEX_INPUT_STEP_RATE_VERTEX, |
| 506 | VK_VERTEX_INPUT_STEP_RATE_END_RANGE = VK_VERTEX_INPUT_STEP_RATE_INSTANCE, |
| 507 | VK_VERTEX_INPUT_STEP_RATE_NUM = (VK_VERTEX_INPUT_STEP_RATE_INSTANCE - VK_VERTEX_INPUT_STEP_RATE_VERTEX + 1), |
| 508 | VK_VERTEX_INPUT_STEP_RATE_MAX_ENUM = 0x7FFFFFFF |
| 509 | } VkVertexInputStepRate; |
| 510 | |
| 511 | typedef enum { |
| 512 | VK_PRIMITIVE_TOPOLOGY_POINT_LIST = 0, |
| 513 | VK_PRIMITIVE_TOPOLOGY_LINE_LIST = 1, |
| 514 | VK_PRIMITIVE_TOPOLOGY_LINE_STRIP = 2, |
| 515 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST = 3, |
| 516 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP = 4, |
| 517 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN = 5, |
| 518 | VK_PRIMITIVE_TOPOLOGY_LINE_LIST_ADJ = 6, |
| 519 | VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_ADJ = 7, |
| 520 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_ADJ = 8, |
| 521 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_ADJ = 9, |
| 522 | VK_PRIMITIVE_TOPOLOGY_PATCH = 10, |
| 523 | VK_PRIMITIVE_TOPOLOGY_BEGIN_RANGE = VK_PRIMITIVE_TOPOLOGY_POINT_LIST, |
| 524 | VK_PRIMITIVE_TOPOLOGY_END_RANGE = VK_PRIMITIVE_TOPOLOGY_PATCH, |
| 525 | VK_PRIMITIVE_TOPOLOGY_NUM = (VK_PRIMITIVE_TOPOLOGY_PATCH - VK_PRIMITIVE_TOPOLOGY_POINT_LIST + 1), |
| 526 | VK_PRIMITIVE_TOPOLOGY_MAX_ENUM = 0x7FFFFFFF |
| 527 | } VkPrimitiveTopology; |
| 528 | |
| 529 | typedef enum { |
| 530 | VK_FILL_MODE_POINTS = 0, |
| 531 | VK_FILL_MODE_WIREFRAME = 1, |
| 532 | VK_FILL_MODE_SOLID = 2, |
| 533 | VK_FILL_MODE_BEGIN_RANGE = VK_FILL_MODE_POINTS, |
| 534 | VK_FILL_MODE_END_RANGE = VK_FILL_MODE_SOLID, |
| 535 | VK_FILL_MODE_NUM = (VK_FILL_MODE_SOLID - VK_FILL_MODE_POINTS + 1), |
| 536 | VK_FILL_MODE_MAX_ENUM = 0x7FFFFFFF |
| 537 | } VkFillMode; |
| 538 | |
| 539 | typedef enum { |
| 540 | VK_CULL_MODE_NONE = 0, |
| 541 | VK_CULL_MODE_FRONT = 1, |
| 542 | VK_CULL_MODE_BACK = 2, |
| 543 | VK_CULL_MODE_FRONT_AND_BACK = 3, |
| 544 | VK_CULL_MODE_BEGIN_RANGE = VK_CULL_MODE_NONE, |
| 545 | VK_CULL_MODE_END_RANGE = VK_CULL_MODE_FRONT_AND_BACK, |
| 546 | VK_CULL_MODE_NUM = (VK_CULL_MODE_FRONT_AND_BACK - VK_CULL_MODE_NONE + 1), |
| 547 | VK_CULL_MODE_MAX_ENUM = 0x7FFFFFFF |
| 548 | } VkCullMode; |
| 549 | |
| 550 | typedef enum { |
| 551 | VK_FRONT_FACE_CCW = 0, |
| 552 | VK_FRONT_FACE_CW = 1, |
| 553 | VK_FRONT_FACE_BEGIN_RANGE = VK_FRONT_FACE_CCW, |
| 554 | VK_FRONT_FACE_END_RANGE = VK_FRONT_FACE_CW, |
| 555 | VK_FRONT_FACE_NUM = (VK_FRONT_FACE_CW - VK_FRONT_FACE_CCW + 1), |
| 556 | VK_FRONT_FACE_MAX_ENUM = 0x7FFFFFFF |
| 557 | } VkFrontFace; |
| 558 | |
| 559 | typedef enum { |
| 560 | VK_COMPARE_OP_NEVER = 0, |
| 561 | VK_COMPARE_OP_LESS = 1, |
| 562 | VK_COMPARE_OP_EQUAL = 2, |
| 563 | VK_COMPARE_OP_LESS_EQUAL = 3, |
| 564 | VK_COMPARE_OP_GREATER = 4, |
| 565 | VK_COMPARE_OP_NOT_EQUAL = 5, |
| 566 | VK_COMPARE_OP_GREATER_EQUAL = 6, |
| 567 | VK_COMPARE_OP_ALWAYS = 7, |
| 568 | VK_COMPARE_OP_BEGIN_RANGE = VK_COMPARE_OP_NEVER, |
| 569 | VK_COMPARE_OP_END_RANGE = VK_COMPARE_OP_ALWAYS, |
| 570 | VK_COMPARE_OP_NUM = (VK_COMPARE_OP_ALWAYS - VK_COMPARE_OP_NEVER + 1), |
| 571 | VK_COMPARE_OP_MAX_ENUM = 0x7FFFFFFF |
| 572 | } VkCompareOp; |
| 573 | |
| 574 | typedef enum { |
| 575 | VK_STENCIL_OP_KEEP = 0, |
| 576 | VK_STENCIL_OP_ZERO = 1, |
| 577 | VK_STENCIL_OP_REPLACE = 2, |
| 578 | VK_STENCIL_OP_INC_CLAMP = 3, |
| 579 | VK_STENCIL_OP_DEC_CLAMP = 4, |
| 580 | VK_STENCIL_OP_INVERT = 5, |
| 581 | VK_STENCIL_OP_INC_WRAP = 6, |
| 582 | VK_STENCIL_OP_DEC_WRAP = 7, |
| 583 | VK_STENCIL_OP_BEGIN_RANGE = VK_STENCIL_OP_KEEP, |
| 584 | VK_STENCIL_OP_END_RANGE = VK_STENCIL_OP_DEC_WRAP, |
| 585 | VK_STENCIL_OP_NUM = (VK_STENCIL_OP_DEC_WRAP - VK_STENCIL_OP_KEEP + 1), |
| 586 | VK_STENCIL_OP_MAX_ENUM = 0x7FFFFFFF |
| 587 | } VkStencilOp; |
| 588 | |
| 589 | typedef enum { |
| 590 | VK_LOGIC_OP_CLEAR = 0, |
| 591 | VK_LOGIC_OP_AND = 1, |
| 592 | VK_LOGIC_OP_AND_REVERSE = 2, |
| 593 | VK_LOGIC_OP_COPY = 3, |
| 594 | VK_LOGIC_OP_AND_INVERTED = 4, |
| 595 | VK_LOGIC_OP_NOOP = 5, |
| 596 | VK_LOGIC_OP_XOR = 6, |
| 597 | VK_LOGIC_OP_OR = 7, |
| 598 | VK_LOGIC_OP_NOR = 8, |
| 599 | VK_LOGIC_OP_EQUIV = 9, |
| 600 | VK_LOGIC_OP_INVERT = 10, |
| 601 | VK_LOGIC_OP_OR_REVERSE = 11, |
| 602 | VK_LOGIC_OP_COPY_INVERTED = 12, |
| 603 | VK_LOGIC_OP_OR_INVERTED = 13, |
| 604 | VK_LOGIC_OP_NAND = 14, |
| 605 | VK_LOGIC_OP_SET = 15, |
| 606 | VK_LOGIC_OP_BEGIN_RANGE = VK_LOGIC_OP_CLEAR, |
| 607 | VK_LOGIC_OP_END_RANGE = VK_LOGIC_OP_SET, |
| 608 | VK_LOGIC_OP_NUM = (VK_LOGIC_OP_SET - VK_LOGIC_OP_CLEAR + 1), |
| 609 | VK_LOGIC_OP_MAX_ENUM = 0x7FFFFFFF |
| 610 | } VkLogicOp; |
| 611 | |
| 612 | typedef enum { |
| 613 | VK_BLEND_ZERO = 0, |
| 614 | VK_BLEND_ONE = 1, |
| 615 | VK_BLEND_SRC_COLOR = 2, |
| 616 | VK_BLEND_ONE_MINUS_SRC_COLOR = 3, |
| 617 | VK_BLEND_DEST_COLOR = 4, |
| 618 | VK_BLEND_ONE_MINUS_DEST_COLOR = 5, |
| 619 | VK_BLEND_SRC_ALPHA = 6, |
| 620 | VK_BLEND_ONE_MINUS_SRC_ALPHA = 7, |
| 621 | VK_BLEND_DEST_ALPHA = 8, |
| 622 | VK_BLEND_ONE_MINUS_DEST_ALPHA = 9, |
| 623 | VK_BLEND_CONSTANT_COLOR = 10, |
| 624 | VK_BLEND_ONE_MINUS_CONSTANT_COLOR = 11, |
| 625 | VK_BLEND_CONSTANT_ALPHA = 12, |
| 626 | VK_BLEND_ONE_MINUS_CONSTANT_ALPHA = 13, |
| 627 | VK_BLEND_SRC_ALPHA_SATURATE = 14, |
| 628 | VK_BLEND_SRC1_COLOR = 15, |
| 629 | VK_BLEND_ONE_MINUS_SRC1_COLOR = 16, |
| 630 | VK_BLEND_SRC1_ALPHA = 17, |
| 631 | VK_BLEND_ONE_MINUS_SRC1_ALPHA = 18, |
| 632 | VK_BLEND_BEGIN_RANGE = VK_BLEND_ZERO, |
| 633 | VK_BLEND_END_RANGE = VK_BLEND_ONE_MINUS_SRC1_ALPHA, |
| 634 | VK_BLEND_NUM = (VK_BLEND_ONE_MINUS_SRC1_ALPHA - VK_BLEND_ZERO + 1), |
| 635 | VK_BLEND_MAX_ENUM = 0x7FFFFFFF |
| 636 | } VkBlend; |
| 637 | |
| 638 | typedef enum { |
| 639 | VK_BLEND_OP_ADD = 0, |
| 640 | VK_BLEND_OP_SUBTRACT = 1, |
| 641 | VK_BLEND_OP_REVERSE_SUBTRACT = 2, |
| 642 | VK_BLEND_OP_MIN = 3, |
| 643 | VK_BLEND_OP_MAX = 4, |
| 644 | VK_BLEND_OP_BEGIN_RANGE = VK_BLEND_OP_ADD, |
| 645 | VK_BLEND_OP_END_RANGE = VK_BLEND_OP_MAX, |
| 646 | VK_BLEND_OP_NUM = (VK_BLEND_OP_MAX - VK_BLEND_OP_ADD + 1), |
| 647 | VK_BLEND_OP_MAX_ENUM = 0x7FFFFFFF |
| 648 | } VkBlendOp; |
| 649 | |
| 650 | typedef enum { |
Courtney Goeltzenleuchter | 95edc60 | 2015-09-21 17:19:25 -0600 | [diff] [blame] | 651 | VK_DYNAMIC_STATE_VIEWPORT = 0, |
| 652 | VK_DYNAMIC_STATE_SCISSOR = 1, |
| 653 | VK_DYNAMIC_STATE_LINE_WIDTH = 2, |
| 654 | VK_DYNAMIC_STATE_DEPTH_BIAS = 3, |
| 655 | VK_DYNAMIC_STATE_BLEND_CONSTANTS = 4, |
| 656 | VK_DYNAMIC_STATE_DEPTH_BOUNDS = 5, |
| 657 | VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK = 6, |
| 658 | VK_DYNAMIC_STATE_STENCIL_WRITE_MASK = 7, |
| 659 | VK_DYNAMIC_STATE_STENCIL_REFERENCE = 8, |
| 660 | VK_DYNAMIC_STATE_BEGIN_RANGE = VK_DYNAMIC_STATE_VIEWPORT, |
| 661 | VK_DYNAMIC_STATE_END_RANGE = VK_DYNAMIC_STATE_STENCIL_REFERENCE, |
| 662 | VK_DYNAMIC_STATE_NUM = (VK_DYNAMIC_STATE_STENCIL_REFERENCE - VK_DYNAMIC_STATE_VIEWPORT + 1), |
| 663 | VK_DYNAMIC_STATE_MAX_ENUM = 0x7FFFFFFF |
| 664 | } VkDynamicState; |
| 665 | |
| 666 | typedef enum { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 667 | VK_TEX_FILTER_NEAREST = 0, |
| 668 | VK_TEX_FILTER_LINEAR = 1, |
| 669 | VK_TEX_FILTER_BEGIN_RANGE = VK_TEX_FILTER_NEAREST, |
| 670 | VK_TEX_FILTER_END_RANGE = VK_TEX_FILTER_LINEAR, |
| 671 | VK_TEX_FILTER_NUM = (VK_TEX_FILTER_LINEAR - VK_TEX_FILTER_NEAREST + 1), |
| 672 | VK_TEX_FILTER_MAX_ENUM = 0x7FFFFFFF |
| 673 | } VkTexFilter; |
| 674 | |
| 675 | typedef enum { |
| 676 | VK_TEX_MIPMAP_MODE_BASE = 0, |
| 677 | VK_TEX_MIPMAP_MODE_NEAREST = 1, |
| 678 | VK_TEX_MIPMAP_MODE_LINEAR = 2, |
| 679 | VK_TEX_MIPMAP_MODE_BEGIN_RANGE = VK_TEX_MIPMAP_MODE_BASE, |
| 680 | VK_TEX_MIPMAP_MODE_END_RANGE = VK_TEX_MIPMAP_MODE_LINEAR, |
| 681 | VK_TEX_MIPMAP_MODE_NUM = (VK_TEX_MIPMAP_MODE_LINEAR - VK_TEX_MIPMAP_MODE_BASE + 1), |
| 682 | VK_TEX_MIPMAP_MODE_MAX_ENUM = 0x7FFFFFFF |
| 683 | } VkTexMipmapMode; |
| 684 | |
| 685 | typedef enum { |
Courtney Goeltzenleuchter | 9795335 | 2015-09-10 14:08:50 -0600 | [diff] [blame] | 686 | VK_TEX_ADDRESS_MODE_WRAP = 0, |
| 687 | VK_TEX_ADDRESS_MODE_MIRROR = 1, |
| 688 | VK_TEX_ADDRESS_MODE_CLAMP = 2, |
| 689 | VK_TEX_ADDRESS_MODE_MIRROR_ONCE = 3, |
| 690 | VK_TEX_ADDRESS_MODE_CLAMP_BORDER = 4, |
Courtney Goeltzenleuchter | 38e48f3 | 2015-10-19 16:23:53 -0600 | [diff] [blame] | 691 | VK_TEX_ADDRESS_MODE_BEGIN_RANGE = VK_TEX_ADDRESS_MODE_WRAP, |
| 692 | VK_TEX_ADDRESS_MODE_END_RANGE = VK_TEX_ADDRESS_MODE_CLAMP_BORDER, |
| 693 | VK_TEX_ADDRESS_MODE_NUM = (VK_TEX_ADDRESS_MODE_CLAMP_BORDER - VK_TEX_ADDRESS_MODE_WRAP + 1), |
| 694 | VK_TEX_ADDRESS_MODE_MAX_ENUM = 0x7FFFFFFF |
Courtney Goeltzenleuchter | 9795335 | 2015-09-10 14:08:50 -0600 | [diff] [blame] | 695 | } VkTexAddressMode; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 696 | |
| 697 | typedef enum { |
| 698 | VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = 0, |
| 699 | VK_BORDER_COLOR_INT_TRANSPARENT_BLACK = 1, |
| 700 | VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK = 2, |
| 701 | VK_BORDER_COLOR_INT_OPAQUE_BLACK = 3, |
| 702 | VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE = 4, |
| 703 | VK_BORDER_COLOR_INT_OPAQUE_WHITE = 5, |
| 704 | VK_BORDER_COLOR_BEGIN_RANGE = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK, |
| 705 | VK_BORDER_COLOR_END_RANGE = VK_BORDER_COLOR_INT_OPAQUE_WHITE, |
| 706 | VK_BORDER_COLOR_NUM = (VK_BORDER_COLOR_INT_OPAQUE_WHITE - VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK + 1), |
| 707 | VK_BORDER_COLOR_MAX_ENUM = 0x7FFFFFFF |
| 708 | } VkBorderColor; |
| 709 | |
| 710 | typedef enum { |
| 711 | VK_DESCRIPTOR_TYPE_SAMPLER = 0, |
| 712 | VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = 1, |
| 713 | VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE = 2, |
| 714 | VK_DESCRIPTOR_TYPE_STORAGE_IMAGE = 3, |
| 715 | VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = 4, |
| 716 | VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = 5, |
| 717 | VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER = 6, |
| 718 | VK_DESCRIPTOR_TYPE_STORAGE_BUFFER = 7, |
| 719 | VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = 8, |
| 720 | VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = 9, |
| 721 | VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT = 10, |
| 722 | VK_DESCRIPTOR_TYPE_BEGIN_RANGE = VK_DESCRIPTOR_TYPE_SAMPLER, |
| 723 | VK_DESCRIPTOR_TYPE_END_RANGE = VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, |
| 724 | VK_DESCRIPTOR_TYPE_NUM = (VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT - VK_DESCRIPTOR_TYPE_SAMPLER + 1), |
| 725 | VK_DESCRIPTOR_TYPE_MAX_ENUM = 0x7FFFFFFF |
| 726 | } VkDescriptorType; |
| 727 | |
| 728 | typedef enum { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 729 | VK_ATTACHMENT_LOAD_OP_LOAD = 0, |
| 730 | VK_ATTACHMENT_LOAD_OP_CLEAR = 1, |
| 731 | VK_ATTACHMENT_LOAD_OP_DONT_CARE = 2, |
| 732 | VK_ATTACHMENT_LOAD_OP_BEGIN_RANGE = VK_ATTACHMENT_LOAD_OP_LOAD, |
| 733 | VK_ATTACHMENT_LOAD_OP_END_RANGE = VK_ATTACHMENT_LOAD_OP_DONT_CARE, |
| 734 | VK_ATTACHMENT_LOAD_OP_NUM = (VK_ATTACHMENT_LOAD_OP_DONT_CARE - VK_ATTACHMENT_LOAD_OP_LOAD + 1), |
| 735 | VK_ATTACHMENT_LOAD_OP_MAX_ENUM = 0x7FFFFFFF |
| 736 | } VkAttachmentLoadOp; |
| 737 | |
| 738 | typedef enum { |
| 739 | VK_ATTACHMENT_STORE_OP_STORE = 0, |
| 740 | VK_ATTACHMENT_STORE_OP_DONT_CARE = 1, |
| 741 | VK_ATTACHMENT_STORE_OP_BEGIN_RANGE = VK_ATTACHMENT_STORE_OP_STORE, |
| 742 | VK_ATTACHMENT_STORE_OP_END_RANGE = VK_ATTACHMENT_STORE_OP_DONT_CARE, |
| 743 | VK_ATTACHMENT_STORE_OP_NUM = (VK_ATTACHMENT_STORE_OP_DONT_CARE - VK_ATTACHMENT_STORE_OP_STORE + 1), |
| 744 | VK_ATTACHMENT_STORE_OP_MAX_ENUM = 0x7FFFFFFF |
| 745 | } VkAttachmentStoreOp; |
| 746 | |
| 747 | typedef enum { |
| 748 | VK_PIPELINE_BIND_POINT_COMPUTE = 0, |
| 749 | VK_PIPELINE_BIND_POINT_GRAPHICS = 1, |
| 750 | VK_PIPELINE_BIND_POINT_BEGIN_RANGE = VK_PIPELINE_BIND_POINT_COMPUTE, |
| 751 | VK_PIPELINE_BIND_POINT_END_RANGE = VK_PIPELINE_BIND_POINT_GRAPHICS, |
| 752 | VK_PIPELINE_BIND_POINT_NUM = (VK_PIPELINE_BIND_POINT_GRAPHICS - VK_PIPELINE_BIND_POINT_COMPUTE + 1), |
| 753 | VK_PIPELINE_BIND_POINT_MAX_ENUM = 0x7FFFFFFF |
| 754 | } VkPipelineBindPoint; |
| 755 | |
| 756 | typedef enum { |
| 757 | VK_CMD_BUFFER_LEVEL_PRIMARY = 0, |
| 758 | VK_CMD_BUFFER_LEVEL_SECONDARY = 1, |
| 759 | VK_CMD_BUFFER_LEVEL_BEGIN_RANGE = VK_CMD_BUFFER_LEVEL_PRIMARY, |
| 760 | VK_CMD_BUFFER_LEVEL_END_RANGE = VK_CMD_BUFFER_LEVEL_SECONDARY, |
| 761 | VK_CMD_BUFFER_LEVEL_NUM = (VK_CMD_BUFFER_LEVEL_SECONDARY - VK_CMD_BUFFER_LEVEL_PRIMARY + 1), |
| 762 | VK_CMD_BUFFER_LEVEL_MAX_ENUM = 0x7FFFFFFF |
| 763 | } VkCmdBufferLevel; |
| 764 | |
| 765 | typedef enum { |
| 766 | VK_INDEX_TYPE_UINT16 = 0, |
| 767 | VK_INDEX_TYPE_UINT32 = 1, |
| 768 | VK_INDEX_TYPE_BEGIN_RANGE = VK_INDEX_TYPE_UINT16, |
| 769 | VK_INDEX_TYPE_END_RANGE = VK_INDEX_TYPE_UINT32, |
| 770 | VK_INDEX_TYPE_NUM = (VK_INDEX_TYPE_UINT32 - VK_INDEX_TYPE_UINT16 + 1), |
| 771 | VK_INDEX_TYPE_MAX_ENUM = 0x7FFFFFFF |
| 772 | } VkIndexType; |
| 773 | |
| 774 | typedef enum { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 775 | VK_RENDER_PASS_CONTENTS_INLINE = 0, |
| 776 | VK_RENDER_PASS_CONTENTS_SECONDARY_CMD_BUFFERS = 1, |
| 777 | VK_RENDER_PASS_CONTENTS_BEGIN_RANGE = VK_RENDER_PASS_CONTENTS_INLINE, |
| 778 | VK_RENDER_PASS_CONTENTS_END_RANGE = VK_RENDER_PASS_CONTENTS_SECONDARY_CMD_BUFFERS, |
| 779 | VK_RENDER_PASS_CONTENTS_NUM = (VK_RENDER_PASS_CONTENTS_SECONDARY_CMD_BUFFERS - VK_RENDER_PASS_CONTENTS_INLINE + 1), |
| 780 | VK_RENDER_PASS_CONTENTS_MAX_ENUM = 0x7FFFFFFF |
| 781 | } VkRenderPassContents; |
| 782 | |
Cody Northrop | 22b7fae | 2015-08-11 11:21:48 -0600 | [diff] [blame] | 783 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 784 | typedef enum { |
| 785 | VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = 0x00000001, |
| 786 | VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = 0x00000002, |
| 787 | VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = 0x00000004, |
| 788 | VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000008, |
| 789 | VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = 0x00000010, |
| 790 | VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 0x00000020, |
| 791 | VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = 0x00000040, |
| 792 | VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 0x00000080, |
| 793 | VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = 0x00000100, |
| 794 | VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000200, |
Courtney Goeltzenleuchter | f1ece60 | 2015-09-10 16:25:49 -0600 | [diff] [blame] | 795 | VK_FORMAT_FEATURE_BLIT_SOURCE_BIT = 0x00000400, |
| 796 | VK_FORMAT_FEATURE_BLIT_DESTINATION_BIT = 0x00000800, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 797 | } VkFormatFeatureFlagBits; |
| 798 | typedef VkFlags VkFormatFeatureFlags; |
| 799 | |
| 800 | typedef enum { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 801 | VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT = 0x00000001, |
| 802 | VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT = 0x00000002, |
| 803 | VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004, |
| 804 | VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008, |
| 805 | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010, |
Courtney Goeltzenleuchter | 660f0ca | 2015-09-10 14:14:11 -0600 | [diff] [blame] | 806 | VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000020, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 807 | VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040, |
| 808 | VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 0x00000080, |
| 809 | } VkImageUsageFlagBits; |
| 810 | typedef VkFlags VkImageUsageFlags; |
| 811 | |
| 812 | typedef enum { |
Courtney Goeltzenleuchter | 8134da0 | 2015-09-10 17:00:22 -0600 | [diff] [blame] | 813 | VK_IMAGE_CREATE_SPARSE_BINDING_BIT = 0x00000001, |
Courtney Goeltzenleuchter | 4da2886 | 2015-09-10 13:28:52 -0600 | [diff] [blame] | 814 | VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002, |
| 815 | VK_IMAGE_CREATE_SPARSE_ALIASED_BIT = 0x00000004, |
Courtney Goeltzenleuchter | 1459c75 | 2015-09-10 17:06:03 -0600 | [diff] [blame] | 816 | VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = 0x00000008, |
| 817 | VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = 0x00000010, |
Courtney Goeltzenleuchter | 4da2886 | 2015-09-10 13:28:52 -0600 | [diff] [blame] | 818 | } VkImageCreateFlagBits; |
| 819 | typedef VkFlags VkImageCreateFlags; |
| 820 | |
| 821 | typedef enum { |
Courtney Goeltzenleuchter | 7b0d95d | 2015-09-11 11:40:48 -0600 | [diff] [blame] | 822 | VK_SAMPLE_COUNT_1_BIT = 0x00000001, |
| 823 | VK_SAMPLE_COUNT_2_BIT = 0x00000002, |
| 824 | VK_SAMPLE_COUNT_4_BIT = 0x00000004, |
| 825 | VK_SAMPLE_COUNT_8_BIT = 0x00000008, |
| 826 | VK_SAMPLE_COUNT_16_BIT = 0x00000010, |
| 827 | VK_SAMPLE_COUNT_32_BIT = 0x00000020, |
| 828 | VK_SAMPLE_COUNT_64_BIT = 0x00000040, |
Courtney Goeltzenleuchter | f131d73 | 2015-09-02 11:04:44 -0600 | [diff] [blame] | 829 | } VkSampleCountFlagBits; |
| 830 | typedef VkFlags VkSampleCountFlags; |
| 831 | |
| 832 | typedef enum { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 833 | VK_QUEUE_GRAPHICS_BIT = 0x00000001, |
| 834 | VK_QUEUE_COMPUTE_BIT = 0x00000002, |
| 835 | VK_QUEUE_DMA_BIT = 0x00000004, |
| 836 | VK_QUEUE_SPARSE_MEMMGR_BIT = 0x00000008, |
| 837 | VK_QUEUE_EXTENDED_BIT = 0x40000000, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 838 | } VkQueueFlagBits; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 839 | typedef VkFlags VkQueueFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 840 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 841 | typedef enum { |
| 842 | VK_MEMORY_PROPERTY_DEVICE_ONLY = 0, |
| 843 | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT = 0x00000001, |
| 844 | VK_MEMORY_PROPERTY_HOST_NON_COHERENT_BIT = 0x00000002, |
| 845 | VK_MEMORY_PROPERTY_HOST_UNCACHED_BIT = 0x00000004, |
Courtney Goeltzenleuchter | df172f9 | 2015-10-20 11:32:47 -0600 | [diff] [blame] | 846 | VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT = 0x00000008, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 847 | } VkMemoryPropertyFlagBits; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 848 | typedef VkFlags VkMemoryPropertyFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 849 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 850 | typedef enum { |
Courtney Goeltzenleuchter | 7b0d95d | 2015-09-11 11:40:48 -0600 | [diff] [blame] | 851 | VK_MEMORY_HEAP_HOST_LOCAL_BIT = 0x00000001, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 852 | } VkMemoryHeapFlagBits; |
| 853 | typedef VkFlags VkMemoryHeapFlags; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 854 | typedef VkFlags VkMemoryMapFlags; |
| 855 | |
| 856 | typedef enum { |
Courtney Goeltzenleuchter | 908e767 | 2015-10-21 17:00:51 -0600 | [diff] [blame] | 857 | VK_IMAGE_ASPECT_COLOR_BIT = 0x00000001, |
| 858 | VK_IMAGE_ASPECT_DEPTH_BIT = 0x00000002, |
| 859 | VK_IMAGE_ASPECT_STENCIL_BIT = 0x00000004, |
| 860 | VK_IMAGE_ASPECT_METADATA_BIT = 0x00000008, |
| 861 | } VkImageAspectFlagBits; |
| 862 | |
| 863 | typedef enum { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 864 | VK_SPARSE_IMAGE_FMT_SINGLE_MIPTAIL_BIT = 0x00000001, |
| 865 | VK_SPARSE_IMAGE_FMT_ALIGNED_MIP_SIZE_BIT = 0x00000002, |
| 866 | VK_SPARSE_IMAGE_FMT_NONSTD_BLOCK_SIZE_BIT = 0x00000004, |
| 867 | } VkSparseImageFormatFlagBits; |
| 868 | typedef VkFlags VkSparseImageFormatFlags; |
| 869 | |
| 870 | typedef enum { |
Chia-I Wu | 85f34a7 | 2015-10-26 19:26:04 +0800 | [diff] [blame] | 871 | VK_SPARSE_MEMORY_BIND_REPLICATE_BLOCK_BIT = 0x00000001, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 872 | } VkSparseMemoryBindFlagBits; |
| 873 | typedef VkFlags VkSparseMemoryBindFlags; |
| 874 | |
| 875 | typedef enum { |
| 876 | VK_FENCE_CREATE_SIGNALED_BIT = 0x00000001, |
| 877 | } VkFenceCreateFlagBits; |
| 878 | typedef VkFlags VkFenceCreateFlags; |
| 879 | typedef VkFlags VkSemaphoreCreateFlags; |
| 880 | typedef VkFlags VkEventCreateFlags; |
| 881 | |
| 882 | typedef enum { |
Courtney Goeltzenleuchter | fe1b36e | 2015-10-15 16:57:32 -0600 | [diff] [blame] | 883 | VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT = 0x00000001, |
| 884 | VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT = 0x00000002, |
| 885 | VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT = 0x00000004, |
| 886 | VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT = 0x00000008, |
| 887 | VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT = 0x00000010, |
| 888 | VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT = 0x00000020, |
| 889 | VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT = 0x00000040, |
| 890 | VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT = 0x00000080, |
| 891 | VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT = 0x00000100, |
| 892 | VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT = 0x00000200, |
| 893 | VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT = 0x00000400, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 894 | } VkQueryPipelineStatisticFlagBits; |
| 895 | typedef VkFlags VkQueryPipelineStatisticFlags; |
| 896 | |
| 897 | typedef enum { |
| 898 | VK_QUERY_RESULT_DEFAULT = 0, |
| 899 | VK_QUERY_RESULT_64_BIT = 0x00000001, |
| 900 | VK_QUERY_RESULT_WAIT_BIT = 0x00000002, |
| 901 | VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = 0x00000004, |
| 902 | VK_QUERY_RESULT_PARTIAL_BIT = 0x00000008, |
| 903 | } VkQueryResultFlagBits; |
| 904 | typedef VkFlags VkQueryResultFlags; |
| 905 | |
| 906 | typedef enum { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 907 | VK_BUFFER_USAGE_TRANSFER_SOURCE_BIT = 0x00000001, |
| 908 | VK_BUFFER_USAGE_TRANSFER_DESTINATION_BIT = 0x00000002, |
| 909 | VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004, |
| 910 | VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = 0x00000008, |
| 911 | VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = 0x00000010, |
| 912 | VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = 0x00000020, |
| 913 | VK_BUFFER_USAGE_INDEX_BUFFER_BIT = 0x00000040, |
| 914 | VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = 0x00000080, |
| 915 | VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = 0x00000100, |
| 916 | } VkBufferUsageFlagBits; |
| 917 | typedef VkFlags VkBufferUsageFlags; |
| 918 | |
| 919 | typedef enum { |
Courtney Goeltzenleuchter | 8134da0 | 2015-09-10 17:00:22 -0600 | [diff] [blame] | 920 | VK_BUFFER_CREATE_SPARSE_BINDING_BIT = 0x00000001, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 921 | VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002, |
| 922 | VK_BUFFER_CREATE_SPARSE_ALIASED_BIT = 0x00000004, |
| 923 | } VkBufferCreateFlagBits; |
| 924 | typedef VkFlags VkBufferCreateFlags; |
Courtney Goeltzenleuchter | 39c8187 | 2015-09-10 17:25:42 -0600 | [diff] [blame] | 925 | typedef VkFlags VkImageAspectFlags; |
| 926 | |
| 927 | typedef enum { |
Courtney Goeltzenleuchter | 5861a1b | 2015-09-01 17:30:39 -0600 | [diff] [blame] | 928 | VK_IMAGE_VIEW_CREATE_READ_ONLY_DEPTH_BIT = 0x00000001, |
| 929 | VK_IMAGE_VIEW_CREATE_READ_ONLY_STENCIL_BIT = 0x00000002, |
| 930 | } VkImageViewCreateFlagBits; |
| 931 | typedef VkFlags VkImageViewCreateFlags; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 932 | typedef VkFlags VkShaderModuleCreateFlags; |
| 933 | typedef VkFlags VkShaderCreateFlags; |
| 934 | |
| 935 | typedef enum { |
Courtney Goeltzenleuchter | d263550 | 2015-10-21 17:08:06 -0600 | [diff] [blame] | 936 | VK_SHADER_STAGE_VERTEX_BIT = 0x00000001, |
| 937 | VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT = 0x00000002, |
| 938 | VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT = 0x00000004, |
| 939 | VK_SHADER_STAGE_GEOMETRY_BIT = 0x00000008, |
| 940 | VK_SHADER_STAGE_FRAGMENT_BIT = 0x00000010, |
| 941 | VK_SHADER_STAGE_COMPUTE_BIT = 0x00000020, |
| 942 | VK_SHADER_STAGE_ALL = 0x7FFFFFFF, |
| 943 | } VkShaderStageFlagBits; |
| 944 | |
| 945 | typedef enum { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 946 | VK_CHANNEL_R_BIT = 0x00000001, |
| 947 | VK_CHANNEL_G_BIT = 0x00000002, |
| 948 | VK_CHANNEL_B_BIT = 0x00000004, |
| 949 | VK_CHANNEL_A_BIT = 0x00000008, |
| 950 | } VkChannelFlagBits; |
| 951 | typedef VkFlags VkChannelFlags; |
| 952 | |
| 953 | typedef enum { |
| 954 | VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = 0x00000001, |
| 955 | VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = 0x00000002, |
| 956 | VK_PIPELINE_CREATE_DERIVATIVE_BIT = 0x00000004, |
| 957 | } VkPipelineCreateFlagBits; |
| 958 | typedef VkFlags VkPipelineCreateFlags; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 959 | typedef VkFlags VkShaderStageFlags; |
| 960 | |
| 961 | typedef enum { |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 962 | VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT = 0x00000001, |
| 963 | } VkDescriptorPoolCreateFlagBits; |
| 964 | typedef VkFlags VkDescriptorPoolCreateFlags; |
| 965 | typedef VkFlags VkDescriptorPoolResetFlags; |
| 966 | |
| 967 | typedef enum { |
Courtney Goeltzenleuchter | 304e656 | 2015-09-16 16:38:23 -0600 | [diff] [blame] | 968 | VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT = 0x00000001, |
| 969 | } VkAttachmentDescriptionFlagBits; |
| 970 | typedef VkFlags VkAttachmentDescriptionFlags; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 971 | typedef VkFlags VkSubpassDescriptionFlags; |
| 972 | |
| 973 | typedef enum { |
| 974 | VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT = 0x00000001, |
| 975 | VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT = 0x00000002, |
| 976 | VK_PIPELINE_STAGE_VERTEX_INPUT_BIT = 0x00000004, |
| 977 | VK_PIPELINE_STAGE_VERTEX_SHADER_BIT = 0x00000008, |
Courtney Goeltzenleuchter | 9683589 | 2015-10-15 17:35:38 -0600 | [diff] [blame] | 978 | VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT = 0x00000010, |
| 979 | VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT = 0x00000020, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 980 | VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT = 0x00000040, |
| 981 | VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT = 0x00000080, |
| 982 | VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT = 0x00000100, |
| 983 | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT = 0x00000200, |
| 984 | VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT = 0x00000400, |
| 985 | VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT = 0x00000800, |
| 986 | VK_PIPELINE_STAGE_TRANSFER_BIT = 0x00001000, |
Courtney Goeltzenleuchter | 5db62b5 | 2015-09-16 15:47:14 -0600 | [diff] [blame] | 987 | VK_PIPELINE_STAGE_HOST_BIT = 0x00002000, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 988 | VK_PIPELINE_STAGE_ALL_GRAPHICS = 0x000007FF, |
Courtney Goeltzenleuchter | 5db62b5 | 2015-09-16 15:47:14 -0600 | [diff] [blame] | 989 | VK_PIPELINE_STAGE_ALL_GPU_COMMANDS = 0x00001FFF, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 990 | } VkPipelineStageFlagBits; |
| 991 | typedef VkFlags VkPipelineStageFlags; |
| 992 | |
| 993 | typedef enum { |
| 994 | VK_MEMORY_OUTPUT_HOST_WRITE_BIT = 0x00000001, |
| 995 | VK_MEMORY_OUTPUT_SHADER_WRITE_BIT = 0x00000002, |
| 996 | VK_MEMORY_OUTPUT_COLOR_ATTACHMENT_BIT = 0x00000004, |
| 997 | VK_MEMORY_OUTPUT_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000008, |
| 998 | VK_MEMORY_OUTPUT_TRANSFER_BIT = 0x00000010, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 999 | } VkMemoryOutputFlagBits; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1000 | typedef VkFlags VkMemoryOutputFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1001 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1002 | typedef enum { |
| 1003 | VK_MEMORY_INPUT_HOST_READ_BIT = 0x00000001, |
| 1004 | VK_MEMORY_INPUT_INDIRECT_COMMAND_BIT = 0x00000002, |
| 1005 | VK_MEMORY_INPUT_INDEX_FETCH_BIT = 0x00000004, |
| 1006 | VK_MEMORY_INPUT_VERTEX_ATTRIBUTE_FETCH_BIT = 0x00000008, |
| 1007 | VK_MEMORY_INPUT_UNIFORM_READ_BIT = 0x00000010, |
| 1008 | VK_MEMORY_INPUT_SHADER_READ_BIT = 0x00000020, |
| 1009 | VK_MEMORY_INPUT_COLOR_ATTACHMENT_BIT = 0x00000040, |
| 1010 | VK_MEMORY_INPUT_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000080, |
| 1011 | VK_MEMORY_INPUT_INPUT_ATTACHMENT_BIT = 0x00000100, |
| 1012 | VK_MEMORY_INPUT_TRANSFER_BIT = 0x00000200, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1013 | } VkMemoryInputFlagBits; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1014 | typedef VkFlags VkMemoryInputFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1015 | |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 1016 | typedef enum { |
| 1017 | VK_CMD_POOL_CREATE_TRANSIENT_BIT = 0x00000001, |
| 1018 | VK_CMD_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = 0x00000002, |
| 1019 | } VkCmdPoolCreateFlagBits; |
| 1020 | typedef VkFlags VkCmdPoolCreateFlags; |
| 1021 | |
| 1022 | typedef enum { |
Courtney Goeltzenleuchter | 7b0d95d | 2015-09-11 11:40:48 -0600 | [diff] [blame] | 1023 | VK_CMD_POOL_RESET_RELEASE_RESOURCES_BIT = 0x00000001, |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 1024 | } VkCmdPoolResetFlagBits; |
| 1025 | typedef VkFlags VkCmdPoolResetFlags; |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1026 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1027 | typedef enum { |
Courtney Goeltzenleuchter | 04bb5f8 | 2015-10-21 18:11:04 -0600 | [diff] [blame] | 1028 | VK_CMD_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = 0x00000001, |
| 1029 | VK_CMD_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = 0x00000002, |
| 1030 | VK_CMD_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = 0x00000004, |
| 1031 | } VkCmdBufferUsageFlagBits; |
| 1032 | typedef VkFlags VkCmdBufferUsageFlags; |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1033 | |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 1034 | typedef enum { |
Courtney Goeltzenleuchter | 7b0d95d | 2015-09-11 11:40:48 -0600 | [diff] [blame] | 1035 | VK_CMD_BUFFER_RESET_RELEASE_RESOURCES_BIT = 0x00000001, |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 1036 | } VkCmdBufferResetFlagBits; |
| 1037 | typedef VkFlags VkCmdBufferResetFlags; |
| 1038 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1039 | typedef enum { |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 1040 | VK_STENCIL_FACE_NONE = 0, |
| 1041 | VK_STENCIL_FACE_FRONT_BIT = 0x00000001, |
| 1042 | VK_STENCIL_FACE_BACK_BIT = 0x00000002, |
| 1043 | } VkStencilFaceFlagBits; |
| 1044 | typedef VkFlags VkStencilFaceFlags; |
| 1045 | |
| 1046 | typedef enum { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1047 | VK_QUERY_CONTROL_CONSERVATIVE_BIT = 0x00000001, |
| 1048 | } VkQueryControlFlagBits; |
| 1049 | typedef VkFlags VkQueryControlFlags; |
Courtney Goeltzenleuchter | f6d8f7b | 2015-04-16 09:13:59 -0600 | [diff] [blame] | 1050 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1051 | typedef void* (VKAPI *PFN_vkAllocFunction)( |
| 1052 | void* pUserData, |
| 1053 | size_t size, |
| 1054 | size_t alignment, |
| 1055 | VkSystemAllocType allocType); |
| 1056 | |
| 1057 | typedef void (VKAPI *PFN_vkFreeFunction)( |
| 1058 | void* pUserData, |
| 1059 | void* pMem); |
| 1060 | |
Cody Northrop | 22b7fae | 2015-08-11 11:21:48 -0600 | [diff] [blame] | 1061 | typedef void (VKAPI *PFN_vkVoidFunction)(void); |
| 1062 | |
| 1063 | typedef struct { |
| 1064 | VkStructureType sType; |
| 1065 | const void* pNext; |
| 1066 | const char* pAppName; |
| 1067 | uint32_t appVersion; |
| 1068 | const char* pEngineName; |
| 1069 | uint32_t engineVersion; |
| 1070 | uint32_t apiVersion; |
| 1071 | } VkApplicationInfo; |
| 1072 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1073 | typedef struct { |
| 1074 | void* pUserData; |
| 1075 | PFN_vkAllocFunction pfnAlloc; |
| 1076 | PFN_vkFreeFunction pfnFree; |
| 1077 | } VkAllocCallbacks; |
| 1078 | |
| 1079 | typedef struct { |
| 1080 | VkStructureType sType; |
| 1081 | const void* pNext; |
| 1082 | const VkApplicationInfo* pAppInfo; |
| 1083 | const VkAllocCallbacks* pAllocCb; |
| 1084 | uint32_t layerCount; |
| 1085 | const char*const* ppEnabledLayerNames; |
| 1086 | uint32_t extensionCount; |
| 1087 | const char*const* ppEnabledExtensionNames; |
| 1088 | } VkInstanceCreateInfo; |
| 1089 | |
| 1090 | typedef struct { |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1091 | VkBool32 robustBufferAccess; |
| 1092 | VkBool32 fullDrawIndexUint32; |
| 1093 | VkBool32 imageCubeArray; |
| 1094 | VkBool32 independentBlend; |
| 1095 | VkBool32 geometryShader; |
| 1096 | VkBool32 tessellationShader; |
| 1097 | VkBool32 sampleRateShading; |
| 1098 | VkBool32 dualSourceBlend; |
| 1099 | VkBool32 logicOp; |
Cody Northrop | 00d01f3 | 2015-08-04 14:49:43 -0600 | [diff] [blame] | 1100 | VkBool32 multiDrawIndirect; |
Courtney Goeltzenleuchter | a4c4ae0 | 2015-10-15 12:57:38 -0600 | [diff] [blame] | 1101 | VkBool32 depthClamp; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1102 | VkBool32 depthBiasClamp; |
| 1103 | VkBool32 fillModeNonSolid; |
| 1104 | VkBool32 depthBounds; |
| 1105 | VkBool32 wideLines; |
Chia-I Wu | 79c6687 | 2015-10-26 19:16:06 +0800 | [diff] [blame] | 1106 | VkBool32 strictLines; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1107 | VkBool32 largePoints; |
Courtney Goeltzenleuchter | fb7fd09 | 2015-10-22 15:47:21 -0600 | [diff] [blame] | 1108 | VkBool32 alphaToOne; |
| 1109 | VkBool32 multiViewport; |
| 1110 | VkBool32 samplerAnisotropy; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1111 | VkBool32 textureCompressionETC2; |
| 1112 | VkBool32 textureCompressionASTC_LDR; |
| 1113 | VkBool32 textureCompressionBC; |
Courtney Goeltzenleuchter | 0ebea1d | 2015-09-02 10:41:55 -0600 | [diff] [blame] | 1114 | VkBool32 occlusionQueryNonConservative; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1115 | VkBool32 pipelineStatisticsQuery; |
| 1116 | VkBool32 vertexSideEffects; |
| 1117 | VkBool32 tessellationSideEffects; |
| 1118 | VkBool32 geometrySideEffects; |
| 1119 | VkBool32 fragmentSideEffects; |
| 1120 | VkBool32 shaderTessellationPointSize; |
| 1121 | VkBool32 shaderGeometryPointSize; |
Cody Northrop | 00d01f3 | 2015-08-04 14:49:43 -0600 | [diff] [blame] | 1122 | VkBool32 shaderImageGatherExtended; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1123 | VkBool32 shaderStorageImageExtendedFormats; |
| 1124 | VkBool32 shaderStorageImageMultisample; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1125 | VkBool32 shaderUniformBufferArrayDynamicIndexing; |
| 1126 | VkBool32 shaderSampledImageArrayDynamicIndexing; |
| 1127 | VkBool32 shaderStorageBufferArrayDynamicIndexing; |
| 1128 | VkBool32 shaderStorageImageArrayDynamicIndexing; |
| 1129 | VkBool32 shaderClipDistance; |
| 1130 | VkBool32 shaderCullDistance; |
| 1131 | VkBool32 shaderFloat64; |
| 1132 | VkBool32 shaderInt64; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1133 | VkBool32 shaderInt16; |
| 1134 | VkBool32 shaderResourceResidency; |
| 1135 | VkBool32 shaderResourceMinLOD; |
Mark Lobodzinski | da72a0d | 2015-09-07 12:56:17 -0600 | [diff] [blame] | 1136 | VkBool32 sparseBinding; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1137 | VkBool32 sparseResidencyBuffer; |
| 1138 | VkBool32 sparseResidencyImage2D; |
| 1139 | VkBool32 sparseResidencyImage3D; |
| 1140 | VkBool32 sparseResidency2Samples; |
| 1141 | VkBool32 sparseResidency4Samples; |
| 1142 | VkBool32 sparseResidency8Samples; |
| 1143 | VkBool32 sparseResidency16Samples; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1144 | VkBool32 sparseResidencyAliased; |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 1145 | } VkPhysicalDeviceFeatures; |
| 1146 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1147 | typedef struct { |
| 1148 | VkFormatFeatureFlags linearTilingFeatures; |
| 1149 | VkFormatFeatureFlags optimalTilingFeatures; |
Mark Lobodzinski | 7d4ac51 | 2015-09-03 15:21:52 -0600 | [diff] [blame] | 1150 | VkFormatFeatureFlags bufferFeatures; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1151 | } VkFormatProperties; |
| 1152 | |
| 1153 | typedef struct { |
Courtney Goeltzenleuchter | 4da2886 | 2015-09-10 13:28:52 -0600 | [diff] [blame] | 1154 | int32_t width; |
| 1155 | int32_t height; |
| 1156 | int32_t depth; |
| 1157 | } VkExtent3D; |
| 1158 | |
| 1159 | typedef struct { |
| 1160 | VkExtent3D maxExtent; |
| 1161 | uint32_t maxMipLevels; |
Courtney Goeltzenleuchter | 8367ce0 | 2015-10-16 09:46:00 -0600 | [diff] [blame] | 1162 | uint32_t maxArrayLayers; |
Courtney Goeltzenleuchter | f131d73 | 2015-09-02 11:04:44 -0600 | [diff] [blame] | 1163 | VkSampleCountFlags sampleCounts; |
Courtney Goeltzenleuchter | 4da2886 | 2015-09-10 13:28:52 -0600 | [diff] [blame] | 1164 | VkDeviceSize maxResourceSize; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1165 | } VkImageFormatProperties; |
| 1166 | |
| 1167 | typedef struct { |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1168 | uint32_t maxImageDimension1D; |
| 1169 | uint32_t maxImageDimension2D; |
| 1170 | uint32_t maxImageDimension3D; |
| 1171 | uint32_t maxImageDimensionCube; |
| 1172 | uint32_t maxImageArrayLayers; |
Courtney Goeltzenleuchter | f131d73 | 2015-09-02 11:04:44 -0600 | [diff] [blame] | 1173 | VkSampleCountFlags sampleCounts; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1174 | uint32_t maxTexelBufferSize; |
Courtney Goeltzenleuchter | fb7fd09 | 2015-10-22 15:47:21 -0600 | [diff] [blame] | 1175 | uint32_t maxUniformBufferRange; |
| 1176 | uint32_t maxStorageBufferRange; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1177 | uint32_t maxPushConstantsSize; |
| 1178 | uint32_t maxMemoryAllocationCount; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1179 | VkDeviceSize bufferImageGranularity; |
Courtney Goeltzenleuchter | dff7022 | 2015-08-28 16:27:33 -0600 | [diff] [blame] | 1180 | VkDeviceSize sparseAddressSpaceSize; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1181 | uint32_t maxBoundDescriptorSets; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1182 | uint32_t maxPerStageDescriptorSamplers; |
| 1183 | uint32_t maxPerStageDescriptorUniformBuffers; |
| 1184 | uint32_t maxPerStageDescriptorStorageBuffers; |
| 1185 | uint32_t maxPerStageDescriptorSampledImages; |
| 1186 | uint32_t maxPerStageDescriptorStorageImages; |
| 1187 | uint32_t maxDescriptorSetSamplers; |
| 1188 | uint32_t maxDescriptorSetUniformBuffers; |
Courtney Goeltzenleuchter | 8dcde7e | 2015-09-11 11:47:05 -0600 | [diff] [blame] | 1189 | uint32_t maxDescriptorSetUniformBuffersDynamic; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1190 | uint32_t maxDescriptorSetStorageBuffers; |
Courtney Goeltzenleuchter | 8dcde7e | 2015-09-11 11:47:05 -0600 | [diff] [blame] | 1191 | uint32_t maxDescriptorSetStorageBuffersDynamic; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1192 | uint32_t maxDescriptorSetSampledImages; |
| 1193 | uint32_t maxDescriptorSetStorageImages; |
| 1194 | uint32_t maxVertexInputAttributes; |
Courtney Goeltzenleuchter | f69841d | 2015-09-16 12:00:18 -0600 | [diff] [blame] | 1195 | uint32_t maxVertexInputBindings; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1196 | uint32_t maxVertexInputAttributeOffset; |
| 1197 | uint32_t maxVertexInputBindingStride; |
| 1198 | uint32_t maxVertexOutputComponents; |
Courtney Goeltzenleuchter | 9683589 | 2015-10-15 17:35:38 -0600 | [diff] [blame] | 1199 | uint32_t maxTessellationGenLevel; |
| 1200 | uint32_t maxTessellationPatchSize; |
| 1201 | uint32_t maxTessellationControlPerVertexInputComponents; |
| 1202 | uint32_t maxTessellationControlPerVertexOutputComponents; |
| 1203 | uint32_t maxTessellationControlPerPatchOutputComponents; |
| 1204 | uint32_t maxTessellationControlTotalOutputComponents; |
| 1205 | uint32_t maxTessellationEvaluationInputComponents; |
| 1206 | uint32_t maxTessellationEvaluationOutputComponents; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1207 | uint32_t maxGeometryShaderInvocations; |
| 1208 | uint32_t maxGeometryInputComponents; |
| 1209 | uint32_t maxGeometryOutputComponents; |
| 1210 | uint32_t maxGeometryOutputVertices; |
| 1211 | uint32_t maxGeometryTotalOutputComponents; |
| 1212 | uint32_t maxFragmentInputComponents; |
Courtney Goeltzenleuchter | fb7fd09 | 2015-10-22 15:47:21 -0600 | [diff] [blame] | 1213 | uint32_t maxFragmentOutputAttachments; |
| 1214 | uint32_t maxFragmentDualSourceAttachments; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1215 | uint32_t maxFragmentCombinedOutputResources; |
| 1216 | uint32_t maxComputeSharedMemorySize; |
| 1217 | uint32_t maxComputeWorkGroupCount[3]; |
| 1218 | uint32_t maxComputeWorkGroupInvocations; |
| 1219 | uint32_t maxComputeWorkGroupSize[3]; |
| 1220 | uint32_t subPixelPrecisionBits; |
| 1221 | uint32_t subTexelPrecisionBits; |
| 1222 | uint32_t mipmapPrecisionBits; |
| 1223 | uint32_t maxDrawIndexedIndexValue; |
| 1224 | uint32_t maxDrawIndirectInstanceCount; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1225 | VkBool32 primitiveRestartForPatches; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1226 | float maxSamplerLodBias; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1227 | float maxSamplerAnisotropy; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1228 | uint32_t maxViewports; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1229 | uint32_t maxViewportDimensions[2]; |
| 1230 | float viewportBoundsRange[2]; |
| 1231 | uint32_t viewportSubPixelBits; |
| 1232 | uint32_t minMemoryMapAlignment; |
| 1233 | uint32_t minTexelBufferOffsetAlignment; |
| 1234 | uint32_t minUniformBufferOffsetAlignment; |
| 1235 | uint32_t minStorageBufferOffsetAlignment; |
Courtney Goeltzenleuchter | fb7fd09 | 2015-10-22 15:47:21 -0600 | [diff] [blame] | 1236 | int32_t minTexelOffset; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1237 | uint32_t maxTexelOffset; |
Courtney Goeltzenleuchter | fb7fd09 | 2015-10-22 15:47:21 -0600 | [diff] [blame] | 1238 | int32_t minTexelGatherOffset; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1239 | uint32_t maxTexelGatherOffset; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1240 | float minInterpolationOffset; |
| 1241 | float maxInterpolationOffset; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1242 | uint32_t subPixelInterpolationOffsetBits; |
| 1243 | uint32_t maxFramebufferWidth; |
| 1244 | uint32_t maxFramebufferHeight; |
| 1245 | uint32_t maxFramebufferLayers; |
| 1246 | uint32_t maxFramebufferColorSamples; |
| 1247 | uint32_t maxFramebufferDepthSamples; |
| 1248 | uint32_t maxFramebufferStencilSamples; |
| 1249 | uint32_t maxColorAttachments; |
| 1250 | uint32_t maxSampledImageColorSamples; |
| 1251 | uint32_t maxSampledImageDepthSamples; |
| 1252 | uint32_t maxSampledImageIntegerSamples; |
| 1253 | uint32_t maxStorageImageSamples; |
| 1254 | uint32_t maxSampleMaskWords; |
Chia-I Wu | c74c31c | 2015-10-26 19:27:21 +0800 | [diff] [blame] | 1255 | float timestampPeriod; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1256 | uint32_t maxClipDistances; |
| 1257 | uint32_t maxCullDistances; |
| 1258 | uint32_t maxCombinedClipAndCullDistances; |
Courtney Goeltzenleuchter | 1a606eb | 2015-10-23 10:37:02 -0600 | [diff] [blame] | 1259 | uint32_t discreteQueuePriorities; |
Chris Forbes | 658ec0d | 2015-06-21 20:09:12 +1200 | [diff] [blame] | 1260 | float pointSizeRange[2]; |
| 1261 | float lineWidthRange[2]; |
| 1262 | float pointSizeGranularity; |
| 1263 | float lineWidthGranularity; |
Chia-I Wu | 396af6c | 2015-10-26 19:28:45 +0800 | [diff] [blame] | 1264 | uint32_t recommendedBufferCopyOffsetAlignment; |
| 1265 | uint32_t recommendedBufferCopyRowPitchAlignment; |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 1266 | } VkPhysicalDeviceLimits; |
| 1267 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1268 | typedef struct { |
Courtney Goeltzenleuchter | 40f8d80 | 2015-09-10 12:54:32 -0600 | [diff] [blame] | 1269 | VkBool32 residencyStandard2DBlockShape; |
| 1270 | VkBool32 residencyStandard2DMSBlockShape; |
| 1271 | VkBool32 residencyStandard3DBlockShape; |
| 1272 | VkBool32 residencyAlignedMipSize; |
| 1273 | VkBool32 residencyNonResident; |
| 1274 | VkBool32 residencyNonResidentStrict; |
Mark Lobodzinski | da72a0d | 2015-09-07 12:56:17 -0600 | [diff] [blame] | 1275 | } VkPhysicalDeviceSparseProperties; |
| 1276 | |
| 1277 | typedef struct { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1278 | uint32_t apiVersion; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1279 | uint32_t driverVersion; |
| 1280 | uint32_t vendorId; |
| 1281 | uint32_t deviceId; |
| 1282 | VkPhysicalDeviceType deviceType; |
| 1283 | char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME]; |
| 1284 | uint8_t pipelineCacheUUID[VK_UUID_LENGTH]; |
Mark Lobodzinski | da72a0d | 2015-09-07 12:56:17 -0600 | [diff] [blame] | 1285 | VkPhysicalDeviceLimits limits; |
| 1286 | VkPhysicalDeviceSparseProperties sparseProperties; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1287 | } VkPhysicalDeviceProperties; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1288 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1289 | typedef struct { |
| 1290 | VkQueueFlags queueFlags; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1291 | uint32_t queueCount; |
Courtney Goeltzenleuchter | 188cd2d | 2015-10-19 16:03:32 -0600 | [diff] [blame] | 1292 | uint32_t timestampValidBits; |
Cody Northrop | d080288 | 2015-08-03 17:04:53 -0600 | [diff] [blame] | 1293 | } VkQueueFamilyProperties; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1294 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1295 | typedef struct { |
| 1296 | VkMemoryPropertyFlags propertyFlags; |
| 1297 | uint32_t heapIndex; |
Mark Lobodzinski | b3fbcd9 | 2015-07-02 16:49:40 -0600 | [diff] [blame] | 1298 | } VkMemoryType; |
| 1299 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1300 | typedef struct { |
| 1301 | VkDeviceSize size; |
| 1302 | VkMemoryHeapFlags flags; |
Mark Lobodzinski | b3fbcd9 | 2015-07-02 16:49:40 -0600 | [diff] [blame] | 1303 | } VkMemoryHeap; |
| 1304 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1305 | typedef struct { |
Mark Lobodzinski | b3fbcd9 | 2015-07-02 16:49:40 -0600 | [diff] [blame] | 1306 | uint32_t memoryTypeCount; |
| 1307 | VkMemoryType memoryTypes[VK_MAX_MEMORY_TYPES]; |
| 1308 | uint32_t memoryHeapCount; |
| 1309 | VkMemoryHeap memoryHeaps[VK_MAX_MEMORY_HEAPS]; |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1310 | } VkPhysicalDeviceMemoryProperties; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1311 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1312 | typedef struct { |
Courtney Goeltzenleuchter | 73db5bf | 2015-09-16 16:23:55 -0600 | [diff] [blame] | 1313 | VkStructureType sType; |
| 1314 | const void* pNext; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1315 | uint32_t queueFamilyIndex; |
| 1316 | uint32_t queueCount; |
Courtney Goeltzenleuchter | 1a606eb | 2015-10-23 10:37:02 -0600 | [diff] [blame] | 1317 | const float* pQueuePriorities; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1318 | } VkDeviceQueueCreateInfo; |
| 1319 | |
| 1320 | typedef struct { |
| 1321 | VkStructureType sType; |
| 1322 | const void* pNext; |
Courtney Goeltzenleuchter | 7831e96 | 2015-10-15 16:58:44 -0600 | [diff] [blame] | 1323 | uint32_t requestedQueueCount; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1324 | const VkDeviceQueueCreateInfo* pRequestedQueues; |
| 1325 | uint32_t layerCount; |
| 1326 | const char*const* ppEnabledLayerNames; |
| 1327 | uint32_t extensionCount; |
| 1328 | const char*const* ppEnabledExtensionNames; |
| 1329 | const VkPhysicalDeviceFeatures* pEnabledFeatures; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1330 | } VkDeviceCreateInfo; |
| 1331 | |
| 1332 | typedef struct { |
| 1333 | char extName[VK_MAX_EXTENSION_NAME]; |
| 1334 | uint32_t specVersion; |
| 1335 | } VkExtensionProperties; |
| 1336 | |
| 1337 | typedef struct { |
| 1338 | char layerName[VK_MAX_EXTENSION_NAME]; |
| 1339 | uint32_t specVersion; |
| 1340 | uint32_t implVersion; |
Courtney Goeltzenleuchter | 9fdf433 | 2015-07-13 14:01:15 -0600 | [diff] [blame] | 1341 | char description[VK_MAX_DESCRIPTION]; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1342 | } VkLayerProperties; |
| 1343 | |
| 1344 | typedef struct { |
Courtney Goeltzenleuchter | 646b907 | 2015-10-20 18:04:07 -0600 | [diff] [blame] | 1345 | uint32_t waitSemCount; |
| 1346 | const VkSemaphore* pWaitSemaphores; |
| 1347 | uint32_t cmdBufferCount; |
| 1348 | const VkCmdBuffer* pCommandBuffers; |
| 1349 | uint32_t signalSemCount; |
| 1350 | const VkSemaphore* pSignalSemaphores; |
| 1351 | } VkSubmitInfo; |
| 1352 | |
| 1353 | typedef struct { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1354 | VkStructureType sType; |
| 1355 | const void* pNext; |
| 1356 | VkDeviceSize allocationSize; |
| 1357 | uint32_t memoryTypeIndex; |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1358 | } VkMemoryAllocInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1359 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1360 | typedef struct { |
| 1361 | VkStructureType sType; |
| 1362 | const void* pNext; |
| 1363 | VkDeviceMemory mem; |
| 1364 | VkDeviceSize offset; |
| 1365 | VkDeviceSize size; |
Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 1366 | } VkMappedMemoryRange; |
| 1367 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1368 | typedef struct { |
| 1369 | VkDeviceSize size; |
| 1370 | VkDeviceSize alignment; |
| 1371 | uint32_t memoryTypeBits; |
Mark Lobodzinski | b3fbcd9 | 2015-07-02 16:49:40 -0600 | [diff] [blame] | 1372 | } VkMemoryRequirements; |
| 1373 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1374 | typedef struct { |
Courtney Goeltzenleuchter | 908e767 | 2015-10-21 17:00:51 -0600 | [diff] [blame] | 1375 | VkImageAspectFlagBits aspect; |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 1376 | VkExtent3D imageGranularity; |
| 1377 | VkSparseImageFormatFlags flags; |
| 1378 | } VkSparseImageFormatProperties; |
| 1379 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1380 | typedef struct { |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 1381 | VkSparseImageFormatProperties formatProps; |
| 1382 | uint32_t imageMipTailStartLOD; |
| 1383 | VkDeviceSize imageMipTailSize; |
| 1384 | VkDeviceSize imageMipTailOffset; |
| 1385 | VkDeviceSize imageMipTailStride; |
| 1386 | } VkSparseImageMemoryRequirements; |
| 1387 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1388 | typedef struct { |
Courtney Goeltzenleuchter | c9bb61a | 2015-07-28 09:05:09 -0600 | [diff] [blame] | 1389 | VkDeviceSize rangeOffset; |
| 1390 | VkDeviceSize rangeSize; |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 1391 | VkDeviceSize memOffset; |
| 1392 | VkDeviceMemory mem; |
| 1393 | VkSparseMemoryBindFlags flags; |
| 1394 | } VkSparseMemoryBindInfo; |
| 1395 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1396 | typedef struct { |
Courtney Goeltzenleuchter | 908e767 | 2015-10-21 17:00:51 -0600 | [diff] [blame] | 1397 | VkImageAspectFlagBits aspect; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1398 | uint32_t mipLevel; |
Courtney Goeltzenleuchter | 4a26189 | 2015-09-10 16:38:41 -0600 | [diff] [blame] | 1399 | uint32_t arrayLayer; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1400 | } VkImageSubresource; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1401 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1402 | typedef struct { |
| 1403 | int32_t x; |
| 1404 | int32_t y; |
| 1405 | int32_t z; |
| 1406 | } VkOffset3D; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1407 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1408 | typedef struct { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1409 | VkImageSubresource subresource; |
| 1410 | VkOffset3D offset; |
| 1411 | VkExtent3D extent; |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 1412 | VkDeviceSize memOffset; |
| 1413 | VkDeviceMemory mem; |
| 1414 | VkSparseMemoryBindFlags flags; |
| 1415 | } VkSparseImageMemoryBindInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1416 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1417 | typedef struct { |
| 1418 | VkStructureType sType; |
| 1419 | const void* pNext; |
| 1420 | VkFenceCreateFlags flags; |
| 1421 | } VkFenceCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1422 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1423 | typedef struct { |
| 1424 | VkStructureType sType; |
| 1425 | const void* pNext; |
| 1426 | VkSemaphoreCreateFlags flags; |
| 1427 | } VkSemaphoreCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1428 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1429 | typedef struct { |
| 1430 | VkStructureType sType; |
| 1431 | const void* pNext; |
| 1432 | VkEventCreateFlags flags; |
| 1433 | } VkEventCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1434 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1435 | typedef struct { |
| 1436 | VkStructureType sType; |
| 1437 | const void* pNext; |
| 1438 | VkQueryType queryType; |
| 1439 | uint32_t slots; |
| 1440 | VkQueryPipelineStatisticFlags pipelineStatistics; |
| 1441 | } VkQueryPoolCreateInfo; |
| 1442 | |
| 1443 | typedef struct { |
| 1444 | VkStructureType sType; |
| 1445 | const void* pNext; |
| 1446 | VkDeviceSize size; |
| 1447 | VkBufferUsageFlags usage; |
| 1448 | VkBufferCreateFlags flags; |
| 1449 | VkSharingMode sharingMode; |
| 1450 | uint32_t queueFamilyCount; |
| 1451 | const uint32_t* pQueueFamilyIndices; |
| 1452 | } VkBufferCreateInfo; |
| 1453 | |
| 1454 | typedef struct { |
| 1455 | VkStructureType sType; |
| 1456 | const void* pNext; |
| 1457 | VkBuffer buffer; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1458 | VkFormat format; |
| 1459 | VkDeviceSize offset; |
| 1460 | VkDeviceSize range; |
| 1461 | } VkBufferViewCreateInfo; |
| 1462 | |
| 1463 | typedef struct { |
| 1464 | VkStructureType sType; |
| 1465 | const void* pNext; |
| 1466 | VkImageType imageType; |
| 1467 | VkFormat format; |
Tony Barbour | 2e64be8 | 2015-04-13 13:11:12 -0600 | [diff] [blame] | 1468 | VkExtent3D extent; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1469 | uint32_t mipLevels; |
Courtney Goeltzenleuchter | 5d2aed4 | 2015-10-21 17:57:31 -0600 | [diff] [blame] | 1470 | uint32_t arrayLayers; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1471 | uint32_t samples; |
| 1472 | VkImageTiling tiling; |
| 1473 | VkImageUsageFlags usage; |
| 1474 | VkImageCreateFlags flags; |
| 1475 | VkSharingMode sharingMode; |
| 1476 | uint32_t queueFamilyCount; |
| 1477 | const uint32_t* pQueueFamilyIndices; |
Courtney Goeltzenleuchter | e3efa50 | 2015-09-16 12:02:52 -0600 | [diff] [blame] | 1478 | VkImageLayout initialLayout; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1479 | } VkImageCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1480 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1481 | typedef struct { |
| 1482 | VkDeviceSize offset; |
| 1483 | VkDeviceSize size; |
| 1484 | VkDeviceSize rowPitch; |
| 1485 | VkDeviceSize depthPitch; |
| 1486 | } VkSubresourceLayout; |
| 1487 | |
| 1488 | typedef struct { |
| 1489 | VkChannelSwizzle r; |
| 1490 | VkChannelSwizzle g; |
| 1491 | VkChannelSwizzle b; |
| 1492 | VkChannelSwizzle a; |
| 1493 | } VkChannelMapping; |
| 1494 | |
| 1495 | typedef struct { |
Courtney Goeltzenleuchter | ba72451 | 2015-09-10 17:58:54 -0600 | [diff] [blame] | 1496 | VkImageAspectFlags aspectMask; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1497 | uint32_t baseMipLevel; |
Courtney Goeltzenleuchter | 8367ce0 | 2015-10-16 09:46:00 -0600 | [diff] [blame] | 1498 | uint32_t numLevels; |
Courtney Goeltzenleuchter | 4a26189 | 2015-09-10 16:38:41 -0600 | [diff] [blame] | 1499 | uint32_t baseArrayLayer; |
Courtney Goeltzenleuchter | 8367ce0 | 2015-10-16 09:46:00 -0600 | [diff] [blame] | 1500 | uint32_t numLayers; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1501 | } VkImageSubresourceRange; |
| 1502 | |
| 1503 | typedef struct { |
| 1504 | VkStructureType sType; |
| 1505 | const void* pNext; |
| 1506 | VkImage image; |
| 1507 | VkImageViewType viewType; |
| 1508 | VkFormat format; |
| 1509 | VkChannelMapping channels; |
| 1510 | VkImageSubresourceRange subresourceRange; |
Courtney Goeltzenleuchter | 5861a1b | 2015-09-01 17:30:39 -0600 | [diff] [blame] | 1511 | VkImageViewCreateFlags flags; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1512 | } VkImageViewCreateInfo; |
| 1513 | |
| 1514 | typedef struct { |
| 1515 | VkStructureType sType; |
| 1516 | const void* pNext; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1517 | size_t codeSize; |
Chia-I Wu | 8094f19 | 2015-10-26 19:22:06 +0800 | [diff] [blame] | 1518 | const uint32_t* pCode; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1519 | VkShaderModuleCreateFlags flags; |
Courtney Goeltzenleuchter | a607df1 | 2015-06-18 21:49:59 -0600 | [diff] [blame] | 1520 | } VkShaderModuleCreateInfo; |
| 1521 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1522 | typedef struct { |
| 1523 | VkStructureType sType; |
| 1524 | const void* pNext; |
| 1525 | VkShaderModule module; |
| 1526 | const char* pName; |
| 1527 | VkShaderCreateFlags flags; |
Courtney Goeltzenleuchter | d263550 | 2015-10-21 17:08:06 -0600 | [diff] [blame] | 1528 | VkShaderStageFlagBits stage; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1529 | } VkShaderCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1530 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1531 | typedef struct { |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 1532 | VkStructureType sType; |
| 1533 | const void* pNext; |
| 1534 | size_t initialSize; |
| 1535 | const void* initialData; |
| 1536 | size_t maxSize; |
| 1537 | } VkPipelineCacheCreateInfo; |
| 1538 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1539 | typedef struct { |
| 1540 | uint32_t constantId; |
| 1541 | size_t size; |
| 1542 | uint32_t offset; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1543 | } VkSpecializationMapEntry; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1544 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1545 | typedef struct { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1546 | uint32_t mapEntryCount; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1547 | const VkSpecializationMapEntry* pMap; |
Courtney Goeltzenleuchter | a22ab87 | 2015-07-14 11:56:44 -0600 | [diff] [blame] | 1548 | size_t dataSize; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1549 | const void* pData; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1550 | } VkSpecializationInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1551 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1552 | typedef struct { |
| 1553 | VkStructureType sType; |
| 1554 | const void* pNext; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1555 | VkShader shader; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1556 | const VkSpecializationInfo* pSpecializationInfo; |
Mark Lobodzinski | d5732f3 | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1557 | } VkPipelineShaderStageCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1558 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1559 | typedef struct { |
| 1560 | uint32_t binding; |
| 1561 | uint32_t strideInBytes; |
| 1562 | VkVertexInputStepRate stepRate; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1563 | } VkVertexInputBindingDescription; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1564 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1565 | typedef struct { |
| 1566 | uint32_t location; |
| 1567 | uint32_t binding; |
| 1568 | VkFormat format; |
| 1569 | uint32_t offsetInBytes; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1570 | } VkVertexInputAttributeDescription; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1571 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1572 | typedef struct { |
| 1573 | VkStructureType sType; |
| 1574 | const void* pNext; |
| 1575 | uint32_t bindingCount; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1576 | const VkVertexInputBindingDescription* pVertexBindingDescriptions; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1577 | uint32_t attributeCount; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1578 | const VkVertexInputAttributeDescription* pVertexAttributeDescriptions; |
Mark Lobodzinski | d5732f3 | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1579 | } VkPipelineVertexInputStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1580 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1581 | typedef struct { |
| 1582 | VkStructureType sType; |
| 1583 | const void* pNext; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1584 | VkPrimitiveTopology topology; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1585 | VkBool32 primitiveRestartEnable; |
Tony Barbour | dd6e32e | 2015-07-10 15:29:03 -0600 | [diff] [blame] | 1586 | } VkPipelineInputAssemblyStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1587 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1588 | typedef struct { |
| 1589 | VkStructureType sType; |
| 1590 | const void* pNext; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1591 | uint32_t patchControlPoints; |
Tony Barbour | dd6e32e | 2015-07-10 15:29:03 -0600 | [diff] [blame] | 1592 | } VkPipelineTessellationStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1593 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1594 | typedef struct { |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 1595 | float originX; |
| 1596 | float originY; |
| 1597 | float width; |
| 1598 | float height; |
| 1599 | float minDepth; |
| 1600 | float maxDepth; |
| 1601 | } VkViewport; |
| 1602 | |
| 1603 | typedef struct { |
| 1604 | int32_t x; |
| 1605 | int32_t y; |
| 1606 | } VkOffset2D; |
| 1607 | |
| 1608 | typedef struct { |
| 1609 | int32_t width; |
| 1610 | int32_t height; |
| 1611 | } VkExtent2D; |
| 1612 | |
| 1613 | typedef struct { |
| 1614 | VkOffset2D offset; |
| 1615 | VkExtent2D extent; |
| 1616 | } VkRect2D; |
| 1617 | |
| 1618 | typedef struct { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1619 | VkStructureType sType; |
| 1620 | const void* pNext; |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1621 | uint32_t viewportCount; |
Courtney Goeltzenleuchter | 95edc60 | 2015-09-21 17:19:25 -0600 | [diff] [blame] | 1622 | const VkViewport* pViewports; |
| 1623 | uint32_t scissorCount; |
| 1624 | const VkRect2D* pScissors; |
Tony Barbour | dd6e32e | 2015-07-10 15:29:03 -0600 | [diff] [blame] | 1625 | } VkPipelineViewportStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1626 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1627 | typedef struct { |
| 1628 | VkStructureType sType; |
| 1629 | const void* pNext; |
Courtney Goeltzenleuchter | a4c4ae0 | 2015-10-15 12:57:38 -0600 | [diff] [blame] | 1630 | VkBool32 depthClampEnable; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1631 | VkBool32 rasterizerDiscardEnable; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1632 | VkFillMode fillMode; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1633 | VkCullMode cullMode; |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1634 | VkFrontFace frontFace; |
Cody Northrop | 1236511 | 2015-08-17 11:10:49 -0600 | [diff] [blame] | 1635 | VkBool32 depthBiasEnable; |
Chia-I Wu | d8c946a | 2015-10-26 19:08:09 +0800 | [diff] [blame] | 1636 | float depthBiasConstantFactor; |
Courtney Goeltzenleuchter | 95edc60 | 2015-09-21 17:19:25 -0600 | [diff] [blame] | 1637 | float depthBiasClamp; |
Chia-I Wu | d8c946a | 2015-10-26 19:08:09 +0800 | [diff] [blame] | 1638 | float depthBiasSlopeFactor; |
Courtney Goeltzenleuchter | 95edc60 | 2015-09-21 17:19:25 -0600 | [diff] [blame] | 1639 | float lineWidth; |
Tony Barbour | dd6e32e | 2015-07-10 15:29:03 -0600 | [diff] [blame] | 1640 | } VkPipelineRasterStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1641 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1642 | typedef struct { |
| 1643 | VkStructureType sType; |
| 1644 | const void* pNext; |
Tony Barbour | dfd533a | 2015-06-26 10:18:34 -0600 | [diff] [blame] | 1645 | uint32_t rasterSamples; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1646 | VkBool32 sampleShadingEnable; |
| 1647 | float minSampleShading; |
Cody Northrop | 02e61ed | 2015-08-04 14:34:54 -0600 | [diff] [blame] | 1648 | const VkSampleMask* pSampleMask; |
Courtney Goeltzenleuchter | 6fabf91 | 2015-10-15 17:59:39 -0600 | [diff] [blame] | 1649 | VkBool32 alphaToCoverageEnable; |
| 1650 | VkBool32 alphaToOneEnable; |
Tony Barbour | dd6e32e | 2015-07-10 15:29:03 -0600 | [diff] [blame] | 1651 | } VkPipelineMultisampleStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1652 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1653 | typedef struct { |
| 1654 | VkStencilOp stencilFailOp; |
| 1655 | VkStencilOp stencilPassOp; |
| 1656 | VkStencilOp stencilDepthFailOp; |
| 1657 | VkCompareOp stencilCompareOp; |
Courtney Goeltzenleuchter | 95edc60 | 2015-09-21 17:19:25 -0600 | [diff] [blame] | 1658 | uint32_t stencilCompareMask; |
| 1659 | uint32_t stencilWriteMask; |
| 1660 | uint32_t stencilReference; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1661 | } VkStencilOpState; |
| 1662 | |
| 1663 | typedef struct { |
| 1664 | VkStructureType sType; |
| 1665 | const void* pNext; |
| 1666 | VkBool32 depthTestEnable; |
| 1667 | VkBool32 depthWriteEnable; |
| 1668 | VkCompareOp depthCompareOp; |
Cody Northrop | 271ba75 | 2015-08-26 10:01:32 -0600 | [diff] [blame] | 1669 | VkBool32 depthBoundsTestEnable; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1670 | VkBool32 stencilTestEnable; |
| 1671 | VkStencilOpState front; |
| 1672 | VkStencilOpState back; |
Courtney Goeltzenleuchter | 95edc60 | 2015-09-21 17:19:25 -0600 | [diff] [blame] | 1673 | float minDepthBounds; |
| 1674 | float maxDepthBounds; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1675 | } VkPipelineDepthStencilStateCreateInfo; |
| 1676 | |
| 1677 | typedef struct { |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1678 | VkBool32 blendEnable; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1679 | VkBlend srcBlendColor; |
| 1680 | VkBlend destBlendColor; |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1681 | VkBlendOp blendOpColor; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1682 | VkBlend srcBlendAlpha; |
| 1683 | VkBlend destBlendAlpha; |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1684 | VkBlendOp blendOpAlpha; |
| 1685 | VkChannelFlags channelWriteMask; |
Tony Barbour | dd6e32e | 2015-07-10 15:29:03 -0600 | [diff] [blame] | 1686 | } VkPipelineColorBlendAttachmentState; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1687 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1688 | typedef struct { |
| 1689 | VkStructureType sType; |
| 1690 | const void* pNext; |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 1691 | VkBool32 logicOpEnable; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1692 | VkLogicOp logicOp; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1693 | uint32_t attachmentCount; |
| 1694 | const VkPipelineColorBlendAttachmentState* pAttachments; |
Courtney Goeltzenleuchter | 95edc60 | 2015-09-21 17:19:25 -0600 | [diff] [blame] | 1695 | float blendConst[4]; |
Tony Barbour | dd6e32e | 2015-07-10 15:29:03 -0600 | [diff] [blame] | 1696 | } VkPipelineColorBlendStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1697 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1698 | typedef struct { |
| 1699 | VkStructureType sType; |
| 1700 | const void* pNext; |
Courtney Goeltzenleuchter | 95edc60 | 2015-09-21 17:19:25 -0600 | [diff] [blame] | 1701 | uint32_t dynamicStateCount; |
| 1702 | const VkDynamicState* pDynamicStates; |
| 1703 | } VkPipelineDynamicStateCreateInfo; |
| 1704 | |
| 1705 | typedef struct { |
| 1706 | VkStructureType sType; |
| 1707 | const void* pNext; |
Mark Lobodzinski | d5732f3 | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1708 | uint32_t stageCount; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1709 | const VkPipelineShaderStageCreateInfo* pStages; |
Mark Lobodzinski | d5732f3 | 2015-06-23 15:11:57 -0600 | [diff] [blame] | 1710 | const VkPipelineVertexInputStateCreateInfo* pVertexInputState; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1711 | const VkPipelineInputAssemblyStateCreateInfo* pInputAssemblyState; |
| 1712 | const VkPipelineTessellationStateCreateInfo* pTessellationState; |
| 1713 | const VkPipelineViewportStateCreateInfo* pViewportState; |
| 1714 | const VkPipelineRasterStateCreateInfo* pRasterState; |
| 1715 | const VkPipelineMultisampleStateCreateInfo* pMultisampleState; |
| 1716 | const VkPipelineDepthStencilStateCreateInfo* pDepthStencilState; |
| 1717 | const VkPipelineColorBlendStateCreateInfo* pColorBlendState; |
Courtney Goeltzenleuchter | 95edc60 | 2015-09-21 17:19:25 -0600 | [diff] [blame] | 1718 | const VkPipelineDynamicStateCreateInfo* pDynamicState; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1719 | VkPipelineCreateFlags flags; |
| 1720 | VkPipelineLayout layout; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1721 | VkRenderPass renderPass; |
| 1722 | uint32_t subpass; |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 1723 | VkPipeline basePipelineHandle; |
| 1724 | int32_t basePipelineIndex; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1725 | } VkGraphicsPipelineCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1726 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1727 | typedef struct { |
| 1728 | VkStructureType sType; |
| 1729 | const void* pNext; |
Courtney Goeltzenleuchter | b1c9329 | 2015-09-02 13:07:51 -0600 | [diff] [blame] | 1730 | VkPipelineShaderStageCreateInfo stage; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1731 | VkPipelineCreateFlags flags; |
| 1732 | VkPipelineLayout layout; |
| 1733 | VkPipeline basePipelineHandle; |
| 1734 | int32_t basePipelineIndex; |
| 1735 | } VkComputePipelineCreateInfo; |
Courtney Goeltzenleuchter | 07fd6b6 | 2015-04-17 20:48:17 -0600 | [diff] [blame] | 1736 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1737 | typedef struct { |
| 1738 | VkShaderStageFlags stageFlags; |
| 1739 | uint32_t start; |
| 1740 | uint32_t length; |
| 1741 | } VkPushConstantRange; |
| 1742 | |
| 1743 | typedef struct { |
| 1744 | VkStructureType sType; |
| 1745 | const void* pNext; |
| 1746 | uint32_t descriptorSetCount; |
| 1747 | const VkDescriptorSetLayout* pSetLayouts; |
| 1748 | uint32_t pushConstantRangeCount; |
| 1749 | const VkPushConstantRange* pPushConstantRanges; |
Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 1750 | } VkPipelineLayoutCreateInfo; |
| 1751 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1752 | typedef struct { |
| 1753 | VkStructureType sType; |
| 1754 | const void* pNext; |
| 1755 | VkTexFilter magFilter; |
| 1756 | VkTexFilter minFilter; |
| 1757 | VkTexMipmapMode mipMode; |
Courtney Goeltzenleuchter | 9795335 | 2015-09-10 14:08:50 -0600 | [diff] [blame] | 1758 | VkTexAddressMode addressModeU; |
| 1759 | VkTexAddressMode addressModeV; |
| 1760 | VkTexAddressMode addressModeW; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1761 | float mipLodBias; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1762 | float maxAnisotropy; |
| 1763 | VkBool32 compareEnable; |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1764 | VkCompareOp compareOp; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1765 | float minLod; |
| 1766 | float maxLod; |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1767 | VkBorderColor borderColor; |
Mark Lobodzinski | 52ac658 | 2015-09-01 15:42:56 -0600 | [diff] [blame] | 1768 | VkBool32 unnormalizedCoordinates; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1769 | } VkSamplerCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1770 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1771 | typedef struct { |
| 1772 | VkDescriptorType descriptorType; |
| 1773 | uint32_t arraySize; |
| 1774 | VkShaderStageFlags stageFlags; |
| 1775 | const VkSampler* pImmutableSamplers; |
| 1776 | } VkDescriptorSetLayoutBinding; |
| 1777 | |
| 1778 | typedef struct { |
| 1779 | VkStructureType sType; |
| 1780 | const void* pNext; |
| 1781 | uint32_t count; |
| 1782 | const VkDescriptorSetLayoutBinding* pBinding; |
| 1783 | } VkDescriptorSetLayoutCreateInfo; |
| 1784 | |
| 1785 | typedef struct { |
| 1786 | VkDescriptorType type; |
| 1787 | uint32_t count; |
| 1788 | } VkDescriptorTypeCount; |
| 1789 | |
| 1790 | typedef struct { |
| 1791 | VkStructureType sType; |
| 1792 | const void* pNext; |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 1793 | VkDescriptorPoolCreateFlags flags; |
Courtney Goeltzenleuchter | fe908d3 | 2015-09-16 16:12:45 -0600 | [diff] [blame] | 1794 | uint32_t maxSets; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1795 | uint32_t count; |
| 1796 | const VkDescriptorTypeCount* pTypeCount; |
| 1797 | } VkDescriptorPoolCreateInfo; |
| 1798 | |
| 1799 | typedef struct { |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 1800 | VkStructureType sType; |
| 1801 | const void* pNext; |
| 1802 | VkDescriptorPool descriptorPool; |
| 1803 | uint32_t count; |
| 1804 | const VkDescriptorSetLayout* pSetLayouts; |
| 1805 | } VkDescriptorSetAllocInfo; |
| 1806 | |
| 1807 | typedef struct { |
Courtney Goeltzenleuchter | aa132e7 | 2015-10-22 15:31:56 -0600 | [diff] [blame] | 1808 | VkSampler sampler; |
| 1809 | VkImageView imageView; |
| 1810 | VkImageLayout imageLayout; |
| 1811 | } VkDescriptorImageInfo; |
| 1812 | |
| 1813 | typedef struct { |
Courtney Goeltzenleuchter | 6eb1aeb | 2015-09-11 15:29:21 -0600 | [diff] [blame] | 1814 | VkBuffer buffer; |
| 1815 | VkDeviceSize offset; |
| 1816 | VkDeviceSize range; |
Courtney Goeltzenleuchter | b46f227 | 2015-09-14 14:14:21 -0600 | [diff] [blame] | 1817 | } VkDescriptorBufferInfo; |
Courtney Goeltzenleuchter | 6eb1aeb | 2015-09-11 15:29:21 -0600 | [diff] [blame] | 1818 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1819 | typedef struct { |
| 1820 | VkStructureType sType; |
| 1821 | const void* pNext; |
| 1822 | VkDescriptorSet destSet; |
| 1823 | uint32_t destBinding; |
| 1824 | uint32_t destArrayElement; |
| 1825 | uint32_t count; |
| 1826 | VkDescriptorType descriptorType; |
Courtney Goeltzenleuchter | 4cb6d92 | 2015-10-23 13:38:14 -0600 | [diff] [blame] | 1827 | const VkDescriptorImageInfo* pImageInfo; |
| 1828 | const VkDescriptorBufferInfo* pBufferInfo; |
| 1829 | const VkBufferView* pTexelBufferView; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1830 | } VkWriteDescriptorSet; |
| 1831 | |
| 1832 | typedef struct { |
| 1833 | VkStructureType sType; |
| 1834 | const void* pNext; |
| 1835 | VkDescriptorSet srcSet; |
| 1836 | uint32_t srcBinding; |
| 1837 | uint32_t srcArrayElement; |
| 1838 | VkDescriptorSet destSet; |
| 1839 | uint32_t destBinding; |
| 1840 | uint32_t destArrayElement; |
| 1841 | uint32_t count; |
| 1842 | } VkCopyDescriptorSet; |
| 1843 | |
| 1844 | typedef struct { |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1845 | VkStructureType sType; |
| 1846 | const void* pNext; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1847 | VkRenderPass renderPass; |
| 1848 | uint32_t attachmentCount; |
Courtney Goeltzenleuchter | 5861a1b | 2015-09-01 17:30:39 -0600 | [diff] [blame] | 1849 | const VkImageView* pAttachments; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1850 | uint32_t width; |
| 1851 | uint32_t height; |
| 1852 | uint32_t layers; |
| 1853 | } VkFramebufferCreateInfo; |
| 1854 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1855 | typedef struct { |
| 1856 | VkStructureType sType; |
| 1857 | const void* pNext; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1858 | VkFormat format; |
| 1859 | uint32_t samples; |
| 1860 | VkAttachmentLoadOp loadOp; |
| 1861 | VkAttachmentStoreOp storeOp; |
| 1862 | VkAttachmentLoadOp stencilLoadOp; |
| 1863 | VkAttachmentStoreOp stencilStoreOp; |
| 1864 | VkImageLayout initialLayout; |
| 1865 | VkImageLayout finalLayout; |
Courtney Goeltzenleuchter | 304e656 | 2015-09-16 16:38:23 -0600 | [diff] [blame] | 1866 | VkAttachmentDescriptionFlags flags; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1867 | } VkAttachmentDescription; |
| 1868 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1869 | typedef struct { |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1870 | uint32_t attachment; |
| 1871 | VkImageLayout layout; |
| 1872 | } VkAttachmentReference; |
| 1873 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1874 | typedef struct { |
| 1875 | VkStructureType sType; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1876 | const void* pNext; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1877 | VkPipelineBindPoint pipelineBindPoint; |
| 1878 | VkSubpassDescriptionFlags flags; |
| 1879 | uint32_t inputCount; |
Cody Northrop | a505dda | 2015-08-04 11:16:41 -0600 | [diff] [blame] | 1880 | const VkAttachmentReference* pInputAttachments; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1881 | uint32_t colorCount; |
Cody Northrop | a505dda | 2015-08-04 11:16:41 -0600 | [diff] [blame] | 1882 | const VkAttachmentReference* pColorAttachments; |
| 1883 | const VkAttachmentReference* pResolveAttachments; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1884 | VkAttachmentReference depthStencilAttachment; |
| 1885 | uint32_t preserveCount; |
Cody Northrop | a505dda | 2015-08-04 11:16:41 -0600 | [diff] [blame] | 1886 | const VkAttachmentReference* pPreserveAttachments; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1887 | } VkSubpassDescription; |
| 1888 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1889 | typedef struct { |
| 1890 | VkStructureType sType; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1891 | const void* pNext; |
| 1892 | uint32_t srcSubpass; |
| 1893 | uint32_t destSubpass; |
| 1894 | VkPipelineStageFlags srcStageMask; |
| 1895 | VkPipelineStageFlags destStageMask; |
| 1896 | VkMemoryOutputFlags outputMask; |
| 1897 | VkMemoryInputFlags inputMask; |
| 1898 | VkBool32 byRegion; |
| 1899 | } VkSubpassDependency; |
| 1900 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1901 | typedef struct { |
| 1902 | VkStructureType sType; |
| 1903 | const void* pNext; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1904 | uint32_t attachmentCount; |
| 1905 | const VkAttachmentDescription* pAttachments; |
| 1906 | uint32_t subpassCount; |
| 1907 | const VkSubpassDescription* pSubpasses; |
| 1908 | uint32_t dependencyCount; |
| 1909 | const VkSubpassDependency* pDependencies; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1910 | } VkRenderPassCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1911 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1912 | typedef struct { |
| 1913 | VkStructureType sType; |
| 1914 | const void* pNext; |
| 1915 | uint32_t queueFamilyIndex; |
| 1916 | VkCmdPoolCreateFlags flags; |
| 1917 | } VkCmdPoolCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1918 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1919 | typedef struct { |
| 1920 | VkStructureType sType; |
| 1921 | const void* pNext; |
| 1922 | VkCmdPool cmdPool; |
| 1923 | VkCmdBufferLevel level; |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 1924 | uint32_t count; |
| 1925 | } VkCmdBufferAllocInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1926 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1927 | typedef struct { |
| 1928 | VkStructureType sType; |
| 1929 | const void* pNext; |
Courtney Goeltzenleuchter | 04bb5f8 | 2015-10-21 18:11:04 -0600 | [diff] [blame] | 1930 | VkCmdBufferUsageFlags flags; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1931 | VkRenderPass renderPass; |
Cody Northrop | cc09b9e | 2015-08-11 11:35:58 -0600 | [diff] [blame] | 1932 | uint32_t subpass; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1933 | VkFramebuffer framebuffer; |
| 1934 | } VkCmdBufferBeginInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1935 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1936 | typedef struct { |
| 1937 | VkDeviceSize srcOffset; |
| 1938 | VkDeviceSize destOffset; |
| 1939 | VkDeviceSize copySize; |
| 1940 | } VkBufferCopy; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1941 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1942 | typedef struct { |
Courtney Goeltzenleuchter | 908e767 | 2015-10-21 17:00:51 -0600 | [diff] [blame] | 1943 | VkImageAspectFlags aspect; |
Courtney Goeltzenleuchter | 01ee1ca | 2015-09-10 16:41:13 -0600 | [diff] [blame] | 1944 | uint32_t mipLevel; |
Courtney Goeltzenleuchter | 8367ce0 | 2015-10-16 09:46:00 -0600 | [diff] [blame] | 1945 | uint32_t baseArrayLayer; |
| 1946 | uint32_t numLayers; |
Courtney Goeltzenleuchter | 01ee1ca | 2015-09-10 16:41:13 -0600 | [diff] [blame] | 1947 | } VkImageSubresourceCopy; |
| 1948 | |
| 1949 | typedef struct { |
| 1950 | VkImageSubresourceCopy srcSubresource; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1951 | VkOffset3D srcOffset; |
Courtney Goeltzenleuchter | 01ee1ca | 2015-09-10 16:41:13 -0600 | [diff] [blame] | 1952 | VkImageSubresourceCopy destSubresource; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1953 | VkOffset3D destOffset; |
| 1954 | VkExtent3D extent; |
| 1955 | } VkImageCopy; |
| 1956 | |
| 1957 | typedef struct { |
Courtney Goeltzenleuchter | 01ee1ca | 2015-09-10 16:41:13 -0600 | [diff] [blame] | 1958 | VkImageSubresourceCopy srcSubresource; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1959 | VkOffset3D srcOffset; |
| 1960 | VkExtent3D srcExtent; |
Courtney Goeltzenleuchter | 01ee1ca | 2015-09-10 16:41:13 -0600 | [diff] [blame] | 1961 | VkImageSubresourceCopy destSubresource; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1962 | VkOffset3D destOffset; |
| 1963 | VkExtent3D destExtent; |
| 1964 | } VkImageBlit; |
| 1965 | |
| 1966 | typedef struct { |
| 1967 | VkDeviceSize bufferOffset; |
| 1968 | uint32_t bufferRowLength; |
| 1969 | uint32_t bufferImageHeight; |
Courtney Goeltzenleuchter | 01ee1ca | 2015-09-10 16:41:13 -0600 | [diff] [blame] | 1970 | VkImageSubresourceCopy imageSubresource; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1971 | VkOffset3D imageOffset; |
| 1972 | VkExtent3D imageExtent; |
| 1973 | } VkBufferImageCopy; |
| 1974 | |
| 1975 | typedef union { |
Cody Northrop | 85789d5 | 2015-08-25 15:26:38 -0600 | [diff] [blame] | 1976 | float float32[4]; |
| 1977 | int32_t int32[4]; |
| 1978 | uint32_t uint32[4]; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 1979 | } VkClearColorValue; |
| 1980 | |
| 1981 | typedef struct { |
Courtney Goeltzenleuchter | 45df9e1 | 2015-09-15 18:03:22 -0600 | [diff] [blame] | 1982 | float depth; |
| 1983 | uint32_t stencil; |
| 1984 | } VkClearDepthStencilValue; |
| 1985 | |
Courtney Goeltzenleuchter | c9323e0 | 2015-10-15 16:51:05 -0600 | [diff] [blame] | 1986 | typedef union { |
| 1987 | VkClearColorValue color; |
| 1988 | VkClearDepthStencilValue depthStencil; |
| 1989 | } VkClearValue; |
| 1990 | |
| 1991 | typedef struct { |
| 1992 | VkImageAspectFlags aspectMask; |
| 1993 | uint32_t colorAttachment; |
| 1994 | VkClearValue clearValue; |
| 1995 | } VkClearAttachment; |
| 1996 | |
Courtney Goeltzenleuchter | 45df9e1 | 2015-09-15 18:03:22 -0600 | [diff] [blame] | 1997 | typedef struct { |
Courtney Goeltzenleuchter | 5d2aed4 | 2015-10-21 17:57:31 -0600 | [diff] [blame] | 1998 | VkRect2D rect; |
Courtney Goeltzenleuchter | 4ca43f6 | 2015-10-15 18:22:08 -0600 | [diff] [blame] | 1999 | uint32_t baseArrayLayer; |
| 2000 | uint32_t numLayers; |
| 2001 | } VkClearRect; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2002 | |
| 2003 | typedef struct { |
Courtney Goeltzenleuchter | 01ee1ca | 2015-09-10 16:41:13 -0600 | [diff] [blame] | 2004 | VkImageSubresourceCopy srcSubresource; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2005 | VkOffset3D srcOffset; |
Courtney Goeltzenleuchter | 01ee1ca | 2015-09-10 16:41:13 -0600 | [diff] [blame] | 2006 | VkImageSubresourceCopy destSubresource; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2007 | VkOffset3D destOffset; |
| 2008 | VkExtent3D extent; |
| 2009 | } VkImageResolve; |
| 2010 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2011 | typedef struct { |
| 2012 | VkStructureType sType; |
| 2013 | const void* pNext; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 2014 | VkRenderPass renderPass; |
| 2015 | VkFramebuffer framebuffer; |
| 2016 | VkRect2D renderArea; |
Cody Northrop | 23dd89d | 2015-08-04 11:51:03 -0600 | [diff] [blame] | 2017 | uint32_t clearValueCount; |
| 2018 | const VkClearValue* pClearValues; |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 2019 | } VkRenderPassBeginInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2020 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2021 | typedef struct { |
| 2022 | VkStructureType sType; |
| 2023 | const void* pNext; |
| 2024 | VkMemoryOutputFlags outputMask; |
| 2025 | VkMemoryInputFlags inputMask; |
| 2026 | uint32_t srcQueueFamilyIndex; |
| 2027 | uint32_t destQueueFamilyIndex; |
| 2028 | VkBuffer buffer; |
| 2029 | VkDeviceSize offset; |
| 2030 | VkDeviceSize size; |
| 2031 | } VkBufferMemoryBarrier; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2032 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2033 | typedef struct { |
| 2034 | uint32_t x; |
| 2035 | uint32_t y; |
| 2036 | uint32_t z; |
| 2037 | } VkDispatchIndirectCmd; |
| 2038 | |
| 2039 | typedef struct { |
Courtney Goeltzenleuchter | 36fd866 | 2015-08-28 16:36:35 -0600 | [diff] [blame] | 2040 | uint32_t indexCount; |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 2041 | uint32_t instanceCount; |
| 2042 | uint32_t firstIndex; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2043 | int32_t vertexOffset; |
| 2044 | uint32_t firstInstance; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2045 | } VkDrawIndexedIndirectCmd; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2046 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2047 | typedef struct { |
Courtney Goeltzenleuchter | 36fd866 | 2015-08-28 16:36:35 -0600 | [diff] [blame] | 2048 | uint32_t vertexCount; |
Courtney Goeltzenleuchter | 36fd866 | 2015-08-28 16:36:35 -0600 | [diff] [blame] | 2049 | uint32_t instanceCount; |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 2050 | uint32_t firstVertex; |
| 2051 | uint32_t firstInstance; |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2052 | } VkDrawIndirectCmd; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2053 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2054 | typedef struct { |
| 2055 | VkStructureType sType; |
| 2056 | const void* pNext; |
| 2057 | VkMemoryOutputFlags outputMask; |
| 2058 | VkMemoryInputFlags inputMask; |
| 2059 | VkImageLayout oldLayout; |
| 2060 | VkImageLayout newLayout; |
| 2061 | uint32_t srcQueueFamilyIndex; |
| 2062 | uint32_t destQueueFamilyIndex; |
| 2063 | VkImage image; |
| 2064 | VkImageSubresourceRange subresourceRange; |
| 2065 | } VkImageMemoryBarrier; |
| 2066 | |
| 2067 | typedef struct { |
| 2068 | VkStructureType sType; |
| 2069 | const void* pNext; |
| 2070 | VkMemoryOutputFlags outputMask; |
| 2071 | VkMemoryInputFlags inputMask; |
| 2072 | } VkMemoryBarrier; |
| 2073 | |
| 2074 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2075 | typedef VkResult (VKAPI *PFN_vkCreateInstance)(const VkInstanceCreateInfo* pCreateInfo, VkInstance* pInstance); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2076 | typedef void (VKAPI *PFN_vkDestroyInstance)(VkInstance instance); |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2077 | typedef VkResult (VKAPI *PFN_vkEnumeratePhysicalDevices)(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices); |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2078 | typedef void (VKAPI *PFN_vkGetPhysicalDeviceFeatures)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures); |
| 2079 | typedef void (VKAPI *PFN_vkGetPhysicalDeviceFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties); |
| 2080 | typedef void (VKAPI *PFN_vkGetPhysicalDeviceImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties); |
| 2081 | typedef void (VKAPI *PFN_vkGetPhysicalDeviceProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties); |
| 2082 | typedef void (VKAPI *PFN_vkGetPhysicalDeviceQueueFamilyProperties)(VkPhysicalDevice physicalDevice, uint32_t* pCount, VkQueueFamilyProperties* pQueueFamilyProperties); |
| 2083 | typedef void (VKAPI *PFN_vkGetPhysicalDeviceMemoryProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties* pMemoryProperties); |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2084 | typedef PFN_vkVoidFunction (VKAPI *PFN_vkGetInstanceProcAddr)(VkInstance instance, const char* pName); |
| 2085 | typedef PFN_vkVoidFunction (VKAPI *PFN_vkGetDeviceProcAddr)(VkDevice device, const char* pName); |
| 2086 | typedef VkResult (VKAPI *PFN_vkCreateDevice)(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo, VkDevice* pDevice); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2087 | typedef void (VKAPI *PFN_vkDestroyDevice)(VkDevice device); |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 2088 | typedef VkResult (VKAPI *PFN_vkEnumerateInstanceExtensionProperties)(const char* pLayerName, uint32_t* pCount, VkExtensionProperties* pProperties); |
| 2089 | typedef VkResult (VKAPI *PFN_vkEnumerateDeviceExtensionProperties)(VkPhysicalDevice physicalDevice, const char* pLayerName, uint32_t* pCount, VkExtensionProperties* pProperties); |
| 2090 | typedef VkResult (VKAPI *PFN_vkEnumerateInstanceLayerProperties)(uint32_t* pCount, VkLayerProperties* pProperties); |
| 2091 | typedef VkResult (VKAPI *PFN_vkEnumerateDeviceLayerProperties)(VkPhysicalDevice physicalDevice, uint32_t* pCount, VkLayerProperties* pProperties); |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2092 | typedef void (VKAPI *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue* pQueue); |
Courtney Goeltzenleuchter | 646b907 | 2015-10-20 18:04:07 -0600 | [diff] [blame] | 2093 | typedef VkResult (VKAPI *PFN_vkQueueSubmit)(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmitInfo, VkFence fence); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2094 | typedef VkResult (VKAPI *PFN_vkQueueWaitIdle)(VkQueue queue); |
| 2095 | typedef VkResult (VKAPI *PFN_vkDeviceWaitIdle)(VkDevice device); |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2096 | typedef VkResult (VKAPI *PFN_vkAllocMemory)(VkDevice device, const VkMemoryAllocInfo* pAllocInfo, VkDeviceMemory* pMem); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2097 | typedef void (VKAPI *PFN_vkFreeMemory)(VkDevice device, VkDeviceMemory mem); |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2098 | typedef VkResult (VKAPI *PFN_vkMapMemory)(VkDevice device, VkDeviceMemory mem, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2099 | typedef void (VKAPI *PFN_vkUnmapMemory)(VkDevice device, VkDeviceMemory mem); |
Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 2100 | typedef VkResult (VKAPI *PFN_vkFlushMappedMemoryRanges)(VkDevice device, uint32_t memRangeCount, const VkMappedMemoryRange* pMemRanges); |
| 2101 | typedef VkResult (VKAPI *PFN_vkInvalidateMappedMemoryRanges)(VkDevice device, uint32_t memRangeCount, const VkMappedMemoryRange* pMemRanges); |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2102 | typedef void (VKAPI *PFN_vkGetDeviceMemoryCommitment)(VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2103 | typedef VkResult (VKAPI *PFN_vkBindBufferMemory)(VkDevice device, VkBuffer buffer, VkDeviceMemory mem, VkDeviceSize memOffset); |
| 2104 | typedef VkResult (VKAPI *PFN_vkBindImageMemory)(VkDevice device, VkImage image, VkDeviceMemory mem, VkDeviceSize memOffset); |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2105 | typedef void (VKAPI *PFN_vkGetBufferMemoryRequirements)(VkDevice device, VkBuffer buffer, VkMemoryRequirements* pMemoryRequirements); |
| 2106 | typedef void (VKAPI *PFN_vkGetImageMemoryRequirements)(VkDevice device, VkImage image, VkMemoryRequirements* pMemoryRequirements); |
| 2107 | typedef void (VKAPI *PFN_vkGetImageSparseMemoryRequirements)(VkDevice device, VkImage image, uint32_t* pNumRequirements, VkSparseImageMemoryRequirements* pSparseMemoryRequirements); |
| 2108 | typedef void (VKAPI *PFN_vkGetPhysicalDeviceSparseImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, uint32_t samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pNumProperties, VkSparseImageFormatProperties* pProperties); |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 2109 | typedef VkResult (VKAPI *PFN_vkQueueBindSparseBufferMemory)(VkQueue queue, VkBuffer buffer, uint32_t numBindings, const VkSparseMemoryBindInfo* pBindInfo); |
| 2110 | typedef VkResult (VKAPI *PFN_vkQueueBindSparseImageOpaqueMemory)(VkQueue queue, VkImage image, uint32_t numBindings, const VkSparseMemoryBindInfo* pBindInfo); |
| 2111 | typedef VkResult (VKAPI *PFN_vkQueueBindSparseImageMemory)(VkQueue queue, VkImage image, uint32_t numBindings, const VkSparseImageMemoryBindInfo* pBindInfo); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2112 | typedef VkResult (VKAPI *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, VkFence* pFence); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2113 | typedef void (VKAPI *PFN_vkDestroyFence)(VkDevice device, VkFence fence); |
Courtney Goeltzenleuchter | 2bf8f90 | 2015-06-18 17:28:20 -0600 | [diff] [blame] | 2114 | typedef VkResult (VKAPI *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences); |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2115 | typedef VkResult (VKAPI *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence); |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 2116 | typedef VkResult (VKAPI *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2117 | typedef VkResult (VKAPI *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, VkSemaphore* pSemaphore); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2118 | typedef void (VKAPI *PFN_vkDestroySemaphore)(VkDevice device, VkSemaphore semaphore); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2119 | typedef VkResult (VKAPI *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo* pCreateInfo, VkEvent* pEvent); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2120 | typedef void (VKAPI *PFN_vkDestroyEvent)(VkDevice device, VkEvent event); |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2121 | typedef VkResult (VKAPI *PFN_vkGetEventStatus)(VkDevice device, VkEvent event); |
| 2122 | typedef VkResult (VKAPI *PFN_vkSetEvent)(VkDevice device, VkEvent event); |
| 2123 | typedef VkResult (VKAPI *PFN_vkResetEvent)(VkDevice device, VkEvent event); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2124 | typedef VkResult (VKAPI *PFN_vkCreateQueryPool)(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, VkQueryPool* pQueryPool); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2125 | typedef void (VKAPI *PFN_vkDestroyQueryPool)(VkDevice device, VkQueryPool queryPool); |
Chia-I Wu | ccc93a7 | 2015-10-26 18:36:20 +0800 | [diff] [blame] | 2126 | typedef VkResult (VKAPI *PFN_vkGetQueryPoolResults)(VkDevice device, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, size_t dataSize, void* pData, VkDeviceSize stride, VkQueryResultFlags flags); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2127 | typedef VkResult (VKAPI *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkBuffer* pBuffer); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2128 | typedef void (VKAPI *PFN_vkDestroyBuffer)(VkDevice device, VkBuffer buffer); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2129 | typedef VkResult (VKAPI *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, VkBufferView* pView); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2130 | typedef void (VKAPI *PFN_vkDestroyBufferView)(VkDevice device, VkBufferView bufferView); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2131 | typedef VkResult (VKAPI *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo* pCreateInfo, VkImage* pImage); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2132 | typedef void (VKAPI *PFN_vkDestroyImage)(VkDevice device, VkImage image); |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2133 | typedef void (VKAPI *PFN_vkGetImageSubresourceLayout)(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2134 | typedef VkResult (VKAPI *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, VkImageView* pView); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2135 | typedef void (VKAPI *PFN_vkDestroyImageView)(VkDevice device, VkImageView imageView); |
Courtney Goeltzenleuchter | a607df1 | 2015-06-18 21:49:59 -0600 | [diff] [blame] | 2136 | typedef VkResult (VKAPI *PFN_vkCreateShaderModule)(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, VkShaderModule* pShaderModule); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2137 | typedef void (VKAPI *PFN_vkDestroyShaderModule)(VkDevice device, VkShaderModule shaderModule); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2138 | typedef VkResult (VKAPI *PFN_vkCreateShader)(VkDevice device, const VkShaderCreateInfo* pCreateInfo, VkShader* pShader); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2139 | typedef void (VKAPI *PFN_vkDestroyShader)(VkDevice device, VkShader shader); |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 2140 | typedef VkResult (VKAPI *PFN_vkCreatePipelineCache)(VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, VkPipelineCache* pPipelineCache); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2141 | typedef void (VKAPI *PFN_vkDestroyPipelineCache)(VkDevice device, VkPipelineCache pipelineCache); |
Chia-I Wu | b16facd | 2015-10-26 19:17:06 +0800 | [diff] [blame] | 2142 | typedef VkResult (VKAPI *PFN_vkGetPipelineCacheData)(VkDevice device, VkPipelineCache pipelineCache, size_t* pDataSize, void* pData); |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 2143 | typedef VkResult (VKAPI *PFN_vkMergePipelineCaches)(VkDevice device, VkPipelineCache destCache, uint32_t srcCacheCount, const VkPipelineCache* pSrcCaches); |
| 2144 | typedef VkResult (VKAPI *PFN_vkCreateGraphicsPipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t count, const VkGraphicsPipelineCreateInfo* pCreateInfos, VkPipeline* pPipelines); |
| 2145 | typedef VkResult (VKAPI *PFN_vkCreateComputePipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t count, const VkComputePipelineCreateInfo* pCreateInfos, VkPipeline* pPipelines); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2146 | typedef void (VKAPI *PFN_vkDestroyPipeline)(VkDevice device, VkPipeline pipeline); |
Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 2147 | typedef VkResult (VKAPI *PFN_vkCreatePipelineLayout)(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, VkPipelineLayout* pPipelineLayout); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2148 | typedef void (VKAPI *PFN_vkDestroyPipelineLayout)(VkDevice device, VkPipelineLayout pipelineLayout); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2149 | typedef VkResult (VKAPI *PFN_vkCreateSampler)(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, VkSampler* pSampler); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2150 | typedef void (VKAPI *PFN_vkDestroySampler)(VkDevice device, VkSampler sampler); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2151 | typedef VkResult (VKAPI *PFN_vkCreateDescriptorSetLayout)(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, VkDescriptorSetLayout* pSetLayout); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2152 | typedef void (VKAPI *PFN_vkDestroyDescriptorSetLayout)(VkDevice device, VkDescriptorSetLayout descriptorSetLayout); |
Courtney Goeltzenleuchter | fe908d3 | 2015-09-16 16:12:45 -0600 | [diff] [blame] | 2153 | typedef VkResult (VKAPI *PFN_vkCreateDescriptorPool)(VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo, VkDescriptorPool* pDescriptorPool); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2154 | typedef void (VKAPI *PFN_vkDestroyDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool); |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 2155 | typedef VkResult (VKAPI *PFN_vkResetDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags); |
| 2156 | typedef VkResult (VKAPI *PFN_vkAllocDescriptorSets)(VkDevice device, const VkDescriptorSetAllocInfo* pAllocInfo, VkDescriptorSet* pDescriptorSets); |
Tony Barbour | 34ec692 | 2015-07-10 10:50:45 -0600 | [diff] [blame] | 2157 | typedef VkResult (VKAPI *PFN_vkFreeDescriptorSets)(VkDevice device, VkDescriptorPool descriptorPool, uint32_t count, const VkDescriptorSet* pDescriptorSets); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2158 | typedef void (VKAPI *PFN_vkUpdateDescriptorSets)(VkDevice device, uint32_t writeCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t copyCount, const VkCopyDescriptorSet* pDescriptorCopies); |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2159 | typedef VkResult (VKAPI *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, VkFramebuffer* pFramebuffer); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2160 | typedef void (VKAPI *PFN_vkDestroyFramebuffer)(VkDevice device, VkFramebuffer framebuffer); |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2161 | typedef VkResult (VKAPI *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, VkRenderPass* pRenderPass); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2162 | typedef void (VKAPI *PFN_vkDestroyRenderPass)(VkDevice device, VkRenderPass renderPass); |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2163 | typedef void (VKAPI *PFN_vkGetRenderAreaGranularity)(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity); |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 2164 | typedef VkResult (VKAPI *PFN_vkCreateCommandPool)(VkDevice device, const VkCmdPoolCreateInfo* pCreateInfo, VkCmdPool* pCmdPool); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2165 | typedef void (VKAPI *PFN_vkDestroyCommandPool)(VkDevice device, VkCmdPool cmdPool); |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 2166 | typedef VkResult (VKAPI *PFN_vkResetCommandPool)(VkDevice device, VkCmdPool cmdPool, VkCmdPoolResetFlags flags); |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 2167 | typedef VkResult (VKAPI *PFN_vkAllocCommandBuffers)(VkDevice device, const VkCmdBufferAllocInfo* pAllocInfo, VkCmdBuffer* pCmdBuffers); |
| 2168 | typedef void (VKAPI *PFN_vkFreeCommandBuffers)(VkDevice device, VkCmdPool cmdPool, uint32_t count, const VkCmdBuffer* pCommandBuffers); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2169 | typedef VkResult (VKAPI *PFN_vkBeginCommandBuffer)(VkCmdBuffer cmdBuffer, const VkCmdBufferBeginInfo* pBeginInfo); |
| 2170 | typedef VkResult (VKAPI *PFN_vkEndCommandBuffer)(VkCmdBuffer cmdBuffer); |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 2171 | typedef VkResult (VKAPI *PFN_vkResetCommandBuffer)(VkCmdBuffer cmdBuffer, VkCmdBufferResetFlags flags); |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2172 | typedef void (VKAPI *PFN_vkCmdBindPipeline)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline); |
Courtney Goeltzenleuchter | 078f817 | 2015-09-21 11:44:06 -0600 | [diff] [blame] | 2173 | typedef void (VKAPI *PFN_vkCmdSetViewport)(VkCmdBuffer cmdBuffer, uint32_t viewportCount, const VkViewport* pViewports); |
| 2174 | typedef void (VKAPI *PFN_vkCmdSetScissor)(VkCmdBuffer cmdBuffer, uint32_t scissorCount, const VkRect2D* pScissors); |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2175 | typedef void (VKAPI *PFN_vkCmdSetLineWidth)(VkCmdBuffer cmdBuffer, float lineWidth); |
Chia-I Wu | d8c946a | 2015-10-26 19:08:09 +0800 | [diff] [blame] | 2176 | typedef void (VKAPI *PFN_vkCmdSetDepthBias)(VkCmdBuffer cmdBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor); |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2177 | typedef void (VKAPI *PFN_vkCmdSetBlendConstants)(VkCmdBuffer cmdBuffer, const float blendConst[4]); |
| 2178 | typedef void (VKAPI *PFN_vkCmdSetDepthBounds)(VkCmdBuffer cmdBuffer, float minDepthBounds, float maxDepthBounds); |
| 2179 | typedef void (VKAPI *PFN_vkCmdSetStencilCompareMask)(VkCmdBuffer cmdBuffer, VkStencilFaceFlags faceMask, uint32_t stencilCompareMask); |
| 2180 | typedef void (VKAPI *PFN_vkCmdSetStencilWriteMask)(VkCmdBuffer cmdBuffer, VkStencilFaceFlags faceMask, uint32_t stencilWriteMask); |
| 2181 | typedef void (VKAPI *PFN_vkCmdSetStencilReference)(VkCmdBuffer cmdBuffer, VkStencilFaceFlags faceMask, uint32_t stencilReference); |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2182 | 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); |
| 2183 | typedef void (VKAPI *PFN_vkCmdBindIndexBuffer)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType); |
| 2184 | typedef void (VKAPI *PFN_vkCmdBindVertexBuffers)(VkCmdBuffer cmdBuffer, uint32_t startBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets); |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 2185 | typedef void (VKAPI *PFN_vkCmdDraw)(VkCmdBuffer cmdBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance); |
| 2186 | typedef void (VKAPI *PFN_vkCmdDrawIndexed)(VkCmdBuffer cmdBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance); |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2187 | typedef void (VKAPI *PFN_vkCmdDrawIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t count, uint32_t stride); |
| 2188 | typedef void (VKAPI *PFN_vkCmdDrawIndexedIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t count, uint32_t stride); |
| 2189 | typedef void (VKAPI *PFN_vkCmdDispatch)(VkCmdBuffer cmdBuffer, uint32_t x, uint32_t y, uint32_t z); |
| 2190 | typedef void (VKAPI *PFN_vkCmdDispatchIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset); |
| 2191 | typedef void (VKAPI *PFN_vkCmdCopyBuffer)(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkBuffer destBuffer, uint32_t regionCount, const VkBufferCopy* pRegions); |
| 2192 | typedef void (VKAPI *PFN_vkCmdCopyImage)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageCopy* pRegions); |
| 2193 | typedef void (VKAPI *PFN_vkCmdBlitImage)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkTexFilter filter); |
| 2194 | typedef void (VKAPI *PFN_vkCmdCopyBufferToImage)(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions); |
| 2195 | typedef void (VKAPI *PFN_vkCmdCopyImageToBuffer)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer destBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions); |
| 2196 | typedef void (VKAPI *PFN_vkCmdUpdateBuffer)(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize dataSize, const uint32_t* pData); |
| 2197 | typedef void (VKAPI *PFN_vkCmdFillBuffer)(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize fillSize, uint32_t data); |
| 2198 | typedef void (VKAPI *PFN_vkCmdClearColorImage)(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); |
Courtney Goeltzenleuchter | 45df9e1 | 2015-09-15 18:03:22 -0600 | [diff] [blame] | 2199 | typedef void (VKAPI *PFN_vkCmdClearDepthStencilImage)(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); |
Courtney Goeltzenleuchter | 4ca43f6 | 2015-10-15 18:22:08 -0600 | [diff] [blame] | 2200 | typedef void (VKAPI *PFN_vkCmdClearAttachments)(VkCmdBuffer cmdBuffer, uint32_t attachmentCount, const VkClearAttachment* pAttachments, uint32_t rectCount, const VkClearRect* pRects); |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2201 | typedef void (VKAPI *PFN_vkCmdResolveImage)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageResolve* pRegions); |
| 2202 | typedef void (VKAPI *PFN_vkCmdSetEvent)(VkCmdBuffer cmdBuffer, VkEvent event, VkPipelineStageFlags stageMask); |
| 2203 | typedef void (VKAPI *PFN_vkCmdResetEvent)(VkCmdBuffer cmdBuffer, VkEvent event, VkPipelineStageFlags stageMask); |
| 2204 | typedef void (VKAPI *PFN_vkCmdWaitEvents)(VkCmdBuffer cmdBuffer, uint32_t eventCount, const VkEvent* pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags destStageMask, uint32_t memBarrierCount, const void* const* ppMemBarriers); |
| 2205 | typedef void (VKAPI *PFN_vkCmdPipelineBarrier)(VkCmdBuffer cmdBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags destStageMask, VkBool32 byRegion, uint32_t memBarrierCount, const void* const* ppMemBarriers); |
| 2206 | typedef void (VKAPI *PFN_vkCmdBeginQuery)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot, VkQueryControlFlags flags); |
| 2207 | typedef void (VKAPI *PFN_vkCmdEndQuery)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot); |
| 2208 | typedef void (VKAPI *PFN_vkCmdResetQueryPool)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount); |
Chia-I Wu | 51ce5ea | 2015-10-26 19:40:27 +0800 | [diff] [blame] | 2209 | typedef void (VKAPI *PFN_vkCmdWriteTimestamp)(VkCmdBuffer cmdBuffer, VkPipelineStageFlagBits pipelineStage, VkBuffer destBuffer, VkDeviceSize destOffset); |
Chia-I Wu | ccc93a7 | 2015-10-26 18:36:20 +0800 | [diff] [blame] | 2210 | typedef void (VKAPI *PFN_vkCmdCopyQueryPoolResults)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize stride, VkQueryResultFlags flags); |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2211 | typedef void (VKAPI *PFN_vkCmdPushConstants)(VkCmdBuffer cmdBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t start, uint32_t length, const void* values); |
| 2212 | typedef void (VKAPI *PFN_vkCmdBeginRenderPass)(VkCmdBuffer cmdBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkRenderPassContents contents); |
| 2213 | typedef void (VKAPI *PFN_vkCmdNextSubpass)(VkCmdBuffer cmdBuffer, VkRenderPassContents contents); |
| 2214 | typedef void (VKAPI *PFN_vkCmdEndRenderPass)(VkCmdBuffer cmdBuffer); |
| 2215 | typedef void (VKAPI *PFN_vkCmdExecuteCommands)(VkCmdBuffer cmdBuffer, uint32_t cmdBuffersCount, const VkCmdBuffer* pCmdBuffers); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2216 | |
| 2217 | #ifdef VK_PROTOTYPES |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2218 | VkResult VKAPI vkCreateInstance( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2219 | const VkInstanceCreateInfo* pCreateInfo, |
| 2220 | VkInstance* pInstance); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2221 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2222 | void VKAPI vkDestroyInstance( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2223 | VkInstance instance); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2224 | |
Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 2225 | VkResult VKAPI vkEnumeratePhysicalDevices( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2226 | VkInstance instance, |
Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 2227 | uint32_t* pPhysicalDeviceCount, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2228 | VkPhysicalDevice* pPhysicalDevices); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2229 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2230 | void VKAPI vkGetPhysicalDeviceFeatures( |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 2231 | VkPhysicalDevice physicalDevice, |
| 2232 | VkPhysicalDeviceFeatures* pFeatures); |
| 2233 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2234 | void VKAPI vkGetPhysicalDeviceFormatProperties( |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 2235 | VkPhysicalDevice physicalDevice, |
| 2236 | VkFormat format, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2237 | VkFormatProperties* pFormatProperties); |
| 2238 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2239 | void VKAPI vkGetPhysicalDeviceImageFormatProperties( |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2240 | VkPhysicalDevice physicalDevice, |
| 2241 | VkFormat format, |
| 2242 | VkImageType type, |
| 2243 | VkImageTiling tiling, |
| 2244 | VkImageUsageFlags usage, |
Courtney Goeltzenleuchter | a22097a | 2015-09-10 13:44:12 -0600 | [diff] [blame] | 2245 | VkImageCreateFlags flags, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2246 | VkImageFormatProperties* pImageFormatProperties); |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 2247 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2248 | void VKAPI vkGetPhysicalDeviceProperties( |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2249 | VkPhysicalDevice physicalDevice, |
| 2250 | VkPhysicalDeviceProperties* pProperties); |
| 2251 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2252 | void VKAPI vkGetPhysicalDeviceQueueFamilyProperties( |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2253 | VkPhysicalDevice physicalDevice, |
Cody Northrop | d080288 | 2015-08-03 17:04:53 -0600 | [diff] [blame] | 2254 | uint32_t* pCount, |
| 2255 | VkQueueFamilyProperties* pQueueFamilyProperties); |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2256 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2257 | void VKAPI vkGetPhysicalDeviceMemoryProperties( |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2258 | VkPhysicalDevice physicalDevice, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2259 | VkPhysicalDeviceMemoryProperties* pMemoryProperties); |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2260 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2261 | PFN_vkVoidFunction VKAPI vkGetInstanceProcAddr( |
| 2262 | VkInstance instance, |
| 2263 | const char* pName); |
| 2264 | |
| 2265 | PFN_vkVoidFunction VKAPI vkGetDeviceProcAddr( |
| 2266 | VkDevice device, |
| 2267 | const char* pName); |
| 2268 | |
| 2269 | VkResult VKAPI vkCreateDevice( |
| 2270 | VkPhysicalDevice physicalDevice, |
| 2271 | const VkDeviceCreateInfo* pCreateInfo, |
| 2272 | VkDevice* pDevice); |
| 2273 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2274 | void VKAPI vkDestroyDevice( |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2275 | VkDevice device); |
Courtney Goeltzenleuchter | d7a5cff | 2015-04-23 17:49:22 -0600 | [diff] [blame] | 2276 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 2277 | VkResult VKAPI vkEnumerateInstanceExtensionProperties( |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 2278 | const char* pLayerName, |
| 2279 | uint32_t* pCount, |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2280 | VkExtensionProperties* pProperties); |
| 2281 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 2282 | VkResult VKAPI vkEnumerateDeviceExtensionProperties( |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2283 | VkPhysicalDevice physicalDevice, |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 2284 | const char* pLayerName, |
| 2285 | uint32_t* pCount, |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2286 | VkExtensionProperties* pProperties); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2287 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 2288 | VkResult VKAPI vkEnumerateInstanceLayerProperties( |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 2289 | uint32_t* pCount, |
| 2290 | VkLayerProperties* pProperties); |
| 2291 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 2292 | VkResult VKAPI vkEnumerateDeviceLayerProperties( |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 2293 | VkPhysicalDevice physicalDevice, |
| 2294 | uint32_t* pCount, |
| 2295 | VkLayerProperties* pProperties); |
| 2296 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2297 | void VKAPI vkGetDeviceQueue( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2298 | VkDevice device, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2299 | uint32_t queueFamilyIndex, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2300 | uint32_t queueIndex, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2301 | VkQueue* pQueue); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2302 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2303 | VkResult VKAPI vkQueueSubmit( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2304 | VkQueue queue, |
Courtney Goeltzenleuchter | 646b907 | 2015-10-20 18:04:07 -0600 | [diff] [blame] | 2305 | uint32_t submitCount, |
| 2306 | const VkSubmitInfo* pSubmitInfo, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2307 | VkFence fence); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2308 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2309 | VkResult VKAPI vkQueueWaitIdle( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2310 | VkQueue queue); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2311 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2312 | VkResult VKAPI vkDeviceWaitIdle( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2313 | VkDevice device); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2314 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2315 | VkResult VKAPI vkAllocMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2316 | VkDevice device, |
| 2317 | const VkMemoryAllocInfo* pAllocInfo, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2318 | VkDeviceMemory* pMem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2319 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2320 | void VKAPI vkFreeMemory( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2321 | VkDevice device, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2322 | VkDeviceMemory mem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2323 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2324 | VkResult VKAPI vkMapMemory( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2325 | VkDevice device, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2326 | VkDeviceMemory mem, |
Tony Barbour | 71a8512 | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 2327 | VkDeviceSize offset, |
| 2328 | VkDeviceSize size, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2329 | VkMemoryMapFlags flags, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2330 | void** ppData); |
| 2331 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2332 | void VKAPI vkUnmapMemory( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2333 | VkDevice device, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2334 | VkDeviceMemory mem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2335 | |
Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 2336 | VkResult VKAPI vkFlushMappedMemoryRanges( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2337 | VkDevice device, |
Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 2338 | uint32_t memRangeCount, |
| 2339 | const VkMappedMemoryRange* pMemRanges); |
| 2340 | |
| 2341 | VkResult VKAPI vkInvalidateMappedMemoryRanges( |
| 2342 | VkDevice device, |
| 2343 | uint32_t memRangeCount, |
| 2344 | const VkMappedMemoryRange* pMemRanges); |
Tony Barbour | b125054 | 2015-04-16 19:23:13 -0600 | [diff] [blame] | 2345 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2346 | void VKAPI vkGetDeviceMemoryCommitment( |
Courtney Goeltzenleuchter | fb71f22 | 2015-07-09 21:57:28 -0600 | [diff] [blame] | 2347 | VkDevice device, |
| 2348 | VkDeviceMemory memory, |
| 2349 | VkDeviceSize* pCommittedMemoryInBytes); |
| 2350 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2351 | VkResult VKAPI vkBindBufferMemory( |
Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 2352 | VkDevice device, |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2353 | VkBuffer buffer, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2354 | VkDeviceMemory mem, |
| 2355 | VkDeviceSize memOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2356 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2357 | VkResult VKAPI vkBindImageMemory( |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2358 | VkDevice device, |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2359 | VkImage image, |
| 2360 | VkDeviceMemory mem, |
| 2361 | VkDeviceSize memOffset); |
| 2362 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2363 | void VKAPI vkGetBufferMemoryRequirements( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2364 | VkDevice device, |
| 2365 | VkBuffer buffer, |
| 2366 | VkMemoryRequirements* pMemoryRequirements); |
| 2367 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2368 | void VKAPI vkGetImageMemoryRequirements( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2369 | VkDevice device, |
| 2370 | VkImage image, |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2371 | VkMemoryRequirements* pMemoryRequirements); |
| 2372 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2373 | void VKAPI vkGetImageSparseMemoryRequirements( |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 2374 | VkDevice device, |
| 2375 | VkImage image, |
| 2376 | uint32_t* pNumRequirements, |
| 2377 | VkSparseImageMemoryRequirements* pSparseMemoryRequirements); |
| 2378 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2379 | void VKAPI vkGetPhysicalDeviceSparseImageFormatProperties( |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 2380 | VkPhysicalDevice physicalDevice, |
| 2381 | VkFormat format, |
| 2382 | VkImageType type, |
| 2383 | uint32_t samples, |
| 2384 | VkImageUsageFlags usage, |
| 2385 | VkImageTiling tiling, |
| 2386 | uint32_t* pNumProperties, |
| 2387 | VkSparseImageFormatProperties* pProperties); |
| 2388 | |
Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 2389 | VkResult VKAPI vkQueueBindSparseBufferMemory( |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 2390 | VkQueue queue, |
Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 2391 | VkBuffer buffer, |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 2392 | uint32_t numBindings, |
| 2393 | const VkSparseMemoryBindInfo* pBindInfo); |
| 2394 | |
| 2395 | VkResult VKAPI vkQueueBindSparseImageOpaqueMemory( |
| 2396 | VkQueue queue, |
| 2397 | VkImage image, |
| 2398 | uint32_t numBindings, |
| 2399 | const VkSparseMemoryBindInfo* pBindInfo); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2400 | |
Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 2401 | VkResult VKAPI vkQueueBindSparseImageMemory( |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 2402 | VkQueue queue, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2403 | VkImage image, |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 2404 | uint32_t numBindings, |
| 2405 | const VkSparseImageMemoryBindInfo* pBindInfo); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2406 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2407 | VkResult VKAPI vkCreateFence( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2408 | VkDevice device, |
| 2409 | const VkFenceCreateInfo* pCreateInfo, |
| 2410 | VkFence* pFence); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2411 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2412 | void VKAPI vkDestroyFence( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2413 | VkDevice device, |
| 2414 | VkFence fence); |
| 2415 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2416 | VkResult VKAPI vkResetFences( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2417 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2418 | uint32_t fenceCount, |
Courtney Goeltzenleuchter | 2bf8f90 | 2015-06-18 17:28:20 -0600 | [diff] [blame] | 2419 | const VkFence* pFences); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2420 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2421 | VkResult VKAPI vkGetFenceStatus( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2422 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2423 | VkFence fence); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2424 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2425 | VkResult VKAPI vkWaitForFences( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2426 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2427 | uint32_t fenceCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2428 | const VkFence* pFences, |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 2429 | VkBool32 waitAll, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2430 | uint64_t timeout); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2431 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2432 | VkResult VKAPI vkCreateSemaphore( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2433 | VkDevice device, |
| 2434 | const VkSemaphoreCreateInfo* pCreateInfo, |
| 2435 | VkSemaphore* pSemaphore); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2436 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2437 | void VKAPI vkDestroySemaphore( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2438 | VkDevice device, |
| 2439 | VkSemaphore semaphore); |
| 2440 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2441 | VkResult VKAPI vkCreateEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2442 | VkDevice device, |
| 2443 | const VkEventCreateInfo* pCreateInfo, |
| 2444 | VkEvent* pEvent); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2445 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2446 | void VKAPI vkDestroyEvent( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2447 | VkDevice device, |
| 2448 | VkEvent event); |
| 2449 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2450 | VkResult VKAPI vkGetEventStatus( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2451 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2452 | VkEvent event); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2453 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2454 | VkResult VKAPI vkSetEvent( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2455 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2456 | VkEvent event); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2457 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2458 | VkResult VKAPI vkResetEvent( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2459 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2460 | VkEvent event); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2461 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2462 | VkResult VKAPI vkCreateQueryPool( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2463 | VkDevice device, |
| 2464 | const VkQueryPoolCreateInfo* pCreateInfo, |
| 2465 | VkQueryPool* pQueryPool); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2466 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2467 | void VKAPI vkDestroyQueryPool( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2468 | VkDevice device, |
| 2469 | VkQueryPool queryPool); |
| 2470 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2471 | VkResult VKAPI vkGetQueryPoolResults( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2472 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2473 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2474 | uint32_t startQuery, |
| 2475 | uint32_t queryCount, |
Chia-I Wu | ccc93a7 | 2015-10-26 18:36:20 +0800 | [diff] [blame] | 2476 | size_t dataSize, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2477 | void* pData, |
Chia-I Wu | ccc93a7 | 2015-10-26 18:36:20 +0800 | [diff] [blame] | 2478 | VkDeviceSize stride, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2479 | VkQueryResultFlags flags); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2480 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2481 | VkResult VKAPI vkCreateBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2482 | VkDevice device, |
| 2483 | const VkBufferCreateInfo* pCreateInfo, |
| 2484 | VkBuffer* pBuffer); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2485 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2486 | void VKAPI vkDestroyBuffer( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2487 | VkDevice device, |
| 2488 | VkBuffer buffer); |
| 2489 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2490 | VkResult VKAPI vkCreateBufferView( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2491 | VkDevice device, |
| 2492 | const VkBufferViewCreateInfo* pCreateInfo, |
| 2493 | VkBufferView* pView); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2494 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2495 | void VKAPI vkDestroyBufferView( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2496 | VkDevice device, |
| 2497 | VkBufferView bufferView); |
| 2498 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2499 | VkResult VKAPI vkCreateImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2500 | VkDevice device, |
| 2501 | const VkImageCreateInfo* pCreateInfo, |
| 2502 | VkImage* pImage); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2503 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2504 | void VKAPI vkDestroyImage( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2505 | VkDevice device, |
| 2506 | VkImage image); |
| 2507 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2508 | void VKAPI vkGetImageSubresourceLayout( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2509 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2510 | VkImage image, |
| 2511 | const VkImageSubresource* pSubresource, |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 2512 | VkSubresourceLayout* pLayout); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2513 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2514 | VkResult VKAPI vkCreateImageView( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2515 | VkDevice device, |
| 2516 | const VkImageViewCreateInfo* pCreateInfo, |
| 2517 | VkImageView* pView); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2518 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2519 | void VKAPI vkDestroyImageView( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2520 | VkDevice device, |
| 2521 | VkImageView imageView); |
| 2522 | |
Courtney Goeltzenleuchter | a607df1 | 2015-06-18 21:49:59 -0600 | [diff] [blame] | 2523 | VkResult VKAPI vkCreateShaderModule( |
| 2524 | VkDevice device, |
| 2525 | const VkShaderModuleCreateInfo* pCreateInfo, |
| 2526 | VkShaderModule* pShaderModule); |
| 2527 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2528 | void VKAPI vkDestroyShaderModule( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2529 | VkDevice device, |
| 2530 | VkShaderModule shaderModule); |
| 2531 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2532 | VkResult VKAPI vkCreateShader( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2533 | VkDevice device, |
| 2534 | const VkShaderCreateInfo* pCreateInfo, |
| 2535 | VkShader* pShader); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2536 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2537 | void VKAPI vkDestroyShader( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2538 | VkDevice device, |
| 2539 | VkShader shader); |
| 2540 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 2541 | VkResult VKAPI vkCreatePipelineCache( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2542 | VkDevice device, |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 2543 | const VkPipelineCacheCreateInfo* pCreateInfo, |
| 2544 | VkPipelineCache* pPipelineCache); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2545 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2546 | void VKAPI vkDestroyPipelineCache( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2547 | VkDevice device, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2548 | VkPipelineCache pipelineCache); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2549 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 2550 | VkResult VKAPI vkGetPipelineCacheData( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2551 | VkDevice device, |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 2552 | VkPipelineCache pipelineCache, |
Chia-I Wu | b16facd | 2015-10-26 19:17:06 +0800 | [diff] [blame] | 2553 | size_t* pDataSize, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2554 | void* pData); |
| 2555 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 2556 | VkResult VKAPI vkMergePipelineCaches( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2557 | VkDevice device, |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 2558 | VkPipelineCache destCache, |
| 2559 | uint32_t srcCacheCount, |
| 2560 | const VkPipelineCache* pSrcCaches); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2561 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 2562 | VkResult VKAPI vkCreateGraphicsPipelines( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2563 | VkDevice device, |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 2564 | VkPipelineCache pipelineCache, |
| 2565 | uint32_t count, |
| 2566 | const VkGraphicsPipelineCreateInfo* pCreateInfos, |
| 2567 | VkPipeline* pPipelines); |
| 2568 | |
| 2569 | VkResult VKAPI vkCreateComputePipelines( |
| 2570 | VkDevice device, |
| 2571 | VkPipelineCache pipelineCache, |
| 2572 | uint32_t count, |
| 2573 | const VkComputePipelineCreateInfo* pCreateInfos, |
| 2574 | VkPipeline* pPipelines); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2575 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2576 | void VKAPI vkDestroyPipeline( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2577 | VkDevice device, |
| 2578 | VkPipeline pipeline); |
| 2579 | |
Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 2580 | VkResult VKAPI vkCreatePipelineLayout( |
| 2581 | VkDevice device, |
| 2582 | const VkPipelineLayoutCreateInfo* pCreateInfo, |
| 2583 | VkPipelineLayout* pPipelineLayout); |
| 2584 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2585 | void VKAPI vkDestroyPipelineLayout( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2586 | VkDevice device, |
| 2587 | VkPipelineLayout pipelineLayout); |
| 2588 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2589 | VkResult VKAPI vkCreateSampler( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2590 | VkDevice device, |
| 2591 | const VkSamplerCreateInfo* pCreateInfo, |
| 2592 | VkSampler* pSampler); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2593 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2594 | void VKAPI vkDestroySampler( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2595 | VkDevice device, |
| 2596 | VkSampler sampler); |
| 2597 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2598 | VkResult VKAPI vkCreateDescriptorSetLayout( |
| 2599 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2600 | const VkDescriptorSetLayoutCreateInfo* pCreateInfo, |
| 2601 | VkDescriptorSetLayout* pSetLayout); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2602 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2603 | void VKAPI vkDestroyDescriptorSetLayout( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2604 | VkDevice device, |
| 2605 | VkDescriptorSetLayout descriptorSetLayout); |
| 2606 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2607 | VkResult VKAPI vkCreateDescriptorPool( |
| 2608 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2609 | const VkDescriptorPoolCreateInfo* pCreateInfo, |
| 2610 | VkDescriptorPool* pDescriptorPool); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2611 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2612 | void VKAPI vkDestroyDescriptorPool( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2613 | VkDevice device, |
| 2614 | VkDescriptorPool descriptorPool); |
| 2615 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2616 | VkResult VKAPI vkResetDescriptorPool( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2617 | VkDevice device, |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 2618 | VkDescriptorPool descriptorPool, |
| 2619 | VkDescriptorPoolResetFlags flags); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2620 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2621 | VkResult VKAPI vkAllocDescriptorSets( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2622 | VkDevice device, |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 2623 | const VkDescriptorSetAllocInfo* pAllocInfo, |
Cody Northrop | 1e4f802 | 2015-08-03 12:47:29 -0600 | [diff] [blame] | 2624 | VkDescriptorSet* pDescriptorSets); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2625 | |
Tony Barbour | 34ec692 | 2015-07-10 10:50:45 -0600 | [diff] [blame] | 2626 | VkResult VKAPI vkFreeDescriptorSets( |
| 2627 | VkDevice device, |
| 2628 | VkDescriptorPool descriptorPool, |
| 2629 | uint32_t count, |
| 2630 | const VkDescriptorSet* pDescriptorSets); |
| 2631 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2632 | void VKAPI vkUpdateDescriptorSets( |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 2633 | VkDevice device, |
Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 2634 | uint32_t writeCount, |
| 2635 | const VkWriteDescriptorSet* pDescriptorWrites, |
| 2636 | uint32_t copyCount, |
| 2637 | const VkCopyDescriptorSet* pDescriptorCopies); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2638 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2639 | VkResult VKAPI vkCreateFramebuffer( |
| 2640 | VkDevice device, |
| 2641 | const VkFramebufferCreateInfo* pCreateInfo, |
| 2642 | VkFramebuffer* pFramebuffer); |
| 2643 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2644 | void VKAPI vkDestroyFramebuffer( |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2645 | VkDevice device, |
| 2646 | VkFramebuffer framebuffer); |
| 2647 | |
| 2648 | VkResult VKAPI vkCreateRenderPass( |
| 2649 | VkDevice device, |
| 2650 | const VkRenderPassCreateInfo* pCreateInfo, |
| 2651 | VkRenderPass* pRenderPass); |
| 2652 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2653 | void VKAPI vkDestroyRenderPass( |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2654 | VkDevice device, |
| 2655 | VkRenderPass renderPass); |
| 2656 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 2657 | void VKAPI vkGetRenderAreaGranularity( |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2658 | VkDevice device, |
| 2659 | VkRenderPass renderPass, |
| 2660 | VkExtent2D* pGranularity); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2661 | |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 2662 | VkResult VKAPI vkCreateCommandPool( |
| 2663 | VkDevice device, |
| 2664 | const VkCmdPoolCreateInfo* pCreateInfo, |
| 2665 | VkCmdPool* pCmdPool); |
| 2666 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 2667 | void VKAPI vkDestroyCommandPool( |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 2668 | VkDevice device, |
| 2669 | VkCmdPool cmdPool); |
| 2670 | |
| 2671 | VkResult VKAPI vkResetCommandPool( |
| 2672 | VkDevice device, |
| 2673 | VkCmdPool cmdPool, |
| 2674 | VkCmdPoolResetFlags flags); |
| 2675 | |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 2676 | VkResult VKAPI vkAllocCommandBuffers( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2677 | VkDevice device, |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 2678 | const VkCmdBufferAllocInfo* pAllocInfo, |
| 2679 | VkCmdBuffer* pCmdBuffers); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2680 | |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 2681 | void VKAPI vkFreeCommandBuffers( |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2682 | VkDevice device, |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 2683 | VkCmdPool cmdPool, |
| 2684 | uint32_t count, |
| 2685 | const VkCmdBuffer* pCommandBuffers); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2686 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2687 | VkResult VKAPI vkBeginCommandBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2688 | VkCmdBuffer cmdBuffer, |
| 2689 | const VkCmdBufferBeginInfo* pBeginInfo); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2690 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2691 | VkResult VKAPI vkEndCommandBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2692 | VkCmdBuffer cmdBuffer); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2693 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2694 | VkResult VKAPI vkResetCommandBuffer( |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 2695 | VkCmdBuffer cmdBuffer, |
| 2696 | VkCmdBufferResetFlags flags); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2697 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2698 | void VKAPI vkCmdBindPipeline( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2699 | VkCmdBuffer cmdBuffer, |
| 2700 | VkPipelineBindPoint pipelineBindPoint, |
| 2701 | VkPipeline pipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2702 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2703 | void VKAPI vkCmdSetViewport( |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2704 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 078f817 | 2015-09-21 11:44:06 -0600 | [diff] [blame] | 2705 | uint32_t viewportCount, |
| 2706 | const VkViewport* pViewports); |
| 2707 | |
| 2708 | void VKAPI vkCmdSetScissor( |
| 2709 | VkCmdBuffer cmdBuffer, |
| 2710 | uint32_t scissorCount, |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2711 | const VkRect2D* pScissors); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2712 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2713 | void VKAPI vkCmdSetLineWidth( |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2714 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2715 | float lineWidth); |
Cody Northrop | 1236511 | 2015-08-17 11:10:49 -0600 | [diff] [blame] | 2716 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2717 | void VKAPI vkCmdSetDepthBias( |
Cody Northrop | 1236511 | 2015-08-17 11:10:49 -0600 | [diff] [blame] | 2718 | VkCmdBuffer cmdBuffer, |
Chia-I Wu | d8c946a | 2015-10-26 19:08:09 +0800 | [diff] [blame] | 2719 | float depthBiasConstantFactor, |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2720 | float depthBiasClamp, |
Chia-I Wu | d8c946a | 2015-10-26 19:08:09 +0800 | [diff] [blame] | 2721 | float depthBiasSlopeFactor); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2722 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2723 | void VKAPI vkCmdSetBlendConstants( |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2724 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2725 | const float blendConst[4]); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 2726 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2727 | void VKAPI vkCmdSetDepthBounds( |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2728 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2729 | float minDepthBounds, |
| 2730 | float maxDepthBounds); |
Cody Northrop | 82485a8 | 2015-08-18 15:21:16 -0600 | [diff] [blame] | 2731 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2732 | void VKAPI vkCmdSetStencilCompareMask( |
Cody Northrop | 82485a8 | 2015-08-18 15:21:16 -0600 | [diff] [blame] | 2733 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 2734 | VkStencilFaceFlags faceMask, |
| 2735 | uint32_t stencilCompareMask); |
| 2736 | |
| 2737 | void VKAPI vkCmdSetStencilWriteMask( |
| 2738 | VkCmdBuffer cmdBuffer, |
| 2739 | VkStencilFaceFlags faceMask, |
| 2740 | uint32_t stencilWriteMask); |
| 2741 | |
| 2742 | void VKAPI vkCmdSetStencilReference( |
| 2743 | VkCmdBuffer cmdBuffer, |
| 2744 | VkStencilFaceFlags faceMask, |
| 2745 | uint32_t stencilReference); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2746 | |
| 2747 | void VKAPI vkCmdBindDescriptorSets( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2748 | VkCmdBuffer cmdBuffer, |
| 2749 | VkPipelineBindPoint pipelineBindPoint, |
Mark Lobodzinski | f2093b6 | 2015-06-15 13:21:21 -0600 | [diff] [blame] | 2750 | VkPipelineLayout layout, |
Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 2751 | uint32_t firstSet, |
| 2752 | uint32_t setCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2753 | const VkDescriptorSet* pDescriptorSets, |
Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 2754 | uint32_t dynamicOffsetCount, |
| 2755 | const uint32_t* pDynamicOffsets); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2756 | |
| 2757 | void VKAPI vkCmdBindIndexBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2758 | VkCmdBuffer cmdBuffer, |
| 2759 | VkBuffer buffer, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2760 | VkDeviceSize offset, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2761 | VkIndexType indexType); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2762 | |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 2763 | void VKAPI vkCmdBindVertexBuffers( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2764 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 2765 | uint32_t startBinding, |
| 2766 | uint32_t bindingCount, |
| 2767 | const VkBuffer* pBuffers, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2768 | const VkDeviceSize* pOffsets); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2769 | |
| 2770 | void VKAPI vkCmdDraw( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2771 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2772 | uint32_t vertexCount, |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 2773 | uint32_t instanceCount, |
| 2774 | uint32_t firstVertex, |
| 2775 | uint32_t firstInstance); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2776 | |
| 2777 | void VKAPI vkCmdDrawIndexed( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2778 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2779 | uint32_t indexCount, |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 2780 | uint32_t instanceCount, |
| 2781 | uint32_t firstIndex, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2782 | int32_t vertexOffset, |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 2783 | uint32_t firstInstance); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2784 | |
| 2785 | void VKAPI vkCmdDrawIndirect( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2786 | VkCmdBuffer cmdBuffer, |
| 2787 | VkBuffer buffer, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2788 | VkDeviceSize offset, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2789 | uint32_t count, |
| 2790 | uint32_t stride); |
| 2791 | |
| 2792 | void VKAPI vkCmdDrawIndexedIndirect( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2793 | VkCmdBuffer cmdBuffer, |
| 2794 | VkBuffer buffer, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2795 | VkDeviceSize offset, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2796 | uint32_t count, |
| 2797 | uint32_t stride); |
| 2798 | |
| 2799 | void VKAPI vkCmdDispatch( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2800 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2801 | uint32_t x, |
| 2802 | uint32_t y, |
| 2803 | uint32_t z); |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2804 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2805 | void VKAPI vkCmdDispatchIndirect( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2806 | VkCmdBuffer cmdBuffer, |
| 2807 | VkBuffer buffer, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2808 | VkDeviceSize offset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2809 | |
| 2810 | void VKAPI vkCmdCopyBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2811 | VkCmdBuffer cmdBuffer, |
| 2812 | VkBuffer srcBuffer, |
| 2813 | VkBuffer destBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2814 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2815 | const VkBufferCopy* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2816 | |
| 2817 | void VKAPI vkCmdCopyImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2818 | VkCmdBuffer cmdBuffer, |
| 2819 | VkImage srcImage, |
| 2820 | VkImageLayout srcImageLayout, |
| 2821 | VkImage destImage, |
| 2822 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2823 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2824 | const VkImageCopy* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2825 | |
| 2826 | void VKAPI vkCmdBlitImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2827 | VkCmdBuffer cmdBuffer, |
| 2828 | VkImage srcImage, |
| 2829 | VkImageLayout srcImageLayout, |
| 2830 | VkImage destImage, |
| 2831 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2832 | uint32_t regionCount, |
Mark Lobodzinski | ee5eef1 | 2015-05-22 14:43:25 -0500 | [diff] [blame] | 2833 | const VkImageBlit* pRegions, |
| 2834 | VkTexFilter filter); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2835 | |
| 2836 | void VKAPI vkCmdCopyBufferToImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2837 | VkCmdBuffer cmdBuffer, |
| 2838 | VkBuffer srcBuffer, |
| 2839 | VkImage destImage, |
| 2840 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2841 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2842 | const VkBufferImageCopy* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2843 | |
| 2844 | void VKAPI vkCmdCopyImageToBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2845 | VkCmdBuffer cmdBuffer, |
| 2846 | VkImage srcImage, |
| 2847 | VkImageLayout srcImageLayout, |
| 2848 | VkBuffer destBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2849 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2850 | const VkBufferImageCopy* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2851 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2852 | void VKAPI vkCmdUpdateBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2853 | VkCmdBuffer cmdBuffer, |
| 2854 | VkBuffer destBuffer, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2855 | VkDeviceSize destOffset, |
| 2856 | VkDeviceSize dataSize, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2857 | const uint32_t* pData); |
| 2858 | |
| 2859 | void VKAPI vkCmdFillBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2860 | VkCmdBuffer cmdBuffer, |
| 2861 | VkBuffer destBuffer, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2862 | VkDeviceSize destOffset, |
| 2863 | VkDeviceSize fillSize, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2864 | uint32_t data); |
| 2865 | |
| 2866 | void VKAPI vkCmdClearColorImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2867 | VkCmdBuffer cmdBuffer, |
| 2868 | VkImage image, |
| 2869 | VkImageLayout imageLayout, |
Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 2870 | const VkClearColorValue* pColor, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2871 | uint32_t rangeCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2872 | const VkImageSubresourceRange* pRanges); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2873 | |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 2874 | void VKAPI vkCmdClearDepthStencilImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2875 | VkCmdBuffer cmdBuffer, |
| 2876 | VkImage image, |
| 2877 | VkImageLayout imageLayout, |
Courtney Goeltzenleuchter | 45df9e1 | 2015-09-15 18:03:22 -0600 | [diff] [blame] | 2878 | const VkClearDepthStencilValue* pDepthStencil, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2879 | uint32_t rangeCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2880 | const VkImageSubresourceRange* pRanges); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2881 | |
Courtney Goeltzenleuchter | c9323e0 | 2015-10-15 16:51:05 -0600 | [diff] [blame] | 2882 | void VKAPI vkCmdClearAttachments( |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 2883 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | c9323e0 | 2015-10-15 16:51:05 -0600 | [diff] [blame] | 2884 | uint32_t attachmentCount, |
| 2885 | const VkClearAttachment* pAttachments, |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 2886 | uint32_t rectCount, |
Courtney Goeltzenleuchter | 4ca43f6 | 2015-10-15 18:22:08 -0600 | [diff] [blame] | 2887 | const VkClearRect* pRects); |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 2888 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2889 | void VKAPI vkCmdResolveImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2890 | VkCmdBuffer cmdBuffer, |
| 2891 | VkImage srcImage, |
| 2892 | VkImageLayout srcImageLayout, |
| 2893 | VkImage destImage, |
| 2894 | VkImageLayout destImageLayout, |
Tony Barbour | 6865d4a | 2015-04-13 15:02:52 -0600 | [diff] [blame] | 2895 | uint32_t regionCount, |
| 2896 | const VkImageResolve* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2897 | |
| 2898 | void VKAPI vkCmdSetEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2899 | VkCmdBuffer cmdBuffer, |
| 2900 | VkEvent event, |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 2901 | VkPipelineStageFlags stageMask); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2902 | |
| 2903 | void VKAPI vkCmdResetEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2904 | VkCmdBuffer cmdBuffer, |
| 2905 | VkEvent event, |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 2906 | VkPipelineStageFlags stageMask); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2907 | |
| 2908 | void VKAPI vkCmdWaitEvents( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2909 | VkCmdBuffer cmdBuffer, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2910 | uint32_t eventCount, |
| 2911 | const VkEvent* pEvents, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2912 | VkPipelineStageFlags srcStageMask, |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 2913 | VkPipelineStageFlags destStageMask, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2914 | uint32_t memBarrierCount, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2915 | const void* const* ppMemBarriers); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2916 | |
| 2917 | void VKAPI vkCmdPipelineBarrier( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2918 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2919 | VkPipelineStageFlags srcStageMask, |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 2920 | VkPipelineStageFlags destStageMask, |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 2921 | VkBool32 byRegion, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2922 | uint32_t memBarrierCount, |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2923 | const void* const* ppMemBarriers); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2924 | |
| 2925 | void VKAPI vkCmdBeginQuery( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2926 | VkCmdBuffer cmdBuffer, |
| 2927 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2928 | uint32_t slot, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2929 | VkQueryControlFlags flags); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2930 | |
| 2931 | void VKAPI vkCmdEndQuery( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2932 | VkCmdBuffer cmdBuffer, |
| 2933 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2934 | uint32_t slot); |
| 2935 | |
| 2936 | void VKAPI vkCmdResetQueryPool( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2937 | VkCmdBuffer cmdBuffer, |
| 2938 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2939 | uint32_t startQuery, |
| 2940 | uint32_t queryCount); |
| 2941 | |
| 2942 | void VKAPI vkCmdWriteTimestamp( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2943 | VkCmdBuffer cmdBuffer, |
Chia-I Wu | 51ce5ea | 2015-10-26 19:40:27 +0800 | [diff] [blame] | 2944 | VkPipelineStageFlagBits pipelineStage, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2945 | VkBuffer destBuffer, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2946 | VkDeviceSize destOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2947 | |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 2948 | void VKAPI vkCmdCopyQueryPoolResults( |
| 2949 | VkCmdBuffer cmdBuffer, |
| 2950 | VkQueryPool queryPool, |
| 2951 | uint32_t startQuery, |
| 2952 | uint32_t queryCount, |
| 2953 | VkBuffer destBuffer, |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 2954 | VkDeviceSize destOffset, |
Chia-I Wu | ccc93a7 | 2015-10-26 18:36:20 +0800 | [diff] [blame] | 2955 | VkDeviceSize stride, |
Tony Barbour | 71a8512 | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 2956 | VkQueryResultFlags flags); |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 2957 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2958 | void VKAPI vkCmdPushConstants( |
| 2959 | VkCmdBuffer cmdBuffer, |
| 2960 | VkPipelineLayout layout, |
| 2961 | VkShaderStageFlags stageFlags, |
| 2962 | uint32_t start, |
| 2963 | uint32_t length, |
| 2964 | const void* values); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2965 | |
| 2966 | void VKAPI vkCmdBeginRenderPass( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2967 | VkCmdBuffer cmdBuffer, |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 2968 | const VkRenderPassBeginInfo* pRenderPassBegin, |
| 2969 | VkRenderPassContents contents); |
| 2970 | |
| 2971 | void VKAPI vkCmdNextSubpass( |
| 2972 | VkCmdBuffer cmdBuffer, |
| 2973 | VkRenderPassContents contents); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2974 | |
| 2975 | void VKAPI vkCmdEndRenderPass( |
Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 2976 | VkCmdBuffer cmdBuffer); |
| 2977 | |
| 2978 | void VKAPI vkCmdExecuteCommands( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2979 | VkCmdBuffer cmdBuffer, |
Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 2980 | uint32_t cmdBuffersCount, |
| 2981 | const VkCmdBuffer* pCmdBuffers); |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2982 | #endif |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2983 | |
| 2984 | #ifdef __cplusplus |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2985 | } |
| 2986 | #endif |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2987 | |
Courtney Goeltzenleuchter | ac19112 | 2015-07-12 12:21:19 -0600 | [diff] [blame] | 2988 | #endif |