Platformer in OpenGL
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

3835 righe
178 KiB

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