blob: 04271987cef26f79a166a1c4af41a9ca88dffeea [file] [log] [blame]
Jesse Halldc6d36c2015-11-29 19:12:15 -08001#ifndef __vulkan_h_
2#define __vulkan_h_ 1
Jesse Hall04f4f472015-08-16 19:51:04 -07003
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8/*
9** Copyright (c) 2015 The Khronos Group Inc.
10**
11** Permission is hereby granted, free of charge, to any person obtaining a
12** copy of this software and/or associated documentation files (the
13** "Materials"), to deal in the Materials without restriction, including
14** without limitation the rights to use, copy, modify, merge, publish,
15** distribute, sublicense, and/or sell copies of the Materials, and to
16** permit persons to whom the Materials are furnished to do so, subject to
17** the following conditions:
18**
19** The above copyright notice and this permission notice shall be included
20** in all copies or substantial portions of the Materials.
21**
22** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
26** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
29*/
30
31/*
32** This header is generated from the Khronos Vulkan XML API Registry.
33**
34*/
35
36
37#define VK_VERSION_1_0 1
38#include "vk_platform.h"
39
40#define VK_MAKE_VERSION(major, minor, patch) \
41 ((major << 22) | (minor << 12) | patch)
42
43// Vulkan API version supported by this file
Jesse Hall563380d2016-01-15 23:14:05 -080044#define VK_API_VERSION VK_MAKE_VERSION(1, 0, 1)
Jesse Hall5ae3abb2015-10-08 14:00:22 -070045
46
Jesse Halla3a7a1d2015-11-24 11:37:23 -080047#define VK_NULL_HANDLE 0
Jesse Hallf4ab2b12015-11-30 16:04:55 -080048
Jesse Hall04f4f472015-08-16 19:51:04 -070049
50
Jesse Hall3fbc8562015-11-29 22:10:52 -080051#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object;
Jesse Hall04f4f472015-08-16 19:51:04 -070052
53
Jesse Halla3a7a1d2015-11-24 11:37:23 -080054#if defined(__LP64__) || defined(_WIN64) || defined(__x86_64__) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
Jesse Hall3fbc8562015-11-29 22:10:52 -080055 #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef struct object##_T *object;
Jesse Hall04f4f472015-08-16 19:51:04 -070056#else
Jesse Hall3fbc8562015-11-29 22:10:52 -080057 #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef uint64_t object;
Jesse Hall04f4f472015-08-16 19:51:04 -070058#endif
Jesse Hallf4ab2b12015-11-30 16:04:55 -080059
Jesse Hall04f4f472015-08-16 19:51:04 -070060
61
Jesse Hall5ae3abb2015-10-08 14:00:22 -070062typedef uint32_t VkFlags;
Jesse Halla6429252015-11-29 18:59:42 -080063typedef uint32_t VkBool32;
Jesse Hall5ae3abb2015-10-08 14:00:22 -070064typedef uint64_t VkDeviceSize;
65typedef uint32_t VkSampleMask;
Jesse Hall04f4f472015-08-16 19:51:04 -070066
67VK_DEFINE_HANDLE(VkInstance)
68VK_DEFINE_HANDLE(VkPhysicalDevice)
69VK_DEFINE_HANDLE(VkDevice)
70VK_DEFINE_HANDLE(VkQueue)
Jesse Hall3fbc8562015-11-29 22:10:52 -080071VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSemaphore)
72VK_DEFINE_HANDLE(VkCommandBuffer)
73VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFence)
74VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDeviceMemory)
75VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBuffer)
76VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImage)
77VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkEvent)
78VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkQueryPool)
79VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBufferView)
80VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImageView)
81VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderModule)
Jesse Hall3fbc8562015-11-29 22:10:52 -080082VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineCache)
83VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineLayout)
84VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkRenderPass)
85VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipeline)
86VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSetLayout)
87VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSampler)
88VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorPool)
89VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSet)
90VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFramebuffer)
91VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCommandPool)
Jesse Hall04f4f472015-08-16 19:51:04 -070092
Jesse Hall5ae3abb2015-10-08 14:00:22 -070093#define VK_LOD_CLAMP_NONE 1000.0f
94#define VK_REMAINING_MIP_LEVELS (~0U)
95#define VK_REMAINING_ARRAY_LAYERS (~0U)
96#define VK_WHOLE_SIZE (~0ULL)
97#define VK_ATTACHMENT_UNUSED (~0U)
98#define VK_TRUE 1
99#define VK_FALSE 0
100#define VK_QUEUE_FAMILY_IGNORED (~0U)
101#define VK_SUBPASS_EXTERNAL (~0U)
Jesse Hall65ab5522015-11-30 00:07:16 -0800102#define VK_MAX_PHYSICAL_DEVICE_NAME_SIZE 256
103#define VK_UUID_SIZE 16
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700104#define VK_MAX_MEMORY_TYPES 32
105#define VK_MAX_MEMORY_HEAPS 16
Jesse Hall65ab5522015-11-30 00:07:16 -0800106#define VK_MAX_EXTENSION_NAME_SIZE 256
107#define VK_MAX_DESCRIPTION_SIZE 256
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700108
Jesse Hall04f4f472015-08-16 19:51:04 -0700109
Jesse Hall543a7ff2016-01-08 16:38:30 -0800110typedef enum VkPipelineCacheHeaderVersion {
111 VK_PIPELINE_CACHE_HEADER_VERSION_ONE = 1,
112 VK_PIPELINE_CACHE_HEADER_VERSION_BEGIN_RANGE = VK_PIPELINE_CACHE_HEADER_VERSION_ONE,
113 VK_PIPELINE_CACHE_HEADER_VERSION_END_RANGE = VK_PIPELINE_CACHE_HEADER_VERSION_ONE,
114 VK_PIPELINE_CACHE_HEADER_VERSION_RANGE_SIZE = (VK_PIPELINE_CACHE_HEADER_VERSION_ONE - VK_PIPELINE_CACHE_HEADER_VERSION_ONE + 1),
115 VK_PIPELINE_CACHE_HEADER_VERSION_MAX_ENUM = 0x7FFFFFFF
116} VkPipelineCacheHeaderVersion;
117
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800118typedef enum VkResult {
Jesse Hall04f4f472015-08-16 19:51:04 -0700119 VK_SUCCESS = 0,
Jesse Halla15a4bf2015-11-19 22:48:02 -0800120 VK_NOT_READY = 1,
121 VK_TIMEOUT = 2,
122 VK_EVENT_SET = 3,
123 VK_EVENT_RESET = 4,
124 VK_INCOMPLETE = 5,
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700125 VK_ERROR_OUT_OF_HOST_MEMORY = -1,
126 VK_ERROR_OUT_OF_DEVICE_MEMORY = -2,
Jesse Hall04f4f472015-08-16 19:51:04 -0700127 VK_ERROR_INITIALIZATION_FAILED = -3,
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700128 VK_ERROR_DEVICE_LOST = -4,
129 VK_ERROR_MEMORY_MAP_FAILED = -5,
130 VK_ERROR_LAYER_NOT_PRESENT = -6,
131 VK_ERROR_EXTENSION_NOT_PRESENT = -7,
Jesse Hall606a54e2015-11-19 22:17:28 -0800132 VK_ERROR_FEATURE_NOT_PRESENT = -8,
133 VK_ERROR_INCOMPATIBLE_DRIVER = -9,
Jesse Hall091ed9e2015-11-30 00:55:29 -0800134 VK_ERROR_TOO_MANY_OBJECTS = -10,
Jesse Halla9e57032015-11-30 01:03:10 -0800135 VK_ERROR_FORMAT_NOT_SUPPORTED = -11,
Jesse Hallbd888842015-11-30 21:44:14 -0800136 VK_ERROR_SURFACE_LOST_KHR = -1000000000,
Jesse Hall563380d2016-01-15 23:14:05 -0800137 VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001,
Jesse Hallbd888842015-11-30 21:44:14 -0800138 VK_SUBOPTIMAL_KHR = 1000001003,
139 VK_ERROR_OUT_OF_DATE_KHR = -1000001004,
140 VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = -1000003001,
Jesse Hall543a7ff2016-01-08 16:38:30 -0800141 VK_ERROR_VALIDATION_FAILED_EXT = -1000011001,
Jesse Halla9e57032015-11-30 01:03:10 -0800142 VK_RESULT_BEGIN_RANGE = VK_ERROR_FORMAT_NOT_SUPPORTED,
Jesse Hall04f4f472015-08-16 19:51:04 -0700143 VK_RESULT_END_RANGE = VK_INCOMPLETE,
Jesse Halla9e57032015-11-30 01:03:10 -0800144 VK_RESULT_RANGE_SIZE = (VK_INCOMPLETE - VK_ERROR_FORMAT_NOT_SUPPORTED + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700145 VK_RESULT_MAX_ENUM = 0x7FFFFFFF
146} VkResult;
147
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800148typedef enum VkStructureType {
Jesse Hall04f4f472015-08-16 19:51:04 -0700149 VK_STRUCTURE_TYPE_APPLICATION_INFO = 0,
Jesse Hallc7467b72015-11-29 21:05:26 -0800150 VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 1,
151 VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO = 2,
152 VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = 3,
153 VK_STRUCTURE_TYPE_SUBMIT_INFO = 4,
Jesse Hallf4ab2b12015-11-30 16:04:55 -0800154 VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO = 5,
Jesse Hallc7467b72015-11-29 21:05:26 -0800155 VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE = 6,
156 VK_STRUCTURE_TYPE_BIND_SPARSE_INFO = 7,
157 VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 8,
158 VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 9,
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700159 VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 10,
Jesse Hallc7467b72015-11-29 21:05:26 -0800160 VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 11,
161 VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 12,
162 VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 13,
163 VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 14,
164 VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 15,
165 VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO = 16,
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800166 VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO = 17,
167 VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 18,
168 VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = 19,
169 VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO = 20,
170 VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO = 21,
171 VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO = 22,
172 VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO = 23,
173 VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO = 24,
174 VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO = 25,
175 VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO = 26,
176 VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO = 27,
177 VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 28,
178 VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 29,
179 VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO = 30,
180 VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 31,
181 VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 32,
182 VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 33,
Jesse Hallf4ab2b12015-11-30 16:04:55 -0800183 VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO = 34,
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800184 VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET = 35,
185 VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET = 36,
186 VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 37,
187 VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 38,
188 VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO = 39,
Jesse Hallf4ab2b12015-11-30 16:04:55 -0800189 VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO = 40,
Jesse Hall3dd678a2016-01-08 21:52:01 -0800190 VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO = 41,
191 VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO = 42,
192 VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO = 43,
193 VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 44,
194 VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 45,
195 VK_STRUCTURE_TYPE_MEMORY_BARRIER = 46,
196 VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO = 47,
197 VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO = 48,
Jesse Hallbd888842015-11-30 21:44:14 -0800198 VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR = 1000001000,
199 VK_STRUCTURE_TYPE_PRESENT_INFO_KHR = 1000001001,
200 VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR = 1000002000,
201 VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR = 1000002001,
202 VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR = 1000003000,
Jesse Hallf9fa9a52016-01-08 16:08:51 -0800203 VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000,
204 VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000,
205 VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000,
206 VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR = 1000007000,
207 VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR = 1000008000,
208 VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000,
Jesse Hall543a7ff2016-01-08 16:38:30 -0800209 VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT = 1000011000,
Jesse Hall04f4f472015-08-16 19:51:04 -0700210 VK_STRUCTURE_TYPE_BEGIN_RANGE = VK_STRUCTURE_TYPE_APPLICATION_INFO,
Jesse Hallf4ab2b12015-11-30 16:04:55 -0800211 VK_STRUCTURE_TYPE_END_RANGE = VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO,
212 VK_STRUCTURE_TYPE_RANGE_SIZE = (VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO - VK_STRUCTURE_TYPE_APPLICATION_INFO + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700213 VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF
214} VkStructureType;
215
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800216typedef enum VkSystemAllocationScope {
217 VK_SYSTEM_ALLOCATION_SCOPE_COMMAND = 0,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800218 VK_SYSTEM_ALLOCATION_SCOPE_OBJECT = 1,
219 VK_SYSTEM_ALLOCATION_SCOPE_CACHE = 2,
220 VK_SYSTEM_ALLOCATION_SCOPE_DEVICE = 3,
221 VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE = 4,
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800222 VK_SYSTEM_ALLOCATION_SCOPE_BEGIN_RANGE = VK_SYSTEM_ALLOCATION_SCOPE_COMMAND,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800223 VK_SYSTEM_ALLOCATION_SCOPE_END_RANGE = VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE,
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800224 VK_SYSTEM_ALLOCATION_SCOPE_RANGE_SIZE = (VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE - VK_SYSTEM_ALLOCATION_SCOPE_COMMAND + 1),
Jesse Hall3fbc8562015-11-29 22:10:52 -0800225 VK_SYSTEM_ALLOCATION_SCOPE_MAX_ENUM = 0x7FFFFFFF
226} VkSystemAllocationScope;
Jesse Hall03b6fe12015-11-24 12:44:21 -0800227
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800228typedef enum VkInternalAllocationType {
Jesse Hall3fbc8562015-11-29 22:10:52 -0800229 VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE = 0,
230 VK_INTERNAL_ALLOCATION_TYPE_BEGIN_RANGE = VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE,
231 VK_INTERNAL_ALLOCATION_TYPE_END_RANGE = VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE,
232 VK_INTERNAL_ALLOCATION_TYPE_RANGE_SIZE = (VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE - VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE + 1),
233 VK_INTERNAL_ALLOCATION_TYPE_MAX_ENUM = 0x7FFFFFFF
234} VkInternalAllocationType;
Jesse Hall04f4f472015-08-16 19:51:04 -0700235
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800236typedef enum VkFormat {
Jesse Hall04f4f472015-08-16 19:51:04 -0700237 VK_FORMAT_UNDEFINED = 0,
Jesse Hallf4ab2b12015-11-30 16:04:55 -0800238 VK_FORMAT_R4G4_UNORM_PACK8 = 1,
239 VK_FORMAT_R4G4B4A4_UNORM_PACK16 = 2,
240 VK_FORMAT_B4G4R4A4_UNORM_PACK16 = 3,
241 VK_FORMAT_R5G6B5_UNORM_PACK16 = 4,
242 VK_FORMAT_B5G6R5_UNORM_PACK16 = 5,
243 VK_FORMAT_R5G5B5A1_UNORM_PACK16 = 6,
244 VK_FORMAT_B5G5R5A1_UNORM_PACK16 = 7,
245 VK_FORMAT_A1R5G5B5_UNORM_PACK16 = 8,
Jesse Hall04f4f472015-08-16 19:51:04 -0700246 VK_FORMAT_R8_UNORM = 9,
247 VK_FORMAT_R8_SNORM = 10,
248 VK_FORMAT_R8_USCALED = 11,
249 VK_FORMAT_R8_SSCALED = 12,
250 VK_FORMAT_R8_UINT = 13,
251 VK_FORMAT_R8_SINT = 14,
252 VK_FORMAT_R8_SRGB = 15,
253 VK_FORMAT_R8G8_UNORM = 16,
254 VK_FORMAT_R8G8_SNORM = 17,
255 VK_FORMAT_R8G8_USCALED = 18,
256 VK_FORMAT_R8G8_SSCALED = 19,
257 VK_FORMAT_R8G8_UINT = 20,
258 VK_FORMAT_R8G8_SINT = 21,
259 VK_FORMAT_R8G8_SRGB = 22,
260 VK_FORMAT_R8G8B8_UNORM = 23,
261 VK_FORMAT_R8G8B8_SNORM = 24,
262 VK_FORMAT_R8G8B8_USCALED = 25,
263 VK_FORMAT_R8G8B8_SSCALED = 26,
264 VK_FORMAT_R8G8B8_UINT = 27,
265 VK_FORMAT_R8G8B8_SINT = 28,
266 VK_FORMAT_R8G8B8_SRGB = 29,
Jesse Hallf4ab2b12015-11-30 16:04:55 -0800267 VK_FORMAT_B8G8R8_UNORM = 30,
268 VK_FORMAT_B8G8R8_SNORM = 31,
269 VK_FORMAT_B8G8R8_USCALED = 32,
270 VK_FORMAT_B8G8R8_SSCALED = 33,
271 VK_FORMAT_B8G8R8_UINT = 34,
272 VK_FORMAT_B8G8R8_SINT = 35,
273 VK_FORMAT_B8G8R8_SRGB = 36,
274 VK_FORMAT_R8G8B8A8_UNORM = 37,
275 VK_FORMAT_R8G8B8A8_SNORM = 38,
276 VK_FORMAT_R8G8B8A8_USCALED = 39,
277 VK_FORMAT_R8G8B8A8_SSCALED = 40,
278 VK_FORMAT_R8G8B8A8_UINT = 41,
279 VK_FORMAT_R8G8B8A8_SINT = 42,
280 VK_FORMAT_R8G8B8A8_SRGB = 43,
281 VK_FORMAT_B8G8R8A8_UNORM = 44,
282 VK_FORMAT_B8G8R8A8_SNORM = 45,
283 VK_FORMAT_B8G8R8A8_USCALED = 46,
284 VK_FORMAT_B8G8R8A8_SSCALED = 47,
285 VK_FORMAT_B8G8R8A8_UINT = 48,
286 VK_FORMAT_B8G8R8A8_SINT = 49,
287 VK_FORMAT_B8G8R8A8_SRGB = 50,
288 VK_FORMAT_A8B8G8R8_UNORM_PACK32 = 51,
289 VK_FORMAT_A8B8G8R8_SNORM_PACK32 = 52,
290 VK_FORMAT_A8B8G8R8_USCALED_PACK32 = 53,
291 VK_FORMAT_A8B8G8R8_SSCALED_PACK32 = 54,
292 VK_FORMAT_A8B8G8R8_UINT_PACK32 = 55,
293 VK_FORMAT_A8B8G8R8_SINT_PACK32 = 56,
294 VK_FORMAT_A8B8G8R8_SRGB_PACK32 = 57,
295 VK_FORMAT_A2R10G10B10_UNORM_PACK32 = 58,
296 VK_FORMAT_A2R10G10B10_SNORM_PACK32 = 59,
297 VK_FORMAT_A2R10G10B10_USCALED_PACK32 = 60,
298 VK_FORMAT_A2R10G10B10_SSCALED_PACK32 = 61,
299 VK_FORMAT_A2R10G10B10_UINT_PACK32 = 62,
300 VK_FORMAT_A2R10G10B10_SINT_PACK32 = 63,
301 VK_FORMAT_A2B10G10R10_UNORM_PACK32 = 64,
302 VK_FORMAT_A2B10G10R10_SNORM_PACK32 = 65,
303 VK_FORMAT_A2B10G10R10_USCALED_PACK32 = 66,
304 VK_FORMAT_A2B10G10R10_SSCALED_PACK32 = 67,
305 VK_FORMAT_A2B10G10R10_UINT_PACK32 = 68,
306 VK_FORMAT_A2B10G10R10_SINT_PACK32 = 69,
307 VK_FORMAT_R16_UNORM = 70,
308 VK_FORMAT_R16_SNORM = 71,
309 VK_FORMAT_R16_USCALED = 72,
310 VK_FORMAT_R16_SSCALED = 73,
311 VK_FORMAT_R16_UINT = 74,
312 VK_FORMAT_R16_SINT = 75,
313 VK_FORMAT_R16_SFLOAT = 76,
314 VK_FORMAT_R16G16_UNORM = 77,
315 VK_FORMAT_R16G16_SNORM = 78,
316 VK_FORMAT_R16G16_USCALED = 79,
317 VK_FORMAT_R16G16_SSCALED = 80,
318 VK_FORMAT_R16G16_UINT = 81,
319 VK_FORMAT_R16G16_SINT = 82,
320 VK_FORMAT_R16G16_SFLOAT = 83,
321 VK_FORMAT_R16G16B16_UNORM = 84,
322 VK_FORMAT_R16G16B16_SNORM = 85,
323 VK_FORMAT_R16G16B16_USCALED = 86,
324 VK_FORMAT_R16G16B16_SSCALED = 87,
325 VK_FORMAT_R16G16B16_UINT = 88,
326 VK_FORMAT_R16G16B16_SINT = 89,
327 VK_FORMAT_R16G16B16_SFLOAT = 90,
328 VK_FORMAT_R16G16B16A16_UNORM = 91,
329 VK_FORMAT_R16G16B16A16_SNORM = 92,
330 VK_FORMAT_R16G16B16A16_USCALED = 93,
331 VK_FORMAT_R16G16B16A16_SSCALED = 94,
332 VK_FORMAT_R16G16B16A16_UINT = 95,
333 VK_FORMAT_R16G16B16A16_SINT = 96,
334 VK_FORMAT_R16G16B16A16_SFLOAT = 97,
335 VK_FORMAT_R32_UINT = 98,
336 VK_FORMAT_R32_SINT = 99,
337 VK_FORMAT_R32_SFLOAT = 100,
338 VK_FORMAT_R32G32_UINT = 101,
339 VK_FORMAT_R32G32_SINT = 102,
340 VK_FORMAT_R32G32_SFLOAT = 103,
341 VK_FORMAT_R32G32B32_UINT = 104,
342 VK_FORMAT_R32G32B32_SINT = 105,
343 VK_FORMAT_R32G32B32_SFLOAT = 106,
344 VK_FORMAT_R32G32B32A32_UINT = 107,
345 VK_FORMAT_R32G32B32A32_SINT = 108,
346 VK_FORMAT_R32G32B32A32_SFLOAT = 109,
347 VK_FORMAT_R64_UINT = 110,
348 VK_FORMAT_R64_SINT = 111,
349 VK_FORMAT_R64_SFLOAT = 112,
350 VK_FORMAT_R64G64_UINT = 113,
351 VK_FORMAT_R64G64_SINT = 114,
352 VK_FORMAT_R64G64_SFLOAT = 115,
353 VK_FORMAT_R64G64B64_UINT = 116,
354 VK_FORMAT_R64G64B64_SINT = 117,
355 VK_FORMAT_R64G64B64_SFLOAT = 118,
356 VK_FORMAT_R64G64B64A64_UINT = 119,
357 VK_FORMAT_R64G64B64A64_SINT = 120,
358 VK_FORMAT_R64G64B64A64_SFLOAT = 121,
359 VK_FORMAT_B10G11R11_UFLOAT_PACK32 = 122,
360 VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 = 123,
361 VK_FORMAT_D16_UNORM = 124,
362 VK_FORMAT_X8_D24_UNORM_PACK32 = 125,
363 VK_FORMAT_D32_SFLOAT = 126,
364 VK_FORMAT_S8_UINT = 127,
365 VK_FORMAT_D16_UNORM_S8_UINT = 128,
366 VK_FORMAT_D24_UNORM_S8_UINT = 129,
367 VK_FORMAT_D32_SFLOAT_S8_UINT = 130,
368 VK_FORMAT_BC1_RGB_UNORM_BLOCK = 131,
369 VK_FORMAT_BC1_RGB_SRGB_BLOCK = 132,
370 VK_FORMAT_BC1_RGBA_UNORM_BLOCK = 133,
371 VK_FORMAT_BC1_RGBA_SRGB_BLOCK = 134,
372 VK_FORMAT_BC2_UNORM_BLOCK = 135,
373 VK_FORMAT_BC2_SRGB_BLOCK = 136,
374 VK_FORMAT_BC3_UNORM_BLOCK = 137,
375 VK_FORMAT_BC3_SRGB_BLOCK = 138,
376 VK_FORMAT_BC4_UNORM_BLOCK = 139,
377 VK_FORMAT_BC4_SNORM_BLOCK = 140,
378 VK_FORMAT_BC5_UNORM_BLOCK = 141,
379 VK_FORMAT_BC5_SNORM_BLOCK = 142,
380 VK_FORMAT_BC6H_UFLOAT_BLOCK = 143,
381 VK_FORMAT_BC6H_SFLOAT_BLOCK = 144,
382 VK_FORMAT_BC7_UNORM_BLOCK = 145,
383 VK_FORMAT_BC7_SRGB_BLOCK = 146,
384 VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK = 147,
385 VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK = 148,
386 VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK = 149,
387 VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK = 150,
388 VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK = 151,
389 VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK = 152,
390 VK_FORMAT_EAC_R11_UNORM_BLOCK = 153,
391 VK_FORMAT_EAC_R11_SNORM_BLOCK = 154,
392 VK_FORMAT_EAC_R11G11_UNORM_BLOCK = 155,
393 VK_FORMAT_EAC_R11G11_SNORM_BLOCK = 156,
394 VK_FORMAT_ASTC_4x4_UNORM_BLOCK = 157,
395 VK_FORMAT_ASTC_4x4_SRGB_BLOCK = 158,
396 VK_FORMAT_ASTC_5x4_UNORM_BLOCK = 159,
397 VK_FORMAT_ASTC_5x4_SRGB_BLOCK = 160,
398 VK_FORMAT_ASTC_5x5_UNORM_BLOCK = 161,
399 VK_FORMAT_ASTC_5x5_SRGB_BLOCK = 162,
400 VK_FORMAT_ASTC_6x5_UNORM_BLOCK = 163,
401 VK_FORMAT_ASTC_6x5_SRGB_BLOCK = 164,
402 VK_FORMAT_ASTC_6x6_UNORM_BLOCK = 165,
403 VK_FORMAT_ASTC_6x6_SRGB_BLOCK = 166,
404 VK_FORMAT_ASTC_8x5_UNORM_BLOCK = 167,
405 VK_FORMAT_ASTC_8x5_SRGB_BLOCK = 168,
406 VK_FORMAT_ASTC_8x6_UNORM_BLOCK = 169,
407 VK_FORMAT_ASTC_8x6_SRGB_BLOCK = 170,
408 VK_FORMAT_ASTC_8x8_UNORM_BLOCK = 171,
409 VK_FORMAT_ASTC_8x8_SRGB_BLOCK = 172,
410 VK_FORMAT_ASTC_10x5_UNORM_BLOCK = 173,
411 VK_FORMAT_ASTC_10x5_SRGB_BLOCK = 174,
412 VK_FORMAT_ASTC_10x6_UNORM_BLOCK = 175,
413 VK_FORMAT_ASTC_10x6_SRGB_BLOCK = 176,
414 VK_FORMAT_ASTC_10x8_UNORM_BLOCK = 177,
415 VK_FORMAT_ASTC_10x8_SRGB_BLOCK = 178,
416 VK_FORMAT_ASTC_10x10_UNORM_BLOCK = 179,
417 VK_FORMAT_ASTC_10x10_SRGB_BLOCK = 180,
418 VK_FORMAT_ASTC_12x10_UNORM_BLOCK = 181,
419 VK_FORMAT_ASTC_12x10_SRGB_BLOCK = 182,
420 VK_FORMAT_ASTC_12x12_UNORM_BLOCK = 183,
421 VK_FORMAT_ASTC_12x12_SRGB_BLOCK = 184,
Jesse Hall04f4f472015-08-16 19:51:04 -0700422 VK_FORMAT_BEGIN_RANGE = VK_FORMAT_UNDEFINED,
Jesse Hallf4ab2b12015-11-30 16:04:55 -0800423 VK_FORMAT_END_RANGE = VK_FORMAT_ASTC_12x12_SRGB_BLOCK,
424 VK_FORMAT_RANGE_SIZE = (VK_FORMAT_ASTC_12x12_SRGB_BLOCK - VK_FORMAT_UNDEFINED + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700425 VK_FORMAT_MAX_ENUM = 0x7FFFFFFF
426} VkFormat;
427
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800428typedef enum VkImageType {
Jesse Hall04f4f472015-08-16 19:51:04 -0700429 VK_IMAGE_TYPE_1D = 0,
430 VK_IMAGE_TYPE_2D = 1,
431 VK_IMAGE_TYPE_3D = 2,
432 VK_IMAGE_TYPE_BEGIN_RANGE = VK_IMAGE_TYPE_1D,
433 VK_IMAGE_TYPE_END_RANGE = VK_IMAGE_TYPE_3D,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800434 VK_IMAGE_TYPE_RANGE_SIZE = (VK_IMAGE_TYPE_3D - VK_IMAGE_TYPE_1D + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700435 VK_IMAGE_TYPE_MAX_ENUM = 0x7FFFFFFF
436} VkImageType;
437
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800438typedef enum VkImageTiling {
Jesse Hallc7467b72015-11-29 21:05:26 -0800439 VK_IMAGE_TILING_OPTIMAL = 0,
440 VK_IMAGE_TILING_LINEAR = 1,
441 VK_IMAGE_TILING_BEGIN_RANGE = VK_IMAGE_TILING_OPTIMAL,
442 VK_IMAGE_TILING_END_RANGE = VK_IMAGE_TILING_LINEAR,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800443 VK_IMAGE_TILING_RANGE_SIZE = (VK_IMAGE_TILING_LINEAR - VK_IMAGE_TILING_OPTIMAL + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700444 VK_IMAGE_TILING_MAX_ENUM = 0x7FFFFFFF
445} VkImageTiling;
446
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800447typedef enum VkPhysicalDeviceType {
Jesse Hall04f4f472015-08-16 19:51:04 -0700448 VK_PHYSICAL_DEVICE_TYPE_OTHER = 0,
449 VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU = 1,
450 VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU = 2,
451 VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU = 3,
452 VK_PHYSICAL_DEVICE_TYPE_CPU = 4,
453 VK_PHYSICAL_DEVICE_TYPE_BEGIN_RANGE = VK_PHYSICAL_DEVICE_TYPE_OTHER,
454 VK_PHYSICAL_DEVICE_TYPE_END_RANGE = VK_PHYSICAL_DEVICE_TYPE_CPU,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800455 VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE = (VK_PHYSICAL_DEVICE_TYPE_CPU - VK_PHYSICAL_DEVICE_TYPE_OTHER + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700456 VK_PHYSICAL_DEVICE_TYPE_MAX_ENUM = 0x7FFFFFFF
457} VkPhysicalDeviceType;
458
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800459typedef enum VkQueryType {
Jesse Hall04f4f472015-08-16 19:51:04 -0700460 VK_QUERY_TYPE_OCCLUSION = 0,
461 VK_QUERY_TYPE_PIPELINE_STATISTICS = 1,
Jesse Halla3a7a1d2015-11-24 11:37:23 -0800462 VK_QUERY_TYPE_TIMESTAMP = 2,
Jesse Hall04f4f472015-08-16 19:51:04 -0700463 VK_QUERY_TYPE_BEGIN_RANGE = VK_QUERY_TYPE_OCCLUSION,
Jesse Halla3a7a1d2015-11-24 11:37:23 -0800464 VK_QUERY_TYPE_END_RANGE = VK_QUERY_TYPE_TIMESTAMP,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800465 VK_QUERY_TYPE_RANGE_SIZE = (VK_QUERY_TYPE_TIMESTAMP - VK_QUERY_TYPE_OCCLUSION + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700466 VK_QUERY_TYPE_MAX_ENUM = 0x7FFFFFFF
467} VkQueryType;
468
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800469typedef enum VkSharingMode {
Jesse Hall04f4f472015-08-16 19:51:04 -0700470 VK_SHARING_MODE_EXCLUSIVE = 0,
471 VK_SHARING_MODE_CONCURRENT = 1,
472 VK_SHARING_MODE_BEGIN_RANGE = VK_SHARING_MODE_EXCLUSIVE,
473 VK_SHARING_MODE_END_RANGE = VK_SHARING_MODE_CONCURRENT,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800474 VK_SHARING_MODE_RANGE_SIZE = (VK_SHARING_MODE_CONCURRENT - VK_SHARING_MODE_EXCLUSIVE + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700475 VK_SHARING_MODE_MAX_ENUM = 0x7FFFFFFF
476} VkSharingMode;
477
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800478typedef enum VkImageLayout {
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700479 VK_IMAGE_LAYOUT_UNDEFINED = 0,
480 VK_IMAGE_LAYOUT_GENERAL = 1,
481 VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = 2,
482 VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = 3,
483 VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = 4,
484 VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = 5,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800485 VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = 6,
486 VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL = 7,
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700487 VK_IMAGE_LAYOUT_PREINITIALIZED = 8,
Jesse Hallbd888842015-11-30 21:44:14 -0800488 VK_IMAGE_LAYOUT_PRESENT_SRC_KHR = 1000001002,
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700489 VK_IMAGE_LAYOUT_BEGIN_RANGE = VK_IMAGE_LAYOUT_UNDEFINED,
490 VK_IMAGE_LAYOUT_END_RANGE = VK_IMAGE_LAYOUT_PREINITIALIZED,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800491 VK_IMAGE_LAYOUT_RANGE_SIZE = (VK_IMAGE_LAYOUT_PREINITIALIZED - VK_IMAGE_LAYOUT_UNDEFINED + 1),
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700492 VK_IMAGE_LAYOUT_MAX_ENUM = 0x7FFFFFFF
493} VkImageLayout;
Jesse Hall04f4f472015-08-16 19:51:04 -0700494
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800495typedef enum VkImageViewType {
Jesse Hall04f4f472015-08-16 19:51:04 -0700496 VK_IMAGE_VIEW_TYPE_1D = 0,
497 VK_IMAGE_VIEW_TYPE_2D = 1,
498 VK_IMAGE_VIEW_TYPE_3D = 2,
499 VK_IMAGE_VIEW_TYPE_CUBE = 3,
500 VK_IMAGE_VIEW_TYPE_1D_ARRAY = 4,
501 VK_IMAGE_VIEW_TYPE_2D_ARRAY = 5,
502 VK_IMAGE_VIEW_TYPE_CUBE_ARRAY = 6,
503 VK_IMAGE_VIEW_TYPE_BEGIN_RANGE = VK_IMAGE_VIEW_TYPE_1D,
504 VK_IMAGE_VIEW_TYPE_END_RANGE = VK_IMAGE_VIEW_TYPE_CUBE_ARRAY,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800505 VK_IMAGE_VIEW_TYPE_RANGE_SIZE = (VK_IMAGE_VIEW_TYPE_CUBE_ARRAY - VK_IMAGE_VIEW_TYPE_1D + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700506 VK_IMAGE_VIEW_TYPE_MAX_ENUM = 0x7FFFFFFF
507} VkImageViewType;
508
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800509typedef enum VkComponentSwizzle {
Jesse Hall65ab5522015-11-30 00:07:16 -0800510 VK_COMPONENT_SWIZZLE_IDENTITY = 0,
511 VK_COMPONENT_SWIZZLE_ZERO = 1,
512 VK_COMPONENT_SWIZZLE_ONE = 2,
513 VK_COMPONENT_SWIZZLE_R = 3,
514 VK_COMPONENT_SWIZZLE_G = 4,
515 VK_COMPONENT_SWIZZLE_B = 5,
516 VK_COMPONENT_SWIZZLE_A = 6,
517 VK_COMPONENT_SWIZZLE_BEGIN_RANGE = VK_COMPONENT_SWIZZLE_IDENTITY,
518 VK_COMPONENT_SWIZZLE_END_RANGE = VK_COMPONENT_SWIZZLE_A,
519 VK_COMPONENT_SWIZZLE_RANGE_SIZE = (VK_COMPONENT_SWIZZLE_A - VK_COMPONENT_SWIZZLE_IDENTITY + 1),
520 VK_COMPONENT_SWIZZLE_MAX_ENUM = 0x7FFFFFFF
521} VkComponentSwizzle;
Jesse Hall04f4f472015-08-16 19:51:04 -0700522
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800523typedef enum VkVertexInputRate {
Jesse Hall65ab5522015-11-30 00:07:16 -0800524 VK_VERTEX_INPUT_RATE_VERTEX = 0,
525 VK_VERTEX_INPUT_RATE_INSTANCE = 1,
526 VK_VERTEX_INPUT_RATE_BEGIN_RANGE = VK_VERTEX_INPUT_RATE_VERTEX,
527 VK_VERTEX_INPUT_RATE_END_RANGE = VK_VERTEX_INPUT_RATE_INSTANCE,
528 VK_VERTEX_INPUT_RATE_RANGE_SIZE = (VK_VERTEX_INPUT_RATE_INSTANCE - VK_VERTEX_INPUT_RATE_VERTEX + 1),
529 VK_VERTEX_INPUT_RATE_MAX_ENUM = 0x7FFFFFFF
530} VkVertexInputRate;
Jesse Hall04f4f472015-08-16 19:51:04 -0700531
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800532typedef enum VkPrimitiveTopology {
Jesse Hall04f4f472015-08-16 19:51:04 -0700533 VK_PRIMITIVE_TOPOLOGY_POINT_LIST = 0,
534 VK_PRIMITIVE_TOPOLOGY_LINE_LIST = 1,
535 VK_PRIMITIVE_TOPOLOGY_LINE_STRIP = 2,
536 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST = 3,
537 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP = 4,
538 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN = 5,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800539 VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY = 6,
540 VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY = 7,
541 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY = 8,
542 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY = 9,
Jesse Hall091ed9e2015-11-30 00:55:29 -0800543 VK_PRIMITIVE_TOPOLOGY_PATCH_LIST = 10,
Jesse Hall04f4f472015-08-16 19:51:04 -0700544 VK_PRIMITIVE_TOPOLOGY_BEGIN_RANGE = VK_PRIMITIVE_TOPOLOGY_POINT_LIST,
Jesse Hall091ed9e2015-11-30 00:55:29 -0800545 VK_PRIMITIVE_TOPOLOGY_END_RANGE = VK_PRIMITIVE_TOPOLOGY_PATCH_LIST,
546 VK_PRIMITIVE_TOPOLOGY_RANGE_SIZE = (VK_PRIMITIVE_TOPOLOGY_PATCH_LIST - VK_PRIMITIVE_TOPOLOGY_POINT_LIST + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700547 VK_PRIMITIVE_TOPOLOGY_MAX_ENUM = 0x7FFFFFFF
548} VkPrimitiveTopology;
549
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800550typedef enum VkPolygonMode {
Jesse Hall65ab5522015-11-30 00:07:16 -0800551 VK_POLYGON_MODE_FILL = 0,
552 VK_POLYGON_MODE_LINE = 1,
553 VK_POLYGON_MODE_POINT = 2,
554 VK_POLYGON_MODE_BEGIN_RANGE = VK_POLYGON_MODE_FILL,
555 VK_POLYGON_MODE_END_RANGE = VK_POLYGON_MODE_POINT,
556 VK_POLYGON_MODE_RANGE_SIZE = (VK_POLYGON_MODE_POINT - VK_POLYGON_MODE_FILL + 1),
557 VK_POLYGON_MODE_MAX_ENUM = 0x7FFFFFFF
558} VkPolygonMode;
Jesse Hall04f4f472015-08-16 19:51:04 -0700559
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800560typedef enum VkFrontFace {
Jesse Hall3fbc8562015-11-29 22:10:52 -0800561 VK_FRONT_FACE_COUNTER_CLOCKWISE = 0,
562 VK_FRONT_FACE_CLOCKWISE = 1,
563 VK_FRONT_FACE_BEGIN_RANGE = VK_FRONT_FACE_COUNTER_CLOCKWISE,
564 VK_FRONT_FACE_END_RANGE = VK_FRONT_FACE_CLOCKWISE,
565 VK_FRONT_FACE_RANGE_SIZE = (VK_FRONT_FACE_CLOCKWISE - VK_FRONT_FACE_COUNTER_CLOCKWISE + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700566 VK_FRONT_FACE_MAX_ENUM = 0x7FFFFFFF
567} VkFrontFace;
568
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800569typedef enum VkCompareOp {
Jesse Hall04f4f472015-08-16 19:51:04 -0700570 VK_COMPARE_OP_NEVER = 0,
571 VK_COMPARE_OP_LESS = 1,
572 VK_COMPARE_OP_EQUAL = 2,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800573 VK_COMPARE_OP_LESS_OR_EQUAL = 3,
Jesse Hall04f4f472015-08-16 19:51:04 -0700574 VK_COMPARE_OP_GREATER = 4,
575 VK_COMPARE_OP_NOT_EQUAL = 5,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800576 VK_COMPARE_OP_GREATER_OR_EQUAL = 6,
Jesse Hall04f4f472015-08-16 19:51:04 -0700577 VK_COMPARE_OP_ALWAYS = 7,
578 VK_COMPARE_OP_BEGIN_RANGE = VK_COMPARE_OP_NEVER,
579 VK_COMPARE_OP_END_RANGE = VK_COMPARE_OP_ALWAYS,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800580 VK_COMPARE_OP_RANGE_SIZE = (VK_COMPARE_OP_ALWAYS - VK_COMPARE_OP_NEVER + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700581 VK_COMPARE_OP_MAX_ENUM = 0x7FFFFFFF
582} VkCompareOp;
583
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800584typedef enum VkStencilOp {
Jesse Hall04f4f472015-08-16 19:51:04 -0700585 VK_STENCIL_OP_KEEP = 0,
586 VK_STENCIL_OP_ZERO = 1,
587 VK_STENCIL_OP_REPLACE = 2,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800588 VK_STENCIL_OP_INCREMENT_AND_CLAMP = 3,
589 VK_STENCIL_OP_DECREMENT_AND_CLAMP = 4,
Jesse Hall04f4f472015-08-16 19:51:04 -0700590 VK_STENCIL_OP_INVERT = 5,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800591 VK_STENCIL_OP_INCREMENT_AND_WRAP = 6,
592 VK_STENCIL_OP_DECREMENT_AND_WRAP = 7,
Jesse Hall04f4f472015-08-16 19:51:04 -0700593 VK_STENCIL_OP_BEGIN_RANGE = VK_STENCIL_OP_KEEP,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800594 VK_STENCIL_OP_END_RANGE = VK_STENCIL_OP_DECREMENT_AND_WRAP,
595 VK_STENCIL_OP_RANGE_SIZE = (VK_STENCIL_OP_DECREMENT_AND_WRAP - VK_STENCIL_OP_KEEP + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700596 VK_STENCIL_OP_MAX_ENUM = 0x7FFFFFFF
597} VkStencilOp;
598
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800599typedef enum VkLogicOp {
Jesse Hall04f4f472015-08-16 19:51:04 -0700600 VK_LOGIC_OP_CLEAR = 0,
601 VK_LOGIC_OP_AND = 1,
602 VK_LOGIC_OP_AND_REVERSE = 2,
603 VK_LOGIC_OP_COPY = 3,
604 VK_LOGIC_OP_AND_INVERTED = 4,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800605 VK_LOGIC_OP_NO_OP = 5,
Jesse Hall04f4f472015-08-16 19:51:04 -0700606 VK_LOGIC_OP_XOR = 6,
607 VK_LOGIC_OP_OR = 7,
608 VK_LOGIC_OP_NOR = 8,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800609 VK_LOGIC_OP_EQUIVALENT = 9,
Jesse Hall04f4f472015-08-16 19:51:04 -0700610 VK_LOGIC_OP_INVERT = 10,
611 VK_LOGIC_OP_OR_REVERSE = 11,
612 VK_LOGIC_OP_COPY_INVERTED = 12,
613 VK_LOGIC_OP_OR_INVERTED = 13,
614 VK_LOGIC_OP_NAND = 14,
615 VK_LOGIC_OP_SET = 15,
616 VK_LOGIC_OP_BEGIN_RANGE = VK_LOGIC_OP_CLEAR,
617 VK_LOGIC_OP_END_RANGE = VK_LOGIC_OP_SET,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800618 VK_LOGIC_OP_RANGE_SIZE = (VK_LOGIC_OP_SET - VK_LOGIC_OP_CLEAR + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700619 VK_LOGIC_OP_MAX_ENUM = 0x7FFFFFFF
620} VkLogicOp;
621
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800622typedef enum VkBlendFactor {
Jesse Hall65ab5522015-11-30 00:07:16 -0800623 VK_BLEND_FACTOR_ZERO = 0,
624 VK_BLEND_FACTOR_ONE = 1,
625 VK_BLEND_FACTOR_SRC_COLOR = 2,
626 VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR = 3,
627 VK_BLEND_FACTOR_DST_COLOR = 4,
628 VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR = 5,
629 VK_BLEND_FACTOR_SRC_ALPHA = 6,
630 VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA = 7,
631 VK_BLEND_FACTOR_DST_ALPHA = 8,
632 VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA = 9,
633 VK_BLEND_FACTOR_CONSTANT_COLOR = 10,
634 VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR = 11,
635 VK_BLEND_FACTOR_CONSTANT_ALPHA = 12,
636 VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA = 13,
637 VK_BLEND_FACTOR_SRC_ALPHA_SATURATE = 14,
638 VK_BLEND_FACTOR_SRC1_COLOR = 15,
639 VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR = 16,
640 VK_BLEND_FACTOR_SRC1_ALPHA = 17,
641 VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA = 18,
642 VK_BLEND_FACTOR_BEGIN_RANGE = VK_BLEND_FACTOR_ZERO,
643 VK_BLEND_FACTOR_END_RANGE = VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA,
644 VK_BLEND_FACTOR_RANGE_SIZE = (VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA - VK_BLEND_FACTOR_ZERO + 1),
645 VK_BLEND_FACTOR_MAX_ENUM = 0x7FFFFFFF
646} VkBlendFactor;
Jesse Hall04f4f472015-08-16 19:51:04 -0700647
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800648typedef enum VkBlendOp {
Jesse Hall04f4f472015-08-16 19:51:04 -0700649 VK_BLEND_OP_ADD = 0,
650 VK_BLEND_OP_SUBTRACT = 1,
651 VK_BLEND_OP_REVERSE_SUBTRACT = 2,
652 VK_BLEND_OP_MIN = 3,
653 VK_BLEND_OP_MAX = 4,
654 VK_BLEND_OP_BEGIN_RANGE = VK_BLEND_OP_ADD,
655 VK_BLEND_OP_END_RANGE = VK_BLEND_OP_MAX,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800656 VK_BLEND_OP_RANGE_SIZE = (VK_BLEND_OP_MAX - VK_BLEND_OP_ADD + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700657 VK_BLEND_OP_MAX_ENUM = 0x7FFFFFFF
658} VkBlendOp;
659
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800660typedef enum VkDynamicState {
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700661 VK_DYNAMIC_STATE_VIEWPORT = 0,
662 VK_DYNAMIC_STATE_SCISSOR = 1,
663 VK_DYNAMIC_STATE_LINE_WIDTH = 2,
664 VK_DYNAMIC_STATE_DEPTH_BIAS = 3,
665 VK_DYNAMIC_STATE_BLEND_CONSTANTS = 4,
666 VK_DYNAMIC_STATE_DEPTH_BOUNDS = 5,
667 VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK = 6,
668 VK_DYNAMIC_STATE_STENCIL_WRITE_MASK = 7,
669 VK_DYNAMIC_STATE_STENCIL_REFERENCE = 8,
670 VK_DYNAMIC_STATE_BEGIN_RANGE = VK_DYNAMIC_STATE_VIEWPORT,
671 VK_DYNAMIC_STATE_END_RANGE = VK_DYNAMIC_STATE_STENCIL_REFERENCE,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800672 VK_DYNAMIC_STATE_RANGE_SIZE = (VK_DYNAMIC_STATE_STENCIL_REFERENCE - VK_DYNAMIC_STATE_VIEWPORT + 1),
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700673 VK_DYNAMIC_STATE_MAX_ENUM = 0x7FFFFFFF
674} VkDynamicState;
675
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800676typedef enum VkFilter {
Jesse Hall23ff73f2015-11-29 14:36:39 -0800677 VK_FILTER_NEAREST = 0,
678 VK_FILTER_LINEAR = 1,
679 VK_FILTER_BEGIN_RANGE = VK_FILTER_NEAREST,
680 VK_FILTER_END_RANGE = VK_FILTER_LINEAR,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800681 VK_FILTER_RANGE_SIZE = (VK_FILTER_LINEAR - VK_FILTER_NEAREST + 1),
Jesse Hall23ff73f2015-11-29 14:36:39 -0800682 VK_FILTER_MAX_ENUM = 0x7FFFFFFF
683} VkFilter;
Jesse Hall04f4f472015-08-16 19:51:04 -0700684
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800685typedef enum VkSamplerMipmapMode {
Jesse Hall3dd678a2016-01-08 21:52:01 -0800686 VK_SAMPLER_MIPMAP_MODE_NEAREST = 0,
687 VK_SAMPLER_MIPMAP_MODE_LINEAR = 1,
688 VK_SAMPLER_MIPMAP_MODE_BEGIN_RANGE = VK_SAMPLER_MIPMAP_MODE_NEAREST,
Jesse Hall23ff73f2015-11-29 14:36:39 -0800689 VK_SAMPLER_MIPMAP_MODE_END_RANGE = VK_SAMPLER_MIPMAP_MODE_LINEAR,
Jesse Hall3dd678a2016-01-08 21:52:01 -0800690 VK_SAMPLER_MIPMAP_MODE_RANGE_SIZE = (VK_SAMPLER_MIPMAP_MODE_LINEAR - VK_SAMPLER_MIPMAP_MODE_NEAREST + 1),
Jesse Hall23ff73f2015-11-29 14:36:39 -0800691 VK_SAMPLER_MIPMAP_MODE_MAX_ENUM = 0x7FFFFFFF
692} VkSamplerMipmapMode;
Jesse Hall04f4f472015-08-16 19:51:04 -0700693
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800694typedef enum VkSamplerAddressMode {
Jesse Hallc7467b72015-11-29 21:05:26 -0800695 VK_SAMPLER_ADDRESS_MODE_REPEAT = 0,
696 VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT = 1,
697 VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE = 2,
698 VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER = 3,
699 VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE = 4,
700 VK_SAMPLER_ADDRESS_MODE_BEGIN_RANGE = VK_SAMPLER_ADDRESS_MODE_REPEAT,
701 VK_SAMPLER_ADDRESS_MODE_END_RANGE = VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800702 VK_SAMPLER_ADDRESS_MODE_RANGE_SIZE = (VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE - VK_SAMPLER_ADDRESS_MODE_REPEAT + 1),
Jesse Hall23ff73f2015-11-29 14:36:39 -0800703 VK_SAMPLER_ADDRESS_MODE_MAX_ENUM = 0x7FFFFFFF
704} VkSamplerAddressMode;
Jesse Hall04f4f472015-08-16 19:51:04 -0700705
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800706typedef enum VkBorderColor {
Jesse Hall04f4f472015-08-16 19:51:04 -0700707 VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = 0,
708 VK_BORDER_COLOR_INT_TRANSPARENT_BLACK = 1,
709 VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK = 2,
710 VK_BORDER_COLOR_INT_OPAQUE_BLACK = 3,
711 VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE = 4,
712 VK_BORDER_COLOR_INT_OPAQUE_WHITE = 5,
713 VK_BORDER_COLOR_BEGIN_RANGE = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK,
714 VK_BORDER_COLOR_END_RANGE = VK_BORDER_COLOR_INT_OPAQUE_WHITE,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800715 VK_BORDER_COLOR_RANGE_SIZE = (VK_BORDER_COLOR_INT_OPAQUE_WHITE - VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700716 VK_BORDER_COLOR_MAX_ENUM = 0x7FFFFFFF
717} VkBorderColor;
718
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800719typedef enum VkDescriptorType {
Jesse Hall04f4f472015-08-16 19:51:04 -0700720 VK_DESCRIPTOR_TYPE_SAMPLER = 0,
721 VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = 1,
722 VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE = 2,
723 VK_DESCRIPTOR_TYPE_STORAGE_IMAGE = 3,
724 VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = 4,
725 VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = 5,
726 VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER = 6,
727 VK_DESCRIPTOR_TYPE_STORAGE_BUFFER = 7,
728 VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = 8,
729 VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = 9,
730 VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT = 10,
731 VK_DESCRIPTOR_TYPE_BEGIN_RANGE = VK_DESCRIPTOR_TYPE_SAMPLER,
732 VK_DESCRIPTOR_TYPE_END_RANGE = VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800733 VK_DESCRIPTOR_TYPE_RANGE_SIZE = (VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT - VK_DESCRIPTOR_TYPE_SAMPLER + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700734 VK_DESCRIPTOR_TYPE_MAX_ENUM = 0x7FFFFFFF
735} VkDescriptorType;
736
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800737typedef enum VkAttachmentLoadOp {
Jesse Hall04f4f472015-08-16 19:51:04 -0700738 VK_ATTACHMENT_LOAD_OP_LOAD = 0,
739 VK_ATTACHMENT_LOAD_OP_CLEAR = 1,
740 VK_ATTACHMENT_LOAD_OP_DONT_CARE = 2,
741 VK_ATTACHMENT_LOAD_OP_BEGIN_RANGE = VK_ATTACHMENT_LOAD_OP_LOAD,
742 VK_ATTACHMENT_LOAD_OP_END_RANGE = VK_ATTACHMENT_LOAD_OP_DONT_CARE,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800743 VK_ATTACHMENT_LOAD_OP_RANGE_SIZE = (VK_ATTACHMENT_LOAD_OP_DONT_CARE - VK_ATTACHMENT_LOAD_OP_LOAD + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700744 VK_ATTACHMENT_LOAD_OP_MAX_ENUM = 0x7FFFFFFF
745} VkAttachmentLoadOp;
746
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800747typedef enum VkAttachmentStoreOp {
Jesse Hall04f4f472015-08-16 19:51:04 -0700748 VK_ATTACHMENT_STORE_OP_STORE = 0,
749 VK_ATTACHMENT_STORE_OP_DONT_CARE = 1,
750 VK_ATTACHMENT_STORE_OP_BEGIN_RANGE = VK_ATTACHMENT_STORE_OP_STORE,
751 VK_ATTACHMENT_STORE_OP_END_RANGE = VK_ATTACHMENT_STORE_OP_DONT_CARE,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800752 VK_ATTACHMENT_STORE_OP_RANGE_SIZE = (VK_ATTACHMENT_STORE_OP_DONT_CARE - VK_ATTACHMENT_STORE_OP_STORE + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700753 VK_ATTACHMENT_STORE_OP_MAX_ENUM = 0x7FFFFFFF
754} VkAttachmentStoreOp;
755
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800756typedef enum VkPipelineBindPoint {
Jesse Hallc7467b72015-11-29 21:05:26 -0800757 VK_PIPELINE_BIND_POINT_GRAPHICS = 0,
758 VK_PIPELINE_BIND_POINT_COMPUTE = 1,
759 VK_PIPELINE_BIND_POINT_BEGIN_RANGE = VK_PIPELINE_BIND_POINT_GRAPHICS,
760 VK_PIPELINE_BIND_POINT_END_RANGE = VK_PIPELINE_BIND_POINT_COMPUTE,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800761 VK_PIPELINE_BIND_POINT_RANGE_SIZE = (VK_PIPELINE_BIND_POINT_COMPUTE - VK_PIPELINE_BIND_POINT_GRAPHICS + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700762 VK_PIPELINE_BIND_POINT_MAX_ENUM = 0x7FFFFFFF
763} VkPipelineBindPoint;
764
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800765typedef enum VkCommandBufferLevel {
Jesse Hall3fbc8562015-11-29 22:10:52 -0800766 VK_COMMAND_BUFFER_LEVEL_PRIMARY = 0,
767 VK_COMMAND_BUFFER_LEVEL_SECONDARY = 1,
768 VK_COMMAND_BUFFER_LEVEL_BEGIN_RANGE = VK_COMMAND_BUFFER_LEVEL_PRIMARY,
769 VK_COMMAND_BUFFER_LEVEL_END_RANGE = VK_COMMAND_BUFFER_LEVEL_SECONDARY,
770 VK_COMMAND_BUFFER_LEVEL_RANGE_SIZE = (VK_COMMAND_BUFFER_LEVEL_SECONDARY - VK_COMMAND_BUFFER_LEVEL_PRIMARY + 1),
771 VK_COMMAND_BUFFER_LEVEL_MAX_ENUM = 0x7FFFFFFF
772} VkCommandBufferLevel;
Jesse Hall04f4f472015-08-16 19:51:04 -0700773
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800774typedef enum VkIndexType {
Jesse Hall04f4f472015-08-16 19:51:04 -0700775 VK_INDEX_TYPE_UINT16 = 0,
776 VK_INDEX_TYPE_UINT32 = 1,
777 VK_INDEX_TYPE_BEGIN_RANGE = VK_INDEX_TYPE_UINT16,
778 VK_INDEX_TYPE_END_RANGE = VK_INDEX_TYPE_UINT32,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800779 VK_INDEX_TYPE_RANGE_SIZE = (VK_INDEX_TYPE_UINT32 - VK_INDEX_TYPE_UINT16 + 1),
Jesse Hall04f4f472015-08-16 19:51:04 -0700780 VK_INDEX_TYPE_MAX_ENUM = 0x7FFFFFFF
781} VkIndexType;
782
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800783typedef enum VkSubpassContents {
Jesse Hall65ab5522015-11-30 00:07:16 -0800784 VK_SUBPASS_CONTENTS_INLINE = 0,
785 VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS = 1,
786 VK_SUBPASS_CONTENTS_BEGIN_RANGE = VK_SUBPASS_CONTENTS_INLINE,
787 VK_SUBPASS_CONTENTS_END_RANGE = VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS,
788 VK_SUBPASS_CONTENTS_RANGE_SIZE = (VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS - VK_SUBPASS_CONTENTS_INLINE + 1),
789 VK_SUBPASS_CONTENTS_MAX_ENUM = 0x7FFFFFFF
790} VkSubpassContents;
Jesse Hall04f4f472015-08-16 19:51:04 -0700791
Jesse Halla6429252015-11-29 18:59:42 -0800792typedef VkFlags VkInstanceCreateFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -0700793
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800794typedef enum VkFormatFeatureFlagBits {
Jesse Hall04f4f472015-08-16 19:51:04 -0700795 VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = 0x00000001,
796 VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = 0x00000002,
797 VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = 0x00000004,
798 VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000008,
799 VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = 0x00000010,
800 VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 0x00000020,
801 VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = 0x00000040,
802 VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 0x00000080,
803 VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = 0x00000100,
804 VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000200,
Jesse Hall3fbc8562015-11-29 22:10:52 -0800805 VK_FORMAT_FEATURE_BLIT_SRC_BIT = 0x00000400,
806 VK_FORMAT_FEATURE_BLIT_DST_BIT = 0x00000800,
Jesse Hall04f4f472015-08-16 19:51:04 -0700807} VkFormatFeatureFlagBits;
808typedef VkFlags VkFormatFeatureFlags;
809
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800810typedef enum VkImageUsageFlagBits {
Jesse Hall3fbc8562015-11-29 22:10:52 -0800811 VK_IMAGE_USAGE_TRANSFER_SRC_BIT = 0x00000001,
812 VK_IMAGE_USAGE_TRANSFER_DST_BIT = 0x00000002,
Jesse Hall04f4f472015-08-16 19:51:04 -0700813 VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004,
814 VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008,
815 VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010,
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700816 VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000020,
Jesse Hall04f4f472015-08-16 19:51:04 -0700817 VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040,
818 VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 0x00000080,
819} VkImageUsageFlagBits;
820typedef VkFlags VkImageUsageFlags;
821
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800822typedef enum VkImageCreateFlagBits {
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700823 VK_IMAGE_CREATE_SPARSE_BINDING_BIT = 0x00000001,
824 VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002,
825 VK_IMAGE_CREATE_SPARSE_ALIASED_BIT = 0x00000004,
826 VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = 0x00000008,
827 VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = 0x00000010,
828} VkImageCreateFlagBits;
829typedef VkFlags VkImageCreateFlags;
830
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800831typedef enum VkSampleCountFlagBits {
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700832 VK_SAMPLE_COUNT_1_BIT = 0x00000001,
833 VK_SAMPLE_COUNT_2_BIT = 0x00000002,
834 VK_SAMPLE_COUNT_4_BIT = 0x00000004,
835 VK_SAMPLE_COUNT_8_BIT = 0x00000008,
836 VK_SAMPLE_COUNT_16_BIT = 0x00000010,
837 VK_SAMPLE_COUNT_32_BIT = 0x00000020,
838 VK_SAMPLE_COUNT_64_BIT = 0x00000040,
839} VkSampleCountFlagBits;
840typedef VkFlags VkSampleCountFlags;
841
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800842typedef enum VkQueueFlagBits {
Jesse Hall04f4f472015-08-16 19:51:04 -0700843 VK_QUEUE_GRAPHICS_BIT = 0x00000001,
844 VK_QUEUE_COMPUTE_BIT = 0x00000002,
Jesse Hall65ab5522015-11-30 00:07:16 -0800845 VK_QUEUE_TRANSFER_BIT = 0x00000004,
Jesse Hallb00daad2015-11-29 19:46:20 -0800846 VK_QUEUE_SPARSE_BINDING_BIT = 0x00000008,
Jesse Hall04f4f472015-08-16 19:51:04 -0700847} VkQueueFlagBits;
848typedef VkFlags VkQueueFlags;
849
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800850typedef enum VkMemoryPropertyFlagBits {
Jesse Halld1af8122015-11-29 23:50:38 -0800851 VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT = 0x00000001,
852 VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT = 0x00000002,
853 VK_MEMORY_PROPERTY_HOST_COHERENT_BIT = 0x00000004,
854 VK_MEMORY_PROPERTY_HOST_CACHED_BIT = 0x00000008,
855 VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT = 0x00000010,
Jesse Hall04f4f472015-08-16 19:51:04 -0700856} VkMemoryPropertyFlagBits;
857typedef VkFlags VkMemoryPropertyFlags;
858
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800859typedef enum VkMemoryHeapFlagBits {
Jesse Halld1af8122015-11-29 23:50:38 -0800860 VK_MEMORY_HEAP_DEVICE_LOCAL_BIT = 0x00000001,
Jesse Hall04f4f472015-08-16 19:51:04 -0700861} VkMemoryHeapFlagBits;
862typedef VkFlags VkMemoryHeapFlags;
Jesse Halla6429252015-11-29 18:59:42 -0800863typedef VkFlags VkDeviceCreateFlags;
864typedef VkFlags VkDeviceQueueCreateFlags;
Jesse Hall543a7ff2016-01-08 16:38:30 -0800865
866typedef enum VkPipelineStageFlagBits {
867 VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT = 0x00000001,
868 VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT = 0x00000002,
869 VK_PIPELINE_STAGE_VERTEX_INPUT_BIT = 0x00000004,
870 VK_PIPELINE_STAGE_VERTEX_SHADER_BIT = 0x00000008,
871 VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT = 0x00000010,
872 VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT = 0x00000020,
873 VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT = 0x00000040,
874 VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT = 0x00000080,
875 VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT = 0x00000100,
876 VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT = 0x00000200,
877 VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT = 0x00000400,
878 VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT = 0x00000800,
879 VK_PIPELINE_STAGE_TRANSFER_BIT = 0x00001000,
880 VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT = 0x00002000,
881 VK_PIPELINE_STAGE_HOST_BIT = 0x00004000,
882 VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT = 0x00008000,
883 VK_PIPELINE_STAGE_ALL_COMMANDS_BIT = 0x00010000,
884} VkPipelineStageFlagBits;
885typedef VkFlags VkPipelineStageFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -0700886typedef VkFlags VkMemoryMapFlags;
887
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800888typedef enum VkImageAspectFlagBits {
Jesse Halla15a4bf2015-11-19 22:48:02 -0800889 VK_IMAGE_ASPECT_COLOR_BIT = 0x00000001,
890 VK_IMAGE_ASPECT_DEPTH_BIT = 0x00000002,
891 VK_IMAGE_ASPECT_STENCIL_BIT = 0x00000004,
892 VK_IMAGE_ASPECT_METADATA_BIT = 0x00000008,
893} VkImageAspectFlagBits;
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800894typedef VkFlags VkImageAspectFlags;
Jesse Halla15a4bf2015-11-19 22:48:02 -0800895
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800896typedef enum VkSparseImageFormatFlagBits {
Jesse Hallb00daad2015-11-29 19:46:20 -0800897 VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT = 0x00000001,
898 VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT = 0x00000002,
899 VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT = 0x00000004,
Jesse Hall04f4f472015-08-16 19:51:04 -0700900} VkSparseImageFormatFlagBits;
901typedef VkFlags VkSparseImageFormatFlags;
Jesse Hall091ed9e2015-11-30 00:55:29 -0800902
903typedef enum VkSparseMemoryBindFlagBits {
904 VK_SPARSE_MEMORY_BIND_METADATA_BIT = 0x00000001,
905} VkSparseMemoryBindFlagBits;
Jesse Hall04f4f472015-08-16 19:51:04 -0700906typedef VkFlags VkSparseMemoryBindFlags;
907
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800908typedef enum VkFenceCreateFlagBits {
Jesse Hall04f4f472015-08-16 19:51:04 -0700909 VK_FENCE_CREATE_SIGNALED_BIT = 0x00000001,
910} VkFenceCreateFlagBits;
911typedef VkFlags VkFenceCreateFlags;
912typedef VkFlags VkSemaphoreCreateFlags;
913typedef VkFlags VkEventCreateFlags;
Jesse Halla6429252015-11-29 18:59:42 -0800914typedef VkFlags VkQueryPoolCreateFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -0700915
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800916typedef enum VkQueryPipelineStatisticFlagBits {
Jesse Hallae38f732015-11-19 21:32:50 -0800917 VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT = 0x00000001,
918 VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT = 0x00000002,
919 VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT = 0x00000004,
920 VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT = 0x00000008,
921 VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT = 0x00000010,
922 VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT = 0x00000020,
923 VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT = 0x00000040,
924 VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT = 0x00000080,
925 VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT = 0x00000100,
926 VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT = 0x00000200,
927 VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT = 0x00000400,
Jesse Hall04f4f472015-08-16 19:51:04 -0700928} VkQueryPipelineStatisticFlagBits;
929typedef VkFlags VkQueryPipelineStatisticFlags;
930
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800931typedef enum VkQueryResultFlagBits {
Jesse Hall04f4f472015-08-16 19:51:04 -0700932 VK_QUERY_RESULT_64_BIT = 0x00000001,
933 VK_QUERY_RESULT_WAIT_BIT = 0x00000002,
934 VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = 0x00000004,
935 VK_QUERY_RESULT_PARTIAL_BIT = 0x00000008,
936} VkQueryResultFlagBits;
937typedef VkFlags VkQueryResultFlags;
938
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800939typedef enum VkBufferCreateFlagBits {
Jesse Halla6429252015-11-29 18:59:42 -0800940 VK_BUFFER_CREATE_SPARSE_BINDING_BIT = 0x00000001,
941 VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002,
942 VK_BUFFER_CREATE_SPARSE_ALIASED_BIT = 0x00000004,
943} VkBufferCreateFlagBits;
944typedef VkFlags VkBufferCreateFlags;
945
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800946typedef enum VkBufferUsageFlagBits {
Jesse Hall3fbc8562015-11-29 22:10:52 -0800947 VK_BUFFER_USAGE_TRANSFER_SRC_BIT = 0x00000001,
948 VK_BUFFER_USAGE_TRANSFER_DST_BIT = 0x00000002,
Jesse Hall04f4f472015-08-16 19:51:04 -0700949 VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004,
950 VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = 0x00000008,
951 VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = 0x00000010,
952 VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = 0x00000020,
953 VK_BUFFER_USAGE_INDEX_BUFFER_BIT = 0x00000040,
954 VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = 0x00000080,
955 VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = 0x00000100,
956} VkBufferUsageFlagBits;
957typedef VkFlags VkBufferUsageFlags;
Jesse Halla6429252015-11-29 18:59:42 -0800958typedef VkFlags VkBufferViewCreateFlags;
Jesse Hall5ae3abb2015-10-08 14:00:22 -0700959typedef VkFlags VkImageViewCreateFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -0700960typedef VkFlags VkShaderModuleCreateFlags;
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800961typedef VkFlags VkPipelineCacheCreateFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -0700962
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800963typedef enum VkPipelineCreateFlagBits {
964 VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = 0x00000001,
965 VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = 0x00000002,
966 VK_PIPELINE_CREATE_DERIVATIVE_BIT = 0x00000004,
967} VkPipelineCreateFlagBits;
968typedef VkFlags VkPipelineCreateFlags;
969typedef VkFlags VkPipelineShaderStageCreateFlags;
970
971typedef enum VkShaderStageFlagBits {
Jesse Halla15a4bf2015-11-19 22:48:02 -0800972 VK_SHADER_STAGE_VERTEX_BIT = 0x00000001,
973 VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT = 0x00000002,
974 VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT = 0x00000004,
975 VK_SHADER_STAGE_GEOMETRY_BIT = 0x00000008,
976 VK_SHADER_STAGE_FRAGMENT_BIT = 0x00000010,
977 VK_SHADER_STAGE_COMPUTE_BIT = 0x00000020,
Jesse Hallc7467b72015-11-29 21:05:26 -0800978 VK_SHADER_STAGE_ALL_GRAPHICS = 0x1F,
Jesse Halla15a4bf2015-11-19 22:48:02 -0800979 VK_SHADER_STAGE_ALL = 0x7FFFFFFF,
980} VkShaderStageFlagBits;
Jesse Halla6429252015-11-29 18:59:42 -0800981typedef VkFlags VkPipelineVertexInputStateCreateFlags;
982typedef VkFlags VkPipelineInputAssemblyStateCreateFlags;
Jesse Hall3dd678a2016-01-08 21:52:01 -0800983typedef VkFlags VkPipelineTessellationStateCreateFlags;
Jesse Halla6429252015-11-29 18:59:42 -0800984typedef VkFlags VkPipelineViewportStateCreateFlags;
Jesse Hall3fbc8562015-11-29 22:10:52 -0800985typedef VkFlags VkPipelineRasterizationStateCreateFlags;
Jesse Hallc7467b72015-11-29 21:05:26 -0800986
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800987typedef enum VkCullModeFlagBits {
Jesse Hallc7467b72015-11-29 21:05:26 -0800988 VK_CULL_MODE_NONE = 0,
989 VK_CULL_MODE_FRONT_BIT = 0x00000001,
990 VK_CULL_MODE_BACK_BIT = 0x00000002,
991 VK_CULL_MODE_FRONT_AND_BACK = 0x3,
992} VkCullModeFlagBits;
993typedef VkFlags VkCullModeFlags;
Jesse Halla6429252015-11-29 18:59:42 -0800994typedef VkFlags VkPipelineMultisampleStateCreateFlags;
995typedef VkFlags VkPipelineDepthStencilStateCreateFlags;
996typedef VkFlags VkPipelineColorBlendStateCreateFlags;
Jesse Halla15a4bf2015-11-19 22:48:02 -0800997
Jesse Hall3e0dc8f2015-11-30 00:42:57 -0800998typedef enum VkColorComponentFlagBits {
Jesse Hall65ab5522015-11-30 00:07:16 -0800999 VK_COLOR_COMPONENT_R_BIT = 0x00000001,
1000 VK_COLOR_COMPONENT_G_BIT = 0x00000002,
1001 VK_COLOR_COMPONENT_B_BIT = 0x00000004,
1002 VK_COLOR_COMPONENT_A_BIT = 0x00000008,
1003} VkColorComponentFlagBits;
1004typedef VkFlags VkColorComponentFlags;
Jesse Halla6429252015-11-29 18:59:42 -08001005typedef VkFlags VkPipelineDynamicStateCreateFlags;
1006typedef VkFlags VkPipelineLayoutCreateFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001007typedef VkFlags VkShaderStageFlags;
Jesse Halla6429252015-11-29 18:59:42 -08001008typedef VkFlags VkSamplerCreateFlags;
1009typedef VkFlags VkDescriptorSetLayoutCreateFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001010
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001011typedef enum VkDescriptorPoolCreateFlagBits {
Jesse Hallfbf97b02015-11-20 14:17:03 -08001012 VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT = 0x00000001,
1013} VkDescriptorPoolCreateFlagBits;
1014typedef VkFlags VkDescriptorPoolCreateFlags;
1015typedef VkFlags VkDescriptorPoolResetFlags;
Jesse Halla6429252015-11-29 18:59:42 -08001016typedef VkFlags VkFramebufferCreateFlags;
1017typedef VkFlags VkRenderPassCreateFlags;
Jesse Hallfbf97b02015-11-20 14:17:03 -08001018
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001019typedef enum VkAttachmentDescriptionFlagBits {
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001020 VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT = 0x00000001,
1021} VkAttachmentDescriptionFlagBits;
1022typedef VkFlags VkAttachmentDescriptionFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001023typedef VkFlags VkSubpassDescriptionFlags;
1024
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001025typedef enum VkAccessFlagBits {
1026 VK_ACCESS_INDIRECT_COMMAND_READ_BIT = 0x00000001,
1027 VK_ACCESS_INDEX_READ_BIT = 0x00000002,
1028 VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT = 0x00000004,
1029 VK_ACCESS_UNIFORM_READ_BIT = 0x00000008,
1030 VK_ACCESS_INPUT_ATTACHMENT_READ_BIT = 0x00000010,
1031 VK_ACCESS_SHADER_READ_BIT = 0x00000020,
1032 VK_ACCESS_SHADER_WRITE_BIT = 0x00000040,
1033 VK_ACCESS_COLOR_ATTACHMENT_READ_BIT = 0x00000080,
1034 VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT = 0x00000100,
1035 VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT = 0x00000200,
1036 VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT = 0x00000400,
1037 VK_ACCESS_TRANSFER_READ_BIT = 0x00000800,
1038 VK_ACCESS_TRANSFER_WRITE_BIT = 0x00001000,
1039 VK_ACCESS_HOST_READ_BIT = 0x00002000,
1040 VK_ACCESS_HOST_WRITE_BIT = 0x00004000,
1041 VK_ACCESS_MEMORY_READ_BIT = 0x00008000,
1042 VK_ACCESS_MEMORY_WRITE_BIT = 0x00010000,
1043} VkAccessFlagBits;
1044typedef VkFlags VkAccessFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001045
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001046typedef enum VkDependencyFlagBits {
Jesse Halldc6d36c2015-11-29 19:12:15 -08001047 VK_DEPENDENCY_BY_REGION_BIT = 0x00000001,
1048} VkDependencyFlagBits;
1049typedef VkFlags VkDependencyFlags;
1050
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001051typedef enum VkCommandPoolCreateFlagBits {
Jesse Hall3fbc8562015-11-29 22:10:52 -08001052 VK_COMMAND_POOL_CREATE_TRANSIENT_BIT = 0x00000001,
1053 VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = 0x00000002,
1054} VkCommandPoolCreateFlagBits;
1055typedef VkFlags VkCommandPoolCreateFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001056
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001057typedef enum VkCommandPoolResetFlagBits {
Jesse Hall3fbc8562015-11-29 22:10:52 -08001058 VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT = 0x00000001,
1059} VkCommandPoolResetFlagBits;
1060typedef VkFlags VkCommandPoolResetFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001061
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001062typedef enum VkCommandBufferUsageFlagBits {
Jesse Hall3fbc8562015-11-29 22:10:52 -08001063 VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = 0x00000001,
1064 VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = 0x00000002,
1065 VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = 0x00000004,
1066} VkCommandBufferUsageFlagBits;
1067typedef VkFlags VkCommandBufferUsageFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001068
Jesse Hallf4ab2b12015-11-30 16:04:55 -08001069typedef enum VkQueryControlFlagBits {
1070 VK_QUERY_CONTROL_PRECISE_BIT = 0x00000001,
1071} VkQueryControlFlagBits;
1072typedef VkFlags VkQueryControlFlags;
1073
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001074typedef enum VkCommandBufferResetFlagBits {
Jesse Hall3fbc8562015-11-29 22:10:52 -08001075 VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT = 0x00000001,
1076} VkCommandBufferResetFlagBits;
1077typedef VkFlags VkCommandBufferResetFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001078
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001079typedef enum VkStencilFaceFlagBits {
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001080 VK_STENCIL_FACE_FRONT_BIT = 0x00000001,
1081 VK_STENCIL_FACE_BACK_BIT = 0x00000002,
Jesse Hallc7467b72015-11-29 21:05:26 -08001082 VK_STENCIL_FRONT_AND_BACK = 0x3,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001083} VkStencilFaceFlagBits;
1084typedef VkFlags VkStencilFaceFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001085
Jesse Halle1b12782015-11-30 11:27:32 -08001086typedef void* (VKAPI_PTR *PFN_vkAllocationFunction)(
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001087 void* pUserData,
1088 size_t size,
1089 size_t alignment,
1090 VkSystemAllocationScope allocationScope);
Jesse Hall03b6fe12015-11-24 12:44:21 -08001091
Jesse Halle1b12782015-11-30 11:27:32 -08001092typedef void* (VKAPI_PTR *PFN_vkReallocationFunction)(
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001093 void* pUserData,
1094 void* pOriginal,
1095 size_t size,
1096 size_t alignment,
1097 VkSystemAllocationScope allocationScope);
Jesse Hall04f4f472015-08-16 19:51:04 -07001098
Jesse Halle1b12782015-11-30 11:27:32 -08001099typedef void (VKAPI_PTR *PFN_vkFreeFunction)(
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001100 void* pUserData,
1101 void* pMemory);
Jesse Hall04f4f472015-08-16 19:51:04 -07001102
Jesse Halle1b12782015-11-30 11:27:32 -08001103typedef void (VKAPI_PTR *PFN_vkInternalAllocationNotification)(
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001104 void* pUserData,
1105 size_t size,
1106 VkInternalAllocationType allocationType,
1107 VkSystemAllocationScope allocationScope);
Jesse Hall03b6fe12015-11-24 12:44:21 -08001108
Jesse Halle1b12782015-11-30 11:27:32 -08001109typedef void (VKAPI_PTR *PFN_vkInternalFreeNotification)(
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001110 void* pUserData,
1111 size_t size,
1112 VkInternalAllocationType allocationType,
1113 VkSystemAllocationScope allocationScope);
Jesse Hall03b6fe12015-11-24 12:44:21 -08001114
Jesse Halle1b12782015-11-30 11:27:32 -08001115typedef void (VKAPI_PTR *PFN_vkVoidFunction)(void);
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001116
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001117typedef struct VkApplicationInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001118 VkStructureType sType;
1119 const void* pNext;
1120 const char* pApplicationName;
1121 uint32_t applicationVersion;
1122 const char* pEngineName;
1123 uint32_t engineVersion;
1124 uint32_t apiVersion;
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001125} VkApplicationInfo;
1126
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001127typedef struct VkInstanceCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001128 VkStructureType sType;
1129 const void* pNext;
1130 VkInstanceCreateFlags flags;
1131 const VkApplicationInfo* pApplicationInfo;
1132 uint32_t enabledLayerCount;
1133 const char* const* ppEnabledLayerNames;
1134 uint32_t enabledExtensionCount;
1135 const char* const* ppEnabledExtensionNames;
Jesse Hall04f4f472015-08-16 19:51:04 -07001136} VkInstanceCreateInfo;
1137
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001138typedef struct VkAllocationCallbacks {
Jesse Hall563380d2016-01-15 23:14:05 -08001139 void* pUserData;
1140 PFN_vkAllocationFunction pfnAllocation;
1141 PFN_vkReallocationFunction pfnReallocation;
1142 PFN_vkFreeFunction pfnFree;
1143 PFN_vkInternalAllocationNotification pfnInternalAllocation;
1144 PFN_vkInternalFreeNotification pfnInternalFree;
Jesse Hall3fbc8562015-11-29 22:10:52 -08001145} VkAllocationCallbacks;
Jesse Hall03b6fe12015-11-24 12:44:21 -08001146
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001147typedef struct VkPhysicalDeviceFeatures {
Jesse Hall563380d2016-01-15 23:14:05 -08001148 VkBool32 robustBufferAccess;
1149 VkBool32 fullDrawIndexUint32;
1150 VkBool32 imageCubeArray;
1151 VkBool32 independentBlend;
1152 VkBool32 geometryShader;
1153 VkBool32 tessellationShader;
1154 VkBool32 sampleRateShading;
1155 VkBool32 dualSrcBlend;
1156 VkBool32 logicOp;
1157 VkBool32 multiDrawIndirect;
1158 VkBool32 drawIndirectFirstInstance;
1159 VkBool32 depthClamp;
1160 VkBool32 depthBiasClamp;
1161 VkBool32 fillModeNonSolid;
1162 VkBool32 depthBounds;
1163 VkBool32 wideLines;
1164 VkBool32 largePoints;
1165 VkBool32 alphaToOne;
1166 VkBool32 multiViewport;
1167 VkBool32 samplerAnisotropy;
1168 VkBool32 textureCompressionETC2;
1169 VkBool32 textureCompressionASTC_LDR;
1170 VkBool32 textureCompressionBC;
1171 VkBool32 occlusionQueryPrecise;
1172 VkBool32 pipelineStatisticsQuery;
1173 VkBool32 vertexPipelineStoresAndAtomics;
1174 VkBool32 fragmentStoresAndAtomics;
1175 VkBool32 shaderTessellationAndGeometryPointSize;
1176 VkBool32 shaderImageGatherExtended;
1177 VkBool32 shaderStorageImageExtendedFormats;
1178 VkBool32 shaderStorageImageMultisample;
1179 VkBool32 shaderStorageImageReadWithoutFormat;
1180 VkBool32 shaderStorageImageWriteWithoutFormat;
1181 VkBool32 shaderUniformBufferArrayDynamicIndexing;
1182 VkBool32 shaderSampledImageArrayDynamicIndexing;
1183 VkBool32 shaderStorageBufferArrayDynamicIndexing;
1184 VkBool32 shaderStorageImageArrayDynamicIndexing;
1185 VkBool32 shaderClipDistance;
1186 VkBool32 shaderCullDistance;
1187 VkBool32 shaderFloat64;
1188 VkBool32 shaderInt64;
1189 VkBool32 shaderInt16;
1190 VkBool32 shaderResourceResidency;
1191 VkBool32 shaderResourceMinLod;
1192 VkBool32 sparseBinding;
1193 VkBool32 sparseResidencyBuffer;
1194 VkBool32 sparseResidencyImage2D;
1195 VkBool32 sparseResidencyImage3D;
1196 VkBool32 sparseResidency2Samples;
1197 VkBool32 sparseResidency4Samples;
1198 VkBool32 sparseResidency8Samples;
1199 VkBool32 sparseResidency16Samples;
1200 VkBool32 sparseResidencyAliased;
1201 VkBool32 variableMultisampleRate;
1202 VkBool32 inheritedQueries;
Jesse Hall04f4f472015-08-16 19:51:04 -07001203} VkPhysicalDeviceFeatures;
1204
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001205typedef struct VkFormatProperties {
Jesse Hall563380d2016-01-15 23:14:05 -08001206 VkFormatFeatureFlags linearTilingFeatures;
1207 VkFormatFeatureFlags optimalTilingFeatures;
1208 VkFormatFeatureFlags bufferFeatures;
Jesse Hall04f4f472015-08-16 19:51:04 -07001209} VkFormatProperties;
1210
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001211typedef struct VkExtent3D {
Jesse Hall563380d2016-01-15 23:14:05 -08001212 uint32_t width;
1213 uint32_t height;
1214 uint32_t depth;
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001215} VkExtent3D;
1216
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001217typedef struct VkImageFormatProperties {
Jesse Hall563380d2016-01-15 23:14:05 -08001218 VkExtent3D maxExtent;
1219 uint32_t maxMipLevels;
1220 uint32_t maxArrayLayers;
1221 VkSampleCountFlags sampleCounts;
1222 VkDeviceSize maxResourceSize;
Jesse Hall04f4f472015-08-16 19:51:04 -07001223} VkImageFormatProperties;
1224
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001225typedef struct VkPhysicalDeviceLimits {
Jesse Hall563380d2016-01-15 23:14:05 -08001226 uint32_t maxImageDimension1D;
1227 uint32_t maxImageDimension2D;
1228 uint32_t maxImageDimension3D;
1229 uint32_t maxImageDimensionCube;
1230 uint32_t maxImageArrayLayers;
1231 uint32_t maxTexelBufferElements;
1232 uint32_t maxUniformBufferRange;
1233 uint32_t maxStorageBufferRange;
1234 uint32_t maxPushConstantsSize;
1235 uint32_t maxMemoryAllocationCount;
1236 uint32_t maxSamplerAllocationCount;
1237 VkDeviceSize bufferImageGranularity;
1238 VkDeviceSize sparseAddressSpaceSize;
1239 uint32_t maxBoundDescriptorSets;
1240 uint32_t maxPerStageDescriptorSamplers;
1241 uint32_t maxPerStageDescriptorUniformBuffers;
1242 uint32_t maxPerStageDescriptorStorageBuffers;
1243 uint32_t maxPerStageDescriptorSampledImages;
1244 uint32_t maxPerStageDescriptorStorageImages;
1245 uint32_t maxPerStageDescriptorInputAttachments;
1246 uint32_t maxPerStageResources;
1247 uint32_t maxDescriptorSetSamplers;
1248 uint32_t maxDescriptorSetUniformBuffers;
1249 uint32_t maxDescriptorSetUniformBuffersDynamic;
1250 uint32_t maxDescriptorSetStorageBuffers;
1251 uint32_t maxDescriptorSetStorageBuffersDynamic;
1252 uint32_t maxDescriptorSetSampledImages;
1253 uint32_t maxDescriptorSetStorageImages;
1254 uint32_t maxDescriptorSetInputAttachments;
1255 uint32_t maxVertexInputAttributes;
1256 uint32_t maxVertexInputBindings;
1257 uint32_t maxVertexInputAttributeOffset;
1258 uint32_t maxVertexInputBindingStride;
1259 uint32_t maxVertexOutputComponents;
1260 uint32_t maxTessellationGenerationLevel;
1261 uint32_t maxTessellationPatchSize;
1262 uint32_t maxTessellationControlPerVertexInputComponents;
1263 uint32_t maxTessellationControlPerVertexOutputComponents;
1264 uint32_t maxTessellationControlPerPatchOutputComponents;
1265 uint32_t maxTessellationControlTotalOutputComponents;
1266 uint32_t maxTessellationEvaluationInputComponents;
1267 uint32_t maxTessellationEvaluationOutputComponents;
1268 uint32_t maxGeometryShaderInvocations;
1269 uint32_t maxGeometryInputComponents;
1270 uint32_t maxGeometryOutputComponents;
1271 uint32_t maxGeometryOutputVertices;
1272 uint32_t maxGeometryTotalOutputComponents;
1273 uint32_t maxFragmentInputComponents;
1274 uint32_t maxFragmentOutputAttachments;
1275 uint32_t maxFragmentDualSrcAttachments;
1276 uint32_t maxFragmentCombinedOutputResources;
1277 uint32_t maxComputeSharedMemorySize;
1278 uint32_t maxComputeWorkGroupCount[3];
1279 uint32_t maxComputeWorkGroupInvocations;
1280 uint32_t maxComputeWorkGroupSize[3];
1281 uint32_t subPixelPrecisionBits;
1282 uint32_t subTexelPrecisionBits;
1283 uint32_t mipmapPrecisionBits;
1284 uint32_t maxDrawIndexedIndexValue;
1285 uint32_t maxDrawIndirectCount;
1286 float maxSamplerLodBias;
1287 float maxSamplerAnisotropy;
1288 uint32_t maxViewports;
1289 uint32_t maxViewportDimensions[2];
1290 float viewportBoundsRange[2];
1291 uint32_t viewportSubPixelBits;
1292 size_t minMemoryMapAlignment;
1293 VkDeviceSize minTexelBufferOffsetAlignment;
1294 VkDeviceSize minUniformBufferOffsetAlignment;
1295 VkDeviceSize minStorageBufferOffsetAlignment;
1296 int32_t minTexelOffset;
1297 uint32_t maxTexelOffset;
1298 int32_t minTexelGatherOffset;
1299 uint32_t maxTexelGatherOffset;
1300 float minInterpolationOffset;
1301 float maxInterpolationOffset;
1302 uint32_t subPixelInterpolationOffsetBits;
1303 uint32_t maxFramebufferWidth;
1304 uint32_t maxFramebufferHeight;
1305 uint32_t maxFramebufferLayers;
1306 VkSampleCountFlags framebufferColorSampleCounts;
1307 VkSampleCountFlags framebufferDepthSampleCounts;
1308 VkSampleCountFlags framebufferStencilSampleCounts;
1309 VkSampleCountFlags framebufferNoAttachmentsSampleCounts;
1310 uint32_t maxColorAttachments;
1311 VkSampleCountFlags sampledImageColorSampleCounts;
1312 VkSampleCountFlags sampledImageIntegerSampleCounts;
1313 VkSampleCountFlags sampledImageDepthSampleCounts;
1314 VkSampleCountFlags sampledImageStencilSampleCounts;
1315 VkSampleCountFlags storageImageSampleCounts;
1316 uint32_t maxSampleMaskWords;
1317 VkBool32 timestampComputeAndGraphics;
1318 float timestampPeriod;
1319 uint32_t maxClipDistances;
1320 uint32_t maxCullDistances;
1321 uint32_t maxCombinedClipAndCullDistances;
1322 uint32_t discreteQueuePriorities;
1323 float pointSizeRange[2];
1324 float lineWidthRange[2];
1325 float pointSizeGranularity;
1326 float lineWidthGranularity;
1327 VkBool32 strictLines;
1328 VkBool32 standardSampleLocations;
1329 VkDeviceSize optimalBufferCopyOffsetAlignment;
1330 VkDeviceSize optimalBufferCopyRowPitchAlignment;
1331 VkDeviceSize nonCoherentAtomSize;
Jesse Hall04f4f472015-08-16 19:51:04 -07001332} VkPhysicalDeviceLimits;
1333
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001334typedef struct VkPhysicalDeviceSparseProperties {
Jesse Hall563380d2016-01-15 23:14:05 -08001335 VkBool32 residencyStandard2DBlockShape;
1336 VkBool32 residencyStandard2DMultisampleBlockShape;
1337 VkBool32 residencyStandard3DBlockShape;
1338 VkBool32 residencyAlignedMipSize;
1339 VkBool32 residencyNonResidentStrict;
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001340} VkPhysicalDeviceSparseProperties;
1341
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001342typedef struct VkPhysicalDeviceProperties {
Jesse Hall563380d2016-01-15 23:14:05 -08001343 uint32_t apiVersion;
1344 uint32_t driverVersion;
1345 uint32_t vendorID;
1346 uint32_t deviceID;
1347 VkPhysicalDeviceType deviceType;
1348 char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE];
1349 uint8_t pipelineCacheUUID[VK_UUID_SIZE];
1350 VkPhysicalDeviceLimits limits;
1351 VkPhysicalDeviceSparseProperties sparseProperties;
Jesse Hall04f4f472015-08-16 19:51:04 -07001352} VkPhysicalDeviceProperties;
1353
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001354typedef struct VkQueueFamilyProperties {
Jesse Hall563380d2016-01-15 23:14:05 -08001355 VkQueueFlags queueFlags;
1356 uint32_t queueCount;
1357 uint32_t timestampValidBits;
1358 VkExtent3D minImageTransferGranularity;
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001359} VkQueueFamilyProperties;
Jesse Hall04f4f472015-08-16 19:51:04 -07001360
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001361typedef struct VkMemoryType {
Jesse Hall563380d2016-01-15 23:14:05 -08001362 VkMemoryPropertyFlags propertyFlags;
1363 uint32_t heapIndex;
Jesse Hall04f4f472015-08-16 19:51:04 -07001364} VkMemoryType;
1365
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001366typedef struct VkMemoryHeap {
Jesse Hall563380d2016-01-15 23:14:05 -08001367 VkDeviceSize size;
1368 VkMemoryHeapFlags flags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001369} VkMemoryHeap;
1370
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001371typedef struct VkPhysicalDeviceMemoryProperties {
Jesse Hall563380d2016-01-15 23:14:05 -08001372 uint32_t memoryTypeCount;
1373 VkMemoryType memoryTypes[VK_MAX_MEMORY_TYPES];
1374 uint32_t memoryHeapCount;
1375 VkMemoryHeap memoryHeaps[VK_MAX_MEMORY_HEAPS];
Jesse Hall04f4f472015-08-16 19:51:04 -07001376} VkPhysicalDeviceMemoryProperties;
1377
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001378typedef struct VkDeviceQueueCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001379 VkStructureType sType;
1380 const void* pNext;
1381 VkDeviceQueueCreateFlags flags;
1382 uint32_t queueFamilyIndex;
1383 uint32_t queueCount;
1384 const float* pQueuePriorities;
Jesse Hall04f4f472015-08-16 19:51:04 -07001385} VkDeviceQueueCreateInfo;
1386
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001387typedef struct VkDeviceCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001388 VkStructureType sType;
1389 const void* pNext;
1390 VkDeviceCreateFlags flags;
1391 uint32_t queueCreateInfoCount;
1392 const VkDeviceQueueCreateInfo* pQueueCreateInfos;
1393 uint32_t enabledLayerCount;
1394 const char* const* ppEnabledLayerNames;
1395 uint32_t enabledExtensionCount;
1396 const char* const* ppEnabledExtensionNames;
1397 const VkPhysicalDeviceFeatures* pEnabledFeatures;
Jesse Hall04f4f472015-08-16 19:51:04 -07001398} VkDeviceCreateInfo;
1399
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001400typedef struct VkExtensionProperties {
Jesse Hall563380d2016-01-15 23:14:05 -08001401 char extensionName[VK_MAX_EXTENSION_NAME_SIZE];
1402 uint32_t specVersion;
Jesse Hall04f4f472015-08-16 19:51:04 -07001403} VkExtensionProperties;
1404
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001405typedef struct VkLayerProperties {
Jesse Hall563380d2016-01-15 23:14:05 -08001406 char layerName[VK_MAX_EXTENSION_NAME_SIZE];
1407 uint32_t specVersion;
1408 uint32_t implementationVersion;
1409 char description[VK_MAX_DESCRIPTION_SIZE];
Jesse Hall04f4f472015-08-16 19:51:04 -07001410} VkLayerProperties;
1411
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001412typedef struct VkSubmitInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001413 VkStructureType sType;
1414 const void* pNext;
1415 uint32_t waitSemaphoreCount;
1416 const VkSemaphore* pWaitSemaphores;
1417 const VkPipelineStageFlags* pWaitDstStageMask;
1418 uint32_t commandBufferCount;
1419 const VkCommandBuffer* pCommandBuffers;
1420 uint32_t signalSemaphoreCount;
1421 const VkSemaphore* pSignalSemaphores;
Jesse Halla366a512015-11-19 22:30:07 -08001422} VkSubmitInfo;
1423
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001424typedef struct VkMemoryAllocateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001425 VkStructureType sType;
1426 const void* pNext;
1427 VkDeviceSize allocationSize;
1428 uint32_t memoryTypeIndex;
Jesse Hall3fbc8562015-11-29 22:10:52 -08001429} VkMemoryAllocateInfo;
Jesse Hall04f4f472015-08-16 19:51:04 -07001430
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001431typedef struct VkMappedMemoryRange {
Jesse Hall563380d2016-01-15 23:14:05 -08001432 VkStructureType sType;
1433 const void* pNext;
1434 VkDeviceMemory memory;
1435 VkDeviceSize offset;
1436 VkDeviceSize size;
Jesse Hall04f4f472015-08-16 19:51:04 -07001437} VkMappedMemoryRange;
1438
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001439typedef struct VkMemoryRequirements {
Jesse Hall563380d2016-01-15 23:14:05 -08001440 VkDeviceSize size;
1441 VkDeviceSize alignment;
1442 uint32_t memoryTypeBits;
Jesse Hall04f4f472015-08-16 19:51:04 -07001443} VkMemoryRequirements;
1444
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001445typedef struct VkSparseImageFormatProperties {
Jesse Hall563380d2016-01-15 23:14:05 -08001446 VkImageAspectFlags aspectMask;
1447 VkExtent3D imageGranularity;
1448 VkSparseImageFormatFlags flags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001449} VkSparseImageFormatProperties;
1450
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001451typedef struct VkSparseImageMemoryRequirements {
Jesse Hall563380d2016-01-15 23:14:05 -08001452 VkSparseImageFormatProperties formatProperties;
1453 uint32_t imageMipTailFirstLod;
1454 VkDeviceSize imageMipTailSize;
1455 VkDeviceSize imageMipTailOffset;
1456 VkDeviceSize imageMipTailStride;
Jesse Hall04f4f472015-08-16 19:51:04 -07001457} VkSparseImageMemoryRequirements;
1458
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001459typedef struct VkSparseMemoryBind {
Jesse Hall563380d2016-01-15 23:14:05 -08001460 VkDeviceSize resourceOffset;
1461 VkDeviceSize size;
1462 VkDeviceMemory memory;
1463 VkDeviceSize memoryOffset;
1464 VkSparseMemoryBindFlags flags;
Jesse Halla6429252015-11-29 18:59:42 -08001465} VkSparseMemoryBind;
1466
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001467typedef struct VkSparseBufferMemoryBindInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001468 VkBuffer buffer;
1469 uint32_t bindCount;
1470 const VkSparseMemoryBind* pBinds;
Jesse Halla6429252015-11-29 18:59:42 -08001471} VkSparseBufferMemoryBindInfo;
1472
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001473typedef struct VkSparseImageOpaqueMemoryBindInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001474 VkImage image;
1475 uint32_t bindCount;
1476 const VkSparseMemoryBind* pBinds;
Jesse Halla6429252015-11-29 18:59:42 -08001477} VkSparseImageOpaqueMemoryBindInfo;
Jesse Hall04f4f472015-08-16 19:51:04 -07001478
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001479typedef struct VkImageSubresource {
Jesse Hall563380d2016-01-15 23:14:05 -08001480 VkImageAspectFlags aspectMask;
1481 uint32_t mipLevel;
1482 uint32_t arrayLayer;
Jesse Hall04f4f472015-08-16 19:51:04 -07001483} VkImageSubresource;
1484
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001485typedef struct VkOffset3D {
Jesse Hall563380d2016-01-15 23:14:05 -08001486 int32_t x;
1487 int32_t y;
1488 int32_t z;
Jesse Hall04f4f472015-08-16 19:51:04 -07001489} VkOffset3D;
1490
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001491typedef struct VkSparseImageMemoryBind {
Jesse Hall563380d2016-01-15 23:14:05 -08001492 VkImageSubresource subresource;
1493 VkOffset3D offset;
1494 VkExtent3D extent;
1495 VkDeviceMemory memory;
1496 VkDeviceSize memoryOffset;
1497 VkSparseMemoryBindFlags flags;
Jesse Halla6429252015-11-29 18:59:42 -08001498} VkSparseImageMemoryBind;
1499
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001500typedef struct VkSparseImageMemoryBindInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001501 VkImage image;
1502 uint32_t bindCount;
1503 const VkSparseImageMemoryBind* pBinds;
Jesse Hall04f4f472015-08-16 19:51:04 -07001504} VkSparseImageMemoryBindInfo;
1505
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001506typedef struct VkBindSparseInfo {
Jesse Hall04f4f472015-08-16 19:51:04 -07001507 VkStructureType sType;
1508 const void* pNext;
Jesse Halla6429252015-11-29 18:59:42 -08001509 uint32_t waitSemaphoreCount;
1510 const VkSemaphore* pWaitSemaphores;
1511 uint32_t bufferBindCount;
1512 const VkSparseBufferMemoryBindInfo* pBufferBinds;
1513 uint32_t imageOpaqueBindCount;
1514 const VkSparseImageOpaqueMemoryBindInfo* pImageOpaqueBinds;
1515 uint32_t imageBindCount;
1516 const VkSparseImageMemoryBindInfo* pImageBinds;
1517 uint32_t signalSemaphoreCount;
1518 const VkSemaphore* pSignalSemaphores;
1519} VkBindSparseInfo;
1520
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001521typedef struct VkFenceCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001522 VkStructureType sType;
1523 const void* pNext;
1524 VkFenceCreateFlags flags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001525} VkFenceCreateInfo;
1526
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001527typedef struct VkSemaphoreCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001528 VkStructureType sType;
1529 const void* pNext;
1530 VkSemaphoreCreateFlags flags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001531} VkSemaphoreCreateInfo;
1532
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001533typedef struct VkEventCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001534 VkStructureType sType;
1535 const void* pNext;
1536 VkEventCreateFlags flags;
Jesse Hall04f4f472015-08-16 19:51:04 -07001537} VkEventCreateInfo;
1538
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001539typedef struct VkQueryPoolCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001540 VkStructureType sType;
1541 const void* pNext;
1542 VkQueryPoolCreateFlags flags;
1543 VkQueryType queryType;
1544 uint32_t queryCount;
1545 VkQueryPipelineStatisticFlags pipelineStatistics;
Jesse Hall04f4f472015-08-16 19:51:04 -07001546} VkQueryPoolCreateInfo;
1547
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001548typedef struct VkBufferCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001549 VkStructureType sType;
1550 const void* pNext;
1551 VkBufferCreateFlags flags;
1552 VkDeviceSize size;
1553 VkBufferUsageFlags usage;
1554 VkSharingMode sharingMode;
1555 uint32_t queueFamilyIndexCount;
1556 const uint32_t* pQueueFamilyIndices;
Jesse Hall04f4f472015-08-16 19:51:04 -07001557} VkBufferCreateInfo;
1558
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001559typedef struct VkBufferViewCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001560 VkStructureType sType;
1561 const void* pNext;
1562 VkBufferViewCreateFlags flags;
1563 VkBuffer buffer;
1564 VkFormat format;
1565 VkDeviceSize offset;
1566 VkDeviceSize range;
Jesse Hall04f4f472015-08-16 19:51:04 -07001567} VkBufferViewCreateInfo;
1568
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001569typedef struct VkImageCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001570 VkStructureType sType;
1571 const void* pNext;
1572 VkImageCreateFlags flags;
1573 VkImageType imageType;
1574 VkFormat format;
1575 VkExtent3D extent;
1576 uint32_t mipLevels;
1577 uint32_t arrayLayers;
1578 VkSampleCountFlagBits samples;
1579 VkImageTiling tiling;
1580 VkImageUsageFlags usage;
1581 VkSharingMode sharingMode;
1582 uint32_t queueFamilyIndexCount;
1583 const uint32_t* pQueueFamilyIndices;
1584 VkImageLayout initialLayout;
Jesse Hall04f4f472015-08-16 19:51:04 -07001585} VkImageCreateInfo;
1586
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001587typedef struct VkSubresourceLayout {
Jesse Hall563380d2016-01-15 23:14:05 -08001588 VkDeviceSize offset;
1589 VkDeviceSize size;
1590 VkDeviceSize rowPitch;
1591 VkDeviceSize arrayPitch;
1592 VkDeviceSize depthPitch;
Jesse Hall04f4f472015-08-16 19:51:04 -07001593} VkSubresourceLayout;
1594
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001595typedef struct VkComponentMapping {
Jesse Hall563380d2016-01-15 23:14:05 -08001596 VkComponentSwizzle r;
1597 VkComponentSwizzle g;
1598 VkComponentSwizzle b;
1599 VkComponentSwizzle a;
Jesse Hall65ab5522015-11-30 00:07:16 -08001600} VkComponentMapping;
Jesse Hall04f4f472015-08-16 19:51:04 -07001601
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001602typedef struct VkImageSubresourceRange {
Jesse Hall563380d2016-01-15 23:14:05 -08001603 VkImageAspectFlags aspectMask;
1604 uint32_t baseMipLevel;
1605 uint32_t levelCount;
1606 uint32_t baseArrayLayer;
1607 uint32_t layerCount;
Jesse Hall04f4f472015-08-16 19:51:04 -07001608} VkImageSubresourceRange;
1609
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001610typedef struct VkImageViewCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001611 VkStructureType sType;
1612 const void* pNext;
1613 VkImageViewCreateFlags flags;
1614 VkImage image;
1615 VkImageViewType viewType;
1616 VkFormat format;
1617 VkComponentMapping components;
1618 VkImageSubresourceRange subresourceRange;
Jesse Hall04f4f472015-08-16 19:51:04 -07001619} VkImageViewCreateInfo;
1620
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001621typedef struct VkShaderModuleCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001622 VkStructureType sType;
1623 const void* pNext;
1624 VkShaderModuleCreateFlags flags;
1625 size_t codeSize;
1626 const uint32_t* pCode;
Jesse Hall04f4f472015-08-16 19:51:04 -07001627} VkShaderModuleCreateInfo;
1628
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001629typedef struct VkPipelineCacheCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001630 VkStructureType sType;
1631 const void* pNext;
1632 VkPipelineCacheCreateFlags flags;
1633 size_t initialDataSize;
1634 const void* pInitialData;
Jesse Hall04f4f472015-08-16 19:51:04 -07001635} VkPipelineCacheCreateInfo;
1636
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001637typedef struct VkSpecializationMapEntry {
Jesse Hall563380d2016-01-15 23:14:05 -08001638 uint32_t constantID;
1639 uint32_t offset;
1640 size_t size;
Jesse Hall04f4f472015-08-16 19:51:04 -07001641} VkSpecializationMapEntry;
1642
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001643typedef struct VkSpecializationInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001644 uint32_t mapEntryCount;
1645 const VkSpecializationMapEntry* pMapEntries;
1646 size_t dataSize;
1647 const void* pData;
Jesse Hall04f4f472015-08-16 19:51:04 -07001648} VkSpecializationInfo;
1649
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001650typedef struct VkPipelineShaderStageCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001651 VkStructureType sType;
1652 const void* pNext;
1653 VkPipelineShaderStageCreateFlags flags;
1654 VkShaderStageFlagBits stage;
1655 VkShaderModule module;
1656 const char* pName;
1657 const VkSpecializationInfo* pSpecializationInfo;
Jesse Hall04f4f472015-08-16 19:51:04 -07001658} VkPipelineShaderStageCreateInfo;
1659
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001660typedef struct VkVertexInputBindingDescription {
Jesse Hall563380d2016-01-15 23:14:05 -08001661 uint32_t binding;
1662 uint32_t stride;
1663 VkVertexInputRate inputRate;
Jesse Hall04f4f472015-08-16 19:51:04 -07001664} VkVertexInputBindingDescription;
1665
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001666typedef struct VkVertexInputAttributeDescription {
Jesse Hall563380d2016-01-15 23:14:05 -08001667 uint32_t location;
1668 uint32_t binding;
1669 VkFormat format;
1670 uint32_t offset;
Jesse Hall04f4f472015-08-16 19:51:04 -07001671} VkVertexInputAttributeDescription;
1672
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001673typedef struct VkPipelineVertexInputStateCreateInfo {
Jesse Hall04f4f472015-08-16 19:51:04 -07001674 VkStructureType sType;
1675 const void* pNext;
Jesse Halla6429252015-11-29 18:59:42 -08001676 VkPipelineVertexInputStateCreateFlags flags;
Jesse Hall03b6fe12015-11-24 12:44:21 -08001677 uint32_t vertexBindingDescriptionCount;
Jesse Hall04f4f472015-08-16 19:51:04 -07001678 const VkVertexInputBindingDescription* pVertexBindingDescriptions;
Jesse Hall03b6fe12015-11-24 12:44:21 -08001679 uint32_t vertexAttributeDescriptionCount;
Jesse Hall04f4f472015-08-16 19:51:04 -07001680 const VkVertexInputAttributeDescription* pVertexAttributeDescriptions;
1681} VkPipelineVertexInputStateCreateInfo;
1682
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001683typedef struct VkPipelineInputAssemblyStateCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001684 VkStructureType sType;
1685 const void* pNext;
1686 VkPipelineInputAssemblyStateCreateFlags flags;
1687 VkPrimitiveTopology topology;
1688 VkBool32 primitiveRestartEnable;
Jesse Hall04f4f472015-08-16 19:51:04 -07001689} VkPipelineInputAssemblyStateCreateInfo;
1690
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001691typedef struct VkPipelineTessellationStateCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001692 VkStructureType sType;
1693 const void* pNext;
1694 VkPipelineTessellationStateCreateFlags flags;
1695 uint32_t patchControlPoints;
Jesse Hall04f4f472015-08-16 19:51:04 -07001696} VkPipelineTessellationStateCreateInfo;
1697
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001698typedef struct VkViewport {
Jesse Hall563380d2016-01-15 23:14:05 -08001699 float x;
1700 float y;
1701 float width;
1702 float height;
1703 float minDepth;
1704 float maxDepth;
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001705} VkViewport;
1706
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001707typedef struct VkOffset2D {
Jesse Hall563380d2016-01-15 23:14:05 -08001708 int32_t x;
1709 int32_t y;
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001710} VkOffset2D;
1711
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001712typedef struct VkExtent2D {
Jesse Hall563380d2016-01-15 23:14:05 -08001713 uint32_t width;
1714 uint32_t height;
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001715} VkExtent2D;
1716
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001717typedef struct VkRect2D {
Jesse Hall563380d2016-01-15 23:14:05 -08001718 VkOffset2D offset;
1719 VkExtent2D extent;
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001720} VkRect2D;
1721
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001722typedef struct VkPipelineViewportStateCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001723 VkStructureType sType;
1724 const void* pNext;
1725 VkPipelineViewportStateCreateFlags flags;
1726 uint32_t viewportCount;
1727 const VkViewport* pViewports;
1728 uint32_t scissorCount;
1729 const VkRect2D* pScissors;
Jesse Hall04f4f472015-08-16 19:51:04 -07001730} VkPipelineViewportStateCreateInfo;
1731
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001732typedef struct VkPipelineRasterizationStateCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001733 VkStructureType sType;
1734 const void* pNext;
1735 VkPipelineRasterizationStateCreateFlags flags;
1736 VkBool32 depthClampEnable;
1737 VkBool32 rasterizerDiscardEnable;
1738 VkPolygonMode polygonMode;
1739 VkCullModeFlags cullMode;
1740 VkFrontFace frontFace;
1741 VkBool32 depthBiasEnable;
1742 float depthBiasConstantFactor;
1743 float depthBiasClamp;
1744 float depthBiasSlopeFactor;
1745 float lineWidth;
Jesse Hall3fbc8562015-11-29 22:10:52 -08001746} VkPipelineRasterizationStateCreateInfo;
Jesse Hall04f4f472015-08-16 19:51:04 -07001747
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001748typedef struct VkPipelineMultisampleStateCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001749 VkStructureType sType;
1750 const void* pNext;
1751 VkPipelineMultisampleStateCreateFlags flags;
1752 VkSampleCountFlagBits rasterizationSamples;
1753 VkBool32 sampleShadingEnable;
1754 float minSampleShading;
1755 const VkSampleMask* pSampleMask;
1756 VkBool32 alphaToCoverageEnable;
1757 VkBool32 alphaToOneEnable;
Jesse Hall04f4f472015-08-16 19:51:04 -07001758} VkPipelineMultisampleStateCreateInfo;
1759
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001760typedef struct VkStencilOpState {
Jesse Hall563380d2016-01-15 23:14:05 -08001761 VkStencilOp failOp;
1762 VkStencilOp passOp;
1763 VkStencilOp depthFailOp;
1764 VkCompareOp compareOp;
1765 uint32_t compareMask;
1766 uint32_t writeMask;
1767 uint32_t reference;
Jesse Hall04f4f472015-08-16 19:51:04 -07001768} VkStencilOpState;
1769
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001770typedef struct VkPipelineDepthStencilStateCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001771 VkStructureType sType;
1772 const void* pNext;
1773 VkPipelineDepthStencilStateCreateFlags flags;
1774 VkBool32 depthTestEnable;
1775 VkBool32 depthWriteEnable;
1776 VkCompareOp depthCompareOp;
1777 VkBool32 depthBoundsTestEnable;
1778 VkBool32 stencilTestEnable;
1779 VkStencilOpState front;
1780 VkStencilOpState back;
1781 float minDepthBounds;
1782 float maxDepthBounds;
Jesse Hall04f4f472015-08-16 19:51:04 -07001783} VkPipelineDepthStencilStateCreateInfo;
1784
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001785typedef struct VkPipelineColorBlendAttachmentState {
Jesse Hall563380d2016-01-15 23:14:05 -08001786 VkBool32 blendEnable;
1787 VkBlendFactor srcColorBlendFactor;
1788 VkBlendFactor dstColorBlendFactor;
1789 VkBlendOp colorBlendOp;
1790 VkBlendFactor srcAlphaBlendFactor;
1791 VkBlendFactor dstAlphaBlendFactor;
1792 VkBlendOp alphaBlendOp;
1793 VkColorComponentFlags colorWriteMask;
Jesse Hall04f4f472015-08-16 19:51:04 -07001794} VkPipelineColorBlendAttachmentState;
1795
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001796typedef struct VkPipelineColorBlendStateCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001797 VkStructureType sType;
1798 const void* pNext;
1799 VkPipelineColorBlendStateCreateFlags flags;
1800 VkBool32 logicOpEnable;
1801 VkLogicOp logicOp;
1802 uint32_t attachmentCount;
1803 const VkPipelineColorBlendAttachmentState* pAttachments;
1804 float blendConstants[4];
Jesse Hall04f4f472015-08-16 19:51:04 -07001805} VkPipelineColorBlendStateCreateInfo;
1806
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001807typedef struct VkPipelineDynamicStateCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001808 VkStructureType sType;
1809 const void* pNext;
1810 VkPipelineDynamicStateCreateFlags flags;
1811 uint32_t dynamicStateCount;
1812 const VkDynamicState* pDynamicStates;
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001813} VkPipelineDynamicStateCreateInfo;
1814
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001815typedef struct VkGraphicsPipelineCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001816 VkStructureType sType;
1817 const void* pNext;
1818 VkPipelineCreateFlags flags;
1819 uint32_t stageCount;
1820 const VkPipelineShaderStageCreateInfo* pStages;
1821 const VkPipelineVertexInputStateCreateInfo* pVertexInputState;
1822 const VkPipelineInputAssemblyStateCreateInfo* pInputAssemblyState;
1823 const VkPipelineTessellationStateCreateInfo* pTessellationState;
1824 const VkPipelineViewportStateCreateInfo* pViewportState;
1825 const VkPipelineRasterizationStateCreateInfo* pRasterizationState;
1826 const VkPipelineMultisampleStateCreateInfo* pMultisampleState;
1827 const VkPipelineDepthStencilStateCreateInfo* pDepthStencilState;
1828 const VkPipelineColorBlendStateCreateInfo* pColorBlendState;
1829 const VkPipelineDynamicStateCreateInfo* pDynamicState;
1830 VkPipelineLayout layout;
1831 VkRenderPass renderPass;
1832 uint32_t subpass;
1833 VkPipeline basePipelineHandle;
1834 int32_t basePipelineIndex;
Jesse Hall04f4f472015-08-16 19:51:04 -07001835} VkGraphicsPipelineCreateInfo;
1836
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001837typedef struct VkComputePipelineCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001838 VkStructureType sType;
1839 const void* pNext;
1840 VkPipelineCreateFlags flags;
1841 VkPipelineShaderStageCreateInfo stage;
1842 VkPipelineLayout layout;
1843 VkPipeline basePipelineHandle;
1844 int32_t basePipelineIndex;
Jesse Hall04f4f472015-08-16 19:51:04 -07001845} VkComputePipelineCreateInfo;
1846
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001847typedef struct VkPushConstantRange {
Jesse Hall563380d2016-01-15 23:14:05 -08001848 VkShaderStageFlags stageFlags;
1849 uint32_t offset;
1850 uint32_t size;
Jesse Hall04f4f472015-08-16 19:51:04 -07001851} VkPushConstantRange;
1852
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001853typedef struct VkPipelineLayoutCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001854 VkStructureType sType;
1855 const void* pNext;
1856 VkPipelineLayoutCreateFlags flags;
1857 uint32_t setLayoutCount;
1858 const VkDescriptorSetLayout* pSetLayouts;
1859 uint32_t pushConstantRangeCount;
1860 const VkPushConstantRange* pPushConstantRanges;
Jesse Hall04f4f472015-08-16 19:51:04 -07001861} VkPipelineLayoutCreateInfo;
1862
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001863typedef struct VkSamplerCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001864 VkStructureType sType;
1865 const void* pNext;
1866 VkSamplerCreateFlags flags;
1867 VkFilter magFilter;
1868 VkFilter minFilter;
1869 VkSamplerMipmapMode mipmapMode;
1870 VkSamplerAddressMode addressModeU;
1871 VkSamplerAddressMode addressModeV;
1872 VkSamplerAddressMode addressModeW;
1873 float mipLodBias;
1874 VkBool32 anisotropyEnable;
1875 float maxAnisotropy;
1876 VkBool32 compareEnable;
1877 VkCompareOp compareOp;
1878 float minLod;
1879 float maxLod;
1880 VkBorderColor borderColor;
1881 VkBool32 unnormalizedCoordinates;
Jesse Hall04f4f472015-08-16 19:51:04 -07001882} VkSamplerCreateInfo;
1883
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001884typedef struct VkDescriptorSetLayoutBinding {
Jesse Hall563380d2016-01-15 23:14:05 -08001885 uint32_t binding;
1886 VkDescriptorType descriptorType;
1887 uint32_t descriptorCount;
1888 VkShaderStageFlags stageFlags;
1889 const VkSampler* pImmutableSamplers;
Jesse Hall04f4f472015-08-16 19:51:04 -07001890} VkDescriptorSetLayoutBinding;
1891
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001892typedef struct VkDescriptorSetLayoutCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001893 VkStructureType sType;
1894 const void* pNext;
1895 VkDescriptorSetLayoutCreateFlags flags;
1896 uint32_t bindingCount;
1897 const VkDescriptorSetLayoutBinding* pBindings;
Jesse Hall04f4f472015-08-16 19:51:04 -07001898} VkDescriptorSetLayoutCreateInfo;
1899
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001900typedef struct VkDescriptorPoolSize {
Jesse Hall563380d2016-01-15 23:14:05 -08001901 VkDescriptorType type;
1902 uint32_t descriptorCount;
Jesse Hall65ab5522015-11-30 00:07:16 -08001903} VkDescriptorPoolSize;
Jesse Hall04f4f472015-08-16 19:51:04 -07001904
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001905typedef struct VkDescriptorPoolCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001906 VkStructureType sType;
1907 const void* pNext;
1908 VkDescriptorPoolCreateFlags flags;
1909 uint32_t maxSets;
1910 uint32_t poolSizeCount;
1911 const VkDescriptorPoolSize* pPoolSizes;
Jesse Hall04f4f472015-08-16 19:51:04 -07001912} VkDescriptorPoolCreateInfo;
1913
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001914typedef struct VkDescriptorSetAllocateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001915 VkStructureType sType;
1916 const void* pNext;
1917 VkDescriptorPool descriptorPool;
1918 uint32_t descriptorSetCount;
1919 const VkDescriptorSetLayout* pSetLayouts;
Jesse Hall3fbc8562015-11-29 22:10:52 -08001920} VkDescriptorSetAllocateInfo;
Jesse Hallfbf97b02015-11-20 14:17:03 -08001921
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001922typedef struct VkDescriptorImageInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001923 VkSampler sampler;
1924 VkImageView imageView;
1925 VkImageLayout imageLayout;
Jesse Halla15a4bf2015-11-19 22:48:02 -08001926} VkDescriptorImageInfo;
1927
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001928typedef struct VkDescriptorBufferInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001929 VkBuffer buffer;
1930 VkDeviceSize offset;
1931 VkDeviceSize range;
Jesse Hall5ae3abb2015-10-08 14:00:22 -07001932} VkDescriptorBufferInfo;
1933
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001934typedef struct VkWriteDescriptorSet {
Jesse Hall563380d2016-01-15 23:14:05 -08001935 VkStructureType sType;
1936 const void* pNext;
1937 VkDescriptorSet dstSet;
1938 uint32_t dstBinding;
1939 uint32_t dstArrayElement;
1940 uint32_t descriptorCount;
1941 VkDescriptorType descriptorType;
1942 const VkDescriptorImageInfo* pImageInfo;
1943 const VkDescriptorBufferInfo* pBufferInfo;
1944 const VkBufferView* pTexelBufferView;
Jesse Hall04f4f472015-08-16 19:51:04 -07001945} VkWriteDescriptorSet;
1946
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001947typedef struct VkCopyDescriptorSet {
Jesse Hall563380d2016-01-15 23:14:05 -08001948 VkStructureType sType;
1949 const void* pNext;
1950 VkDescriptorSet srcSet;
1951 uint32_t srcBinding;
1952 uint32_t srcArrayElement;
1953 VkDescriptorSet dstSet;
1954 uint32_t dstBinding;
1955 uint32_t dstArrayElement;
1956 uint32_t descriptorCount;
Jesse Hall04f4f472015-08-16 19:51:04 -07001957} VkCopyDescriptorSet;
1958
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001959typedef struct VkFramebufferCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08001960 VkStructureType sType;
1961 const void* pNext;
1962 VkFramebufferCreateFlags flags;
1963 VkRenderPass renderPass;
1964 uint32_t attachmentCount;
1965 const VkImageView* pAttachments;
1966 uint32_t width;
1967 uint32_t height;
1968 uint32_t layers;
Jesse Hall04f4f472015-08-16 19:51:04 -07001969} VkFramebufferCreateInfo;
1970
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001971typedef struct VkAttachmentDescription {
Jesse Hall563380d2016-01-15 23:14:05 -08001972 VkAttachmentDescriptionFlags flags;
1973 VkFormat format;
1974 VkSampleCountFlagBits samples;
1975 VkAttachmentLoadOp loadOp;
1976 VkAttachmentStoreOp storeOp;
1977 VkAttachmentLoadOp stencilLoadOp;
1978 VkAttachmentStoreOp stencilStoreOp;
1979 VkImageLayout initialLayout;
1980 VkImageLayout finalLayout;
Jesse Hall04f4f472015-08-16 19:51:04 -07001981} VkAttachmentDescription;
1982
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001983typedef struct VkAttachmentReference {
Jesse Hall563380d2016-01-15 23:14:05 -08001984 uint32_t attachment;
1985 VkImageLayout layout;
Jesse Hall04f4f472015-08-16 19:51:04 -07001986} VkAttachmentReference;
1987
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08001988typedef struct VkSubpassDescription {
Jesse Hall563380d2016-01-15 23:14:05 -08001989 VkSubpassDescriptionFlags flags;
1990 VkPipelineBindPoint pipelineBindPoint;
1991 uint32_t inputAttachmentCount;
1992 const VkAttachmentReference* pInputAttachments;
1993 uint32_t colorAttachmentCount;
1994 const VkAttachmentReference* pColorAttachments;
1995 const VkAttachmentReference* pResolveAttachments;
1996 const VkAttachmentReference* pDepthStencilAttachment;
1997 uint32_t preserveAttachmentCount;
1998 const uint32_t* pPreserveAttachments;
Jesse Hall04f4f472015-08-16 19:51:04 -07001999} VkSubpassDescription;
2000
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002001typedef struct VkSubpassDependency {
Jesse Hall563380d2016-01-15 23:14:05 -08002002 uint32_t srcSubpass;
2003 uint32_t dstSubpass;
2004 VkPipelineStageFlags srcStageMask;
2005 VkPipelineStageFlags dstStageMask;
2006 VkAccessFlags srcAccessMask;
2007 VkAccessFlags dstAccessMask;
2008 VkDependencyFlags dependencyFlags;
Jesse Hall04f4f472015-08-16 19:51:04 -07002009} VkSubpassDependency;
2010
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002011typedef struct VkRenderPassCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08002012 VkStructureType sType;
2013 const void* pNext;
2014 VkRenderPassCreateFlags flags;
2015 uint32_t attachmentCount;
2016 const VkAttachmentDescription* pAttachments;
2017 uint32_t subpassCount;
2018 const VkSubpassDescription* pSubpasses;
2019 uint32_t dependencyCount;
2020 const VkSubpassDependency* pDependencies;
Jesse Hall04f4f472015-08-16 19:51:04 -07002021} VkRenderPassCreateInfo;
2022
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002023typedef struct VkCommandPoolCreateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08002024 VkStructureType sType;
2025 const void* pNext;
2026 VkCommandPoolCreateFlags flags;
2027 uint32_t queueFamilyIndex;
Jesse Hall3fbc8562015-11-29 22:10:52 -08002028} VkCommandPoolCreateInfo;
Jesse Hall04f4f472015-08-16 19:51:04 -07002029
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002030typedef struct VkCommandBufferAllocateInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08002031 VkStructureType sType;
2032 const void* pNext;
2033 VkCommandPool commandPool;
2034 VkCommandBufferLevel level;
2035 uint32_t commandBufferCount;
Jesse Hall3fbc8562015-11-29 22:10:52 -08002036} VkCommandBufferAllocateInfo;
Jesse Hall04f4f472015-08-16 19:51:04 -07002037
Jesse Hall3dd678a2016-01-08 21:52:01 -08002038typedef struct VkCommandBufferInheritanceInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08002039 VkStructureType sType;
2040 const void* pNext;
2041 VkRenderPass renderPass;
2042 uint32_t subpass;
2043 VkFramebuffer framebuffer;
2044 VkBool32 occlusionQueryEnable;
2045 VkQueryControlFlags queryFlags;
2046 VkQueryPipelineStatisticFlags pipelineStatistics;
Jesse Hall3dd678a2016-01-08 21:52:01 -08002047} VkCommandBufferInheritanceInfo;
2048
2049typedef struct VkCommandBufferBeginInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08002050 VkStructureType sType;
2051 const void* pNext;
2052 VkCommandBufferUsageFlags flags;
2053 const VkCommandBufferInheritanceInfo* pInheritanceInfo;
Jesse Hall3fbc8562015-11-29 22:10:52 -08002054} VkCommandBufferBeginInfo;
Jesse Hall04f4f472015-08-16 19:51:04 -07002055
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002056typedef struct VkBufferCopy {
Jesse Hall563380d2016-01-15 23:14:05 -08002057 VkDeviceSize srcOffset;
2058 VkDeviceSize dstOffset;
2059 VkDeviceSize size;
Jesse Hall04f4f472015-08-16 19:51:04 -07002060} VkBufferCopy;
2061
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002062typedef struct VkImageSubresourceLayers {
Jesse Hall563380d2016-01-15 23:14:05 -08002063 VkImageAspectFlags aspectMask;
2064 uint32_t mipLevel;
2065 uint32_t baseArrayLayer;
2066 uint32_t layerCount;
Jesse Hall65ab5522015-11-30 00:07:16 -08002067} VkImageSubresourceLayers;
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002068
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002069typedef struct VkImageCopy {
Jesse Hall563380d2016-01-15 23:14:05 -08002070 VkImageSubresourceLayers srcSubresource;
2071 VkOffset3D srcOffset;
2072 VkImageSubresourceLayers dstSubresource;
2073 VkOffset3D dstOffset;
2074 VkExtent3D extent;
Jesse Hall04f4f472015-08-16 19:51:04 -07002075} VkImageCopy;
2076
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002077typedef struct VkImageBlit {
Jesse Hall563380d2016-01-15 23:14:05 -08002078 VkImageSubresourceLayers srcSubresource;
2079 VkOffset3D srcOffsets[2];
2080 VkImageSubresourceLayers dstSubresource;
2081 VkOffset3D dstOffsets[2];
Jesse Hall04f4f472015-08-16 19:51:04 -07002082} VkImageBlit;
2083
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002084typedef struct VkBufferImageCopy {
Jesse Hall563380d2016-01-15 23:14:05 -08002085 VkDeviceSize bufferOffset;
2086 uint32_t bufferRowLength;
2087 uint32_t bufferImageHeight;
2088 VkImageSubresourceLayers imageSubresource;
2089 VkOffset3D imageOffset;
2090 VkExtent3D imageExtent;
Jesse Hall04f4f472015-08-16 19:51:04 -07002091} VkBufferImageCopy;
2092
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002093typedef union VkClearColorValue {
Jesse Hall563380d2016-01-15 23:14:05 -08002094 float float32[4];
2095 int32_t int32[4];
2096 uint32_t uint32[4];
Jesse Hall04f4f472015-08-16 19:51:04 -07002097} VkClearColorValue;
2098
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002099typedef struct VkClearDepthStencilValue {
Jesse Hall563380d2016-01-15 23:14:05 -08002100 float depth;
2101 uint32_t stencil;
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002102} VkClearDepthStencilValue;
2103
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002104typedef union VkClearValue {
Jesse Hall563380d2016-01-15 23:14:05 -08002105 VkClearColorValue color;
2106 VkClearDepthStencilValue depthStencil;
Jesse Hallae38f732015-11-19 21:32:50 -08002107} VkClearValue;
2108
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002109typedef struct VkClearAttachment {
Jesse Hall563380d2016-01-15 23:14:05 -08002110 VkImageAspectFlags aspectMask;
2111 uint32_t colorAttachment;
2112 VkClearValue clearValue;
Jesse Hallae38f732015-11-19 21:32:50 -08002113} VkClearAttachment;
2114
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002115typedef struct VkClearRect {
Jesse Hall563380d2016-01-15 23:14:05 -08002116 VkRect2D rect;
2117 uint32_t baseArrayLayer;
2118 uint32_t layerCount;
Jesse Halla15a4bf2015-11-19 22:48:02 -08002119} VkClearRect;
Jesse Hall04f4f472015-08-16 19:51:04 -07002120
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002121typedef struct VkImageResolve {
Jesse Hall563380d2016-01-15 23:14:05 -08002122 VkImageSubresourceLayers srcSubresource;
2123 VkOffset3D srcOffset;
2124 VkImageSubresourceLayers dstSubresource;
2125 VkOffset3D dstOffset;
2126 VkExtent3D extent;
Jesse Hall04f4f472015-08-16 19:51:04 -07002127} VkImageResolve;
2128
Jesse Hall3dd678a2016-01-08 21:52:01 -08002129typedef struct VkMemoryBarrier {
Jesse Hall563380d2016-01-15 23:14:05 -08002130 VkStructureType sType;
2131 const void* pNext;
2132 VkAccessFlags srcAccessMask;
2133 VkAccessFlags dstAccessMask;
Jesse Hall3dd678a2016-01-08 21:52:01 -08002134} VkMemoryBarrier;
Jesse Hall04f4f472015-08-16 19:51:04 -07002135
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002136typedef struct VkBufferMemoryBarrier {
Jesse Hall563380d2016-01-15 23:14:05 -08002137 VkStructureType sType;
2138 const void* pNext;
2139 VkAccessFlags srcAccessMask;
2140 VkAccessFlags dstAccessMask;
2141 uint32_t srcQueueFamilyIndex;
2142 uint32_t dstQueueFamilyIndex;
2143 VkBuffer buffer;
2144 VkDeviceSize offset;
2145 VkDeviceSize size;
Jesse Hall04f4f472015-08-16 19:51:04 -07002146} VkBufferMemoryBarrier;
2147
Jesse Hall3dd678a2016-01-08 21:52:01 -08002148typedef struct VkImageMemoryBarrier {
Jesse Hall563380d2016-01-15 23:14:05 -08002149 VkStructureType sType;
2150 const void* pNext;
2151 VkAccessFlags srcAccessMask;
2152 VkAccessFlags dstAccessMask;
2153 VkImageLayout oldLayout;
2154 VkImageLayout newLayout;
2155 uint32_t srcQueueFamilyIndex;
2156 uint32_t dstQueueFamilyIndex;
2157 VkImage image;
2158 VkImageSubresourceRange subresourceRange;
Jesse Hall3dd678a2016-01-08 21:52:01 -08002159} VkImageMemoryBarrier;
2160
2161typedef struct VkRenderPassBeginInfo {
Jesse Hall563380d2016-01-15 23:14:05 -08002162 VkStructureType sType;
2163 const void* pNext;
2164 VkRenderPass renderPass;
2165 VkFramebuffer framebuffer;
2166 VkRect2D renderArea;
2167 uint32_t clearValueCount;
2168 const VkClearValue* pClearValues;
Jesse Hall3dd678a2016-01-08 21:52:01 -08002169} VkRenderPassBeginInfo;
2170
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002171typedef struct VkDispatchIndirectCommand {
Jesse Hall563380d2016-01-15 23:14:05 -08002172 uint32_t x;
2173 uint32_t y;
2174 uint32_t z;
Jesse Hall3fbc8562015-11-29 22:10:52 -08002175} VkDispatchIndirectCommand;
Jesse Hall04f4f472015-08-16 19:51:04 -07002176
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002177typedef struct VkDrawIndexedIndirectCommand {
Jesse Hall563380d2016-01-15 23:14:05 -08002178 uint32_t indexCount;
2179 uint32_t instanceCount;
2180 uint32_t firstIndex;
2181 int32_t vertexOffset;
2182 uint32_t firstInstance;
Jesse Hall3fbc8562015-11-29 22:10:52 -08002183} VkDrawIndexedIndirectCommand;
Jesse Hall04f4f472015-08-16 19:51:04 -07002184
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08002185typedef struct VkDrawIndirectCommand {
Jesse Hall563380d2016-01-15 23:14:05 -08002186 uint32_t vertexCount;
2187 uint32_t instanceCount;
2188 uint32_t firstVertex;
2189 uint32_t firstInstance;
Jesse Hall3fbc8562015-11-29 22:10:52 -08002190} VkDrawIndirectCommand;
Jesse Hall04f4f472015-08-16 19:51:04 -07002191
Jesse Hall04f4f472015-08-16 19:51:04 -07002192
Jesse Halle1b12782015-11-30 11:27:32 -08002193typedef VkResult (VKAPI_PTR *PFN_vkCreateInstance)(const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance);
2194typedef void (VKAPI_PTR *PFN_vkDestroyInstance)(VkInstance instance, const VkAllocationCallbacks* pAllocator);
2195typedef VkResult (VKAPI_PTR *PFN_vkEnumeratePhysicalDevices)(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices);
2196typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFeatures)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures);
2197typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties);
2198typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties);
2199typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties);
2200typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceQueueFamilyProperties)(VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties* pQueueFamilyProperties);
2201typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceMemoryProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties* pMemoryProperties);
2202typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetInstanceProcAddr)(VkInstance instance, const char* pName);
2203typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetDeviceProcAddr)(VkDevice device, const char* pName);
2204typedef VkResult (VKAPI_PTR *PFN_vkCreateDevice)(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDevice* pDevice);
2205typedef void (VKAPI_PTR *PFN_vkDestroyDevice)(VkDevice device, const VkAllocationCallbacks* pAllocator);
2206typedef VkResult (VKAPI_PTR *PFN_vkEnumerateInstanceExtensionProperties)(const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties);
2207typedef VkResult (VKAPI_PTR *PFN_vkEnumerateDeviceExtensionProperties)(VkPhysicalDevice physicalDevice, const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties);
2208typedef VkResult (VKAPI_PTR *PFN_vkEnumerateInstanceLayerProperties)(uint32_t* pPropertyCount, VkLayerProperties* pProperties);
2209typedef VkResult (VKAPI_PTR *PFN_vkEnumerateDeviceLayerProperties)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkLayerProperties* pProperties);
2210typedef void (VKAPI_PTR *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue* pQueue);
2211typedef VkResult (VKAPI_PTR *PFN_vkQueueSubmit)(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence);
2212typedef VkResult (VKAPI_PTR *PFN_vkQueueWaitIdle)(VkQueue queue);
2213typedef VkResult (VKAPI_PTR *PFN_vkDeviceWaitIdle)(VkDevice device);
2214typedef VkResult (VKAPI_PTR *PFN_vkAllocateMemory)(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory);
2215typedef void (VKAPI_PTR *PFN_vkFreeMemory)(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator);
2216typedef VkResult (VKAPI_PTR *PFN_vkMapMemory)(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData);
2217typedef void (VKAPI_PTR *PFN_vkUnmapMemory)(VkDevice device, VkDeviceMemory memory);
2218typedef VkResult (VKAPI_PTR *PFN_vkFlushMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges);
2219typedef VkResult (VKAPI_PTR *PFN_vkInvalidateMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges);
2220typedef void (VKAPI_PTR *PFN_vkGetDeviceMemoryCommitment)(VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes);
2221typedef VkResult (VKAPI_PTR *PFN_vkBindBufferMemory)(VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset);
2222typedef VkResult (VKAPI_PTR *PFN_vkBindImageMemory)(VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset);
2223typedef void (VKAPI_PTR *PFN_vkGetBufferMemoryRequirements)(VkDevice device, VkBuffer buffer, VkMemoryRequirements* pMemoryRequirements);
2224typedef void (VKAPI_PTR *PFN_vkGetImageMemoryRequirements)(VkDevice device, VkImage image, VkMemoryRequirements* pMemoryRequirements);
2225typedef void (VKAPI_PTR *PFN_vkGetImageSparseMemoryRequirements)(VkDevice device, VkImage image, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements* pSparseMemoryRequirements);
2226typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceSparseImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties);
2227typedef VkResult (VKAPI_PTR *PFN_vkQueueBindSparse)(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence);
2228typedef VkResult (VKAPI_PTR *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence);
2229typedef void (VKAPI_PTR *PFN_vkDestroyFence)(VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator);
2230typedef VkResult (VKAPI_PTR *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences);
2231typedef VkResult (VKAPI_PTR *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence);
2232typedef VkResult (VKAPI_PTR *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout);
2233typedef VkResult (VKAPI_PTR *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSemaphore* pSemaphore);
2234typedef void (VKAPI_PTR *PFN_vkDestroySemaphore)(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator);
2235typedef VkResult (VKAPI_PTR *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkEvent* pEvent);
2236typedef void (VKAPI_PTR *PFN_vkDestroyEvent)(VkDevice device, VkEvent event, const VkAllocationCallbacks* pAllocator);
2237typedef VkResult (VKAPI_PTR *PFN_vkGetEventStatus)(VkDevice device, VkEvent event);
2238typedef VkResult (VKAPI_PTR *PFN_vkSetEvent)(VkDevice device, VkEvent event);
2239typedef VkResult (VKAPI_PTR *PFN_vkResetEvent)(VkDevice device, VkEvent event);
2240typedef VkResult (VKAPI_PTR *PFN_vkCreateQueryPool)(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkQueryPool* pQueryPool);
2241typedef void (VKAPI_PTR *PFN_vkDestroyQueryPool)(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator);
Jesse Hallf9fa9a52016-01-08 16:08:51 -08002242typedef VkResult (VKAPI_PTR *PFN_vkGetQueryPoolResults)(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkDeviceSize stride, VkQueryResultFlags flags);
Jesse Halle1b12782015-11-30 11:27:32 -08002243typedef VkResult (VKAPI_PTR *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBuffer* pBuffer);
2244typedef void (VKAPI_PTR *PFN_vkDestroyBuffer)(VkDevice device, VkBuffer buffer, const VkAllocationCallbacks* pAllocator);
2245typedef VkResult (VKAPI_PTR *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferView* pView);
2246typedef void (VKAPI_PTR *PFN_vkDestroyBufferView)(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator);
2247typedef VkResult (VKAPI_PTR *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImage* pImage);
2248typedef void (VKAPI_PTR *PFN_vkDestroyImage)(VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator);
2249typedef void (VKAPI_PTR *PFN_vkGetImageSubresourceLayout)(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout);
2250typedef VkResult (VKAPI_PTR *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImageView* pView);
2251typedef void (VKAPI_PTR *PFN_vkDestroyImageView)(VkDevice device, VkImageView imageView, const VkAllocationCallbacks* pAllocator);
2252typedef VkResult (VKAPI_PTR *PFN_vkCreateShaderModule)(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkShaderModule* pShaderModule);
2253typedef void (VKAPI_PTR *PFN_vkDestroyShaderModule)(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator);
2254typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineCache)(VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineCache* pPipelineCache);
2255typedef void (VKAPI_PTR *PFN_vkDestroyPipelineCache)(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator);
2256typedef VkResult (VKAPI_PTR *PFN_vkGetPipelineCacheData)(VkDevice device, VkPipelineCache pipelineCache, size_t* pDataSize, void* pData);
2257typedef VkResult (VKAPI_PTR *PFN_vkMergePipelineCaches)(VkDevice device, VkPipelineCache dstCache, uint32_t srcCacheCount, const VkPipelineCache* pSrcCaches);
2258typedef VkResult (VKAPI_PTR *PFN_vkCreateGraphicsPipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkGraphicsPipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines);
2259typedef VkResult (VKAPI_PTR *PFN_vkCreateComputePipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines);
2260typedef void (VKAPI_PTR *PFN_vkDestroyPipeline)(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator);
2261typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineLayout)(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineLayout* pPipelineLayout);
2262typedef void (VKAPI_PTR *PFN_vkDestroyPipelineLayout)(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator);
2263typedef VkResult (VKAPI_PTR *PFN_vkCreateSampler)(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSampler* pSampler);
2264typedef void (VKAPI_PTR *PFN_vkDestroySampler)(VkDevice device, VkSampler sampler, const VkAllocationCallbacks* pAllocator);
2265typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorSetLayout)(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorSetLayout* pSetLayout);
2266typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorSetLayout)(VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator);
2267typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorPool)(VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorPool* pDescriptorPool);
2268typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator);
2269typedef VkResult (VKAPI_PTR *PFN_vkResetDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags);
2270typedef VkResult (VKAPI_PTR *PFN_vkAllocateDescriptorSets)(VkDevice device, const VkDescriptorSetAllocateInfo* pAllocateInfo, VkDescriptorSet* pDescriptorSets);
2271typedef VkResult (VKAPI_PTR *PFN_vkFreeDescriptorSets)(VkDevice device, VkDescriptorPool descriptorPool, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets);
2272typedef void (VKAPI_PTR *PFN_vkUpdateDescriptorSets)(VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies);
2273typedef VkResult (VKAPI_PTR *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFramebuffer* pFramebuffer);
2274typedef void (VKAPI_PTR *PFN_vkDestroyFramebuffer)(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator);
2275typedef VkResult (VKAPI_PTR *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkRenderPass* pRenderPass);
2276typedef void (VKAPI_PTR *PFN_vkDestroyRenderPass)(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator);
2277typedef void (VKAPI_PTR *PFN_vkGetRenderAreaGranularity)(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity);
2278typedef VkResult (VKAPI_PTR *PFN_vkCreateCommandPool)(VkDevice device, const VkCommandPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCommandPool* pCommandPool);
2279typedef void (VKAPI_PTR *PFN_vkDestroyCommandPool)(VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator);
2280typedef VkResult (VKAPI_PTR *PFN_vkResetCommandPool)(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags);
2281typedef VkResult (VKAPI_PTR *PFN_vkAllocateCommandBuffers)(VkDevice device, const VkCommandBufferAllocateInfo* pAllocateInfo, VkCommandBuffer* pCommandBuffers);
2282typedef void (VKAPI_PTR *PFN_vkFreeCommandBuffers)(VkDevice device, VkCommandPool commandPool, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers);
2283typedef VkResult (VKAPI_PTR *PFN_vkBeginCommandBuffer)(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo);
2284typedef VkResult (VKAPI_PTR *PFN_vkEndCommandBuffer)(VkCommandBuffer commandBuffer);
2285typedef VkResult (VKAPI_PTR *PFN_vkResetCommandBuffer)(VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags);
2286typedef void (VKAPI_PTR *PFN_vkCmdBindPipeline)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline);
Jesse Hallf9fa9a52016-01-08 16:08:51 -08002287typedef void (VKAPI_PTR *PFN_vkCmdSetViewport)(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport* pViewports);
2288typedef void (VKAPI_PTR *PFN_vkCmdSetScissor)(VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D* pScissors);
Jesse Halle1b12782015-11-30 11:27:32 -08002289typedef void (VKAPI_PTR *PFN_vkCmdSetLineWidth)(VkCommandBuffer commandBuffer, float lineWidth);
2290typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBias)(VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor);
2291typedef void (VKAPI_PTR *PFN_vkCmdSetBlendConstants)(VkCommandBuffer commandBuffer, const float blendConstants[4]);
2292typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBounds)(VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds);
2293typedef void (VKAPI_PTR *PFN_vkCmdSetStencilCompareMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask);
2294typedef void (VKAPI_PTR *PFN_vkCmdSetStencilWriteMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t writeMask);
2295typedef void (VKAPI_PTR *PFN_vkCmdSetStencilReference)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t reference);
2296typedef 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);
2297typedef void (VKAPI_PTR *PFN_vkCmdBindIndexBuffer)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType);
Jesse Hallf9fa9a52016-01-08 16:08:51 -08002298typedef void (VKAPI_PTR *PFN_vkCmdBindVertexBuffers)(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets);
Jesse Halle1b12782015-11-30 11:27:32 -08002299typedef void (VKAPI_PTR *PFN_vkCmdDraw)(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance);
2300typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexed)(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance);
2301typedef void (VKAPI_PTR *PFN_vkCmdDrawIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride);
2302typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexedIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride);
2303typedef void (VKAPI_PTR *PFN_vkCmdDispatch)(VkCommandBuffer commandBuffer, uint32_t x, uint32_t y, uint32_t z);
2304typedef void (VKAPI_PTR *PFN_vkCmdDispatchIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset);
2305typedef void (VKAPI_PTR *PFN_vkCmdCopyBuffer)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy* pRegions);
2306typedef void (VKAPI_PTR *PFN_vkCmdCopyImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageCopy* pRegions);
2307typedef void (VKAPI_PTR *PFN_vkCmdBlitImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkFilter filter);
2308typedef void (VKAPI_PTR *PFN_vkCmdCopyBufferToImage)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions);
2309typedef void (VKAPI_PTR *PFN_vkCmdCopyImageToBuffer)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions);
2310typedef void (VKAPI_PTR *PFN_vkCmdUpdateBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const uint32_t* pData);
2311typedef void (VKAPI_PTR *PFN_vkCmdFillBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data);
2312typedef void (VKAPI_PTR *PFN_vkCmdClearColorImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges);
2313typedef void (VKAPI_PTR *PFN_vkCmdClearDepthStencilImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges);
2314typedef void (VKAPI_PTR *PFN_vkCmdClearAttachments)(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment* pAttachments, uint32_t rectCount, const VkClearRect* pRects);
2315typedef void (VKAPI_PTR *PFN_vkCmdResolveImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageResolve* pRegions);
2316typedef void (VKAPI_PTR *PFN_vkCmdSetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask);
2317typedef void (VKAPI_PTR *PFN_vkCmdResetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask);
Jesse Hall3dd678a2016-01-08 21:52:01 -08002318typedef 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);
2319typedef 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);
2320typedef void (VKAPI_PTR *PFN_vkCmdBeginQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags);
2321typedef void (VKAPI_PTR *PFN_vkCmdEndQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query);
Jesse Hallf9fa9a52016-01-08 16:08:51 -08002322typedef void (VKAPI_PTR *PFN_vkCmdResetQueryPool)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount);
Jesse Hall3dd678a2016-01-08 21:52:01 -08002323typedef void (VKAPI_PTR *PFN_vkCmdWriteTimestamp)(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, uint32_t query);
Jesse Hallf9fa9a52016-01-08 16:08:51 -08002324typedef void (VKAPI_PTR *PFN_vkCmdCopyQueryPoolResults)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags);
Jesse Hallf4ab2b12015-11-30 16:04:55 -08002325typedef void (VKAPI_PTR *PFN_vkCmdPushConstants)(VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void* pValues);
Jesse Halle1b12782015-11-30 11:27:32 -08002326typedef void (VKAPI_PTR *PFN_vkCmdBeginRenderPass)(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkSubpassContents contents);
2327typedef void (VKAPI_PTR *PFN_vkCmdNextSubpass)(VkCommandBuffer commandBuffer, VkSubpassContents contents);
2328typedef void (VKAPI_PTR *PFN_vkCmdEndRenderPass)(VkCommandBuffer commandBuffer);
Jesse Hall3dd678a2016-01-08 21:52:01 -08002329typedef void (VKAPI_PTR *PFN_vkCmdExecuteCommands)(VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers);
Jesse Hall04f4f472015-08-16 19:51:04 -07002330
Jesse Hall563380d2016-01-15 23:14:05 -08002331#ifndef VK_NO_PROTOTYPES
Jesse Halle1b12782015-11-30 11:27:32 -08002332VKAPI_ATTR VkResult VKAPI_CALL vkCreateInstance(
Jesse Hall04f4f472015-08-16 19:51:04 -07002333 const VkInstanceCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002334 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002335 VkInstance* pInstance);
2336
Jesse Halle1b12782015-11-30 11:27:32 -08002337VKAPI_ATTR void VKAPI_CALL vkDestroyInstance(
Jesse Hall03b6fe12015-11-24 12:44:21 -08002338 VkInstance instance,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002339 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002340
Jesse Halle1b12782015-11-30 11:27:32 -08002341VKAPI_ATTR VkResult VKAPI_CALL vkEnumeratePhysicalDevices(
Jesse Hall04f4f472015-08-16 19:51:04 -07002342 VkInstance instance,
2343 uint32_t* pPhysicalDeviceCount,
2344 VkPhysicalDevice* pPhysicalDevices);
2345
Jesse Halle1b12782015-11-30 11:27:32 -08002346VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFeatures(
Jesse Hall04f4f472015-08-16 19:51:04 -07002347 VkPhysicalDevice physicalDevice,
2348 VkPhysicalDeviceFeatures* pFeatures);
2349
Jesse Halle1b12782015-11-30 11:27:32 -08002350VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFormatProperties(
Jesse Hall04f4f472015-08-16 19:51:04 -07002351 VkPhysicalDevice physicalDevice,
2352 VkFormat format,
2353 VkFormatProperties* pFormatProperties);
2354
Jesse Halle1b12782015-11-30 11:27:32 -08002355VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceImageFormatProperties(
Jesse Hall04f4f472015-08-16 19:51:04 -07002356 VkPhysicalDevice physicalDevice,
2357 VkFormat format,
2358 VkImageType type,
2359 VkImageTiling tiling,
2360 VkImageUsageFlags usage,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002361 VkImageCreateFlags flags,
Jesse Hall04f4f472015-08-16 19:51:04 -07002362 VkImageFormatProperties* pImageFormatProperties);
2363
Jesse Halle1b12782015-11-30 11:27:32 -08002364VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceProperties(
Jesse Hall04f4f472015-08-16 19:51:04 -07002365 VkPhysicalDevice physicalDevice,
2366 VkPhysicalDeviceProperties* pProperties);
2367
Jesse Halle1b12782015-11-30 11:27:32 -08002368VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceQueueFamilyProperties(
Jesse Hall04f4f472015-08-16 19:51:04 -07002369 VkPhysicalDevice physicalDevice,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002370 uint32_t* pQueueFamilyPropertyCount,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002371 VkQueueFamilyProperties* pQueueFamilyProperties);
Jesse Hall04f4f472015-08-16 19:51:04 -07002372
Jesse Halle1b12782015-11-30 11:27:32 -08002373VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties(
Jesse Hall04f4f472015-08-16 19:51:04 -07002374 VkPhysicalDevice physicalDevice,
2375 VkPhysicalDeviceMemoryProperties* pMemoryProperties);
2376
Jesse Halle1b12782015-11-30 11:27:32 -08002377VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetInstanceProcAddr(
Jesse Hall04f4f472015-08-16 19:51:04 -07002378 VkInstance instance,
2379 const char* pName);
2380
Jesse Halle1b12782015-11-30 11:27:32 -08002381VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetDeviceProcAddr(
Jesse Hall04f4f472015-08-16 19:51:04 -07002382 VkDevice device,
2383 const char* pName);
2384
Jesse Halle1b12782015-11-30 11:27:32 -08002385VKAPI_ATTR VkResult VKAPI_CALL vkCreateDevice(
Jesse Hall04f4f472015-08-16 19:51:04 -07002386 VkPhysicalDevice physicalDevice,
2387 const VkDeviceCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002388 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002389 VkDevice* pDevice);
2390
Jesse Halle1b12782015-11-30 11:27:32 -08002391VKAPI_ATTR void VKAPI_CALL vkDestroyDevice(
Jesse Hall03b6fe12015-11-24 12:44:21 -08002392 VkDevice device,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002393 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002394
Jesse Halle1b12782015-11-30 11:27:32 -08002395VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceExtensionProperties(
Jesse Hall04f4f472015-08-16 19:51:04 -07002396 const char* pLayerName,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002397 uint32_t* pPropertyCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002398 VkExtensionProperties* pProperties);
2399
Jesse Halle1b12782015-11-30 11:27:32 -08002400VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceExtensionProperties(
Jesse Hall04f4f472015-08-16 19:51:04 -07002401 VkPhysicalDevice physicalDevice,
2402 const char* pLayerName,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002403 uint32_t* pPropertyCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002404 VkExtensionProperties* pProperties);
2405
Jesse Halle1b12782015-11-30 11:27:32 -08002406VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceLayerProperties(
Jesse Hall03b6fe12015-11-24 12:44:21 -08002407 uint32_t* pPropertyCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002408 VkLayerProperties* pProperties);
2409
Jesse Halle1b12782015-11-30 11:27:32 -08002410VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceLayerProperties(
Jesse Hall04f4f472015-08-16 19:51:04 -07002411 VkPhysicalDevice physicalDevice,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002412 uint32_t* pPropertyCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002413 VkLayerProperties* pProperties);
2414
Jesse Halle1b12782015-11-30 11:27:32 -08002415VKAPI_ATTR void VKAPI_CALL vkGetDeviceQueue(
Jesse Hall04f4f472015-08-16 19:51:04 -07002416 VkDevice device,
2417 uint32_t queueFamilyIndex,
2418 uint32_t queueIndex,
2419 VkQueue* pQueue);
2420
Jesse Halle1b12782015-11-30 11:27:32 -08002421VKAPI_ATTR VkResult VKAPI_CALL vkQueueSubmit(
Jesse Hall04f4f472015-08-16 19:51:04 -07002422 VkQueue queue,
Jesse Halla366a512015-11-19 22:30:07 -08002423 uint32_t submitCount,
Jesse Hallb00daad2015-11-29 19:46:20 -08002424 const VkSubmitInfo* pSubmits,
Jesse Hall04f4f472015-08-16 19:51:04 -07002425 VkFence fence);
2426
Jesse Halle1b12782015-11-30 11:27:32 -08002427VKAPI_ATTR VkResult VKAPI_CALL vkQueueWaitIdle(
Jesse Hall04f4f472015-08-16 19:51:04 -07002428 VkQueue queue);
2429
Jesse Halle1b12782015-11-30 11:27:32 -08002430VKAPI_ATTR VkResult VKAPI_CALL vkDeviceWaitIdle(
Jesse Hall04f4f472015-08-16 19:51:04 -07002431 VkDevice device);
2432
Jesse Halle1b12782015-11-30 11:27:32 -08002433VKAPI_ATTR VkResult VKAPI_CALL vkAllocateMemory(
Jesse Hall04f4f472015-08-16 19:51:04 -07002434 VkDevice device,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002435 const VkMemoryAllocateInfo* pAllocateInfo,
2436 const VkAllocationCallbacks* pAllocator,
2437 VkDeviceMemory* pMemory);
Jesse Hall04f4f472015-08-16 19:51:04 -07002438
Jesse Halle1b12782015-11-30 11:27:32 -08002439VKAPI_ATTR void VKAPI_CALL vkFreeMemory(
Jesse Hall04f4f472015-08-16 19:51:04 -07002440 VkDevice device,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002441 VkDeviceMemory memory,
2442 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002443
Jesse Halle1b12782015-11-30 11:27:32 -08002444VKAPI_ATTR VkResult VKAPI_CALL vkMapMemory(
Jesse Hall04f4f472015-08-16 19:51:04 -07002445 VkDevice device,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002446 VkDeviceMemory memory,
Jesse Hall04f4f472015-08-16 19:51:04 -07002447 VkDeviceSize offset,
2448 VkDeviceSize size,
2449 VkMemoryMapFlags flags,
2450 void** ppData);
2451
Jesse Halle1b12782015-11-30 11:27:32 -08002452VKAPI_ATTR void VKAPI_CALL vkUnmapMemory(
Jesse Hall04f4f472015-08-16 19:51:04 -07002453 VkDevice device,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002454 VkDeviceMemory memory);
Jesse Hall04f4f472015-08-16 19:51:04 -07002455
Jesse Halle1b12782015-11-30 11:27:32 -08002456VKAPI_ATTR VkResult VKAPI_CALL vkFlushMappedMemoryRanges(
Jesse Hall04f4f472015-08-16 19:51:04 -07002457 VkDevice device,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002458 uint32_t memoryRangeCount,
2459 const VkMappedMemoryRange* pMemoryRanges);
Jesse Hall04f4f472015-08-16 19:51:04 -07002460
Jesse Halle1b12782015-11-30 11:27:32 -08002461VKAPI_ATTR VkResult VKAPI_CALL vkInvalidateMappedMemoryRanges(
Jesse Hall04f4f472015-08-16 19:51:04 -07002462 VkDevice device,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002463 uint32_t memoryRangeCount,
2464 const VkMappedMemoryRange* pMemoryRanges);
Jesse Hall04f4f472015-08-16 19:51:04 -07002465
Jesse Halle1b12782015-11-30 11:27:32 -08002466VKAPI_ATTR void VKAPI_CALL vkGetDeviceMemoryCommitment(
Jesse Hall04f4f472015-08-16 19:51:04 -07002467 VkDevice device,
2468 VkDeviceMemory memory,
2469 VkDeviceSize* pCommittedMemoryInBytes);
2470
Jesse Halle1b12782015-11-30 11:27:32 -08002471VKAPI_ATTR VkResult VKAPI_CALL vkBindBufferMemory(
Jesse Hall04f4f472015-08-16 19:51:04 -07002472 VkDevice device,
2473 VkBuffer buffer,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002474 VkDeviceMemory memory,
2475 VkDeviceSize memoryOffset);
Jesse Hall04f4f472015-08-16 19:51:04 -07002476
Jesse Halle1b12782015-11-30 11:27:32 -08002477VKAPI_ATTR VkResult VKAPI_CALL vkBindImageMemory(
Jesse Hall04f4f472015-08-16 19:51:04 -07002478 VkDevice device,
2479 VkImage image,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002480 VkDeviceMemory memory,
2481 VkDeviceSize memoryOffset);
Jesse Hall04f4f472015-08-16 19:51:04 -07002482
Jesse Halle1b12782015-11-30 11:27:32 -08002483VKAPI_ATTR void VKAPI_CALL vkGetBufferMemoryRequirements(
Jesse Hall04f4f472015-08-16 19:51:04 -07002484 VkDevice device,
2485 VkBuffer buffer,
2486 VkMemoryRequirements* pMemoryRequirements);
2487
Jesse Halle1b12782015-11-30 11:27:32 -08002488VKAPI_ATTR void VKAPI_CALL vkGetImageMemoryRequirements(
Jesse Hall04f4f472015-08-16 19:51:04 -07002489 VkDevice device,
2490 VkImage image,
2491 VkMemoryRequirements* pMemoryRequirements);
2492
Jesse Halle1b12782015-11-30 11:27:32 -08002493VKAPI_ATTR void VKAPI_CALL vkGetImageSparseMemoryRequirements(
Jesse Hall04f4f472015-08-16 19:51:04 -07002494 VkDevice device,
2495 VkImage image,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002496 uint32_t* pSparseMemoryRequirementCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002497 VkSparseImageMemoryRequirements* pSparseMemoryRequirements);
2498
Jesse Halle1b12782015-11-30 11:27:32 -08002499VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties(
Jesse Hall04f4f472015-08-16 19:51:04 -07002500 VkPhysicalDevice physicalDevice,
2501 VkFormat format,
2502 VkImageType type,
Jesse Hall091ed9e2015-11-30 00:55:29 -08002503 VkSampleCountFlagBits samples,
Jesse Hall04f4f472015-08-16 19:51:04 -07002504 VkImageUsageFlags usage,
2505 VkImageTiling tiling,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002506 uint32_t* pPropertyCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002507 VkSparseImageFormatProperties* pProperties);
2508
Jesse Halle1b12782015-11-30 11:27:32 -08002509VKAPI_ATTR VkResult VKAPI_CALL vkQueueBindSparse(
Jesse Hall04f4f472015-08-16 19:51:04 -07002510 VkQueue queue,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002511 uint32_t bindInfoCount,
Jesse Halla6429252015-11-29 18:59:42 -08002512 const VkBindSparseInfo* pBindInfo,
2513 VkFence fence);
Jesse Hall04f4f472015-08-16 19:51:04 -07002514
Jesse Halle1b12782015-11-30 11:27:32 -08002515VKAPI_ATTR VkResult VKAPI_CALL vkCreateFence(
Jesse Hall04f4f472015-08-16 19:51:04 -07002516 VkDevice device,
2517 const VkFenceCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002518 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002519 VkFence* pFence);
2520
Jesse Halle1b12782015-11-30 11:27:32 -08002521VKAPI_ATTR void VKAPI_CALL vkDestroyFence(
Jesse Hall04f4f472015-08-16 19:51:04 -07002522 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002523 VkFence fence,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002524 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002525
Jesse Halle1b12782015-11-30 11:27:32 -08002526VKAPI_ATTR VkResult VKAPI_CALL vkResetFences(
Jesse Hall04f4f472015-08-16 19:51:04 -07002527 VkDevice device,
2528 uint32_t fenceCount,
2529 const VkFence* pFences);
2530
Jesse Halle1b12782015-11-30 11:27:32 -08002531VKAPI_ATTR VkResult VKAPI_CALL vkGetFenceStatus(
Jesse Hall04f4f472015-08-16 19:51:04 -07002532 VkDevice device,
2533 VkFence fence);
2534
Jesse Halle1b12782015-11-30 11:27:32 -08002535VKAPI_ATTR VkResult VKAPI_CALL vkWaitForFences(
Jesse Hall04f4f472015-08-16 19:51:04 -07002536 VkDevice device,
2537 uint32_t fenceCount,
2538 const VkFence* pFences,
2539 VkBool32 waitAll,
2540 uint64_t timeout);
2541
Jesse Halle1b12782015-11-30 11:27:32 -08002542VKAPI_ATTR VkResult VKAPI_CALL vkCreateSemaphore(
Jesse Hall04f4f472015-08-16 19:51:04 -07002543 VkDevice device,
2544 const VkSemaphoreCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002545 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002546 VkSemaphore* pSemaphore);
2547
Jesse Halle1b12782015-11-30 11:27:32 -08002548VKAPI_ATTR void VKAPI_CALL vkDestroySemaphore(
Jesse Hall04f4f472015-08-16 19:51:04 -07002549 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002550 VkSemaphore semaphore,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002551 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002552
Jesse Halle1b12782015-11-30 11:27:32 -08002553VKAPI_ATTR VkResult VKAPI_CALL vkCreateEvent(
Jesse Hall04f4f472015-08-16 19:51:04 -07002554 VkDevice device,
2555 const VkEventCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002556 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002557 VkEvent* pEvent);
2558
Jesse Halle1b12782015-11-30 11:27:32 -08002559VKAPI_ATTR void VKAPI_CALL vkDestroyEvent(
Jesse Hall04f4f472015-08-16 19:51:04 -07002560 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002561 VkEvent event,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002562 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002563
Jesse Halle1b12782015-11-30 11:27:32 -08002564VKAPI_ATTR VkResult VKAPI_CALL vkGetEventStatus(
Jesse Hall04f4f472015-08-16 19:51:04 -07002565 VkDevice device,
2566 VkEvent event);
2567
Jesse Halle1b12782015-11-30 11:27:32 -08002568VKAPI_ATTR VkResult VKAPI_CALL vkSetEvent(
Jesse Hall04f4f472015-08-16 19:51:04 -07002569 VkDevice device,
2570 VkEvent event);
2571
Jesse Halle1b12782015-11-30 11:27:32 -08002572VKAPI_ATTR VkResult VKAPI_CALL vkResetEvent(
Jesse Hall04f4f472015-08-16 19:51:04 -07002573 VkDevice device,
2574 VkEvent event);
2575
Jesse Halle1b12782015-11-30 11:27:32 -08002576VKAPI_ATTR VkResult VKAPI_CALL vkCreateQueryPool(
Jesse Hall04f4f472015-08-16 19:51:04 -07002577 VkDevice device,
2578 const VkQueryPoolCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002579 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002580 VkQueryPool* pQueryPool);
2581
Jesse Halle1b12782015-11-30 11:27:32 -08002582VKAPI_ATTR void VKAPI_CALL vkDestroyQueryPool(
Jesse Hall04f4f472015-08-16 19:51:04 -07002583 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002584 VkQueryPool queryPool,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002585 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002586
Jesse Halle1b12782015-11-30 11:27:32 -08002587VKAPI_ATTR VkResult VKAPI_CALL vkGetQueryPoolResults(
Jesse Hall04f4f472015-08-16 19:51:04 -07002588 VkDevice device,
2589 VkQueryPool queryPool,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08002590 uint32_t firstQuery,
Jesse Hall04f4f472015-08-16 19:51:04 -07002591 uint32_t queryCount,
Jesse Halla9bb62b2015-11-21 19:31:56 -08002592 size_t dataSize,
Jesse Hall04f4f472015-08-16 19:51:04 -07002593 void* pData,
Jesse Halla9bb62b2015-11-21 19:31:56 -08002594 VkDeviceSize stride,
Jesse Hall04f4f472015-08-16 19:51:04 -07002595 VkQueryResultFlags flags);
2596
Jesse Halle1b12782015-11-30 11:27:32 -08002597VKAPI_ATTR VkResult VKAPI_CALL vkCreateBuffer(
Jesse Hall04f4f472015-08-16 19:51:04 -07002598 VkDevice device,
2599 const VkBufferCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002600 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002601 VkBuffer* pBuffer);
2602
Jesse Halle1b12782015-11-30 11:27:32 -08002603VKAPI_ATTR void VKAPI_CALL vkDestroyBuffer(
Jesse Hall04f4f472015-08-16 19:51:04 -07002604 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002605 VkBuffer buffer,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002606 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002607
Jesse Halle1b12782015-11-30 11:27:32 -08002608VKAPI_ATTR VkResult VKAPI_CALL vkCreateBufferView(
Jesse Hall04f4f472015-08-16 19:51:04 -07002609 VkDevice device,
2610 const VkBufferViewCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002611 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002612 VkBufferView* pView);
2613
Jesse Halle1b12782015-11-30 11:27:32 -08002614VKAPI_ATTR void VKAPI_CALL vkDestroyBufferView(
Jesse Hall04f4f472015-08-16 19:51:04 -07002615 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002616 VkBufferView bufferView,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002617 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002618
Jesse Halle1b12782015-11-30 11:27:32 -08002619VKAPI_ATTR VkResult VKAPI_CALL vkCreateImage(
Jesse Hall04f4f472015-08-16 19:51:04 -07002620 VkDevice device,
2621 const VkImageCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002622 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002623 VkImage* pImage);
2624
Jesse Halle1b12782015-11-30 11:27:32 -08002625VKAPI_ATTR void VKAPI_CALL vkDestroyImage(
Jesse Hall04f4f472015-08-16 19:51:04 -07002626 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002627 VkImage image,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002628 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002629
Jesse Halle1b12782015-11-30 11:27:32 -08002630VKAPI_ATTR void VKAPI_CALL vkGetImageSubresourceLayout(
Jesse Hall04f4f472015-08-16 19:51:04 -07002631 VkDevice device,
2632 VkImage image,
2633 const VkImageSubresource* pSubresource,
2634 VkSubresourceLayout* pLayout);
2635
Jesse Halle1b12782015-11-30 11:27:32 -08002636VKAPI_ATTR VkResult VKAPI_CALL vkCreateImageView(
Jesse Hall04f4f472015-08-16 19:51:04 -07002637 VkDevice device,
2638 const VkImageViewCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002639 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002640 VkImageView* pView);
2641
Jesse Halle1b12782015-11-30 11:27:32 -08002642VKAPI_ATTR void VKAPI_CALL vkDestroyImageView(
Jesse Hall04f4f472015-08-16 19:51:04 -07002643 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002644 VkImageView imageView,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002645 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002646
Jesse Halle1b12782015-11-30 11:27:32 -08002647VKAPI_ATTR VkResult VKAPI_CALL vkCreateShaderModule(
Jesse Hall04f4f472015-08-16 19:51:04 -07002648 VkDevice device,
2649 const VkShaderModuleCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002650 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002651 VkShaderModule* pShaderModule);
2652
Jesse Halle1b12782015-11-30 11:27:32 -08002653VKAPI_ATTR void VKAPI_CALL vkDestroyShaderModule(
Jesse Hall04f4f472015-08-16 19:51:04 -07002654 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002655 VkShaderModule shaderModule,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002656 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002657
Jesse Halle1b12782015-11-30 11:27:32 -08002658VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineCache(
Jesse Hall04f4f472015-08-16 19:51:04 -07002659 VkDevice device,
2660 const VkPipelineCacheCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002661 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002662 VkPipelineCache* pPipelineCache);
2663
Jesse Halle1b12782015-11-30 11:27:32 -08002664VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineCache(
Jesse Hall04f4f472015-08-16 19:51:04 -07002665 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002666 VkPipelineCache pipelineCache,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002667 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002668
Jesse Halle1b12782015-11-30 11:27:32 -08002669VKAPI_ATTR VkResult VKAPI_CALL vkGetPipelineCacheData(
Jesse Hall04f4f472015-08-16 19:51:04 -07002670 VkDevice device,
2671 VkPipelineCache pipelineCache,
Jesse Halla9bb62b2015-11-21 19:31:56 -08002672 size_t* pDataSize,
Jesse Hall04f4f472015-08-16 19:51:04 -07002673 void* pData);
2674
Jesse Halle1b12782015-11-30 11:27:32 -08002675VKAPI_ATTR VkResult VKAPI_CALL vkMergePipelineCaches(
Jesse Hall04f4f472015-08-16 19:51:04 -07002676 VkDevice device,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002677 VkPipelineCache dstCache,
Jesse Hall04f4f472015-08-16 19:51:04 -07002678 uint32_t srcCacheCount,
2679 const VkPipelineCache* pSrcCaches);
2680
Jesse Halle1b12782015-11-30 11:27:32 -08002681VKAPI_ATTR VkResult VKAPI_CALL vkCreateGraphicsPipelines(
Jesse Hall04f4f472015-08-16 19:51:04 -07002682 VkDevice device,
2683 VkPipelineCache pipelineCache,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002684 uint32_t createInfoCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002685 const VkGraphicsPipelineCreateInfo* pCreateInfos,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002686 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002687 VkPipeline* pPipelines);
2688
Jesse Halle1b12782015-11-30 11:27:32 -08002689VKAPI_ATTR VkResult VKAPI_CALL vkCreateComputePipelines(
Jesse Hall04f4f472015-08-16 19:51:04 -07002690 VkDevice device,
2691 VkPipelineCache pipelineCache,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002692 uint32_t createInfoCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002693 const VkComputePipelineCreateInfo* pCreateInfos,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002694 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002695 VkPipeline* pPipelines);
2696
Jesse Halle1b12782015-11-30 11:27:32 -08002697VKAPI_ATTR void VKAPI_CALL vkDestroyPipeline(
Jesse Hall04f4f472015-08-16 19:51:04 -07002698 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002699 VkPipeline pipeline,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002700 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002701
Jesse Halle1b12782015-11-30 11:27:32 -08002702VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineLayout(
Jesse Hall04f4f472015-08-16 19:51:04 -07002703 VkDevice device,
2704 const VkPipelineLayoutCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002705 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002706 VkPipelineLayout* pPipelineLayout);
2707
Jesse Halle1b12782015-11-30 11:27:32 -08002708VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineLayout(
Jesse Hall04f4f472015-08-16 19:51:04 -07002709 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002710 VkPipelineLayout pipelineLayout,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002711 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002712
Jesse Halle1b12782015-11-30 11:27:32 -08002713VKAPI_ATTR VkResult VKAPI_CALL vkCreateSampler(
Jesse Hall04f4f472015-08-16 19:51:04 -07002714 VkDevice device,
2715 const VkSamplerCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002716 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002717 VkSampler* pSampler);
2718
Jesse Halle1b12782015-11-30 11:27:32 -08002719VKAPI_ATTR void VKAPI_CALL vkDestroySampler(
Jesse Hall04f4f472015-08-16 19:51:04 -07002720 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002721 VkSampler sampler,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002722 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002723
Jesse Halle1b12782015-11-30 11:27:32 -08002724VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorSetLayout(
Jesse Hall04f4f472015-08-16 19:51:04 -07002725 VkDevice device,
2726 const VkDescriptorSetLayoutCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002727 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002728 VkDescriptorSetLayout* pSetLayout);
2729
Jesse Halle1b12782015-11-30 11:27:32 -08002730VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorSetLayout(
Jesse Hall04f4f472015-08-16 19:51:04 -07002731 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002732 VkDescriptorSetLayout descriptorSetLayout,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002733 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002734
Jesse Halle1b12782015-11-30 11:27:32 -08002735VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorPool(
Jesse Hall04f4f472015-08-16 19:51:04 -07002736 VkDevice device,
Jesse Hall04f4f472015-08-16 19:51:04 -07002737 const VkDescriptorPoolCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002738 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002739 VkDescriptorPool* pDescriptorPool);
2740
Jesse Halle1b12782015-11-30 11:27:32 -08002741VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorPool(
Jesse Hall04f4f472015-08-16 19:51:04 -07002742 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002743 VkDescriptorPool descriptorPool,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002744 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002745
Jesse Halle1b12782015-11-30 11:27:32 -08002746VKAPI_ATTR VkResult VKAPI_CALL vkResetDescriptorPool(
Jesse Hall04f4f472015-08-16 19:51:04 -07002747 VkDevice device,
Jesse Hallfbf97b02015-11-20 14:17:03 -08002748 VkDescriptorPool descriptorPool,
2749 VkDescriptorPoolResetFlags flags);
Jesse Hall04f4f472015-08-16 19:51:04 -07002750
Jesse Halle1b12782015-11-30 11:27:32 -08002751VKAPI_ATTR VkResult VKAPI_CALL vkAllocateDescriptorSets(
Jesse Hall04f4f472015-08-16 19:51:04 -07002752 VkDevice device,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002753 const VkDescriptorSetAllocateInfo* pAllocateInfo,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002754 VkDescriptorSet* pDescriptorSets);
Jesse Hall04f4f472015-08-16 19:51:04 -07002755
Jesse Halle1b12782015-11-30 11:27:32 -08002756VKAPI_ATTR VkResult VKAPI_CALL vkFreeDescriptorSets(
Jesse Hall04f4f472015-08-16 19:51:04 -07002757 VkDevice device,
2758 VkDescriptorPool descriptorPool,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002759 uint32_t descriptorSetCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002760 const VkDescriptorSet* pDescriptorSets);
2761
Jesse Halle1b12782015-11-30 11:27:32 -08002762VKAPI_ATTR void VKAPI_CALL vkUpdateDescriptorSets(
Jesse Hall04f4f472015-08-16 19:51:04 -07002763 VkDevice device,
Jesse Hallb00daad2015-11-29 19:46:20 -08002764 uint32_t descriptorWriteCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002765 const VkWriteDescriptorSet* pDescriptorWrites,
Jesse Hallb00daad2015-11-29 19:46:20 -08002766 uint32_t descriptorCopyCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002767 const VkCopyDescriptorSet* pDescriptorCopies);
2768
Jesse Halle1b12782015-11-30 11:27:32 -08002769VKAPI_ATTR VkResult VKAPI_CALL vkCreateFramebuffer(
Jesse Hall04f4f472015-08-16 19:51:04 -07002770 VkDevice device,
2771 const VkFramebufferCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002772 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002773 VkFramebuffer* pFramebuffer);
2774
Jesse Halle1b12782015-11-30 11:27:32 -08002775VKAPI_ATTR void VKAPI_CALL vkDestroyFramebuffer(
Jesse Hall04f4f472015-08-16 19:51:04 -07002776 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002777 VkFramebuffer framebuffer,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002778 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002779
Jesse Halle1b12782015-11-30 11:27:32 -08002780VKAPI_ATTR VkResult VKAPI_CALL vkCreateRenderPass(
Jesse Hall04f4f472015-08-16 19:51:04 -07002781 VkDevice device,
2782 const VkRenderPassCreateInfo* pCreateInfo,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002783 const VkAllocationCallbacks* pAllocator,
Jesse Hall04f4f472015-08-16 19:51:04 -07002784 VkRenderPass* pRenderPass);
2785
Jesse Halle1b12782015-11-30 11:27:32 -08002786VKAPI_ATTR void VKAPI_CALL vkDestroyRenderPass(
Jesse Hall04f4f472015-08-16 19:51:04 -07002787 VkDevice device,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002788 VkRenderPass renderPass,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002789 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002790
Jesse Halle1b12782015-11-30 11:27:32 -08002791VKAPI_ATTR void VKAPI_CALL vkGetRenderAreaGranularity(
Jesse Hall04f4f472015-08-16 19:51:04 -07002792 VkDevice device,
2793 VkRenderPass renderPass,
2794 VkExtent2D* pGranularity);
2795
Jesse Halle1b12782015-11-30 11:27:32 -08002796VKAPI_ATTR VkResult VKAPI_CALL vkCreateCommandPool(
Jesse Hall04f4f472015-08-16 19:51:04 -07002797 VkDevice device,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002798 const VkCommandPoolCreateInfo* pCreateInfo,
2799 const VkAllocationCallbacks* pAllocator,
2800 VkCommandPool* pCommandPool);
Jesse Hall04f4f472015-08-16 19:51:04 -07002801
Jesse Halle1b12782015-11-30 11:27:32 -08002802VKAPI_ATTR void VKAPI_CALL vkDestroyCommandPool(
Jesse Hall04f4f472015-08-16 19:51:04 -07002803 VkDevice device,
Jesse Hall65ab5522015-11-30 00:07:16 -08002804 VkCommandPool commandPool,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002805 const VkAllocationCallbacks* pAllocator);
Jesse Hall04f4f472015-08-16 19:51:04 -07002806
Jesse Halle1b12782015-11-30 11:27:32 -08002807VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandPool(
Jesse Hall04f4f472015-08-16 19:51:04 -07002808 VkDevice device,
Jesse Hall65ab5522015-11-30 00:07:16 -08002809 VkCommandPool commandPool,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002810 VkCommandPoolResetFlags flags);
Jesse Hall04f4f472015-08-16 19:51:04 -07002811
Jesse Halle1b12782015-11-30 11:27:32 -08002812VKAPI_ATTR VkResult VKAPI_CALL vkAllocateCommandBuffers(
Jesse Hall04f4f472015-08-16 19:51:04 -07002813 VkDevice device,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002814 const VkCommandBufferAllocateInfo* pAllocateInfo,
2815 VkCommandBuffer* pCommandBuffers);
Jesse Hall04f4f472015-08-16 19:51:04 -07002816
Jesse Halle1b12782015-11-30 11:27:32 -08002817VKAPI_ATTR void VKAPI_CALL vkFreeCommandBuffers(
Jesse Hall04f4f472015-08-16 19:51:04 -07002818 VkDevice device,
Jesse Hall65ab5522015-11-30 00:07:16 -08002819 VkCommandPool commandPool,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002820 uint32_t commandBufferCount,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002821 const VkCommandBuffer* pCommandBuffers);
Jesse Hall04f4f472015-08-16 19:51:04 -07002822
Jesse Halle1b12782015-11-30 11:27:32 -08002823VKAPI_ATTR VkResult VKAPI_CALL vkBeginCommandBuffer(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002824 VkCommandBuffer commandBuffer,
2825 const VkCommandBufferBeginInfo* pBeginInfo);
Jesse Hall04f4f472015-08-16 19:51:04 -07002826
Jesse Halle1b12782015-11-30 11:27:32 -08002827VKAPI_ATTR VkResult VKAPI_CALL vkEndCommandBuffer(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002828 VkCommandBuffer commandBuffer);
Jesse Hall04f4f472015-08-16 19:51:04 -07002829
Jesse Halle1b12782015-11-30 11:27:32 -08002830VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandBuffer(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002831 VkCommandBuffer commandBuffer,
2832 VkCommandBufferResetFlags flags);
Jesse Hall04f4f472015-08-16 19:51:04 -07002833
Jesse Halle1b12782015-11-30 11:27:32 -08002834VKAPI_ATTR void VKAPI_CALL vkCmdBindPipeline(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002835 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002836 VkPipelineBindPoint pipelineBindPoint,
2837 VkPipeline pipeline);
2838
Jesse Halle1b12782015-11-30 11:27:32 -08002839VKAPI_ATTR void VKAPI_CALL vkCmdSetViewport(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002840 VkCommandBuffer commandBuffer,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08002841 uint32_t firstViewport,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002842 uint32_t viewportCount,
2843 const VkViewport* pViewports);
Jesse Hall04f4f472015-08-16 19:51:04 -07002844
Jesse Halle1b12782015-11-30 11:27:32 -08002845VKAPI_ATTR void VKAPI_CALL vkCmdSetScissor(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002846 VkCommandBuffer commandBuffer,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08002847 uint32_t firstScissor,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002848 uint32_t scissorCount,
2849 const VkRect2D* pScissors);
Jesse Hall04f4f472015-08-16 19:51:04 -07002850
Jesse Halle1b12782015-11-30 11:27:32 -08002851VKAPI_ATTR void VKAPI_CALL vkCmdSetLineWidth(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002852 VkCommandBuffer commandBuffer,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002853 float lineWidth);
Jesse Hall04f4f472015-08-16 19:51:04 -07002854
Jesse Halle1b12782015-11-30 11:27:32 -08002855VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBias(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002856 VkCommandBuffer commandBuffer,
Jesse Halla9bb62b2015-11-21 19:31:56 -08002857 float depthBiasConstantFactor,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002858 float depthBiasClamp,
Jesse Halla9bb62b2015-11-21 19:31:56 -08002859 float depthBiasSlopeFactor);
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002860
Jesse Halle1b12782015-11-30 11:27:32 -08002861VKAPI_ATTR void VKAPI_CALL vkCmdSetBlendConstants(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002862 VkCommandBuffer commandBuffer,
Jesse Hallb00daad2015-11-29 19:46:20 -08002863 const float blendConstants[4]);
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002864
Jesse Halle1b12782015-11-30 11:27:32 -08002865VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBounds(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002866 VkCommandBuffer commandBuffer,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002867 float minDepthBounds,
2868 float maxDepthBounds);
2869
Jesse Halle1b12782015-11-30 11:27:32 -08002870VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilCompareMask(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002871 VkCommandBuffer commandBuffer,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002872 VkStencilFaceFlags faceMask,
Jesse Hall65ab5522015-11-30 00:07:16 -08002873 uint32_t compareMask);
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002874
Jesse Halle1b12782015-11-30 11:27:32 -08002875VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilWriteMask(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002876 VkCommandBuffer commandBuffer,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002877 VkStencilFaceFlags faceMask,
Jesse Hall65ab5522015-11-30 00:07:16 -08002878 uint32_t writeMask);
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002879
Jesse Halle1b12782015-11-30 11:27:32 -08002880VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilReference(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002881 VkCommandBuffer commandBuffer,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002882 VkStencilFaceFlags faceMask,
Jesse Hall65ab5522015-11-30 00:07:16 -08002883 uint32_t reference);
Jesse Hall04f4f472015-08-16 19:51:04 -07002884
Jesse Halle1b12782015-11-30 11:27:32 -08002885VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorSets(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002886 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002887 VkPipelineBindPoint pipelineBindPoint,
2888 VkPipelineLayout layout,
2889 uint32_t firstSet,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002890 uint32_t descriptorSetCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002891 const VkDescriptorSet* pDescriptorSets,
2892 uint32_t dynamicOffsetCount,
2893 const uint32_t* pDynamicOffsets);
2894
Jesse Halle1b12782015-11-30 11:27:32 -08002895VKAPI_ATTR void VKAPI_CALL vkCmdBindIndexBuffer(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002896 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002897 VkBuffer buffer,
2898 VkDeviceSize offset,
2899 VkIndexType indexType);
2900
Jesse Halle1b12782015-11-30 11:27:32 -08002901VKAPI_ATTR void VKAPI_CALL vkCmdBindVertexBuffers(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002902 VkCommandBuffer commandBuffer,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08002903 uint32_t firstBinding,
Jesse Hall04f4f472015-08-16 19:51:04 -07002904 uint32_t bindingCount,
2905 const VkBuffer* pBuffers,
2906 const VkDeviceSize* pOffsets);
2907
Jesse Halle1b12782015-11-30 11:27:32 -08002908VKAPI_ATTR void VKAPI_CALL vkCmdDraw(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002909 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002910 uint32_t vertexCount,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002911 uint32_t instanceCount,
2912 uint32_t firstVertex,
2913 uint32_t firstInstance);
Jesse Hall04f4f472015-08-16 19:51:04 -07002914
Jesse Halle1b12782015-11-30 11:27:32 -08002915VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexed(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002916 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002917 uint32_t indexCount,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002918 uint32_t instanceCount,
2919 uint32_t firstIndex,
Jesse Hall04f4f472015-08-16 19:51:04 -07002920 int32_t vertexOffset,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07002921 uint32_t firstInstance);
Jesse Hall04f4f472015-08-16 19:51:04 -07002922
Jesse Halle1b12782015-11-30 11:27:32 -08002923VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndirect(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002924 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002925 VkBuffer buffer,
2926 VkDeviceSize offset,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002927 uint32_t drawCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002928 uint32_t stride);
2929
Jesse Halle1b12782015-11-30 11:27:32 -08002930VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexedIndirect(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002931 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002932 VkBuffer buffer,
2933 VkDeviceSize offset,
Jesse Hall03b6fe12015-11-24 12:44:21 -08002934 uint32_t drawCount,
Jesse Hall04f4f472015-08-16 19:51:04 -07002935 uint32_t stride);
2936
Jesse Halle1b12782015-11-30 11:27:32 -08002937VKAPI_ATTR void VKAPI_CALL vkCmdDispatch(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002938 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002939 uint32_t x,
2940 uint32_t y,
2941 uint32_t z);
2942
Jesse Halle1b12782015-11-30 11:27:32 -08002943VKAPI_ATTR void VKAPI_CALL vkCmdDispatchIndirect(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002944 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002945 VkBuffer buffer,
2946 VkDeviceSize offset);
2947
Jesse Halle1b12782015-11-30 11:27:32 -08002948VKAPI_ATTR void VKAPI_CALL vkCmdCopyBuffer(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002949 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002950 VkBuffer srcBuffer,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002951 VkBuffer dstBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002952 uint32_t regionCount,
2953 const VkBufferCopy* pRegions);
2954
Jesse Halle1b12782015-11-30 11:27:32 -08002955VKAPI_ATTR void VKAPI_CALL vkCmdCopyImage(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002956 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002957 VkImage srcImage,
2958 VkImageLayout srcImageLayout,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002959 VkImage dstImage,
2960 VkImageLayout dstImageLayout,
Jesse Hall04f4f472015-08-16 19:51:04 -07002961 uint32_t regionCount,
2962 const VkImageCopy* pRegions);
2963
Jesse Halle1b12782015-11-30 11:27:32 -08002964VKAPI_ATTR void VKAPI_CALL vkCmdBlitImage(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002965 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002966 VkImage srcImage,
2967 VkImageLayout srcImageLayout,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002968 VkImage dstImage,
2969 VkImageLayout dstImageLayout,
Jesse Hall04f4f472015-08-16 19:51:04 -07002970 uint32_t regionCount,
2971 const VkImageBlit* pRegions,
Jesse Hall23ff73f2015-11-29 14:36:39 -08002972 VkFilter filter);
Jesse Hall04f4f472015-08-16 19:51:04 -07002973
Jesse Halle1b12782015-11-30 11:27:32 -08002974VKAPI_ATTR void VKAPI_CALL vkCmdCopyBufferToImage(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002975 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002976 VkBuffer srcBuffer,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002977 VkImage dstImage,
2978 VkImageLayout dstImageLayout,
Jesse Hall04f4f472015-08-16 19:51:04 -07002979 uint32_t regionCount,
2980 const VkBufferImageCopy* pRegions);
2981
Jesse Halle1b12782015-11-30 11:27:32 -08002982VKAPI_ATTR void VKAPI_CALL vkCmdCopyImageToBuffer(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002983 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002984 VkImage srcImage,
2985 VkImageLayout srcImageLayout,
Jesse Hall3fbc8562015-11-29 22:10:52 -08002986 VkBuffer dstBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07002987 uint32_t regionCount,
2988 const VkBufferImageCopy* pRegions);
2989
Jesse Halle1b12782015-11-30 11:27:32 -08002990VKAPI_ATTR void VKAPI_CALL vkCmdUpdateBuffer(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002991 VkCommandBuffer commandBuffer,
2992 VkBuffer dstBuffer,
2993 VkDeviceSize dstOffset,
Jesse Hall04f4f472015-08-16 19:51:04 -07002994 VkDeviceSize dataSize,
2995 const uint32_t* pData);
2996
Jesse Halle1b12782015-11-30 11:27:32 -08002997VKAPI_ATTR void VKAPI_CALL vkCmdFillBuffer(
Jesse Hall3fbc8562015-11-29 22:10:52 -08002998 VkCommandBuffer commandBuffer,
2999 VkBuffer dstBuffer,
3000 VkDeviceSize dstOffset,
Jesse Hallb00daad2015-11-29 19:46:20 -08003001 VkDeviceSize size,
Jesse Hall04f4f472015-08-16 19:51:04 -07003002 uint32_t data);
3003
Jesse Halle1b12782015-11-30 11:27:32 -08003004VKAPI_ATTR void VKAPI_CALL vkCmdClearColorImage(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003005 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003006 VkImage image,
3007 VkImageLayout imageLayout,
3008 const VkClearColorValue* pColor,
3009 uint32_t rangeCount,
3010 const VkImageSubresourceRange* pRanges);
3011
Jesse Halle1b12782015-11-30 11:27:32 -08003012VKAPI_ATTR void VKAPI_CALL vkCmdClearDepthStencilImage(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003013 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003014 VkImage image,
3015 VkImageLayout imageLayout,
Jesse Hall5ae3abb2015-10-08 14:00:22 -07003016 const VkClearDepthStencilValue* pDepthStencil,
Jesse Hall04f4f472015-08-16 19:51:04 -07003017 uint32_t rangeCount,
3018 const VkImageSubresourceRange* pRanges);
3019
Jesse Halle1b12782015-11-30 11:27:32 -08003020VKAPI_ATTR void VKAPI_CALL vkCmdClearAttachments(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003021 VkCommandBuffer commandBuffer,
Jesse Hallae38f732015-11-19 21:32:50 -08003022 uint32_t attachmentCount,
3023 const VkClearAttachment* pAttachments,
Jesse Hall04f4f472015-08-16 19:51:04 -07003024 uint32_t rectCount,
Jesse Halla15a4bf2015-11-19 22:48:02 -08003025 const VkClearRect* pRects);
Jesse Hall04f4f472015-08-16 19:51:04 -07003026
Jesse Halle1b12782015-11-30 11:27:32 -08003027VKAPI_ATTR void VKAPI_CALL vkCmdResolveImage(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003028 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003029 VkImage srcImage,
3030 VkImageLayout srcImageLayout,
Jesse Hall3fbc8562015-11-29 22:10:52 -08003031 VkImage dstImage,
3032 VkImageLayout dstImageLayout,
Jesse Hall04f4f472015-08-16 19:51:04 -07003033 uint32_t regionCount,
3034 const VkImageResolve* pRegions);
3035
Jesse Halle1b12782015-11-30 11:27:32 -08003036VKAPI_ATTR void VKAPI_CALL vkCmdSetEvent(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003037 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003038 VkEvent event,
3039 VkPipelineStageFlags stageMask);
3040
Jesse Halle1b12782015-11-30 11:27:32 -08003041VKAPI_ATTR void VKAPI_CALL vkCmdResetEvent(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003042 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003043 VkEvent event,
3044 VkPipelineStageFlags stageMask);
3045
Jesse Halle1b12782015-11-30 11:27:32 -08003046VKAPI_ATTR void VKAPI_CALL vkCmdWaitEvents(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003047 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003048 uint32_t eventCount,
3049 const VkEvent* pEvents,
3050 VkPipelineStageFlags srcStageMask,
Jesse Hall3fbc8562015-11-29 22:10:52 -08003051 VkPipelineStageFlags dstStageMask,
3052 uint32_t memoryBarrierCount,
Jesse Hall3dd678a2016-01-08 21:52:01 -08003053 const VkMemoryBarrier* pMemoryBarriers,
3054 uint32_t bufferMemoryBarrierCount,
3055 const VkBufferMemoryBarrier* pBufferMemoryBarriers,
3056 uint32_t imageMemoryBarrierCount,
3057 const VkImageMemoryBarrier* pImageMemoryBarriers);
Jesse Hall04f4f472015-08-16 19:51:04 -07003058
Jesse Halle1b12782015-11-30 11:27:32 -08003059VKAPI_ATTR void VKAPI_CALL vkCmdPipelineBarrier(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003060 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003061 VkPipelineStageFlags srcStageMask,
Jesse Hall3fbc8562015-11-29 22:10:52 -08003062 VkPipelineStageFlags dstStageMask,
Jesse Halldc6d36c2015-11-29 19:12:15 -08003063 VkDependencyFlags dependencyFlags,
Jesse Hall3fbc8562015-11-29 22:10:52 -08003064 uint32_t memoryBarrierCount,
Jesse Hall3dd678a2016-01-08 21:52:01 -08003065 const VkMemoryBarrier* pMemoryBarriers,
3066 uint32_t bufferMemoryBarrierCount,
3067 const VkBufferMemoryBarrier* pBufferMemoryBarriers,
3068 uint32_t imageMemoryBarrierCount,
3069 const VkImageMemoryBarrier* pImageMemoryBarriers);
Jesse Hall04f4f472015-08-16 19:51:04 -07003070
Jesse Halle1b12782015-11-30 11:27:32 -08003071VKAPI_ATTR void VKAPI_CALL vkCmdBeginQuery(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003072 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003073 VkQueryPool queryPool,
Jesse Hall3dd678a2016-01-08 21:52:01 -08003074 uint32_t query,
Jesse Hall04f4f472015-08-16 19:51:04 -07003075 VkQueryControlFlags flags);
3076
Jesse Halle1b12782015-11-30 11:27:32 -08003077VKAPI_ATTR void VKAPI_CALL vkCmdEndQuery(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003078 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003079 VkQueryPool queryPool,
Jesse Hall3dd678a2016-01-08 21:52:01 -08003080 uint32_t query);
Jesse Hall04f4f472015-08-16 19:51:04 -07003081
Jesse Halle1b12782015-11-30 11:27:32 -08003082VKAPI_ATTR void VKAPI_CALL vkCmdResetQueryPool(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003083 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003084 VkQueryPool queryPool,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003085 uint32_t firstQuery,
Jesse Hall04f4f472015-08-16 19:51:04 -07003086 uint32_t queryCount);
3087
Jesse Halle1b12782015-11-30 11:27:32 -08003088VKAPI_ATTR void VKAPI_CALL vkCmdWriteTimestamp(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003089 VkCommandBuffer commandBuffer,
Jesse Hall6f39a6d2015-11-24 11:08:36 -08003090 VkPipelineStageFlagBits pipelineStage,
Jesse Halla3a7a1d2015-11-24 11:37:23 -08003091 VkQueryPool queryPool,
Jesse Hall3dd678a2016-01-08 21:52:01 -08003092 uint32_t query);
Jesse Hall04f4f472015-08-16 19:51:04 -07003093
Jesse Halle1b12782015-11-30 11:27:32 -08003094VKAPI_ATTR void VKAPI_CALL vkCmdCopyQueryPoolResults(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003095 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003096 VkQueryPool queryPool,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003097 uint32_t firstQuery,
Jesse Hall04f4f472015-08-16 19:51:04 -07003098 uint32_t queryCount,
Jesse Hall3fbc8562015-11-29 22:10:52 -08003099 VkBuffer dstBuffer,
3100 VkDeviceSize dstOffset,
Jesse Halla9bb62b2015-11-21 19:31:56 -08003101 VkDeviceSize stride,
Jesse Hall04f4f472015-08-16 19:51:04 -07003102 VkQueryResultFlags flags);
3103
Jesse Halle1b12782015-11-30 11:27:32 -08003104VKAPI_ATTR void VKAPI_CALL vkCmdPushConstants(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003105 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003106 VkPipelineLayout layout,
3107 VkShaderStageFlags stageFlags,
Jesse Hall03b6fe12015-11-24 12:44:21 -08003108 uint32_t offset,
3109 uint32_t size,
Jesse Hallf4ab2b12015-11-30 16:04:55 -08003110 const void* pValues);
Jesse Hall04f4f472015-08-16 19:51:04 -07003111
Jesse Halle1b12782015-11-30 11:27:32 -08003112VKAPI_ATTR void VKAPI_CALL vkCmdBeginRenderPass(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003113 VkCommandBuffer commandBuffer,
Jesse Hall04f4f472015-08-16 19:51:04 -07003114 const VkRenderPassBeginInfo* pRenderPassBegin,
Jesse Hall65ab5522015-11-30 00:07:16 -08003115 VkSubpassContents contents);
Jesse Hall04f4f472015-08-16 19:51:04 -07003116
Jesse Halle1b12782015-11-30 11:27:32 -08003117VKAPI_ATTR void VKAPI_CALL vkCmdNextSubpass(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003118 VkCommandBuffer commandBuffer,
Jesse Hall65ab5522015-11-30 00:07:16 -08003119 VkSubpassContents contents);
Jesse Hall04f4f472015-08-16 19:51:04 -07003120
Jesse Halle1b12782015-11-30 11:27:32 -08003121VKAPI_ATTR void VKAPI_CALL vkCmdEndRenderPass(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003122 VkCommandBuffer commandBuffer);
Jesse Hall04f4f472015-08-16 19:51:04 -07003123
Jesse Halle1b12782015-11-30 11:27:32 -08003124VKAPI_ATTR void VKAPI_CALL vkCmdExecuteCommands(
Jesse Hall3fbc8562015-11-29 22:10:52 -08003125 VkCommandBuffer commandBuffer,
Jesse Hall3dd678a2016-01-08 21:52:01 -08003126 uint32_t commandBufferCount,
Jesse Hall3fbc8562015-11-29 22:10:52 -08003127 const VkCommandBuffer* pCommandBuffers);
Jesse Hall04f4f472015-08-16 19:51:04 -07003128#endif
3129
Jesse Hall091ed9e2015-11-30 00:55:29 -08003130#define VK_KHR_surface 1
Jesse Hall3fbc8562015-11-29 22:10:52 -08003131VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR)
Jesse Hall1356b0d2015-11-23 17:24:58 -08003132
Jesse Hall543a7ff2016-01-08 16:38:30 -08003133#define VK_KHR_SURFACE_SPEC_VERSION 24
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003134#define VK_KHR_SURFACE_EXTENSION_NAME "VK_KHR_surface"
Jesse Hall1356b0d2015-11-23 17:24:58 -08003135
Jesse Hall1356b0d2015-11-23 17:24:58 -08003136
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003137typedef enum VkColorSpaceKHR {
Jesse Hall1356b0d2015-11-23 17:24:58 -08003138 VK_COLORSPACE_SRGB_NONLINEAR_KHR = 0,
3139 VK_COLORSPACE_BEGIN_RANGE = VK_COLORSPACE_SRGB_NONLINEAR_KHR,
3140 VK_COLORSPACE_END_RANGE = VK_COLORSPACE_SRGB_NONLINEAR_KHR,
Jesse Hall3fbc8562015-11-29 22:10:52 -08003141 VK_COLORSPACE_RANGE_SIZE = (VK_COLORSPACE_SRGB_NONLINEAR_KHR - VK_COLORSPACE_SRGB_NONLINEAR_KHR + 1),
Jesse Hall1356b0d2015-11-23 17:24:58 -08003142 VK_COLORSPACE_MAX_ENUM = 0x7FFFFFFF
3143} VkColorSpaceKHR;
3144
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003145typedef enum VkPresentModeKHR {
Jesse Hall1356b0d2015-11-23 17:24:58 -08003146 VK_PRESENT_MODE_IMMEDIATE_KHR = 0,
3147 VK_PRESENT_MODE_MAILBOX_KHR = 1,
3148 VK_PRESENT_MODE_FIFO_KHR = 2,
Jesse Hall03b6fe12015-11-24 12:44:21 -08003149 VK_PRESENT_MODE_FIFO_RELAXED_KHR = 3,
Jesse Hall1356b0d2015-11-23 17:24:58 -08003150 VK_PRESENT_MODE_BEGIN_RANGE = VK_PRESENT_MODE_IMMEDIATE_KHR,
Jesse Hall03b6fe12015-11-24 12:44:21 -08003151 VK_PRESENT_MODE_END_RANGE = VK_PRESENT_MODE_FIFO_RELAXED_KHR,
Jesse Hall3fbc8562015-11-29 22:10:52 -08003152 VK_PRESENT_MODE_RANGE_SIZE = (VK_PRESENT_MODE_FIFO_RELAXED_KHR - VK_PRESENT_MODE_IMMEDIATE_KHR + 1),
Jesse Hall1356b0d2015-11-23 17:24:58 -08003153 VK_PRESENT_MODE_MAX_ENUM = 0x7FFFFFFF
3154} VkPresentModeKHR;
3155
3156
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003157typedef enum VkSurfaceTransformFlagBitsKHR {
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003158 VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR = 0x00000001,
Jesse Hall9ba8bc82015-11-30 16:22:16 -08003159 VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR = 0x00000002,
3160 VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR = 0x00000004,
3161 VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR = 0x00000008,
3162 VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR = 0x00000010,
3163 VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR = 0x00000020,
3164 VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR = 0x00000040,
3165 VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR = 0x00000080,
Jesse Hall1356b0d2015-11-23 17:24:58 -08003166 VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR = 0x00000100,
3167} VkSurfaceTransformFlagBitsKHR;
3168typedef VkFlags VkSurfaceTransformFlagsKHR;
3169
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003170typedef enum VkCompositeAlphaFlagBitsKHR {
Jesse Halla6429252015-11-29 18:59:42 -08003171 VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
3172 VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = 0x00000002,
3173 VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = 0x00000004,
3174 VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = 0x00000008,
3175} VkCompositeAlphaFlagBitsKHR;
3176typedef VkFlags VkCompositeAlphaFlagsKHR;
3177
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003178typedef struct VkSurfaceCapabilitiesKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003179 uint32_t minImageCount;
3180 uint32_t maxImageCount;
3181 VkExtent2D currentExtent;
3182 VkExtent2D minImageExtent;
3183 VkExtent2D maxImageExtent;
3184 uint32_t maxImageArrayLayers;
3185 VkSurfaceTransformFlagsKHR supportedTransforms;
3186 VkSurfaceTransformFlagBitsKHR currentTransform;
3187 VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
3188 VkImageUsageFlags supportedUsageFlags;
Jesse Hallb00daad2015-11-29 19:46:20 -08003189} VkSurfaceCapabilitiesKHR;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003190
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003191typedef struct VkSurfaceFormatKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003192 VkFormat format;
3193 VkColorSpaceKHR colorSpace;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003194} VkSurfaceFormatKHR;
3195
Jesse Hallb00daad2015-11-29 19:46:20 -08003196
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003197typedef void (VKAPI_PTR *PFN_vkDestroySurfaceKHR)(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* pAllocator);
Jesse Halle1b12782015-11-30 11:27:32 -08003198typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported);
3199typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
3200typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceFormatsKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats);
3201typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfacePresentModesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes);
Jesse Hallb00daad2015-11-29 19:46:20 -08003202
Jesse Hall563380d2016-01-15 23:14:05 -08003203#ifndef VK_NO_PROTOTYPES
Jesse Halle1b12782015-11-30 11:27:32 -08003204VKAPI_ATTR void VKAPI_CALL vkDestroySurfaceKHR(
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003205 VkInstance instance,
3206 VkSurfaceKHR surface,
Jesse Hall0e74f002015-11-30 11:37:59 -08003207 const VkAllocationCallbacks* pAllocator);
Jesse Hallb00daad2015-11-29 19:46:20 -08003208
Jesse Halle1b12782015-11-30 11:27:32 -08003209VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceSupportKHR(
Jesse Hallb00daad2015-11-29 19:46:20 -08003210 VkPhysicalDevice physicalDevice,
3211 uint32_t queueFamilyIndex,
3212 VkSurfaceKHR surface,
3213 VkBool32* pSupported);
3214
Jesse Halle1b12782015-11-30 11:27:32 -08003215VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
Jesse Hallb00daad2015-11-29 19:46:20 -08003216 VkPhysicalDevice physicalDevice,
3217 VkSurfaceKHR surface,
3218 VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
3219
Jesse Halle1b12782015-11-30 11:27:32 -08003220VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceFormatsKHR(
Jesse Hallb00daad2015-11-29 19:46:20 -08003221 VkPhysicalDevice physicalDevice,
3222 VkSurfaceKHR surface,
3223 uint32_t* pSurfaceFormatCount,
3224 VkSurfaceFormatKHR* pSurfaceFormats);
3225
Jesse Halle1b12782015-11-30 11:27:32 -08003226VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresentModesKHR(
Jesse Hallb00daad2015-11-29 19:46:20 -08003227 VkPhysicalDevice physicalDevice,
3228 VkSurfaceKHR surface,
3229 uint32_t* pPresentModeCount,
3230 VkPresentModeKHR* pPresentModes);
3231#endif
3232
Jesse Hall091ed9e2015-11-30 00:55:29 -08003233#define VK_KHR_swapchain 1
Jesse Hall3fbc8562015-11-29 22:10:52 -08003234VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSwapchainKHR)
Jesse Hallb00daad2015-11-29 19:46:20 -08003235
Jesse Hall543a7ff2016-01-08 16:38:30 -08003236#define VK_KHR_SWAPCHAIN_SPEC_VERSION 67
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003237#define VK_KHR_SWAPCHAIN_EXTENSION_NAME "VK_KHR_swapchain"
Jesse Hallb00daad2015-11-29 19:46:20 -08003238
Jesse Hallf4ab2b12015-11-30 16:04:55 -08003239typedef VkFlags VkSwapchainCreateFlagsKHR;
3240
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003241typedef struct VkSwapchainCreateInfoKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003242 VkStructureType sType;
3243 const void* pNext;
3244 VkSwapchainCreateFlagsKHR flags;
3245 VkSurfaceKHR surface;
3246 uint32_t minImageCount;
3247 VkFormat imageFormat;
3248 VkColorSpaceKHR imageColorSpace;
3249 VkExtent2D imageExtent;
3250 uint32_t imageArrayLayers;
3251 VkImageUsageFlags imageUsage;
3252 VkSharingMode imageSharingMode;
3253 uint32_t queueFamilyIndexCount;
3254 const uint32_t* pQueueFamilyIndices;
3255 VkSurfaceTransformFlagBitsKHR preTransform;
3256 VkCompositeAlphaFlagBitsKHR compositeAlpha;
3257 VkPresentModeKHR presentMode;
3258 VkBool32 clipped;
3259 VkSwapchainKHR oldSwapchain;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003260} VkSwapchainCreateInfoKHR;
3261
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003262typedef struct VkPresentInfoKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003263 VkStructureType sType;
3264 const void* pNext;
3265 uint32_t waitSemaphoreCount;
3266 const VkSemaphore* pWaitSemaphores;
3267 uint32_t swapchainCount;
3268 const VkSwapchainKHR* pSwapchains;
3269 const uint32_t* pImageIndices;
3270 VkResult* pResults;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003271} VkPresentInfoKHR;
3272
3273
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003274typedef VkResult (VKAPI_PTR *PFN_vkCreateSwapchainKHR)(VkDevice device, const VkSwapchainCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchain);
3275typedef void (VKAPI_PTR *PFN_vkDestroySwapchainKHR)(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator);
3276typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainImagesKHR)(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pSwapchainImageCount, VkImage* pSwapchainImages);
3277typedef VkResult (VKAPI_PTR *PFN_vkAcquireNextImageKHR)(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex);
3278typedef VkResult (VKAPI_PTR *PFN_vkQueuePresentKHR)(VkQueue queue, const VkPresentInfoKHR* pPresentInfo);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003279
Jesse Hall563380d2016-01-15 23:14:05 -08003280#ifndef VK_NO_PROTOTYPES
Jesse Halle1b12782015-11-30 11:27:32 -08003281VKAPI_ATTR VkResult VKAPI_CALL vkCreateSwapchainKHR(
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003282 VkDevice device,
3283 const VkSwapchainCreateInfoKHR* pCreateInfo,
Jesse Hall0e74f002015-11-30 11:37:59 -08003284 const VkAllocationCallbacks* pAllocator,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003285 VkSwapchainKHR* pSwapchain);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003286
Jesse Halle1b12782015-11-30 11:27:32 -08003287VKAPI_ATTR void VKAPI_CALL vkDestroySwapchainKHR(
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003288 VkDevice device,
3289 VkSwapchainKHR swapchain,
Jesse Hall0e74f002015-11-30 11:37:59 -08003290 const VkAllocationCallbacks* pAllocator);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003291
Jesse Halle1b12782015-11-30 11:27:32 -08003292VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainImagesKHR(
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003293 VkDevice device,
3294 VkSwapchainKHR swapchain,
3295 uint32_t* pSwapchainImageCount,
3296 VkImage* pSwapchainImages);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003297
Jesse Halle1b12782015-11-30 11:27:32 -08003298VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImageKHR(
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003299 VkDevice device,
3300 VkSwapchainKHR swapchain,
3301 uint64_t timeout,
3302 VkSemaphore semaphore,
3303 VkFence fence,
3304 uint32_t* pImageIndex);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003305
Jesse Halle1b12782015-11-30 11:27:32 -08003306VKAPI_ATTR VkResult VKAPI_CALL vkQueuePresentKHR(
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003307 VkQueue queue,
3308 const VkPresentInfoKHR* pPresentInfo);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003309#endif
3310
Jesse Hall091ed9e2015-11-30 00:55:29 -08003311#define VK_KHR_display 1
Jesse Hall3fbc8562015-11-29 22:10:52 -08003312VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayKHR)
3313VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayModeKHR)
Jesse Hall1356b0d2015-11-23 17:24:58 -08003314
Jesse Hall543a7ff2016-01-08 16:38:30 -08003315#define VK_KHR_DISPLAY_SPEC_VERSION 21
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003316#define VK_KHR_DISPLAY_EXTENSION_NAME "VK_KHR_display"
Jesse Hall1356b0d2015-11-23 17:24:58 -08003317
3318
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003319typedef enum VkDisplayPlaneAlphaFlagBitsKHR {
Jesse Hallf4ab2b12015-11-30 16:04:55 -08003320 VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
3321 VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR = 0x00000002,
3322 VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR = 0x00000004,
3323 VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR = 0x00000008,
Jesse Hall1356b0d2015-11-23 17:24:58 -08003324} VkDisplayPlaneAlphaFlagBitsKHR;
Jesse Hall9ba8bc82015-11-30 16:22:16 -08003325typedef VkFlags VkDisplayModeCreateFlagsKHR;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003326typedef VkFlags VkDisplayPlaneAlphaFlagsKHR;
Jesse Hallf4ab2b12015-11-30 16:04:55 -08003327typedef VkFlags VkDisplaySurfaceCreateFlagsKHR;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003328
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003329typedef struct VkDisplayPropertiesKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003330 VkDisplayKHR display;
3331 const char* displayName;
3332 VkExtent2D physicalDimensions;
3333 VkExtent2D physicalResolution;
3334 VkSurfaceTransformFlagsKHR supportedTransforms;
3335 VkBool32 planeReorderPossible;
3336 VkBool32 persistentContent;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003337} VkDisplayPropertiesKHR;
3338
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003339typedef struct VkDisplayModeParametersKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003340 VkExtent2D visibleRegion;
3341 uint32_t refreshRate;
Jesse Halla6429252015-11-29 18:59:42 -08003342} VkDisplayModeParametersKHR;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003343
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003344typedef struct VkDisplayModePropertiesKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003345 VkDisplayModeKHR displayMode;
3346 VkDisplayModeParametersKHR parameters;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003347} VkDisplayModePropertiesKHR;
3348
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003349typedef struct VkDisplayModeCreateInfoKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003350 VkStructureType sType;
3351 const void* pNext;
3352 VkDisplayModeCreateFlagsKHR flags;
3353 VkDisplayModeParametersKHR parameters;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003354} VkDisplayModeCreateInfoKHR;
3355
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003356typedef struct VkDisplayPlaneCapabilitiesKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003357 VkDisplayPlaneAlphaFlagsKHR supportedAlpha;
3358 VkOffset2D minSrcPosition;
3359 VkOffset2D maxSrcPosition;
3360 VkExtent2D minSrcExtent;
3361 VkExtent2D maxSrcExtent;
3362 VkOffset2D minDstPosition;
3363 VkOffset2D maxDstPosition;
3364 VkExtent2D minDstExtent;
3365 VkExtent2D maxDstExtent;
Jesse Halla6429252015-11-29 18:59:42 -08003366} VkDisplayPlaneCapabilitiesKHR;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003367
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003368typedef struct VkDisplayPlanePropertiesKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003369 VkDisplayKHR currentDisplay;
3370 uint32_t currentStackIndex;
Jesse Hallb00daad2015-11-29 19:46:20 -08003371} VkDisplayPlanePropertiesKHR;
3372
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003373typedef struct VkDisplaySurfaceCreateInfoKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003374 VkStructureType sType;
3375 const void* pNext;
3376 VkDisplaySurfaceCreateFlagsKHR flags;
3377 VkDisplayModeKHR displayMode;
3378 uint32_t planeIndex;
3379 uint32_t planeStackIndex;
3380 VkSurfaceTransformFlagBitsKHR transform;
3381 float globalAlpha;
3382 VkDisplayPlaneAlphaFlagBitsKHR alphaMode;
3383 VkExtent2D imageExtent;
Jesse Halla6429252015-11-29 18:59:42 -08003384} VkDisplaySurfaceCreateInfoKHR;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003385
3386
Jesse Halle1b12782015-11-30 11:27:32 -08003387typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPropertiesKHR* pProperties);
3388typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPlanePropertiesKHR* pProperties);
Jesse Hall3dd678a2016-01-08 21:52:01 -08003389typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneSupportedDisplaysKHR)(VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t* pDisplayCount, VkDisplayKHR* pDisplays);
Jesse Halle1b12782015-11-30 11:27:32 -08003390typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayModePropertiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t* pPropertyCount, VkDisplayModePropertiesKHR* pProperties);
Jesse Hall0e74f002015-11-30 11:37:59 -08003391typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayModeKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, const VkDisplayModeCreateInfoKHR*pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDisplayModeKHR* pMode);
Jesse Hall9ba8bc82015-11-30 16:22:16 -08003392typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex, VkDisplayPlaneCapabilitiesKHR* pCapabilities);
Jesse Hall0e74f002015-11-30 11:37:59 -08003393typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayPlaneSurfaceKHR)(VkInstance instance, const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003394
Jesse Hall563380d2016-01-15 23:14:05 -08003395#ifndef VK_NO_PROTOTYPES
Jesse Halle1b12782015-11-30 11:27:32 -08003396VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPropertiesKHR(
Jesse Hall1356b0d2015-11-23 17:24:58 -08003397 VkPhysicalDevice physicalDevice,
Jesse Hall03b6fe12015-11-24 12:44:21 -08003398 uint32_t* pPropertyCount,
Jesse Hall1356b0d2015-11-23 17:24:58 -08003399 VkDisplayPropertiesKHR* pProperties);
3400
Jesse Halle1b12782015-11-30 11:27:32 -08003401VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
Jesse Halla6429252015-11-29 18:59:42 -08003402 VkPhysicalDevice physicalDevice,
3403 uint32_t* pPropertyCount,
3404 VkDisplayPlanePropertiesKHR* pProperties);
3405
Jesse Halle1b12782015-11-30 11:27:32 -08003406VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneSupportedDisplaysKHR(
Jesse Halla6429252015-11-29 18:59:42 -08003407 VkPhysicalDevice physicalDevice,
Jesse Hall3dd678a2016-01-08 21:52:01 -08003408 uint32_t planeIndex,
Jesse Hallf4ab2b12015-11-30 16:04:55 -08003409 uint32_t* pDisplayCount,
3410 VkDisplayKHR* pDisplays);
Jesse Halla6429252015-11-29 18:59:42 -08003411
Jesse Halle1b12782015-11-30 11:27:32 -08003412VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayModePropertiesKHR(
Jesse Hall1356b0d2015-11-23 17:24:58 -08003413 VkPhysicalDevice physicalDevice,
3414 VkDisplayKHR display,
Jesse Hall03b6fe12015-11-24 12:44:21 -08003415 uint32_t* pPropertyCount,
3416 VkDisplayModePropertiesKHR* pProperties);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003417
Jesse Halle1b12782015-11-30 11:27:32 -08003418VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayModeKHR(
Jesse Hall1356b0d2015-11-23 17:24:58 -08003419 VkPhysicalDevice physicalDevice,
3420 VkDisplayKHR display,
3421 const VkDisplayModeCreateInfoKHR* pCreateInfo,
Jesse Hall0e74f002015-11-30 11:37:59 -08003422 const VkAllocationCallbacks* pAllocator,
Jesse Hall1356b0d2015-11-23 17:24:58 -08003423 VkDisplayModeKHR* pMode);
3424
Jesse Halle1b12782015-11-30 11:27:32 -08003425VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneCapabilitiesKHR(
Jesse Hall1356b0d2015-11-23 17:24:58 -08003426 VkPhysicalDevice physicalDevice,
Jesse Hall9ba8bc82015-11-30 16:22:16 -08003427 VkDisplayModeKHR mode,
Jesse Hall1356b0d2015-11-23 17:24:58 -08003428 uint32_t planeIndex,
Jesse Halla6429252015-11-29 18:59:42 -08003429 VkDisplayPlaneCapabilitiesKHR* pCapabilities);
3430
Jesse Halle1b12782015-11-30 11:27:32 -08003431VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayPlaneSurfaceKHR(
Jesse Halla6429252015-11-29 18:59:42 -08003432 VkInstance instance,
3433 const VkDisplaySurfaceCreateInfoKHR* pCreateInfo,
Jesse Hall0e74f002015-11-30 11:37:59 -08003434 const VkAllocationCallbacks* pAllocator,
Jesse Halla6429252015-11-29 18:59:42 -08003435 VkSurfaceKHR* pSurface);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003436#endif
3437
Jesse Hall091ed9e2015-11-30 00:55:29 -08003438#define VK_KHR_display_swapchain 1
Jesse Hall543a7ff2016-01-08 16:38:30 -08003439#define VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION 9
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003440#define VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME "VK_KHR_display_swapchain"
Jesse Hall1356b0d2015-11-23 17:24:58 -08003441
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003442typedef struct VkDisplayPresentInfoKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003443 VkStructureType sType;
3444 const void* pNext;
3445 VkRect2D srcRect;
3446 VkRect2D dstRect;
3447 VkBool32 persistent;
Jesse Hall1356b0d2015-11-23 17:24:58 -08003448} VkDisplayPresentInfoKHR;
3449
3450
Jesse Hall9ba8bc82015-11-30 16:22:16 -08003451typedef VkResult (VKAPI_PTR *PFN_vkCreateSharedSwapchainsKHR)(VkDevice device, uint32_t swapchainCount, const VkSwapchainCreateInfoKHR* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchains);
3452
Jesse Hall563380d2016-01-15 23:14:05 -08003453#ifndef VK_NO_PROTOTYPES
Jesse Hall9ba8bc82015-11-30 16:22:16 -08003454VKAPI_ATTR VkResult VKAPI_CALL vkCreateSharedSwapchainsKHR(
3455 VkDevice device,
3456 uint32_t swapchainCount,
3457 const VkSwapchainCreateInfoKHR* pCreateInfos,
3458 const VkAllocationCallbacks* pAllocator,
3459 VkSwapchainKHR* pSwapchains);
3460#endif
Jesse Hall1356b0d2015-11-23 17:24:58 -08003461
Jesse Halla6429252015-11-29 18:59:42 -08003462#ifdef VK_USE_PLATFORM_XLIB_KHR
Jesse Hall091ed9e2015-11-30 00:55:29 -08003463#define VK_KHR_xlib_surface 1
Jesse Hall1356b0d2015-11-23 17:24:58 -08003464#include <X11/Xlib.h>
3465
Jesse Hall543a7ff2016-01-08 16:38:30 -08003466#define VK_KHR_XLIB_SURFACE_SPEC_VERSION 6
Jesse Hall091ed9e2015-11-30 00:55:29 -08003467#define VK_KHR_XLIB_SURFACE_EXTENSION_NAME "VK_KHR_xlib_surface"
Jesse Hall1356b0d2015-11-23 17:24:58 -08003468
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003469typedef VkFlags VkXlibSurfaceCreateFlagsKHR;
3470
3471typedef struct VkXlibSurfaceCreateInfoKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003472 VkStructureType sType;
3473 const void* pNext;
3474 VkXlibSurfaceCreateFlagsKHR flags;
3475 Display* dpy;
3476 Window window;
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003477} VkXlibSurfaceCreateInfoKHR;
3478
3479
3480typedef VkResult (VKAPI_PTR *PFN_vkCreateXlibSurfaceKHR)(VkInstance instance, const VkXlibSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Jesse Halle1b12782015-11-30 11:27:32 -08003481typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, Display* dpy, VisualID visualID);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003482
Jesse Hall563380d2016-01-15 23:14:05 -08003483#ifndef VK_NO_PROTOTYPES
Jesse Halle1b12782015-11-30 11:27:32 -08003484VKAPI_ATTR VkResult VKAPI_CALL vkCreateXlibSurfaceKHR(
Jesse Hall1356b0d2015-11-23 17:24:58 -08003485 VkInstance instance,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003486 const VkXlibSurfaceCreateInfoKHR* pCreateInfo,
Jesse Hall0e74f002015-11-30 11:37:59 -08003487 const VkAllocationCallbacks* pAllocator,
Jesse Hall1356b0d2015-11-23 17:24:58 -08003488 VkSurfaceKHR* pSurface);
Jesse Halla6429252015-11-29 18:59:42 -08003489
Jesse Halle1b12782015-11-30 11:27:32 -08003490VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXlibPresentationSupportKHR(
Jesse Halla6429252015-11-29 18:59:42 -08003491 VkPhysicalDevice physicalDevice,
3492 uint32_t queueFamilyIndex,
3493 Display* dpy,
Jesse Hall65ab5522015-11-30 00:07:16 -08003494 VisualID visualID);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003495#endif
Jesse Halla6429252015-11-29 18:59:42 -08003496#endif /* VK_USE_PLATFORM_XLIB_KHR */
Jesse Hall1356b0d2015-11-23 17:24:58 -08003497
Jesse Hall1356b0d2015-11-23 17:24:58 -08003498#ifdef VK_USE_PLATFORM_XCB_KHR
Jesse Hall091ed9e2015-11-30 00:55:29 -08003499#define VK_KHR_xcb_surface 1
Jesse Hall1356b0d2015-11-23 17:24:58 -08003500#include <xcb/xcb.h>
3501
Jesse Hall543a7ff2016-01-08 16:38:30 -08003502#define VK_KHR_XCB_SURFACE_SPEC_VERSION 6
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003503#define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface"
Jesse Hall1356b0d2015-11-23 17:24:58 -08003504
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003505typedef VkFlags VkXcbSurfaceCreateFlagsKHR;
3506
3507typedef struct VkXcbSurfaceCreateInfoKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003508 VkStructureType sType;
3509 const void* pNext;
3510 VkXcbSurfaceCreateFlagsKHR flags;
3511 xcb_connection_t* connection;
3512 xcb_window_t window;
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003513} VkXcbSurfaceCreateInfoKHR;
3514
3515
3516typedef VkResult (VKAPI_PTR *PFN_vkCreateXcbSurfaceKHR)(VkInstance instance, const VkXcbSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Jesse Halle1b12782015-11-30 11:27:32 -08003517typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, xcb_connection_t* connection, xcb_visualid_t visual_id);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003518
Jesse Hall563380d2016-01-15 23:14:05 -08003519#ifndef VK_NO_PROTOTYPES
Jesse Halle1b12782015-11-30 11:27:32 -08003520VKAPI_ATTR VkResult VKAPI_CALL vkCreateXcbSurfaceKHR(
Jesse Hall1356b0d2015-11-23 17:24:58 -08003521 VkInstance instance,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003522 const VkXcbSurfaceCreateInfoKHR* pCreateInfo,
Jesse Hall0e74f002015-11-30 11:37:59 -08003523 const VkAllocationCallbacks* pAllocator,
Jesse Hall1356b0d2015-11-23 17:24:58 -08003524 VkSurfaceKHR* pSurface);
Jesse Halla6429252015-11-29 18:59:42 -08003525
Jesse Halle1b12782015-11-30 11:27:32 -08003526VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXcbPresentationSupportKHR(
Jesse Halla6429252015-11-29 18:59:42 -08003527 VkPhysicalDevice physicalDevice,
3528 uint32_t queueFamilyIndex,
3529 xcb_connection_t* connection,
3530 xcb_visualid_t visual_id);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003531#endif
3532#endif /* VK_USE_PLATFORM_XCB_KHR */
3533
Jesse Hall1356b0d2015-11-23 17:24:58 -08003534#ifdef VK_USE_PLATFORM_WAYLAND_KHR
Jesse Hall091ed9e2015-11-30 00:55:29 -08003535#define VK_KHR_wayland_surface 1
Jesse Hall1356b0d2015-11-23 17:24:58 -08003536#include <wayland-client.h>
3537
Jesse Hall543a7ff2016-01-08 16:38:30 -08003538#define VK_KHR_WAYLAND_SURFACE_SPEC_VERSION 5
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003539#define VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "VK_KHR_wayland_surface"
Jesse Hall1356b0d2015-11-23 17:24:58 -08003540
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003541typedef VkFlags VkWaylandSurfaceCreateFlagsKHR;
3542
3543typedef struct VkWaylandSurfaceCreateInfoKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003544 VkStructureType sType;
3545 const void* pNext;
3546 VkWaylandSurfaceCreateFlagsKHR flags;
3547 struct wl_display* display;
3548 struct wl_surface* surface;
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003549} VkWaylandSurfaceCreateInfoKHR;
3550
3551
3552typedef VkResult (VKAPI_PTR *PFN_vkCreateWaylandSurfaceKHR)(VkInstance instance, const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Jesse Halle1b12782015-11-30 11:27:32 -08003553typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct wl_display* display);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003554
Jesse Hall563380d2016-01-15 23:14:05 -08003555#ifndef VK_NO_PROTOTYPES
Jesse Halle1b12782015-11-30 11:27:32 -08003556VKAPI_ATTR VkResult VKAPI_CALL vkCreateWaylandSurfaceKHR(
Jesse Hall1356b0d2015-11-23 17:24:58 -08003557 VkInstance instance,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003558 const VkWaylandSurfaceCreateInfoKHR* pCreateInfo,
Jesse Hall0e74f002015-11-30 11:37:59 -08003559 const VkAllocationCallbacks* pAllocator,
Jesse Hall1356b0d2015-11-23 17:24:58 -08003560 VkSurfaceKHR* pSurface);
Jesse Halla6429252015-11-29 18:59:42 -08003561
Jesse Halle1b12782015-11-30 11:27:32 -08003562VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWaylandPresentationSupportKHR(
Jesse Halla6429252015-11-29 18:59:42 -08003563 VkPhysicalDevice physicalDevice,
3564 uint32_t queueFamilyIndex,
3565 struct wl_display* display);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003566#endif
3567#endif /* VK_USE_PLATFORM_WAYLAND_KHR */
3568
Jesse Hall1356b0d2015-11-23 17:24:58 -08003569#ifdef VK_USE_PLATFORM_MIR_KHR
Jesse Hall091ed9e2015-11-30 00:55:29 -08003570#define VK_KHR_mir_surface 1
Jesse Hall1356b0d2015-11-23 17:24:58 -08003571#include <mir_toolkit/client_types.h>
3572
Jesse Hall543a7ff2016-01-08 16:38:30 -08003573#define VK_KHR_MIR_SURFACE_SPEC_VERSION 4
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003574#define VK_KHR_MIR_SURFACE_EXTENSION_NAME "VK_KHR_mir_surface"
Jesse Hall1356b0d2015-11-23 17:24:58 -08003575
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003576typedef VkFlags VkMirSurfaceCreateFlagsKHR;
3577
3578typedef struct VkMirSurfaceCreateInfoKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003579 VkStructureType sType;
3580 const void* pNext;
3581 VkMirSurfaceCreateFlagsKHR flags;
3582 MirConnection* connection;
3583 MirSurface* mirSurface;
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003584} VkMirSurfaceCreateInfoKHR;
3585
3586
3587typedef VkResult (VKAPI_PTR *PFN_vkCreateMirSurfaceKHR)(VkInstance instance, const VkMirSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Jesse Halle1b12782015-11-30 11:27:32 -08003588typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceMirPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, MirConnection* connection);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003589
Jesse Hall563380d2016-01-15 23:14:05 -08003590#ifndef VK_NO_PROTOTYPES
Jesse Halle1b12782015-11-30 11:27:32 -08003591VKAPI_ATTR VkResult VKAPI_CALL vkCreateMirSurfaceKHR(
Jesse Hall1356b0d2015-11-23 17:24:58 -08003592 VkInstance instance,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003593 const VkMirSurfaceCreateInfoKHR* pCreateInfo,
Jesse Hall0e74f002015-11-30 11:37:59 -08003594 const VkAllocationCallbacks* pAllocator,
Jesse Hall1356b0d2015-11-23 17:24:58 -08003595 VkSurfaceKHR* pSurface);
Jesse Halla6429252015-11-29 18:59:42 -08003596
Jesse Halle1b12782015-11-30 11:27:32 -08003597VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceMirPresentationSupportKHR(
Jesse Halla6429252015-11-29 18:59:42 -08003598 VkPhysicalDevice physicalDevice,
3599 uint32_t queueFamilyIndex,
3600 MirConnection* connection);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003601#endif
3602#endif /* VK_USE_PLATFORM_MIR_KHR */
3603
Jesse Hall1356b0d2015-11-23 17:24:58 -08003604#ifdef VK_USE_PLATFORM_ANDROID_KHR
Jesse Hall091ed9e2015-11-30 00:55:29 -08003605#define VK_KHR_android_surface 1
Jesse Hall1356b0d2015-11-23 17:24:58 -08003606#include <android/native_window.h>
3607
Jesse Hall543a7ff2016-01-08 16:38:30 -08003608#define VK_KHR_ANDROID_SURFACE_SPEC_VERSION 5
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003609#define VK_KHR_ANDROID_SURFACE_EXTENSION_NAME "VK_KHR_android_surface"
Jesse Hall1356b0d2015-11-23 17:24:58 -08003610
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003611typedef VkFlags VkAndroidSurfaceCreateFlagsKHR;
3612
3613typedef struct VkAndroidSurfaceCreateInfoKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003614 VkStructureType sType;
3615 const void* pNext;
3616 VkAndroidSurfaceCreateFlagsKHR flags;
3617 ANativeWindow* window;
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003618} VkAndroidSurfaceCreateInfoKHR;
3619
3620
3621typedef VkResult (VKAPI_PTR *PFN_vkCreateAndroidSurfaceKHR)(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003622
Jesse Hall563380d2016-01-15 23:14:05 -08003623#ifndef VK_NO_PROTOTYPES
Jesse Halle1b12782015-11-30 11:27:32 -08003624VKAPI_ATTR VkResult VKAPI_CALL vkCreateAndroidSurfaceKHR(
Jesse Hall1356b0d2015-11-23 17:24:58 -08003625 VkInstance instance,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003626 const VkAndroidSurfaceCreateInfoKHR* pCreateInfo,
Jesse Hall0e74f002015-11-30 11:37:59 -08003627 const VkAllocationCallbacks* pAllocator,
Jesse Hall1356b0d2015-11-23 17:24:58 -08003628 VkSurfaceKHR* pSurface);
3629#endif
3630#endif /* VK_USE_PLATFORM_ANDROID_KHR */
3631
Jesse Hall1356b0d2015-11-23 17:24:58 -08003632#ifdef VK_USE_PLATFORM_WIN32_KHR
Jesse Hall091ed9e2015-11-30 00:55:29 -08003633#define VK_KHR_win32_surface 1
Jesse Hall1356b0d2015-11-23 17:24:58 -08003634#include <windows.h>
3635
Jesse Hall543a7ff2016-01-08 16:38:30 -08003636#define VK_KHR_WIN32_SURFACE_SPEC_VERSION 5
Jesse Hall3e0dc8f2015-11-30 00:42:57 -08003637#define VK_KHR_WIN32_SURFACE_EXTENSION_NAME "VK_KHR_win32_surface"
Jesse Hall1356b0d2015-11-23 17:24:58 -08003638
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003639typedef VkFlags VkWin32SurfaceCreateFlagsKHR;
3640
3641typedef struct VkWin32SurfaceCreateInfoKHR {
Jesse Hall563380d2016-01-15 23:14:05 -08003642 VkStructureType sType;
3643 const void* pNext;
3644 VkWin32SurfaceCreateFlagsKHR flags;
3645 HINSTANCE hinstance;
3646 HWND hwnd;
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003647} VkWin32SurfaceCreateInfoKHR;
3648
3649
3650typedef VkResult (VKAPI_PTR *PFN_vkCreateWin32SurfaceKHR)(VkInstance instance, const VkWin32SurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Jesse Halle1b12782015-11-30 11:27:32 -08003651typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003652
Jesse Hall563380d2016-01-15 23:14:05 -08003653#ifndef VK_NO_PROTOTYPES
Jesse Halle1b12782015-11-30 11:27:32 -08003654VKAPI_ATTR VkResult VKAPI_CALL vkCreateWin32SurfaceKHR(
Jesse Hall1356b0d2015-11-23 17:24:58 -08003655 VkInstance instance,
Jesse Hallf9fa9a52016-01-08 16:08:51 -08003656 const VkWin32SurfaceCreateInfoKHR* pCreateInfo,
Jesse Hall0e74f002015-11-30 11:37:59 -08003657 const VkAllocationCallbacks* pAllocator,
Jesse Hall1356b0d2015-11-23 17:24:58 -08003658 VkSurfaceKHR* pSurface);
Jesse Halla6429252015-11-29 18:59:42 -08003659
Jesse Halle1b12782015-11-30 11:27:32 -08003660VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWin32PresentationSupportKHR(
Jesse Halla6429252015-11-29 18:59:42 -08003661 VkPhysicalDevice physicalDevice,
3662 uint32_t queueFamilyIndex);
Jesse Hall1356b0d2015-11-23 17:24:58 -08003663#endif
3664#endif /* VK_USE_PLATFORM_WIN32_KHR */
3665
Jesse Hall04f4f472015-08-16 19:51:04 -07003666#ifdef __cplusplus
3667}
3668#endif
3669
3670#endif