1 #ifndef VULKAN_H_ 2 #define VULKAN_H_ 1 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 /* 9 ** Copyright (c) 2015-2016 The Khronos Group Inc. 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 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" 39 40 #define VK_MAKE_VERSION(major, minor, patch) \ 41 (((major) << 22) | ((minor) << 12) | (patch)) 42 43 // DEPRECATED: This define has been removed. Specific version defines (e.g. VK_API_VERSION_1_0), or the VK_MAKE_VERSION macro, should be used instead. 44 //#define VK_API_VERSION VK_MAKE_VERSION(1, 0, 0) 45 46 // Vulkan 1.0 version number 47 #define VK_API_VERSION_1_0 VK_MAKE_VERSION(1, 0, 0) 48 49 #define VK_VERSION_MAJOR(version) ((uint32_t)(version) >> 22) 50 #define VK_VERSION_MINOR(version) (((uint32_t)(version) >> 12) & 0x3ff) 51 #define VK_VERSION_PATCH(version) ((uint32_t)(version) & 0xfff) 52 // Version of this file 53 #define VK_HEADER_VERSION 6 54 55 56 #define VK_NULL_HANDLE 0 57 58 59 60 #define VK_DEFINE_HANDLE(object) typedef struct object##_T* object; 61 62 63 #if defined(__LP64__) || defined(_WIN64) || defined(__x86_64__) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__) 64 #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef struct object##_T *object; 65 #else 66 #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef uint64_t object; 67 #endif 68 69 70 71 typedef uint32_t VkFlags; 72 typedef uint32_t VkBool32; 73 typedef uint64_t VkDeviceSize; 74 typedef uint32_t VkSampleMask; 75 76 VK_DEFINE_HANDLE(VkInstance) 77 VK_DEFINE_HANDLE(VkPhysicalDevice) 78 VK_DEFINE_HANDLE(VkDevice) 79 VK_DEFINE_HANDLE(VkQueue) 80 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSemaphore) 81 VK_DEFINE_HANDLE(VkCommandBuffer) 82 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFence) 83 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDeviceMemory) 84 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBuffer) 85 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImage) 86 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkEvent) 87 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkQueryPool) 88 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBufferView) 89 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImageView) 90 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderModule) 91 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineCache) 92 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineLayout) 93 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkRenderPass) 94 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipeline) 95 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSetLayout) 96 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSampler) 97 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorPool) 98 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSet) 99 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFramebuffer) 100 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCommandPool) 101 102 #define VK_LOD_CLAMP_NONE 1000.0f 103 #define VK_REMAINING_MIP_LEVELS (~0U) 104 #define VK_REMAINING_ARRAY_LAYERS (~0U) 105 #define VK_WHOLE_SIZE (~0ULL) 106 #define VK_ATTACHMENT_UNUSED (~0U) 107 #define VK_TRUE 1 108 #define VK_FALSE 0 109 #define VK_QUEUE_FAMILY_IGNORED (~0U) 110 #define VK_SUBPASS_EXTERNAL (~0U) 111 #define VK_MAX_PHYSICAL_DEVICE_NAME_SIZE 256 112 #define VK_UUID_SIZE 16 113 #define VK_MAX_MEMORY_TYPES 32 114 #define VK_MAX_MEMORY_HEAPS 16 115 #define VK_MAX_EXTENSION_NAME_SIZE 256 116 #define VK_MAX_DESCRIPTION_SIZE 256 117 118 119 typedef enum VkPipelineCacheHeaderVersion { 120 VK_PIPELINE_CACHE_HEADER_VERSION_ONE = 1, 121 VK_PIPELINE_CACHE_HEADER_VERSION_BEGIN_RANGE = VK_PIPELINE_CACHE_HEADER_VERSION_ONE, 122 VK_PIPELINE_CACHE_HEADER_VERSION_END_RANGE = VK_PIPELINE_CACHE_HEADER_VERSION_ONE, 123 VK_PIPELINE_CACHE_HEADER_VERSION_RANGE_SIZE = (VK_PIPELINE_CACHE_HEADER_VERSION_ONE - VK_PIPELINE_CACHE_HEADER_VERSION_ONE + 1), 124 VK_PIPELINE_CACHE_HEADER_VERSION_MAX_ENUM = 0x7FFFFFFF 125 } VkPipelineCacheHeaderVersion; 126 127 typedef enum VkResult { 128 VK_SUCCESS = 0, 129 VK_NOT_READY = 1, 130 VK_TIMEOUT = 2, 131 VK_EVENT_SET = 3, 132 VK_EVENT_RESET = 4, 133 VK_INCOMPLETE = 5, 134 VK_ERROR_OUT_OF_HOST_MEMORY = -1, 135 VK_ERROR_OUT_OF_DEVICE_MEMORY = -2, 136 VK_ERROR_INITIALIZATION_FAILED = -3, 137 VK_ERROR_DEVICE_LOST = -4, 138 VK_ERROR_MEMORY_MAP_FAILED = -5, 139 VK_ERROR_LAYER_NOT_PRESENT = -6, 140 VK_ERROR_EXTENSION_NOT_PRESENT = -7, 141 VK_ERROR_FEATURE_NOT_PRESENT = -8, 142 VK_ERROR_INCOMPATIBLE_DRIVER = -9, 143 VK_ERROR_TOO_MANY_OBJECTS = -10, 144 VK_ERROR_FORMAT_NOT_SUPPORTED = -11, 145 VK_ERROR_SURFACE_LOST_KHR = -1000000000, 146 VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001, 147 VK_SUBOPTIMAL_KHR = 1000001003, 148 VK_ERROR_OUT_OF_DATE_KHR = -1000001004, 149 VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = -1000003001, 150 VK_ERROR_VALIDATION_FAILED_EXT = -1000011001, 151 VK_ERROR_INVALID_SHADER_NV = -1000012000, 152 VK_RESULT_BEGIN_RANGE = VK_ERROR_FORMAT_NOT_SUPPORTED, 153 VK_RESULT_END_RANGE = VK_INCOMPLETE, 154 VK_RESULT_RANGE_SIZE = (VK_INCOMPLETE - VK_ERROR_FORMAT_NOT_SUPPORTED + 1), 155 VK_RESULT_MAX_ENUM = 0x7FFFFFFF 156 } VkResult; 157 158 typedef enum VkStructureType { 159 VK_STRUCTURE_TYPE_APPLICATION_INFO = 0, 160 VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 1, 161 VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO = 2, 162 VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = 3, 163 VK_STRUCTURE_TYPE_SUBMIT_INFO = 4, 164 VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO = 5, 165 VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE = 6, 166 VK_STRUCTURE_TYPE_BIND_SPARSE_INFO = 7, 167 VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 8, 168 VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 9, 169 VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 10, 170 VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 11, 171 VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 12, 172 VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 13, 173 VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 14, 174 VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 15, 175 VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO = 16, 176 VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO = 17, 177 VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 18, 178 VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = 19, 179 VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO = 20, 180 VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO = 21, 181 VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO = 22, 182 VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO = 23, 183 VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO = 24, 184 VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO = 25, 185 VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO = 26, 186 VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO = 27, 187 VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 28, 188 VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 29, 189 VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO = 30, 190 VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 31, 191 VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 32, 192 VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 33, 193 VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO = 34, 194 VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET = 35, 195 VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET = 36, 196 VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 37, 197 VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 38, 198 VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO = 39, 199 VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO = 40, 200 VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO = 41, 201 VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO = 42, 202 VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO = 43, 203 VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 44, 204 VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 45, 205 VK_STRUCTURE_TYPE_MEMORY_BARRIER = 46, 206 VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO = 47, 207 VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO = 48, 208 VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR = 1000001000, 209 VK_STRUCTURE_TYPE_PRESENT_INFO_KHR = 1000001001, 210 VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR = 1000002000, 211 VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR = 1000002001, 212 VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR = 1000003000, 213 VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000, 214 VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000, 215 VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000, 216 VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR = 1000007000, 217 VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR = 1000008000, 218 VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000, 219 VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT = 1000011000, 220 VK_STRUCTURE_TYPE_BEGIN_RANGE = VK_STRUCTURE_TYPE_APPLICATION_INFO, 221 VK_STRUCTURE_TYPE_END_RANGE = VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO, 222 VK_STRUCTURE_TYPE_RANGE_SIZE = (VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO - VK_STRUCTURE_TYPE_APPLICATION_INFO + 1), 223 VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF 224 } VkStructureType; 225 226 typedef enum VkSystemAllocationScope { 227 VK_SYSTEM_ALLOCATION_SCOPE_COMMAND = 0, 228 VK_SYSTEM_ALLOCATION_SCOPE_OBJECT = 1, 229 VK_SYSTEM_ALLOCATION_SCOPE_CACHE = 2, 230 VK_SYSTEM_ALLOCATION_SCOPE_DEVICE = 3, 231 VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE = 4, 232 VK_SYSTEM_ALLOCATION_SCOPE_BEGIN_RANGE = VK_SYSTEM_ALLOCATION_SCOPE_COMMAND, 233 VK_SYSTEM_ALLOCATION_SCOPE_END_RANGE = VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE, 234 VK_SYSTEM_ALLOCATION_SCOPE_RANGE_SIZE = (VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE - VK_SYSTEM_ALLOCATION_SCOPE_COMMAND + 1), 235 VK_SYSTEM_ALLOCATION_SCOPE_MAX_ENUM = 0x7FFFFFFF 236 } VkSystemAllocationScope; 237 238 typedef enum VkInternalAllocationType { 239 VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE = 0, 240 VK_INTERNAL_ALLOCATION_TYPE_BEGIN_RANGE = VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE, 241 VK_INTERNAL_ALLOCATION_TYPE_END_RANGE = VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE, 242 VK_INTERNAL_ALLOCATION_TYPE_RANGE_SIZE = (VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE - VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE + 1), 243 VK_INTERNAL_ALLOCATION_TYPE_MAX_ENUM = 0x7FFFFFFF 244 } VkInternalAllocationType; 245 246 typedef enum VkFormat { 247 VK_FORMAT_UNDEFINED = 0, 248 VK_FORMAT_R4G4_UNORM_PACK8 = 1, 249 VK_FORMAT_R4G4B4A4_UNORM_PACK16 = 2, 250 VK_FORMAT_B4G4R4A4_UNORM_PACK16 = 3, 251 VK_FORMAT_R5G6B5_UNORM_PACK16 = 4, 252 VK_FORMAT_B5G6R5_UNORM_PACK16 = 5, 253 VK_FORMAT_R5G5B5A1_UNORM_PACK16 = 6, 254 VK_FORMAT_B5G5R5A1_UNORM_PACK16 = 7, 255 VK_FORMAT_A1R5G5B5_UNORM_PACK16 = 8, 256 VK_FORMAT_R8_UNORM = 9, 257 VK_FORMAT_R8_SNORM = 10, 258 VK_FORMAT_R8_USCALED = 11, 259 VK_FORMAT_R8_SSCALED = 12, 260 VK_FORMAT_R8_UINT = 13, 261 VK_FORMAT_R8_SINT = 14, 262 VK_FORMAT_R8_SRGB = 15, 263 VK_FORMAT_R8G8_UNORM = 16, 264 VK_FORMAT_R8G8_SNORM = 17, 265 VK_FORMAT_R8G8_USCALED = 18, 266 VK_FORMAT_R8G8_SSCALED = 19, 267 VK_FORMAT_R8G8_UINT = 20, 268 VK_FORMAT_R8G8_SINT = 21, 269 VK_FORMAT_R8G8_SRGB = 22, 270 VK_FORMAT_R8G8B8_UNORM = 23, 271 VK_FORMAT_R8G8B8_SNORM = 24, 272 VK_FORMAT_R8G8B8_USCALED = 25, 273 VK_FORMAT_R8G8B8_SSCALED = 26, 274 VK_FORMAT_R8G8B8_UINT = 27, 275 VK_FORMAT_R8G8B8_SINT = 28, 276 VK_FORMAT_R8G8B8_SRGB = 29, 277 VK_FORMAT_B8G8R8_UNORM = 30, 278 VK_FORMAT_B8G8R8_SNORM = 31, 279 VK_FORMAT_B8G8R8_USCALED = 32, 280 VK_FORMAT_B8G8R8_SSCALED = 33, 281 VK_FORMAT_B8G8R8_UINT = 34, 282 VK_FORMAT_B8G8R8_SINT = 35, 283 VK_FORMAT_B8G8R8_SRGB = 36, 284 VK_FORMAT_R8G8B8A8_UNORM = 37, 285 VK_FORMAT_R8G8B8A8_SNORM = 38, 286 VK_FORMAT_R8G8B8A8_USCALED = 39, 287 VK_FORMAT_R8G8B8A8_SSCALED = 40, 288 VK_FORMAT_R8G8B8A8_UINT = 41, 289 VK_FORMAT_R8G8B8A8_SINT = 42, 290 VK_FORMAT_R8G8B8A8_SRGB = 43, 291 VK_FORMAT_B8G8R8A8_UNORM = 44, 292 VK_FORMAT_B8G8R8A8_SNORM = 45, 293 VK_FORMAT_B8G8R8A8_USCALED = 46, 294 VK_FORMAT_B8G8R8A8_SSCALED = 47, 295 VK_FORMAT_B8G8R8A8_UINT = 48, 296 VK_FORMAT_B8G8R8A8_SINT = 49, 297 VK_FORMAT_B8G8R8A8_SRGB = 50, 298 VK_FORMAT_A8B8G8R8_UNORM_PACK32 = 51, 299 VK_FORMAT_A8B8G8R8_SNORM_PACK32 = 52, 300 VK_FORMAT_A8B8G8R8_USCALED_PACK32 = 53, 301 VK_FORMAT_A8B8G8R8_SSCALED_PACK32 = 54, 302 VK_FORMAT_A8B8G8R8_UINT_PACK32 = 55, 303 VK_FORMAT_A8B8G8R8_SINT_PACK32 = 56, 304 VK_FORMAT_A8B8G8R8_SRGB_PACK32 = 57, 305 VK_FORMAT_A2R10G10B10_UNORM_PACK32 = 58, 306 VK_FORMAT_A2R10G10B10_SNORM_PACK32 = 59, 307 VK_FORMAT_A2R10G10B10_USCALED_PACK32 = 60, 308 VK_FORMAT_A2R10G10B10_SSCALED_PACK32 = 61, 309 VK_FORMAT_A2R10G10B10_UINT_PACK32 = 62, 310 VK_FORMAT_A2R10G10B10_SINT_PACK32 = 63, 311 VK_FORMAT_A2B10G10R10_UNORM_PACK32 = 64, 312 VK_FORMAT_A2B10G10R10_SNORM_PACK32 = 65, 313 VK_FORMAT_A2B10G10R10_USCALED_PACK32 = 66, 314 VK_FORMAT_A2B10G10R10_SSCALED_PACK32 = 67, 315 VK_FORMAT_A2B10G10R10_UINT_PACK32 = 68, 316 VK_FORMAT_A2B10G10R10_SINT_PACK32 = 69, 317 VK_FORMAT_R16_UNORM = 70, 318 VK_FORMAT_R16_SNORM = 71, 319 VK_FORMAT_R16_USCALED = 72, 320 VK_FORMAT_R16_SSCALED = 73, 321 VK_FORMAT_R16_UINT = 74, 322 VK_FORMAT_R16_SINT = 75, 323 VK_FORMAT_R16_SFLOAT = 76, 324 VK_FORMAT_R16G16_UNORM = 77, 325 VK_FORMAT_R16G16_SNORM = 78, 326 VK_FORMAT_R16G16_USCALED = 79, 327 VK_FORMAT_R16G16_SSCALED = 80, 328 VK_FORMAT_R16G16_UINT = 81, 329 VK_FORMAT_R16G16_SINT = 82, 330 VK_FORMAT_R16G16_SFLOAT = 83, 331 VK_FORMAT_R16G16B16_UNORM = 84, 332 VK_FORMAT_R16G16B16_SNORM = 85, 333 VK_FORMAT_R16G16B16_USCALED = 86, 334 VK_FORMAT_R16G16B16_SSCALED = 87, 335 VK_FORMAT_R16G16B16_UINT = 88, 336 VK_FORMAT_R16G16B16_SINT = 89, 337 VK_FORMAT_R16G16B16_SFLOAT = 90, 338 VK_FORMAT_R16G16B16A16_UNORM = 91, 339 VK_FORMAT_R16G16B16A16_SNORM = 92, 340 VK_FORMAT_R16G16B16A16_USCALED = 93, 341 VK_FORMAT_R16G16B16A16_SSCALED = 94, 342 VK_FORMAT_R16G16B16A16_UINT = 95, 343 VK_FORMAT_R16G16B16A16_SINT = 96, 344 VK_FORMAT_R16G16B16A16_SFLOAT = 97, 345 VK_FORMAT_R32_UINT = 98, 346 VK_FORMAT_R32_SINT = 99, 347 VK_FORMAT_R32_SFLOAT = 100, 348 VK_FORMAT_R32G32_UINT = 101, 349 VK_FORMAT_R32G32_SINT = 102, 350 VK_FORMAT_R32G32_SFLOAT = 103, 351 VK_FORMAT_R32G32B32_UINT = 104, 352 VK_FORMAT_R32G32B32_SINT = 105, 353 VK_FORMAT_R32G32B32_SFLOAT = 106, 354 VK_FORMAT_R32G32B32A32_UINT = 107, 355 VK_FORMAT_R32G32B32A32_SINT = 108, 356 VK_FORMAT_R32G32B32A32_SFLOAT = 109, 357 VK_FORMAT_R64_UINT = 110, 358 VK_FORMAT_R64_SINT = 111, 359 VK_FORMAT_R64_SFLOAT = 112, 360 VK_FORMAT_R64G64_UINT = 113, 361 VK_FORMAT_R64G64_SINT = 114, 362 VK_FORMAT_R64G64_SFLOAT = 115, 363 VK_FORMAT_R64G64B64_UINT = 116, 364 VK_FORMAT_R64G64B64_SINT = 117, 365 VK_FORMAT_R64G64B64_SFLOAT = 118, 366 VK_FORMAT_R64G64B64A64_UINT = 119, 367 VK_FORMAT_R64G64B64A64_SINT = 120, 368 VK_FORMAT_R64G64B64A64_SFLOAT = 121, 369 VK_FORMAT_B10G11R11_UFLOAT_PACK32 = 122, 370 VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 = 123, 371 VK_FORMAT_D16_UNORM = 124, 372 VK_FORMAT_X8_D24_UNORM_PACK32 = 125, 373 VK_FORMAT_D32_SFLOAT = 126, 374 VK_FORMAT_S8_UINT = 127, 375 VK_FORMAT_D16_UNORM_S8_UINT = 128, 376 VK_FORMAT_D24_UNORM_S8_UINT = 129, 377 VK_FORMAT_D32_SFLOAT_S8_UINT = 130, 378 VK_FORMAT_BC1_RGB_UNORM_BLOCK = 131, 379 VK_FORMAT_BC1_RGB_SRGB_BLOCK = 132, 380 VK_FORMAT_BC1_RGBA_UNORM_BLOCK = 133, 381 VK_FORMAT_BC1_RGBA_SRGB_BLOCK = 134, 382 VK_FORMAT_BC2_UNORM_BLOCK = 135, 383 VK_FORMAT_BC2_SRGB_BLOCK = 136, 384 VK_FORMAT_BC3_UNORM_BLOCK = 137, 385 VK_FORMAT_BC3_SRGB_BLOCK = 138, 386 VK_FORMAT_BC4_UNORM_BLOCK = 139, 387 VK_FORMAT_BC4_SNORM_BLOCK = 140, 388 VK_FORMAT_BC5_UNORM_BLOCK = 141, 389 VK_FORMAT_BC5_SNORM_BLOCK = 142, 390 VK_FORMAT_BC6H_UFLOAT_BLOCK = 143, 391 VK_FORMAT_BC6H_SFLOAT_BLOCK = 144, 392 VK_FORMAT_BC7_UNORM_BLOCK = 145, 393 VK_FORMAT_BC7_SRGB_BLOCK = 146, 394 VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK = 147, 395 VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK = 148, 396 VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK = 149, 397 VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK = 150, 398 VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK = 151, 399 VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK = 152, 400 VK_FORMAT_EAC_R11_UNORM_BLOCK = 153, 401 VK_FORMAT_EAC_R11_SNORM_BLOCK = 154, 402 VK_FORMAT_EAC_R11G11_UNORM_BLOCK = 155, 403 VK_FORMAT_EAC_R11G11_SNORM_BLOCK = 156, 404 VK_FORMAT_ASTC_4x4_UNORM_BLOCK = 157, 405 VK_FORMAT_ASTC_4x4_SRGB_BLOCK = 158, 406 VK_FORMAT_ASTC_5x4_UNORM_BLOCK = 159, 407 VK_FORMAT_ASTC_5x4_SRGB_BLOCK = 160, 408 VK_FORMAT_ASTC_5x5_UNORM_BLOCK = 161, 409 VK_FORMAT_ASTC_5x5_SRGB_BLOCK = 162, 410 VK_FORMAT_ASTC_6x5_UNORM_BLOCK = 163, 411 VK_FORMAT_ASTC_6x5_SRGB_BLOCK = 164, 412 VK_FORMAT_ASTC_6x6_UNORM_BLOCK = 165, 413 VK_FORMAT_ASTC_6x6_SRGB_BLOCK = 166, 414 VK_FORMAT_ASTC_8x5_UNORM_BLOCK = 167, 415 VK_FORMAT_ASTC_8x5_SRGB_BLOCK = 168, 416 VK_FORMAT_ASTC_8x6_UNORM_BLOCK = 169, 417 VK_FORMAT_ASTC_8x6_SRGB_BLOCK = 170, 418 VK_FORMAT_ASTC_8x8_UNORM_BLOCK = 171, 419 VK_FORMAT_ASTC_8x8_SRGB_BLOCK = 172, 420 VK_FORMAT_ASTC_10x5_UNORM_BLOCK = 173, 421 VK_FORMAT_ASTC_10x5_SRGB_BLOCK = 174, 422 VK_FORMAT_ASTC_10x6_UNORM_BLOCK = 175, 423 VK_FORMAT_ASTC_10x6_SRGB_BLOCK = 176, 424 VK_FORMAT_ASTC_10x8_UNORM_BLOCK = 177, 425 VK_FORMAT_ASTC_10x8_SRGB_BLOCK = 178, 426 VK_FORMAT_ASTC_10x10_UNORM_BLOCK = 179, 427 VK_FORMAT_ASTC_10x10_SRGB_BLOCK = 180, 428 VK_FORMAT_ASTC_12x10_UNORM_BLOCK = 181, 429 VK_FORMAT_ASTC_12x10_SRGB_BLOCK = 182, 430 VK_FORMAT_ASTC_12x12_UNORM_BLOCK = 183, 431 VK_FORMAT_ASTC_12x12_SRGB_BLOCK = 184, 432 VK_FORMAT_BEGIN_RANGE = VK_FORMAT_UNDEFINED, 433 VK_FORMAT_END_RANGE = VK_FORMAT_ASTC_12x12_SRGB_BLOCK, 434 VK_FORMAT_RANGE_SIZE = (VK_FORMAT_ASTC_12x12_SRGB_BLOCK - VK_FORMAT_UNDEFINED + 1), 435 VK_FORMAT_MAX_ENUM = 0x7FFFFFFF 436 } VkFormat; 437 438 typedef enum VkImageType { 439 VK_IMAGE_TYPE_1D = 0, 440 VK_IMAGE_TYPE_2D = 1, 441 VK_IMAGE_TYPE_3D = 2, 442 VK_IMAGE_TYPE_BEGIN_RANGE = VK_IMAGE_TYPE_1D, 443 VK_IMAGE_TYPE_END_RANGE = VK_IMAGE_TYPE_3D, 444 VK_IMAGE_TYPE_RANGE_SIZE = (VK_IMAGE_TYPE_3D - VK_IMAGE_TYPE_1D + 1), 445 VK_IMAGE_TYPE_MAX_ENUM = 0x7FFFFFFF 446 } VkImageType; 447 448 typedef enum VkImageTiling { 449 VK_IMAGE_TILING_OPTIMAL = 0, 450 VK_IMAGE_TILING_LINEAR = 1, 451 VK_IMAGE_TILING_BEGIN_RANGE = VK_IMAGE_TILING_OPTIMAL, 452 VK_IMAGE_TILING_END_RANGE = VK_IMAGE_TILING_LINEAR, 453 VK_IMAGE_TILING_RANGE_SIZE = (VK_IMAGE_TILING_LINEAR - VK_IMAGE_TILING_OPTIMAL + 1), 454 VK_IMAGE_TILING_MAX_ENUM = 0x7FFFFFFF 455 } VkImageTiling; 456 457 typedef enum VkPhysicalDeviceType { 458 VK_PHYSICAL_DEVICE_TYPE_OTHER = 0, 459 VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU = 1, 460 VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU = 2, 461 VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU = 3, 462 VK_PHYSICAL_DEVICE_TYPE_CPU = 4, 463 VK_PHYSICAL_DEVICE_TYPE_BEGIN_RANGE = VK_PHYSICAL_DEVICE_TYPE_OTHER, 464 VK_PHYSICAL_DEVICE_TYPE_END_RANGE = VK_PHYSICAL_DEVICE_TYPE_CPU, 465 VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE = (VK_PHYSICAL_DEVICE_TYPE_CPU - VK_PHYSICAL_DEVICE_TYPE_OTHER + 1), 466 VK_PHYSICAL_DEVICE_TYPE_MAX_ENUM = 0x7FFFFFFF 467 } VkPhysicalDeviceType; 468 469 typedef enum VkQueryType { 470 VK_QUERY_TYPE_OCCLUSION = 0, 471 VK_QUERY_TYPE_PIPELINE_STATISTICS = 1, 472 VK_QUERY_TYPE_TIMESTAMP = 2, 473 VK_QUERY_TYPE_BEGIN_RANGE = VK_QUERY_TYPE_OCCLUSION, 474 VK_QUERY_TYPE_END_RANGE = VK_QUERY_TYPE_TIMESTAMP, 475 VK_QUERY_TYPE_RANGE_SIZE = (VK_QUERY_TYPE_TIMESTAMP - VK_QUERY_TYPE_OCCLUSION + 1), 476 VK_QUERY_TYPE_MAX_ENUM = 0x7FFFFFFF 477 } VkQueryType; 478 479 typedef enum VkSharingMode { 480 VK_SHARING_MODE_EXCLUSIVE = 0, 481 VK_SHARING_MODE_CONCURRENT = 1, 482 VK_SHARING_MODE_BEGIN_RANGE = VK_SHARING_MODE_EXCLUSIVE, 483 VK_SHARING_MODE_END_RANGE = VK_SHARING_MODE_CONCURRENT, 484 VK_SHARING_MODE_RANGE_SIZE = (VK_SHARING_MODE_CONCURRENT - VK_SHARING_MODE_EXCLUSIVE + 1), 485 VK_SHARING_MODE_MAX_ENUM = 0x7FFFFFFF 486 } VkSharingMode; 487 488 typedef enum VkImageLayout { 489 VK_IMAGE_LAYOUT_UNDEFINED = 0, 490 VK_IMAGE_LAYOUT_GENERAL = 1, 491 VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = 2, 492 VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = 3, 493 VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = 4, 494 VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = 5, 495 VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = 6, 496 VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL = 7, 497 VK_IMAGE_LAYOUT_PREINITIALIZED = 8, 498 VK_IMAGE_LAYOUT_PRESENT_SRC_KHR = 1000001002, 499 VK_IMAGE_LAYOUT_BEGIN_RANGE = VK_IMAGE_LAYOUT_UNDEFINED, 500 VK_IMAGE_LAYOUT_END_RANGE = VK_IMAGE_LAYOUT_PREINITIALIZED, 501 VK_IMAGE_LAYOUT_RANGE_SIZE = (VK_IMAGE_LAYOUT_PREINITIALIZED - VK_IMAGE_LAYOUT_UNDEFINED + 1), 502 VK_IMAGE_LAYOUT_MAX_ENUM = 0x7FFFFFFF 503 } VkImageLayout; 504 505 typedef enum VkImageViewType { 506 VK_IMAGE_VIEW_TYPE_1D = 0, 507 VK_IMAGE_VIEW_TYPE_2D = 1, 508 VK_IMAGE_VIEW_TYPE_3D = 2, 509 VK_IMAGE_VIEW_TYPE_CUBE = 3, 510 VK_IMAGE_VIEW_TYPE_1D_ARRAY = 4, 511 VK_IMAGE_VIEW_TYPE_2D_ARRAY = 5, 512 VK_IMAGE_VIEW_TYPE_CUBE_ARRAY = 6, 513 VK_IMAGE_VIEW_TYPE_BEGIN_RANGE = VK_IMAGE_VIEW_TYPE_1D, 514 VK_IMAGE_VIEW_TYPE_END_RANGE = VK_IMAGE_VIEW_TYPE_CUBE_ARRAY, 515 VK_IMAGE_VIEW_TYPE_RANGE_SIZE = (VK_IMAGE_VIEW_TYPE_CUBE_ARRAY - VK_IMAGE_VIEW_TYPE_1D + 1), 516 VK_IMAGE_VIEW_TYPE_MAX_ENUM = 0x7FFFFFFF 517 } VkImageViewType; 518 519 typedef enum VkComponentSwizzle { 520 VK_COMPONENT_SWIZZLE_IDENTITY = 0, 521 VK_COMPONENT_SWIZZLE_ZERO = 1, 522 VK_COMPONENT_SWIZZLE_ONE = 2, 523 VK_COMPONENT_SWIZZLE_R = 3, 524 VK_COMPONENT_SWIZZLE_G = 4, 525 VK_COMPONENT_SWIZZLE_B = 5, 526 VK_COMPONENT_SWIZZLE_A = 6, 527 VK_COMPONENT_SWIZZLE_BEGIN_RANGE = VK_COMPONENT_SWIZZLE_IDENTITY, 528 VK_COMPONENT_SWIZZLE_END_RANGE = VK_COMPONENT_SWIZZLE_A, 529 VK_COMPONENT_SWIZZLE_RANGE_SIZE = (VK_COMPONENT_SWIZZLE_A - VK_COMPONENT_SWIZZLE_IDENTITY + 1), 530 VK_COMPONENT_SWIZZLE_MAX_ENUM = 0x7FFFFFFF 531 } VkComponentSwizzle; 532 533 typedef enum VkVertexInputRate { 534 VK_VERTEX_INPUT_RATE_VERTEX = 0, 535 VK_VERTEX_INPUT_RATE_INSTANCE = 1, 536 VK_VERTEX_INPUT_RATE_BEGIN_RANGE = VK_VERTEX_INPUT_RATE_VERTEX, 537 VK_VERTEX_INPUT_RATE_END_RANGE = VK_VERTEX_INPUT_RATE_INSTANCE, 538 VK_VERTEX_INPUT_RATE_RANGE_SIZE = (VK_VERTEX_INPUT_RATE_INSTANCE - VK_VERTEX_INPUT_RATE_VERTEX + 1), 539 VK_VERTEX_INPUT_RATE_MAX_ENUM = 0x7FFFFFFF 540 } VkVertexInputRate; 541 542 typedef enum VkPrimitiveTopology { 543 VK_PRIMITIVE_TOPOLOGY_POINT_LIST = 0, 544 VK_PRIMITIVE_TOPOLOGY_LINE_LIST = 1, 545 VK_PRIMITIVE_TOPOLOGY_LINE_STRIP = 2, 546 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST = 3, 547 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP = 4, 548 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN = 5, 549 VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY = 6, 550 VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY = 7, 551 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY = 8, 552 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY = 9, 553 VK_PRIMITIVE_TOPOLOGY_PATCH_LIST = 10, 554 VK_PRIMITIVE_TOPOLOGY_BEGIN_RANGE = VK_PRIMITIVE_TOPOLOGY_POINT_LIST, 555 VK_PRIMITIVE_TOPOLOGY_END_RANGE = VK_PRIMITIVE_TOPOLOGY_PATCH_LIST, 556 VK_PRIMITIVE_TOPOLOGY_RANGE_SIZE = (VK_PRIMITIVE_TOPOLOGY_PATCH_LIST - VK_PRIMITIVE_TOPOLOGY_POINT_LIST + 1), 557 VK_PRIMITIVE_TOPOLOGY_MAX_ENUM = 0x7FFFFFFF 558 } VkPrimitiveTopology; 559 560 typedef enum VkPolygonMode { 561 VK_POLYGON_MODE_FILL = 0, 562 VK_POLYGON_MODE_LINE = 1, 563 VK_POLYGON_MODE_POINT = 2, 564 VK_POLYGON_MODE_BEGIN_RANGE = VK_POLYGON_MODE_FILL, 565 VK_POLYGON_MODE_END_RANGE = VK_POLYGON_MODE_POINT, 566 VK_POLYGON_MODE_RANGE_SIZE = (VK_POLYGON_MODE_POINT - VK_POLYGON_MODE_FILL + 1), 567 VK_POLYGON_MODE_MAX_ENUM = 0x7FFFFFFF 568 } VkPolygonMode; 569 570 typedef enum VkFrontFace { 571 VK_FRONT_FACE_COUNTER_CLOCKWISE = 0, 572 VK_FRONT_FACE_CLOCKWISE = 1, 573 VK_FRONT_FACE_BEGIN_RANGE = VK_FRONT_FACE_COUNTER_CLOCKWISE, 574 VK_FRONT_FACE_END_RANGE = VK_FRONT_FACE_CLOCKWISE, 575 VK_FRONT_FACE_RANGE_SIZE = (VK_FRONT_FACE_CLOCKWISE - VK_FRONT_FACE_COUNTER_CLOCKWISE + 1), 576 VK_FRONT_FACE_MAX_ENUM = 0x7FFFFFFF 577 } VkFrontFace; 578 579 typedef enum VkCompareOp { 580 VK_COMPARE_OP_NEVER = 0, 581 VK_COMPARE_OP_LESS = 1, 582 VK_COMPARE_OP_EQUAL = 2, 583 VK_COMPARE_OP_LESS_OR_EQUAL = 3, 584 VK_COMPARE_OP_GREATER = 4, 585 VK_COMPARE_OP_NOT_EQUAL = 5, 586 VK_COMPARE_OP_GREATER_OR_EQUAL = 6, 587 VK_COMPARE_OP_ALWAYS = 7, 588 VK_COMPARE_OP_BEGIN_RANGE = VK_COMPARE_OP_NEVER, 589 VK_COMPARE_OP_END_RANGE = VK_COMPARE_OP_ALWAYS, 590 VK_COMPARE_OP_RANGE_SIZE = (VK_COMPARE_OP_ALWAYS - VK_COMPARE_OP_NEVER + 1), 591 VK_COMPARE_OP_MAX_ENUM = 0x7FFFFFFF 592 } VkCompareOp; 593 594 typedef enum VkStencilOp { 595 VK_STENCIL_OP_KEEP = 0, 596 VK_STENCIL_OP_ZERO = 1, 597 VK_STENCIL_OP_REPLACE = 2, 598 VK_STENCIL_OP_INCREMENT_AND_CLAMP = 3, 599 VK_STENCIL_OP_DECREMENT_AND_CLAMP = 4, 600 VK_STENCIL_OP_INVERT = 5, 601 VK_STENCIL_OP_INCREMENT_AND_WRAP = 6, 602 VK_STENCIL_OP_DECREMENT_AND_WRAP = 7, 603 VK_STENCIL_OP_BEGIN_RANGE = VK_STENCIL_OP_KEEP, 604 VK_STENCIL_OP_END_RANGE = VK_STENCIL_OP_DECREMENT_AND_WRAP, 605 VK_STENCIL_OP_RANGE_SIZE = (VK_STENCIL_OP_DECREMENT_AND_WRAP - VK_STENCIL_OP_KEEP + 1), 606 VK_STENCIL_OP_MAX_ENUM = 0x7FFFFFFF 607 } VkStencilOp; 608 609 typedef enum VkLogicOp { 610 VK_LOGIC_OP_CLEAR = 0, 611 VK_LOGIC_OP_AND = 1, 612 VK_LOGIC_OP_AND_REVERSE = 2, 613 VK_LOGIC_OP_COPY = 3, 614 VK_LOGIC_OP_AND_INVERTED = 4, 615 VK_LOGIC_OP_NO_OP = 5, 616 VK_LOGIC_OP_XOR = 6, 617 VK_LOGIC_OP_OR = 7, 618 VK_LOGIC_OP_NOR = 8, 619 VK_LOGIC_OP_EQUIVALENT = 9, 620 VK_LOGIC_OP_INVERT = 10, 621 VK_LOGIC_OP_OR_REVERSE = 11, 622 VK_LOGIC_OP_COPY_INVERTED = 12, 623 VK_LOGIC_OP_OR_INVERTED = 13, 624 VK_LOGIC_OP_NAND = 14, 625 VK_LOGIC_OP_SET = 15, 626 VK_LOGIC_OP_BEGIN_RANGE = VK_LOGIC_OP_CLEAR, 627 VK_LOGIC_OP_END_RANGE = VK_LOGIC_OP_SET, 628 VK_LOGIC_OP_RANGE_SIZE = (VK_LOGIC_OP_SET - VK_LOGIC_OP_CLEAR + 1), 629 VK_LOGIC_OP_MAX_ENUM = 0x7FFFFFFF 630 } VkLogicOp; 631 632 typedef enum VkBlendFactor { 633 VK_BLEND_FACTOR_ZERO = 0, 634 VK_BLEND_FACTOR_ONE = 1, 635 VK_BLEND_FACTOR_SRC_COLOR = 2, 636 VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR = 3, 637 VK_BLEND_FACTOR_DST_COLOR = 4, 638 VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR = 5, 639 VK_BLEND_FACTOR_SRC_ALPHA = 6, 640 VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA = 7, 641 VK_BLEND_FACTOR_DST_ALPHA = 8, 642 VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA = 9, 643 VK_BLEND_FACTOR_CONSTANT_COLOR = 10, 644 VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR = 11, 645 VK_BLEND_FACTOR_CONSTANT_ALPHA = 12, 646 VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA = 13, 647 VK_BLEND_FACTOR_SRC_ALPHA_SATURATE = 14, 648 VK_BLEND_FACTOR_SRC1_COLOR = 15, 649 VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR = 16, 650 VK_BLEND_FACTOR_SRC1_ALPHA = 17, 651 VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA = 18, 652 VK_BLEND_FACTOR_BEGIN_RANGE = VK_BLEND_FACTOR_ZERO, 653 VK_BLEND_FACTOR_END_RANGE = VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA, 654 VK_BLEND_FACTOR_RANGE_SIZE = (VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA - VK_BLEND_FACTOR_ZERO + 1), 655 VK_BLEND_FACTOR_MAX_ENUM = 0x7FFFFFFF 656 } VkBlendFactor; 657 658 typedef enum VkBlendOp { 659 VK_BLEND_OP_ADD = 0, 660 VK_BLEND_OP_SUBTRACT = 1, 661 VK_BLEND_OP_REVERSE_SUBTRACT = 2, 662 VK_BLEND_OP_MIN = 3, 663 VK_BLEND_OP_MAX = 4, 664 VK_BLEND_OP_BEGIN_RANGE = VK_BLEND_OP_ADD, 665 VK_BLEND_OP_END_RANGE = VK_BLEND_OP_MAX, 666 VK_BLEND_OP_RANGE_SIZE = (VK_BLEND_OP_MAX - VK_BLEND_OP_ADD + 1), 667 VK_BLEND_OP_MAX_ENUM = 0x7FFFFFFF 668 } VkBlendOp; 669 670 typedef enum VkDynamicState { 671 VK_DYNAMIC_STATE_VIEWPORT = 0, 672 VK_DYNAMIC_STATE_SCISSOR = 1, 673 VK_DYNAMIC_STATE_LINE_WIDTH = 2, 674 VK_DYNAMIC_STATE_DEPTH_BIAS = 3, 675 VK_DYNAMIC_STATE_BLEND_CONSTANTS = 4, 676 VK_DYNAMIC_STATE_DEPTH_BOUNDS = 5, 677 VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK = 6, 678 VK_DYNAMIC_STATE_STENCIL_WRITE_MASK = 7, 679 VK_DYNAMIC_STATE_STENCIL_REFERENCE = 8, 680 VK_DYNAMIC_STATE_BEGIN_RANGE = VK_DYNAMIC_STATE_VIEWPORT, 681 VK_DYNAMIC_STATE_END_RANGE = VK_DYNAMIC_STATE_STENCIL_REFERENCE, 682 VK_DYNAMIC_STATE_RANGE_SIZE = (VK_DYNAMIC_STATE_STENCIL_REFERENCE - VK_DYNAMIC_STATE_VIEWPORT + 1), 683 VK_DYNAMIC_STATE_MAX_ENUM = 0x7FFFFFFF 684 } VkDynamicState; 685 686 typedef enum VkFilter { 687 VK_FILTER_NEAREST = 0, 688 VK_FILTER_LINEAR = 1, 689 VK_FILTER_CUBIC_IMG = 1000015000, 690 VK_FILTER_BEGIN_RANGE = VK_FILTER_NEAREST, 691 VK_FILTER_END_RANGE = VK_FILTER_LINEAR, 692 VK_FILTER_RANGE_SIZE = (VK_FILTER_LINEAR - VK_FILTER_NEAREST + 1), 693 VK_FILTER_MAX_ENUM = 0x7FFFFFFF 694 } VkFilter; 695 696 typedef enum VkSamplerMipmapMode { 697 VK_SAMPLER_MIPMAP_MODE_NEAREST = 0, 698 VK_SAMPLER_MIPMAP_MODE_LINEAR = 1, 699 VK_SAMPLER_MIPMAP_MODE_BEGIN_RANGE = VK_SAMPLER_MIPMAP_MODE_NEAREST, 700 VK_SAMPLER_MIPMAP_MODE_END_RANGE = VK_SAMPLER_MIPMAP_MODE_LINEAR, 701 VK_SAMPLER_MIPMAP_MODE_RANGE_SIZE = (VK_SAMPLER_MIPMAP_MODE_LINEAR - VK_SAMPLER_MIPMAP_MODE_NEAREST + 1), 702 VK_SAMPLER_MIPMAP_MODE_MAX_ENUM = 0x7FFFFFFF 703 } VkSamplerMipmapMode; 704 705 typedef enum VkSamplerAddressMode { 706 VK_SAMPLER_ADDRESS_MODE_REPEAT = 0, 707 VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT = 1, 708 VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE = 2, 709 VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER = 3, 710 VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE = 4, 711 VK_SAMPLER_ADDRESS_MODE_BEGIN_RANGE = VK_SAMPLER_ADDRESS_MODE_REPEAT, 712 VK_SAMPLER_ADDRESS_MODE_END_RANGE = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER, 713 VK_SAMPLER_ADDRESS_MODE_RANGE_SIZE = (VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER - VK_SAMPLER_ADDRESS_MODE_REPEAT + 1), 714 VK_SAMPLER_ADDRESS_MODE_MAX_ENUM = 0x7FFFFFFF 715 } VkSamplerAddressMode; 716 717 typedef enum VkBorderColor { 718 VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = 0, 719 VK_BORDER_COLOR_INT_TRANSPARENT_BLACK = 1, 720 VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK = 2, 721 VK_BORDER_COLOR_INT_OPAQUE_BLACK = 3, 722 VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE = 4, 723 VK_BORDER_COLOR_INT_OPAQUE_WHITE = 5, 724 VK_BORDER_COLOR_BEGIN_RANGE = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK, 725 VK_BORDER_COLOR_END_RANGE = VK_BORDER_COLOR_INT_OPAQUE_WHITE, 726 VK_BORDER_COLOR_RANGE_SIZE = (VK_BORDER_COLOR_INT_OPAQUE_WHITE - VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK + 1), 727 VK_BORDER_COLOR_MAX_ENUM = 0x7FFFFFFF 728 } VkBorderColor; 729 730 typedef enum VkDescriptorType { 731 VK_DESCRIPTOR_TYPE_SAMPLER = 0, 732 VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = 1, 733 VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE = 2, 734 VK_DESCRIPTOR_TYPE_STORAGE_IMAGE = 3, 735 VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = 4, 736 VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = 5, 737 VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER = 6, 738 VK_DESCRIPTOR_TYPE_STORAGE_BUFFER = 7, 739 VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = 8, 740 VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = 9, 741 VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT = 10, 742 VK_DESCRIPTOR_TYPE_BEGIN_RANGE = VK_DESCRIPTOR_TYPE_SAMPLER, 743 VK_DESCRIPTOR_TYPE_END_RANGE = VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, 744 VK_DESCRIPTOR_TYPE_RANGE_SIZE = (VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT - VK_DESCRIPTOR_TYPE_SAMPLER + 1), 745 VK_DESCRIPTOR_TYPE_MAX_ENUM = 0x7FFFFFFF 746 } VkDescriptorType; 747 748 typedef enum VkAttachmentLoadOp { 749 VK_ATTACHMENT_LOAD_OP_LOAD = 0, 750 VK_ATTACHMENT_LOAD_OP_CLEAR = 1, 751 VK_ATTACHMENT_LOAD_OP_DONT_CARE = 2, 752 VK_ATTACHMENT_LOAD_OP_BEGIN_RANGE = VK_ATTACHMENT_LOAD_OP_LOAD, 753 VK_ATTACHMENT_LOAD_OP_END_RANGE = VK_ATTACHMENT_LOAD_OP_DONT_CARE, 754 VK_ATTACHMENT_LOAD_OP_RANGE_SIZE = (VK_ATTACHMENT_LOAD_OP_DONT_CARE - VK_ATTACHMENT_LOAD_OP_LOAD + 1), 755 VK_ATTACHMENT_LOAD_OP_MAX_ENUM = 0x7FFFFFFF 756 } VkAttachmentLoadOp; 757 758 typedef enum VkAttachmentStoreOp { 759 VK_ATTACHMENT_STORE_OP_STORE = 0, 760 VK_ATTACHMENT_STORE_OP_DONT_CARE = 1, 761 VK_ATTACHMENT_STORE_OP_BEGIN_RANGE = VK_ATTACHMENT_STORE_OP_STORE, 762 VK_ATTACHMENT_STORE_OP_END_RANGE = VK_ATTACHMENT_STORE_OP_DONT_CARE, 763 VK_ATTACHMENT_STORE_OP_RANGE_SIZE = (VK_ATTACHMENT_STORE_OP_DONT_CARE - VK_ATTACHMENT_STORE_OP_STORE + 1), 764 VK_ATTACHMENT_STORE_OP_MAX_ENUM = 0x7FFFFFFF 765 } VkAttachmentStoreOp; 766 767 typedef enum VkPipelineBindPoint { 768 VK_PIPELINE_BIND_POINT_GRAPHICS = 0, 769 VK_PIPELINE_BIND_POINT_COMPUTE = 1, 770 VK_PIPELINE_BIND_POINT_BEGIN_RANGE = VK_PIPELINE_BIND_POINT_GRAPHICS, 771 VK_PIPELINE_BIND_POINT_END_RANGE = VK_PIPELINE_BIND_POINT_COMPUTE, 772 VK_PIPELINE_BIND_POINT_RANGE_SIZE = (VK_PIPELINE_BIND_POINT_COMPUTE - VK_PIPELINE_BIND_POINT_GRAPHICS + 1), 773 VK_PIPELINE_BIND_POINT_MAX_ENUM = 0x7FFFFFFF 774 } VkPipelineBindPoint; 775 776 typedef enum VkCommandBufferLevel { 777 VK_COMMAND_BUFFER_LEVEL_PRIMARY = 0, 778 VK_COMMAND_BUFFER_LEVEL_SECONDARY = 1, 779 VK_COMMAND_BUFFER_LEVEL_BEGIN_RANGE = VK_COMMAND_BUFFER_LEVEL_PRIMARY, 780 VK_COMMAND_BUFFER_LEVEL_END_RANGE = VK_COMMAND_BUFFER_LEVEL_SECONDARY, 781 VK_COMMAND_BUFFER_LEVEL_RANGE_SIZE = (VK_COMMAND_BUFFER_LEVEL_SECONDARY - VK_COMMAND_BUFFER_LEVEL_PRIMARY + 1), 782 VK_COMMAND_BUFFER_LEVEL_MAX_ENUM = 0x7FFFFFFF 783 } VkCommandBufferLevel; 784 785 typedef enum VkIndexType { 786 VK_INDEX_TYPE_UINT16 = 0, 787 VK_INDEX_TYPE_UINT32 = 1, 788 VK_INDEX_TYPE_BEGIN_RANGE = VK_INDEX_TYPE_UINT16, 789 VK_INDEX_TYPE_END_RANGE = VK_INDEX_TYPE_UINT32, 790 VK_INDEX_TYPE_RANGE_SIZE = (VK_INDEX_TYPE_UINT32 - VK_INDEX_TYPE_UINT16 + 1), 791 VK_INDEX_TYPE_MAX_ENUM = 0x7FFFFFFF 792 } VkIndexType; 793 794 typedef enum VkSubpassContents { 795 VK_SUBPASS_CONTENTS_INLINE = 0, 796 VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS = 1, 797 VK_SUBPASS_CONTENTS_BEGIN_RANGE = VK_SUBPASS_CONTENTS_INLINE, 798 VK_SUBPASS_CONTENTS_END_RANGE = VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS, 799 VK_SUBPASS_CONTENTS_RANGE_SIZE = (VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS - VK_SUBPASS_CONTENTS_INLINE + 1), 800 VK_SUBPASS_CONTENTS_MAX_ENUM = 0x7FFFFFFF 801 } VkSubpassContents; 802 803 typedef VkFlags VkInstanceCreateFlags; 804 805 typedef enum VkFormatFeatureFlagBits { 806 VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = 0x00000001, 807 VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = 0x00000002, 808 VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = 0x00000004, 809 VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000008, 810 VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = 0x00000010, 811 VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 0x00000020, 812 VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = 0x00000040, 813 VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 0x00000080, 814 VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = 0x00000100, 815 VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000200, 816 VK_FORMAT_FEATURE_BLIT_SRC_BIT = 0x00000400, 817 VK_FORMAT_FEATURE_BLIT_DST_BIT = 0x00000800, 818 VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = 0x00001000, 819 VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG = 0x00002000, 820 } VkFormatFeatureFlagBits; 821 typedef VkFlags VkFormatFeatureFlags; 822 823 typedef enum VkImageUsageFlagBits { 824 VK_IMAGE_USAGE_TRANSFER_SRC_BIT = 0x00000001, 825 VK_IMAGE_USAGE_TRANSFER_DST_BIT = 0x00000002, 826 VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004, 827 VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008, 828 VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010, 829 VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000020, 830 VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040, 831 VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 0x00000080, 832 } VkImageUsageFlagBits; 833 typedef VkFlags VkImageUsageFlags; 834 835 typedef enum VkImageCreateFlagBits { 836 VK_IMAGE_CREATE_SPARSE_BINDING_BIT = 0x00000001, 837 VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002, 838 VK_IMAGE_CREATE_SPARSE_ALIASED_BIT = 0x00000004, 839 VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = 0x00000008, 840 VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = 0x00000010, 841 } VkImageCreateFlagBits; 842 typedef VkFlags VkImageCreateFlags; 843 844 typedef enum VkSampleCountFlagBits { 845 VK_SAMPLE_COUNT_1_BIT = 0x00000001, 846 VK_SAMPLE_COUNT_2_BIT = 0x00000002, 847 VK_SAMPLE_COUNT_4_BIT = 0x00000004, 848 VK_SAMPLE_COUNT_8_BIT = 0x00000008, 849 VK_SAMPLE_COUNT_16_BIT = 0x00000010, 850 VK_SAMPLE_COUNT_32_BIT = 0x00000020, 851 VK_SAMPLE_COUNT_64_BIT = 0x00000040, 852 } VkSampleCountFlagBits; 853 typedef VkFlags VkSampleCountFlags; 854 855 typedef enum VkQueueFlagBits { 856 VK_QUEUE_GRAPHICS_BIT = 0x00000001, 857 VK_QUEUE_COMPUTE_BIT = 0x00000002, 858 VK_QUEUE_TRANSFER_BIT = 0x00000004, 859 VK_QUEUE_SPARSE_BINDING_BIT = 0x00000008, 860 } VkQueueFlagBits; 861 typedef VkFlags VkQueueFlags; 862 863 typedef enum VkMemoryPropertyFlagBits { 864 VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT = 0x00000001, 865 VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT = 0x00000002, 866 VK_MEMORY_PROPERTY_HOST_COHERENT_BIT = 0x00000004, 867 VK_MEMORY_PROPERTY_HOST_CACHED_BIT = 0x00000008, 868 VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT = 0x00000010, 869 } VkMemoryPropertyFlagBits; 870 typedef VkFlags VkMemoryPropertyFlags; 871 872 typedef enum VkMemoryHeapFlagBits { 873 VK_MEMORY_HEAP_DEVICE_LOCAL_BIT = 0x00000001, 874 } VkMemoryHeapFlagBits; 875 typedef VkFlags VkMemoryHeapFlags; 876 typedef VkFlags VkDeviceCreateFlags; 877 typedef VkFlags VkDeviceQueueCreateFlags; 878 879 typedef enum VkPipelineStageFlagBits { 880 VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT = 0x00000001, 881 VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT = 0x00000002, 882 VK_PIPELINE_STAGE_VERTEX_INPUT_BIT = 0x00000004, 883 VK_PIPELINE_STAGE_VERTEX_SHADER_BIT = 0x00000008, 884 VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT = 0x00000010, 885 VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT = 0x00000020, 886 VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT = 0x00000040, 887 VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT = 0x00000080, 888 VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT = 0x00000100, 889 VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT = 0x00000200, 890 VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT = 0x00000400, 891 VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT = 0x00000800, 892 VK_PIPELINE_STAGE_TRANSFER_BIT = 0x00001000, 893 VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT = 0x00002000, 894 VK_PIPELINE_STAGE_HOST_BIT = 0x00004000, 895 VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT = 0x00008000, 896 VK_PIPELINE_STAGE_ALL_COMMANDS_BIT = 0x00010000, 897 } VkPipelineStageFlagBits; 898 typedef VkFlags VkPipelineStageFlags; 899 typedef VkFlags VkMemoryMapFlags; 900 901 typedef enum VkImageAspectFlagBits { 902 VK_IMAGE_ASPECT_COLOR_BIT = 0x00000001, 903 VK_IMAGE_ASPECT_DEPTH_BIT = 0x00000002, 904 VK_IMAGE_ASPECT_STENCIL_BIT = 0x00000004, 905 VK_IMAGE_ASPECT_METADATA_BIT = 0x00000008, 906 } VkImageAspectFlagBits; 907 typedef VkFlags VkImageAspectFlags; 908 909 typedef enum VkSparseImageFormatFlagBits { 910 VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT = 0x00000001, 911 VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT = 0x00000002, 912 VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT = 0x00000004, 913 } VkSparseImageFormatFlagBits; 914 typedef VkFlags VkSparseImageFormatFlags; 915 916 typedef enum VkSparseMemoryBindFlagBits { 917 VK_SPARSE_MEMORY_BIND_METADATA_BIT = 0x00000001, 918 } VkSparseMemoryBindFlagBits; 919 typedef VkFlags VkSparseMemoryBindFlags; 920 921 typedef enum VkFenceCreateFlagBits { 922 VK_FENCE_CREATE_SIGNALED_BIT = 0x00000001, 923 } VkFenceCreateFlagBits; 924 typedef VkFlags VkFenceCreateFlags; 925 typedef VkFlags VkSemaphoreCreateFlags; 926 typedef VkFlags VkEventCreateFlags; 927 typedef VkFlags VkQueryPoolCreateFlags; 928 929 typedef enum VkQueryPipelineStatisticFlagBits { 930 VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT = 0x00000001, 931 VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT = 0x00000002, 932 VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT = 0x00000004, 933 VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT = 0x00000008, 934 VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT = 0x00000010, 935 VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT = 0x00000020, 936 VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT = 0x00000040, 937 VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT = 0x00000080, 938 VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT = 0x00000100, 939 VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT = 0x00000200, 940 VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT = 0x00000400, 941 } VkQueryPipelineStatisticFlagBits; 942 typedef VkFlags VkQueryPipelineStatisticFlags; 943 944 typedef enum VkQueryResultFlagBits { 945 VK_QUERY_RESULT_64_BIT = 0x00000001, 946 VK_QUERY_RESULT_WAIT_BIT = 0x00000002, 947 VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = 0x00000004, 948 VK_QUERY_RESULT_PARTIAL_BIT = 0x00000008, 949 } VkQueryResultFlagBits; 950 typedef VkFlags VkQueryResultFlags; 951 952 typedef enum VkBufferCreateFlagBits { 953 VK_BUFFER_CREATE_SPARSE_BINDING_BIT = 0x00000001, 954 VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002, 955 VK_BUFFER_CREATE_SPARSE_ALIASED_BIT = 0x00000004, 956 } VkBufferCreateFlagBits; 957 typedef VkFlags VkBufferCreateFlags; 958 959 typedef enum VkBufferUsageFlagBits { 960 VK_BUFFER_USAGE_TRANSFER_SRC_BIT = 0x00000001, 961 VK_BUFFER_USAGE_TRANSFER_DST_BIT = 0x00000002, 962 VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004, 963 VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = 0x00000008, 964 VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = 0x00000010, 965 VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = 0x00000020, 966 VK_BUFFER_USAGE_INDEX_BUFFER_BIT = 0x00000040, 967 VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = 0x00000080, 968 VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = 0x00000100, 969 } VkBufferUsageFlagBits; 970 typedef VkFlags VkBufferUsageFlags; 971 typedef VkFlags VkBufferViewCreateFlags; 972 typedef VkFlags VkImageViewCreateFlags; 973 typedef VkFlags VkShaderModuleCreateFlags; 974 typedef VkFlags VkPipelineCacheCreateFlags; 975 976 typedef enum VkPipelineCreateFlagBits { 977 VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = 0x00000001, 978 VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = 0x00000002, 979 VK_PIPELINE_CREATE_DERIVATIVE_BIT = 0x00000004, 980 } VkPipelineCreateFlagBits; 981 typedef VkFlags VkPipelineCreateFlags; 982 typedef VkFlags VkPipelineShaderStageCreateFlags; 983 984 typedef enum VkShaderStageFlagBits { 985 VK_SHADER_STAGE_VERTEX_BIT = 0x00000001, 986 VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT = 0x00000002, 987 VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT = 0x00000004, 988 VK_SHADER_STAGE_GEOMETRY_BIT = 0x00000008, 989 VK_SHADER_STAGE_FRAGMENT_BIT = 0x00000010, 990 VK_SHADER_STAGE_COMPUTE_BIT = 0x00000020, 991 VK_SHADER_STAGE_ALL_GRAPHICS = 0x0000001F, 992 VK_SHADER_STAGE_ALL = 0x7FFFFFFF, 993 } VkShaderStageFlagBits; 994 typedef VkFlags VkPipelineVertexInputStateCreateFlags; 995 typedef VkFlags VkPipelineInputAssemblyStateCreateFlags; 996 typedef VkFlags VkPipelineTessellationStateCreateFlags; 997 typedef VkFlags VkPipelineViewportStateCreateFlags; 998 typedef VkFlags VkPipelineRasterizationStateCreateFlags; 999 1000 typedef enum VkCullModeFlagBits { 1001 VK_CULL_MODE_NONE = 0, 1002 VK_CULL_MODE_FRONT_BIT = 0x00000001, 1003 VK_CULL_MODE_BACK_BIT = 0x00000002, 1004 VK_CULL_MODE_FRONT_AND_BACK = 0x00000003, 1005 } VkCullModeFlagBits; 1006 typedef VkFlags VkCullModeFlags; 1007 typedef VkFlags VkPipelineMultisampleStateCreateFlags; 1008 typedef VkFlags VkPipelineDepthStencilStateCreateFlags; 1009 typedef VkFlags VkPipelineColorBlendStateCreateFlags; 1010 1011 typedef enum VkColorComponentFlagBits { 1012 VK_COLOR_COMPONENT_R_BIT = 0x00000001, 1013 VK_COLOR_COMPONENT_G_BIT = 0x00000002, 1014 VK_COLOR_COMPONENT_B_BIT = 0x00000004, 1015 VK_COLOR_COMPONENT_A_BIT = 0x00000008, 1016 } VkColorComponentFlagBits; 1017 typedef VkFlags VkColorComponentFlags; 1018 typedef VkFlags VkPipelineDynamicStateCreateFlags; 1019 typedef VkFlags VkPipelineLayoutCreateFlags; 1020 typedef VkFlags VkShaderStageFlags; 1021 typedef VkFlags VkSamplerCreateFlags; 1022 typedef VkFlags VkDescriptorSetLayoutCreateFlags; 1023 1024 typedef enum VkDescriptorPoolCreateFlagBits { 1025 VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT = 0x00000001, 1026 } VkDescriptorPoolCreateFlagBits; 1027 typedef VkFlags VkDescriptorPoolCreateFlags; 1028 typedef VkFlags VkDescriptorPoolResetFlags; 1029 typedef VkFlags VkFramebufferCreateFlags; 1030 typedef VkFlags VkRenderPassCreateFlags; 1031 1032 typedef enum VkAttachmentDescriptionFlagBits { 1033 VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT = 0x00000001, 1034 } VkAttachmentDescriptionFlagBits; 1035 typedef VkFlags VkAttachmentDescriptionFlags; 1036 typedef VkFlags VkSubpassDescriptionFlags; 1037 1038 typedef enum VkAccessFlagBits { 1039 VK_ACCESS_INDIRECT_COMMAND_READ_BIT = 0x00000001, 1040 VK_ACCESS_INDEX_READ_BIT = 0x00000002, 1041 VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT = 0x00000004, 1042 VK_ACCESS_UNIFORM_READ_BIT = 0x00000008, 1043 VK_ACCESS_INPUT_ATTACHMENT_READ_BIT = 0x00000010, 1044 VK_ACCESS_SHADER_READ_BIT = 0x00000020, 1045 VK_ACCESS_SHADER_WRITE_BIT = 0x00000040, 1046 VK_ACCESS_COLOR_ATTACHMENT_READ_BIT = 0x00000080, 1047 VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT = 0x00000100, 1048 VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT = 0x00000200, 1049 VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT = 0x00000400, 1050 VK_ACCESS_TRANSFER_READ_BIT = 0x00000800, 1051 VK_ACCESS_TRANSFER_WRITE_BIT = 0x00001000, 1052 VK_ACCESS_HOST_READ_BIT = 0x00002000, 1053 VK_ACCESS_HOST_WRITE_BIT = 0x00004000, 1054 VK_ACCESS_MEMORY_READ_BIT = 0x00008000, 1055 VK_ACCESS_MEMORY_WRITE_BIT = 0x00010000, 1056 } VkAccessFlagBits; 1057 typedef VkFlags VkAccessFlags; 1058 1059 typedef enum VkDependencyFlagBits { 1060 VK_DEPENDENCY_BY_REGION_BIT = 0x00000001, 1061 } VkDependencyFlagBits; 1062 typedef VkFlags VkDependencyFlags; 1063 1064 typedef enum VkCommandPoolCreateFlagBits { 1065 VK_COMMAND_POOL_CREATE_TRANSIENT_BIT = 0x00000001, 1066 VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = 0x00000002, 1067 } VkCommandPoolCreateFlagBits; 1068 typedef VkFlags VkCommandPoolCreateFlags; 1069 1070 typedef enum VkCommandPoolResetFlagBits { 1071 VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT = 0x00000001, 1072 } VkCommandPoolResetFlagBits; 1073 typedef VkFlags VkCommandPoolResetFlags; 1074 1075 typedef enum VkCommandBufferUsageFlagBits { 1076 VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = 0x00000001, 1077 VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = 0x00000002, 1078 VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = 0x00000004, 1079 } VkCommandBufferUsageFlagBits; 1080 typedef VkFlags VkCommandBufferUsageFlags; 1081 1082 typedef enum VkQueryControlFlagBits { 1083 VK_QUERY_CONTROL_PRECISE_BIT = 0x00000001, 1084 } VkQueryControlFlagBits; 1085 typedef VkFlags VkQueryControlFlags; 1086 1087 typedef enum VkCommandBufferResetFlagBits { 1088 VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT = 0x00000001, 1089 } VkCommandBufferResetFlagBits; 1090 typedef VkFlags VkCommandBufferResetFlags; 1091 1092 typedef enum VkStencilFaceFlagBits { 1093 VK_STENCIL_FACE_FRONT_BIT = 0x00000001, 1094 VK_STENCIL_FACE_BACK_BIT = 0x00000002, 1095 VK_STENCIL_FRONT_AND_BACK = 0x00000003, 1096 } VkStencilFaceFlagBits; 1097 typedef VkFlags VkStencilFaceFlags; 1098 1099 typedef void* (VKAPI_PTR *PFN_vkAllocationFunction)( 1100 void* pUserData, 1101 size_t size, 1102 size_t alignment, 1103 VkSystemAllocationScope allocationScope); 1104 1105 typedef void* (VKAPI_PTR *PFN_vkReallocationFunction)( 1106 void* pUserData, 1107 void* pOriginal, 1108 size_t size, 1109 size_t alignment, 1110 VkSystemAllocationScope allocationScope); 1111 1112 typedef void (VKAPI_PTR *PFN_vkFreeFunction)( 1113 void* pUserData, 1114 void* pMemory); 1115 1116 typedef void (VKAPI_PTR *PFN_vkInternalAllocationNotification)( 1117 void* pUserData, 1118 size_t size, 1119 VkInternalAllocationType allocationType, 1120 VkSystemAllocationScope allocationScope); 1121 1122 typedef void (VKAPI_PTR *PFN_vkInternalFreeNotification)( 1123 void* pUserData, 1124 size_t size, 1125 VkInternalAllocationType allocationType, 1126 VkSystemAllocationScope allocationScope); 1127 1128 typedef void (VKAPI_PTR *PFN_vkVoidFunction)(void); 1129 1130 typedef struct VkApplicationInfo { 1131 VkStructureType sType; 1132 const void* pNext; 1133 const char* pApplicationName; 1134 uint32_t applicationVersion; 1135 const char* pEngineName; 1136 uint32_t engineVersion; 1137 uint32_t apiVersion; 1138 } VkApplicationInfo; 1139 1140 typedef struct VkInstanceCreateInfo { 1141 VkStructureType sType; 1142 const void* pNext; 1143 VkInstanceCreateFlags flags; 1144 const VkApplicationInfo* pApplicationInfo; 1145 uint32_t enabledLayerCount; 1146 const char* const* ppEnabledLayerNames; 1147 uint32_t enabledExtensionCount; 1148 const char* const* ppEnabledExtensionNames; 1149 } VkInstanceCreateInfo; 1150 1151 typedef struct VkAllocationCallbacks { 1152 void* pUserData; 1153 PFN_vkAllocationFunction pfnAllocation; 1154 PFN_vkReallocationFunction pfnReallocation; 1155 PFN_vkFreeFunction pfnFree; 1156 PFN_vkInternalAllocationNotification pfnInternalAllocation; 1157 PFN_vkInternalFreeNotification pfnInternalFree; 1158 } VkAllocationCallbacks; 1159 1160 typedef struct VkPhysicalDeviceFeatures { 1161 VkBool32 robustBufferAccess; 1162 VkBool32 fullDrawIndexUint32; 1163 VkBool32 imageCubeArray; 1164 VkBool32 independentBlend; 1165 VkBool32 geometryShader; 1166 VkBool32 tessellationShader; 1167 VkBool32 sampleRateShading; 1168 VkBool32 dualSrcBlend; 1169 VkBool32 logicOp; 1170 VkBool32 multiDrawIndirect; 1171 VkBool32 drawIndirectFirstInstance; 1172 VkBool32 depthClamp; 1173 VkBool32 depthBiasClamp; 1174 VkBool32 fillModeNonSolid; 1175 VkBool32 depthBounds; 1176 VkBool32 wideLines; 1177 VkBool32 largePoints; 1178 VkBool32 alphaToOne; 1179 VkBool32 multiViewport; 1180 VkBool32 samplerAnisotropy; 1181 VkBool32 textureCompressionETC2; 1182 VkBool32 textureCompressionASTC_LDR; 1183 VkBool32 textureCompressionBC; 1184 VkBool32 occlusionQueryPrecise; 1185 VkBool32 pipelineStatisticsQuery; 1186 VkBool32 vertexPipelineStoresAndAtomics; 1187 VkBool32 fragmentStoresAndAtomics; 1188 VkBool32 shaderTessellationAndGeometryPointSize; 1189 VkBool32 shaderImageGatherExtended; 1190 VkBool32 shaderStorageImageExtendedFormats; 1191 VkBool32 shaderStorageImageMultisample; 1192 VkBool32 shaderStorageImageReadWithoutFormat; 1193 VkBool32 shaderStorageImageWriteWithoutFormat; 1194 VkBool32 shaderUniformBufferArrayDynamicIndexing; 1195 VkBool32 shaderSampledImageArrayDynamicIndexing; 1196 VkBool32 shaderStorageBufferArrayDynamicIndexing; 1197 VkBool32 shaderStorageImageArrayDynamicIndexing; 1198 VkBool32 shaderClipDistance; 1199 VkBool32 shaderCullDistance; 1200 VkBool32 shaderFloat64; 1201 VkBool32 shaderInt64; 1202 VkBool32 shaderInt16; 1203 VkBool32 shaderResourceResidency; 1204 VkBool32 shaderResourceMinLod; 1205 VkBool32 sparseBinding; 1206 VkBool32 sparseResidencyBuffer; 1207 VkBool32 sparseResidencyImage2D; 1208 VkBool32 sparseResidencyImage3D; 1209 VkBool32 sparseResidency2Samples; 1210 VkBool32 sparseResidency4Samples; 1211 VkBool32 sparseResidency8Samples; 1212 VkBool32 sparseResidency16Samples; 1213 VkBool32 sparseResidencyAliased; 1214 VkBool32 variableMultisampleRate; 1215 VkBool32 inheritedQueries; 1216 } VkPhysicalDeviceFeatures; 1217 1218 typedef struct VkFormatProperties { 1219 VkFormatFeatureFlags linearTilingFeatures; 1220 VkFormatFeatureFlags optimalTilingFeatures; 1221 VkFormatFeatureFlags bufferFeatures; 1222 } VkFormatProperties; 1223 1224 typedef struct VkExtent3D { 1225 uint32_t width; 1226 uint32_t height; 1227 uint32_t depth; 1228 } VkExtent3D; 1229 1230 typedef struct VkImageFormatProperties { 1231 VkExtent3D maxExtent; 1232 uint32_t maxMipLevels; 1233 uint32_t maxArrayLayers; 1234 VkSampleCountFlags sampleCounts; 1235 VkDeviceSize maxResourceSize; 1236 } VkImageFormatProperties; 1237 1238 typedef struct VkPhysicalDeviceLimits { 1239 uint32_t maxImageDimension1D; 1240 uint32_t maxImageDimension2D; 1241 uint32_t maxImageDimension3D; 1242 uint32_t maxImageDimensionCube; 1243 uint32_t maxImageArrayLayers; 1244 uint32_t maxTexelBufferElements; 1245 uint32_t maxUniformBufferRange; 1246 uint32_t maxStorageBufferRange; 1247 uint32_t maxPushConstantsSize; 1248 uint32_t maxMemoryAllocationCount; 1249 uint32_t maxSamplerAllocationCount; 1250 VkDeviceSize bufferImageGranularity; 1251 VkDeviceSize sparseAddressSpaceSize; 1252 uint32_t maxBoundDescriptorSets; 1253 uint32_t maxPerStageDescriptorSamplers; 1254 uint32_t maxPerStageDescriptorUniformBuffers; 1255 uint32_t maxPerStageDescriptorStorageBuffers; 1256 uint32_t maxPerStageDescriptorSampledImages; 1257 uint32_t maxPerStageDescriptorStorageImages; 1258 uint32_t maxPerStageDescriptorInputAttachments; 1259 uint32_t maxPerStageResources; 1260 uint32_t maxDescriptorSetSamplers; 1261 uint32_t maxDescriptorSetUniformBuffers; 1262 uint32_t maxDescriptorSetUniformBuffersDynamic; 1263 uint32_t maxDescriptorSetStorageBuffers; 1264 uint32_t maxDescriptorSetStorageBuffersDynamic; 1265 uint32_t maxDescriptorSetSampledImages; 1266 uint32_t maxDescriptorSetStorageImages; 1267 uint32_t maxDescriptorSetInputAttachments; 1268 uint32_t maxVertexInputAttributes; 1269 uint32_t maxVertexInputBindings; 1270 uint32_t maxVertexInputAttributeOffset; 1271 uint32_t maxVertexInputBindingStride; 1272 uint32_t maxVertexOutputComponents; 1273 uint32_t maxTessellationGenerationLevel; 1274 uint32_t maxTessellationPatchSize; 1275 uint32_t maxTessellationControlPerVertexInputComponents; 1276 uint32_t maxTessellationControlPerVertexOutputComponents; 1277 uint32_t maxTessellationControlPerPatchOutputComponents; 1278 uint32_t maxTessellationControlTotalOutputComponents; 1279 uint32_t maxTessellationEvaluationInputComponents; 1280 uint32_t maxTessellationEvaluationOutputComponents; 1281 uint32_t maxGeometryShaderInvocations; 1282 uint32_t maxGeometryInputComponents; 1283 uint32_t maxGeometryOutputComponents; 1284 uint32_t maxGeometryOutputVertices; 1285 uint32_t maxGeometryTotalOutputComponents; 1286 uint32_t maxFragmentInputComponents; 1287 uint32_t maxFragmentOutputAttachments; 1288 uint32_t maxFragmentDualSrcAttachments; 1289 uint32_t maxFragmentCombinedOutputResources; 1290 uint32_t maxComputeSharedMemorySize; 1291 uint32_t maxComputeWorkGroupCount[3]; 1292 uint32_t maxComputeWorkGroupInvocations; 1293 uint32_t maxComputeWorkGroupSize[3]; 1294 uint32_t subPixelPrecisionBits; 1295 uint32_t subTexelPrecisionBits; 1296 uint32_t mipmapPrecisionBits; 1297 uint32_t maxDrawIndexedIndexValue; 1298 uint32_t maxDrawIndirectCount; 1299 float maxSamplerLodBias; 1300 float maxSamplerAnisotropy; 1301 uint32_t maxViewports; 1302 uint32_t maxViewportDimensions[2]; 1303 float viewportBoundsRange[2]; 1304 uint32_t viewportSubPixelBits; 1305 size_t minMemoryMapAlignment; 1306 VkDeviceSize minTexelBufferOffsetAlignment; 1307 VkDeviceSize minUniformBufferOffsetAlignment; 1308 VkDeviceSize minStorageBufferOffsetAlignment; 1309 int32_t minTexelOffset; 1310 uint32_t maxTexelOffset; 1311 int32_t minTexelGatherOffset; 1312 uint32_t maxTexelGatherOffset; 1313 float minInterpolationOffset; 1314 float maxInterpolationOffset; 1315 uint32_t subPixelInterpolationOffsetBits; 1316 uint32_t maxFramebufferWidth; 1317 uint32_t maxFramebufferHeight; 1318 uint32_t maxFramebufferLayers; 1319 VkSampleCountFlags framebufferColorSampleCounts; 1320 VkSampleCountFlags framebufferDepthSampleCounts; 1321 VkSampleCountFlags framebufferStencilSampleCounts; 1322 VkSampleCountFlags framebufferNoAttachmentsSampleCounts; 1323 uint32_t maxColorAttachments; 1324 VkSampleCountFlags sampledImageColorSampleCounts; 1325 VkSampleCountFlags sampledImageIntegerSampleCounts; 1326 VkSampleCountFlags sampledImageDepthSampleCounts; 1327 VkSampleCountFlags sampledImageStencilSampleCounts; 1328 VkSampleCountFlags storageImageSampleCounts; 1329 uint32_t maxSampleMaskWords; 1330 VkBool32 timestampComputeAndGraphics; 1331 float timestampPeriod; 1332 uint32_t maxClipDistances; 1333 uint32_t maxCullDistances; 1334 uint32_t maxCombinedClipAndCullDistances; 1335 uint32_t discreteQueuePriorities; 1336 float pointSizeRange[2]; 1337 float lineWidthRange[2]; 1338 float pointSizeGranularity; 1339 float lineWidthGranularity; 1340 VkBool32 strictLines; 1341 VkBool32 standardSampleLocations; 1342 VkDeviceSize optimalBufferCopyOffsetAlignment; 1343 VkDeviceSize optimalBufferCopyRowPitchAlignment; 1344 VkDeviceSize nonCoherentAtomSize; 1345 } VkPhysicalDeviceLimits; 1346 1347 typedef struct VkPhysicalDeviceSparseProperties { 1348 VkBool32 residencyStandard2DBlockShape; 1349 VkBool32 residencyStandard2DMultisampleBlockShape; 1350 VkBool32 residencyStandard3DBlockShape; 1351 VkBool32 residencyAlignedMipSize; 1352 VkBool32 residencyNonResidentStrict; 1353 } VkPhysicalDeviceSparseProperties; 1354 1355 typedef struct VkPhysicalDeviceProperties { 1356 uint32_t apiVersion; 1357 uint32_t driverVersion; 1358 uint32_t vendorID; 1359 uint32_t deviceID; 1360 VkPhysicalDeviceType deviceType; 1361 char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE]; 1362 uint8_t pipelineCacheUUID[VK_UUID_SIZE]; 1363 VkPhysicalDeviceLimits limits; 1364 VkPhysicalDeviceSparseProperties sparseProperties; 1365 } VkPhysicalDeviceProperties; 1366 1367 typedef struct VkQueueFamilyProperties { 1368 VkQueueFlags queueFlags; 1369 uint32_t queueCount; 1370 uint32_t timestampValidBits; 1371 VkExtent3D minImageTransferGranularity; 1372 } VkQueueFamilyProperties; 1373 1374 typedef struct VkMemoryType { 1375 VkMemoryPropertyFlags propertyFlags; 1376 uint32_t heapIndex; 1377 } VkMemoryType; 1378 1379 typedef struct VkMemoryHeap { 1380 VkDeviceSize size; 1381 VkMemoryHeapFlags flags; 1382 } VkMemoryHeap; 1383 1384 typedef struct VkPhysicalDeviceMemoryProperties { 1385 uint32_t memoryTypeCount; 1386 VkMemoryType memoryTypes[VK_MAX_MEMORY_TYPES]; 1387 uint32_t memoryHeapCount; 1388 VkMemoryHeap memoryHeaps[VK_MAX_MEMORY_HEAPS]; 1389 } VkPhysicalDeviceMemoryProperties; 1390 1391 typedef struct VkDeviceQueueCreateInfo { 1392 VkStructureType sType; 1393 const void* pNext; 1394 VkDeviceQueueCreateFlags flags; 1395 uint32_t queueFamilyIndex; 1396 uint32_t queueCount; 1397 const float* pQueuePriorities; 1398 } VkDeviceQueueCreateInfo; 1399 1400 typedef struct VkDeviceCreateInfo { 1401 VkStructureType sType; 1402 const void* pNext; 1403 VkDeviceCreateFlags flags; 1404 uint32_t queueCreateInfoCount; 1405 const VkDeviceQueueCreateInfo* pQueueCreateInfos; 1406 uint32_t enabledLayerCount; 1407 const char* const* ppEnabledLayerNames; 1408 uint32_t enabledExtensionCount; 1409 const char* const* ppEnabledExtensionNames; 1410 const VkPhysicalDeviceFeatures* pEnabledFeatures; 1411 } VkDeviceCreateInfo; 1412 1413 typedef struct VkExtensionProperties { 1414 char extensionName[VK_MAX_EXTENSION_NAME_SIZE]; 1415 uint32_t specVersion; 1416 } VkExtensionProperties; 1417 1418 typedef struct VkLayerProperties { 1419 char layerName[VK_MAX_EXTENSION_NAME_SIZE]; 1420 uint32_t specVersion; 1421 uint32_t implementationVersion; 1422 char description[VK_MAX_DESCRIPTION_SIZE]; 1423 } VkLayerProperties; 1424 1425 typedef struct VkSubmitInfo { 1426 VkStructureType sType; 1427 const void* pNext; 1428 uint32_t waitSemaphoreCount; 1429 const VkSemaphore* pWaitSemaphores; 1430 const VkPipelineStageFlags* pWaitDstStageMask; 1431 uint32_t commandBufferCount; 1432 const VkCommandBuffer* pCommandBuffers; 1433 uint32_t signalSemaphoreCount; 1434 const VkSemaphore* pSignalSemaphores; 1435 } VkSubmitInfo; 1436 1437 typedef struct VkMemoryAllocateInfo { 1438 VkStructureType sType; 1439 const void* pNext; 1440 VkDeviceSize allocationSize; 1441 uint32_t memoryTypeIndex; 1442 } VkMemoryAllocateInfo; 1443 1444 typedef struct VkMappedMemoryRange { 1445 VkStructureType sType; 1446 const void* pNext; 1447 VkDeviceMemory memory; 1448 VkDeviceSize offset; 1449 VkDeviceSize size; 1450 } VkMappedMemoryRange; 1451 1452 typedef struct VkMemoryRequirements { 1453 VkDeviceSize size; 1454 VkDeviceSize alignment; 1455 uint32_t memoryTypeBits; 1456 } VkMemoryRequirements; 1457 1458 typedef struct VkSparseImageFormatProperties { 1459 VkImageAspectFlags aspectMask; 1460 VkExtent3D imageGranularity; 1461 VkSparseImageFormatFlags flags; 1462 } VkSparseImageFormatProperties; 1463 1464 typedef struct VkSparseImageMemoryRequirements { 1465 VkSparseImageFormatProperties formatProperties; 1466 uint32_t imageMipTailFirstLod; 1467 VkDeviceSize imageMipTailSize; 1468 VkDeviceSize imageMipTailOffset; 1469 VkDeviceSize imageMipTailStride; 1470 } VkSparseImageMemoryRequirements; 1471 1472 typedef struct VkSparseMemoryBind { 1473 VkDeviceSize resourceOffset; 1474 VkDeviceSize size; 1475 VkDeviceMemory memory; 1476 VkDeviceSize memoryOffset; 1477 VkSparseMemoryBindFlags flags; 1478 } VkSparseMemoryBind; 1479 1480 typedef struct VkSparseBufferMemoryBindInfo { 1481 VkBuffer buffer; 1482 uint32_t bindCount; 1483 const VkSparseMemoryBind* pBinds; 1484 } VkSparseBufferMemoryBindInfo; 1485 1486 typedef struct VkSparseImageOpaqueMemoryBindInfo { 1487 VkImage image; 1488 uint32_t bindCount; 1489 const VkSparseMemoryBind* pBinds; 1490 } VkSparseImageOpaqueMemoryBindInfo; 1491 1492 typedef struct VkImageSubresource { 1493 VkImageAspectFlags aspectMask; 1494 uint32_t mipLevel; 1495 uint32_t arrayLayer; 1496 } VkImageSubresource; 1497 1498 typedef struct VkOffset3D { 1499 int32_t x; 1500 int32_t y; 1501 int32_t z; 1502 } VkOffset3D; 1503 1504 typedef struct VkSparseImageMemoryBind { 1505 VkImageSubresource subresource; 1506 VkOffset3D offset; 1507 VkExtent3D extent; 1508 VkDeviceMemory memory; 1509 VkDeviceSize memoryOffset; 1510 VkSparseMemoryBindFlags flags; 1511 } VkSparseImageMemoryBind; 1512 1513 typedef struct VkSparseImageMemoryBindInfo { 1514 VkImage image; 1515 uint32_t bindCount; 1516 const VkSparseImageMemoryBind* pBinds; 1517 } VkSparseImageMemoryBindInfo; 1518 1519 typedef struct VkBindSparseInfo { 1520 VkStructureType sType; 1521 const void* pNext; 1522 uint32_t waitSemaphoreCount; 1523 const VkSemaphore* pWaitSemaphores; 1524 uint32_t bufferBindCount; 1525 const VkSparseBufferMemoryBindInfo* pBufferBinds; 1526 uint32_t imageOpaqueBindCount; 1527 const VkSparseImageOpaqueMemoryBindInfo* pImageOpaqueBinds; 1528 uint32_t imageBindCount; 1529 const VkSparseImageMemoryBindInfo* pImageBinds; 1530 uint32_t signalSemaphoreCount; 1531 const VkSemaphore* pSignalSemaphores; 1532 } VkBindSparseInfo; 1533 1534 typedef struct VkFenceCreateInfo { 1535 VkStructureType sType; 1536 const void* pNext; 1537 VkFenceCreateFlags flags; 1538 } VkFenceCreateInfo; 1539 1540 typedef struct VkSemaphoreCreateInfo { 1541 VkStructureType sType; 1542 const void* pNext; 1543 VkSemaphoreCreateFlags flags; 1544 } VkSemaphoreCreateInfo; 1545 1546 typedef struct VkEventCreateInfo { 1547 VkStructureType sType; 1548 const void* pNext; 1549 VkEventCreateFlags flags; 1550 } VkEventCreateInfo; 1551 1552 typedef struct VkQueryPoolCreateInfo { 1553 VkStructureType sType; 1554 const void* pNext; 1555 VkQueryPoolCreateFlags flags; 1556 VkQueryType queryType; 1557 uint32_t queryCount; 1558 VkQueryPipelineStatisticFlags pipelineStatistics; 1559 } VkQueryPoolCreateInfo; 1560 1561 typedef struct VkBufferCreateInfo { 1562 VkStructureType sType; 1563 const void* pNext; 1564 VkBufferCreateFlags flags; 1565 VkDeviceSize size; 1566 VkBufferUsageFlags usage; 1567 VkSharingMode sharingMode; 1568 uint32_t queueFamilyIndexCount; 1569 const uint32_t* pQueueFamilyIndices; 1570 } VkBufferCreateInfo; 1571 1572 typedef struct VkBufferViewCreateInfo { 1573 VkStructureType sType; 1574 const void* pNext; 1575 VkBufferViewCreateFlags flags; 1576 VkBuffer buffer; 1577 VkFormat format; 1578 VkDeviceSize offset; 1579 VkDeviceSize range; 1580 } VkBufferViewCreateInfo; 1581 1582 typedef struct VkImageCreateInfo { 1583 VkStructureType sType; 1584 const void* pNext; 1585 VkImageCreateFlags flags; 1586 VkImageType imageType; 1587 VkFormat format; 1588 VkExtent3D extent; 1589 uint32_t mipLevels; 1590 uint32_t arrayLayers; 1591 VkSampleCountFlagBits samples; 1592 VkImageTiling tiling; 1593 VkImageUsageFlags usage; 1594 VkSharingMode sharingMode; 1595 uint32_t queueFamilyIndexCount; 1596 const uint32_t* pQueueFamilyIndices; 1597 VkImageLayout initialLayout; 1598 } VkImageCreateInfo; 1599 1600 typedef struct VkSubresourceLayout { 1601 VkDeviceSize offset; 1602 VkDeviceSize size; 1603 VkDeviceSize rowPitch; 1604 VkDeviceSize arrayPitch; 1605 VkDeviceSize depthPitch; 1606 } VkSubresourceLayout; 1607 1608 typedef struct VkComponentMapping { 1609 VkComponentSwizzle r; 1610 VkComponentSwizzle g; 1611 VkComponentSwizzle b; 1612 VkComponentSwizzle a; 1613 } VkComponentMapping; 1614 1615 typedef struct VkImageSubresourceRange { 1616 VkImageAspectFlags aspectMask; 1617 uint32_t baseMipLevel; 1618 uint32_t levelCount; 1619 uint32_t baseArrayLayer; 1620 uint32_t layerCount; 1621 } VkImageSubresourceRange; 1622 1623 typedef struct VkImageViewCreateInfo { 1624 VkStructureType sType; 1625 const void* pNext; 1626 VkImageViewCreateFlags flags; 1627 VkImage image; 1628 VkImageViewType viewType; 1629 VkFormat format; 1630 VkComponentMapping components; 1631 VkImageSubresourceRange subresourceRange; 1632 } VkImageViewCreateInfo; 1633 1634 typedef struct VkShaderModuleCreateInfo { 1635 VkStructureType sType; 1636 const void* pNext; 1637 VkShaderModuleCreateFlags flags; 1638 size_t codeSize; 1639 const uint32_t* pCode; 1640 } VkShaderModuleCreateInfo; 1641 1642 typedef struct VkPipelineCacheCreateInfo { 1643 VkStructureType sType; 1644 const void* pNext; 1645 VkPipelineCacheCreateFlags flags; 1646 size_t initialDataSize; 1647 const void* pInitialData; 1648 } VkPipelineCacheCreateInfo; 1649 1650 typedef struct VkSpecializationMapEntry { 1651 uint32_t constantID; 1652 uint32_t offset; 1653 size_t size; 1654 } VkSpecializationMapEntry; 1655 1656 typedef struct VkSpecializationInfo { 1657 uint32_t mapEntryCount; 1658 const VkSpecializationMapEntry* pMapEntries; 1659 size_t dataSize; 1660 const void* pData; 1661 } VkSpecializationInfo; 1662 1663 typedef struct VkPipelineShaderStageCreateInfo { 1664 VkStructureType sType; 1665 const void* pNext; 1666 VkPipelineShaderStageCreateFlags flags; 1667 VkShaderStageFlagBits stage; 1668 VkShaderModule module; 1669 const char* pName; 1670 const VkSpecializationInfo* pSpecializationInfo; 1671 } VkPipelineShaderStageCreateInfo; 1672 1673 typedef struct VkVertexInputBindingDescription { 1674 uint32_t binding; 1675 uint32_t stride; 1676 VkVertexInputRate inputRate; 1677 } VkVertexInputBindingDescription; 1678 1679 typedef struct VkVertexInputAttributeDescription { 1680 uint32_t location; 1681 uint32_t binding; 1682 VkFormat format; 1683 uint32_t offset; 1684 } VkVertexInputAttributeDescription; 1685 1686 typedef struct VkPipelineVertexInputStateCreateInfo { 1687 VkStructureType sType; 1688 const void* pNext; 1689 VkPipelineVertexInputStateCreateFlags flags; 1690 uint32_t vertexBindingDescriptionCount; 1691 const VkVertexInputBindingDescription* pVertexBindingDescriptions; 1692 uint32_t vertexAttributeDescriptionCount; 1693 const VkVertexInputAttributeDescription* pVertexAttributeDescriptions; 1694 } VkPipelineVertexInputStateCreateInfo; 1695 1696 typedef struct VkPipelineInputAssemblyStateCreateInfo { 1697 VkStructureType sType; 1698 const void* pNext; 1699 VkPipelineInputAssemblyStateCreateFlags flags; 1700 VkPrimitiveTopology topology; 1701 VkBool32 primitiveRestartEnable; 1702 } VkPipelineInputAssemblyStateCreateInfo; 1703 1704 typedef struct VkPipelineTessellationStateCreateInfo { 1705 VkStructureType sType; 1706 const void* pNext; 1707 VkPipelineTessellationStateCreateFlags flags; 1708 uint32_t patchControlPoints; 1709 } VkPipelineTessellationStateCreateInfo; 1710 1711 typedef struct VkViewport { 1712 float x; 1713 float y; 1714 float width; 1715 float height; 1716 float minDepth; 1717 float maxDepth; 1718 } VkViewport; 1719 1720 typedef struct VkOffset2D { 1721 int32_t x; 1722 int32_t y; 1723 } VkOffset2D; 1724 1725 typedef struct VkExtent2D { 1726 uint32_t width; 1727 uint32_t height; 1728 } VkExtent2D; 1729 1730 typedef struct VkRect2D { 1731 VkOffset2D offset; 1732 VkExtent2D extent; 1733 } VkRect2D; 1734 1735 typedef struct VkPipelineViewportStateCreateInfo { 1736 VkStructureType sType; 1737 const void* pNext; 1738 VkPipelineViewportStateCreateFlags flags; 1739 uint32_t viewportCount; 1740 const VkViewport* pViewports; 1741 uint32_t scissorCount; 1742 const VkRect2D* pScissors; 1743 } VkPipelineViewportStateCreateInfo; 1744 1745 typedef struct VkPipelineRasterizationStateCreateInfo { 1746 VkStructureType sType; 1747 const void* pNext; 1748 VkPipelineRasterizationStateCreateFlags flags; 1749 VkBool32 depthClampEnable; 1750 VkBool32 rasterizerDiscardEnable; 1751 VkPolygonMode polygonMode; 1752 VkCullModeFlags cullMode; 1753 VkFrontFace frontFace; 1754 VkBool32 depthBiasEnable; 1755 float depthBiasConstantFactor; 1756 float depthBiasClamp; 1757 float depthBiasSlopeFactor; 1758 float lineWidth; 1759 } VkPipelineRasterizationStateCreateInfo; 1760 1761 typedef struct VkPipelineMultisampleStateCreateInfo { 1762 VkStructureType sType; 1763 const void* pNext; 1764 VkPipelineMultisampleStateCreateFlags flags; 1765 VkSampleCountFlagBits rasterizationSamples; 1766 VkBool32 sampleShadingEnable; 1767 float minSampleShading; 1768 const VkSampleMask* pSampleMask; 1769 VkBool32 alphaToCoverageEnable; 1770 VkBool32 alphaToOneEnable; 1771 } VkPipelineMultisampleStateCreateInfo; 1772 1773 typedef struct VkStencilOpState { 1774 VkStencilOp failOp; 1775 VkStencilOp passOp; 1776 VkStencilOp depthFailOp; 1777 VkCompareOp compareOp; 1778 uint32_t compareMask; 1779 uint32_t writeMask; 1780 uint32_t reference; 1781 } VkStencilOpState; 1782 1783 typedef struct VkPipelineDepthStencilStateCreateInfo { 1784 VkStructureType sType; 1785 const void* pNext; 1786 VkPipelineDepthStencilStateCreateFlags flags; 1787 VkBool32 depthTestEnable; 1788 VkBool32 depthWriteEnable; 1789 VkCompareOp depthCompareOp; 1790 VkBool32 depthBoundsTestEnable; 1791 VkBool32 stencilTestEnable; 1792 VkStencilOpState front; 1793 VkStencilOpState back; 1794 float minDepthBounds; 1795 float maxDepthBounds; 1796 } VkPipelineDepthStencilStateCreateInfo; 1797 1798 typedef struct VkPipelineColorBlendAttachmentState { 1799 VkBool32 blendEnable; 1800 VkBlendFactor srcColorBlendFactor; 1801 VkBlendFactor dstColorBlendFactor; 1802 VkBlendOp colorBlendOp; 1803 VkBlendFactor srcAlphaBlendFactor; 1804 VkBlendFactor dstAlphaBlendFactor; 1805 VkBlendOp alphaBlendOp; 1806 VkColorComponentFlags colorWriteMask; 1807 } VkPipelineColorBlendAttachmentState; 1808 1809 typedef struct VkPipelineColorBlendStateCreateInfo { 1810 VkStructureType sType; 1811 const void* pNext; 1812 VkPipelineColorBlendStateCreateFlags flags; 1813 VkBool32 logicOpEnable; 1814 VkLogicOp logicOp; 1815 uint32_t attachmentCount; 1816 const VkPipelineColorBlendAttachmentState* pAttachments; 1817 float blendConstants[4]; 1818 } VkPipelineColorBlendStateCreateInfo; 1819 1820 typedef struct VkPipelineDynamicStateCreateInfo { 1821 VkStructureType sType; 1822 const void* pNext; 1823 VkPipelineDynamicStateCreateFlags flags; 1824 uint32_t dynamicStateCount; 1825 const VkDynamicState* pDynamicStates; 1826 } VkPipelineDynamicStateCreateInfo; 1827 1828 typedef struct VkGraphicsPipelineCreateInfo { 1829 VkStructureType sType; 1830 const void* pNext; 1831 VkPipelineCreateFlags flags; 1832 uint32_t stageCount; 1833 const VkPipelineShaderStageCreateInfo* pStages; 1834 const VkPipelineVertexInputStateCreateInfo* pVertexInputState; 1835 const VkPipelineInputAssemblyStateCreateInfo* pInputAssemblyState; 1836 const VkPipelineTessellationStateCreateInfo* pTessellationState; 1837 const VkPipelineViewportStateCreateInfo* pViewportState; 1838 const VkPipelineRasterizationStateCreateInfo* pRasterizationState; 1839 const VkPipelineMultisampleStateCreateInfo* pMultisampleState; 1840 const VkPipelineDepthStencilStateCreateInfo* pDepthStencilState; 1841 const VkPipelineColorBlendStateCreateInfo* pColorBlendState; 1842 const VkPipelineDynamicStateCreateInfo* pDynamicState; 1843 VkPipelineLayout layout; 1844 VkRenderPass renderPass; 1845 uint32_t subpass; 1846 VkPipeline basePipelineHandle; 1847 int32_t basePipelineIndex; 1848 } VkGraphicsPipelineCreateInfo; 1849 1850 typedef struct VkComputePipelineCreateInfo { 1851 VkStructureType sType; 1852 const void* pNext; 1853 VkPipelineCreateFlags flags; 1854 VkPipelineShaderStageCreateInfo stage; 1855 VkPipelineLayout layout; 1856 VkPipeline basePipelineHandle; 1857 int32_t basePipelineIndex; 1858 } VkComputePipelineCreateInfo; 1859 1860 typedef struct VkPushConstantRange { 1861 VkShaderStageFlags stageFlags; 1862 uint32_t offset; 1863 uint32_t size; 1864 } VkPushConstantRange; 1865 1866 typedef struct VkPipelineLayoutCreateInfo { 1867 VkStructureType sType; 1868 const void* pNext; 1869 VkPipelineLayoutCreateFlags flags; 1870 uint32_t setLayoutCount; 1871 const VkDescriptorSetLayout* pSetLayouts; 1872 uint32_t pushConstantRangeCount; 1873 const VkPushConstantRange* pPushConstantRanges; 1874 } VkPipelineLayoutCreateInfo; 1875 1876 typedef struct VkSamplerCreateInfo { 1877 VkStructureType sType; 1878 const void* pNext; 1879 VkSamplerCreateFlags flags; 1880 VkFilter magFilter; 1881 VkFilter minFilter; 1882 VkSamplerMipmapMode mipmapMode; 1883 VkSamplerAddressMode addressModeU; 1884 VkSamplerAddressMode addressModeV; 1885 VkSamplerAddressMode addressModeW; 1886 float mipLodBias; 1887 VkBool32 anisotropyEnable; 1888 float maxAnisotropy; 1889 VkBool32 compareEnable; 1890 VkCompareOp compareOp; 1891 float minLod; 1892 float maxLod; 1893 VkBorderColor borderColor; 1894 VkBool32 unnormalizedCoordinates; 1895 } VkSamplerCreateInfo; 1896 1897 typedef struct VkDescriptorSetLayoutBinding { 1898 uint32_t binding; 1899 VkDescriptorType descriptorType; 1900 uint32_t descriptorCount; 1901 VkShaderStageFlags stageFlags; 1902 const VkSampler* pImmutableSamplers; 1903 } VkDescriptorSetLayoutBinding; 1904 1905 typedef struct VkDescriptorSetLayoutCreateInfo { 1906 VkStructureType sType; 1907 const void* pNext; 1908 VkDescriptorSetLayoutCreateFlags flags; 1909 uint32_t bindingCount; 1910 const VkDescriptorSetLayoutBinding* pBindings; 1911 } VkDescriptorSetLayoutCreateInfo; 1912 1913 typedef struct VkDescriptorPoolSize { 1914 VkDescriptorType type; 1915 uint32_t descriptorCount; 1916 } VkDescriptorPoolSize; 1917 1918 typedef struct VkDescriptorPoolCreateInfo { 1919 VkStructureType sType; 1920 const void* pNext; 1921 VkDescriptorPoolCreateFlags flags; 1922 uint32_t maxSets; 1923 uint32_t poolSizeCount; 1924 const VkDescriptorPoolSize* pPoolSizes; 1925 } VkDescriptorPoolCreateInfo; 1926 1927 typedef struct VkDescriptorSetAllocateInfo { 1928 VkStructureType sType; 1929 const void* pNext; 1930 VkDescriptorPool descriptorPool; 1931 uint32_t descriptorSetCount; 1932 const VkDescriptorSetLayout* pSetLayouts; 1933 } VkDescriptorSetAllocateInfo; 1934 1935 typedef struct VkDescriptorImageInfo { 1936 VkSampler sampler; 1937 VkImageView imageView; 1938 VkImageLayout imageLayout; 1939 } VkDescriptorImageInfo; 1940 1941 typedef struct VkDescriptorBufferInfo { 1942 VkBuffer buffer; 1943 VkDeviceSize offset; 1944 VkDeviceSize range; 1945 } VkDescriptorBufferInfo; 1946 1947 typedef struct VkWriteDescriptorSet { 1948 VkStructureType sType; 1949 const void* pNext; 1950 VkDescriptorSet dstSet; 1951 uint32_t dstBinding; 1952 uint32_t dstArrayElement; 1953 uint32_t descriptorCount; 1954 VkDescriptorType descriptorType; 1955 const VkDescriptorImageInfo* pImageInfo; 1956 const VkDescriptorBufferInfo* pBufferInfo; 1957 const VkBufferView* pTexelBufferView; 1958 } VkWriteDescriptorSet; 1959 1960 typedef struct VkCopyDescriptorSet { 1961 VkStructureType sType; 1962 const void* pNext; 1963 VkDescriptorSet srcSet; 1964 uint32_t srcBinding; 1965 uint32_t srcArrayElement; 1966 VkDescriptorSet dstSet; 1967 uint32_t dstBinding; 1968 uint32_t dstArrayElement; 1969 uint32_t descriptorCount; 1970 } VkCopyDescriptorSet; 1971 1972 typedef struct VkFramebufferCreateInfo { 1973 VkStructureType sType; 1974 const void* pNext; 1975 VkFramebufferCreateFlags flags; 1976 VkRenderPass renderPass; 1977 uint32_t attachmentCount; 1978 const VkImageView* pAttachments; 1979 uint32_t width; 1980 uint32_t height; 1981 uint32_t layers; 1982 } VkFramebufferCreateInfo; 1983 1984 typedef struct VkAttachmentDescription { 1985 VkAttachmentDescriptionFlags flags; 1986 VkFormat format; 1987 VkSampleCountFlagBits samples; 1988 VkAttachmentLoadOp loadOp; 1989 VkAttachmentStoreOp storeOp; 1990 VkAttachmentLoadOp stencilLoadOp; 1991 VkAttachmentStoreOp stencilStoreOp; 1992 VkImageLayout initialLayout; 1993 VkImageLayout finalLayout; 1994 } VkAttachmentDescription; 1995 1996 typedef struct VkAttachmentReference { 1997 uint32_t attachment; 1998 VkImageLayout layout; 1999 } VkAttachmentReference; 2000 2001 typedef struct VkSubpassDescription { 2002 VkSubpassDescriptionFlags flags; 2003 VkPipelineBindPoint pipelineBindPoint; 2004 uint32_t inputAttachmentCount; 2005 const VkAttachmentReference* pInputAttachments; 2006 uint32_t colorAttachmentCount; 2007 const VkAttachmentReference* pColorAttachments; 2008 const VkAttachmentReference* pResolveAttachments; 2009 const VkAttachmentReference* pDepthStencilAttachment; 2010 uint32_t preserveAttachmentCount; 2011 const uint32_t* pPreserveAttachments; 2012 } VkSubpassDescription; 2013 2014 typedef struct VkSubpassDependency { 2015 uint32_t srcSubpass; 2016 uint32_t dstSubpass; 2017 VkPipelineStageFlags srcStageMask; 2018 VkPipelineStageFlags dstStageMask; 2019 VkAccessFlags srcAccessMask; 2020 VkAccessFlags dstAccessMask; 2021 VkDependencyFlags dependencyFlags; 2022 } VkSubpassDependency; 2023 2024 typedef struct VkRenderPassCreateInfo { 2025 VkStructureType sType; 2026 const void* pNext; 2027 VkRenderPassCreateFlags flags; 2028 uint32_t attachmentCount; 2029 const VkAttachmentDescription* pAttachments; 2030 uint32_t subpassCount; 2031 const VkSubpassDescription* pSubpasses; 2032 uint32_t dependencyCount; 2033 const VkSubpassDependency* pDependencies; 2034 } VkRenderPassCreateInfo; 2035 2036 typedef struct VkCommandPoolCreateInfo { 2037 VkStructureType sType; 2038 const void* pNext; 2039 VkCommandPoolCreateFlags flags; 2040 uint32_t queueFamilyIndex; 2041 } VkCommandPoolCreateInfo; 2042 2043 typedef struct VkCommandBufferAllocateInfo { 2044 VkStructureType sType; 2045 const void* pNext; 2046 VkCommandPool commandPool; 2047 VkCommandBufferLevel level; 2048 uint32_t commandBufferCount; 2049 } VkCommandBufferAllocateInfo; 2050 2051 typedef struct VkCommandBufferInheritanceInfo { 2052 VkStructureType sType; 2053 const void* pNext; 2054 VkRenderPass renderPass; 2055 uint32_t subpass; 2056 VkFramebuffer framebuffer; 2057 VkBool32 occlusionQueryEnable; 2058 VkQueryControlFlags queryFlags; 2059 VkQueryPipelineStatisticFlags pipelineStatistics; 2060 } VkCommandBufferInheritanceInfo; 2061 2062 typedef struct VkCommandBufferBeginInfo { 2063 VkStructureType sType; 2064 const void* pNext; 2065 VkCommandBufferUsageFlags flags; 2066 const VkCommandBufferInheritanceInfo* pInheritanceInfo; 2067 } VkCommandBufferBeginInfo; 2068 2069 typedef struct VkBufferCopy { 2070 VkDeviceSize srcOffset; 2071 VkDeviceSize dstOffset; 2072 VkDeviceSize size; 2073 } VkBufferCopy; 2074 2075 typedef struct VkImageSubresourceLayers { 2076 VkImageAspectFlags aspectMask; 2077 uint32_t mipLevel; 2078 uint32_t baseArrayLayer; 2079 uint32_t layerCount; 2080 } VkImageSubresourceLayers; 2081 2082 typedef struct VkImageCopy { 2083 VkImageSubresourceLayers srcSubresource; 2084 VkOffset3D srcOffset; 2085 VkImageSubresourceLayers dstSubresource; 2086 VkOffset3D dstOffset; 2087 VkExtent3D extent; 2088 } VkImageCopy; 2089 2090 typedef struct VkImageBlit { 2091 VkImageSubresourceLayers srcSubresource; 2092 VkOffset3D srcOffsets[2]; 2093 VkImageSubresourceLayers dstSubresource; 2094 VkOffset3D dstOffsets[2]; 2095 } VkImageBlit; 2096 2097 typedef struct VkBufferImageCopy { 2098 VkDeviceSize bufferOffset; 2099 uint32_t bufferRowLength; 2100 uint32_t bufferImageHeight; 2101 VkImageSubresourceLayers imageSubresource; 2102 VkOffset3D imageOffset; 2103 VkExtent3D imageExtent; 2104 } VkBufferImageCopy; 2105 2106 typedef union VkClearColorValue { 2107 float float32[4]; 2108 int32_t int32[4]; 2109 uint32_t uint32[4]; 2110 } VkClearColorValue; 2111 2112 typedef struct VkClearDepthStencilValue { 2113 float depth; 2114 uint32_t stencil; 2115 } VkClearDepthStencilValue; 2116 2117 typedef union VkClearValue { 2118 VkClearColorValue color; 2119 VkClearDepthStencilValue depthStencil; 2120 } VkClearValue; 2121 2122 typedef struct VkClearAttachment { 2123 VkImageAspectFlags aspectMask; 2124 uint32_t colorAttachment; 2125 VkClearValue clearValue; 2126 } VkClearAttachment; 2127 2128 typedef struct VkClearRect { 2129 VkRect2D rect; 2130 uint32_t baseArrayLayer; 2131 uint32_t layerCount; 2132 } VkClearRect; 2133 2134 typedef struct VkImageResolve { 2135 VkImageSubresourceLayers srcSubresource; 2136 VkOffset3D srcOffset; 2137 VkImageSubresourceLayers dstSubresource; 2138 VkOffset3D dstOffset; 2139 VkExtent3D extent; 2140 } VkImageResolve; 2141 2142 typedef struct VkMemoryBarrier { 2143 VkStructureType sType; 2144 const void* pNext; 2145 VkAccessFlags srcAccessMask; 2146 VkAccessFlags dstAccessMask; 2147 } VkMemoryBarrier; 2148 2149 typedef struct VkBufferMemoryBarrier { 2150 VkStructureType sType; 2151 const void* pNext; 2152 VkAccessFlags srcAccessMask; 2153 VkAccessFlags dstAccessMask; 2154 uint32_t srcQueueFamilyIndex; 2155 uint32_t dstQueueFamilyIndex; 2156 VkBuffer buffer; 2157 VkDeviceSize offset; 2158 VkDeviceSize size; 2159 } VkBufferMemoryBarrier; 2160 2161 typedef struct VkImageMemoryBarrier { 2162 VkStructureType sType; 2163 const void* pNext; 2164 VkAccessFlags srcAccessMask; 2165 VkAccessFlags dstAccessMask; 2166 VkImageLayout oldLayout; 2167 VkImageLayout newLayout; 2168 uint32_t srcQueueFamilyIndex; 2169 uint32_t dstQueueFamilyIndex; 2170 VkImage image; 2171 VkImageSubresourceRange subresourceRange; 2172 } VkImageMemoryBarrier; 2173 2174 typedef struct VkRenderPassBeginInfo { 2175 VkStructureType sType; 2176 const void* pNext; 2177 VkRenderPass renderPass; 2178 VkFramebuffer framebuffer; 2179 VkRect2D renderArea; 2180 uint32_t clearValueCount; 2181 const VkClearValue* pClearValues; 2182 } VkRenderPassBeginInfo; 2183 2184 typedef struct VkDispatchIndirectCommand { 2185 uint32_t x; 2186 uint32_t y; 2187 uint32_t z; 2188 } VkDispatchIndirectCommand; 2189 2190 typedef struct VkDrawIndexedIndirectCommand { 2191 uint32_t indexCount; 2192 uint32_t instanceCount; 2193 uint32_t firstIndex; 2194 int32_t vertexOffset; 2195 uint32_t firstInstance; 2196 } VkDrawIndexedIndirectCommand; 2197 2198 typedef struct VkDrawIndirectCommand { 2199 uint32_t vertexCount; 2200 uint32_t instanceCount; 2201 uint32_t firstVertex; 2202 uint32_t firstInstance; 2203 } VkDrawIndirectCommand; 2204 2205 2206 typedef VkResult (VKAPI_PTR *PFN_vkCreateInstance)(const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance); 2207 typedef void (VKAPI_PTR *PFN_vkDestroyInstance)(VkInstance instance, const VkAllocationCallbacks* pAllocator); 2208 typedef VkResult (VKAPI_PTR *PFN_vkEnumeratePhysicalDevices)(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices); 2209 typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFeatures)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures); 2210 typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties); 2211 typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties); 2212 typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties); 2213 typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceQueueFamilyProperties)(VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties* pQueueFamilyProperties); 2214 typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceMemoryProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties* pMemoryProperties); 2215 typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetInstanceProcAddr)(VkInstance instance, const char* pName); 2216 typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetDeviceProcAddr)(VkDevice device, const char* pName); 2217 typedef VkResult (VKAPI_PTR *PFN_vkCreateDevice)(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDevice* pDevice); 2218 typedef void (VKAPI_PTR *PFN_vkDestroyDevice)(VkDevice device, const VkAllocationCallbacks* pAllocator); 2219 typedef VkResult (VKAPI_PTR *PFN_vkEnumerateInstanceExtensionProperties)(const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties); 2220 typedef VkResult (VKAPI_PTR *PFN_vkEnumerateDeviceExtensionProperties)(VkPhysicalDevice physicalDevice, const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties); 2221 typedef VkResult (VKAPI_PTR *PFN_vkEnumerateInstanceLayerProperties)(uint32_t* pPropertyCount, VkLayerProperties* pProperties); 2222 typedef VkResult (VKAPI_PTR *PFN_vkEnumerateDeviceLayerProperties)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkLayerProperties* pProperties); 2223 typedef void (VKAPI_PTR *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue* pQueue); 2224 typedef VkResult (VKAPI_PTR *PFN_vkQueueSubmit)(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence); 2225 typedef VkResult (VKAPI_PTR *PFN_vkQueueWaitIdle)(VkQueue queue); 2226 typedef VkResult (VKAPI_PTR *PFN_vkDeviceWaitIdle)(VkDevice device); 2227 typedef VkResult (VKAPI_PTR *PFN_vkAllocateMemory)(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory); 2228 typedef void (VKAPI_PTR *PFN_vkFreeMemory)(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator); 2229 typedef VkResult (VKAPI_PTR *PFN_vkMapMemory)(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData); 2230 typedef void (VKAPI_PTR *PFN_vkUnmapMemory)(VkDevice device, VkDeviceMemory memory); 2231 typedef VkResult (VKAPI_PTR *PFN_vkFlushMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges); 2232 typedef VkResult (VKAPI_PTR *PFN_vkInvalidateMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges); 2233 typedef void (VKAPI_PTR *PFN_vkGetDeviceMemoryCommitment)(VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes); 2234 typedef VkResult (VKAPI_PTR *PFN_vkBindBufferMemory)(VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset); 2235 typedef VkResult (VKAPI_PTR *PFN_vkBindImageMemory)(VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset); 2236 typedef void (VKAPI_PTR *PFN_vkGetBufferMemoryRequirements)(VkDevice device, VkBuffer buffer, VkMemoryRequirements* pMemoryRequirements); 2237 typedef void (VKAPI_PTR *PFN_vkGetImageMemoryRequirements)(VkDevice device, VkImage image, VkMemoryRequirements* pMemoryRequirements); 2238 typedef void (VKAPI_PTR *PFN_vkGetImageSparseMemoryRequirements)(VkDevice device, VkImage image, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements* pSparseMemoryRequirements); 2239 typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceSparseImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties); 2240 typedef VkResult (VKAPI_PTR *PFN_vkQueueBindSparse)(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence); 2241 typedef VkResult (VKAPI_PTR *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence); 2242 typedef void (VKAPI_PTR *PFN_vkDestroyFence)(VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator); 2243 typedef VkResult (VKAPI_PTR *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences); 2244 typedef VkResult (VKAPI_PTR *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence); 2245 typedef VkResult (VKAPI_PTR *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout); 2246 typedef VkResult (VKAPI_PTR *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSemaphore* pSemaphore); 2247 typedef void (VKAPI_PTR *PFN_vkDestroySemaphore)(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator); 2248 typedef VkResult (VKAPI_PTR *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkEvent* pEvent); 2249 typedef void (VKAPI_PTR *PFN_vkDestroyEvent)(VkDevice device, VkEvent event, const VkAllocationCallbacks* pAllocator); 2250 typedef VkResult (VKAPI_PTR *PFN_vkGetEventStatus)(VkDevice device, VkEvent event); 2251 typedef VkResult (VKAPI_PTR *PFN_vkSetEvent)(VkDevice device, VkEvent event); 2252 typedef VkResult (VKAPI_PTR *PFN_vkResetEvent)(VkDevice device, VkEvent event); 2253 typedef VkResult (VKAPI_PTR *PFN_vkCreateQueryPool)(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkQueryPool* pQueryPool); 2254 typedef void (VKAPI_PTR *PFN_vkDestroyQueryPool)(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator); 2255 typedef VkResult (VKAPI_PTR *PFN_vkGetQueryPoolResults)(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkDeviceSize stride, VkQueryResultFlags flags); 2256 typedef VkResult (VKAPI_PTR *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBuffer* pBuffer); 2257 typedef void (VKAPI_PTR *PFN_vkDestroyBuffer)(VkDevice device, VkBuffer buffer, const VkAllocationCallbacks* pAllocator); 2258 typedef VkResult (VKAPI_PTR *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferView* pView); 2259 typedef void (VKAPI_PTR *PFN_vkDestroyBufferView)(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator); 2260 typedef VkResult (VKAPI_PTR *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImage* pImage); 2261 typedef void (VKAPI_PTR *PFN_vkDestroyImage)(VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator); 2262 typedef void (VKAPI_PTR *PFN_vkGetImageSubresourceLayout)(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout); 2263 typedef VkResult (VKAPI_PTR *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImageView* pView); 2264 typedef void (VKAPI_PTR *PFN_vkDestroyImageView)(VkDevice device, VkImageView imageView, const VkAllocationCallbacks* pAllocator); 2265 typedef VkResult (VKAPI_PTR *PFN_vkCreateShaderModule)(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkShaderModule* pShaderModule); 2266 typedef void (VKAPI_PTR *PFN_vkDestroyShaderModule)(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator); 2267 typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineCache)(VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineCache* pPipelineCache); 2268 typedef void (VKAPI_PTR *PFN_vkDestroyPipelineCache)(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator); 2269 typedef VkResult (VKAPI_PTR *PFN_vkGetPipelineCacheData)(VkDevice device, VkPipelineCache pipelineCache, size_t* pDataSize, void* pData); 2270 typedef VkResult (VKAPI_PTR *PFN_vkMergePipelineCaches)(VkDevice device, VkPipelineCache dstCache, uint32_t srcCacheCount, const VkPipelineCache* pSrcCaches); 2271 typedef VkResult (VKAPI_PTR *PFN_vkCreateGraphicsPipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkGraphicsPipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines); 2272 typedef VkResult (VKAPI_PTR *PFN_vkCreateComputePipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines); 2273 typedef void (VKAPI_PTR *PFN_vkDestroyPipeline)(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator); 2274 typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineLayout)(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineLayout* pPipelineLayout); 2275 typedef void (VKAPI_PTR *PFN_vkDestroyPipelineLayout)(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator); 2276 typedef VkResult (VKAPI_PTR *PFN_vkCreateSampler)(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSampler* pSampler); 2277 typedef void (VKAPI_PTR *PFN_vkDestroySampler)(VkDevice device, VkSampler sampler, const VkAllocationCallbacks* pAllocator); 2278 typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorSetLayout)(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorSetLayout* pSetLayout); 2279 typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorSetLayout)(VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator); 2280 typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorPool)(VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorPool* pDescriptorPool); 2281 typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator); 2282 typedef VkResult (VKAPI_PTR *PFN_vkResetDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags); 2283 typedef VkResult (VKAPI_PTR *PFN_vkAllocateDescriptorSets)(VkDevice device, const VkDescriptorSetAllocateInfo* pAllocateInfo, VkDescriptorSet* pDescriptorSets); 2284 typedef VkResult (VKAPI_PTR *PFN_vkFreeDescriptorSets)(VkDevice device, VkDescriptorPool descriptorPool, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets); 2285 typedef void (VKAPI_PTR *PFN_vkUpdateDescriptorSets)(VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies); 2286 typedef VkResult (VKAPI_PTR *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFramebuffer* pFramebuffer); 2287 typedef void (VKAPI_PTR *PFN_vkDestroyFramebuffer)(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator); 2288 typedef VkResult (VKAPI_PTR *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkRenderPass* pRenderPass); 2289 typedef void (VKAPI_PTR *PFN_vkDestroyRenderPass)(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator); 2290 typedef void (VKAPI_PTR *PFN_vkGetRenderAreaGranularity)(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity); 2291 typedef VkResult (VKAPI_PTR *PFN_vkCreateCommandPool)(VkDevice device, const VkCommandPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCommandPool* pCommandPool); 2292 typedef void (VKAPI_PTR *PFN_vkDestroyCommandPool)(VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator); 2293 typedef VkResult (VKAPI_PTR *PFN_vkResetCommandPool)(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags); 2294 typedef VkResult (VKAPI_PTR *PFN_vkAllocateCommandBuffers)(VkDevice device, const VkCommandBufferAllocateInfo* pAllocateInfo, VkCommandBuffer* pCommandBuffers); 2295 typedef void (VKAPI_PTR *PFN_vkFreeCommandBuffers)(VkDevice device, VkCommandPool commandPool, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers); 2296 typedef VkResult (VKAPI_PTR *PFN_vkBeginCommandBuffer)(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo); 2297 typedef VkResult (VKAPI_PTR *PFN_vkEndCommandBuffer)(VkCommandBuffer commandBuffer); 2298 typedef VkResult (VKAPI_PTR *PFN_vkResetCommandBuffer)(VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags); 2299 typedef void (VKAPI_PTR *PFN_vkCmdBindPipeline)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline); 2300 typedef void (VKAPI_PTR *PFN_vkCmdSetViewport)(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport* pViewports); 2301 typedef void (VKAPI_PTR *PFN_vkCmdSetScissor)(VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D* pScissors); 2302 typedef void (VKAPI_PTR *PFN_vkCmdSetLineWidth)(VkCommandBuffer commandBuffer, float lineWidth); 2303 typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBias)(VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor); 2304 typedef void (VKAPI_PTR *PFN_vkCmdSetBlendConstants)(VkCommandBuffer commandBuffer, const float blendConstants[4]); 2305 typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBounds)(VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds); 2306 typedef void (VKAPI_PTR *PFN_vkCmdSetStencilCompareMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask); 2307 typedef void (VKAPI_PTR *PFN_vkCmdSetStencilWriteMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t writeMask); 2308 typedef void (VKAPI_PTR *PFN_vkCmdSetStencilReference)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t reference); 2309 typedef void (VKAPI_PTR *PFN_vkCmdBindDescriptorSets)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t* pDynamicOffsets); 2310 typedef void (VKAPI_PTR *PFN_vkCmdBindIndexBuffer)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType); 2311 typedef void (VKAPI_PTR *PFN_vkCmdBindVertexBuffers)(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets); 2312 typedef void (VKAPI_PTR *PFN_vkCmdDraw)(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance); 2313 typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexed)(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance); 2314 typedef void (VKAPI_PTR *PFN_vkCmdDrawIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride); 2315 typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexedIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride); 2316 typedef void (VKAPI_PTR *PFN_vkCmdDispatch)(VkCommandBuffer commandBuffer, uint32_t x, uint32_t y, uint32_t z); 2317 typedef void (VKAPI_PTR *PFN_vkCmdDispatchIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset); 2318 typedef void (VKAPI_PTR *PFN_vkCmdCopyBuffer)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy* pRegions); 2319 typedef void (VKAPI_PTR *PFN_vkCmdCopyImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageCopy* pRegions); 2320 typedef void (VKAPI_PTR *PFN_vkCmdBlitImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkFilter filter); 2321 typedef void (VKAPI_PTR *PFN_vkCmdCopyBufferToImage)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions); 2322 typedef void (VKAPI_PTR *PFN_vkCmdCopyImageToBuffer)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions); 2323 typedef void (VKAPI_PTR *PFN_vkCmdUpdateBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const uint32_t* pData); 2324 typedef void (VKAPI_PTR *PFN_vkCmdFillBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data); 2325 typedef void (VKAPI_PTR *PFN_vkCmdClearColorImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); 2326 typedef void (VKAPI_PTR *PFN_vkCmdClearDepthStencilImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); 2327 typedef void (VKAPI_PTR *PFN_vkCmdClearAttachments)(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment* pAttachments, uint32_t rectCount, const VkClearRect* pRects); 2328 typedef void (VKAPI_PTR *PFN_vkCmdResolveImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageResolve* pRegions); 2329 typedef void (VKAPI_PTR *PFN_vkCmdSetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask); 2330 typedef void (VKAPI_PTR *PFN_vkCmdResetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask); 2331 typedef void (VKAPI_PTR *PFN_vkCmdWaitEvents)(VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent* pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers); 2332 typedef void (VKAPI_PTR *PFN_vkCmdPipelineBarrier)(VkCommandBuffer commandBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDependencyFlags dependencyFlags, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers); 2333 typedef void (VKAPI_PTR *PFN_vkCmdBeginQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags); 2334 typedef void (VKAPI_PTR *PFN_vkCmdEndQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query); 2335 typedef void (VKAPI_PTR *PFN_vkCmdResetQueryPool)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount); 2336 typedef void (VKAPI_PTR *PFN_vkCmdWriteTimestamp)(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, uint32_t query); 2337 typedef void (VKAPI_PTR *PFN_vkCmdCopyQueryPoolResults)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags); 2338 typedef void (VKAPI_PTR *PFN_vkCmdPushConstants)(VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void* pValues); 2339 typedef void (VKAPI_PTR *PFN_vkCmdBeginRenderPass)(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkSubpassContents contents); 2340 typedef void (VKAPI_PTR *PFN_vkCmdNextSubpass)(VkCommandBuffer commandBuffer, VkSubpassContents contents); 2341 typedef void (VKAPI_PTR *PFN_vkCmdEndRenderPass)(VkCommandBuffer commandBuffer); 2342 typedef void (VKAPI_PTR *PFN_vkCmdExecuteCommands)(VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers); 2343 2344 #ifndef VK_NO_PROTOTYPES 2345 VKAPI_ATTR VkResult VKAPI_CALL vkCreateInstance( 2346 const VkInstanceCreateInfo* pCreateInfo, 2347 const VkAllocationCallbacks* pAllocator, 2348 VkInstance* pInstance); 2349 2350 VKAPI_ATTR void VKAPI_CALL vkDestroyInstance( 2351 VkInstance instance, 2352 const VkAllocationCallbacks* pAllocator); 2353 2354 VKAPI_ATTR VkResult VKAPI_CALL vkEnumeratePhysicalDevices( 2355 VkInstance instance, 2356 uint32_t* pPhysicalDeviceCount, 2357 VkPhysicalDevice* pPhysicalDevices); 2358 2359 VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFeatures( 2360 VkPhysicalDevice physicalDevice, 2361 VkPhysicalDeviceFeatures* pFeatures); 2362 2363 VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFormatProperties( 2364 VkPhysicalDevice physicalDevice, 2365 VkFormat format, 2366 VkFormatProperties* pFormatProperties); 2367 2368 VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceImageFormatProperties( 2369 VkPhysicalDevice physicalDevice, 2370 VkFormat format, 2371 VkImageType type, 2372 VkImageTiling tiling, 2373 VkImageUsageFlags usage, 2374 VkImageCreateFlags flags, 2375 VkImageFormatProperties* pImageFormatProperties); 2376 2377 VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceProperties( 2378 VkPhysicalDevice physicalDevice, 2379 VkPhysicalDeviceProperties* pProperties); 2380 2381 VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceQueueFamilyProperties( 2382 VkPhysicalDevice physicalDevice, 2383 uint32_t* pQueueFamilyPropertyCount, 2384 VkQueueFamilyProperties* pQueueFamilyProperties); 2385 2386 VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties( 2387 VkPhysicalDevice physicalDevice, 2388 VkPhysicalDeviceMemoryProperties* pMemoryProperties); 2389 2390 VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetInstanceProcAddr( 2391 VkInstance instance, 2392 const char* pName); 2393 2394 VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetDeviceProcAddr( 2395 VkDevice device, 2396 const char* pName); 2397 2398 VKAPI_ATTR VkResult VKAPI_CALL vkCreateDevice( 2399 VkPhysicalDevice physicalDevice, 2400 const VkDeviceCreateInfo* pCreateInfo, 2401 const VkAllocationCallbacks* pAllocator, 2402 VkDevice* pDevice); 2403 2404 VKAPI_ATTR void VKAPI_CALL vkDestroyDevice( 2405 VkDevice device, 2406 const VkAllocationCallbacks* pAllocator); 2407 2408 VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceExtensionProperties( 2409 const char* pLayerName, 2410 uint32_t* pPropertyCount, 2411 VkExtensionProperties* pProperties); 2412 2413 VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceExtensionProperties( 2414 VkPhysicalDevice physicalDevice, 2415 const char* pLayerName, 2416 uint32_t* pPropertyCount, 2417 VkExtensionProperties* pProperties); 2418 2419 VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceLayerProperties( 2420 uint32_t* pPropertyCount, 2421 VkLayerProperties* pProperties); 2422 2423 VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceLayerProperties( 2424 VkPhysicalDevice physicalDevice, 2425 uint32_t* pPropertyCount, 2426 VkLayerProperties* pProperties); 2427 2428 VKAPI_ATTR void VKAPI_CALL vkGetDeviceQueue( 2429 VkDevice device, 2430 uint32_t queueFamilyIndex, 2431 uint32_t queueIndex, 2432 VkQueue* pQueue); 2433 2434 VKAPI_ATTR VkResult VKAPI_CALL vkQueueSubmit( 2435 VkQueue queue, 2436 uint32_t submitCount, 2437 const VkSubmitInfo* pSubmits, 2438 VkFence fence); 2439 2440 VKAPI_ATTR VkResult VKAPI_CALL vkQueueWaitIdle( 2441 VkQueue queue); 2442 2443 VKAPI_ATTR VkResult VKAPI_CALL vkDeviceWaitIdle( 2444 VkDevice device); 2445 2446 VKAPI_ATTR VkResult VKAPI_CALL vkAllocateMemory( 2447 VkDevice device, 2448 const VkMemoryAllocateInfo* pAllocateInfo, 2449 const VkAllocationCallbacks* pAllocator, 2450 VkDeviceMemory* pMemory); 2451 2452 VKAPI_ATTR void VKAPI_CALL vkFreeMemory( 2453 VkDevice device, 2454 VkDeviceMemory memory, 2455 const VkAllocationCallbacks* pAllocator); 2456 2457 VKAPI_ATTR VkResult VKAPI_CALL vkMapMemory( 2458 VkDevice device, 2459 VkDeviceMemory memory, 2460 VkDeviceSize offset, 2461 VkDeviceSize size, 2462 VkMemoryMapFlags flags, 2463 void** ppData); 2464 2465 VKAPI_ATTR void VKAPI_CALL vkUnmapMemory( 2466 VkDevice device, 2467 VkDeviceMemory memory); 2468 2469 VKAPI_ATTR VkResult VKAPI_CALL vkFlushMappedMemoryRanges( 2470 VkDevice device, 2471 uint32_t memoryRangeCount, 2472 const VkMappedMemoryRange* pMemoryRanges); 2473 2474 VKAPI_ATTR VkResult VKAPI_CALL vkInvalidateMappedMemoryRanges( 2475 VkDevice device, 2476 uint32_t memoryRangeCount, 2477 const VkMappedMemoryRange* pMemoryRanges); 2478 2479 VKAPI_ATTR void VKAPI_CALL vkGetDeviceMemoryCommitment( 2480 VkDevice device, 2481 VkDeviceMemory memory, 2482 VkDeviceSize* pCommittedMemoryInBytes); 2483 2484 VKAPI_ATTR VkResult VKAPI_CALL vkBindBufferMemory( 2485 VkDevice device, 2486 VkBuffer buffer, 2487 VkDeviceMemory memory, 2488 VkDeviceSize memoryOffset); 2489 2490 VKAPI_ATTR VkResult VKAPI_CALL vkBindImageMemory( 2491 VkDevice device, 2492 VkImage image, 2493 VkDeviceMemory memory, 2494 VkDeviceSize memoryOffset); 2495 2496 VKAPI_ATTR void VKAPI_CALL vkGetBufferMemoryRequirements( 2497 VkDevice device, 2498 VkBuffer buffer, 2499 VkMemoryRequirements* pMemoryRequirements); 2500 2501 VKAPI_ATTR void VKAPI_CALL vkGetImageMemoryRequirements( 2502 VkDevice device, 2503 VkImage image, 2504 VkMemoryRequirements* pMemoryRequirements); 2505 2506 VKAPI_ATTR void VKAPI_CALL vkGetImageSparseMemoryRequirements( 2507 VkDevice device, 2508 VkImage image, 2509 uint32_t* pSparseMemoryRequirementCount, 2510 VkSparseImageMemoryRequirements* pSparseMemoryRequirements); 2511 2512 VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties( 2513 VkPhysicalDevice physicalDevice, 2514 VkFormat format, 2515 VkImageType type, 2516 VkSampleCountFlagBits samples, 2517 VkImageUsageFlags usage, 2518 VkImageTiling tiling, 2519 uint32_t* pPropertyCount, 2520 VkSparseImageFormatProperties* pProperties); 2521 2522 VKAPI_ATTR VkResult VKAPI_CALL vkQueueBindSparse( 2523 VkQueue queue, 2524 uint32_t bindInfoCount, 2525 const VkBindSparseInfo* pBindInfo, 2526 VkFence fence); 2527 2528 VKAPI_ATTR VkResult VKAPI_CALL vkCreateFence( 2529 VkDevice device, 2530 const VkFenceCreateInfo* pCreateInfo, 2531 const VkAllocationCallbacks* pAllocator, 2532 VkFence* pFence); 2533 2534 VKAPI_ATTR void VKAPI_CALL vkDestroyFence( 2535 VkDevice device, 2536 VkFence fence, 2537 const VkAllocationCallbacks* pAllocator); 2538 2539 VKAPI_ATTR VkResult VKAPI_CALL vkResetFences( 2540 VkDevice device, 2541 uint32_t fenceCount, 2542 const VkFence* pFences); 2543 2544 VKAPI_ATTR VkResult VKAPI_CALL vkGetFenceStatus( 2545 VkDevice device, 2546 VkFence fence); 2547 2548 VKAPI_ATTR VkResult VKAPI_CALL vkWaitForFences( 2549 VkDevice device, 2550 uint32_t fenceCount, 2551 const VkFence* pFences, 2552 VkBool32 waitAll, 2553 uint64_t timeout); 2554 2555 VKAPI_ATTR VkResult VKAPI_CALL vkCreateSemaphore( 2556 VkDevice device, 2557 const VkSemaphoreCreateInfo* pCreateInfo, 2558 const VkAllocationCallbacks* pAllocator, 2559 VkSemaphore* pSemaphore); 2560 2561 VKAPI_ATTR void VKAPI_CALL vkDestroySemaphore( 2562 VkDevice device, 2563 VkSemaphore semaphore, 2564 const VkAllocationCallbacks* pAllocator); 2565 2566 VKAPI_ATTR VkResult VKAPI_CALL vkCreateEvent( 2567 VkDevice device, 2568 const VkEventCreateInfo* pCreateInfo, 2569 const VkAllocationCallbacks* pAllocator, 2570 VkEvent* pEvent); 2571 2572 VKAPI_ATTR void VKAPI_CALL vkDestroyEvent( 2573 VkDevice device, 2574 VkEvent event, 2575 const VkAllocationCallbacks* pAllocator); 2576 2577 VKAPI_ATTR VkResult VKAPI_CALL vkGetEventStatus( 2578 VkDevice device, 2579 VkEvent event); 2580 2581 VKAPI_ATTR VkResult VKAPI_CALL vkSetEvent( 2582 VkDevice device, 2583 VkEvent event); 2584 2585 VKAPI_ATTR VkResult VKAPI_CALL vkResetEvent( 2586 VkDevice device, 2587 VkEvent event); 2588 2589 VKAPI_ATTR VkResult VKAPI_CALL vkCreateQueryPool( 2590 VkDevice device, 2591 const VkQueryPoolCreateInfo* pCreateInfo, 2592 const VkAllocationCallbacks* pAllocator, 2593 VkQueryPool* pQueryPool); 2594 2595 VKAPI_ATTR void VKAPI_CALL vkDestroyQueryPool( 2596 VkDevice device, 2597 VkQueryPool queryPool, 2598 const VkAllocationCallbacks* pAllocator); 2599 2600 VKAPI_ATTR VkResult VKAPI_CALL vkGetQueryPoolResults( 2601 VkDevice device, 2602 VkQueryPool queryPool, 2603 uint32_t firstQuery, 2604 uint32_t queryCount, 2605 size_t dataSize, 2606 void* pData, 2607 VkDeviceSize stride, 2608 VkQueryResultFlags flags); 2609 2610 VKAPI_ATTR VkResult VKAPI_CALL vkCreateBuffer( 2611 VkDevice device, 2612 const VkBufferCreateInfo* pCreateInfo, 2613 const VkAllocationCallbacks* pAllocator, 2614 VkBuffer* pBuffer); 2615 2616 VKAPI_ATTR void VKAPI_CALL vkDestroyBuffer( 2617 VkDevice device, 2618 VkBuffer buffer, 2619 const VkAllocationCallbacks* pAllocator); 2620 2621 VKAPI_ATTR VkResult VKAPI_CALL vkCreateBufferView( 2622 VkDevice device, 2623 const VkBufferViewCreateInfo* pCreateInfo, 2624 const VkAllocationCallbacks* pAllocator, 2625 VkBufferView* pView); 2626 2627 VKAPI_ATTR void VKAPI_CALL vkDestroyBufferView( 2628 VkDevice device, 2629 VkBufferView bufferView, 2630 const VkAllocationCallbacks* pAllocator); 2631 2632 VKAPI_ATTR VkResult VKAPI_CALL vkCreateImage( 2633 VkDevice device, 2634 const VkImageCreateInfo* pCreateInfo, 2635 const VkAllocationCallbacks* pAllocator, 2636 VkImage* pImage); 2637 2638 VKAPI_ATTR void VKAPI_CALL vkDestroyImage( 2639 VkDevice device, 2640 VkImage image, 2641 const VkAllocationCallbacks* pAllocator); 2642 2643 VKAPI_ATTR void VKAPI_CALL vkGetImageSubresourceLayout( 2644 VkDevice device, 2645 VkImage image, 2646 const VkImageSubresource* pSubresource, 2647 VkSubresourceLayout* pLayout); 2648 2649 VKAPI_ATTR VkResult VKAPI_CALL vkCreateImageView( 2650 VkDevice device, 2651 const VkImageViewCreateInfo* pCreateInfo, 2652 const VkAllocationCallbacks* pAllocator, 2653 VkImageView* pView); 2654 2655 VKAPI_ATTR void VKAPI_CALL vkDestroyImageView( 2656 VkDevice device, 2657 VkImageView imageView, 2658 const VkAllocationCallbacks* pAllocator); 2659 2660 VKAPI_ATTR VkResult VKAPI_CALL vkCreateShaderModule( 2661 VkDevice device, 2662 const VkShaderModuleCreateInfo* pCreateInfo, 2663 const VkAllocationCallbacks* pAllocator, 2664 VkShaderModule* pShaderModule); 2665 2666 VKAPI_ATTR void VKAPI_CALL vkDestroyShaderModule( 2667 VkDevice device, 2668 VkShaderModule shaderModule, 2669 const VkAllocationCallbacks* pAllocator); 2670 2671 VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineCache( 2672 VkDevice device, 2673 const VkPipelineCacheCreateInfo* pCreateInfo, 2674 const VkAllocationCallbacks* pAllocator, 2675 VkPipelineCache* pPipelineCache); 2676 2677 VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineCache( 2678 VkDevice device, 2679 VkPipelineCache pipelineCache, 2680 const VkAllocationCallbacks* pAllocator); 2681 2682 VKAPI_ATTR VkResult VKAPI_CALL vkGetPipelineCacheData( 2683 VkDevice device, 2684 VkPipelineCache pipelineCache, 2685 size_t* pDataSize, 2686 void* pData); 2687 2688 VKAPI_ATTR VkResult VKAPI_CALL vkMergePipelineCaches( 2689 VkDevice device, 2690 VkPipelineCache dstCache, 2691 uint32_t srcCacheCount, 2692 const VkPipelineCache* pSrcCaches); 2693 2694 VKAPI_ATTR VkResult VKAPI_CALL vkCreateGraphicsPipelines( 2695 VkDevice device, 2696 VkPipelineCache pipelineCache, 2697 uint32_t createInfoCount, 2698 const VkGraphicsPipelineCreateInfo* pCreateInfos, 2699 const VkAllocationCallbacks* pAllocator, 2700 VkPipeline* pPipelines); 2701 2702 VKAPI_ATTR VkResult VKAPI_CALL vkCreateComputePipelines( 2703 VkDevice device, 2704 VkPipelineCache pipelineCache, 2705 uint32_t createInfoCount, 2706 const VkComputePipelineCreateInfo* pCreateInfos, 2707 const VkAllocationCallbacks* pAllocator, 2708 VkPipeline* pPipelines); 2709 2710 VKAPI_ATTR void VKAPI_CALL vkDestroyPipeline( 2711 VkDevice device, 2712 VkPipeline pipeline, 2713 const VkAllocationCallbacks* pAllocator); 2714 2715 VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineLayout( 2716 VkDevice device, 2717 const VkPipelineLayoutCreateInfo* pCreateInfo, 2718 const VkAllocationCallbacks* pAllocator, 2719 VkPipelineLayout* pPipelineLayout); 2720 2721 VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineLayout( 2722 VkDevice device, 2723 VkPipelineLayout pipelineLayout, 2724 const VkAllocationCallbacks* pAllocator); 2725 2726 VKAPI_ATTR VkResult VKAPI_CALL vkCreateSampler( 2727 VkDevice device, 2728 const VkSamplerCreateInfo* pCreateInfo, 2729 const VkAllocationCallbacks* pAllocator, 2730 VkSampler* pSampler); 2731 2732 VKAPI_ATTR void VKAPI_CALL vkDestroySampler( 2733 VkDevice device, 2734 VkSampler sampler, 2735 const VkAllocationCallbacks* pAllocator); 2736 2737 VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorSetLayout( 2738 VkDevice device, 2739 const VkDescriptorSetLayoutCreateInfo* pCreateInfo, 2740 const VkAllocationCallbacks* pAllocator, 2741 VkDescriptorSetLayout* pSetLayout); 2742 2743 VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorSetLayout( 2744 VkDevice device, 2745 VkDescriptorSetLayout descriptorSetLayout, 2746 const VkAllocationCallbacks* pAllocator); 2747 2748 VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorPool( 2749 VkDevice device, 2750 const VkDescriptorPoolCreateInfo* pCreateInfo, 2751 const VkAllocationCallbacks* pAllocator, 2752 VkDescriptorPool* pDescriptorPool); 2753 2754 VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorPool( 2755 VkDevice device, 2756 VkDescriptorPool descriptorPool, 2757 const VkAllocationCallbacks* pAllocator); 2758 2759 VKAPI_ATTR VkResult VKAPI_CALL vkResetDescriptorPool( 2760 VkDevice device, 2761 VkDescriptorPool descriptorPool, 2762 VkDescriptorPoolResetFlags flags); 2763 2764 VKAPI_ATTR VkResult VKAPI_CALL vkAllocateDescriptorSets( 2765 VkDevice device, 2766 const VkDescriptorSetAllocateInfo* pAllocateInfo, 2767 VkDescriptorSet* pDescriptorSets); 2768 2769 VKAPI_ATTR VkResult VKAPI_CALL vkFreeDescriptorSets( 2770 VkDevice device, 2771 VkDescriptorPool descriptorPool, 2772 uint32_t descriptorSetCount, 2773 const VkDescriptorSet* pDescriptorSets); 2774 2775 VKAPI_ATTR void VKAPI_CALL vkUpdateDescriptorSets( 2776 VkDevice device, 2777 uint32_t descriptorWriteCount, 2778 const VkWriteDescriptorSet* pDescriptorWrites, 2779 uint32_t descriptorCopyCount, 2780 const VkCopyDescriptorSet* pDescriptorCopies); 2781 2782 VKAPI_ATTR VkResult VKAPI_CALL vkCreateFramebuffer( 2783 VkDevice device, 2784 const VkFramebufferCreateInfo* pCreateInfo, 2785 const VkAllocationCallbacks* pAllocator, 2786 VkFramebuffer* pFramebuffer); 2787 2788 VKAPI_ATTR void VKAPI_CALL vkDestroyFramebuffer( 2789 VkDevice device, 2790 VkFramebuffer framebuffer, 2791 const VkAllocationCallbacks* pAllocator); 2792 2793 VKAPI_ATTR VkResult VKAPI_CALL vkCreateRenderPass( 2794 VkDevice device, 2795 const VkRenderPassCreateInfo* pCreateInfo, 2796 const VkAllocationCallbacks* pAllocator, 2797 VkRenderPass* pRenderPass); 2798 2799 VKAPI_ATTR void VKAPI_CALL vkDestroyRenderPass( 2800 VkDevice device, 2801 VkRenderPass renderPass, 2802 const VkAllocationCallbacks* pAllocator); 2803 2804 VKAPI_ATTR void VKAPI_CALL vkGetRenderAreaGranularity( 2805 VkDevice device, 2806 VkRenderPass renderPass, 2807 VkExtent2D* pGranularity); 2808 2809 VKAPI_ATTR VkResult VKAPI_CALL vkCreateCommandPool( 2810 VkDevice device, 2811 const VkCommandPoolCreateInfo* pCreateInfo, 2812 const VkAllocationCallbacks* pAllocator, 2813 VkCommandPool* pCommandPool); 2814 2815 VKAPI_ATTR void VKAPI_CALL vkDestroyCommandPool( 2816 VkDevice device, 2817 VkCommandPool commandPool, 2818 const VkAllocationCallbacks* pAllocator); 2819 2820 VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandPool( 2821 VkDevice device, 2822 VkCommandPool commandPool, 2823 VkCommandPoolResetFlags flags); 2824 2825 VKAPI_ATTR VkResult VKAPI_CALL vkAllocateCommandBuffers( 2826 VkDevice device, 2827 const VkCommandBufferAllocateInfo* pAllocateInfo, 2828 VkCommandBuffer* pCommandBuffers); 2829 2830 VKAPI_ATTR void VKAPI_CALL vkFreeCommandBuffers( 2831 VkDevice device, 2832 VkCommandPool commandPool, 2833 uint32_t commandBufferCount, 2834 const VkCommandBuffer* pCommandBuffers); 2835 2836 VKAPI_ATTR VkResult VKAPI_CALL vkBeginCommandBuffer( 2837 VkCommandBuffer commandBuffer, 2838 const VkCommandBufferBeginInfo* pBeginInfo); 2839 2840 VKAPI_ATTR VkResult VKAPI_CALL vkEndCommandBuffer( 2841 VkCommandBuffer commandBuffer); 2842 2843 VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandBuffer( 2844 VkCommandBuffer commandBuffer, 2845 VkCommandBufferResetFlags flags); 2846 2847 VKAPI_ATTR void VKAPI_CALL vkCmdBindPipeline( 2848 VkCommandBuffer commandBuffer, 2849 VkPipelineBindPoint pipelineBindPoint, 2850 VkPipeline pipeline); 2851 2852 VKAPI_ATTR void VKAPI_CALL vkCmdSetViewport( 2853 VkCommandBuffer commandBuffer, 2854 uint32_t firstViewport, 2855 uint32_t viewportCount, 2856 const VkViewport* pViewports); 2857 2858 VKAPI_ATTR void VKAPI_CALL vkCmdSetScissor( 2859 VkCommandBuffer commandBuffer, 2860 uint32_t firstScissor, 2861 uint32_t scissorCount, 2862 const VkRect2D* pScissors); 2863 2864 VKAPI_ATTR void VKAPI_CALL vkCmdSetLineWidth( 2865 VkCommandBuffer commandBuffer, 2866 float lineWidth); 2867 2868 VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBias( 2869 VkCommandBuffer commandBuffer, 2870 float depthBiasConstantFactor, 2871 float depthBiasClamp, 2872 float depthBiasSlopeFactor); 2873 2874 VKAPI_ATTR void VKAPI_CALL vkCmdSetBlendConstants( 2875 VkCommandBuffer commandBuffer, 2876 const float blendConstants[4]); 2877 2878 VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBounds( 2879 VkCommandBuffer commandBuffer, 2880 float minDepthBounds, 2881 float maxDepthBounds); 2882 2883 VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilCompareMask( 2884 VkCommandBuffer commandBuffer, 2885 VkStencilFaceFlags faceMask, 2886 uint32_t compareMask); 2887 2888 VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilWriteMask( 2889 VkCommandBuffer commandBuffer, 2890 VkStencilFaceFlags faceMask, 2891 uint32_t writeMask); 2892 2893 VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilReference( 2894 VkCommandBuffer commandBuffer, 2895 VkStencilFaceFlags faceMask, 2896 uint32_t reference); 2897 2898 VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorSets( 2899 VkCommandBuffer commandBuffer, 2900 VkPipelineBindPoint pipelineBindPoint, 2901 VkPipelineLayout layout, 2902 uint32_t firstSet, 2903 uint32_t descriptorSetCount, 2904 const VkDescriptorSet* pDescriptorSets, 2905 uint32_t dynamicOffsetCount, 2906 const uint32_t* pDynamicOffsets); 2907 2908 VKAPI_ATTR void VKAPI_CALL vkCmdBindIndexBuffer( 2909 VkCommandBuffer commandBuffer, 2910 VkBuffer buffer, 2911 VkDeviceSize offset, 2912 VkIndexType indexType); 2913 2914 VKAPI_ATTR void VKAPI_CALL vkCmdBindVertexBuffers( 2915 VkCommandBuffer commandBuffer, 2916 uint32_t firstBinding, 2917 uint32_t bindingCount, 2918 const VkBuffer* pBuffers, 2919 const VkDeviceSize* pOffsets); 2920 2921 VKAPI_ATTR void VKAPI_CALL vkCmdDraw( 2922 VkCommandBuffer commandBuffer, 2923 uint32_t vertexCount, 2924 uint32_t instanceCount, 2925 uint32_t firstVertex, 2926 uint32_t firstInstance); 2927 2928 VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexed( 2929 VkCommandBuffer commandBuffer, 2930 uint32_t indexCount, 2931 uint32_t instanceCount, 2932 uint32_t firstIndex, 2933 int32_t vertexOffset, 2934 uint32_t firstInstance); 2935 2936 VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndirect( 2937 VkCommandBuffer commandBuffer, 2938 VkBuffer buffer, 2939 VkDeviceSize offset, 2940 uint32_t drawCount, 2941 uint32_t stride); 2942 2943 VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexedIndirect( 2944 VkCommandBuffer commandBuffer, 2945 VkBuffer buffer, 2946 VkDeviceSize offset, 2947 uint32_t drawCount, 2948 uint32_t stride); 2949 2950 VKAPI_ATTR void VKAPI_CALL vkCmdDispatch( 2951 VkCommandBuffer commandBuffer, 2952 uint32_t x, 2953 uint32_t y, 2954 uint32_t z); 2955 2956 VKAPI_ATTR void VKAPI_CALL vkCmdDispatchIndirect( 2957 VkCommandBuffer commandBuffer, 2958 VkBuffer buffer, 2959 VkDeviceSize offset); 2960 2961 VKAPI_ATTR void VKAPI_CALL vkCmdCopyBuffer( 2962 VkCommandBuffer commandBuffer, 2963 VkBuffer srcBuffer, 2964 VkBuffer dstBuffer, 2965 uint32_t regionCount, 2966 const VkBufferCopy* pRegions); 2967 2968 VKAPI_ATTR void VKAPI_CALL vkCmdCopyImage( 2969 VkCommandBuffer commandBuffer, 2970 VkImage srcImage, 2971 VkImageLayout srcImageLayout, 2972 VkImage dstImage, 2973 VkImageLayout dstImageLayout, 2974 uint32_t regionCount, 2975 const VkImageCopy* pRegions); 2976 2977 VKAPI_ATTR void VKAPI_CALL vkCmdBlitImage( 2978 VkCommandBuffer commandBuffer, 2979 VkImage srcImage, 2980 VkImageLayout srcImageLayout, 2981 VkImage dstImage, 2982 VkImageLayout dstImageLayout, 2983 uint32_t regionCount, 2984 const VkImageBlit* pRegions, 2985 VkFilter filter); 2986 2987 VKAPI_ATTR void VKAPI_CALL vkCmdCopyBufferToImage( 2988 VkCommandBuffer commandBuffer, 2989 VkBuffer srcBuffer, 2990 VkImage dstImage, 2991 VkImageLayout dstImageLayout, 2992 uint32_t regionCount, 2993 const VkBufferImageCopy* pRegions); 2994 2995 VKAPI_ATTR void VKAPI_CALL vkCmdCopyImageToBuffer( 2996 VkCommandBuffer commandBuffer, 2997 VkImage srcImage, 2998 VkImageLayout srcImageLayout, 2999 VkBuffer dstBuffer, 3000 uint32_t regionCount, 3001 const VkBufferImageCopy* pRegions); 3002 3003 VKAPI_ATTR void VKAPI_CALL vkCmdUpdateBuffer( 3004 VkCommandBuffer commandBuffer, 3005 VkBuffer dstBuffer, 3006 VkDeviceSize dstOffset, 3007 VkDeviceSize dataSize, 3008 const uint32_t* pData); 3009 3010 VKAPI_ATTR void VKAPI_CALL vkCmdFillBuffer( 3011 VkCommandBuffer commandBuffer, 3012 VkBuffer dstBuffer, 3013 VkDeviceSize dstOffset, 3014 VkDeviceSize size, 3015 uint32_t data); 3016 3017 VKAPI_ATTR void VKAPI_CALL vkCmdClearColorImage( 3018 VkCommandBuffer commandBuffer, 3019 VkImage image, 3020 VkImageLayout imageLayout, 3021 const VkClearColorValue* pColor, 3022 uint32_t rangeCount, 3023 const VkImageSubresourceRange* pRanges); 3024 3025 VKAPI_ATTR void VKAPI_CALL vkCmdClearDepthStencilImage( 3026 VkCommandBuffer commandBuffer, 3027 VkImage image, 3028 VkImageLayout imageLayout, 3029 const VkClearDepthStencilValue* pDepthStencil, 3030 uint32_t rangeCount, 3031 const VkImageSubresourceRange* pRanges); 3032 3033 VKAPI_ATTR void VKAPI_CALL vkCmdClearAttachments( 3034 VkCommandBuffer commandBuffer, 3035 uint32_t attachmentCount, 3036 const VkClearAttachment* pAttachments, 3037 uint32_t rectCount, 3038 const VkClearRect* pRects); 3039 3040 VKAPI_ATTR void VKAPI_CALL vkCmdResolveImage( 3041 VkCommandBuffer commandBuffer, 3042 VkImage srcImage, 3043 VkImageLayout srcImageLayout, 3044 VkImage dstImage, 3045 VkImageLayout dstImageLayout, 3046 uint32_t regionCount, 3047 const VkImageResolve* pRegions); 3048 3049 VKAPI_ATTR void VKAPI_CALL vkCmdSetEvent( 3050 VkCommandBuffer commandBuffer, 3051 VkEvent event, 3052 VkPipelineStageFlags stageMask); 3053 3054 VKAPI_ATTR void VKAPI_CALL vkCmdResetEvent( 3055 VkCommandBuffer commandBuffer, 3056 VkEvent event, 3057 VkPipelineStageFlags stageMask); 3058 3059 VKAPI_ATTR void VKAPI_CALL vkCmdWaitEvents( 3060 VkCommandBuffer commandBuffer, 3061 uint32_t eventCount, 3062 const VkEvent* pEvents, 3063 VkPipelineStageFlags srcStageMask, 3064 VkPipelineStageFlags dstStageMask, 3065 uint32_t memoryBarrierCount, 3066 const VkMemoryBarrier* pMemoryBarriers, 3067 uint32_t bufferMemoryBarrierCount, 3068 const VkBufferMemoryBarrier* pBufferMemoryBarriers, 3069 uint32_t imageMemoryBarrierCount, 3070 const VkImageMemoryBarrier* pImageMemoryBarriers); 3071 3072 VKAPI_ATTR void VKAPI_CALL vkCmdPipelineBarrier( 3073 VkCommandBuffer commandBuffer, 3074 VkPipelineStageFlags srcStageMask, 3075 VkPipelineStageFlags dstStageMask, 3076 VkDependencyFlags dependencyFlags, 3077 uint32_t memoryBarrierCount, 3078 const VkMemoryBarrier* pMemoryBarriers, 3079 uint32_t bufferMemoryBarrierCount, 3080 const VkBufferMemoryBarrier* pBufferMemoryBarriers, 3081 uint32_t imageMemoryBarrierCount, 3082 const VkImageMemoryBarrier* pImageMemoryBarriers); 3083 3084 VKAPI_ATTR void VKAPI_CALL vkCmdBeginQuery( 3085 VkCommandBuffer commandBuffer, 3086 VkQueryPool queryPool, 3087 uint32_t query, 3088 VkQueryControlFlags flags); 3089 3090 VKAPI_ATTR void VKAPI_CALL vkCmdEndQuery( 3091 VkCommandBuffer commandBuffer, 3092 VkQueryPool queryPool, 3093 uint32_t query); 3094 3095 VKAPI_ATTR void VKAPI_CALL vkCmdResetQueryPool( 3096 VkCommandBuffer commandBuffer, 3097 VkQueryPool queryPool, 3098 uint32_t firstQuery, 3099 uint32_t queryCount); 3100 3101 VKAPI_ATTR void VKAPI_CALL vkCmdWriteTimestamp( 3102 VkCommandBuffer commandBuffer, 3103 VkPipelineStageFlagBits pipelineStage, 3104 VkQueryPool queryPool, 3105 uint32_t query); 3106 3107 VKAPI_ATTR void VKAPI_CALL vkCmdCopyQueryPoolResults( 3108 VkCommandBuffer commandBuffer, 3109 VkQueryPool queryPool, 3110 uint32_t firstQuery, 3111 uint32_t queryCount, 3112 VkBuffer dstBuffer, 3113 VkDeviceSize dstOffset, 3114 VkDeviceSize stride, 3115 VkQueryResultFlags flags); 3116 3117 VKAPI_ATTR void VKAPI_CALL vkCmdPushConstants( 3118 VkCommandBuffer commandBuffer, 3119 VkPipelineLayout layout, 3120 VkShaderStageFlags stageFlags, 3121 uint32_t offset, 3122 uint32_t size, 3123 const void* pValues); 3124 3125 VKAPI_ATTR void VKAPI_CALL vkCmdBeginRenderPass( 3126 VkCommandBuffer commandBuffer, 3127 const VkRenderPassBeginInfo* pRenderPassBegin, 3128 VkSubpassContents contents); 3129 3130 VKAPI_ATTR void VKAPI_CALL vkCmdNextSubpass( 3131 VkCommandBuffer commandBuffer, 3132 VkSubpassContents contents); 3133 3134 VKAPI_ATTR void VKAPI_CALL vkCmdEndRenderPass( 3135 VkCommandBuffer commandBuffer); 3136 3137 VKAPI_ATTR void VKAPI_CALL vkCmdExecuteCommands( 3138 VkCommandBuffer commandBuffer, 3139 uint32_t commandBufferCount, 3140 const VkCommandBuffer* pCommandBuffers); 3141 #endif 3142 3143 #define VK_KHR_surface 1 3144 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR) 3145 3146 #define VK_KHR_SURFACE_SPEC_VERSION 25 3147 #define VK_KHR_SURFACE_EXTENSION_NAME "VK_KHR_surface" 3148 3149 3150 typedef enum VkColorSpaceKHR { 3151 VK_COLORSPACE_SRGB_NONLINEAR_KHR = 0, 3152 VK_COLORSPACE_BEGIN_RANGE = VK_COLORSPACE_SRGB_NONLINEAR_KHR, 3153 VK_COLORSPACE_END_RANGE = VK_COLORSPACE_SRGB_NONLINEAR_KHR, 3154 VK_COLORSPACE_RANGE_SIZE = (VK_COLORSPACE_SRGB_NONLINEAR_KHR - VK_COLORSPACE_SRGB_NONLINEAR_KHR + 1), 3155 VK_COLORSPACE_MAX_ENUM = 0x7FFFFFFF 3156 } VkColorSpaceKHR; 3157 3158 typedef enum VkPresentModeKHR { 3159 VK_PRESENT_MODE_IMMEDIATE_KHR = 0, 3160 VK_PRESENT_MODE_MAILBOX_KHR = 1, 3161 VK_PRESENT_MODE_FIFO_KHR = 2, 3162 VK_PRESENT_MODE_FIFO_RELAXED_KHR = 3, 3163 VK_PRESENT_MODE_BEGIN_RANGE = VK_PRESENT_MODE_IMMEDIATE_KHR, 3164 VK_PRESENT_MODE_END_RANGE = VK_PRESENT_MODE_FIFO_RELAXED_KHR, 3165 VK_PRESENT_MODE_RANGE_SIZE = (VK_PRESENT_MODE_FIFO_RELAXED_KHR - VK_PRESENT_MODE_IMMEDIATE_KHR + 1), 3166 VK_PRESENT_MODE_MAX_ENUM = 0x7FFFFFFF 3167 } VkPresentModeKHR; 3168 3169 3170 typedef enum VkSurfaceTransformFlagBitsKHR { 3171 VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR = 0x00000001, 3172 VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR = 0x00000002, 3173 VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR = 0x00000004, 3174 VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR = 0x00000008, 3175 VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR = 0x00000010, 3176 VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR = 0x00000020, 3177 VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR = 0x00000040, 3178 VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR = 0x00000080, 3179 VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR = 0x00000100, 3180 } VkSurfaceTransformFlagBitsKHR; 3181 typedef VkFlags VkSurfaceTransformFlagsKHR; 3182 3183 typedef enum VkCompositeAlphaFlagBitsKHR { 3184 VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = 0x00000001, 3185 VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = 0x00000002, 3186 VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = 0x00000004, 3187 VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = 0x00000008, 3188 } VkCompositeAlphaFlagBitsKHR; 3189 typedef VkFlags VkCompositeAlphaFlagsKHR; 3190 3191 typedef struct VkSurfaceCapabilitiesKHR { 3192 uint32_t minImageCount; 3193 uint32_t maxImageCount; 3194 VkExtent2D currentExtent; 3195 VkExtent2D minImageExtent; 3196 VkExtent2D maxImageExtent; 3197 uint32_t maxImageArrayLayers; 3198 VkSurfaceTransformFlagsKHR supportedTransforms; 3199 VkSurfaceTransformFlagBitsKHR currentTransform; 3200 VkCompositeAlphaFlagsKHR supportedCompositeAlpha; 3201 VkImageUsageFlags supportedUsageFlags; 3202 } VkSurfaceCapabilitiesKHR; 3203 3204 typedef struct VkSurfaceFormatKHR { 3205 VkFormat format; 3206 VkColorSpaceKHR colorSpace; 3207 } VkSurfaceFormatKHR; 3208 3209 3210 typedef void (VKAPI_PTR *PFN_vkDestroySurfaceKHR)(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* pAllocator); 3211 typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported); 3212 typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities); 3213 typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceFormatsKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats); 3214 typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfacePresentModesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes); 3215 3216 #ifndef VK_NO_PROTOTYPES 3217 VKAPI_ATTR void VKAPI_CALL vkDestroySurfaceKHR( 3218 VkInstance instance, 3219 VkSurfaceKHR surface, 3220 const VkAllocationCallbacks* pAllocator); 3221 3222 VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceSupportKHR( 3223 VkPhysicalDevice physicalDevice, 3224 uint32_t queueFamilyIndex, 3225 VkSurfaceKHR surface, 3226 VkBool32* pSupported); 3227 3228 VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilitiesKHR( 3229 VkPhysicalDevice physicalDevice, 3230 VkSurfaceKHR surface, 3231 VkSurfaceCapabilitiesKHR* pSurfaceCapabilities); 3232 3233 VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceFormatsKHR( 3234 VkPhysicalDevice physicalDevice, 3235 VkSurfaceKHR surface, 3236 uint32_t* pSurfaceFormatCount, 3237 VkSurfaceFormatKHR* pSurfaceFormats); 3238 3239 VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresentModesKHR( 3240 VkPhysicalDevice physicalDevice, 3241 VkSurfaceKHR surface, 3242 uint32_t* pPresentModeCount, 3243 VkPresentModeKHR* pPresentModes); 3244 #endif 3245 3246 #define VK_KHR_swapchain 1 3247 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSwapchainKHR) 3248 3249 #define VK_KHR_SWAPCHAIN_SPEC_VERSION 67 3250 #define VK_KHR_SWAPCHAIN_EXTENSION_NAME "VK_KHR_swapchain" 3251 3252 typedef VkFlags VkSwapchainCreateFlagsKHR; 3253 3254 typedef struct VkSwapchainCreateInfoKHR { 3255 VkStructureType sType; 3256 const void* pNext; 3257 VkSwapchainCreateFlagsKHR flags; 3258 VkSurfaceKHR surface; 3259 uint32_t minImageCount; 3260 VkFormat imageFormat; 3261 VkColorSpaceKHR imageColorSpace; 3262 VkExtent2D imageExtent; 3263 uint32_t imageArrayLayers; 3264 VkImageUsageFlags imageUsage; 3265 VkSharingMode imageSharingMode; 3266 uint32_t queueFamilyIndexCount; 3267 const uint32_t* pQueueFamilyIndices; 3268 VkSurfaceTransformFlagBitsKHR preTransform; 3269 VkCompositeAlphaFlagBitsKHR compositeAlpha; 3270 VkPresentModeKHR presentMode; 3271 VkBool32 clipped; 3272 VkSwapchainKHR oldSwapchain; 3273 } VkSwapchainCreateInfoKHR; 3274 3275 typedef struct VkPresentInfoKHR { 3276 VkStructureType sType; 3277 const void* pNext; 3278 uint32_t waitSemaphoreCount; 3279 const VkSemaphore* pWaitSemaphores; 3280 uint32_t swapchainCount; 3281 const VkSwapchainKHR* pSwapchains; 3282 const uint32_t* pImageIndices; 3283 VkResult* pResults; 3284 } VkPresentInfoKHR; 3285 3286 3287 typedef VkResult (VKAPI_PTR *PFN_vkCreateSwapchainKHR)(VkDevice device, const VkSwapchainCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchain); 3288 typedef void (VKAPI_PTR *PFN_vkDestroySwapchainKHR)(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator); 3289 typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainImagesKHR)(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pSwapchainImageCount, VkImage* pSwapchainImages); 3290 typedef VkResult (VKAPI_PTR *PFN_vkAcquireNextImageKHR)(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex); 3291 typedef VkResult (VKAPI_PTR *PFN_vkQueuePresentKHR)(VkQueue queue, const VkPresentInfoKHR* pPresentInfo); 3292 3293 #ifndef VK_NO_PROTOTYPES 3294 VKAPI_ATTR VkResult VKAPI_CALL vkCreateSwapchainKHR( 3295 VkDevice device, 3296 const VkSwapchainCreateInfoKHR* pCreateInfo, 3297 const VkAllocationCallbacks* pAllocator, 3298 VkSwapchainKHR* pSwapchain); 3299 3300 VKAPI_ATTR void VKAPI_CALL vkDestroySwapchainKHR( 3301 VkDevice device, 3302 VkSwapchainKHR swapchain, 3303 const VkAllocationCallbacks* pAllocator); 3304 3305 VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainImagesKHR( 3306 VkDevice device, 3307 VkSwapchainKHR swapchain, 3308 uint32_t* pSwapchainImageCount, 3309 VkImage* pSwapchainImages); 3310 3311 VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImageKHR( 3312 VkDevice device, 3313 VkSwapchainKHR swapchain, 3314 uint64_t timeout, 3315 VkSemaphore semaphore, 3316 VkFence fence, 3317 uint32_t* pImageIndex); 3318 3319 VKAPI_ATTR VkResult VKAPI_CALL vkQueuePresentKHR( 3320 VkQueue queue, 3321 const VkPresentInfoKHR* pPresentInfo); 3322 #endif 3323 3324 #define VK_KHR_display 1 3325 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayKHR) 3326 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayModeKHR) 3327 3328 #define VK_KHR_DISPLAY_SPEC_VERSION 21 3329 #define VK_KHR_DISPLAY_EXTENSION_NAME "VK_KHR_display" 3330 3331 3332 typedef enum VkDisplayPlaneAlphaFlagBitsKHR { 3333 VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR = 0x00000001, 3334 VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR = 0x00000002, 3335 VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR = 0x00000004, 3336 VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR = 0x00000008, 3337 } VkDisplayPlaneAlphaFlagBitsKHR; 3338 typedef VkFlags VkDisplayPlaneAlphaFlagsKHR; 3339 typedef VkFlags VkDisplayModeCreateFlagsKHR; 3340 typedef VkFlags VkDisplaySurfaceCreateFlagsKHR; 3341 3342 typedef struct VkDisplayPropertiesKHR { 3343 VkDisplayKHR display; 3344 const char* displayName; 3345 VkExtent2D physicalDimensions; 3346 VkExtent2D physicalResolution; 3347 VkSurfaceTransformFlagsKHR supportedTransforms; 3348 VkBool32 planeReorderPossible; 3349 VkBool32 persistentContent; 3350 } VkDisplayPropertiesKHR; 3351 3352 typedef struct VkDisplayModeParametersKHR { 3353 VkExtent2D visibleRegion; 3354 uint32_t refreshRate; 3355 } VkDisplayModeParametersKHR; 3356 3357 typedef struct VkDisplayModePropertiesKHR { 3358 VkDisplayModeKHR displayMode; 3359 VkDisplayModeParametersKHR parameters; 3360 } VkDisplayModePropertiesKHR; 3361 3362 typedef struct VkDisplayModeCreateInfoKHR { 3363 VkStructureType sType; 3364 const void* pNext; 3365 VkDisplayModeCreateFlagsKHR flags; 3366 VkDisplayModeParametersKHR parameters; 3367 } VkDisplayModeCreateInfoKHR; 3368 3369 typedef struct VkDisplayPlaneCapabilitiesKHR { 3370 VkDisplayPlaneAlphaFlagsKHR supportedAlpha; 3371 VkOffset2D minSrcPosition; 3372 VkOffset2D maxSrcPosition; 3373 VkExtent2D minSrcExtent; 3374 VkExtent2D maxSrcExtent; 3375 VkOffset2D minDstPosition; 3376 VkOffset2D maxDstPosition; 3377 VkExtent2D minDstExtent; 3378 VkExtent2D maxDstExtent; 3379 } VkDisplayPlaneCapabilitiesKHR; 3380 3381 typedef struct VkDisplayPlanePropertiesKHR { 3382 VkDisplayKHR currentDisplay; 3383 uint32_t currentStackIndex; 3384 } VkDisplayPlanePropertiesKHR; 3385 3386 typedef struct VkDisplaySurfaceCreateInfoKHR { 3387 VkStructureType sType; 3388 const void* pNext; 3389 VkDisplaySurfaceCreateFlagsKHR flags; 3390 VkDisplayModeKHR displayMode; 3391 uint32_t planeIndex; 3392 uint32_t planeStackIndex; 3393 VkSurfaceTransformFlagBitsKHR transform; 3394 float globalAlpha; 3395 VkDisplayPlaneAlphaFlagBitsKHR alphaMode; 3396 VkExtent2D imageExtent; 3397 } VkDisplaySurfaceCreateInfoKHR; 3398 3399 3400 typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPropertiesKHR* pProperties); 3401 typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPlanePropertiesKHR* pProperties); 3402 typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneSupportedDisplaysKHR)(VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t* pDisplayCount, VkDisplayKHR* pDisplays); 3403 typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayModePropertiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t* pPropertyCount, VkDisplayModePropertiesKHR* pProperties); 3404 typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayModeKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, const VkDisplayModeCreateInfoKHR*pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDisplayModeKHR* pMode); 3405 typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex, VkDisplayPlaneCapabilitiesKHR* pCapabilities); 3406 typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayPlaneSurfaceKHR)(VkInstance instance, const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); 3407 3408 #ifndef VK_NO_PROTOTYPES 3409 VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPropertiesKHR( 3410 VkPhysicalDevice physicalDevice, 3411 uint32_t* pPropertyCount, 3412 VkDisplayPropertiesKHR* pProperties); 3413 3414 VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPlanePropertiesKHR( 3415 VkPhysicalDevice physicalDevice, 3416 uint32_t* pPropertyCount, 3417 VkDisplayPlanePropertiesKHR* pProperties); 3418 3419 VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneSupportedDisplaysKHR( 3420 VkPhysicalDevice physicalDevice, 3421 uint32_t planeIndex, 3422 uint32_t* pDisplayCount, 3423 VkDisplayKHR* pDisplays); 3424 3425 VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayModePropertiesKHR( 3426 VkPhysicalDevice physicalDevice, 3427 VkDisplayKHR display, 3428 uint32_t* pPropertyCount, 3429 VkDisplayModePropertiesKHR* pProperties); 3430 3431 VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayModeKHR( 3432 VkPhysicalDevice physicalDevice, 3433 VkDisplayKHR display, 3434 const VkDisplayModeCreateInfoKHR* pCreateInfo, 3435 const VkAllocationCallbacks* pAllocator, 3436 VkDisplayModeKHR* pMode); 3437 3438 VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneCapabilitiesKHR( 3439 VkPhysicalDevice physicalDevice, 3440 VkDisplayModeKHR mode, 3441 uint32_t planeIndex, 3442 VkDisplayPlaneCapabilitiesKHR* pCapabilities); 3443 3444 VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayPlaneSurfaceKHR( 3445 VkInstance instance, 3446 const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, 3447 const VkAllocationCallbacks* pAllocator, 3448 VkSurfaceKHR* pSurface); 3449 #endif 3450 3451 #define VK_KHR_display_swapchain 1 3452 #define VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION 9 3453 #define VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME "VK_KHR_display_swapchain" 3454 3455 typedef struct VkDisplayPresentInfoKHR { 3456 VkStructureType sType; 3457 const void* pNext; 3458 VkRect2D srcRect; 3459 VkRect2D dstRect; 3460 VkBool32 persistent; 3461 } VkDisplayPresentInfoKHR; 3462 3463 3464 typedef VkResult (VKAPI_PTR *PFN_vkCreateSharedSwapchainsKHR)(VkDevice device, uint32_t swapchainCount, const VkSwapchainCreateInfoKHR* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchains); 3465 3466 #ifndef VK_NO_PROTOTYPES 3467 VKAPI_ATTR VkResult VKAPI_CALL vkCreateSharedSwapchainsKHR( 3468 VkDevice device, 3469 uint32_t swapchainCount, 3470 const VkSwapchainCreateInfoKHR* pCreateInfos, 3471 const VkAllocationCallbacks* pAllocator, 3472 VkSwapchainKHR* pSwapchains); 3473 #endif 3474 3475 #ifdef VK_USE_PLATFORM_XLIB_KHR 3476 #define VK_KHR_xlib_surface 1 3477 #include <X11/Xlib.h> 3478 3479 #define VK_KHR_XLIB_SURFACE_SPEC_VERSION 6 3480 #define VK_KHR_XLIB_SURFACE_EXTENSION_NAME "VK_KHR_xlib_surface" 3481 3482 typedef VkFlags VkXlibSurfaceCreateFlagsKHR; 3483 3484 typedef struct VkXlibSurfaceCreateInfoKHR { 3485 VkStructureType sType; 3486 const void* pNext; 3487 VkXlibSurfaceCreateFlagsKHR flags; 3488 Display* dpy; 3489 Window window; 3490 } VkXlibSurfaceCreateInfoKHR; 3491 3492 3493 typedef VkResult (VKAPI_PTR *PFN_vkCreateXlibSurfaceKHR)(VkInstance instance, const VkXlibSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); 3494 typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, Display* dpy, VisualID visualID); 3495 3496 #ifndef VK_NO_PROTOTYPES 3497 VKAPI_ATTR VkResult VKAPI_CALL vkCreateXlibSurfaceKHR( 3498 VkInstance instance, 3499 const VkXlibSurfaceCreateInfoKHR* pCreateInfo, 3500 const VkAllocationCallbacks* pAllocator, 3501 VkSurfaceKHR* pSurface); 3502 3503 VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXlibPresentationSupportKHR( 3504 VkPhysicalDevice physicalDevice, 3505 uint32_t queueFamilyIndex, 3506 Display* dpy, 3507 VisualID visualID); 3508 #endif 3509 #endif /* VK_USE_PLATFORM_XLIB_KHR */ 3510 3511 #ifdef VK_USE_PLATFORM_XCB_KHR 3512 #define VK_KHR_xcb_surface 1 3513 #include <xcb/xcb.h> 3514 3515 #define VK_KHR_XCB_SURFACE_SPEC_VERSION 6 3516 #define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface" 3517 3518 typedef VkFlags VkXcbSurfaceCreateFlagsKHR; 3519 3520 typedef struct VkXcbSurfaceCreateInfoKHR { 3521 VkStructureType sType; 3522 const void* pNext; 3523 VkXcbSurfaceCreateFlagsKHR flags; 3524 xcb_connection_t* connection; 3525 xcb_window_t window; 3526 } VkXcbSurfaceCreateInfoKHR; 3527 3528 3529 typedef VkResult (VKAPI_PTR *PFN_vkCreateXcbSurfaceKHR)(VkInstance instance, const VkXcbSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); 3530 typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, xcb_connection_t* connection, xcb_visualid_t visual_id); 3531 3532 #ifndef VK_NO_PROTOTYPES 3533 VKAPI_ATTR VkResult VKAPI_CALL vkCreateXcbSurfaceKHR( 3534 VkInstance instance, 3535 const VkXcbSurfaceCreateInfoKHR* pCreateInfo, 3536 const VkAllocationCallbacks* pAllocator, 3537 VkSurfaceKHR* pSurface); 3538 3539 VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXcbPresentationSupportKHR( 3540 VkPhysicalDevice physicalDevice, 3541 uint32_t queueFamilyIndex, 3542 xcb_connection_t* connection, 3543 xcb_visualid_t visual_id); 3544 #endif 3545 #endif /* VK_USE_PLATFORM_XCB_KHR */ 3546 3547 #ifdef VK_USE_PLATFORM_WAYLAND_KHR 3548 #define VK_KHR_wayland_surface 1 3549 #include <wayland-client.h> 3550 3551 #define VK_KHR_WAYLAND_SURFACE_SPEC_VERSION 5 3552 #define VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "VK_KHR_wayland_surface" 3553 3554 typedef VkFlags VkWaylandSurfaceCreateFlagsKHR; 3555 3556 typedef struct VkWaylandSurfaceCreateInfoKHR { 3557 VkStructureType sType; 3558 const void* pNext; 3559 VkWaylandSurfaceCreateFlagsKHR flags; 3560 struct wl_display* display; 3561 struct wl_surface* surface; 3562 } VkWaylandSurfaceCreateInfoKHR; 3563 3564 3565 typedef VkResult (VKAPI_PTR *PFN_vkCreateWaylandSurfaceKHR)(VkInstance instance, const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); 3566 typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct wl_display* display); 3567 3568 #ifndef VK_NO_PROTOTYPES 3569 VKAPI_ATTR VkResult VKAPI_CALL vkCreateWaylandSurfaceKHR( 3570 VkInstance instance, 3571 const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, 3572 const VkAllocationCallbacks* pAllocator, 3573 VkSurfaceKHR* pSurface); 3574 3575 VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWaylandPresentationSupportKHR( 3576 VkPhysicalDevice physicalDevice, 3577 uint32_t queueFamilyIndex, 3578 struct wl_display* display); 3579 #endif 3580 #endif /* VK_USE_PLATFORM_WAYLAND_KHR */ 3581 3582 #ifdef VK_USE_PLATFORM_MIR_KHR 3583 #define VK_KHR_mir_surface 1 3584 #include <mir_toolkit/client_types.h> 3585 3586 #define VK_KHR_MIR_SURFACE_SPEC_VERSION 4 3587 #define VK_KHR_MIR_SURFACE_EXTENSION_NAME "VK_KHR_mir_surface" 3588 3589 typedef VkFlags VkMirSurfaceCreateFlagsKHR; 3590 3591 typedef struct VkMirSurfaceCreateInfoKHR { 3592 VkStructureType sType; 3593 const void* pNext; 3594 VkMirSurfaceCreateFlagsKHR flags; 3595 MirConnection* connection; 3596 MirSurface* mirSurface; 3597 } VkMirSurfaceCreateInfoKHR; 3598 3599 3600 typedef VkResult (VKAPI_PTR *PFN_vkCreateMirSurfaceKHR)(VkInstance instance, const VkMirSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); 3601 typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceMirPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, MirConnection* connection); 3602 3603 #ifndef VK_NO_PROTOTYPES 3604 VKAPI_ATTR VkResult VKAPI_CALL vkCreateMirSurfaceKHR( 3605 VkInstance instance, 3606 const VkMirSurfaceCreateInfoKHR* pCreateInfo, 3607 const VkAllocationCallbacks* pAllocator, 3608 VkSurfaceKHR* pSurface); 3609 3610 VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceMirPresentationSupportKHR( 3611 VkPhysicalDevice physicalDevice, 3612 uint32_t queueFamilyIndex, 3613 MirConnection* connection); 3614 #endif 3615 #endif /* VK_USE_PLATFORM_MIR_KHR */ 3616 3617 #ifdef VK_USE_PLATFORM_ANDROID_KHR 3618 #define VK_KHR_android_surface 1 3619 #include <android/native_window.h> 3620 3621 #define VK_KHR_ANDROID_SURFACE_SPEC_VERSION 6 3622 #define VK_KHR_ANDROID_SURFACE_EXTENSION_NAME "VK_KHR_android_surface" 3623 3624 typedef VkFlags VkAndroidSurfaceCreateFlagsKHR; 3625 3626 typedef struct VkAndroidSurfaceCreateInfoKHR { 3627 VkStructureType sType; 3628 const void* pNext; 3629 VkAndroidSurfaceCreateFlagsKHR flags; 3630 ANativeWindow* window; 3631 } VkAndroidSurfaceCreateInfoKHR; 3632 3633 3634 typedef VkResult (VKAPI_PTR *PFN_vkCreateAndroidSurfaceKHR)(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); 3635 3636 #ifndef VK_NO_PROTOTYPES 3637 VKAPI_ATTR VkResult VKAPI_CALL vkCreateAndroidSurfaceKHR( 3638 VkInstance instance, 3639 const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, 3640 const VkAllocationCallbacks* pAllocator, 3641 VkSurfaceKHR* pSurface); 3642 #endif 3643 #endif /* VK_USE_PLATFORM_ANDROID_KHR */ 3644 3645 #ifdef VK_USE_PLATFORM_WIN32_KHR 3646 #define VK_KHR_win32_surface 1 3647 #include <windows.h> 3648 3649 #define VK_KHR_WIN32_SURFACE_SPEC_VERSION 5 3650 #define VK_KHR_WIN32_SURFACE_EXTENSION_NAME "VK_KHR_win32_surface" 3651 3652 typedef VkFlags VkWin32SurfaceCreateFlagsKHR; 3653 3654 typedef struct VkWin32SurfaceCreateInfoKHR { 3655 VkStructureType sType; 3656 const void* pNext; 3657 VkWin32SurfaceCreateFlagsKHR flags; 3658 HINSTANCE hinstance; 3659 HWND hwnd; 3660 } VkWin32SurfaceCreateInfoKHR; 3661 3662 3663 typedef VkResult (VKAPI_PTR *PFN_vkCreateWin32SurfaceKHR)(VkInstance instance, const VkWin32SurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); 3664 typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex); 3665 3666 #ifndef VK_NO_PROTOTYPES 3667 VKAPI_ATTR VkResult VKAPI_CALL vkCreateWin32SurfaceKHR( 3668 VkInstance instance, 3669 const VkWin32SurfaceCreateInfoKHR* pCreateInfo, 3670 const VkAllocationCallbacks* pAllocator, 3671 VkSurfaceKHR* pSurface); 3672 3673 VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWin32PresentationSupportKHR( 3674 VkPhysicalDevice physicalDevice, 3675 uint32_t queueFamilyIndex); 3676 #endif 3677 #endif /* VK_USE_PLATFORM_WIN32_KHR */ 3678 3679 #define VK_KHR_sampler_mirror_clamp_to_edge 1 3680 #define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_SPEC_VERSION 1 3681 #define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME "VK_KHR_sampler_mirror_clamp_to_edge" 3682 3683 3684 #define VK_EXT_debug_report 1 3685 VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDebugReportCallbackEXT) 3686 3687 #define VK_EXT_DEBUG_REPORT_SPEC_VERSION 2 3688 #define VK_EXT_DEBUG_REPORT_EXTENSION_NAME "VK_EXT_debug_report" 3689 #define VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT 3690 3691 3692 typedef enum VkDebugReportObjectTypeEXT { 3693 VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT = 0, 3694 VK_DEBUG_REPORT_OBJECT_TYPE_INSTANCE_EXT = 1, 3695 VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT = 2, 3696 VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT = 3, 3697 VK_DEBUG_REPORT_OBJECT_TYPE_QUEUE_EXT = 4, 3698 VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT = 5, 3699 VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT = 6, 3700 VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT = 7, 3701 VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT = 8, 3702 VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT = 9, 3703 VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT = 10, 3704 VK_DEBUG_REPORT_OBJECT_TYPE_EVENT_EXT = 11, 3705 VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT = 12, 3706 VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_VIEW_EXT = 13, 3707 VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT = 14, 3708 VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT = 15, 3709 VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CACHE_EXT = 16, 3710 VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_LAYOUT_EXT = 17, 3711 VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT = 18, 3712 VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT = 19, 3713 VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT_EXT = 20, 3714 VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_EXT = 21, 3715 VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_POOL_EXT = 22, 3716 VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_EXT = 23, 3717 VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT = 24, 3718 VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EXT = 25, 3719 VK_DEBUG_REPORT_OBJECT_TYPE_SURFACE_KHR_EXT = 26, 3720 VK_DEBUG_REPORT_OBJECT_TYPE_SWAPCHAIN_KHR_EXT = 27, 3721 VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT = 28, 3722 } VkDebugReportObjectTypeEXT; 3723 3724 typedef enum VkDebugReportErrorEXT { 3725 VK_DEBUG_REPORT_ERROR_NONE_EXT = 0, 3726 VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT = 1, 3727 } VkDebugReportErrorEXT; 3728 3729 3730 typedef enum VkDebugReportFlagBitsEXT { 3731 VK_DEBUG_REPORT_INFORMATION_BIT_EXT = 0x00000001, 3732 VK_DEBUG_REPORT_WARNING_BIT_EXT = 0x00000002, 3733 VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT = 0x00000004, 3734 VK_DEBUG_REPORT_ERROR_BIT_EXT = 0x00000008, 3735 VK_DEBUG_REPORT_DEBUG_BIT_EXT = 0x00000010, 3736 } VkDebugReportFlagBitsEXT; 3737 typedef VkFlags VkDebugReportFlagsEXT; 3738 3739 typedef VkBool32 (VKAPI_PTR *PFN_vkDebugReportCallbackEXT)( 3740 VkDebugReportFlagsEXT flags, 3741 VkDebugReportObjectTypeEXT objectType, 3742 uint64_t object, 3743 size_t location, 3744 int32_t messageCode, 3745 const char* pLayerPrefix, 3746 const char* pMessage, 3747 void* pUserData); 3748 3749 3750 typedef struct VkDebugReportCallbackCreateInfoEXT { 3751 VkStructureType sType; 3752 const void* pNext; 3753 VkDebugReportFlagsEXT flags; 3754 PFN_vkDebugReportCallbackEXT pfnCallback; 3755 void* pUserData; 3756 } VkDebugReportCallbackCreateInfoEXT; 3757 3758 3759 typedef VkResult (VKAPI_PTR *PFN_vkCreateDebugReportCallbackEXT)(VkInstance instance, const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDebugReportCallbackEXT* pCallback); 3760 typedef void (VKAPI_PTR *PFN_vkDestroyDebugReportCallbackEXT)(VkInstance instance, VkDebugReportCallbackEXT callback, const VkAllocationCallbacks* pAllocator); 3761 typedef void (VKAPI_PTR *PFN_vkDebugReportMessageEXT)(VkInstance instance, VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage); 3762 3763 #ifndef VK_NO_PROTOTYPES 3764 VKAPI_ATTR VkResult VKAPI_CALL vkCreateDebugReportCallbackEXT( 3765 VkInstance instance, 3766 const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, 3767 const VkAllocationCallbacks* pAllocator, 3768 VkDebugReportCallbackEXT* pCallback); 3769 3770 VKAPI_ATTR void VKAPI_CALL vkDestroyDebugReportCallbackEXT( 3771 VkInstance instance, 3772 VkDebugReportCallbackEXT callback, 3773 const VkAllocationCallbacks* pAllocator); 3774 3775 VKAPI_ATTR void VKAPI_CALL vkDebugReportMessageEXT( 3776 VkInstance instance, 3777 VkDebugReportFlagsEXT flags, 3778 VkDebugReportObjectTypeEXT objectType, 3779 uint64_t object, 3780 size_t location, 3781 int32_t messageCode, 3782 const char* pLayerPrefix, 3783 const char* pMessage); 3784 #endif 3785 3786 #define VK_NV_glsl_shader 1 3787 #define VK_NV_GLSL_SHADER_SPEC_VERSION 1 3788 #define VK_NV_GLSL_SHADER_EXTENSION_NAME "VK_NV_glsl_shader" 3789 3790 3791 #define VK_IMG_filter_cubic 1 3792 #define VK_IMG_FILTER_CUBIC_SPEC_VERSION 1 3793 #define VK_IMG_FILTER_CUBIC_EXTENSION_NAME "VK_IMG_filter_cubic" 3794 3795 3796 #ifdef __cplusplus 3797 } 3798 #endif 3799 3800 #endif 3801