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