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