blob: f24a0a2caf3ffc6934fe949f1999aa48d2672ffc [file] [log] [blame]
Jon Ashburnb25e4fc2016-03-07 11:07:19 -07001#ifndef VULKAN_H_
2#define VULKAN_H_ 1
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06003
4#ifdef __cplusplus
5extern "C" {
6#endif
7
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06008/*
Karl Schultz37419ed2016-02-02 12:32:50 -07009** Copyright (c) 2015-2016 The Khronos Group Inc.
Jon Ashburnf6e6a152016-04-22 08:49:39 -060010**
Jon Ashburn3ebf1252016-04-19 11:30:31 -060011** Licensed under the Apache License, Version 2.0 (the "License");
12** you may not use this file except in compliance with the License.
13** You may obtain a copy of the License at
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -060014**
Jon Ashburn3ebf1252016-04-19 11:30:31 -060015** http://www.apache.org/licenses/LICENSE-2.0
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -060016**
Jon Ashburn3ebf1252016-04-19 11:30:31 -060017** Unless required by applicable law or agreed to in writing, software
18** distributed under the License is distributed on an "AS IS" BASIS,
19** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20** See the License for the specific language governing permissions and
21** limitations under the License.
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -060022*/
23
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -060024/*
25** This header is generated from the Khronos Vulkan XML API Registry.
26**
27*/
28
29
30#define VK_VERSION_1_0 1
31#include "vk_platform.h"
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -060032
33#define VK_MAKE_VERSION(major, minor, patch) \
Jon Ashburn5edce892016-02-09 08:57:58 -070034 (((major) << 22) | ((minor) << 12) | (patch))
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -060035
Jon Ashburndc9111c2016-03-22 12:57:13 -060036// DEPRECATED: This define has been removed. Specific version defines (e.g. VK_API_VERSION_1_0), or the VK_MAKE_VERSION macro, should be used instead.
37//#define VK_API_VERSION VK_MAKE_VERSION(1, 0, 0)
38
39// Vulkan 1.0 version number
40#define VK_API_VERSION_1_0 VK_MAKE_VERSION(1, 0, 0)
Cody Northrop44967fd2015-08-11 15:25:08 -060041
Jon Ashburn5edce892016-02-09 08:57:58 -070042#define VK_VERSION_MAJOR(version) ((uint32_t)(version) >> 22)
43#define VK_VERSION_MINOR(version) (((uint32_t)(version) >> 12) & 0x3ff)
44#define VK_VERSION_PATCH(version) ((uint32_t)(version) & 0xfff)
Jon Ashburndc9111c2016-03-22 12:57:13 -060045// Version of this file
Mark Lobodzinskicbaa2cd2016-12-19 09:41:16 -070046#define VK_HEADER_VERSION 38
Jon Ashburndc9111c2016-03-22 12:57:13 -060047
Cody Northrop44967fd2015-08-11 15:25:08 -060048
Chia-I Wue2fc5522015-10-26 20:04:44 +080049#define VK_NULL_HANDLE 0
50
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -060051
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -060052
Chia-I Wubb7fad92015-10-27 17:53:18 +080053#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -060054
Mike Stroyanb050c682015-04-17 12:36:38 -060055
Mark Lobodzinski74bb26f2016-08-29 09:02:13 -060056#if !defined(VK_DEFINE_NON_DISPATCHABLE_HANDLE)
Mark Lobodzinskifc5f2512016-08-26 10:19:18 -060057#if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__) ) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
Chia-I Wubb7fad92015-10-27 17:53:18 +080058 #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef struct object##_T *object;
Mike Stroyanb050c682015-04-17 12:36:38 -060059#else
Chia-I Wubb7fad92015-10-27 17:53:18 +080060 #define VK_DEFINE_NON_DISPATCHABLE_HANDLE(object) typedef uint64_t object;
Mike Stroyanb050c682015-04-17 12:36:38 -060061#endif
Mark Lobodzinski74bb26f2016-08-29 09:02:13 -060062#endif
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -060063
64
65
Cody Northrop22b7fae2015-08-11 11:21:48 -060066typedef uint32_t VkFlags;
Chia-I Wu439c0772015-10-26 17:00:46 +080067typedef uint32_t VkBool32;
Cody Northrop22b7fae2015-08-11 11:21:48 -060068typedef uint64_t VkDeviceSize;
69typedef uint32_t VkSampleMask;
Mike Stroyanb050c682015-04-17 12:36:38 -060070
Tony Barbour1d2cd3f2015-07-03 10:33:54 -060071VK_DEFINE_HANDLE(VkInstance)
72VK_DEFINE_HANDLE(VkPhysicalDevice)
73VK_DEFINE_HANDLE(VkDevice)
74VK_DEFINE_HANDLE(VkQueue)
Chia-I Wu3432a0c2015-10-27 18:04:07 +080075VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSemaphore)
76VK_DEFINE_HANDLE(VkCommandBuffer)
77VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFence)
78VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDeviceMemory)
79VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBuffer)
80VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImage)
81VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkEvent)
82VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkQueryPool)
83VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBufferView)
84VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkImageView)
85VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderModule)
Chia-I Wu3432a0c2015-10-27 18:04:07 +080086VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineCache)
87VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipelineLayout)
88VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkRenderPass)
89VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkPipeline)
90VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSetLayout)
91VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSampler)
92VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorPool)
93VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDescriptorSet)
94VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkFramebuffer)
95VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCommandPool)
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -060096
Cody Northrop22b7fae2015-08-11 11:21:48 -060097#define VK_LOD_CLAMP_NONE 1000.0f
Courtney Goeltzenleuchter13dbde02015-08-28 16:47:15 -060098#define VK_REMAINING_MIP_LEVELS (~0U)
Courtney Goeltzenleuchter4a261892015-09-10 16:38:41 -060099#define VK_REMAINING_ARRAY_LAYERS (~0U)
Cody Northrop22b7fae2015-08-11 11:21:48 -0600100#define VK_WHOLE_SIZE (~0ULL)
101#define VK_ATTACHMENT_UNUSED (~0U)
102#define VK_TRUE 1
103#define VK_FALSE 0
Cody Northrop22b7fae2015-08-11 11:21:48 -0600104#define VK_QUEUE_FAMILY_IGNORED (~0U)
Courtney Goeltzenleuchter304e6562015-09-16 16:38:23 -0600105#define VK_SUBPASS_EXTERNAL (~0U)
Chia-I Wuab83a0e2015-10-27 19:00:15 +0800106#define VK_MAX_PHYSICAL_DEVICE_NAME_SIZE 256
107#define VK_UUID_SIZE 16
Cody Northrop22b7fae2015-08-11 11:21:48 -0600108#define VK_MAX_MEMORY_TYPES 32
109#define VK_MAX_MEMORY_HEAPS 16
Chia-I Wuab83a0e2015-10-27 19:00:15 +0800110#define VK_MAX_EXTENSION_NAME_SIZE 256
111#define VK_MAX_DESCRIPTION_SIZE 256
Cody Northrop22b7fae2015-08-11 11:21:48 -0600112
Courtney Goeltzenleuchter62b2d432015-06-04 11:35:43 -0600113
Jon Ashburnc1931be2015-12-31 09:25:47 -0700114typedef enum VkPipelineCacheHeaderVersion {
115 VK_PIPELINE_CACHE_HEADER_VERSION_ONE = 1,
116 VK_PIPELINE_CACHE_HEADER_VERSION_BEGIN_RANGE = VK_PIPELINE_CACHE_HEADER_VERSION_ONE,
117 VK_PIPELINE_CACHE_HEADER_VERSION_END_RANGE = VK_PIPELINE_CACHE_HEADER_VERSION_ONE,
118 VK_PIPELINE_CACHE_HEADER_VERSION_RANGE_SIZE = (VK_PIPELINE_CACHE_HEADER_VERSION_ONE - VK_PIPELINE_CACHE_HEADER_VERSION_ONE + 1),
119 VK_PIPELINE_CACHE_HEADER_VERSION_MAX_ENUM = 0x7FFFFFFF
120} VkPipelineCacheHeaderVersion;
121
Chia-I Wu44c99b62015-10-27 19:55:29 +0800122typedef enum VkResult {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600123 VK_SUCCESS = 0,
Courtney Goeltzenleuchter1d2f0dd2015-10-22 11:03:31 -0600124 VK_NOT_READY = 1,
125 VK_TIMEOUT = 2,
126 VK_EVENT_SET = 3,
127 VK_EVENT_RESET = 4,
128 VK_INCOMPLETE = 5,
Courtney Goeltzenleuchter55659b72015-09-14 18:01:17 -0600129 VK_ERROR_OUT_OF_HOST_MEMORY = -1,
130 VK_ERROR_OUT_OF_DEVICE_MEMORY = -2,
131 VK_ERROR_INITIALIZATION_FAILED = -3,
132 VK_ERROR_DEVICE_LOST = -4,
133 VK_ERROR_MEMORY_MAP_FAILED = -5,
134 VK_ERROR_LAYER_NOT_PRESENT = -6,
135 VK_ERROR_EXTENSION_NOT_PRESENT = -7,
Courtney Goeltzenleuchterfdfade72015-10-19 16:50:21 -0600136 VK_ERROR_FEATURE_NOT_PRESENT = -8,
137 VK_ERROR_INCOMPATIBLE_DRIVER = -9,
Chia-I Wu7946e412015-10-31 00:31:16 +0800138 VK_ERROR_TOO_MANY_OBJECTS = -10,
Chia-I Wu17241042015-10-31 00:31:16 +0800139 VK_ERROR_FORMAT_NOT_SUPPORTED = -11,
Mark Lobodzinskifc5f2512016-08-26 10:19:18 -0600140 VK_ERROR_FRAGMENTED_POOL = -12,
Ian Elliotta9eb2fc2015-12-10 17:11:21 -0700141 VK_ERROR_SURFACE_LOST_KHR = -1000000000,
Jon Ashburn766866a2016-01-22 15:39:20 -0700142 VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001,
Ian Elliotta9eb2fc2015-12-10 17:11:21 -0700143 VK_SUBOPTIMAL_KHR = 1000001003,
144 VK_ERROR_OUT_OF_DATE_KHR = -1000001004,
145 VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = -1000003001,
Jon Ashburnc1931be2015-12-31 09:25:47 -0700146 VK_ERROR_VALIDATION_FAILED_EXT = -1000011001,
Jon Ashburn57b82b72016-03-07 13:01:35 -0700147 VK_ERROR_INVALID_SHADER_NV = -1000012000,
Mark Lobodzinskifc5f2512016-08-26 10:19:18 -0600148 VK_RESULT_BEGIN_RANGE = VK_ERROR_FRAGMENTED_POOL,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600149 VK_RESULT_END_RANGE = VK_INCOMPLETE,
Mark Lobodzinskifc5f2512016-08-26 10:19:18 -0600150 VK_RESULT_RANGE_SIZE = (VK_INCOMPLETE - VK_ERROR_FRAGMENTED_POOL + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600151 VK_RESULT_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600152} VkResult;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -0600153
Chia-I Wu44c99b62015-10-27 19:55:29 +0800154typedef enum VkStructureType {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600155 VK_STRUCTURE_TYPE_APPLICATION_INFO = 0,
Chia-I Wu1efb7e52015-10-26 17:32:47 +0800156 VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 1,
157 VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO = 2,
158 VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = 3,
159 VK_STRUCTURE_TYPE_SUBMIT_INFO = 4,
Chia-I Wu00ce5402015-11-10 16:21:09 +0800160 VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO = 5,
Chia-I Wu1efb7e52015-10-26 17:32:47 +0800161 VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE = 6,
162 VK_STRUCTURE_TYPE_BIND_SPARSE_INFO = 7,
163 VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 8,
164 VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 9,
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -0600165 VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 10,
Chia-I Wu1efb7e52015-10-26 17:32:47 +0800166 VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 11,
167 VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 12,
168 VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 13,
169 VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 14,
170 VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 15,
171 VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO = 16,
Chia-I Wu28e06912015-10-31 00:31:16 +0800172 VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO = 17,
173 VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 18,
174 VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = 19,
175 VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO = 20,
176 VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO = 21,
177 VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO = 22,
178 VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO = 23,
179 VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO = 24,
180 VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO = 25,
181 VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO = 26,
182 VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO = 27,
183 VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 28,
184 VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 29,
185 VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO = 30,
186 VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 31,
187 VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 32,
188 VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 33,
Chia-I Wu00ce5402015-11-10 16:21:09 +0800189 VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO = 34,
Chia-I Wu28e06912015-10-31 00:31:16 +0800190 VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET = 35,
191 VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET = 36,
192 VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 37,
193 VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 38,
194 VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO = 39,
Chia-I Wu00ce5402015-11-10 16:21:09 +0800195 VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO = 40,
Jon Ashburnf19916e2016-01-11 13:12:43 -0700196 VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO = 41,
197 VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO = 42,
198 VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO = 43,
199 VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 44,
200 VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 45,
201 VK_STRUCTURE_TYPE_MEMORY_BARRIER = 46,
202 VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO = 47,
203 VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO = 48,
Ian Elliotta9eb2fc2015-12-10 17:11:21 -0700204 VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR = 1000001000,
205 VK_STRUCTURE_TYPE_PRESENT_INFO_KHR = 1000001001,
206 VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR = 1000002000,
207 VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR = 1000002001,
208 VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR = 1000003000,
209 VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000,
210 VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000,
211 VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000,
212 VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR = 1000007000,
213 VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR = 1000008000,
214 VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000,
Jon Ashburnb25e4fc2016-03-07 11:07:19 -0700215 VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT = 1000011000,
Jon Ashburnc9d8f492016-05-03 08:52:58 -0600216 VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD = 1000018000,
Jon Ashburna5ded632016-05-09 07:59:14 -0600217 VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT = 1000022000,
218 VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_TAG_INFO_EXT = 1000022001,
219 VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT = 1000022002,
Karl Schultzee344492016-07-11 15:09:57 -0600220 VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV = 1000026000,
221 VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV = 1000026001,
222 VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV = 1000026002,
Mark Lobodzinski74bb26f2016-08-29 09:02:13 -0600223 VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV = 1000056000,
224 VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NV = 1000056001,
225 VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV = 1000057000,
226 VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV = 1000057001,
227 VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV = 1000058000,
Mark Lobodzinski1577dab2016-09-27 08:23:59 -0600228 VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT = 1000061000,
Mark Lobodzinski2d589822016-12-12 09:44:34 -0700229 VK_STRUCTURE_TYPE_OBJECT_TABLE_CREATE_INFO_NVX = 1000086000,
230 VK_STRUCTURE_TYPE_INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_NVX = 1000086001,
231 VK_STRUCTURE_TYPE_CMD_PROCESS_COMMANDS_INFO_NVX = 1000086002,
232 VK_STRUCTURE_TYPE_CMD_RESERVE_SPACE_FOR_COMMANDS_INFO_NVX = 1000086003,
233 VK_STRUCTURE_TYPE_DEVICE_GENERATED_COMMANDS_LIMITS_NVX = 1000086004,
234 VK_STRUCTURE_TYPE_DEVICE_GENERATED_COMMANDS_FEATURES_NVX = 1000086005,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600235 VK_STRUCTURE_TYPE_BEGIN_RANGE = VK_STRUCTURE_TYPE_APPLICATION_INFO,
Chia-I Wu5ee015a2015-11-12 06:09:22 +0800236 VK_STRUCTURE_TYPE_END_RANGE = VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO,
237 VK_STRUCTURE_TYPE_RANGE_SIZE = (VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO - VK_STRUCTURE_TYPE_APPLICATION_INFO + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600238 VK_STRUCTURE_TYPE_MAX_ENUM = 0x7FFFFFFF
239} VkStructureType;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -0600240
Chia-I Wu44c99b62015-10-27 19:55:29 +0800241typedef enum VkSystemAllocationScope {
Chia-I Wucf804e82015-10-31 00:31:16 +0800242 VK_SYSTEM_ALLOCATION_SCOPE_COMMAND = 0,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800243 VK_SYSTEM_ALLOCATION_SCOPE_OBJECT = 1,
244 VK_SYSTEM_ALLOCATION_SCOPE_CACHE = 2,
245 VK_SYSTEM_ALLOCATION_SCOPE_DEVICE = 3,
246 VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE = 4,
Chia-I Wucf804e82015-10-31 00:31:16 +0800247 VK_SYSTEM_ALLOCATION_SCOPE_BEGIN_RANGE = VK_SYSTEM_ALLOCATION_SCOPE_COMMAND,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800248 VK_SYSTEM_ALLOCATION_SCOPE_END_RANGE = VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE,
Chia-I Wucf804e82015-10-31 00:31:16 +0800249 VK_SYSTEM_ALLOCATION_SCOPE_RANGE_SIZE = (VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE - VK_SYSTEM_ALLOCATION_SCOPE_COMMAND + 1),
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800250 VK_SYSTEM_ALLOCATION_SCOPE_MAX_ENUM = 0x7FFFFFFF
251} VkSystemAllocationScope;
Chia-I Wuf7458c52015-10-26 21:10:41 +0800252
Chia-I Wu44c99b62015-10-27 19:55:29 +0800253typedef enum VkInternalAllocationType {
Chia-I Wubb7fad92015-10-27 17:53:18 +0800254 VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE = 0,
255 VK_INTERNAL_ALLOCATION_TYPE_BEGIN_RANGE = VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE,
256 VK_INTERNAL_ALLOCATION_TYPE_END_RANGE = VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE,
257 VK_INTERNAL_ALLOCATION_TYPE_RANGE_SIZE = (VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE - VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE + 1),
258 VK_INTERNAL_ALLOCATION_TYPE_MAX_ENUM = 0x7FFFFFFF
259} VkInternalAllocationType;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -0600260
Chia-I Wu44c99b62015-10-27 19:55:29 +0800261typedef enum VkFormat {
Chia-I Wuca4800c2015-11-11 05:55:25 +0800262 VK_FORMAT_UNDEFINED = 0,
263 VK_FORMAT_R4G4_UNORM_PACK8 = 1,
264 VK_FORMAT_R4G4B4A4_UNORM_PACK16 = 2,
265 VK_FORMAT_B4G4R4A4_UNORM_PACK16 = 3,
266 VK_FORMAT_R5G6B5_UNORM_PACK16 = 4,
267 VK_FORMAT_B5G6R5_UNORM_PACK16 = 5,
268 VK_FORMAT_R5G5B5A1_UNORM_PACK16 = 6,
269 VK_FORMAT_B5G5R5A1_UNORM_PACK16 = 7,
270 VK_FORMAT_A1R5G5B5_UNORM_PACK16 = 8,
271 VK_FORMAT_R8_UNORM = 9,
272 VK_FORMAT_R8_SNORM = 10,
273 VK_FORMAT_R8_USCALED = 11,
274 VK_FORMAT_R8_SSCALED = 12,
275 VK_FORMAT_R8_UINT = 13,
276 VK_FORMAT_R8_SINT = 14,
277 VK_FORMAT_R8_SRGB = 15,
278 VK_FORMAT_R8G8_UNORM = 16,
279 VK_FORMAT_R8G8_SNORM = 17,
280 VK_FORMAT_R8G8_USCALED = 18,
281 VK_FORMAT_R8G8_SSCALED = 19,
282 VK_FORMAT_R8G8_UINT = 20,
283 VK_FORMAT_R8G8_SINT = 21,
284 VK_FORMAT_R8G8_SRGB = 22,
285 VK_FORMAT_R8G8B8_UNORM = 23,
286 VK_FORMAT_R8G8B8_SNORM = 24,
287 VK_FORMAT_R8G8B8_USCALED = 25,
288 VK_FORMAT_R8G8B8_SSCALED = 26,
289 VK_FORMAT_R8G8B8_UINT = 27,
290 VK_FORMAT_R8G8B8_SINT = 28,
291 VK_FORMAT_R8G8B8_SRGB = 29,
292 VK_FORMAT_B8G8R8_UNORM = 30,
293 VK_FORMAT_B8G8R8_SNORM = 31,
294 VK_FORMAT_B8G8R8_USCALED = 32,
295 VK_FORMAT_B8G8R8_SSCALED = 33,
296 VK_FORMAT_B8G8R8_UINT = 34,
297 VK_FORMAT_B8G8R8_SINT = 35,
298 VK_FORMAT_B8G8R8_SRGB = 36,
299 VK_FORMAT_R8G8B8A8_UNORM = 37,
300 VK_FORMAT_R8G8B8A8_SNORM = 38,
301 VK_FORMAT_R8G8B8A8_USCALED = 39,
302 VK_FORMAT_R8G8B8A8_SSCALED = 40,
303 VK_FORMAT_R8G8B8A8_UINT = 41,
304 VK_FORMAT_R8G8B8A8_SINT = 42,
305 VK_FORMAT_R8G8B8A8_SRGB = 43,
306 VK_FORMAT_B8G8R8A8_UNORM = 44,
307 VK_FORMAT_B8G8R8A8_SNORM = 45,
308 VK_FORMAT_B8G8R8A8_USCALED = 46,
309 VK_FORMAT_B8G8R8A8_SSCALED = 47,
310 VK_FORMAT_B8G8R8A8_UINT = 48,
311 VK_FORMAT_B8G8R8A8_SINT = 49,
312 VK_FORMAT_B8G8R8A8_SRGB = 50,
313 VK_FORMAT_A8B8G8R8_UNORM_PACK32 = 51,
314 VK_FORMAT_A8B8G8R8_SNORM_PACK32 = 52,
315 VK_FORMAT_A8B8G8R8_USCALED_PACK32 = 53,
316 VK_FORMAT_A8B8G8R8_SSCALED_PACK32 = 54,
317 VK_FORMAT_A8B8G8R8_UINT_PACK32 = 55,
318 VK_FORMAT_A8B8G8R8_SINT_PACK32 = 56,
319 VK_FORMAT_A8B8G8R8_SRGB_PACK32 = 57,
320 VK_FORMAT_A2R10G10B10_UNORM_PACK32 = 58,
321 VK_FORMAT_A2R10G10B10_SNORM_PACK32 = 59,
322 VK_FORMAT_A2R10G10B10_USCALED_PACK32 = 60,
323 VK_FORMAT_A2R10G10B10_SSCALED_PACK32 = 61,
324 VK_FORMAT_A2R10G10B10_UINT_PACK32 = 62,
325 VK_FORMAT_A2R10G10B10_SINT_PACK32 = 63,
326 VK_FORMAT_A2B10G10R10_UNORM_PACK32 = 64,
327 VK_FORMAT_A2B10G10R10_SNORM_PACK32 = 65,
328 VK_FORMAT_A2B10G10R10_USCALED_PACK32 = 66,
329 VK_FORMAT_A2B10G10R10_SSCALED_PACK32 = 67,
330 VK_FORMAT_A2B10G10R10_UINT_PACK32 = 68,
331 VK_FORMAT_A2B10G10R10_SINT_PACK32 = 69,
332 VK_FORMAT_R16_UNORM = 70,
333 VK_FORMAT_R16_SNORM = 71,
334 VK_FORMAT_R16_USCALED = 72,
335 VK_FORMAT_R16_SSCALED = 73,
336 VK_FORMAT_R16_UINT = 74,
337 VK_FORMAT_R16_SINT = 75,
338 VK_FORMAT_R16_SFLOAT = 76,
339 VK_FORMAT_R16G16_UNORM = 77,
340 VK_FORMAT_R16G16_SNORM = 78,
341 VK_FORMAT_R16G16_USCALED = 79,
342 VK_FORMAT_R16G16_SSCALED = 80,
343 VK_FORMAT_R16G16_UINT = 81,
344 VK_FORMAT_R16G16_SINT = 82,
345 VK_FORMAT_R16G16_SFLOAT = 83,
346 VK_FORMAT_R16G16B16_UNORM = 84,
347 VK_FORMAT_R16G16B16_SNORM = 85,
348 VK_FORMAT_R16G16B16_USCALED = 86,
349 VK_FORMAT_R16G16B16_SSCALED = 87,
350 VK_FORMAT_R16G16B16_UINT = 88,
351 VK_FORMAT_R16G16B16_SINT = 89,
352 VK_FORMAT_R16G16B16_SFLOAT = 90,
353 VK_FORMAT_R16G16B16A16_UNORM = 91,
354 VK_FORMAT_R16G16B16A16_SNORM = 92,
355 VK_FORMAT_R16G16B16A16_USCALED = 93,
356 VK_FORMAT_R16G16B16A16_SSCALED = 94,
357 VK_FORMAT_R16G16B16A16_UINT = 95,
358 VK_FORMAT_R16G16B16A16_SINT = 96,
359 VK_FORMAT_R16G16B16A16_SFLOAT = 97,
360 VK_FORMAT_R32_UINT = 98,
361 VK_FORMAT_R32_SINT = 99,
362 VK_FORMAT_R32_SFLOAT = 100,
363 VK_FORMAT_R32G32_UINT = 101,
364 VK_FORMAT_R32G32_SINT = 102,
365 VK_FORMAT_R32G32_SFLOAT = 103,
366 VK_FORMAT_R32G32B32_UINT = 104,
367 VK_FORMAT_R32G32B32_SINT = 105,
368 VK_FORMAT_R32G32B32_SFLOAT = 106,
369 VK_FORMAT_R32G32B32A32_UINT = 107,
370 VK_FORMAT_R32G32B32A32_SINT = 108,
371 VK_FORMAT_R32G32B32A32_SFLOAT = 109,
372 VK_FORMAT_R64_UINT = 110,
373 VK_FORMAT_R64_SINT = 111,
374 VK_FORMAT_R64_SFLOAT = 112,
375 VK_FORMAT_R64G64_UINT = 113,
376 VK_FORMAT_R64G64_SINT = 114,
377 VK_FORMAT_R64G64_SFLOAT = 115,
378 VK_FORMAT_R64G64B64_UINT = 116,
379 VK_FORMAT_R64G64B64_SINT = 117,
380 VK_FORMAT_R64G64B64_SFLOAT = 118,
381 VK_FORMAT_R64G64B64A64_UINT = 119,
382 VK_FORMAT_R64G64B64A64_SINT = 120,
383 VK_FORMAT_R64G64B64A64_SFLOAT = 121,
384 VK_FORMAT_B10G11R11_UFLOAT_PACK32 = 122,
385 VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 = 123,
386 VK_FORMAT_D16_UNORM = 124,
387 VK_FORMAT_X8_D24_UNORM_PACK32 = 125,
388 VK_FORMAT_D32_SFLOAT = 126,
389 VK_FORMAT_S8_UINT = 127,
390 VK_FORMAT_D16_UNORM_S8_UINT = 128,
391 VK_FORMAT_D24_UNORM_S8_UINT = 129,
392 VK_FORMAT_D32_SFLOAT_S8_UINT = 130,
393 VK_FORMAT_BC1_RGB_UNORM_BLOCK = 131,
394 VK_FORMAT_BC1_RGB_SRGB_BLOCK = 132,
395 VK_FORMAT_BC1_RGBA_UNORM_BLOCK = 133,
396 VK_FORMAT_BC1_RGBA_SRGB_BLOCK = 134,
397 VK_FORMAT_BC2_UNORM_BLOCK = 135,
398 VK_FORMAT_BC2_SRGB_BLOCK = 136,
399 VK_FORMAT_BC3_UNORM_BLOCK = 137,
400 VK_FORMAT_BC3_SRGB_BLOCK = 138,
401 VK_FORMAT_BC4_UNORM_BLOCK = 139,
402 VK_FORMAT_BC4_SNORM_BLOCK = 140,
403 VK_FORMAT_BC5_UNORM_BLOCK = 141,
404 VK_FORMAT_BC5_SNORM_BLOCK = 142,
405 VK_FORMAT_BC6H_UFLOAT_BLOCK = 143,
406 VK_FORMAT_BC6H_SFLOAT_BLOCK = 144,
407 VK_FORMAT_BC7_UNORM_BLOCK = 145,
408 VK_FORMAT_BC7_SRGB_BLOCK = 146,
409 VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK = 147,
410 VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK = 148,
411 VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK = 149,
412 VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK = 150,
413 VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK = 151,
414 VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK = 152,
415 VK_FORMAT_EAC_R11_UNORM_BLOCK = 153,
416 VK_FORMAT_EAC_R11_SNORM_BLOCK = 154,
417 VK_FORMAT_EAC_R11G11_UNORM_BLOCK = 155,
418 VK_FORMAT_EAC_R11G11_SNORM_BLOCK = 156,
419 VK_FORMAT_ASTC_4x4_UNORM_BLOCK = 157,
420 VK_FORMAT_ASTC_4x4_SRGB_BLOCK = 158,
421 VK_FORMAT_ASTC_5x4_UNORM_BLOCK = 159,
422 VK_FORMAT_ASTC_5x4_SRGB_BLOCK = 160,
423 VK_FORMAT_ASTC_5x5_UNORM_BLOCK = 161,
424 VK_FORMAT_ASTC_5x5_SRGB_BLOCK = 162,
425 VK_FORMAT_ASTC_6x5_UNORM_BLOCK = 163,
426 VK_FORMAT_ASTC_6x5_SRGB_BLOCK = 164,
427 VK_FORMAT_ASTC_6x6_UNORM_BLOCK = 165,
428 VK_FORMAT_ASTC_6x6_SRGB_BLOCK = 166,
429 VK_FORMAT_ASTC_8x5_UNORM_BLOCK = 167,
430 VK_FORMAT_ASTC_8x5_SRGB_BLOCK = 168,
431 VK_FORMAT_ASTC_8x6_UNORM_BLOCK = 169,
432 VK_FORMAT_ASTC_8x6_SRGB_BLOCK = 170,
433 VK_FORMAT_ASTC_8x8_UNORM_BLOCK = 171,
434 VK_FORMAT_ASTC_8x8_SRGB_BLOCK = 172,
435 VK_FORMAT_ASTC_10x5_UNORM_BLOCK = 173,
436 VK_FORMAT_ASTC_10x5_SRGB_BLOCK = 174,
437 VK_FORMAT_ASTC_10x6_UNORM_BLOCK = 175,
438 VK_FORMAT_ASTC_10x6_SRGB_BLOCK = 176,
439 VK_FORMAT_ASTC_10x8_UNORM_BLOCK = 177,
440 VK_FORMAT_ASTC_10x8_SRGB_BLOCK = 178,
441 VK_FORMAT_ASTC_10x10_UNORM_BLOCK = 179,
442 VK_FORMAT_ASTC_10x10_SRGB_BLOCK = 180,
443 VK_FORMAT_ASTC_12x10_UNORM_BLOCK = 181,
444 VK_FORMAT_ASTC_12x10_SRGB_BLOCK = 182,
445 VK_FORMAT_ASTC_12x12_UNORM_BLOCK = 183,
446 VK_FORMAT_ASTC_12x12_SRGB_BLOCK = 184,
Mark Lobodzinskifc5f2512016-08-26 10:19:18 -0600447 VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG = 1000054000,
448 VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG = 1000054001,
449 VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG = 1000054002,
450 VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG = 1000054003,
451 VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG = 1000054004,
452 VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG = 1000054005,
453 VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG = 1000054006,
454 VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG = 1000054007,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600455 VK_FORMAT_BEGIN_RANGE = VK_FORMAT_UNDEFINED,
Chia-I Wu08bee5e2015-11-10 17:01:22 +0800456 VK_FORMAT_END_RANGE = VK_FORMAT_ASTC_12x12_SRGB_BLOCK,
457 VK_FORMAT_RANGE_SIZE = (VK_FORMAT_ASTC_12x12_SRGB_BLOCK - VK_FORMAT_UNDEFINED + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600458 VK_FORMAT_MAX_ENUM = 0x7FFFFFFF
459} VkFormat;
460
Chia-I Wu44c99b62015-10-27 19:55:29 +0800461typedef enum VkImageType {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600462 VK_IMAGE_TYPE_1D = 0,
463 VK_IMAGE_TYPE_2D = 1,
464 VK_IMAGE_TYPE_3D = 2,
465 VK_IMAGE_TYPE_BEGIN_RANGE = VK_IMAGE_TYPE_1D,
466 VK_IMAGE_TYPE_END_RANGE = VK_IMAGE_TYPE_3D,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800467 VK_IMAGE_TYPE_RANGE_SIZE = (VK_IMAGE_TYPE_3D - VK_IMAGE_TYPE_1D + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600468 VK_IMAGE_TYPE_MAX_ENUM = 0x7FFFFFFF
469} VkImageType;
470
Chia-I Wu44c99b62015-10-27 19:55:29 +0800471typedef enum VkImageTiling {
Chia-I Wu1efb7e52015-10-26 17:32:47 +0800472 VK_IMAGE_TILING_OPTIMAL = 0,
473 VK_IMAGE_TILING_LINEAR = 1,
474 VK_IMAGE_TILING_BEGIN_RANGE = VK_IMAGE_TILING_OPTIMAL,
475 VK_IMAGE_TILING_END_RANGE = VK_IMAGE_TILING_LINEAR,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800476 VK_IMAGE_TILING_RANGE_SIZE = (VK_IMAGE_TILING_LINEAR - VK_IMAGE_TILING_OPTIMAL + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600477 VK_IMAGE_TILING_MAX_ENUM = 0x7FFFFFFF
478} VkImageTiling;
479
Chia-I Wu44c99b62015-10-27 19:55:29 +0800480typedef enum VkPhysicalDeviceType {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600481 VK_PHYSICAL_DEVICE_TYPE_OTHER = 0,
482 VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU = 1,
483 VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU = 2,
484 VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU = 3,
485 VK_PHYSICAL_DEVICE_TYPE_CPU = 4,
486 VK_PHYSICAL_DEVICE_TYPE_BEGIN_RANGE = VK_PHYSICAL_DEVICE_TYPE_OTHER,
487 VK_PHYSICAL_DEVICE_TYPE_END_RANGE = VK_PHYSICAL_DEVICE_TYPE_CPU,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800488 VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE = (VK_PHYSICAL_DEVICE_TYPE_CPU - VK_PHYSICAL_DEVICE_TYPE_OTHER + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600489 VK_PHYSICAL_DEVICE_TYPE_MAX_ENUM = 0x7FFFFFFF
490} VkPhysicalDeviceType;
491
Chia-I Wu44c99b62015-10-27 19:55:29 +0800492typedef enum VkQueryType {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600493 VK_QUERY_TYPE_OCCLUSION = 0,
494 VK_QUERY_TYPE_PIPELINE_STATISTICS = 1,
Chia-I Wucbe3c9f2015-10-26 20:14:54 +0800495 VK_QUERY_TYPE_TIMESTAMP = 2,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600496 VK_QUERY_TYPE_BEGIN_RANGE = VK_QUERY_TYPE_OCCLUSION,
Chia-I Wucbe3c9f2015-10-26 20:14:54 +0800497 VK_QUERY_TYPE_END_RANGE = VK_QUERY_TYPE_TIMESTAMP,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800498 VK_QUERY_TYPE_RANGE_SIZE = (VK_QUERY_TYPE_TIMESTAMP - VK_QUERY_TYPE_OCCLUSION + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600499 VK_QUERY_TYPE_MAX_ENUM = 0x7FFFFFFF
500} VkQueryType;
501
Chia-I Wu44c99b62015-10-27 19:55:29 +0800502typedef enum VkSharingMode {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600503 VK_SHARING_MODE_EXCLUSIVE = 0,
504 VK_SHARING_MODE_CONCURRENT = 1,
505 VK_SHARING_MODE_BEGIN_RANGE = VK_SHARING_MODE_EXCLUSIVE,
506 VK_SHARING_MODE_END_RANGE = VK_SHARING_MODE_CONCURRENT,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800507 VK_SHARING_MODE_RANGE_SIZE = (VK_SHARING_MODE_CONCURRENT - VK_SHARING_MODE_EXCLUSIVE + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600508 VK_SHARING_MODE_MAX_ENUM = 0x7FFFFFFF
509} VkSharingMode;
510
Chia-I Wu44c99b62015-10-27 19:55:29 +0800511typedef enum VkImageLayout {
Courtney Goeltzenleuchterb1fe3f82015-09-16 11:51:46 -0600512 VK_IMAGE_LAYOUT_UNDEFINED = 0,
513 VK_IMAGE_LAYOUT_GENERAL = 1,
514 VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = 2,
515 VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = 3,
516 VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = 4,
517 VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = 5,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800518 VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = 6,
519 VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL = 7,
Courtney Goeltzenleuchterb1fe3f82015-09-16 11:51:46 -0600520 VK_IMAGE_LAYOUT_PREINITIALIZED = 8,
Ian Elliotta9eb2fc2015-12-10 17:11:21 -0700521 VK_IMAGE_LAYOUT_PRESENT_SRC_KHR = 1000001002,
Courtney Goeltzenleuchterb1fe3f82015-09-16 11:51:46 -0600522 VK_IMAGE_LAYOUT_BEGIN_RANGE = VK_IMAGE_LAYOUT_UNDEFINED,
523 VK_IMAGE_LAYOUT_END_RANGE = VK_IMAGE_LAYOUT_PREINITIALIZED,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800524 VK_IMAGE_LAYOUT_RANGE_SIZE = (VK_IMAGE_LAYOUT_PREINITIALIZED - VK_IMAGE_LAYOUT_UNDEFINED + 1),
Courtney Goeltzenleuchterb1fe3f82015-09-16 11:51:46 -0600525 VK_IMAGE_LAYOUT_MAX_ENUM = 0x7FFFFFFF
526} VkImageLayout;
527
Chia-I Wu44c99b62015-10-27 19:55:29 +0800528typedef enum VkImageViewType {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600529 VK_IMAGE_VIEW_TYPE_1D = 0,
530 VK_IMAGE_VIEW_TYPE_2D = 1,
531 VK_IMAGE_VIEW_TYPE_3D = 2,
532 VK_IMAGE_VIEW_TYPE_CUBE = 3,
533 VK_IMAGE_VIEW_TYPE_1D_ARRAY = 4,
534 VK_IMAGE_VIEW_TYPE_2D_ARRAY = 5,
535 VK_IMAGE_VIEW_TYPE_CUBE_ARRAY = 6,
536 VK_IMAGE_VIEW_TYPE_BEGIN_RANGE = VK_IMAGE_VIEW_TYPE_1D,
537 VK_IMAGE_VIEW_TYPE_END_RANGE = VK_IMAGE_VIEW_TYPE_CUBE_ARRAY,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800538 VK_IMAGE_VIEW_TYPE_RANGE_SIZE = (VK_IMAGE_VIEW_TYPE_CUBE_ARRAY - VK_IMAGE_VIEW_TYPE_1D + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600539 VK_IMAGE_VIEW_TYPE_MAX_ENUM = 0x7FFFFFFF
540} VkImageViewType;
541
Chia-I Wu44c99b62015-10-27 19:55:29 +0800542typedef enum VkComponentSwizzle {
Chia-I Wu1b99bb22015-10-27 19:25:11 +0800543 VK_COMPONENT_SWIZZLE_IDENTITY = 0,
544 VK_COMPONENT_SWIZZLE_ZERO = 1,
545 VK_COMPONENT_SWIZZLE_ONE = 2,
546 VK_COMPONENT_SWIZZLE_R = 3,
547 VK_COMPONENT_SWIZZLE_G = 4,
548 VK_COMPONENT_SWIZZLE_B = 5,
549 VK_COMPONENT_SWIZZLE_A = 6,
550 VK_COMPONENT_SWIZZLE_BEGIN_RANGE = VK_COMPONENT_SWIZZLE_IDENTITY,
551 VK_COMPONENT_SWIZZLE_END_RANGE = VK_COMPONENT_SWIZZLE_A,
552 VK_COMPONENT_SWIZZLE_RANGE_SIZE = (VK_COMPONENT_SWIZZLE_A - VK_COMPONENT_SWIZZLE_IDENTITY + 1),
553 VK_COMPONENT_SWIZZLE_MAX_ENUM = 0x7FFFFFFF
554} VkComponentSwizzle;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600555
Chia-I Wu44c99b62015-10-27 19:55:29 +0800556typedef enum VkVertexInputRate {
Chia-I Wu1b99bb22015-10-27 19:25:11 +0800557 VK_VERTEX_INPUT_RATE_VERTEX = 0,
558 VK_VERTEX_INPUT_RATE_INSTANCE = 1,
559 VK_VERTEX_INPUT_RATE_BEGIN_RANGE = VK_VERTEX_INPUT_RATE_VERTEX,
560 VK_VERTEX_INPUT_RATE_END_RANGE = VK_VERTEX_INPUT_RATE_INSTANCE,
561 VK_VERTEX_INPUT_RATE_RANGE_SIZE = (VK_VERTEX_INPUT_RATE_INSTANCE - VK_VERTEX_INPUT_RATE_VERTEX + 1),
562 VK_VERTEX_INPUT_RATE_MAX_ENUM = 0x7FFFFFFF
563} VkVertexInputRate;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600564
Chia-I Wu44c99b62015-10-27 19:55:29 +0800565typedef enum VkPrimitiveTopology {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600566 VK_PRIMITIVE_TOPOLOGY_POINT_LIST = 0,
567 VK_PRIMITIVE_TOPOLOGY_LINE_LIST = 1,
568 VK_PRIMITIVE_TOPOLOGY_LINE_STRIP = 2,
569 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST = 3,
570 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP = 4,
571 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN = 5,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800572 VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY = 6,
573 VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY = 7,
574 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY = 8,
575 VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY = 9,
Chia-I Wu515eb8f2015-10-31 00:31:16 +0800576 VK_PRIMITIVE_TOPOLOGY_PATCH_LIST = 10,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600577 VK_PRIMITIVE_TOPOLOGY_BEGIN_RANGE = VK_PRIMITIVE_TOPOLOGY_POINT_LIST,
Chia-I Wu515eb8f2015-10-31 00:31:16 +0800578 VK_PRIMITIVE_TOPOLOGY_END_RANGE = VK_PRIMITIVE_TOPOLOGY_PATCH_LIST,
579 VK_PRIMITIVE_TOPOLOGY_RANGE_SIZE = (VK_PRIMITIVE_TOPOLOGY_PATCH_LIST - VK_PRIMITIVE_TOPOLOGY_POINT_LIST + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600580 VK_PRIMITIVE_TOPOLOGY_MAX_ENUM = 0x7FFFFFFF
581} VkPrimitiveTopology;
582
Chia-I Wu44c99b62015-10-27 19:55:29 +0800583typedef enum VkPolygonMode {
Chia-I Wu1b99bb22015-10-27 19:25:11 +0800584 VK_POLYGON_MODE_FILL = 0,
585 VK_POLYGON_MODE_LINE = 1,
586 VK_POLYGON_MODE_POINT = 2,
Chia-I Wuab83a0e2015-10-27 19:00:15 +0800587 VK_POLYGON_MODE_BEGIN_RANGE = VK_POLYGON_MODE_FILL,
588 VK_POLYGON_MODE_END_RANGE = VK_POLYGON_MODE_POINT,
589 VK_POLYGON_MODE_RANGE_SIZE = (VK_POLYGON_MODE_POINT - VK_POLYGON_MODE_FILL + 1),
590 VK_POLYGON_MODE_MAX_ENUM = 0x7FFFFFFF
Chia-I Wu1b99bb22015-10-27 19:25:11 +0800591} VkPolygonMode;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600592
Chia-I Wu44c99b62015-10-27 19:55:29 +0800593typedef enum VkFrontFace {
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800594 VK_FRONT_FACE_COUNTER_CLOCKWISE = 0,
595 VK_FRONT_FACE_CLOCKWISE = 1,
596 VK_FRONT_FACE_BEGIN_RANGE = VK_FRONT_FACE_COUNTER_CLOCKWISE,
597 VK_FRONT_FACE_END_RANGE = VK_FRONT_FACE_CLOCKWISE,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800598 VK_FRONT_FACE_RANGE_SIZE = (VK_FRONT_FACE_CLOCKWISE - VK_FRONT_FACE_COUNTER_CLOCKWISE + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600599 VK_FRONT_FACE_MAX_ENUM = 0x7FFFFFFF
600} VkFrontFace;
601
Chia-I Wu44c99b62015-10-27 19:55:29 +0800602typedef enum VkCompareOp {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600603 VK_COMPARE_OP_NEVER = 0,
604 VK_COMPARE_OP_LESS = 1,
605 VK_COMPARE_OP_EQUAL = 2,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800606 VK_COMPARE_OP_LESS_OR_EQUAL = 3,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600607 VK_COMPARE_OP_GREATER = 4,
608 VK_COMPARE_OP_NOT_EQUAL = 5,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800609 VK_COMPARE_OP_GREATER_OR_EQUAL = 6,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600610 VK_COMPARE_OP_ALWAYS = 7,
611 VK_COMPARE_OP_BEGIN_RANGE = VK_COMPARE_OP_NEVER,
612 VK_COMPARE_OP_END_RANGE = VK_COMPARE_OP_ALWAYS,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800613 VK_COMPARE_OP_RANGE_SIZE = (VK_COMPARE_OP_ALWAYS - VK_COMPARE_OP_NEVER + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600614 VK_COMPARE_OP_MAX_ENUM = 0x7FFFFFFF
615} VkCompareOp;
616
Chia-I Wu44c99b62015-10-27 19:55:29 +0800617typedef enum VkStencilOp {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600618 VK_STENCIL_OP_KEEP = 0,
619 VK_STENCIL_OP_ZERO = 1,
620 VK_STENCIL_OP_REPLACE = 2,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800621 VK_STENCIL_OP_INCREMENT_AND_CLAMP = 3,
622 VK_STENCIL_OP_DECREMENT_AND_CLAMP = 4,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600623 VK_STENCIL_OP_INVERT = 5,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800624 VK_STENCIL_OP_INCREMENT_AND_WRAP = 6,
625 VK_STENCIL_OP_DECREMENT_AND_WRAP = 7,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600626 VK_STENCIL_OP_BEGIN_RANGE = VK_STENCIL_OP_KEEP,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800627 VK_STENCIL_OP_END_RANGE = VK_STENCIL_OP_DECREMENT_AND_WRAP,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800628 VK_STENCIL_OP_RANGE_SIZE = (VK_STENCIL_OP_DECREMENT_AND_WRAP - VK_STENCIL_OP_KEEP + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600629 VK_STENCIL_OP_MAX_ENUM = 0x7FFFFFFF
630} VkStencilOp;
631
Chia-I Wu44c99b62015-10-27 19:55:29 +0800632typedef enum VkLogicOp {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600633 VK_LOGIC_OP_CLEAR = 0,
634 VK_LOGIC_OP_AND = 1,
635 VK_LOGIC_OP_AND_REVERSE = 2,
636 VK_LOGIC_OP_COPY = 3,
637 VK_LOGIC_OP_AND_INVERTED = 4,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800638 VK_LOGIC_OP_NO_OP = 5,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600639 VK_LOGIC_OP_XOR = 6,
640 VK_LOGIC_OP_OR = 7,
641 VK_LOGIC_OP_NOR = 8,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800642 VK_LOGIC_OP_EQUIVALENT = 9,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600643 VK_LOGIC_OP_INVERT = 10,
644 VK_LOGIC_OP_OR_REVERSE = 11,
645 VK_LOGIC_OP_COPY_INVERTED = 12,
646 VK_LOGIC_OP_OR_INVERTED = 13,
647 VK_LOGIC_OP_NAND = 14,
648 VK_LOGIC_OP_SET = 15,
649 VK_LOGIC_OP_BEGIN_RANGE = VK_LOGIC_OP_CLEAR,
650 VK_LOGIC_OP_END_RANGE = VK_LOGIC_OP_SET,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800651 VK_LOGIC_OP_RANGE_SIZE = (VK_LOGIC_OP_SET - VK_LOGIC_OP_CLEAR + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600652 VK_LOGIC_OP_MAX_ENUM = 0x7FFFFFFF
653} VkLogicOp;
654
Chia-I Wu44c99b62015-10-27 19:55:29 +0800655typedef enum VkBlendFactor {
Chia-I Wu1b99bb22015-10-27 19:25:11 +0800656 VK_BLEND_FACTOR_ZERO = 0,
657 VK_BLEND_FACTOR_ONE = 1,
658 VK_BLEND_FACTOR_SRC_COLOR = 2,
659 VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR = 3,
660 VK_BLEND_FACTOR_DST_COLOR = 4,
661 VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR = 5,
662 VK_BLEND_FACTOR_SRC_ALPHA = 6,
663 VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA = 7,
664 VK_BLEND_FACTOR_DST_ALPHA = 8,
665 VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA = 9,
666 VK_BLEND_FACTOR_CONSTANT_COLOR = 10,
667 VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR = 11,
668 VK_BLEND_FACTOR_CONSTANT_ALPHA = 12,
669 VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA = 13,
670 VK_BLEND_FACTOR_SRC_ALPHA_SATURATE = 14,
671 VK_BLEND_FACTOR_SRC1_COLOR = 15,
672 VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR = 16,
673 VK_BLEND_FACTOR_SRC1_ALPHA = 17,
674 VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA = 18,
Chia-I Wuab83a0e2015-10-27 19:00:15 +0800675 VK_BLEND_FACTOR_BEGIN_RANGE = VK_BLEND_FACTOR_ZERO,
676 VK_BLEND_FACTOR_END_RANGE = VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA,
677 VK_BLEND_FACTOR_RANGE_SIZE = (VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA - VK_BLEND_FACTOR_ZERO + 1),
678 VK_BLEND_FACTOR_MAX_ENUM = 0x7FFFFFFF
Chia-I Wu1b99bb22015-10-27 19:25:11 +0800679} VkBlendFactor;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600680
Chia-I Wu44c99b62015-10-27 19:55:29 +0800681typedef enum VkBlendOp {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600682 VK_BLEND_OP_ADD = 0,
683 VK_BLEND_OP_SUBTRACT = 1,
684 VK_BLEND_OP_REVERSE_SUBTRACT = 2,
685 VK_BLEND_OP_MIN = 3,
686 VK_BLEND_OP_MAX = 4,
687 VK_BLEND_OP_BEGIN_RANGE = VK_BLEND_OP_ADD,
688 VK_BLEND_OP_END_RANGE = VK_BLEND_OP_MAX,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800689 VK_BLEND_OP_RANGE_SIZE = (VK_BLEND_OP_MAX - VK_BLEND_OP_ADD + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600690 VK_BLEND_OP_MAX_ENUM = 0x7FFFFFFF
691} VkBlendOp;
692
Chia-I Wu44c99b62015-10-27 19:55:29 +0800693typedef enum VkDynamicState {
Courtney Goeltzenleuchter95edc602015-09-21 17:19:25 -0600694 VK_DYNAMIC_STATE_VIEWPORT = 0,
695 VK_DYNAMIC_STATE_SCISSOR = 1,
696 VK_DYNAMIC_STATE_LINE_WIDTH = 2,
697 VK_DYNAMIC_STATE_DEPTH_BIAS = 3,
698 VK_DYNAMIC_STATE_BLEND_CONSTANTS = 4,
699 VK_DYNAMIC_STATE_DEPTH_BOUNDS = 5,
700 VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK = 6,
701 VK_DYNAMIC_STATE_STENCIL_WRITE_MASK = 7,
702 VK_DYNAMIC_STATE_STENCIL_REFERENCE = 8,
703 VK_DYNAMIC_STATE_BEGIN_RANGE = VK_DYNAMIC_STATE_VIEWPORT,
704 VK_DYNAMIC_STATE_END_RANGE = VK_DYNAMIC_STATE_STENCIL_REFERENCE,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800705 VK_DYNAMIC_STATE_RANGE_SIZE = (VK_DYNAMIC_STATE_STENCIL_REFERENCE - VK_DYNAMIC_STATE_VIEWPORT + 1),
Courtney Goeltzenleuchter95edc602015-09-21 17:19:25 -0600706 VK_DYNAMIC_STATE_MAX_ENUM = 0x7FFFFFFF
707} VkDynamicState;
708
Chia-I Wu44c99b62015-10-27 19:55:29 +0800709typedef enum VkFilter {
Chia-I Wub99df442015-10-26 16:49:32 +0800710 VK_FILTER_NEAREST = 0,
711 VK_FILTER_LINEAR = 1,
Jon Ashburndc9111c2016-03-22 12:57:13 -0600712 VK_FILTER_CUBIC_IMG = 1000015000,
Chia-I Wub99df442015-10-26 16:49:32 +0800713 VK_FILTER_BEGIN_RANGE = VK_FILTER_NEAREST,
714 VK_FILTER_END_RANGE = VK_FILTER_LINEAR,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800715 VK_FILTER_RANGE_SIZE = (VK_FILTER_LINEAR - VK_FILTER_NEAREST + 1),
Chia-I Wub99df442015-10-26 16:49:32 +0800716 VK_FILTER_MAX_ENUM = 0x7FFFFFFF
717} VkFilter;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600718
Chia-I Wu44c99b62015-10-27 19:55:29 +0800719typedef enum VkSamplerMipmapMode {
Jon Ashburnf19916e2016-01-11 13:12:43 -0700720 VK_SAMPLER_MIPMAP_MODE_NEAREST = 0,
721 VK_SAMPLER_MIPMAP_MODE_LINEAR = 1,
722 VK_SAMPLER_MIPMAP_MODE_BEGIN_RANGE = VK_SAMPLER_MIPMAP_MODE_NEAREST,
Chia-I Wub99df442015-10-26 16:49:32 +0800723 VK_SAMPLER_MIPMAP_MODE_END_RANGE = VK_SAMPLER_MIPMAP_MODE_LINEAR,
Jon Ashburnf19916e2016-01-11 13:12:43 -0700724 VK_SAMPLER_MIPMAP_MODE_RANGE_SIZE = (VK_SAMPLER_MIPMAP_MODE_LINEAR - VK_SAMPLER_MIPMAP_MODE_NEAREST + 1),
Chia-I Wub99df442015-10-26 16:49:32 +0800725 VK_SAMPLER_MIPMAP_MODE_MAX_ENUM = 0x7FFFFFFF
726} VkSamplerMipmapMode;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600727
Chia-I Wu44c99b62015-10-27 19:55:29 +0800728typedef enum VkSamplerAddressMode {
Chia-I Wu1efb7e52015-10-26 17:32:47 +0800729 VK_SAMPLER_ADDRESS_MODE_REPEAT = 0,
730 VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT = 1,
731 VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE = 2,
732 VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER = 3,
733 VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE = 4,
734 VK_SAMPLER_ADDRESS_MODE_BEGIN_RANGE = VK_SAMPLER_ADDRESS_MODE_REPEAT,
Jon Ashburnb25e4fc2016-03-07 11:07:19 -0700735 VK_SAMPLER_ADDRESS_MODE_END_RANGE = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER,
736 VK_SAMPLER_ADDRESS_MODE_RANGE_SIZE = (VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER - VK_SAMPLER_ADDRESS_MODE_REPEAT + 1),
Chia-I Wub99df442015-10-26 16:49:32 +0800737 VK_SAMPLER_ADDRESS_MODE_MAX_ENUM = 0x7FFFFFFF
738} VkSamplerAddressMode;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600739
Chia-I Wu44c99b62015-10-27 19:55:29 +0800740typedef enum VkBorderColor {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600741 VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = 0,
742 VK_BORDER_COLOR_INT_TRANSPARENT_BLACK = 1,
743 VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK = 2,
744 VK_BORDER_COLOR_INT_OPAQUE_BLACK = 3,
745 VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE = 4,
746 VK_BORDER_COLOR_INT_OPAQUE_WHITE = 5,
747 VK_BORDER_COLOR_BEGIN_RANGE = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK,
748 VK_BORDER_COLOR_END_RANGE = VK_BORDER_COLOR_INT_OPAQUE_WHITE,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800749 VK_BORDER_COLOR_RANGE_SIZE = (VK_BORDER_COLOR_INT_OPAQUE_WHITE - VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600750 VK_BORDER_COLOR_MAX_ENUM = 0x7FFFFFFF
751} VkBorderColor;
752
Chia-I Wu44c99b62015-10-27 19:55:29 +0800753typedef enum VkDescriptorType {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600754 VK_DESCRIPTOR_TYPE_SAMPLER = 0,
755 VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = 1,
756 VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE = 2,
757 VK_DESCRIPTOR_TYPE_STORAGE_IMAGE = 3,
758 VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = 4,
759 VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = 5,
760 VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER = 6,
761 VK_DESCRIPTOR_TYPE_STORAGE_BUFFER = 7,
762 VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = 8,
763 VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = 9,
764 VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT = 10,
765 VK_DESCRIPTOR_TYPE_BEGIN_RANGE = VK_DESCRIPTOR_TYPE_SAMPLER,
766 VK_DESCRIPTOR_TYPE_END_RANGE = VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800767 VK_DESCRIPTOR_TYPE_RANGE_SIZE = (VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT - VK_DESCRIPTOR_TYPE_SAMPLER + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600768 VK_DESCRIPTOR_TYPE_MAX_ENUM = 0x7FFFFFFF
769} VkDescriptorType;
770
Chia-I Wu44c99b62015-10-27 19:55:29 +0800771typedef enum VkAttachmentLoadOp {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600772 VK_ATTACHMENT_LOAD_OP_LOAD = 0,
773 VK_ATTACHMENT_LOAD_OP_CLEAR = 1,
774 VK_ATTACHMENT_LOAD_OP_DONT_CARE = 2,
775 VK_ATTACHMENT_LOAD_OP_BEGIN_RANGE = VK_ATTACHMENT_LOAD_OP_LOAD,
776 VK_ATTACHMENT_LOAD_OP_END_RANGE = VK_ATTACHMENT_LOAD_OP_DONT_CARE,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800777 VK_ATTACHMENT_LOAD_OP_RANGE_SIZE = (VK_ATTACHMENT_LOAD_OP_DONT_CARE - VK_ATTACHMENT_LOAD_OP_LOAD + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600778 VK_ATTACHMENT_LOAD_OP_MAX_ENUM = 0x7FFFFFFF
779} VkAttachmentLoadOp;
780
Chia-I Wu44c99b62015-10-27 19:55:29 +0800781typedef enum VkAttachmentStoreOp {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600782 VK_ATTACHMENT_STORE_OP_STORE = 0,
783 VK_ATTACHMENT_STORE_OP_DONT_CARE = 1,
784 VK_ATTACHMENT_STORE_OP_BEGIN_RANGE = VK_ATTACHMENT_STORE_OP_STORE,
785 VK_ATTACHMENT_STORE_OP_END_RANGE = VK_ATTACHMENT_STORE_OP_DONT_CARE,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800786 VK_ATTACHMENT_STORE_OP_RANGE_SIZE = (VK_ATTACHMENT_STORE_OP_DONT_CARE - VK_ATTACHMENT_STORE_OP_STORE + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600787 VK_ATTACHMENT_STORE_OP_MAX_ENUM = 0x7FFFFFFF
788} VkAttachmentStoreOp;
789
Chia-I Wu44c99b62015-10-27 19:55:29 +0800790typedef enum VkPipelineBindPoint {
Chia-I Wu1efb7e52015-10-26 17:32:47 +0800791 VK_PIPELINE_BIND_POINT_GRAPHICS = 0,
792 VK_PIPELINE_BIND_POINT_COMPUTE = 1,
793 VK_PIPELINE_BIND_POINT_BEGIN_RANGE = VK_PIPELINE_BIND_POINT_GRAPHICS,
794 VK_PIPELINE_BIND_POINT_END_RANGE = VK_PIPELINE_BIND_POINT_COMPUTE,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800795 VK_PIPELINE_BIND_POINT_RANGE_SIZE = (VK_PIPELINE_BIND_POINT_COMPUTE - VK_PIPELINE_BIND_POINT_GRAPHICS + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600796 VK_PIPELINE_BIND_POINT_MAX_ENUM = 0x7FFFFFFF
797} VkPipelineBindPoint;
798
Chia-I Wu44c99b62015-10-27 19:55:29 +0800799typedef enum VkCommandBufferLevel {
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800800 VK_COMMAND_BUFFER_LEVEL_PRIMARY = 0,
801 VK_COMMAND_BUFFER_LEVEL_SECONDARY = 1,
802 VK_COMMAND_BUFFER_LEVEL_BEGIN_RANGE = VK_COMMAND_BUFFER_LEVEL_PRIMARY,
803 VK_COMMAND_BUFFER_LEVEL_END_RANGE = VK_COMMAND_BUFFER_LEVEL_SECONDARY,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800804 VK_COMMAND_BUFFER_LEVEL_RANGE_SIZE = (VK_COMMAND_BUFFER_LEVEL_SECONDARY - VK_COMMAND_BUFFER_LEVEL_PRIMARY + 1),
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800805 VK_COMMAND_BUFFER_LEVEL_MAX_ENUM = 0x7FFFFFFF
806} VkCommandBufferLevel;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600807
Chia-I Wu44c99b62015-10-27 19:55:29 +0800808typedef enum VkIndexType {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600809 VK_INDEX_TYPE_UINT16 = 0,
810 VK_INDEX_TYPE_UINT32 = 1,
811 VK_INDEX_TYPE_BEGIN_RANGE = VK_INDEX_TYPE_UINT16,
812 VK_INDEX_TYPE_END_RANGE = VK_INDEX_TYPE_UINT32,
Chia-I Wubb7fad92015-10-27 17:53:18 +0800813 VK_INDEX_TYPE_RANGE_SIZE = (VK_INDEX_TYPE_UINT32 - VK_INDEX_TYPE_UINT16 + 1),
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600814 VK_INDEX_TYPE_MAX_ENUM = 0x7FFFFFFF
815} VkIndexType;
816
Chia-I Wu44c99b62015-10-27 19:55:29 +0800817typedef enum VkSubpassContents {
Chia-I Wu1b99bb22015-10-27 19:25:11 +0800818 VK_SUBPASS_CONTENTS_INLINE = 0,
819 VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS = 1,
820 VK_SUBPASS_CONTENTS_BEGIN_RANGE = VK_SUBPASS_CONTENTS_INLINE,
821 VK_SUBPASS_CONTENTS_END_RANGE = VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS,
822 VK_SUBPASS_CONTENTS_RANGE_SIZE = (VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS - VK_SUBPASS_CONTENTS_INLINE + 1),
823 VK_SUBPASS_CONTENTS_MAX_ENUM = 0x7FFFFFFF
824} VkSubpassContents;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600825
Chia-I Wu439c0772015-10-26 17:00:46 +0800826typedef VkFlags VkInstanceCreateFlags;
Cody Northrop22b7fae2015-08-11 11:21:48 -0600827
Chia-I Wu44c99b62015-10-27 19:55:29 +0800828typedef enum VkFormatFeatureFlagBits {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600829 VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = 0x00000001,
830 VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = 0x00000002,
831 VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = 0x00000004,
832 VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000008,
833 VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = 0x00000010,
834 VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 0x00000020,
835 VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = 0x00000040,
836 VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 0x00000080,
837 VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = 0x00000100,
838 VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000200,
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800839 VK_FORMAT_FEATURE_BLIT_SRC_BIT = 0x00000400,
840 VK_FORMAT_FEATURE_BLIT_DST_BIT = 0x00000800,
Jon Ashburn766866a2016-01-22 15:39:20 -0700841 VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = 0x00001000,
Jon Ashburndc9111c2016-03-22 12:57:13 -0600842 VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG = 0x00002000,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600843 VK_FORMAT_FEATURE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600844} VkFormatFeatureFlagBits;
845typedef VkFlags VkFormatFeatureFlags;
846
Chia-I Wu44c99b62015-10-27 19:55:29 +0800847typedef enum VkImageUsageFlagBits {
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800848 VK_IMAGE_USAGE_TRANSFER_SRC_BIT = 0x00000001,
849 VK_IMAGE_USAGE_TRANSFER_DST_BIT = 0x00000002,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600850 VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004,
851 VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008,
852 VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010,
Courtney Goeltzenleuchter660f0ca2015-09-10 14:14:11 -0600853 VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000020,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600854 VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040,
855 VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 0x00000080,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600856 VK_IMAGE_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600857} VkImageUsageFlagBits;
858typedef VkFlags VkImageUsageFlags;
859
Chia-I Wu44c99b62015-10-27 19:55:29 +0800860typedef enum VkImageCreateFlagBits {
Courtney Goeltzenleuchter8134da02015-09-10 17:00:22 -0600861 VK_IMAGE_CREATE_SPARSE_BINDING_BIT = 0x00000001,
Courtney Goeltzenleuchter4da28862015-09-10 13:28:52 -0600862 VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002,
863 VK_IMAGE_CREATE_SPARSE_ALIASED_BIT = 0x00000004,
Courtney Goeltzenleuchter1459c752015-09-10 17:06:03 -0600864 VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = 0x00000008,
865 VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = 0x00000010,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600866 VK_IMAGE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchter4da28862015-09-10 13:28:52 -0600867} VkImageCreateFlagBits;
868typedef VkFlags VkImageCreateFlags;
869
Chia-I Wu44c99b62015-10-27 19:55:29 +0800870typedef enum VkSampleCountFlagBits {
Courtney Goeltzenleuchter7b0d95d2015-09-11 11:40:48 -0600871 VK_SAMPLE_COUNT_1_BIT = 0x00000001,
872 VK_SAMPLE_COUNT_2_BIT = 0x00000002,
873 VK_SAMPLE_COUNT_4_BIT = 0x00000004,
874 VK_SAMPLE_COUNT_8_BIT = 0x00000008,
875 VK_SAMPLE_COUNT_16_BIT = 0x00000010,
876 VK_SAMPLE_COUNT_32_BIT = 0x00000020,
877 VK_SAMPLE_COUNT_64_BIT = 0x00000040,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600878 VK_SAMPLE_COUNT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchterf131d732015-09-02 11:04:44 -0600879} VkSampleCountFlagBits;
880typedef VkFlags VkSampleCountFlags;
881
Chia-I Wu44c99b62015-10-27 19:55:29 +0800882typedef enum VkQueueFlagBits {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600883 VK_QUEUE_GRAPHICS_BIT = 0x00000001,
884 VK_QUEUE_COMPUTE_BIT = 0x00000002,
Chia-I Wu1b99bb22015-10-27 19:25:11 +0800885 VK_QUEUE_TRANSFER_BIT = 0x00000004,
Chia-I Wu2bfb33c2015-10-26 17:24:52 +0800886 VK_QUEUE_SPARSE_BINDING_BIT = 0x00000008,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600887 VK_QUEUE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Tony Barbourd1c35722015-04-16 15:59:00 -0600888} VkQueueFlagBits;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600889typedef VkFlags VkQueueFlags;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -0600890
Chia-I Wu44c99b62015-10-27 19:55:29 +0800891typedef enum VkMemoryPropertyFlagBits {
Chia-I Wuc8ea02f2015-10-27 18:53:22 +0800892 VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT = 0x00000001,
893 VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT = 0x00000002,
894 VK_MEMORY_PROPERTY_HOST_COHERENT_BIT = 0x00000004,
895 VK_MEMORY_PROPERTY_HOST_CACHED_BIT = 0x00000008,
896 VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT = 0x00000010,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600897 VK_MEMORY_PROPERTY_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Tony Barbourd1c35722015-04-16 15:59:00 -0600898} VkMemoryPropertyFlagBits;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600899typedef VkFlags VkMemoryPropertyFlags;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -0600900
Chia-I Wu44c99b62015-10-27 19:55:29 +0800901typedef enum VkMemoryHeapFlagBits {
Chia-I Wuc8ea02f2015-10-27 18:53:22 +0800902 VK_MEMORY_HEAP_DEVICE_LOCAL_BIT = 0x00000001,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600903 VK_MEMORY_HEAP_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600904} VkMemoryHeapFlagBits;
905typedef VkFlags VkMemoryHeapFlags;
Chia-I Wu439c0772015-10-26 17:00:46 +0800906typedef VkFlags VkDeviceCreateFlags;
907typedef VkFlags VkDeviceQueueCreateFlags;
Jon Ashburn7f9716c2015-12-30 16:42:50 -0700908
909typedef enum VkPipelineStageFlagBits {
910 VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT = 0x00000001,
911 VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT = 0x00000002,
912 VK_PIPELINE_STAGE_VERTEX_INPUT_BIT = 0x00000004,
913 VK_PIPELINE_STAGE_VERTEX_SHADER_BIT = 0x00000008,
914 VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT = 0x00000010,
915 VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT = 0x00000020,
916 VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT = 0x00000040,
917 VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT = 0x00000080,
918 VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT = 0x00000100,
919 VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT = 0x00000200,
920 VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT = 0x00000400,
921 VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT = 0x00000800,
922 VK_PIPELINE_STAGE_TRANSFER_BIT = 0x00001000,
Jon Ashburn8c0c1432015-12-31 12:32:16 -0700923 VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT = 0x00002000,
Jon Ashburn4bf8ba42015-12-31 12:14:37 -0700924 VK_PIPELINE_STAGE_HOST_BIT = 0x00004000,
925 VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT = 0x00008000,
926 VK_PIPELINE_STAGE_ALL_COMMANDS_BIT = 0x00010000,
Mark Lobodzinski2d589822016-12-12 09:44:34 -0700927 VK_PIPELINE_STAGE_COMMAND_PROCESS_BIT_NVX = 0x00020000,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600928 VK_PIPELINE_STAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Jon Ashburn7f9716c2015-12-30 16:42:50 -0700929} VkPipelineStageFlagBits;
930typedef VkFlags VkPipelineStageFlags;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600931typedef VkFlags VkMemoryMapFlags;
932
Chia-I Wu44c99b62015-10-27 19:55:29 +0800933typedef enum VkImageAspectFlagBits {
Courtney Goeltzenleuchter908e7672015-10-21 17:00:51 -0600934 VK_IMAGE_ASPECT_COLOR_BIT = 0x00000001,
935 VK_IMAGE_ASPECT_DEPTH_BIT = 0x00000002,
936 VK_IMAGE_ASPECT_STENCIL_BIT = 0x00000004,
937 VK_IMAGE_ASPECT_METADATA_BIT = 0x00000008,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600938 VK_IMAGE_ASPECT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchter908e7672015-10-21 17:00:51 -0600939} VkImageAspectFlagBits;
Chia-I Wu52b07e72015-10-27 19:55:05 +0800940typedef VkFlags VkImageAspectFlags;
Courtney Goeltzenleuchter908e7672015-10-21 17:00:51 -0600941
Chia-I Wu44c99b62015-10-27 19:55:29 +0800942typedef enum VkSparseImageFormatFlagBits {
Chia-I Wu2bfb33c2015-10-26 17:24:52 +0800943 VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT = 0x00000001,
944 VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT = 0x00000002,
945 VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT = 0x00000004,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600946 VK_SPARSE_IMAGE_FORMAT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600947} VkSparseImageFormatFlagBits;
948typedef VkFlags VkSparseImageFormatFlags;
Chia-I Wu91c16e52015-10-31 00:31:16 +0800949
Chia-I Wu77435192015-10-31 00:31:16 +0800950typedef enum VkSparseMemoryBindFlagBits {
Chia-I Wu91c16e52015-10-31 00:31:16 +0800951 VK_SPARSE_MEMORY_BIND_METADATA_BIT = 0x00000001,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600952 VK_SPARSE_MEMORY_BIND_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Chia-I Wu91c16e52015-10-31 00:31:16 +0800953} VkSparseMemoryBindFlagBits;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600954typedef VkFlags VkSparseMemoryBindFlags;
955
Chia-I Wu44c99b62015-10-27 19:55:29 +0800956typedef enum VkFenceCreateFlagBits {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600957 VK_FENCE_CREATE_SIGNALED_BIT = 0x00000001,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600958 VK_FENCE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600959} VkFenceCreateFlagBits;
960typedef VkFlags VkFenceCreateFlags;
961typedef VkFlags VkSemaphoreCreateFlags;
962typedef VkFlags VkEventCreateFlags;
Chia-I Wu439c0772015-10-26 17:00:46 +0800963typedef VkFlags VkQueryPoolCreateFlags;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600964
Chia-I Wu44c99b62015-10-27 19:55:29 +0800965typedef enum VkQueryPipelineStatisticFlagBits {
Courtney Goeltzenleuchterfe1b36e2015-10-15 16:57:32 -0600966 VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT = 0x00000001,
967 VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT = 0x00000002,
968 VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT = 0x00000004,
969 VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT = 0x00000008,
970 VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT = 0x00000010,
971 VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT = 0x00000020,
972 VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT = 0x00000040,
973 VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT = 0x00000080,
974 VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT = 0x00000100,
975 VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT = 0x00000200,
976 VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT = 0x00000400,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600977 VK_QUERY_PIPELINE_STATISTIC_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600978} VkQueryPipelineStatisticFlagBits;
979typedef VkFlags VkQueryPipelineStatisticFlags;
980
Chia-I Wu44c99b62015-10-27 19:55:29 +0800981typedef enum VkQueryResultFlagBits {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600982 VK_QUERY_RESULT_64_BIT = 0x00000001,
983 VK_QUERY_RESULT_WAIT_BIT = 0x00000002,
984 VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = 0x00000004,
985 VK_QUERY_RESULT_PARTIAL_BIT = 0x00000008,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600986 VK_QUERY_RESULT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -0600987} VkQueryResultFlagBits;
988typedef VkFlags VkQueryResultFlags;
989
Chia-I Wu44c99b62015-10-27 19:55:29 +0800990typedef enum VkBufferCreateFlagBits {
Chia-I Wu439c0772015-10-26 17:00:46 +0800991 VK_BUFFER_CREATE_SPARSE_BINDING_BIT = 0x00000001,
992 VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002,
993 VK_BUFFER_CREATE_SPARSE_ALIASED_BIT = 0x00000004,
Jon Ashburn45de99c2016-03-28 09:59:08 -0600994 VK_BUFFER_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Chia-I Wu439c0772015-10-26 17:00:46 +0800995} VkBufferCreateFlagBits;
996typedef VkFlags VkBufferCreateFlags;
997
Chia-I Wu44c99b62015-10-27 19:55:29 +0800998typedef enum VkBufferUsageFlagBits {
Chia-I Wu3432a0c2015-10-27 18:04:07 +0800999 VK_BUFFER_USAGE_TRANSFER_SRC_BIT = 0x00000001,
1000 VK_BUFFER_USAGE_TRANSFER_DST_BIT = 0x00000002,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001001 VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004,
1002 VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = 0x00000008,
1003 VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = 0x00000010,
1004 VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = 0x00000020,
1005 VK_BUFFER_USAGE_INDEX_BUFFER_BIT = 0x00000040,
1006 VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = 0x00000080,
1007 VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = 0x00000100,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001008 VK_BUFFER_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001009} VkBufferUsageFlagBits;
1010typedef VkFlags VkBufferUsageFlags;
Chia-I Wu439c0772015-10-26 17:00:46 +08001011typedef VkFlags VkBufferViewCreateFlags;
Courtney Goeltzenleuchter5861a1b2015-09-01 17:30:39 -06001012typedef VkFlags VkImageViewCreateFlags;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001013typedef VkFlags VkShaderModuleCreateFlags;
Chia-I Wu28e06912015-10-31 00:31:16 +08001014typedef VkFlags VkPipelineCacheCreateFlags;
1015
1016typedef enum VkPipelineCreateFlagBits {
1017 VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = 0x00000001,
1018 VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = 0x00000002,
1019 VK_PIPELINE_CREATE_DERIVATIVE_BIT = 0x00000004,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001020 VK_PIPELINE_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Chia-I Wu28e06912015-10-31 00:31:16 +08001021} VkPipelineCreateFlagBits;
1022typedef VkFlags VkPipelineCreateFlags;
1023typedef VkFlags VkPipelineShaderStageCreateFlags;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001024
Chia-I Wu44c99b62015-10-27 19:55:29 +08001025typedef enum VkShaderStageFlagBits {
Courtney Goeltzenleuchterd2635502015-10-21 17:08:06 -06001026 VK_SHADER_STAGE_VERTEX_BIT = 0x00000001,
1027 VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT = 0x00000002,
1028 VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT = 0x00000004,
1029 VK_SHADER_STAGE_GEOMETRY_BIT = 0x00000008,
1030 VK_SHADER_STAGE_FRAGMENT_BIT = 0x00000010,
1031 VK_SHADER_STAGE_COMPUTE_BIT = 0x00000020,
Jon Ashburn57b82b72016-03-07 13:01:35 -07001032 VK_SHADER_STAGE_ALL_GRAPHICS = 0x0000001F,
Courtney Goeltzenleuchterd2635502015-10-21 17:08:06 -06001033 VK_SHADER_STAGE_ALL = 0x7FFFFFFF,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001034 VK_SHADER_STAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchterd2635502015-10-21 17:08:06 -06001035} VkShaderStageFlagBits;
Chia-I Wu439c0772015-10-26 17:00:46 +08001036typedef VkFlags VkPipelineVertexInputStateCreateFlags;
1037typedef VkFlags VkPipelineInputAssemblyStateCreateFlags;
Jon Ashburnf19916e2016-01-11 13:12:43 -07001038typedef VkFlags VkPipelineTessellationStateCreateFlags;
Chia-I Wu439c0772015-10-26 17:00:46 +08001039typedef VkFlags VkPipelineViewportStateCreateFlags;
Chia-I Wubb7fad92015-10-27 17:53:18 +08001040typedef VkFlags VkPipelineRasterizationStateCreateFlags;
Chia-I Wu1efb7e52015-10-26 17:32:47 +08001041
Chia-I Wu44c99b62015-10-27 19:55:29 +08001042typedef enum VkCullModeFlagBits {
Chia-I Wu1efb7e52015-10-26 17:32:47 +08001043 VK_CULL_MODE_NONE = 0,
1044 VK_CULL_MODE_FRONT_BIT = 0x00000001,
1045 VK_CULL_MODE_BACK_BIT = 0x00000002,
Jon Ashburn57b82b72016-03-07 13:01:35 -07001046 VK_CULL_MODE_FRONT_AND_BACK = 0x00000003,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001047 VK_CULL_MODE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Chia-I Wu1efb7e52015-10-26 17:32:47 +08001048} VkCullModeFlagBits;
1049typedef VkFlags VkCullModeFlags;
Chia-I Wu439c0772015-10-26 17:00:46 +08001050typedef VkFlags VkPipelineMultisampleStateCreateFlags;
1051typedef VkFlags VkPipelineDepthStencilStateCreateFlags;
1052typedef VkFlags VkPipelineColorBlendStateCreateFlags;
Courtney Goeltzenleuchterd2635502015-10-21 17:08:06 -06001053
Chia-I Wu44c99b62015-10-27 19:55:29 +08001054typedef enum VkColorComponentFlagBits {
Chia-I Wu1b99bb22015-10-27 19:25:11 +08001055 VK_COLOR_COMPONENT_R_BIT = 0x00000001,
1056 VK_COLOR_COMPONENT_G_BIT = 0x00000002,
1057 VK_COLOR_COMPONENT_B_BIT = 0x00000004,
1058 VK_COLOR_COMPONENT_A_BIT = 0x00000008,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001059 VK_COLOR_COMPONENT_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Chia-I Wu1b99bb22015-10-27 19:25:11 +08001060} VkColorComponentFlagBits;
Chia-I Wuab83a0e2015-10-27 19:00:15 +08001061typedef VkFlags VkColorComponentFlags;
Chia-I Wu439c0772015-10-26 17:00:46 +08001062typedef VkFlags VkPipelineDynamicStateCreateFlags;
1063typedef VkFlags VkPipelineLayoutCreateFlags;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001064typedef VkFlags VkShaderStageFlags;
Chia-I Wu439c0772015-10-26 17:00:46 +08001065typedef VkFlags VkSamplerCreateFlags;
1066typedef VkFlags VkDescriptorSetLayoutCreateFlags;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001067
Chia-I Wu44c99b62015-10-27 19:55:29 +08001068typedef enum VkDescriptorPoolCreateFlagBits {
Courtney Goeltzenleuchterbee18a92015-10-23 14:21:05 -06001069 VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT = 0x00000001,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001070 VK_DESCRIPTOR_POOL_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchterbee18a92015-10-23 14:21:05 -06001071} VkDescriptorPoolCreateFlagBits;
1072typedef VkFlags VkDescriptorPoolCreateFlags;
1073typedef VkFlags VkDescriptorPoolResetFlags;
Chia-I Wu439c0772015-10-26 17:00:46 +08001074typedef VkFlags VkFramebufferCreateFlags;
1075typedef VkFlags VkRenderPassCreateFlags;
Courtney Goeltzenleuchterbee18a92015-10-23 14:21:05 -06001076
Chia-I Wu44c99b62015-10-27 19:55:29 +08001077typedef enum VkAttachmentDescriptionFlagBits {
Courtney Goeltzenleuchter304e6562015-09-16 16:38:23 -06001078 VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT = 0x00000001,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001079 VK_ATTACHMENT_DESCRIPTION_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchter304e6562015-09-16 16:38:23 -06001080} VkAttachmentDescriptionFlagBits;
1081typedef VkFlags VkAttachmentDescriptionFlags;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001082typedef VkFlags VkSubpassDescriptionFlags;
1083
Chia-I Wu44c99b62015-10-27 19:55:29 +08001084typedef enum VkAccessFlagBits {
Chia-I Wua4594202015-10-27 19:54:37 +08001085 VK_ACCESS_INDIRECT_COMMAND_READ_BIT = 0x00000001,
1086 VK_ACCESS_INDEX_READ_BIT = 0x00000002,
1087 VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT = 0x00000004,
1088 VK_ACCESS_UNIFORM_READ_BIT = 0x00000008,
1089 VK_ACCESS_INPUT_ATTACHMENT_READ_BIT = 0x00000010,
1090 VK_ACCESS_SHADER_READ_BIT = 0x00000020,
1091 VK_ACCESS_SHADER_WRITE_BIT = 0x00000040,
1092 VK_ACCESS_COLOR_ATTACHMENT_READ_BIT = 0x00000080,
1093 VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT = 0x00000100,
1094 VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT = 0x00000200,
1095 VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT = 0x00000400,
1096 VK_ACCESS_TRANSFER_READ_BIT = 0x00000800,
1097 VK_ACCESS_TRANSFER_WRITE_BIT = 0x00001000,
1098 VK_ACCESS_HOST_READ_BIT = 0x00002000,
1099 VK_ACCESS_HOST_WRITE_BIT = 0x00004000,
1100 VK_ACCESS_MEMORY_READ_BIT = 0x00008000,
1101 VK_ACCESS_MEMORY_WRITE_BIT = 0x00010000,
Mark Lobodzinski2d589822016-12-12 09:44:34 -07001102 VK_ACCESS_COMMAND_PROCESS_READ_BIT_NVX = 0x00020000,
1103 VK_ACCESS_COMMAND_PROCESS_WRITE_BIT_NVX = 0x00040000,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001104 VK_ACCESS_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Chia-I Wua4594202015-10-27 19:54:37 +08001105} VkAccessFlagBits;
1106typedef VkFlags VkAccessFlags;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001107
Chia-I Wu44c99b62015-10-27 19:55:29 +08001108typedef enum VkDependencyFlagBits {
Chia-I Wu53534662015-10-26 17:08:33 +08001109 VK_DEPENDENCY_BY_REGION_BIT = 0x00000001,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001110 VK_DEPENDENCY_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Chia-I Wu53534662015-10-26 17:08:33 +08001111} VkDependencyFlagBits;
1112typedef VkFlags VkDependencyFlags;
1113
Chia-I Wu44c99b62015-10-27 19:55:29 +08001114typedef enum VkCommandPoolCreateFlagBits {
Chia-I Wu3432a0c2015-10-27 18:04:07 +08001115 VK_COMMAND_POOL_CREATE_TRANSIENT_BIT = 0x00000001,
1116 VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = 0x00000002,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001117 VK_COMMAND_POOL_CREATE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Chia-I Wu3432a0c2015-10-27 18:04:07 +08001118} VkCommandPoolCreateFlagBits;
1119typedef VkFlags VkCommandPoolCreateFlags;
Cody Northrope62183e2015-07-09 18:08:05 -06001120
Chia-I Wu44c99b62015-10-27 19:55:29 +08001121typedef enum VkCommandPoolResetFlagBits {
Chia-I Wu3432a0c2015-10-27 18:04:07 +08001122 VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT = 0x00000001,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001123 VK_COMMAND_POOL_RESET_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Chia-I Wu3432a0c2015-10-27 18:04:07 +08001124} VkCommandPoolResetFlagBits;
1125typedef VkFlags VkCommandPoolResetFlags;
Tony Barbourd1c35722015-04-16 15:59:00 -06001126
Chia-I Wu44c99b62015-10-27 19:55:29 +08001127typedef enum VkCommandBufferUsageFlagBits {
Chia-I Wu3432a0c2015-10-27 18:04:07 +08001128 VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = 0x00000001,
1129 VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = 0x00000002,
1130 VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = 0x00000004,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001131 VK_COMMAND_BUFFER_USAGE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Chia-I Wu3432a0c2015-10-27 18:04:07 +08001132} VkCommandBufferUsageFlagBits;
1133typedef VkFlags VkCommandBufferUsageFlags;
Tony Barbourd1c35722015-04-16 15:59:00 -06001134
Chia-I Wub8d47ae2015-11-11 10:18:12 +08001135typedef enum VkQueryControlFlagBits {
1136 VK_QUERY_CONTROL_PRECISE_BIT = 0x00000001,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001137 VK_QUERY_CONTROL_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Chia-I Wub8d47ae2015-11-11 10:18:12 +08001138} VkQueryControlFlagBits;
1139typedef VkFlags VkQueryControlFlags;
1140
Chia-I Wu44c99b62015-10-27 19:55:29 +08001141typedef enum VkCommandBufferResetFlagBits {
Chia-I Wu3432a0c2015-10-27 18:04:07 +08001142 VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT = 0x00000001,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001143 VK_COMMAND_BUFFER_RESET_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Chia-I Wu3432a0c2015-10-27 18:04:07 +08001144} VkCommandBufferResetFlagBits;
1145typedef VkFlags VkCommandBufferResetFlags;
Cody Northrope62183e2015-07-09 18:08:05 -06001146
Chia-I Wu44c99b62015-10-27 19:55:29 +08001147typedef enum VkStencilFaceFlagBits {
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06001148 VK_STENCIL_FACE_FRONT_BIT = 0x00000001,
1149 VK_STENCIL_FACE_BACK_BIT = 0x00000002,
Jon Ashburn57b82b72016-03-07 13:01:35 -07001150 VK_STENCIL_FRONT_AND_BACK = 0x00000003,
Jon Ashburn45de99c2016-03-28 09:59:08 -06001151 VK_STENCIL_FACE_FLAG_BITS_MAX_ENUM = 0x7FFFFFFF
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06001152} VkStencilFaceFlagBits;
1153typedef VkFlags VkStencilFaceFlags;
1154
Chia-I Wu9ab61502015-11-06 06:42:02 +08001155typedef void* (VKAPI_PTR *PFN_vkAllocationFunction)(
Chia-I Wucf804e82015-10-31 00:31:16 +08001156 void* pUserData,
1157 size_t size,
1158 size_t alignment,
1159 VkSystemAllocationScope allocationScope);
Chia-I Wuf7458c52015-10-26 21:10:41 +08001160
Chia-I Wu9ab61502015-11-06 06:42:02 +08001161typedef void* (VKAPI_PTR *PFN_vkReallocationFunction)(
Chia-I Wucf804e82015-10-31 00:31:16 +08001162 void* pUserData,
1163 void* pOriginal,
1164 size_t size,
1165 size_t alignment,
1166 VkSystemAllocationScope allocationScope);
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001167
Chia-I Wu9ab61502015-11-06 06:42:02 +08001168typedef void (VKAPI_PTR *PFN_vkFreeFunction)(
Chia-I Wucf804e82015-10-31 00:31:16 +08001169 void* pUserData,
1170 void* pMemory);
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001171
Chia-I Wu9ab61502015-11-06 06:42:02 +08001172typedef void (VKAPI_PTR *PFN_vkInternalAllocationNotification)(
Chia-I Wucf804e82015-10-31 00:31:16 +08001173 void* pUserData,
1174 size_t size,
1175 VkInternalAllocationType allocationType,
1176 VkSystemAllocationScope allocationScope);
Chia-I Wuf7458c52015-10-26 21:10:41 +08001177
Chia-I Wu9ab61502015-11-06 06:42:02 +08001178typedef void (VKAPI_PTR *PFN_vkInternalFreeNotification)(
Chia-I Wucf804e82015-10-31 00:31:16 +08001179 void* pUserData,
1180 size_t size,
1181 VkInternalAllocationType allocationType,
1182 VkSystemAllocationScope allocationScope);
Chia-I Wuf7458c52015-10-26 21:10:41 +08001183
Chia-I Wu9ab61502015-11-06 06:42:02 +08001184typedef void (VKAPI_PTR *PFN_vkVoidFunction)(void);
Cody Northrop22b7fae2015-08-11 11:21:48 -06001185
Chia-I Wu44c99b62015-10-27 19:55:29 +08001186typedef struct VkApplicationInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001187 VkStructureType sType;
1188 const void* pNext;
1189 const char* pApplicationName;
1190 uint32_t applicationVersion;
1191 const char* pEngineName;
1192 uint32_t engineVersion;
1193 uint32_t apiVersion;
Cody Northrop22b7fae2015-08-11 11:21:48 -06001194} VkApplicationInfo;
1195
Chia-I Wu44c99b62015-10-27 19:55:29 +08001196typedef struct VkInstanceCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001197 VkStructureType sType;
1198 const void* pNext;
1199 VkInstanceCreateFlags flags;
1200 const VkApplicationInfo* pApplicationInfo;
1201 uint32_t enabledLayerCount;
1202 const char* const* ppEnabledLayerNames;
1203 uint32_t enabledExtensionCount;
1204 const char* const* ppEnabledExtensionNames;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001205} VkInstanceCreateInfo;
1206
Chia-I Wu44c99b62015-10-27 19:55:29 +08001207typedef struct VkAllocationCallbacks {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001208 void* pUserData;
1209 PFN_vkAllocationFunction pfnAllocation;
1210 PFN_vkReallocationFunction pfnReallocation;
1211 PFN_vkFreeFunction pfnFree;
1212 PFN_vkInternalAllocationNotification pfnInternalAllocation;
1213 PFN_vkInternalFreeNotification pfnInternalFree;
Chia-I Wu3432a0c2015-10-27 18:04:07 +08001214} VkAllocationCallbacks;
Chia-I Wuf7458c52015-10-26 21:10:41 +08001215
Chia-I Wu44c99b62015-10-27 19:55:29 +08001216typedef struct VkPhysicalDeviceFeatures {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001217 VkBool32 robustBufferAccess;
1218 VkBool32 fullDrawIndexUint32;
1219 VkBool32 imageCubeArray;
1220 VkBool32 independentBlend;
1221 VkBool32 geometryShader;
1222 VkBool32 tessellationShader;
1223 VkBool32 sampleRateShading;
1224 VkBool32 dualSrcBlend;
1225 VkBool32 logicOp;
1226 VkBool32 multiDrawIndirect;
1227 VkBool32 drawIndirectFirstInstance;
1228 VkBool32 depthClamp;
1229 VkBool32 depthBiasClamp;
1230 VkBool32 fillModeNonSolid;
1231 VkBool32 depthBounds;
1232 VkBool32 wideLines;
1233 VkBool32 largePoints;
1234 VkBool32 alphaToOne;
1235 VkBool32 multiViewport;
1236 VkBool32 samplerAnisotropy;
1237 VkBool32 textureCompressionETC2;
1238 VkBool32 textureCompressionASTC_LDR;
1239 VkBool32 textureCompressionBC;
1240 VkBool32 occlusionQueryPrecise;
1241 VkBool32 pipelineStatisticsQuery;
1242 VkBool32 vertexPipelineStoresAndAtomics;
1243 VkBool32 fragmentStoresAndAtomics;
1244 VkBool32 shaderTessellationAndGeometryPointSize;
1245 VkBool32 shaderImageGatherExtended;
1246 VkBool32 shaderStorageImageExtendedFormats;
1247 VkBool32 shaderStorageImageMultisample;
1248 VkBool32 shaderStorageImageReadWithoutFormat;
1249 VkBool32 shaderStorageImageWriteWithoutFormat;
1250 VkBool32 shaderUniformBufferArrayDynamicIndexing;
1251 VkBool32 shaderSampledImageArrayDynamicIndexing;
1252 VkBool32 shaderStorageBufferArrayDynamicIndexing;
1253 VkBool32 shaderStorageImageArrayDynamicIndexing;
1254 VkBool32 shaderClipDistance;
1255 VkBool32 shaderCullDistance;
1256 VkBool32 shaderFloat64;
1257 VkBool32 shaderInt64;
1258 VkBool32 shaderInt16;
1259 VkBool32 shaderResourceResidency;
1260 VkBool32 shaderResourceMinLod;
1261 VkBool32 sparseBinding;
1262 VkBool32 sparseResidencyBuffer;
1263 VkBool32 sparseResidencyImage2D;
1264 VkBool32 sparseResidencyImage3D;
1265 VkBool32 sparseResidency2Samples;
1266 VkBool32 sparseResidency4Samples;
1267 VkBool32 sparseResidency8Samples;
1268 VkBool32 sparseResidency16Samples;
1269 VkBool32 sparseResidencyAliased;
1270 VkBool32 variableMultisampleRate;
1271 VkBool32 inheritedQueries;
Chris Forbesbc0bb772015-06-21 22:55:02 +12001272} VkPhysicalDeviceFeatures;
1273
Chia-I Wu44c99b62015-10-27 19:55:29 +08001274typedef struct VkFormatProperties {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001275 VkFormatFeatureFlags linearTilingFeatures;
1276 VkFormatFeatureFlags optimalTilingFeatures;
1277 VkFormatFeatureFlags bufferFeatures;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001278} VkFormatProperties;
1279
Chia-I Wu44c99b62015-10-27 19:55:29 +08001280typedef struct VkExtent3D {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001281 uint32_t width;
1282 uint32_t height;
1283 uint32_t depth;
Courtney Goeltzenleuchter4da28862015-09-10 13:28:52 -06001284} VkExtent3D;
1285
Chia-I Wu44c99b62015-10-27 19:55:29 +08001286typedef struct VkImageFormatProperties {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001287 VkExtent3D maxExtent;
1288 uint32_t maxMipLevels;
1289 uint32_t maxArrayLayers;
1290 VkSampleCountFlags sampleCounts;
1291 VkDeviceSize maxResourceSize;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001292} VkImageFormatProperties;
1293
Chia-I Wu44c99b62015-10-27 19:55:29 +08001294typedef struct VkPhysicalDeviceLimits {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001295 uint32_t maxImageDimension1D;
1296 uint32_t maxImageDimension2D;
1297 uint32_t maxImageDimension3D;
1298 uint32_t maxImageDimensionCube;
1299 uint32_t maxImageArrayLayers;
1300 uint32_t maxTexelBufferElements;
1301 uint32_t maxUniformBufferRange;
1302 uint32_t maxStorageBufferRange;
1303 uint32_t maxPushConstantsSize;
1304 uint32_t maxMemoryAllocationCount;
1305 uint32_t maxSamplerAllocationCount;
1306 VkDeviceSize bufferImageGranularity;
1307 VkDeviceSize sparseAddressSpaceSize;
1308 uint32_t maxBoundDescriptorSets;
1309 uint32_t maxPerStageDescriptorSamplers;
1310 uint32_t maxPerStageDescriptorUniformBuffers;
1311 uint32_t maxPerStageDescriptorStorageBuffers;
1312 uint32_t maxPerStageDescriptorSampledImages;
1313 uint32_t maxPerStageDescriptorStorageImages;
1314 uint32_t maxPerStageDescriptorInputAttachments;
1315 uint32_t maxPerStageResources;
1316 uint32_t maxDescriptorSetSamplers;
1317 uint32_t maxDescriptorSetUniformBuffers;
1318 uint32_t maxDescriptorSetUniformBuffersDynamic;
1319 uint32_t maxDescriptorSetStorageBuffers;
1320 uint32_t maxDescriptorSetStorageBuffersDynamic;
1321 uint32_t maxDescriptorSetSampledImages;
1322 uint32_t maxDescriptorSetStorageImages;
1323 uint32_t maxDescriptorSetInputAttachments;
1324 uint32_t maxVertexInputAttributes;
1325 uint32_t maxVertexInputBindings;
1326 uint32_t maxVertexInputAttributeOffset;
1327 uint32_t maxVertexInputBindingStride;
1328 uint32_t maxVertexOutputComponents;
1329 uint32_t maxTessellationGenerationLevel;
1330 uint32_t maxTessellationPatchSize;
1331 uint32_t maxTessellationControlPerVertexInputComponents;
1332 uint32_t maxTessellationControlPerVertexOutputComponents;
1333 uint32_t maxTessellationControlPerPatchOutputComponents;
1334 uint32_t maxTessellationControlTotalOutputComponents;
1335 uint32_t maxTessellationEvaluationInputComponents;
1336 uint32_t maxTessellationEvaluationOutputComponents;
1337 uint32_t maxGeometryShaderInvocations;
1338 uint32_t maxGeometryInputComponents;
1339 uint32_t maxGeometryOutputComponents;
1340 uint32_t maxGeometryOutputVertices;
1341 uint32_t maxGeometryTotalOutputComponents;
1342 uint32_t maxFragmentInputComponents;
1343 uint32_t maxFragmentOutputAttachments;
1344 uint32_t maxFragmentDualSrcAttachments;
1345 uint32_t maxFragmentCombinedOutputResources;
1346 uint32_t maxComputeSharedMemorySize;
1347 uint32_t maxComputeWorkGroupCount[3];
1348 uint32_t maxComputeWorkGroupInvocations;
1349 uint32_t maxComputeWorkGroupSize[3];
1350 uint32_t subPixelPrecisionBits;
1351 uint32_t subTexelPrecisionBits;
1352 uint32_t mipmapPrecisionBits;
1353 uint32_t maxDrawIndexedIndexValue;
1354 uint32_t maxDrawIndirectCount;
1355 float maxSamplerLodBias;
1356 float maxSamplerAnisotropy;
1357 uint32_t maxViewports;
1358 uint32_t maxViewportDimensions[2];
1359 float viewportBoundsRange[2];
1360 uint32_t viewportSubPixelBits;
1361 size_t minMemoryMapAlignment;
1362 VkDeviceSize minTexelBufferOffsetAlignment;
1363 VkDeviceSize minUniformBufferOffsetAlignment;
1364 VkDeviceSize minStorageBufferOffsetAlignment;
1365 int32_t minTexelOffset;
1366 uint32_t maxTexelOffset;
1367 int32_t minTexelGatherOffset;
1368 uint32_t maxTexelGatherOffset;
1369 float minInterpolationOffset;
1370 float maxInterpolationOffset;
1371 uint32_t subPixelInterpolationOffsetBits;
1372 uint32_t maxFramebufferWidth;
1373 uint32_t maxFramebufferHeight;
1374 uint32_t maxFramebufferLayers;
1375 VkSampleCountFlags framebufferColorSampleCounts;
1376 VkSampleCountFlags framebufferDepthSampleCounts;
1377 VkSampleCountFlags framebufferStencilSampleCounts;
1378 VkSampleCountFlags framebufferNoAttachmentsSampleCounts;
1379 uint32_t maxColorAttachments;
1380 VkSampleCountFlags sampledImageColorSampleCounts;
1381 VkSampleCountFlags sampledImageIntegerSampleCounts;
1382 VkSampleCountFlags sampledImageDepthSampleCounts;
1383 VkSampleCountFlags sampledImageStencilSampleCounts;
1384 VkSampleCountFlags storageImageSampleCounts;
1385 uint32_t maxSampleMaskWords;
1386 VkBool32 timestampComputeAndGraphics;
1387 float timestampPeriod;
1388 uint32_t maxClipDistances;
1389 uint32_t maxCullDistances;
1390 uint32_t maxCombinedClipAndCullDistances;
1391 uint32_t discreteQueuePriorities;
1392 float pointSizeRange[2];
1393 float lineWidthRange[2];
1394 float pointSizeGranularity;
1395 float lineWidthGranularity;
1396 VkBool32 strictLines;
1397 VkBool32 standardSampleLocations;
1398 VkDeviceSize optimalBufferCopyOffsetAlignment;
1399 VkDeviceSize optimalBufferCopyRowPitchAlignment;
1400 VkDeviceSize nonCoherentAtomSize;
Chris Forbesbc0bb772015-06-21 22:55:02 +12001401} VkPhysicalDeviceLimits;
1402
Chia-I Wu44c99b62015-10-27 19:55:29 +08001403typedef struct VkPhysicalDeviceSparseProperties {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001404 VkBool32 residencyStandard2DBlockShape;
1405 VkBool32 residencyStandard2DMultisampleBlockShape;
1406 VkBool32 residencyStandard3DBlockShape;
1407 VkBool32 residencyAlignedMipSize;
1408 VkBool32 residencyNonResidentStrict;
Mark Lobodzinskida72a0d2015-09-07 12:56:17 -06001409} VkPhysicalDeviceSparseProperties;
1410
Chia-I Wu44c99b62015-10-27 19:55:29 +08001411typedef struct VkPhysicalDeviceProperties {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001412 uint32_t apiVersion;
1413 uint32_t driverVersion;
1414 uint32_t vendorID;
1415 uint32_t deviceID;
1416 VkPhysicalDeviceType deviceType;
1417 char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE];
1418 uint8_t pipelineCacheUUID[VK_UUID_SIZE];
1419 VkPhysicalDeviceLimits limits;
1420 VkPhysicalDeviceSparseProperties sparseProperties;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001421} VkPhysicalDeviceProperties;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001422
Chia-I Wu44c99b62015-10-27 19:55:29 +08001423typedef struct VkQueueFamilyProperties {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001424 VkQueueFlags queueFlags;
1425 uint32_t queueCount;
1426 uint32_t timestampValidBits;
1427 VkExtent3D minImageTransferGranularity;
Cody Northropd0802882015-08-03 17:04:53 -06001428} VkQueueFamilyProperties;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001429
Chia-I Wu44c99b62015-10-27 19:55:29 +08001430typedef struct VkMemoryType {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001431 VkMemoryPropertyFlags propertyFlags;
1432 uint32_t heapIndex;
Mark Lobodzinskib3fbcd92015-07-02 16:49:40 -06001433} VkMemoryType;
1434
Chia-I Wu44c99b62015-10-27 19:55:29 +08001435typedef struct VkMemoryHeap {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001436 VkDeviceSize size;
1437 VkMemoryHeapFlags flags;
Mark Lobodzinskib3fbcd92015-07-02 16:49:40 -06001438} VkMemoryHeap;
1439
Chia-I Wu44c99b62015-10-27 19:55:29 +08001440typedef struct VkPhysicalDeviceMemoryProperties {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001441 uint32_t memoryTypeCount;
1442 VkMemoryType memoryTypes[VK_MAX_MEMORY_TYPES];
1443 uint32_t memoryHeapCount;
1444 VkMemoryHeap memoryHeaps[VK_MAX_MEMORY_HEAPS];
Tony Barbourd1c35722015-04-16 15:59:00 -06001445} VkPhysicalDeviceMemoryProperties;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001446
Chia-I Wu44c99b62015-10-27 19:55:29 +08001447typedef struct VkDeviceQueueCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001448 VkStructureType sType;
1449 const void* pNext;
1450 VkDeviceQueueCreateFlags flags;
1451 uint32_t queueFamilyIndex;
1452 uint32_t queueCount;
1453 const float* pQueuePriorities;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001454} VkDeviceQueueCreateInfo;
1455
Chia-I Wu44c99b62015-10-27 19:55:29 +08001456typedef struct VkDeviceCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001457 VkStructureType sType;
1458 const void* pNext;
1459 VkDeviceCreateFlags flags;
1460 uint32_t queueCreateInfoCount;
1461 const VkDeviceQueueCreateInfo* pQueueCreateInfos;
1462 uint32_t enabledLayerCount;
1463 const char* const* ppEnabledLayerNames;
1464 uint32_t enabledExtensionCount;
1465 const char* const* ppEnabledExtensionNames;
1466 const VkPhysicalDeviceFeatures* pEnabledFeatures;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001467} VkDeviceCreateInfo;
1468
Chia-I Wu44c99b62015-10-27 19:55:29 +08001469typedef struct VkExtensionProperties {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001470 char extensionName[VK_MAX_EXTENSION_NAME_SIZE];
1471 uint32_t specVersion;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001472} VkExtensionProperties;
1473
Chia-I Wu44c99b62015-10-27 19:55:29 +08001474typedef struct VkLayerProperties {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001475 char layerName[VK_MAX_EXTENSION_NAME_SIZE];
1476 uint32_t specVersion;
1477 uint32_t implementationVersion;
1478 char description[VK_MAX_DESCRIPTION_SIZE];
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001479} VkLayerProperties;
1480
Chia-I Wu44c99b62015-10-27 19:55:29 +08001481typedef struct VkSubmitInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001482 VkStructureType sType;
1483 const void* pNext;
1484 uint32_t waitSemaphoreCount;
1485 const VkSemaphore* pWaitSemaphores;
1486 const VkPipelineStageFlags* pWaitDstStageMask;
1487 uint32_t commandBufferCount;
1488 const VkCommandBuffer* pCommandBuffers;
1489 uint32_t signalSemaphoreCount;
1490 const VkSemaphore* pSignalSemaphores;
Courtney Goeltzenleuchter646b9072015-10-20 18:04:07 -06001491} VkSubmitInfo;
1492
Chia-I Wu44c99b62015-10-27 19:55:29 +08001493typedef struct VkMemoryAllocateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001494 VkStructureType sType;
1495 const void* pNext;
1496 VkDeviceSize allocationSize;
1497 uint32_t memoryTypeIndex;
Chia-I Wu3432a0c2015-10-27 18:04:07 +08001498} VkMemoryAllocateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001499
Chia-I Wu44c99b62015-10-27 19:55:29 +08001500typedef struct VkMappedMemoryRange {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001501 VkStructureType sType;
1502 const void* pNext;
1503 VkDeviceMemory memory;
1504 VkDeviceSize offset;
1505 VkDeviceSize size;
Courtney Goeltzenleuchterf69f8a22015-04-29 17:16:21 -06001506} VkMappedMemoryRange;
1507
Chia-I Wu44c99b62015-10-27 19:55:29 +08001508typedef struct VkMemoryRequirements {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001509 VkDeviceSize size;
1510 VkDeviceSize alignment;
1511 uint32_t memoryTypeBits;
Mark Lobodzinskib3fbcd92015-07-02 16:49:40 -06001512} VkMemoryRequirements;
1513
Chia-I Wu44c99b62015-10-27 19:55:29 +08001514typedef struct VkSparseImageFormatProperties {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001515 VkImageAspectFlags aspectMask;
1516 VkExtent3D imageGranularity;
1517 VkSparseImageFormatFlags flags;
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -06001518} VkSparseImageFormatProperties;
1519
Chia-I Wu44c99b62015-10-27 19:55:29 +08001520typedef struct VkSparseImageMemoryRequirements {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001521 VkSparseImageFormatProperties formatProperties;
1522 uint32_t imageMipTailFirstLod;
1523 VkDeviceSize imageMipTailSize;
1524 VkDeviceSize imageMipTailOffset;
1525 VkDeviceSize imageMipTailStride;
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -06001526} VkSparseImageMemoryRequirements;
1527
Chia-I Wu44c99b62015-10-27 19:55:29 +08001528typedef struct VkSparseMemoryBind {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001529 VkDeviceSize resourceOffset;
1530 VkDeviceSize size;
1531 VkDeviceMemory memory;
1532 VkDeviceSize memoryOffset;
1533 VkSparseMemoryBindFlags flags;
Chia-I Wu1ff4c3d2015-10-26 16:55:27 +08001534} VkSparseMemoryBind;
1535
Chia-I Wu44c99b62015-10-27 19:55:29 +08001536typedef struct VkSparseBufferMemoryBindInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001537 VkBuffer buffer;
1538 uint32_t bindCount;
1539 const VkSparseMemoryBind* pBinds;
Chia-I Wu1ff4c3d2015-10-26 16:55:27 +08001540} VkSparseBufferMemoryBindInfo;
1541
Chia-I Wu44c99b62015-10-27 19:55:29 +08001542typedef struct VkSparseImageOpaqueMemoryBindInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001543 VkImage image;
1544 uint32_t bindCount;
1545 const VkSparseMemoryBind* pBinds;
Chia-I Wu1ff4c3d2015-10-26 16:55:27 +08001546} VkSparseImageOpaqueMemoryBindInfo;
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -06001547
Chia-I Wu44c99b62015-10-27 19:55:29 +08001548typedef struct VkImageSubresource {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001549 VkImageAspectFlags aspectMask;
1550 uint32_t mipLevel;
1551 uint32_t arrayLayer;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001552} VkImageSubresource;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001553
Chia-I Wu44c99b62015-10-27 19:55:29 +08001554typedef struct VkOffset3D {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001555 int32_t x;
1556 int32_t y;
1557 int32_t z;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001558} VkOffset3D;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001559
Chia-I Wu44c99b62015-10-27 19:55:29 +08001560typedef struct VkSparseImageMemoryBind {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001561 VkImageSubresource subresource;
1562 VkOffset3D offset;
1563 VkExtent3D extent;
1564 VkDeviceMemory memory;
1565 VkDeviceSize memoryOffset;
1566 VkSparseMemoryBindFlags flags;
Chia-I Wu1ff4c3d2015-10-26 16:55:27 +08001567} VkSparseImageMemoryBind;
1568
Chia-I Wu44c99b62015-10-27 19:55:29 +08001569typedef struct VkSparseImageMemoryBindInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001570 VkImage image;
1571 uint32_t bindCount;
1572 const VkSparseImageMemoryBind* pBinds;
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -06001573} VkSparseImageMemoryBindInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001574
Chia-I Wu44c99b62015-10-27 19:55:29 +08001575typedef struct VkBindSparseInfo {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001576 VkStructureType sType;
1577 const void* pNext;
Chia-I Wu1ff4c3d2015-10-26 16:55:27 +08001578 uint32_t waitSemaphoreCount;
1579 const VkSemaphore* pWaitSemaphores;
1580 uint32_t bufferBindCount;
1581 const VkSparseBufferMemoryBindInfo* pBufferBinds;
1582 uint32_t imageOpaqueBindCount;
1583 const VkSparseImageOpaqueMemoryBindInfo* pImageOpaqueBinds;
1584 uint32_t imageBindCount;
1585 const VkSparseImageMemoryBindInfo* pImageBinds;
1586 uint32_t signalSemaphoreCount;
1587 const VkSemaphore* pSignalSemaphores;
1588} VkBindSparseInfo;
1589
Chia-I Wu44c99b62015-10-27 19:55:29 +08001590typedef struct VkFenceCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001591 VkStructureType sType;
1592 const void* pNext;
1593 VkFenceCreateFlags flags;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001594} VkFenceCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001595
Chia-I Wu44c99b62015-10-27 19:55:29 +08001596typedef struct VkSemaphoreCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001597 VkStructureType sType;
1598 const void* pNext;
1599 VkSemaphoreCreateFlags flags;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001600} VkSemaphoreCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001601
Chia-I Wu44c99b62015-10-27 19:55:29 +08001602typedef struct VkEventCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001603 VkStructureType sType;
1604 const void* pNext;
1605 VkEventCreateFlags flags;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001606} VkEventCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001607
Chia-I Wu44c99b62015-10-27 19:55:29 +08001608typedef struct VkQueryPoolCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001609 VkStructureType sType;
1610 const void* pNext;
1611 VkQueryPoolCreateFlags flags;
1612 VkQueryType queryType;
1613 uint32_t queryCount;
1614 VkQueryPipelineStatisticFlags pipelineStatistics;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001615} VkQueryPoolCreateInfo;
1616
Chia-I Wu44c99b62015-10-27 19:55:29 +08001617typedef struct VkBufferCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001618 VkStructureType sType;
1619 const void* pNext;
1620 VkBufferCreateFlags flags;
1621 VkDeviceSize size;
1622 VkBufferUsageFlags usage;
1623 VkSharingMode sharingMode;
1624 uint32_t queueFamilyIndexCount;
1625 const uint32_t* pQueueFamilyIndices;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001626} VkBufferCreateInfo;
1627
Chia-I Wu44c99b62015-10-27 19:55:29 +08001628typedef struct VkBufferViewCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001629 VkStructureType sType;
1630 const void* pNext;
1631 VkBufferViewCreateFlags flags;
1632 VkBuffer buffer;
1633 VkFormat format;
1634 VkDeviceSize offset;
1635 VkDeviceSize range;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001636} VkBufferViewCreateInfo;
1637
Chia-I Wu44c99b62015-10-27 19:55:29 +08001638typedef struct VkImageCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001639 VkStructureType sType;
1640 const void* pNext;
1641 VkImageCreateFlags flags;
1642 VkImageType imageType;
1643 VkFormat format;
1644 VkExtent3D extent;
1645 uint32_t mipLevels;
1646 uint32_t arrayLayers;
1647 VkSampleCountFlagBits samples;
1648 VkImageTiling tiling;
1649 VkImageUsageFlags usage;
1650 VkSharingMode sharingMode;
1651 uint32_t queueFamilyIndexCount;
1652 const uint32_t* pQueueFamilyIndices;
1653 VkImageLayout initialLayout;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001654} VkImageCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001655
Chia-I Wu44c99b62015-10-27 19:55:29 +08001656typedef struct VkSubresourceLayout {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001657 VkDeviceSize offset;
1658 VkDeviceSize size;
1659 VkDeviceSize rowPitch;
1660 VkDeviceSize arrayPitch;
1661 VkDeviceSize depthPitch;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001662} VkSubresourceLayout;
1663
Chia-I Wu44c99b62015-10-27 19:55:29 +08001664typedef struct VkComponentMapping {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001665 VkComponentSwizzle r;
1666 VkComponentSwizzle g;
1667 VkComponentSwizzle b;
1668 VkComponentSwizzle a;
Chia-I Wu1b99bb22015-10-27 19:25:11 +08001669} VkComponentMapping;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001670
Chia-I Wu44c99b62015-10-27 19:55:29 +08001671typedef struct VkImageSubresourceRange {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001672 VkImageAspectFlags aspectMask;
1673 uint32_t baseMipLevel;
1674 uint32_t levelCount;
1675 uint32_t baseArrayLayer;
1676 uint32_t layerCount;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001677} VkImageSubresourceRange;
1678
Chia-I Wu44c99b62015-10-27 19:55:29 +08001679typedef struct VkImageViewCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001680 VkStructureType sType;
1681 const void* pNext;
1682 VkImageViewCreateFlags flags;
1683 VkImage image;
1684 VkImageViewType viewType;
1685 VkFormat format;
1686 VkComponentMapping components;
1687 VkImageSubresourceRange subresourceRange;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001688} VkImageViewCreateInfo;
1689
Chia-I Wu44c99b62015-10-27 19:55:29 +08001690typedef struct VkShaderModuleCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001691 VkStructureType sType;
1692 const void* pNext;
1693 VkShaderModuleCreateFlags flags;
1694 size_t codeSize;
1695 const uint32_t* pCode;
Courtney Goeltzenleuchtera607df12015-06-18 21:49:59 -06001696} VkShaderModuleCreateInfo;
1697
Chia-I Wu44c99b62015-10-27 19:55:29 +08001698typedef struct VkPipelineCacheCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001699 VkStructureType sType;
1700 const void* pNext;
1701 VkPipelineCacheCreateFlags flags;
1702 size_t initialDataSize;
1703 const void* pInitialData;
Jon Ashburnc669cc62015-07-09 15:02:25 -06001704} VkPipelineCacheCreateInfo;
1705
Chia-I Wu44c99b62015-10-27 19:55:29 +08001706typedef struct VkSpecializationMapEntry {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001707 uint32_t constantID;
1708 uint32_t offset;
1709 size_t size;
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001710} VkSpecializationMapEntry;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001711
Chia-I Wu44c99b62015-10-27 19:55:29 +08001712typedef struct VkSpecializationInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001713 uint32_t mapEntryCount;
1714 const VkSpecializationMapEntry* pMapEntries;
1715 size_t dataSize;
1716 const void* pData;
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001717} VkSpecializationInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001718
Chia-I Wu44c99b62015-10-27 19:55:29 +08001719typedef struct VkPipelineShaderStageCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001720 VkStructureType sType;
1721 const void* pNext;
1722 VkPipelineShaderStageCreateFlags flags;
1723 VkShaderStageFlagBits stage;
1724 VkShaderModule module;
1725 const char* pName;
1726 const VkSpecializationInfo* pSpecializationInfo;
Mark Lobodzinskid5732f32015-06-23 15:11:57 -06001727} VkPipelineShaderStageCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001728
Chia-I Wu44c99b62015-10-27 19:55:29 +08001729typedef struct VkVertexInputBindingDescription {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001730 uint32_t binding;
1731 uint32_t stride;
1732 VkVertexInputRate inputRate;
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001733} VkVertexInputBindingDescription;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001734
Chia-I Wu44c99b62015-10-27 19:55:29 +08001735typedef struct VkVertexInputAttributeDescription {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001736 uint32_t location;
1737 uint32_t binding;
1738 VkFormat format;
1739 uint32_t offset;
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001740} VkVertexInputAttributeDescription;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001741
Chia-I Wu44c99b62015-10-27 19:55:29 +08001742typedef struct VkPipelineVertexInputStateCreateInfo {
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001743 VkStructureType sType;
1744 const void* pNext;
Chia-I Wu439c0772015-10-26 17:00:46 +08001745 VkPipelineVertexInputStateCreateFlags flags;
Chia-I Wud50a7d72015-10-26 20:48:51 +08001746 uint32_t vertexBindingDescriptionCount;
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06001747 const VkVertexInputBindingDescription* pVertexBindingDescriptions;
Chia-I Wud50a7d72015-10-26 20:48:51 +08001748 uint32_t vertexAttributeDescriptionCount;
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06001749 const VkVertexInputAttributeDescription* pVertexAttributeDescriptions;
Mark Lobodzinskid5732f32015-06-23 15:11:57 -06001750} VkPipelineVertexInputStateCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001751
Chia-I Wu44c99b62015-10-27 19:55:29 +08001752typedef struct VkPipelineInputAssemblyStateCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001753 VkStructureType sType;
1754 const void* pNext;
1755 VkPipelineInputAssemblyStateCreateFlags flags;
1756 VkPrimitiveTopology topology;
1757 VkBool32 primitiveRestartEnable;
Tony Barbourdd6e32e2015-07-10 15:29:03 -06001758} VkPipelineInputAssemblyStateCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001759
Chia-I Wu44c99b62015-10-27 19:55:29 +08001760typedef struct VkPipelineTessellationStateCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001761 VkStructureType sType;
1762 const void* pNext;
1763 VkPipelineTessellationStateCreateFlags flags;
1764 uint32_t patchControlPoints;
Tony Barbourdd6e32e2015-07-10 15:29:03 -06001765} VkPipelineTessellationStateCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001766
Chia-I Wu44c99b62015-10-27 19:55:29 +08001767typedef struct VkViewport {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001768 float x;
1769 float y;
1770 float width;
1771 float height;
1772 float minDepth;
1773 float maxDepth;
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06001774} VkViewport;
1775
Chia-I Wu44c99b62015-10-27 19:55:29 +08001776typedef struct VkOffset2D {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001777 int32_t x;
1778 int32_t y;
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06001779} VkOffset2D;
1780
Chia-I Wu44c99b62015-10-27 19:55:29 +08001781typedef struct VkExtent2D {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001782 uint32_t width;
1783 uint32_t height;
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06001784} VkExtent2D;
1785
Chia-I Wu44c99b62015-10-27 19:55:29 +08001786typedef struct VkRect2D {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001787 VkOffset2D offset;
1788 VkExtent2D extent;
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06001789} VkRect2D;
1790
Chia-I Wu44c99b62015-10-27 19:55:29 +08001791typedef struct VkPipelineViewportStateCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001792 VkStructureType sType;
1793 const void* pNext;
1794 VkPipelineViewportStateCreateFlags flags;
1795 uint32_t viewportCount;
1796 const VkViewport* pViewports;
1797 uint32_t scissorCount;
1798 const VkRect2D* pScissors;
Tony Barbourdd6e32e2015-07-10 15:29:03 -06001799} VkPipelineViewportStateCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001800
Chia-I Wu44c99b62015-10-27 19:55:29 +08001801typedef struct VkPipelineRasterizationStateCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001802 VkStructureType sType;
1803 const void* pNext;
1804 VkPipelineRasterizationStateCreateFlags flags;
1805 VkBool32 depthClampEnable;
1806 VkBool32 rasterizerDiscardEnable;
1807 VkPolygonMode polygonMode;
1808 VkCullModeFlags cullMode;
1809 VkFrontFace frontFace;
1810 VkBool32 depthBiasEnable;
1811 float depthBiasConstantFactor;
1812 float depthBiasClamp;
1813 float depthBiasSlopeFactor;
1814 float lineWidth;
Chia-I Wu3432a0c2015-10-27 18:04:07 +08001815} VkPipelineRasterizationStateCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001816
Chia-I Wu44c99b62015-10-27 19:55:29 +08001817typedef struct VkPipelineMultisampleStateCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001818 VkStructureType sType;
1819 const void* pNext;
1820 VkPipelineMultisampleStateCreateFlags flags;
1821 VkSampleCountFlagBits rasterizationSamples;
1822 VkBool32 sampleShadingEnable;
1823 float minSampleShading;
1824 const VkSampleMask* pSampleMask;
1825 VkBool32 alphaToCoverageEnable;
1826 VkBool32 alphaToOneEnable;
Tony Barbourdd6e32e2015-07-10 15:29:03 -06001827} VkPipelineMultisampleStateCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001828
Chia-I Wu44c99b62015-10-27 19:55:29 +08001829typedef struct VkStencilOpState {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001830 VkStencilOp failOp;
1831 VkStencilOp passOp;
1832 VkStencilOp depthFailOp;
1833 VkCompareOp compareOp;
1834 uint32_t compareMask;
1835 uint32_t writeMask;
1836 uint32_t reference;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001837} VkStencilOpState;
1838
Chia-I Wu44c99b62015-10-27 19:55:29 +08001839typedef struct VkPipelineDepthStencilStateCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001840 VkStructureType sType;
1841 const void* pNext;
1842 VkPipelineDepthStencilStateCreateFlags flags;
1843 VkBool32 depthTestEnable;
1844 VkBool32 depthWriteEnable;
1845 VkCompareOp depthCompareOp;
1846 VkBool32 depthBoundsTestEnable;
1847 VkBool32 stencilTestEnable;
1848 VkStencilOpState front;
1849 VkStencilOpState back;
1850 float minDepthBounds;
1851 float maxDepthBounds;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001852} VkPipelineDepthStencilStateCreateInfo;
1853
Chia-I Wu44c99b62015-10-27 19:55:29 +08001854typedef struct VkPipelineColorBlendAttachmentState {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001855 VkBool32 blendEnable;
1856 VkBlendFactor srcColorBlendFactor;
1857 VkBlendFactor dstColorBlendFactor;
1858 VkBlendOp colorBlendOp;
1859 VkBlendFactor srcAlphaBlendFactor;
1860 VkBlendFactor dstAlphaBlendFactor;
1861 VkBlendOp alphaBlendOp;
1862 VkColorComponentFlags colorWriteMask;
Tony Barbourdd6e32e2015-07-10 15:29:03 -06001863} VkPipelineColorBlendAttachmentState;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001864
Chia-I Wu44c99b62015-10-27 19:55:29 +08001865typedef struct VkPipelineColorBlendStateCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001866 VkStructureType sType;
1867 const void* pNext;
1868 VkPipelineColorBlendStateCreateFlags flags;
1869 VkBool32 logicOpEnable;
1870 VkLogicOp logicOp;
1871 uint32_t attachmentCount;
1872 const VkPipelineColorBlendAttachmentState* pAttachments;
1873 float blendConstants[4];
Tony Barbourdd6e32e2015-07-10 15:29:03 -06001874} VkPipelineColorBlendStateCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001875
Chia-I Wu44c99b62015-10-27 19:55:29 +08001876typedef struct VkPipelineDynamicStateCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001877 VkStructureType sType;
1878 const void* pNext;
1879 VkPipelineDynamicStateCreateFlags flags;
1880 uint32_t dynamicStateCount;
1881 const VkDynamicState* pDynamicStates;
Courtney Goeltzenleuchter95edc602015-09-21 17:19:25 -06001882} VkPipelineDynamicStateCreateInfo;
1883
Chia-I Wu44c99b62015-10-27 19:55:29 +08001884typedef struct VkGraphicsPipelineCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001885 VkStructureType sType;
1886 const void* pNext;
1887 VkPipelineCreateFlags flags;
1888 uint32_t stageCount;
1889 const VkPipelineShaderStageCreateInfo* pStages;
1890 const VkPipelineVertexInputStateCreateInfo* pVertexInputState;
1891 const VkPipelineInputAssemblyStateCreateInfo* pInputAssemblyState;
1892 const VkPipelineTessellationStateCreateInfo* pTessellationState;
1893 const VkPipelineViewportStateCreateInfo* pViewportState;
1894 const VkPipelineRasterizationStateCreateInfo* pRasterizationState;
1895 const VkPipelineMultisampleStateCreateInfo* pMultisampleState;
1896 const VkPipelineDepthStencilStateCreateInfo* pDepthStencilState;
1897 const VkPipelineColorBlendStateCreateInfo* pColorBlendState;
1898 const VkPipelineDynamicStateCreateInfo* pDynamicState;
1899 VkPipelineLayout layout;
1900 VkRenderPass renderPass;
1901 uint32_t subpass;
1902 VkPipeline basePipelineHandle;
1903 int32_t basePipelineIndex;
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001904} VkGraphicsPipelineCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001905
Chia-I Wu44c99b62015-10-27 19:55:29 +08001906typedef struct VkComputePipelineCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001907 VkStructureType sType;
1908 const void* pNext;
1909 VkPipelineCreateFlags flags;
1910 VkPipelineShaderStageCreateInfo stage;
1911 VkPipelineLayout layout;
1912 VkPipeline basePipelineHandle;
1913 int32_t basePipelineIndex;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001914} VkComputePipelineCreateInfo;
Courtney Goeltzenleuchter07fd6b62015-04-17 20:48:17 -06001915
Chia-I Wu44c99b62015-10-27 19:55:29 +08001916typedef struct VkPushConstantRange {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001917 VkShaderStageFlags stageFlags;
1918 uint32_t offset;
1919 uint32_t size;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001920} VkPushConstantRange;
1921
Chia-I Wu44c99b62015-10-27 19:55:29 +08001922typedef struct VkPipelineLayoutCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001923 VkStructureType sType;
1924 const void* pNext;
1925 VkPipelineLayoutCreateFlags flags;
1926 uint32_t setLayoutCount;
1927 const VkDescriptorSetLayout* pSetLayouts;
1928 uint32_t pushConstantRangeCount;
1929 const VkPushConstantRange* pPushConstantRanges;
Mark Lobodzinski0fadf5f2015-04-17 14:11:39 -05001930} VkPipelineLayoutCreateInfo;
1931
Chia-I Wu44c99b62015-10-27 19:55:29 +08001932typedef struct VkSamplerCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001933 VkStructureType sType;
1934 const void* pNext;
1935 VkSamplerCreateFlags flags;
1936 VkFilter magFilter;
1937 VkFilter minFilter;
1938 VkSamplerMipmapMode mipmapMode;
1939 VkSamplerAddressMode addressModeU;
1940 VkSamplerAddressMode addressModeV;
1941 VkSamplerAddressMode addressModeW;
1942 float mipLodBias;
1943 VkBool32 anisotropyEnable;
1944 float maxAnisotropy;
1945 VkBool32 compareEnable;
1946 VkCompareOp compareOp;
1947 float minLod;
1948 float maxLod;
1949 VkBorderColor borderColor;
1950 VkBool32 unnormalizedCoordinates;
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001951} VkSamplerCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06001952
Chia-I Wu44c99b62015-10-27 19:55:29 +08001953typedef struct VkDescriptorSetLayoutBinding {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001954 uint32_t binding;
1955 VkDescriptorType descriptorType;
1956 uint32_t descriptorCount;
1957 VkShaderStageFlags stageFlags;
1958 const VkSampler* pImmutableSamplers;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001959} VkDescriptorSetLayoutBinding;
1960
Chia-I Wu44c99b62015-10-27 19:55:29 +08001961typedef struct VkDescriptorSetLayoutCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001962 VkStructureType sType;
1963 const void* pNext;
1964 VkDescriptorSetLayoutCreateFlags flags;
1965 uint32_t bindingCount;
1966 const VkDescriptorSetLayoutBinding* pBindings;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001967} VkDescriptorSetLayoutCreateInfo;
1968
Chia-I Wu44c99b62015-10-27 19:55:29 +08001969typedef struct VkDescriptorPoolSize {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001970 VkDescriptorType type;
1971 uint32_t descriptorCount;
Chia-I Wu1b99bb22015-10-27 19:25:11 +08001972} VkDescriptorPoolSize;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001973
Chia-I Wu44c99b62015-10-27 19:55:29 +08001974typedef struct VkDescriptorPoolCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001975 VkStructureType sType;
1976 const void* pNext;
1977 VkDescriptorPoolCreateFlags flags;
1978 uint32_t maxSets;
1979 uint32_t poolSizeCount;
1980 const VkDescriptorPoolSize* pPoolSizes;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06001981} VkDescriptorPoolCreateInfo;
1982
Chia-I Wu44c99b62015-10-27 19:55:29 +08001983typedef struct VkDescriptorSetAllocateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001984 VkStructureType sType;
1985 const void* pNext;
1986 VkDescriptorPool descriptorPool;
1987 uint32_t descriptorSetCount;
1988 const VkDescriptorSetLayout* pSetLayouts;
Chia-I Wu3432a0c2015-10-27 18:04:07 +08001989} VkDescriptorSetAllocateInfo;
Courtney Goeltzenleuchterbee18a92015-10-23 14:21:05 -06001990
Chia-I Wu44c99b62015-10-27 19:55:29 +08001991typedef struct VkDescriptorImageInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001992 VkSampler sampler;
1993 VkImageView imageView;
1994 VkImageLayout imageLayout;
Courtney Goeltzenleuchteraa132e72015-10-22 15:31:56 -06001995} VkDescriptorImageInfo;
1996
Chia-I Wu44c99b62015-10-27 19:55:29 +08001997typedef struct VkDescriptorBufferInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07001998 VkBuffer buffer;
1999 VkDeviceSize offset;
2000 VkDeviceSize range;
Courtney Goeltzenleuchterb46f2272015-09-14 14:14:21 -06002001} VkDescriptorBufferInfo;
Courtney Goeltzenleuchter6eb1aeb2015-09-11 15:29:21 -06002002
Chia-I Wu44c99b62015-10-27 19:55:29 +08002003typedef struct VkWriteDescriptorSet {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002004 VkStructureType sType;
2005 const void* pNext;
2006 VkDescriptorSet dstSet;
2007 uint32_t dstBinding;
2008 uint32_t dstArrayElement;
2009 uint32_t descriptorCount;
2010 VkDescriptorType descriptorType;
2011 const VkDescriptorImageInfo* pImageInfo;
2012 const VkDescriptorBufferInfo* pBufferInfo;
2013 const VkBufferView* pTexelBufferView;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002014} VkWriteDescriptorSet;
2015
Chia-I Wu44c99b62015-10-27 19:55:29 +08002016typedef struct VkCopyDescriptorSet {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002017 VkStructureType sType;
2018 const void* pNext;
2019 VkDescriptorSet srcSet;
2020 uint32_t srcBinding;
2021 uint32_t srcArrayElement;
2022 VkDescriptorSet dstSet;
2023 uint32_t dstBinding;
2024 uint32_t dstArrayElement;
2025 uint32_t descriptorCount;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002026} VkCopyDescriptorSet;
2027
Chia-I Wu44c99b62015-10-27 19:55:29 +08002028typedef struct VkFramebufferCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002029 VkStructureType sType;
2030 const void* pNext;
2031 VkFramebufferCreateFlags flags;
2032 VkRenderPass renderPass;
2033 uint32_t attachmentCount;
2034 const VkImageView* pAttachments;
2035 uint32_t width;
2036 uint32_t height;
2037 uint32_t layers;
Chia-I Wu08accc62015-07-07 11:50:03 +08002038} VkFramebufferCreateInfo;
2039
Chia-I Wu44c99b62015-10-27 19:55:29 +08002040typedef struct VkAttachmentDescription {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002041 VkAttachmentDescriptionFlags flags;
2042 VkFormat format;
2043 VkSampleCountFlagBits samples;
2044 VkAttachmentLoadOp loadOp;
2045 VkAttachmentStoreOp storeOp;
2046 VkAttachmentLoadOp stencilLoadOp;
2047 VkAttachmentStoreOp stencilStoreOp;
2048 VkImageLayout initialLayout;
2049 VkImageLayout finalLayout;
Chia-I Wu08accc62015-07-07 11:50:03 +08002050} VkAttachmentDescription;
2051
Chia-I Wu44c99b62015-10-27 19:55:29 +08002052typedef struct VkAttachmentReference {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002053 uint32_t attachment;
2054 VkImageLayout layout;
Chia-I Wu08accc62015-07-07 11:50:03 +08002055} VkAttachmentReference;
2056
Chia-I Wu44c99b62015-10-27 19:55:29 +08002057typedef struct VkSubpassDescription {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002058 VkSubpassDescriptionFlags flags;
2059 VkPipelineBindPoint pipelineBindPoint;
2060 uint32_t inputAttachmentCount;
2061 const VkAttachmentReference* pInputAttachments;
2062 uint32_t colorAttachmentCount;
2063 const VkAttachmentReference* pColorAttachments;
2064 const VkAttachmentReference* pResolveAttachments;
2065 const VkAttachmentReference* pDepthStencilAttachment;
2066 uint32_t preserveAttachmentCount;
2067 const uint32_t* pPreserveAttachments;
Chia-I Wu08accc62015-07-07 11:50:03 +08002068} VkSubpassDescription;
2069
Chia-I Wu44c99b62015-10-27 19:55:29 +08002070typedef struct VkSubpassDependency {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002071 uint32_t srcSubpass;
2072 uint32_t dstSubpass;
2073 VkPipelineStageFlags srcStageMask;
2074 VkPipelineStageFlags dstStageMask;
2075 VkAccessFlags srcAccessMask;
2076 VkAccessFlags dstAccessMask;
2077 VkDependencyFlags dependencyFlags;
Chia-I Wu08accc62015-07-07 11:50:03 +08002078} VkSubpassDependency;
2079
Chia-I Wu44c99b62015-10-27 19:55:29 +08002080typedef struct VkRenderPassCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002081 VkStructureType sType;
2082 const void* pNext;
2083 VkRenderPassCreateFlags flags;
2084 uint32_t attachmentCount;
2085 const VkAttachmentDescription* pAttachments;
2086 uint32_t subpassCount;
2087 const VkSubpassDescription* pSubpasses;
2088 uint32_t dependencyCount;
2089 const VkSubpassDependency* pDependencies;
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06002090} VkRenderPassCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002091
Chia-I Wu44c99b62015-10-27 19:55:29 +08002092typedef struct VkCommandPoolCreateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002093 VkStructureType sType;
2094 const void* pNext;
2095 VkCommandPoolCreateFlags flags;
2096 uint32_t queueFamilyIndex;
Chia-I Wu3432a0c2015-10-27 18:04:07 +08002097} VkCommandPoolCreateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002098
Chia-I Wu44c99b62015-10-27 19:55:29 +08002099typedef struct VkCommandBufferAllocateInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002100 VkStructureType sType;
2101 const void* pNext;
2102 VkCommandPool commandPool;
2103 VkCommandBufferLevel level;
2104 uint32_t commandBufferCount;
Chia-I Wu3432a0c2015-10-27 18:04:07 +08002105} VkCommandBufferAllocateInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002106
Jon Ashburnf19916e2016-01-11 13:12:43 -07002107typedef struct VkCommandBufferInheritanceInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002108 VkStructureType sType;
2109 const void* pNext;
2110 VkRenderPass renderPass;
2111 uint32_t subpass;
2112 VkFramebuffer framebuffer;
2113 VkBool32 occlusionQueryEnable;
2114 VkQueryControlFlags queryFlags;
2115 VkQueryPipelineStatisticFlags pipelineStatistics;
Jon Ashburnf19916e2016-01-11 13:12:43 -07002116} VkCommandBufferInheritanceInfo;
2117
2118typedef struct VkCommandBufferBeginInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002119 VkStructureType sType;
2120 const void* pNext;
2121 VkCommandBufferUsageFlags flags;
2122 const VkCommandBufferInheritanceInfo* pInheritanceInfo;
Chia-I Wu3432a0c2015-10-27 18:04:07 +08002123} VkCommandBufferBeginInfo;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002124
Chia-I Wu44c99b62015-10-27 19:55:29 +08002125typedef struct VkBufferCopy {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002126 VkDeviceSize srcOffset;
2127 VkDeviceSize dstOffset;
2128 VkDeviceSize size;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002129} VkBufferCopy;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002130
Chia-I Wu44c99b62015-10-27 19:55:29 +08002131typedef struct VkImageSubresourceLayers {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002132 VkImageAspectFlags aspectMask;
2133 uint32_t mipLevel;
2134 uint32_t baseArrayLayer;
2135 uint32_t layerCount;
Chia-I Wu1b99bb22015-10-27 19:25:11 +08002136} VkImageSubresourceLayers;
Courtney Goeltzenleuchter01ee1ca2015-09-10 16:41:13 -06002137
Chia-I Wu44c99b62015-10-27 19:55:29 +08002138typedef struct VkImageCopy {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002139 VkImageSubresourceLayers srcSubresource;
2140 VkOffset3D srcOffset;
2141 VkImageSubresourceLayers dstSubresource;
2142 VkOffset3D dstOffset;
2143 VkExtent3D extent;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002144} VkImageCopy;
2145
Chia-I Wu44c99b62015-10-27 19:55:29 +08002146typedef struct VkImageBlit {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002147 VkImageSubresourceLayers srcSubresource;
2148 VkOffset3D srcOffsets[2];
2149 VkImageSubresourceLayers dstSubresource;
2150 VkOffset3D dstOffsets[2];
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002151} VkImageBlit;
2152
Chia-I Wu44c99b62015-10-27 19:55:29 +08002153typedef struct VkBufferImageCopy {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002154 VkDeviceSize bufferOffset;
2155 uint32_t bufferRowLength;
2156 uint32_t bufferImageHeight;
2157 VkImageSubresourceLayers imageSubresource;
2158 VkOffset3D imageOffset;
2159 VkExtent3D imageExtent;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002160} VkBufferImageCopy;
2161
Chia-I Wu44c99b62015-10-27 19:55:29 +08002162typedef union VkClearColorValue {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002163 float float32[4];
2164 int32_t int32[4];
2165 uint32_t uint32[4];
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002166} VkClearColorValue;
2167
Chia-I Wu44c99b62015-10-27 19:55:29 +08002168typedef struct VkClearDepthStencilValue {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002169 float depth;
2170 uint32_t stencil;
Courtney Goeltzenleuchter45df9e12015-09-15 18:03:22 -06002171} VkClearDepthStencilValue;
2172
Chia-I Wu44c99b62015-10-27 19:55:29 +08002173typedef union VkClearValue {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002174 VkClearColorValue color;
2175 VkClearDepthStencilValue depthStencil;
Courtney Goeltzenleuchterc9323e02015-10-15 16:51:05 -06002176} VkClearValue;
2177
Chia-I Wu44c99b62015-10-27 19:55:29 +08002178typedef struct VkClearAttachment {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002179 VkImageAspectFlags aspectMask;
2180 uint32_t colorAttachment;
2181 VkClearValue clearValue;
Courtney Goeltzenleuchterc9323e02015-10-15 16:51:05 -06002182} VkClearAttachment;
2183
Chia-I Wu44c99b62015-10-27 19:55:29 +08002184typedef struct VkClearRect {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002185 VkRect2D rect;
2186 uint32_t baseArrayLayer;
2187 uint32_t layerCount;
Courtney Goeltzenleuchter4ca43f62015-10-15 18:22:08 -06002188} VkClearRect;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002189
Chia-I Wu44c99b62015-10-27 19:55:29 +08002190typedef struct VkImageResolve {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002191 VkImageSubresourceLayers srcSubresource;
2192 VkOffset3D srcOffset;
2193 VkImageSubresourceLayers dstSubresource;
2194 VkOffset3D dstOffset;
2195 VkExtent3D extent;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002196} VkImageResolve;
2197
Jon Ashburnf19916e2016-01-11 13:12:43 -07002198typedef struct VkMemoryBarrier {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002199 VkStructureType sType;
2200 const void* pNext;
2201 VkAccessFlags srcAccessMask;
2202 VkAccessFlags dstAccessMask;
Jon Ashburnf19916e2016-01-11 13:12:43 -07002203} VkMemoryBarrier;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002204
Chia-I Wu44c99b62015-10-27 19:55:29 +08002205typedef struct VkBufferMemoryBarrier {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002206 VkStructureType sType;
2207 const void* pNext;
2208 VkAccessFlags srcAccessMask;
2209 VkAccessFlags dstAccessMask;
2210 uint32_t srcQueueFamilyIndex;
2211 uint32_t dstQueueFamilyIndex;
2212 VkBuffer buffer;
2213 VkDeviceSize offset;
2214 VkDeviceSize size;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002215} VkBufferMemoryBarrier;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002216
Jon Ashburnf19916e2016-01-11 13:12:43 -07002217typedef struct VkImageMemoryBarrier {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002218 VkStructureType sType;
2219 const void* pNext;
2220 VkAccessFlags srcAccessMask;
2221 VkAccessFlags dstAccessMask;
2222 VkImageLayout oldLayout;
2223 VkImageLayout newLayout;
2224 uint32_t srcQueueFamilyIndex;
2225 uint32_t dstQueueFamilyIndex;
2226 VkImage image;
2227 VkImageSubresourceRange subresourceRange;
Jon Ashburnf19916e2016-01-11 13:12:43 -07002228} VkImageMemoryBarrier;
2229
2230typedef struct VkRenderPassBeginInfo {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002231 VkStructureType sType;
2232 const void* pNext;
2233 VkRenderPass renderPass;
2234 VkFramebuffer framebuffer;
2235 VkRect2D renderArea;
2236 uint32_t clearValueCount;
2237 const VkClearValue* pClearValues;
Jon Ashburnf19916e2016-01-11 13:12:43 -07002238} VkRenderPassBeginInfo;
2239
Chia-I Wu44c99b62015-10-27 19:55:29 +08002240typedef struct VkDispatchIndirectCommand {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002241 uint32_t x;
2242 uint32_t y;
2243 uint32_t z;
Chia-I Wubb7fad92015-10-27 17:53:18 +08002244} VkDispatchIndirectCommand;
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002245
Chia-I Wu44c99b62015-10-27 19:55:29 +08002246typedef struct VkDrawIndexedIndirectCommand {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002247 uint32_t indexCount;
2248 uint32_t instanceCount;
2249 uint32_t firstIndex;
2250 int32_t vertexOffset;
2251 uint32_t firstInstance;
Chia-I Wubb7fad92015-10-27 17:53:18 +08002252} VkDrawIndexedIndirectCommand;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002253
Chia-I Wu44c99b62015-10-27 19:55:29 +08002254typedef struct VkDrawIndirectCommand {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07002255 uint32_t vertexCount;
2256 uint32_t instanceCount;
2257 uint32_t firstVertex;
2258 uint32_t firstInstance;
Chia-I Wubb7fad92015-10-27 17:53:18 +08002259} VkDrawIndirectCommand;
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002260
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002261
Chia-I Wu9ab61502015-11-06 06:42:02 +08002262typedef VkResult (VKAPI_PTR *PFN_vkCreateInstance)(const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance);
2263typedef void (VKAPI_PTR *PFN_vkDestroyInstance)(VkInstance instance, const VkAllocationCallbacks* pAllocator);
2264typedef VkResult (VKAPI_PTR *PFN_vkEnumeratePhysicalDevices)(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices);
2265typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFeatures)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures);
2266typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties);
2267typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties);
2268typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties);
2269typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceQueueFamilyProperties)(VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties* pQueueFamilyProperties);
2270typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceMemoryProperties)(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties* pMemoryProperties);
2271typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetInstanceProcAddr)(VkInstance instance, const char* pName);
2272typedef PFN_vkVoidFunction (VKAPI_PTR *PFN_vkGetDeviceProcAddr)(VkDevice device, const char* pName);
2273typedef VkResult (VKAPI_PTR *PFN_vkCreateDevice)(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDevice* pDevice);
2274typedef void (VKAPI_PTR *PFN_vkDestroyDevice)(VkDevice device, const VkAllocationCallbacks* pAllocator);
2275typedef VkResult (VKAPI_PTR *PFN_vkEnumerateInstanceExtensionProperties)(const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties);
2276typedef VkResult (VKAPI_PTR *PFN_vkEnumerateDeviceExtensionProperties)(VkPhysicalDevice physicalDevice, const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties);
2277typedef VkResult (VKAPI_PTR *PFN_vkEnumerateInstanceLayerProperties)(uint32_t* pPropertyCount, VkLayerProperties* pProperties);
2278typedef VkResult (VKAPI_PTR *PFN_vkEnumerateDeviceLayerProperties)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkLayerProperties* pProperties);
2279typedef void (VKAPI_PTR *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue* pQueue);
2280typedef VkResult (VKAPI_PTR *PFN_vkQueueSubmit)(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence);
2281typedef VkResult (VKAPI_PTR *PFN_vkQueueWaitIdle)(VkQueue queue);
2282typedef VkResult (VKAPI_PTR *PFN_vkDeviceWaitIdle)(VkDevice device);
2283typedef VkResult (VKAPI_PTR *PFN_vkAllocateMemory)(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory);
2284typedef void (VKAPI_PTR *PFN_vkFreeMemory)(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator);
2285typedef VkResult (VKAPI_PTR *PFN_vkMapMemory)(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData);
2286typedef void (VKAPI_PTR *PFN_vkUnmapMemory)(VkDevice device, VkDeviceMemory memory);
2287typedef VkResult (VKAPI_PTR *PFN_vkFlushMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges);
2288typedef VkResult (VKAPI_PTR *PFN_vkInvalidateMappedMemoryRanges)(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges);
2289typedef void (VKAPI_PTR *PFN_vkGetDeviceMemoryCommitment)(VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes);
2290typedef VkResult (VKAPI_PTR *PFN_vkBindBufferMemory)(VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset);
2291typedef VkResult (VKAPI_PTR *PFN_vkBindImageMemory)(VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset);
2292typedef void (VKAPI_PTR *PFN_vkGetBufferMemoryRequirements)(VkDevice device, VkBuffer buffer, VkMemoryRequirements* pMemoryRequirements);
2293typedef void (VKAPI_PTR *PFN_vkGetImageMemoryRequirements)(VkDevice device, VkImage image, VkMemoryRequirements* pMemoryRequirements);
2294typedef void (VKAPI_PTR *PFN_vkGetImageSparseMemoryRequirements)(VkDevice device, VkImage image, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements* pSparseMemoryRequirements);
2295typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceSparseImageFormatProperties)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties);
2296typedef VkResult (VKAPI_PTR *PFN_vkQueueBindSparse)(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence);
2297typedef VkResult (VKAPI_PTR *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence);
2298typedef void (VKAPI_PTR *PFN_vkDestroyFence)(VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator);
2299typedef VkResult (VKAPI_PTR *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences);
2300typedef VkResult (VKAPI_PTR *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence);
2301typedef VkResult (VKAPI_PTR *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout);
2302typedef VkResult (VKAPI_PTR *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSemaphore* pSemaphore);
2303typedef void (VKAPI_PTR *PFN_vkDestroySemaphore)(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator);
2304typedef VkResult (VKAPI_PTR *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkEvent* pEvent);
2305typedef void (VKAPI_PTR *PFN_vkDestroyEvent)(VkDevice device, VkEvent event, const VkAllocationCallbacks* pAllocator);
2306typedef VkResult (VKAPI_PTR *PFN_vkGetEventStatus)(VkDevice device, VkEvent event);
2307typedef VkResult (VKAPI_PTR *PFN_vkSetEvent)(VkDevice device, VkEvent event);
2308typedef VkResult (VKAPI_PTR *PFN_vkResetEvent)(VkDevice device, VkEvent event);
2309typedef VkResult (VKAPI_PTR *PFN_vkCreateQueryPool)(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkQueryPool* pQueryPool);
2310typedef void (VKAPI_PTR *PFN_vkDestroyQueryPool)(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator);
Jon Ashburn19d3bf12015-12-30 14:06:55 -07002311typedef VkResult (VKAPI_PTR *PFN_vkGetQueryPoolResults)(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkDeviceSize stride, VkQueryResultFlags flags);
Chia-I Wu9ab61502015-11-06 06:42:02 +08002312typedef VkResult (VKAPI_PTR *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBuffer* pBuffer);
2313typedef void (VKAPI_PTR *PFN_vkDestroyBuffer)(VkDevice device, VkBuffer buffer, const VkAllocationCallbacks* pAllocator);
2314typedef VkResult (VKAPI_PTR *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferView* pView);
2315typedef void (VKAPI_PTR *PFN_vkDestroyBufferView)(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator);
2316typedef VkResult (VKAPI_PTR *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImage* pImage);
2317typedef void (VKAPI_PTR *PFN_vkDestroyImage)(VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator);
2318typedef void (VKAPI_PTR *PFN_vkGetImageSubresourceLayout)(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout);
2319typedef VkResult (VKAPI_PTR *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImageView* pView);
2320typedef void (VKAPI_PTR *PFN_vkDestroyImageView)(VkDevice device, VkImageView imageView, const VkAllocationCallbacks* pAllocator);
2321typedef VkResult (VKAPI_PTR *PFN_vkCreateShaderModule)(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkShaderModule* pShaderModule);
2322typedef void (VKAPI_PTR *PFN_vkDestroyShaderModule)(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator);
2323typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineCache)(VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineCache* pPipelineCache);
2324typedef void (VKAPI_PTR *PFN_vkDestroyPipelineCache)(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator);
2325typedef VkResult (VKAPI_PTR *PFN_vkGetPipelineCacheData)(VkDevice device, VkPipelineCache pipelineCache, size_t* pDataSize, void* pData);
2326typedef VkResult (VKAPI_PTR *PFN_vkMergePipelineCaches)(VkDevice device, VkPipelineCache dstCache, uint32_t srcCacheCount, const VkPipelineCache* pSrcCaches);
2327typedef VkResult (VKAPI_PTR *PFN_vkCreateGraphicsPipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkGraphicsPipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines);
2328typedef VkResult (VKAPI_PTR *PFN_vkCreateComputePipelines)(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines);
2329typedef void (VKAPI_PTR *PFN_vkDestroyPipeline)(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator);
2330typedef VkResult (VKAPI_PTR *PFN_vkCreatePipelineLayout)(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineLayout* pPipelineLayout);
2331typedef void (VKAPI_PTR *PFN_vkDestroyPipelineLayout)(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator);
2332typedef VkResult (VKAPI_PTR *PFN_vkCreateSampler)(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSampler* pSampler);
2333typedef void (VKAPI_PTR *PFN_vkDestroySampler)(VkDevice device, VkSampler sampler, const VkAllocationCallbacks* pAllocator);
2334typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorSetLayout)(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorSetLayout* pSetLayout);
2335typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorSetLayout)(VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator);
2336typedef VkResult (VKAPI_PTR *PFN_vkCreateDescriptorPool)(VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorPool* pDescriptorPool);
2337typedef void (VKAPI_PTR *PFN_vkDestroyDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator);
2338typedef VkResult (VKAPI_PTR *PFN_vkResetDescriptorPool)(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags);
2339typedef VkResult (VKAPI_PTR *PFN_vkAllocateDescriptorSets)(VkDevice device, const VkDescriptorSetAllocateInfo* pAllocateInfo, VkDescriptorSet* pDescriptorSets);
2340typedef VkResult (VKAPI_PTR *PFN_vkFreeDescriptorSets)(VkDevice device, VkDescriptorPool descriptorPool, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets);
2341typedef void (VKAPI_PTR *PFN_vkUpdateDescriptorSets)(VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies);
2342typedef VkResult (VKAPI_PTR *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFramebuffer* pFramebuffer);
2343typedef void (VKAPI_PTR *PFN_vkDestroyFramebuffer)(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator);
2344typedef VkResult (VKAPI_PTR *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkRenderPass* pRenderPass);
2345typedef void (VKAPI_PTR *PFN_vkDestroyRenderPass)(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator);
2346typedef void (VKAPI_PTR *PFN_vkGetRenderAreaGranularity)(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity);
2347typedef VkResult (VKAPI_PTR *PFN_vkCreateCommandPool)(VkDevice device, const VkCommandPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCommandPool* pCommandPool);
2348typedef void (VKAPI_PTR *PFN_vkDestroyCommandPool)(VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator);
2349typedef VkResult (VKAPI_PTR *PFN_vkResetCommandPool)(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags);
2350typedef VkResult (VKAPI_PTR *PFN_vkAllocateCommandBuffers)(VkDevice device, const VkCommandBufferAllocateInfo* pAllocateInfo, VkCommandBuffer* pCommandBuffers);
2351typedef void (VKAPI_PTR *PFN_vkFreeCommandBuffers)(VkDevice device, VkCommandPool commandPool, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers);
2352typedef VkResult (VKAPI_PTR *PFN_vkBeginCommandBuffer)(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo);
2353typedef VkResult (VKAPI_PTR *PFN_vkEndCommandBuffer)(VkCommandBuffer commandBuffer);
2354typedef VkResult (VKAPI_PTR *PFN_vkResetCommandBuffer)(VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags);
2355typedef void (VKAPI_PTR *PFN_vkCmdBindPipeline)(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline);
Jon Ashburn19d3bf12015-12-30 14:06:55 -07002356typedef void (VKAPI_PTR *PFN_vkCmdSetViewport)(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport* pViewports);
2357typedef void (VKAPI_PTR *PFN_vkCmdSetScissor)(VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D* pScissors);
Chia-I Wu9ab61502015-11-06 06:42:02 +08002358typedef void (VKAPI_PTR *PFN_vkCmdSetLineWidth)(VkCommandBuffer commandBuffer, float lineWidth);
2359typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBias)(VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor);
2360typedef void (VKAPI_PTR *PFN_vkCmdSetBlendConstants)(VkCommandBuffer commandBuffer, const float blendConstants[4]);
2361typedef void (VKAPI_PTR *PFN_vkCmdSetDepthBounds)(VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds);
2362typedef void (VKAPI_PTR *PFN_vkCmdSetStencilCompareMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask);
2363typedef void (VKAPI_PTR *PFN_vkCmdSetStencilWriteMask)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t writeMask);
2364typedef void (VKAPI_PTR *PFN_vkCmdSetStencilReference)(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t reference);
2365typedef 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);
2366typedef void (VKAPI_PTR *PFN_vkCmdBindIndexBuffer)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType);
Jon Ashburn19d3bf12015-12-30 14:06:55 -07002367typedef void (VKAPI_PTR *PFN_vkCmdBindVertexBuffers)(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets);
Chia-I Wu9ab61502015-11-06 06:42:02 +08002368typedef void (VKAPI_PTR *PFN_vkCmdDraw)(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance);
2369typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexed)(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance);
2370typedef void (VKAPI_PTR *PFN_vkCmdDrawIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride);
2371typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexedIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride);
2372typedef void (VKAPI_PTR *PFN_vkCmdDispatch)(VkCommandBuffer commandBuffer, uint32_t x, uint32_t y, uint32_t z);
2373typedef void (VKAPI_PTR *PFN_vkCmdDispatchIndirect)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset);
2374typedef void (VKAPI_PTR *PFN_vkCmdCopyBuffer)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy* pRegions);
2375typedef void (VKAPI_PTR *PFN_vkCmdCopyImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageCopy* pRegions);
2376typedef void (VKAPI_PTR *PFN_vkCmdBlitImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkFilter filter);
2377typedef void (VKAPI_PTR *PFN_vkCmdCopyBufferToImage)(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions);
2378typedef void (VKAPI_PTR *PFN_vkCmdCopyImageToBuffer)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions);
Karl Schultzee344492016-07-11 15:09:57 -06002379typedef void (VKAPI_PTR *PFN_vkCmdUpdateBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const void* pData);
Chia-I Wu9ab61502015-11-06 06:42:02 +08002380typedef void (VKAPI_PTR *PFN_vkCmdFillBuffer)(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data);
2381typedef void (VKAPI_PTR *PFN_vkCmdClearColorImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges);
2382typedef void (VKAPI_PTR *PFN_vkCmdClearDepthStencilImage)(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges);
2383typedef void (VKAPI_PTR *PFN_vkCmdClearAttachments)(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment* pAttachments, uint32_t rectCount, const VkClearRect* pRects);
2384typedef void (VKAPI_PTR *PFN_vkCmdResolveImage)(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageResolve* pRegions);
2385typedef void (VKAPI_PTR *PFN_vkCmdSetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask);
2386typedef void (VKAPI_PTR *PFN_vkCmdResetEvent)(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask);
Jon Ashburnf19916e2016-01-11 13:12:43 -07002387typedef 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);
2388typedef 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);
2389typedef void (VKAPI_PTR *PFN_vkCmdBeginQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags);
2390typedef void (VKAPI_PTR *PFN_vkCmdEndQuery)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query);
Jon Ashburn19d3bf12015-12-30 14:06:55 -07002391typedef void (VKAPI_PTR *PFN_vkCmdResetQueryPool)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount);
Jon Ashburnf19916e2016-01-11 13:12:43 -07002392typedef void (VKAPI_PTR *PFN_vkCmdWriteTimestamp)(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, uint32_t query);
Jon Ashburn19d3bf12015-12-30 14:06:55 -07002393typedef void (VKAPI_PTR *PFN_vkCmdCopyQueryPoolResults)(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags);
Chia-I Wuce9b1772015-11-12 06:09:22 +08002394typedef void (VKAPI_PTR *PFN_vkCmdPushConstants)(VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void* pValues);
Chia-I Wu9ab61502015-11-06 06:42:02 +08002395typedef void (VKAPI_PTR *PFN_vkCmdBeginRenderPass)(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkSubpassContents contents);
2396typedef void (VKAPI_PTR *PFN_vkCmdNextSubpass)(VkCommandBuffer commandBuffer, VkSubpassContents contents);
2397typedef void (VKAPI_PTR *PFN_vkCmdEndRenderPass)(VkCommandBuffer commandBuffer);
Jon Ashburnf19916e2016-01-11 13:12:43 -07002398typedef void (VKAPI_PTR *PFN_vkCmdExecuteCommands)(VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002399
Jon Ashburnce816b62016-01-12 11:33:33 -07002400#ifndef VK_NO_PROTOTYPES
Chia-I Wu9ab61502015-11-06 06:42:02 +08002401VKAPI_ATTR VkResult VKAPI_CALL vkCreateInstance(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002402 const VkInstanceCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002403 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002404 VkInstance* pInstance);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002405
Chia-I Wu9ab61502015-11-06 06:42:02 +08002406VKAPI_ATTR void VKAPI_CALL vkDestroyInstance(
Chia-I Wuf7458c52015-10-26 21:10:41 +08002407 VkInstance instance,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002408 const VkAllocationCallbacks* pAllocator);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002409
Chia-I Wu9ab61502015-11-06 06:42:02 +08002410VKAPI_ATTR VkResult VKAPI_CALL vkEnumeratePhysicalDevices(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002411 VkInstance instance,
Jon Ashburn83a64252015-04-15 11:31:12 -06002412 uint32_t* pPhysicalDeviceCount,
Tony Barbourd1c35722015-04-16 15:59:00 -06002413 VkPhysicalDevice* pPhysicalDevices);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002414
Chia-I Wu9ab61502015-11-06 06:42:02 +08002415VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFeatures(
Chris Forbesbc0bb772015-06-21 22:55:02 +12002416 VkPhysicalDevice physicalDevice,
2417 VkPhysicalDeviceFeatures* pFeatures);
2418
Chia-I Wu9ab61502015-11-06 06:42:02 +08002419VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceFormatProperties(
Chris Forbesbc0bb772015-06-21 22:55:02 +12002420 VkPhysicalDevice physicalDevice,
2421 VkFormat format,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002422 VkFormatProperties* pFormatProperties);
2423
Chia-I Wu9ab61502015-11-06 06:42:02 +08002424VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceImageFormatProperties(
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002425 VkPhysicalDevice physicalDevice,
2426 VkFormat format,
2427 VkImageType type,
2428 VkImageTiling tiling,
2429 VkImageUsageFlags usage,
Courtney Goeltzenleuchtera22097a2015-09-10 13:44:12 -06002430 VkImageCreateFlags flags,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002431 VkImageFormatProperties* pImageFormatProperties);
Chris Forbesbc0bb772015-06-21 22:55:02 +12002432
Chia-I Wu9ab61502015-11-06 06:42:02 +08002433VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceProperties(
Tony Barbour59a47322015-06-24 16:06:58 -06002434 VkPhysicalDevice physicalDevice,
2435 VkPhysicalDeviceProperties* pProperties);
2436
Chia-I Wu9ab61502015-11-06 06:42:02 +08002437VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceQueueFamilyProperties(
Tony Barbour59a47322015-06-24 16:06:58 -06002438 VkPhysicalDevice physicalDevice,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002439 uint32_t* pQueueFamilyPropertyCount,
Cody Northropd0802882015-08-03 17:04:53 -06002440 VkQueueFamilyProperties* pQueueFamilyProperties);
Tony Barbour59a47322015-06-24 16:06:58 -06002441
Chia-I Wu9ab61502015-11-06 06:42:02 +08002442VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties(
Tony Barbour59a47322015-06-24 16:06:58 -06002443 VkPhysicalDevice physicalDevice,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002444 VkPhysicalDeviceMemoryProperties* pMemoryProperties);
Tony Barbour59a47322015-06-24 16:06:58 -06002445
Chia-I Wu9ab61502015-11-06 06:42:02 +08002446VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetInstanceProcAddr(
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002447 VkInstance instance,
2448 const char* pName);
2449
Chia-I Wu9ab61502015-11-06 06:42:02 +08002450VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetDeviceProcAddr(
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002451 VkDevice device,
2452 const char* pName);
2453
Chia-I Wu9ab61502015-11-06 06:42:02 +08002454VKAPI_ATTR VkResult VKAPI_CALL vkCreateDevice(
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002455 VkPhysicalDevice physicalDevice,
2456 const VkDeviceCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002457 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002458 VkDevice* pDevice);
2459
Chia-I Wu9ab61502015-11-06 06:42:02 +08002460VKAPI_ATTR void VKAPI_CALL vkDestroyDevice(
Chia-I Wuf7458c52015-10-26 21:10:41 +08002461 VkDevice device,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002462 const VkAllocationCallbacks* pAllocator);
Courtney Goeltzenleuchterd7a5cff2015-04-23 17:49:22 -06002463
Chia-I Wu9ab61502015-11-06 06:42:02 +08002464VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceExtensionProperties(
Courtney Goeltzenleuchter110fdf92015-06-29 15:39:26 -06002465 const char* pLayerName,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002466 uint32_t* pPropertyCount,
Tony Barbour59a47322015-06-24 16:06:58 -06002467 VkExtensionProperties* pProperties);
2468
Chia-I Wu9ab61502015-11-06 06:42:02 +08002469VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceExtensionProperties(
Tony Barbour59a47322015-06-24 16:06:58 -06002470 VkPhysicalDevice physicalDevice,
Courtney Goeltzenleuchter110fdf92015-06-29 15:39:26 -06002471 const char* pLayerName,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002472 uint32_t* pPropertyCount,
Tony Barbour59a47322015-06-24 16:06:58 -06002473 VkExtensionProperties* pProperties);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002474
Chia-I Wu9ab61502015-11-06 06:42:02 +08002475VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateInstanceLayerProperties(
Chia-I Wud50a7d72015-10-26 20:48:51 +08002476 uint32_t* pPropertyCount,
Courtney Goeltzenleuchter110fdf92015-06-29 15:39:26 -06002477 VkLayerProperties* pProperties);
2478
Chia-I Wu9ab61502015-11-06 06:42:02 +08002479VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceLayerProperties(
Courtney Goeltzenleuchter110fdf92015-06-29 15:39:26 -06002480 VkPhysicalDevice physicalDevice,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002481 uint32_t* pPropertyCount,
Courtney Goeltzenleuchter110fdf92015-06-29 15:39:26 -06002482 VkLayerProperties* pProperties);
2483
Chia-I Wu9ab61502015-11-06 06:42:02 +08002484VKAPI_ATTR void VKAPI_CALL vkGetDeviceQueue(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002485 VkDevice device,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002486 uint32_t queueFamilyIndex,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002487 uint32_t queueIndex,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002488 VkQueue* pQueue);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002489
Chia-I Wu9ab61502015-11-06 06:42:02 +08002490VKAPI_ATTR VkResult VKAPI_CALL vkQueueSubmit(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002491 VkQueue queue,
Courtney Goeltzenleuchter646b9072015-10-20 18:04:07 -06002492 uint32_t submitCount,
Chia-I Wu40cf0ae2015-10-26 17:20:32 +08002493 const VkSubmitInfo* pSubmits,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002494 VkFence fence);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002495
Chia-I Wu9ab61502015-11-06 06:42:02 +08002496VKAPI_ATTR VkResult VKAPI_CALL vkQueueWaitIdle(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002497 VkQueue queue);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002498
Chia-I Wu9ab61502015-11-06 06:42:02 +08002499VKAPI_ATTR VkResult VKAPI_CALL vkDeviceWaitIdle(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002500 VkDevice device);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002501
Chia-I Wu9ab61502015-11-06 06:42:02 +08002502VKAPI_ATTR VkResult VKAPI_CALL vkAllocateMemory(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002503 VkDevice device,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002504 const VkMemoryAllocateInfo* pAllocateInfo,
2505 const VkAllocationCallbacks* pAllocator,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08002506 VkDeviceMemory* pMemory);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002507
Chia-I Wu9ab61502015-11-06 06:42:02 +08002508VKAPI_ATTR void VKAPI_CALL vkFreeMemory(
Mike Stroyanb050c682015-04-17 12:36:38 -06002509 VkDevice device,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002510 VkDeviceMemory memory,
2511 const VkAllocationCallbacks* pAllocator);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002512
Chia-I Wu9ab61502015-11-06 06:42:02 +08002513VKAPI_ATTR VkResult VKAPI_CALL vkMapMemory(
Mike Stroyanb050c682015-04-17 12:36:38 -06002514 VkDevice device,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002515 VkDeviceMemory memory,
Tony Barbour71a85122015-04-16 19:09:28 -06002516 VkDeviceSize offset,
2517 VkDeviceSize size,
Tony Barbourd1c35722015-04-16 15:59:00 -06002518 VkMemoryMapFlags flags,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002519 void** ppData);
2520
Chia-I Wu9ab61502015-11-06 06:42:02 +08002521VKAPI_ATTR void VKAPI_CALL vkUnmapMemory(
Mike Stroyanb050c682015-04-17 12:36:38 -06002522 VkDevice device,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002523 VkDeviceMemory memory);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002524
Chia-I Wu9ab61502015-11-06 06:42:02 +08002525VKAPI_ATTR VkResult VKAPI_CALL vkFlushMappedMemoryRanges(
Mike Stroyanb050c682015-04-17 12:36:38 -06002526 VkDevice device,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08002527 uint32_t memoryRangeCount,
2528 const VkMappedMemoryRange* pMemoryRanges);
Courtney Goeltzenleuchterf69f8a22015-04-29 17:16:21 -06002529
Chia-I Wu9ab61502015-11-06 06:42:02 +08002530VKAPI_ATTR VkResult VKAPI_CALL vkInvalidateMappedMemoryRanges(
Courtney Goeltzenleuchterf69f8a22015-04-29 17:16:21 -06002531 VkDevice device,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08002532 uint32_t memoryRangeCount,
2533 const VkMappedMemoryRange* pMemoryRanges);
Tony Barbourb1250542015-04-16 19:23:13 -06002534
Chia-I Wu9ab61502015-11-06 06:42:02 +08002535VKAPI_ATTR void VKAPI_CALL vkGetDeviceMemoryCommitment(
Courtney Goeltzenleuchterfb71f222015-07-09 21:57:28 -06002536 VkDevice device,
2537 VkDeviceMemory memory,
2538 VkDeviceSize* pCommittedMemoryInBytes);
2539
Chia-I Wu9ab61502015-11-06 06:42:02 +08002540VKAPI_ATTR VkResult VKAPI_CALL vkBindBufferMemory(
Mark Lobodzinski942b1722015-05-11 17:21:15 -05002541 VkDevice device,
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002542 VkBuffer buffer,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002543 VkDeviceMemory memory,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08002544 VkDeviceSize memoryOffset);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002545
Chia-I Wu9ab61502015-11-06 06:42:02 +08002546VKAPI_ATTR VkResult VKAPI_CALL vkBindImageMemory(
Tony Barbour59a47322015-06-24 16:06:58 -06002547 VkDevice device,
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002548 VkImage image,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002549 VkDeviceMemory memory,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08002550 VkDeviceSize memoryOffset);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002551
Chia-I Wu9ab61502015-11-06 06:42:02 +08002552VKAPI_ATTR void VKAPI_CALL vkGetBufferMemoryRequirements(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002553 VkDevice device,
2554 VkBuffer buffer,
2555 VkMemoryRequirements* pMemoryRequirements);
2556
Chia-I Wu9ab61502015-11-06 06:42:02 +08002557VKAPI_ATTR void VKAPI_CALL vkGetImageMemoryRequirements(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002558 VkDevice device,
2559 VkImage image,
Tony Barbour59a47322015-06-24 16:06:58 -06002560 VkMemoryRequirements* pMemoryRequirements);
2561
Chia-I Wu9ab61502015-11-06 06:42:02 +08002562VKAPI_ATTR void VKAPI_CALL vkGetImageSparseMemoryRequirements(
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -06002563 VkDevice device,
2564 VkImage image,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002565 uint32_t* pSparseMemoryRequirementCount,
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -06002566 VkSparseImageMemoryRequirements* pSparseMemoryRequirements);
2567
Chia-I Wu9ab61502015-11-06 06:42:02 +08002568VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties(
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -06002569 VkPhysicalDevice physicalDevice,
2570 VkFormat format,
2571 VkImageType type,
Chia-I Wu5c17c962015-10-31 00:31:16 +08002572 VkSampleCountFlagBits samples,
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -06002573 VkImageUsageFlags usage,
2574 VkImageTiling tiling,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002575 uint32_t* pPropertyCount,
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -06002576 VkSparseImageFormatProperties* pProperties);
2577
Chia-I Wu9ab61502015-11-06 06:42:02 +08002578VKAPI_ATTR VkResult VKAPI_CALL vkQueueBindSparse(
Mark Lobodzinski40f7f402015-04-16 11:44:05 -05002579 VkQueue queue,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002580 uint32_t bindInfoCount,
Chia-I Wu1ff4c3d2015-10-26 16:55:27 +08002581 const VkBindSparseInfo* pBindInfo,
2582 VkFence fence);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002583
Chia-I Wu9ab61502015-11-06 06:42:02 +08002584VKAPI_ATTR VkResult VKAPI_CALL vkCreateFence(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002585 VkDevice device,
2586 const VkFenceCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002587 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002588 VkFence* pFence);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002589
Chia-I Wu9ab61502015-11-06 06:42:02 +08002590VKAPI_ATTR void VKAPI_CALL vkDestroyFence(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002591 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002592 VkFence fence,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002593 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002594
Chia-I Wu9ab61502015-11-06 06:42:02 +08002595VKAPI_ATTR VkResult VKAPI_CALL vkResetFences(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002596 VkDevice device,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002597 uint32_t fenceCount,
Courtney Goeltzenleuchter2bf8f902015-06-18 17:28:20 -06002598 const VkFence* pFences);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002599
Chia-I Wu9ab61502015-11-06 06:42:02 +08002600VKAPI_ATTR VkResult VKAPI_CALL vkGetFenceStatus(
Mike Stroyanb050c682015-04-17 12:36:38 -06002601 VkDevice device,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002602 VkFence fence);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002603
Chia-I Wu9ab61502015-11-06 06:42:02 +08002604VKAPI_ATTR VkResult VKAPI_CALL vkWaitForFences(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002605 VkDevice device,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002606 uint32_t fenceCount,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002607 const VkFence* pFences,
Courtney Goeltzenleuchtercd2a0992015-07-09 11:44:38 -06002608 VkBool32 waitAll,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002609 uint64_t timeout);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002610
Chia-I Wu9ab61502015-11-06 06:42:02 +08002611VKAPI_ATTR VkResult VKAPI_CALL vkCreateSemaphore(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002612 VkDevice device,
2613 const VkSemaphoreCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002614 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002615 VkSemaphore* pSemaphore);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002616
Chia-I Wu9ab61502015-11-06 06:42:02 +08002617VKAPI_ATTR void VKAPI_CALL vkDestroySemaphore(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002618 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002619 VkSemaphore semaphore,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002620 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002621
Chia-I Wu9ab61502015-11-06 06:42:02 +08002622VKAPI_ATTR VkResult VKAPI_CALL vkCreateEvent(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002623 VkDevice device,
2624 const VkEventCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002625 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002626 VkEvent* pEvent);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002627
Chia-I Wu9ab61502015-11-06 06:42:02 +08002628VKAPI_ATTR void VKAPI_CALL vkDestroyEvent(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002629 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002630 VkEvent event,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002631 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002632
Chia-I Wu9ab61502015-11-06 06:42:02 +08002633VKAPI_ATTR VkResult VKAPI_CALL vkGetEventStatus(
Mike Stroyanb050c682015-04-17 12:36:38 -06002634 VkDevice device,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002635 VkEvent event);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002636
Chia-I Wu9ab61502015-11-06 06:42:02 +08002637VKAPI_ATTR VkResult VKAPI_CALL vkSetEvent(
Mike Stroyanb050c682015-04-17 12:36:38 -06002638 VkDevice device,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002639 VkEvent event);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002640
Chia-I Wu9ab61502015-11-06 06:42:02 +08002641VKAPI_ATTR VkResult VKAPI_CALL vkResetEvent(
Mike Stroyanb050c682015-04-17 12:36:38 -06002642 VkDevice device,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002643 VkEvent event);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002644
Chia-I Wu9ab61502015-11-06 06:42:02 +08002645VKAPI_ATTR VkResult VKAPI_CALL vkCreateQueryPool(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002646 VkDevice device,
2647 const VkQueryPoolCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002648 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002649 VkQueryPool* pQueryPool);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002650
Chia-I Wu9ab61502015-11-06 06:42:02 +08002651VKAPI_ATTR void VKAPI_CALL vkDestroyQueryPool(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002652 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002653 VkQueryPool queryPool,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002654 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002655
Chia-I Wu9ab61502015-11-06 06:42:02 +08002656VKAPI_ATTR VkResult VKAPI_CALL vkGetQueryPoolResults(
Mike Stroyanb050c682015-04-17 12:36:38 -06002657 VkDevice device,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002658 VkQueryPool queryPool,
Jon Ashburn19d3bf12015-12-30 14:06:55 -07002659 uint32_t firstQuery,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002660 uint32_t queryCount,
Chia-I Wuccc93a72015-10-26 18:36:20 +08002661 size_t dataSize,
Tony Barbourd1c35722015-04-16 15:59:00 -06002662 void* pData,
Chia-I Wuccc93a72015-10-26 18:36:20 +08002663 VkDeviceSize stride,
Tony Barbourd1c35722015-04-16 15:59:00 -06002664 VkQueryResultFlags flags);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002665
Chia-I Wu9ab61502015-11-06 06:42:02 +08002666VKAPI_ATTR VkResult VKAPI_CALL vkCreateBuffer(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002667 VkDevice device,
2668 const VkBufferCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002669 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002670 VkBuffer* pBuffer);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002671
Chia-I Wu9ab61502015-11-06 06:42:02 +08002672VKAPI_ATTR void VKAPI_CALL vkDestroyBuffer(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002673 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002674 VkBuffer buffer,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002675 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002676
Chia-I Wu9ab61502015-11-06 06:42:02 +08002677VKAPI_ATTR VkResult VKAPI_CALL vkCreateBufferView(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002678 VkDevice device,
2679 const VkBufferViewCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002680 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002681 VkBufferView* pView);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002682
Chia-I Wu9ab61502015-11-06 06:42:02 +08002683VKAPI_ATTR void VKAPI_CALL vkDestroyBufferView(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002684 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002685 VkBufferView bufferView,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002686 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002687
Chia-I Wu9ab61502015-11-06 06:42:02 +08002688VKAPI_ATTR VkResult VKAPI_CALL vkCreateImage(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002689 VkDevice device,
2690 const VkImageCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002691 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002692 VkImage* pImage);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002693
Chia-I Wu9ab61502015-11-06 06:42:02 +08002694VKAPI_ATTR void VKAPI_CALL vkDestroyImage(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002695 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002696 VkImage image,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002697 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002698
Chia-I Wu9ab61502015-11-06 06:42:02 +08002699VKAPI_ATTR void VKAPI_CALL vkGetImageSubresourceLayout(
Mike Stroyanb050c682015-04-17 12:36:38 -06002700 VkDevice device,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002701 VkImage image,
2702 const VkImageSubresource* pSubresource,
Tony Barbour59a47322015-06-24 16:06:58 -06002703 VkSubresourceLayout* pLayout);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002704
Chia-I Wu9ab61502015-11-06 06:42:02 +08002705VKAPI_ATTR VkResult VKAPI_CALL vkCreateImageView(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002706 VkDevice device,
2707 const VkImageViewCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002708 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002709 VkImageView* pView);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002710
Chia-I Wu9ab61502015-11-06 06:42:02 +08002711VKAPI_ATTR void VKAPI_CALL vkDestroyImageView(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002712 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002713 VkImageView imageView,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002714 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002715
Chia-I Wu9ab61502015-11-06 06:42:02 +08002716VKAPI_ATTR VkResult VKAPI_CALL vkCreateShaderModule(
Courtney Goeltzenleuchtera607df12015-06-18 21:49:59 -06002717 VkDevice device,
2718 const VkShaderModuleCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002719 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchtera607df12015-06-18 21:49:59 -06002720 VkShaderModule* pShaderModule);
2721
Chia-I Wu9ab61502015-11-06 06:42:02 +08002722VKAPI_ATTR void VKAPI_CALL vkDestroyShaderModule(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002723 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002724 VkShaderModule shaderModule,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002725 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002726
Chia-I Wu9ab61502015-11-06 06:42:02 +08002727VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineCache(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002728 VkDevice device,
Jon Ashburnc669cc62015-07-09 15:02:25 -06002729 const VkPipelineCacheCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002730 const VkAllocationCallbacks* pAllocator,
Jon Ashburnc669cc62015-07-09 15:02:25 -06002731 VkPipelineCache* pPipelineCache);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002732
Chia-I Wu9ab61502015-11-06 06:42:02 +08002733VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineCache(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002734 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002735 VkPipelineCache pipelineCache,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002736 const VkAllocationCallbacks* pAllocator);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002737
Chia-I Wu9ab61502015-11-06 06:42:02 +08002738VKAPI_ATTR VkResult VKAPI_CALL vkGetPipelineCacheData(
Mike Stroyanb050c682015-04-17 12:36:38 -06002739 VkDevice device,
Jon Ashburnc669cc62015-07-09 15:02:25 -06002740 VkPipelineCache pipelineCache,
Chia-I Wub16facd2015-10-26 19:17:06 +08002741 size_t* pDataSize,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002742 void* pData);
2743
Chia-I Wu9ab61502015-11-06 06:42:02 +08002744VKAPI_ATTR VkResult VKAPI_CALL vkMergePipelineCaches(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002745 VkDevice device,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08002746 VkPipelineCache dstCache,
Jon Ashburnc669cc62015-07-09 15:02:25 -06002747 uint32_t srcCacheCount,
2748 const VkPipelineCache* pSrcCaches);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002749
Chia-I Wu9ab61502015-11-06 06:42:02 +08002750VKAPI_ATTR VkResult VKAPI_CALL vkCreateGraphicsPipelines(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002751 VkDevice device,
Jon Ashburnc669cc62015-07-09 15:02:25 -06002752 VkPipelineCache pipelineCache,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002753 uint32_t createInfoCount,
Jon Ashburnc669cc62015-07-09 15:02:25 -06002754 const VkGraphicsPipelineCreateInfo* pCreateInfos,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002755 const VkAllocationCallbacks* pAllocator,
Jon Ashburnc669cc62015-07-09 15:02:25 -06002756 VkPipeline* pPipelines);
2757
Chia-I Wu9ab61502015-11-06 06:42:02 +08002758VKAPI_ATTR VkResult VKAPI_CALL vkCreateComputePipelines(
Jon Ashburnc669cc62015-07-09 15:02:25 -06002759 VkDevice device,
2760 VkPipelineCache pipelineCache,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002761 uint32_t createInfoCount,
Jon Ashburnc669cc62015-07-09 15:02:25 -06002762 const VkComputePipelineCreateInfo* pCreateInfos,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002763 const VkAllocationCallbacks* pAllocator,
Jon Ashburnc669cc62015-07-09 15:02:25 -06002764 VkPipeline* pPipelines);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002765
Chia-I Wu9ab61502015-11-06 06:42:02 +08002766VKAPI_ATTR void VKAPI_CALL vkDestroyPipeline(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002767 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002768 VkPipeline pipeline,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002769 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002770
Chia-I Wu9ab61502015-11-06 06:42:02 +08002771VKAPI_ATTR VkResult VKAPI_CALL vkCreatePipelineLayout(
Mark Lobodzinski0fadf5f2015-04-17 14:11:39 -05002772 VkDevice device,
2773 const VkPipelineLayoutCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002774 const VkAllocationCallbacks* pAllocator,
Mark Lobodzinski0fadf5f2015-04-17 14:11:39 -05002775 VkPipelineLayout* pPipelineLayout);
2776
Chia-I Wu9ab61502015-11-06 06:42:02 +08002777VKAPI_ATTR void VKAPI_CALL vkDestroyPipelineLayout(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002778 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002779 VkPipelineLayout pipelineLayout,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002780 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002781
Chia-I Wu9ab61502015-11-06 06:42:02 +08002782VKAPI_ATTR VkResult VKAPI_CALL vkCreateSampler(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002783 VkDevice device,
2784 const VkSamplerCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002785 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002786 VkSampler* pSampler);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002787
Chia-I Wu9ab61502015-11-06 06:42:02 +08002788VKAPI_ATTR void VKAPI_CALL vkDestroySampler(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002789 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002790 VkSampler sampler,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002791 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002792
Chia-I Wu9ab61502015-11-06 06:42:02 +08002793VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorSetLayout(
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06002794 VkDevice device,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002795 const VkDescriptorSetLayoutCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002796 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002797 VkDescriptorSetLayout* pSetLayout);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002798
Chia-I Wu9ab61502015-11-06 06:42:02 +08002799VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorSetLayout(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002800 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002801 VkDescriptorSetLayout descriptorSetLayout,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002802 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002803
Chia-I Wu9ab61502015-11-06 06:42:02 +08002804VKAPI_ATTR VkResult VKAPI_CALL vkCreateDescriptorPool(
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06002805 VkDevice device,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002806 const VkDescriptorPoolCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002807 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002808 VkDescriptorPool* pDescriptorPool);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002809
Chia-I Wu9ab61502015-11-06 06:42:02 +08002810VKAPI_ATTR void VKAPI_CALL vkDestroyDescriptorPool(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002811 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002812 VkDescriptorPool descriptorPool,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002813 const VkAllocationCallbacks* pAllocator);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002814
Chia-I Wu9ab61502015-11-06 06:42:02 +08002815VKAPI_ATTR VkResult VKAPI_CALL vkResetDescriptorPool(
Mike Stroyanb050c682015-04-17 12:36:38 -06002816 VkDevice device,
Courtney Goeltzenleuchterbee18a92015-10-23 14:21:05 -06002817 VkDescriptorPool descriptorPool,
2818 VkDescriptorPoolResetFlags flags);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002819
Chia-I Wu9ab61502015-11-06 06:42:02 +08002820VKAPI_ATTR VkResult VKAPI_CALL vkAllocateDescriptorSets(
Mike Stroyanb050c682015-04-17 12:36:38 -06002821 VkDevice device,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002822 const VkDescriptorSetAllocateInfo* pAllocateInfo,
Cody Northrop1e4f8022015-08-03 12:47:29 -06002823 VkDescriptorSet* pDescriptorSets);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002824
Chia-I Wu9ab61502015-11-06 06:42:02 +08002825VKAPI_ATTR VkResult VKAPI_CALL vkFreeDescriptorSets(
Tony Barbour34ec6922015-07-10 10:50:45 -06002826 VkDevice device,
2827 VkDescriptorPool descriptorPool,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002828 uint32_t descriptorSetCount,
Tony Barbour34ec6922015-07-10 10:50:45 -06002829 const VkDescriptorSet* pDescriptorSets);
2830
Chia-I Wu9ab61502015-11-06 06:42:02 +08002831VKAPI_ATTR void VKAPI_CALL vkUpdateDescriptorSets(
Mike Stroyanb050c682015-04-17 12:36:38 -06002832 VkDevice device,
Chia-I Wu40cf0ae2015-10-26 17:20:32 +08002833 uint32_t descriptorWriteCount,
Chia-I Wu9d00ed72015-05-25 16:27:55 +08002834 const VkWriteDescriptorSet* pDescriptorWrites,
Chia-I Wu40cf0ae2015-10-26 17:20:32 +08002835 uint32_t descriptorCopyCount,
Chia-I Wu9d00ed72015-05-25 16:27:55 +08002836 const VkCopyDescriptorSet* pDescriptorCopies);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002837
Chia-I Wu9ab61502015-11-06 06:42:02 +08002838VKAPI_ATTR VkResult VKAPI_CALL vkCreateFramebuffer(
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002839 VkDevice device,
2840 const VkFramebufferCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002841 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002842 VkFramebuffer* pFramebuffer);
2843
Chia-I Wu9ab61502015-11-06 06:42:02 +08002844VKAPI_ATTR void VKAPI_CALL vkDestroyFramebuffer(
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002845 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002846 VkFramebuffer framebuffer,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002847 const VkAllocationCallbacks* pAllocator);
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002848
Chia-I Wu9ab61502015-11-06 06:42:02 +08002849VKAPI_ATTR VkResult VKAPI_CALL vkCreateRenderPass(
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002850 VkDevice device,
2851 const VkRenderPassCreateInfo* pCreateInfo,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002852 const VkAllocationCallbacks* pAllocator,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002853 VkRenderPass* pRenderPass);
2854
Chia-I Wu9ab61502015-11-06 06:42:02 +08002855VKAPI_ATTR void VKAPI_CALL vkDestroyRenderPass(
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002856 VkDevice device,
Chia-I Wuf7458c52015-10-26 21:10:41 +08002857 VkRenderPass renderPass,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002858 const VkAllocationCallbacks* pAllocator);
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002859
Chia-I Wu9ab61502015-11-06 06:42:02 +08002860VKAPI_ATTR void VKAPI_CALL vkGetRenderAreaGranularity(
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06002861 VkDevice device,
2862 VkRenderPass renderPass,
2863 VkExtent2D* pGranularity);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002864
Chia-I Wu9ab61502015-11-06 06:42:02 +08002865VKAPI_ATTR VkResult VKAPI_CALL vkCreateCommandPool(
Cody Northrope62183e2015-07-09 18:08:05 -06002866 VkDevice device,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002867 const VkCommandPoolCreateInfo* pCreateInfo,
2868 const VkAllocationCallbacks* pAllocator,
2869 VkCommandPool* pCommandPool);
Cody Northrope62183e2015-07-09 18:08:05 -06002870
Chia-I Wu9ab61502015-11-06 06:42:02 +08002871VKAPI_ATTR void VKAPI_CALL vkDestroyCommandPool(
Cody Northrope62183e2015-07-09 18:08:05 -06002872 VkDevice device,
Chia-I Wuaed8ca92015-10-27 18:59:16 +08002873 VkCommandPool commandPool,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002874 const VkAllocationCallbacks* pAllocator);
Cody Northrope62183e2015-07-09 18:08:05 -06002875
Chia-I Wu9ab61502015-11-06 06:42:02 +08002876VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandPool(
Cody Northrope62183e2015-07-09 18:08:05 -06002877 VkDevice device,
Chia-I Wuaed8ca92015-10-27 18:59:16 +08002878 VkCommandPool commandPool,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002879 VkCommandPoolResetFlags flags);
Cody Northrope62183e2015-07-09 18:08:05 -06002880
Chia-I Wu9ab61502015-11-06 06:42:02 +08002881VKAPI_ATTR VkResult VKAPI_CALL vkAllocateCommandBuffers(
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002882 VkDevice device,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002883 const VkCommandBufferAllocateInfo* pAllocateInfo,
2884 VkCommandBuffer* pCommandBuffers);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002885
Chia-I Wu9ab61502015-11-06 06:42:02 +08002886VKAPI_ATTR void VKAPI_CALL vkFreeCommandBuffers(
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002887 VkDevice device,
Chia-I Wuaed8ca92015-10-27 18:59:16 +08002888 VkCommandPool commandPool,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002889 uint32_t commandBufferCount,
Chia-I Wubb7fad92015-10-27 17:53:18 +08002890 const VkCommandBuffer* pCommandBuffers);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002891
Chia-I Wu9ab61502015-11-06 06:42:02 +08002892VKAPI_ATTR VkResult VKAPI_CALL vkBeginCommandBuffer(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002893 VkCommandBuffer commandBuffer,
2894 const VkCommandBufferBeginInfo* pBeginInfo);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002895
Chia-I Wu9ab61502015-11-06 06:42:02 +08002896VKAPI_ATTR VkResult VKAPI_CALL vkEndCommandBuffer(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002897 VkCommandBuffer commandBuffer);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002898
Chia-I Wu9ab61502015-11-06 06:42:02 +08002899VKAPI_ATTR VkResult VKAPI_CALL vkResetCommandBuffer(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002900 VkCommandBuffer commandBuffer,
2901 VkCommandBufferResetFlags flags);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002902
Chia-I Wu9ab61502015-11-06 06:42:02 +08002903VKAPI_ATTR void VKAPI_CALL vkCmdBindPipeline(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002904 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002905 VkPipelineBindPoint pipelineBindPoint,
2906 VkPipeline pipeline);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002907
Chia-I Wu9ab61502015-11-06 06:42:02 +08002908VKAPI_ATTR void VKAPI_CALL vkCmdSetViewport(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002909 VkCommandBuffer commandBuffer,
Jon Ashburn19d3bf12015-12-30 14:06:55 -07002910 uint32_t firstViewport,
Courtney Goeltzenleuchter078f8172015-09-21 11:44:06 -06002911 uint32_t viewportCount,
2912 const VkViewport* pViewports);
2913
Chia-I Wu9ab61502015-11-06 06:42:02 +08002914VKAPI_ATTR void VKAPI_CALL vkCmdSetScissor(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002915 VkCommandBuffer commandBuffer,
Jon Ashburn19d3bf12015-12-30 14:06:55 -07002916 uint32_t firstScissor,
Courtney Goeltzenleuchter078f8172015-09-21 11:44:06 -06002917 uint32_t scissorCount,
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06002918 const VkRect2D* pScissors);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002919
Chia-I Wu9ab61502015-11-06 06:42:02 +08002920VKAPI_ATTR void VKAPI_CALL vkCmdSetLineWidth(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002921 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06002922 float lineWidth);
Cody Northrop12365112015-08-17 11:10:49 -06002923
Chia-I Wu9ab61502015-11-06 06:42:02 +08002924VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBias(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002925 VkCommandBuffer commandBuffer,
Chia-I Wud8c946a2015-10-26 19:08:09 +08002926 float depthBiasConstantFactor,
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06002927 float depthBiasClamp,
Chia-I Wud8c946a2015-10-26 19:08:09 +08002928 float depthBiasSlopeFactor);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002929
Chia-I Wu9ab61502015-11-06 06:42:02 +08002930VKAPI_ATTR void VKAPI_CALL vkCmdSetBlendConstants(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002931 VkCommandBuffer commandBuffer,
Chia-I Wu2bfb33c2015-10-26 17:24:52 +08002932 const float blendConstants[4]);
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06002933
Chia-I Wu9ab61502015-11-06 06:42:02 +08002934VKAPI_ATTR void VKAPI_CALL vkCmdSetDepthBounds(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002935 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06002936 float minDepthBounds,
2937 float maxDepthBounds);
Cody Northrop82485a82015-08-18 15:21:16 -06002938
Chia-I Wu9ab61502015-11-06 06:42:02 +08002939VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilCompareMask(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002940 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06002941 VkStencilFaceFlags faceMask,
Chia-I Wu1b99bb22015-10-27 19:25:11 +08002942 uint32_t compareMask);
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06002943
Chia-I Wu9ab61502015-11-06 06:42:02 +08002944VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilWriteMask(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002945 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06002946 VkStencilFaceFlags faceMask,
Chia-I Wu1b99bb22015-10-27 19:25:11 +08002947 uint32_t writeMask);
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06002948
Chia-I Wu9ab61502015-11-06 06:42:02 +08002949VKAPI_ATTR void VKAPI_CALL vkCmdSetStencilReference(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002950 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchter49c73082015-09-17 15:06:17 -06002951 VkStencilFaceFlags faceMask,
Chia-I Wu1b99bb22015-10-27 19:25:11 +08002952 uint32_t reference);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002953
Chia-I Wu9ab61502015-11-06 06:42:02 +08002954VKAPI_ATTR void VKAPI_CALL vkCmdBindDescriptorSets(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002955 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002956 VkPipelineBindPoint pipelineBindPoint,
Mark Lobodzinskif2093b62015-06-15 13:21:21 -06002957 VkPipelineLayout layout,
Cody Northropd4c1a502015-04-16 13:41:56 -06002958 uint32_t firstSet,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002959 uint32_t descriptorSetCount,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002960 const VkDescriptorSet* pDescriptorSets,
Cody Northropd4c1a502015-04-16 13:41:56 -06002961 uint32_t dynamicOffsetCount,
2962 const uint32_t* pDynamicOffsets);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002963
Chia-I Wu9ab61502015-11-06 06:42:02 +08002964VKAPI_ATTR void VKAPI_CALL vkCmdBindIndexBuffer(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002965 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002966 VkBuffer buffer,
Tony Barbourd1c35722015-04-16 15:59:00 -06002967 VkDeviceSize offset,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002968 VkIndexType indexType);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002969
Chia-I Wu9ab61502015-11-06 06:42:02 +08002970VKAPI_ATTR void VKAPI_CALL vkCmdBindVertexBuffers(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002971 VkCommandBuffer commandBuffer,
Jon Ashburn19d3bf12015-12-30 14:06:55 -07002972 uint32_t firstBinding,
Courtney Goeltzenleuchterf68ad722015-04-16 13:38:46 -06002973 uint32_t bindingCount,
2974 const VkBuffer* pBuffers,
Tony Barbourd1c35722015-04-16 15:59:00 -06002975 const VkDeviceSize* pOffsets);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002976
Chia-I Wu9ab61502015-11-06 06:42:02 +08002977VKAPI_ATTR void VKAPI_CALL vkCmdDraw(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002978 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002979 uint32_t vertexCount,
Courtney Goeltzenleuchter08c26372015-09-23 12:31:50 -06002980 uint32_t instanceCount,
2981 uint32_t firstVertex,
2982 uint32_t firstInstance);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002983
Chia-I Wu9ab61502015-11-06 06:42:02 +08002984VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexed(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002985 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002986 uint32_t indexCount,
Courtney Goeltzenleuchter08c26372015-09-23 12:31:50 -06002987 uint32_t instanceCount,
2988 uint32_t firstIndex,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002989 int32_t vertexOffset,
Courtney Goeltzenleuchter08c26372015-09-23 12:31:50 -06002990 uint32_t firstInstance);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002991
Chia-I Wu9ab61502015-11-06 06:42:02 +08002992VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndirect(
Chia-I Wubb7fad92015-10-27 17:53:18 +08002993 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06002994 VkBuffer buffer,
Tony Barbourd1c35722015-04-16 15:59:00 -06002995 VkDeviceSize offset,
Chia-I Wud50a7d72015-10-26 20:48:51 +08002996 uint32_t drawCount,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06002997 uint32_t stride);
2998
Chia-I Wu9ab61502015-11-06 06:42:02 +08002999VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexedIndirect(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003000 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003001 VkBuffer buffer,
Tony Barbourd1c35722015-04-16 15:59:00 -06003002 VkDeviceSize offset,
Chia-I Wud50a7d72015-10-26 20:48:51 +08003003 uint32_t drawCount,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003004 uint32_t stride);
3005
Chia-I Wu9ab61502015-11-06 06:42:02 +08003006VKAPI_ATTR void VKAPI_CALL vkCmdDispatch(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003007 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003008 uint32_t x,
3009 uint32_t y,
3010 uint32_t z);
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003011
Chia-I Wu9ab61502015-11-06 06:42:02 +08003012VKAPI_ATTR void VKAPI_CALL vkCmdDispatchIndirect(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003013 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003014 VkBuffer buffer,
Tony Barbourd1c35722015-04-16 15:59:00 -06003015 VkDeviceSize offset);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003016
Chia-I Wu9ab61502015-11-06 06:42:02 +08003017VKAPI_ATTR void VKAPI_CALL vkCmdCopyBuffer(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003018 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003019 VkBuffer srcBuffer,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08003020 VkBuffer dstBuffer,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003021 uint32_t regionCount,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003022 const VkBufferCopy* pRegions);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003023
Chia-I Wu9ab61502015-11-06 06:42:02 +08003024VKAPI_ATTR void VKAPI_CALL vkCmdCopyImage(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003025 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003026 VkImage srcImage,
3027 VkImageLayout srcImageLayout,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08003028 VkImage dstImage,
3029 VkImageLayout dstImageLayout,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003030 uint32_t regionCount,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003031 const VkImageCopy* pRegions);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003032
Chia-I Wu9ab61502015-11-06 06:42:02 +08003033VKAPI_ATTR void VKAPI_CALL vkCmdBlitImage(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003034 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003035 VkImage srcImage,
3036 VkImageLayout srcImageLayout,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08003037 VkImage dstImage,
3038 VkImageLayout dstImageLayout,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003039 uint32_t regionCount,
Mark Lobodzinskiee5eef12015-05-22 14:43:25 -05003040 const VkImageBlit* pRegions,
Chia-I Wub99df442015-10-26 16:49:32 +08003041 VkFilter filter);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003042
Chia-I Wu9ab61502015-11-06 06:42:02 +08003043VKAPI_ATTR void VKAPI_CALL vkCmdCopyBufferToImage(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003044 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003045 VkBuffer srcBuffer,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08003046 VkImage dstImage,
3047 VkImageLayout dstImageLayout,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003048 uint32_t regionCount,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003049 const VkBufferImageCopy* pRegions);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003050
Chia-I Wu9ab61502015-11-06 06:42:02 +08003051VKAPI_ATTR void VKAPI_CALL vkCmdCopyImageToBuffer(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003052 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003053 VkImage srcImage,
3054 VkImageLayout srcImageLayout,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08003055 VkBuffer dstBuffer,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003056 uint32_t regionCount,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003057 const VkBufferImageCopy* pRegions);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003058
Chia-I Wu9ab61502015-11-06 06:42:02 +08003059VKAPI_ATTR void VKAPI_CALL vkCmdUpdateBuffer(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003060 VkCommandBuffer commandBuffer,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08003061 VkBuffer dstBuffer,
3062 VkDeviceSize dstOffset,
Tony Barbourd1c35722015-04-16 15:59:00 -06003063 VkDeviceSize dataSize,
Karl Schultzee344492016-07-11 15:09:57 -06003064 const void* pData);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003065
Chia-I Wu9ab61502015-11-06 06:42:02 +08003066VKAPI_ATTR void VKAPI_CALL vkCmdFillBuffer(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003067 VkCommandBuffer commandBuffer,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08003068 VkBuffer dstBuffer,
3069 VkDeviceSize dstOffset,
Chia-I Wu2bfb33c2015-10-26 17:24:52 +08003070 VkDeviceSize size,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003071 uint32_t data);
3072
Chia-I Wu9ab61502015-11-06 06:42:02 +08003073VKAPI_ATTR void VKAPI_CALL vkCmdClearColorImage(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003074 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003075 VkImage image,
3076 VkImageLayout imageLayout,
Chris Forbesf0796e12015-06-24 14:34:53 +12003077 const VkClearColorValue* pColor,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003078 uint32_t rangeCount,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003079 const VkImageSubresourceRange* pRanges);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003080
Chia-I Wu9ab61502015-11-06 06:42:02 +08003081VKAPI_ATTR void VKAPI_CALL vkCmdClearDepthStencilImage(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003082 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003083 VkImage image,
3084 VkImageLayout imageLayout,
Courtney Goeltzenleuchter45df9e12015-09-15 18:03:22 -06003085 const VkClearDepthStencilValue* pDepthStencil,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003086 uint32_t rangeCount,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003087 const VkImageSubresourceRange* pRanges);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003088
Chia-I Wu9ab61502015-11-06 06:42:02 +08003089VKAPI_ATTR void VKAPI_CALL vkCmdClearAttachments(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003090 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchterc9323e02015-10-15 16:51:05 -06003091 uint32_t attachmentCount,
3092 const VkClearAttachment* pAttachments,
Chris Forbesd9be82b2015-06-22 17:21:59 +12003093 uint32_t rectCount,
Courtney Goeltzenleuchter4ca43f62015-10-15 18:22:08 -06003094 const VkClearRect* pRects);
Chris Forbesd9be82b2015-06-22 17:21:59 +12003095
Chia-I Wu9ab61502015-11-06 06:42:02 +08003096VKAPI_ATTR void VKAPI_CALL vkCmdResolveImage(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003097 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003098 VkImage srcImage,
3099 VkImageLayout srcImageLayout,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08003100 VkImage dstImage,
3101 VkImageLayout dstImageLayout,
Tony Barbour6865d4a2015-04-13 15:02:52 -06003102 uint32_t regionCount,
3103 const VkImageResolve* pRegions);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003104
Chia-I Wu9ab61502015-11-06 06:42:02 +08003105VKAPI_ATTR void VKAPI_CALL vkCmdSetEvent(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003106 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003107 VkEvent event,
Tony Barbour0b2cfb22015-06-29 16:20:35 -06003108 VkPipelineStageFlags stageMask);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003109
Chia-I Wu9ab61502015-11-06 06:42:02 +08003110VKAPI_ATTR void VKAPI_CALL vkCmdResetEvent(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003111 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003112 VkEvent event,
Tony Barbour0b2cfb22015-06-29 16:20:35 -06003113 VkPipelineStageFlags stageMask);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003114
Chia-I Wu9ab61502015-11-06 06:42:02 +08003115VKAPI_ATTR void VKAPI_CALL vkCmdWaitEvents(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003116 VkCommandBuffer commandBuffer,
Tony Barbourd1c35722015-04-16 15:59:00 -06003117 uint32_t eventCount,
3118 const VkEvent* pEvents,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06003119 VkPipelineStageFlags srcStageMask,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08003120 VkPipelineStageFlags dstStageMask,
3121 uint32_t memoryBarrierCount,
Jon Ashburnf19916e2016-01-11 13:12:43 -07003122 const VkMemoryBarrier* pMemoryBarriers,
3123 uint32_t bufferMemoryBarrierCount,
3124 const VkBufferMemoryBarrier* pBufferMemoryBarriers,
3125 uint32_t imageMemoryBarrierCount,
3126 const VkImageMemoryBarrier* pImageMemoryBarriers);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003127
Chia-I Wu9ab61502015-11-06 06:42:02 +08003128VKAPI_ATTR void VKAPI_CALL vkCmdPipelineBarrier(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003129 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06003130 VkPipelineStageFlags srcStageMask,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08003131 VkPipelineStageFlags dstStageMask,
Chia-I Wu53534662015-10-26 17:08:33 +08003132 VkDependencyFlags dependencyFlags,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08003133 uint32_t memoryBarrierCount,
Jon Ashburnf19916e2016-01-11 13:12:43 -07003134 const VkMemoryBarrier* pMemoryBarriers,
3135 uint32_t bufferMemoryBarrierCount,
3136 const VkBufferMemoryBarrier* pBufferMemoryBarriers,
3137 uint32_t imageMemoryBarrierCount,
3138 const VkImageMemoryBarrier* pImageMemoryBarriers);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003139
Chia-I Wu9ab61502015-11-06 06:42:02 +08003140VKAPI_ATTR void VKAPI_CALL vkCmdBeginQuery(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003141 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003142 VkQueryPool queryPool,
Jon Ashburnf19916e2016-01-11 13:12:43 -07003143 uint32_t query,
Tony Barbourd1c35722015-04-16 15:59:00 -06003144 VkQueryControlFlags flags);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003145
Chia-I Wu9ab61502015-11-06 06:42:02 +08003146VKAPI_ATTR void VKAPI_CALL vkCmdEndQuery(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003147 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003148 VkQueryPool queryPool,
Jon Ashburnf19916e2016-01-11 13:12:43 -07003149 uint32_t query);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003150
Chia-I Wu9ab61502015-11-06 06:42:02 +08003151VKAPI_ATTR void VKAPI_CALL vkCmdResetQueryPool(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003152 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchteraa58f672015-04-10 18:00:50 -06003153 VkQueryPool queryPool,
Jon Ashburn19d3bf12015-12-30 14:06:55 -07003154 uint32_t firstQuery,
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003155 uint32_t queryCount);
3156
Chia-I Wu9ab61502015-11-06 06:42:02 +08003157VKAPI_ATTR void VKAPI_CALL vkCmdWriteTimestamp(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003158 VkCommandBuffer commandBuffer,
Chia-I Wu51ce5ea2015-10-26 19:40:27 +08003159 VkPipelineStageFlagBits pipelineStage,
Chia-I Wucbe3c9f2015-10-26 20:14:54 +08003160 VkQueryPool queryPool,
Jon Ashburnf19916e2016-01-11 13:12:43 -07003161 uint32_t query);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003162
Chia-I Wu9ab61502015-11-06 06:42:02 +08003163VKAPI_ATTR void VKAPI_CALL vkCmdCopyQueryPoolResults(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003164 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchter1dbc8e22015-04-15 18:21:13 -06003165 VkQueryPool queryPool,
Jon Ashburn19d3bf12015-12-30 14:06:55 -07003166 uint32_t firstQuery,
Courtney Goeltzenleuchter1dbc8e22015-04-15 18:21:13 -06003167 uint32_t queryCount,
Chia-I Wu3432a0c2015-10-27 18:04:07 +08003168 VkBuffer dstBuffer,
3169 VkDeviceSize dstOffset,
Chia-I Wuccc93a72015-10-26 18:36:20 +08003170 VkDeviceSize stride,
Tony Barbour71a85122015-04-16 19:09:28 -06003171 VkQueryResultFlags flags);
Courtney Goeltzenleuchter1dbc8e22015-04-15 18:21:13 -06003172
Chia-I Wu9ab61502015-11-06 06:42:02 +08003173VKAPI_ATTR void VKAPI_CALL vkCmdPushConstants(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003174 VkCommandBuffer commandBuffer,
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06003175 VkPipelineLayout layout,
3176 VkShaderStageFlags stageFlags,
Chia-I Wud50677e2015-10-26 20:46:14 +08003177 uint32_t offset,
3178 uint32_t size,
Chia-I Wuce9b1772015-11-12 06:09:22 +08003179 const void* pValues);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003180
Chia-I Wu9ab61502015-11-06 06:42:02 +08003181VKAPI_ATTR void VKAPI_CALL vkCmdBeginRenderPass(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003182 VkCommandBuffer commandBuffer,
Chia-I Wu08accc62015-07-07 11:50:03 +08003183 const VkRenderPassBeginInfo* pRenderPassBegin,
Chia-I Wuab83a0e2015-10-27 19:00:15 +08003184 VkSubpassContents contents);
Chia-I Wu08accc62015-07-07 11:50:03 +08003185
Chia-I Wu9ab61502015-11-06 06:42:02 +08003186VKAPI_ATTR void VKAPI_CALL vkCmdNextSubpass(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003187 VkCommandBuffer commandBuffer,
Chia-I Wuab83a0e2015-10-27 19:00:15 +08003188 VkSubpassContents contents);
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003189
Chia-I Wu9ab61502015-11-06 06:42:02 +08003190VKAPI_ATTR void VKAPI_CALL vkCmdEndRenderPass(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003191 VkCommandBuffer commandBuffer);
Chia-I Wu0b50a1c2015-06-26 15:34:39 +08003192
Chia-I Wu9ab61502015-11-06 06:42:02 +08003193VKAPI_ATTR void VKAPI_CALL vkCmdExecuteCommands(
Chia-I Wubb7fad92015-10-27 17:53:18 +08003194 VkCommandBuffer commandBuffer,
Jon Ashburnf19916e2016-01-11 13:12:43 -07003195 uint32_t commandBufferCount,
Chia-I Wubb7fad92015-10-27 17:53:18 +08003196 const VkCommandBuffer* pCommandBuffers);
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06003197#endif
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06003198
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003199#define VK_KHR_surface 1
3200VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR)
3201
Jon Ashburn766866a2016-01-22 15:39:20 -07003202#define VK_KHR_SURFACE_SPEC_VERSION 25
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003203#define VK_KHR_SURFACE_EXTENSION_NAME "VK_KHR_surface"
Jon Ashburn2dc9f7a2016-05-16 14:40:36 -06003204#define VK_COLORSPACE_SRGB_NONLINEAR_KHR VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003205
3206
3207typedef enum VkColorSpaceKHR {
Jon Ashburn2dc9f7a2016-05-16 14:40:36 -06003208 VK_COLOR_SPACE_SRGB_NONLINEAR_KHR = 0,
3209 VK_COLOR_SPACE_BEGIN_RANGE_KHR = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR,
3210 VK_COLOR_SPACE_END_RANGE_KHR = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR,
3211 VK_COLOR_SPACE_RANGE_SIZE_KHR = (VK_COLOR_SPACE_SRGB_NONLINEAR_KHR - VK_COLOR_SPACE_SRGB_NONLINEAR_KHR + 1),
Jon Ashburn45de99c2016-03-28 09:59:08 -06003212 VK_COLOR_SPACE_MAX_ENUM_KHR = 0x7FFFFFFF
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003213} VkColorSpaceKHR;
3214
3215typedef enum VkPresentModeKHR {
3216 VK_PRESENT_MODE_IMMEDIATE_KHR = 0,
3217 VK_PRESENT_MODE_MAILBOX_KHR = 1,
3218 VK_PRESENT_MODE_FIFO_KHR = 2,
3219 VK_PRESENT_MODE_FIFO_RELAXED_KHR = 3,
Jon Ashburn45de99c2016-03-28 09:59:08 -06003220 VK_PRESENT_MODE_BEGIN_RANGE_KHR = VK_PRESENT_MODE_IMMEDIATE_KHR,
3221 VK_PRESENT_MODE_END_RANGE_KHR = VK_PRESENT_MODE_FIFO_RELAXED_KHR,
3222 VK_PRESENT_MODE_RANGE_SIZE_KHR = (VK_PRESENT_MODE_FIFO_RELAXED_KHR - VK_PRESENT_MODE_IMMEDIATE_KHR + 1),
3223 VK_PRESENT_MODE_MAX_ENUM_KHR = 0x7FFFFFFF
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003224} VkPresentModeKHR;
3225
3226
3227typedef enum VkSurfaceTransformFlagBitsKHR {
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003228 VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR = 0x00000001,
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003229 VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR = 0x00000002,
3230 VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR = 0x00000004,
3231 VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR = 0x00000008,
3232 VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR = 0x00000010,
3233 VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR = 0x00000020,
3234 VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR = 0x00000040,
3235 VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR = 0x00000080,
3236 VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR = 0x00000100,
Jon Ashburn45de99c2016-03-28 09:59:08 -06003237 VK_SURFACE_TRANSFORM_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003238} VkSurfaceTransformFlagBitsKHR;
3239typedef VkFlags VkSurfaceTransformFlagsKHR;
3240
3241typedef enum VkCompositeAlphaFlagBitsKHR {
3242 VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
3243 VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = 0x00000002,
3244 VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = 0x00000004,
3245 VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = 0x00000008,
Jon Ashburn45de99c2016-03-28 09:59:08 -06003246 VK_COMPOSITE_ALPHA_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003247} VkCompositeAlphaFlagBitsKHR;
3248typedef VkFlags VkCompositeAlphaFlagsKHR;
3249
3250typedef struct VkSurfaceCapabilitiesKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003251 uint32_t minImageCount;
3252 uint32_t maxImageCount;
3253 VkExtent2D currentExtent;
3254 VkExtent2D minImageExtent;
3255 VkExtent2D maxImageExtent;
3256 uint32_t maxImageArrayLayers;
3257 VkSurfaceTransformFlagsKHR supportedTransforms;
3258 VkSurfaceTransformFlagBitsKHR currentTransform;
3259 VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
3260 VkImageUsageFlags supportedUsageFlags;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003261} VkSurfaceCapabilitiesKHR;
3262
3263typedef struct VkSurfaceFormatKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003264 VkFormat format;
3265 VkColorSpaceKHR colorSpace;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003266} VkSurfaceFormatKHR;
3267
3268
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003269typedef void (VKAPI_PTR *PFN_vkDestroySurfaceKHR)(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* pAllocator);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003270typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported);
3271typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
3272typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfaceFormatsKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats);
3273typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceSurfacePresentModesKHR)(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes);
3274
Jon Ashburnce816b62016-01-12 11:33:33 -07003275#ifndef VK_NO_PROTOTYPES
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003276VKAPI_ATTR void VKAPI_CALL vkDestroySurfaceKHR(
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003277 VkInstance instance,
3278 VkSurfaceKHR surface,
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003279 const VkAllocationCallbacks* pAllocator);
3280
3281VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceSupportKHR(
3282 VkPhysicalDevice physicalDevice,
3283 uint32_t queueFamilyIndex,
3284 VkSurfaceKHR surface,
3285 VkBool32* pSupported);
3286
3287VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
3288 VkPhysicalDevice physicalDevice,
3289 VkSurfaceKHR surface,
3290 VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
3291
3292VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceFormatsKHR(
3293 VkPhysicalDevice physicalDevice,
3294 VkSurfaceKHR surface,
3295 uint32_t* pSurfaceFormatCount,
3296 VkSurfaceFormatKHR* pSurfaceFormats);
3297
3298VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresentModesKHR(
3299 VkPhysicalDevice physicalDevice,
3300 VkSurfaceKHR surface,
3301 uint32_t* pPresentModeCount,
3302 VkPresentModeKHR* pPresentModes);
3303#endif
3304
3305#define VK_KHR_swapchain 1
3306VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSwapchainKHR)
3307
Jon Ashburnf6e6a152016-04-22 08:49:39 -06003308#define VK_KHR_SWAPCHAIN_SPEC_VERSION 68
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003309#define VK_KHR_SWAPCHAIN_EXTENSION_NAME "VK_KHR_swapchain"
3310
3311typedef VkFlags VkSwapchainCreateFlagsKHR;
3312
3313typedef struct VkSwapchainCreateInfoKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003314 VkStructureType sType;
3315 const void* pNext;
3316 VkSwapchainCreateFlagsKHR flags;
3317 VkSurfaceKHR surface;
3318 uint32_t minImageCount;
3319 VkFormat imageFormat;
3320 VkColorSpaceKHR imageColorSpace;
3321 VkExtent2D imageExtent;
3322 uint32_t imageArrayLayers;
3323 VkImageUsageFlags imageUsage;
3324 VkSharingMode imageSharingMode;
3325 uint32_t queueFamilyIndexCount;
3326 const uint32_t* pQueueFamilyIndices;
3327 VkSurfaceTransformFlagBitsKHR preTransform;
3328 VkCompositeAlphaFlagBitsKHR compositeAlpha;
3329 VkPresentModeKHR presentMode;
3330 VkBool32 clipped;
3331 VkSwapchainKHR oldSwapchain;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003332} VkSwapchainCreateInfoKHR;
3333
3334typedef struct VkPresentInfoKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003335 VkStructureType sType;
3336 const void* pNext;
3337 uint32_t waitSemaphoreCount;
3338 const VkSemaphore* pWaitSemaphores;
3339 uint32_t swapchainCount;
3340 const VkSwapchainKHR* pSwapchains;
3341 const uint32_t* pImageIndices;
3342 VkResult* pResults;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003343} VkPresentInfoKHR;
3344
3345
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003346typedef VkResult (VKAPI_PTR *PFN_vkCreateSwapchainKHR)(VkDevice device, const VkSwapchainCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchain);
3347typedef void (VKAPI_PTR *PFN_vkDestroySwapchainKHR)(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator);
3348typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainImagesKHR)(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pSwapchainImageCount, VkImage* pSwapchainImages);
3349typedef VkResult (VKAPI_PTR *PFN_vkAcquireNextImageKHR)(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex);
3350typedef VkResult (VKAPI_PTR *PFN_vkQueuePresentKHR)(VkQueue queue, const VkPresentInfoKHR* pPresentInfo);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003351
Jon Ashburnce816b62016-01-12 11:33:33 -07003352#ifndef VK_NO_PROTOTYPES
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003353VKAPI_ATTR VkResult VKAPI_CALL vkCreateSwapchainKHR(
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003354 VkDevice device,
3355 const VkSwapchainCreateInfoKHR* pCreateInfo,
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003356 const VkAllocationCallbacks* pAllocator,
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003357 VkSwapchainKHR* pSwapchain);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003358
3359VKAPI_ATTR void VKAPI_CALL vkDestroySwapchainKHR(
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003360 VkDevice device,
3361 VkSwapchainKHR swapchain,
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003362 const VkAllocationCallbacks* pAllocator);
3363
3364VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainImagesKHR(
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003365 VkDevice device,
3366 VkSwapchainKHR swapchain,
3367 uint32_t* pSwapchainImageCount,
3368 VkImage* pSwapchainImages);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003369
3370VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImageKHR(
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003371 VkDevice device,
3372 VkSwapchainKHR swapchain,
3373 uint64_t timeout,
3374 VkSemaphore semaphore,
3375 VkFence fence,
3376 uint32_t* pImageIndex);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003377
3378VKAPI_ATTR VkResult VKAPI_CALL vkQueuePresentKHR(
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003379 VkQueue queue,
3380 const VkPresentInfoKHR* pPresentInfo);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003381#endif
3382
3383#define VK_KHR_display 1
3384VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayKHR)
3385VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDisplayModeKHR)
3386
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003387#define VK_KHR_DISPLAY_SPEC_VERSION 21
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003388#define VK_KHR_DISPLAY_EXTENSION_NAME "VK_KHR_display"
3389
3390
3391typedef enum VkDisplayPlaneAlphaFlagBitsKHR {
3392 VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
3393 VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR = 0x00000002,
3394 VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR = 0x00000004,
3395 VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR = 0x00000008,
Jon Ashburn45de99c2016-03-28 09:59:08 -06003396 VK_DISPLAY_PLANE_ALPHA_FLAG_BITS_MAX_ENUM_KHR = 0x7FFFFFFF
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003397} VkDisplayPlaneAlphaFlagBitsKHR;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003398typedef VkFlags VkDisplayPlaneAlphaFlagsKHR;
Jon Ashburnb25e4fc2016-03-07 11:07:19 -07003399typedef VkFlags VkDisplayModeCreateFlagsKHR;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003400typedef VkFlags VkDisplaySurfaceCreateFlagsKHR;
3401
3402typedef struct VkDisplayPropertiesKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003403 VkDisplayKHR display;
3404 const char* displayName;
3405 VkExtent2D physicalDimensions;
3406 VkExtent2D physicalResolution;
3407 VkSurfaceTransformFlagsKHR supportedTransforms;
3408 VkBool32 planeReorderPossible;
3409 VkBool32 persistentContent;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003410} VkDisplayPropertiesKHR;
3411
3412typedef struct VkDisplayModeParametersKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003413 VkExtent2D visibleRegion;
3414 uint32_t refreshRate;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003415} VkDisplayModeParametersKHR;
3416
3417typedef struct VkDisplayModePropertiesKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003418 VkDisplayModeKHR displayMode;
3419 VkDisplayModeParametersKHR parameters;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003420} VkDisplayModePropertiesKHR;
3421
3422typedef struct VkDisplayModeCreateInfoKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003423 VkStructureType sType;
3424 const void* pNext;
3425 VkDisplayModeCreateFlagsKHR flags;
3426 VkDisplayModeParametersKHR parameters;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003427} VkDisplayModeCreateInfoKHR;
3428
3429typedef struct VkDisplayPlaneCapabilitiesKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003430 VkDisplayPlaneAlphaFlagsKHR supportedAlpha;
3431 VkOffset2D minSrcPosition;
3432 VkOffset2D maxSrcPosition;
3433 VkExtent2D minSrcExtent;
3434 VkExtent2D maxSrcExtent;
3435 VkOffset2D minDstPosition;
3436 VkOffset2D maxDstPosition;
3437 VkExtent2D minDstExtent;
3438 VkExtent2D maxDstExtent;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003439} VkDisplayPlaneCapabilitiesKHR;
3440
3441typedef struct VkDisplayPlanePropertiesKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003442 VkDisplayKHR currentDisplay;
3443 uint32_t currentStackIndex;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003444} VkDisplayPlanePropertiesKHR;
3445
3446typedef struct VkDisplaySurfaceCreateInfoKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003447 VkStructureType sType;
3448 const void* pNext;
3449 VkDisplaySurfaceCreateFlagsKHR flags;
3450 VkDisplayModeKHR displayMode;
3451 uint32_t planeIndex;
3452 uint32_t planeStackIndex;
3453 VkSurfaceTransformFlagBitsKHR transform;
3454 float globalAlpha;
3455 VkDisplayPlaneAlphaFlagBitsKHR alphaMode;
3456 VkExtent2D imageExtent;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003457} VkDisplaySurfaceCreateInfoKHR;
3458
3459
3460typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPropertiesKHR* pProperties);
3461typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR)(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkDisplayPlanePropertiesKHR* pProperties);
Jon Ashburnf19916e2016-01-11 13:12:43 -07003462typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneSupportedDisplaysKHR)(VkPhysicalDevice physicalDevice, uint32_t planeIndex, uint32_t* pDisplayCount, VkDisplayKHR* pDisplays);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003463typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayModePropertiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, uint32_t* pPropertyCount, VkDisplayModePropertiesKHR* pProperties);
Jon Ashburnf6e6a152016-04-22 08:49:39 -06003464typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayModeKHR)(VkPhysicalDevice physicalDevice, VkDisplayKHR display, const VkDisplayModeCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDisplayModeKHR* pMode);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003465typedef VkResult (VKAPI_PTR *PFN_vkGetDisplayPlaneCapabilitiesKHR)(VkPhysicalDevice physicalDevice, VkDisplayModeKHR mode, uint32_t planeIndex, VkDisplayPlaneCapabilitiesKHR* pCapabilities);
3466typedef VkResult (VKAPI_PTR *PFN_vkCreateDisplayPlaneSurfaceKHR)(VkInstance instance, const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
3467
Jon Ashburnce816b62016-01-12 11:33:33 -07003468#ifndef VK_NO_PROTOTYPES
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003469VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPropertiesKHR(
3470 VkPhysicalDevice physicalDevice,
3471 uint32_t* pPropertyCount,
3472 VkDisplayPropertiesKHR* pProperties);
3473
3474VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
3475 VkPhysicalDevice physicalDevice,
3476 uint32_t* pPropertyCount,
3477 VkDisplayPlanePropertiesKHR* pProperties);
3478
3479VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneSupportedDisplaysKHR(
3480 VkPhysicalDevice physicalDevice,
Jon Ashburnf19916e2016-01-11 13:12:43 -07003481 uint32_t planeIndex,
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003482 uint32_t* pDisplayCount,
3483 VkDisplayKHR* pDisplays);
3484
3485VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayModePropertiesKHR(
3486 VkPhysicalDevice physicalDevice,
3487 VkDisplayKHR display,
3488 uint32_t* pPropertyCount,
3489 VkDisplayModePropertiesKHR* pProperties);
3490
3491VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayModeKHR(
3492 VkPhysicalDevice physicalDevice,
3493 VkDisplayKHR display,
3494 const VkDisplayModeCreateInfoKHR* pCreateInfo,
3495 const VkAllocationCallbacks* pAllocator,
3496 VkDisplayModeKHR* pMode);
3497
3498VKAPI_ATTR VkResult VKAPI_CALL vkGetDisplayPlaneCapabilitiesKHR(
3499 VkPhysicalDevice physicalDevice,
3500 VkDisplayModeKHR mode,
3501 uint32_t planeIndex,
3502 VkDisplayPlaneCapabilitiesKHR* pCapabilities);
3503
3504VKAPI_ATTR VkResult VKAPI_CALL vkCreateDisplayPlaneSurfaceKHR(
3505 VkInstance instance,
3506 const VkDisplaySurfaceCreateInfoKHR* pCreateInfo,
3507 const VkAllocationCallbacks* pAllocator,
3508 VkSurfaceKHR* pSurface);
3509#endif
3510
3511#define VK_KHR_display_swapchain 1
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003512#define VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION 9
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003513#define VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME "VK_KHR_display_swapchain"
3514
3515typedef struct VkDisplayPresentInfoKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003516 VkStructureType sType;
3517 const void* pNext;
3518 VkRect2D srcRect;
3519 VkRect2D dstRect;
3520 VkBool32 persistent;
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003521} VkDisplayPresentInfoKHR;
3522
3523
3524typedef VkResult (VKAPI_PTR *PFN_vkCreateSharedSwapchainsKHR)(VkDevice device, uint32_t swapchainCount, const VkSwapchainCreateInfoKHR* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchains);
3525
Jon Ashburnce816b62016-01-12 11:33:33 -07003526#ifndef VK_NO_PROTOTYPES
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003527VKAPI_ATTR VkResult VKAPI_CALL vkCreateSharedSwapchainsKHR(
3528 VkDevice device,
3529 uint32_t swapchainCount,
3530 const VkSwapchainCreateInfoKHR* pCreateInfos,
3531 const VkAllocationCallbacks* pAllocator,
3532 VkSwapchainKHR* pSwapchains);
3533#endif
3534
3535#ifdef VK_USE_PLATFORM_XLIB_KHR
3536#define VK_KHR_xlib_surface 1
3537#include <X11/Xlib.h>
3538
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003539#define VK_KHR_XLIB_SURFACE_SPEC_VERSION 6
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003540#define VK_KHR_XLIB_SURFACE_EXTENSION_NAME "VK_KHR_xlib_surface"
3541
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003542typedef VkFlags VkXlibSurfaceCreateFlagsKHR;
3543
3544typedef struct VkXlibSurfaceCreateInfoKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003545 VkStructureType sType;
3546 const void* pNext;
3547 VkXlibSurfaceCreateFlagsKHR flags;
3548 Display* dpy;
3549 Window window;
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003550} VkXlibSurfaceCreateInfoKHR;
3551
3552
3553typedef VkResult (VKAPI_PTR *PFN_vkCreateXlibSurfaceKHR)(VkInstance instance, const VkXlibSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003554typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, Display* dpy, VisualID visualID);
3555
Jon Ashburnce816b62016-01-12 11:33:33 -07003556#ifndef VK_NO_PROTOTYPES
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003557VKAPI_ATTR VkResult VKAPI_CALL vkCreateXlibSurfaceKHR(
3558 VkInstance instance,
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003559 const VkXlibSurfaceCreateInfoKHR* pCreateInfo,
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003560 const VkAllocationCallbacks* pAllocator,
3561 VkSurfaceKHR* pSurface);
3562
3563VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXlibPresentationSupportKHR(
3564 VkPhysicalDevice physicalDevice,
3565 uint32_t queueFamilyIndex,
3566 Display* dpy,
3567 VisualID visualID);
3568#endif
3569#endif /* VK_USE_PLATFORM_XLIB_KHR */
3570
3571#ifdef VK_USE_PLATFORM_XCB_KHR
3572#define VK_KHR_xcb_surface 1
3573#include <xcb/xcb.h>
3574
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003575#define VK_KHR_XCB_SURFACE_SPEC_VERSION 6
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003576#define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface"
3577
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003578typedef VkFlags VkXcbSurfaceCreateFlagsKHR;
3579
3580typedef struct VkXcbSurfaceCreateInfoKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003581 VkStructureType sType;
3582 const void* pNext;
3583 VkXcbSurfaceCreateFlagsKHR flags;
3584 xcb_connection_t* connection;
3585 xcb_window_t window;
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003586} VkXcbSurfaceCreateInfoKHR;
3587
3588
3589typedef VkResult (VKAPI_PTR *PFN_vkCreateXcbSurfaceKHR)(VkInstance instance, const VkXcbSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003590typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, xcb_connection_t* connection, xcb_visualid_t visual_id);
3591
Jon Ashburnce816b62016-01-12 11:33:33 -07003592#ifndef VK_NO_PROTOTYPES
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003593VKAPI_ATTR VkResult VKAPI_CALL vkCreateXcbSurfaceKHR(
3594 VkInstance instance,
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003595 const VkXcbSurfaceCreateInfoKHR* pCreateInfo,
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003596 const VkAllocationCallbacks* pAllocator,
3597 VkSurfaceKHR* pSurface);
3598
3599VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceXcbPresentationSupportKHR(
3600 VkPhysicalDevice physicalDevice,
3601 uint32_t queueFamilyIndex,
3602 xcb_connection_t* connection,
3603 xcb_visualid_t visual_id);
3604#endif
3605#endif /* VK_USE_PLATFORM_XCB_KHR */
3606
3607#ifdef VK_USE_PLATFORM_WAYLAND_KHR
3608#define VK_KHR_wayland_surface 1
3609#include <wayland-client.h>
3610
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003611#define VK_KHR_WAYLAND_SURFACE_SPEC_VERSION 5
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003612#define VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "VK_KHR_wayland_surface"
3613
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003614typedef VkFlags VkWaylandSurfaceCreateFlagsKHR;
3615
3616typedef struct VkWaylandSurfaceCreateInfoKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003617 VkStructureType sType;
3618 const void* pNext;
3619 VkWaylandSurfaceCreateFlagsKHR flags;
3620 struct wl_display* display;
3621 struct wl_surface* surface;
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003622} VkWaylandSurfaceCreateInfoKHR;
3623
3624
3625typedef VkResult (VKAPI_PTR *PFN_vkCreateWaylandSurfaceKHR)(VkInstance instance, const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003626typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct wl_display* display);
3627
Jon Ashburnce816b62016-01-12 11:33:33 -07003628#ifndef VK_NO_PROTOTYPES
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003629VKAPI_ATTR VkResult VKAPI_CALL vkCreateWaylandSurfaceKHR(
3630 VkInstance instance,
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003631 const VkWaylandSurfaceCreateInfoKHR* pCreateInfo,
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003632 const VkAllocationCallbacks* pAllocator,
3633 VkSurfaceKHR* pSurface);
3634
3635VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWaylandPresentationSupportKHR(
3636 VkPhysicalDevice physicalDevice,
3637 uint32_t queueFamilyIndex,
3638 struct wl_display* display);
3639#endif
3640#endif /* VK_USE_PLATFORM_WAYLAND_KHR */
3641
3642#ifdef VK_USE_PLATFORM_MIR_KHR
3643#define VK_KHR_mir_surface 1
3644#include <mir_toolkit/client_types.h>
3645
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003646#define VK_KHR_MIR_SURFACE_SPEC_VERSION 4
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003647#define VK_KHR_MIR_SURFACE_EXTENSION_NAME "VK_KHR_mir_surface"
3648
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003649typedef VkFlags VkMirSurfaceCreateFlagsKHR;
3650
3651typedef struct VkMirSurfaceCreateInfoKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003652 VkStructureType sType;
3653 const void* pNext;
3654 VkMirSurfaceCreateFlagsKHR flags;
3655 MirConnection* connection;
3656 MirSurface* mirSurface;
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003657} VkMirSurfaceCreateInfoKHR;
3658
3659
3660typedef VkResult (VKAPI_PTR *PFN_vkCreateMirSurfaceKHR)(VkInstance instance, const VkMirSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003661typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceMirPresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, MirConnection* connection);
3662
Jon Ashburnce816b62016-01-12 11:33:33 -07003663#ifndef VK_NO_PROTOTYPES
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003664VKAPI_ATTR VkResult VKAPI_CALL vkCreateMirSurfaceKHR(
3665 VkInstance instance,
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003666 const VkMirSurfaceCreateInfoKHR* pCreateInfo,
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003667 const VkAllocationCallbacks* pAllocator,
3668 VkSurfaceKHR* pSurface);
3669
3670VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceMirPresentationSupportKHR(
3671 VkPhysicalDevice physicalDevice,
3672 uint32_t queueFamilyIndex,
3673 MirConnection* connection);
3674#endif
3675#endif /* VK_USE_PLATFORM_MIR_KHR */
3676
3677#ifdef VK_USE_PLATFORM_ANDROID_KHR
3678#define VK_KHR_android_surface 1
3679#include <android/native_window.h>
3680
Jon Ashburn766866a2016-01-22 15:39:20 -07003681#define VK_KHR_ANDROID_SURFACE_SPEC_VERSION 6
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003682#define VK_KHR_ANDROID_SURFACE_EXTENSION_NAME "VK_KHR_android_surface"
3683
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003684typedef VkFlags VkAndroidSurfaceCreateFlagsKHR;
3685
3686typedef struct VkAndroidSurfaceCreateInfoKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003687 VkStructureType sType;
3688 const void* pNext;
3689 VkAndroidSurfaceCreateFlagsKHR flags;
3690 ANativeWindow* window;
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003691} VkAndroidSurfaceCreateInfoKHR;
3692
3693
3694typedef VkResult (VKAPI_PTR *PFN_vkCreateAndroidSurfaceKHR)(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003695
Jon Ashburnce816b62016-01-12 11:33:33 -07003696#ifndef VK_NO_PROTOTYPES
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003697VKAPI_ATTR VkResult VKAPI_CALL vkCreateAndroidSurfaceKHR(
3698 VkInstance instance,
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003699 const VkAndroidSurfaceCreateInfoKHR* pCreateInfo,
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003700 const VkAllocationCallbacks* pAllocator,
3701 VkSurfaceKHR* pSurface);
3702#endif
3703#endif /* VK_USE_PLATFORM_ANDROID_KHR */
3704
3705#ifdef VK_USE_PLATFORM_WIN32_KHR
3706#define VK_KHR_win32_surface 1
3707#include <windows.h>
3708
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003709#define VK_KHR_WIN32_SURFACE_SPEC_VERSION 5
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003710#define VK_KHR_WIN32_SURFACE_EXTENSION_NAME "VK_KHR_win32_surface"
3711
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003712typedef VkFlags VkWin32SurfaceCreateFlagsKHR;
3713
3714typedef struct VkWin32SurfaceCreateInfoKHR {
Jon Ashburn67eaaa12016-01-11 13:24:16 -07003715 VkStructureType sType;
3716 const void* pNext;
3717 VkWin32SurfaceCreateFlagsKHR flags;
3718 HINSTANCE hinstance;
3719 HWND hwnd;
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003720} VkWin32SurfaceCreateInfoKHR;
3721
3722
3723typedef VkResult (VKAPI_PTR *PFN_vkCreateWin32SurfaceKHR)(VkInstance instance, const VkWin32SurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003724typedef VkBool32 (VKAPI_PTR *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex);
3725
Jon Ashburnce816b62016-01-12 11:33:33 -07003726#ifndef VK_NO_PROTOTYPES
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003727VKAPI_ATTR VkResult VKAPI_CALL vkCreateWin32SurfaceKHR(
3728 VkInstance instance,
Ian Elliotta9eb2fc2015-12-10 17:11:21 -07003729 const VkWin32SurfaceCreateInfoKHR* pCreateInfo,
Ian Elliott3a2d1e42015-11-18 12:24:57 -07003730 const VkAllocationCallbacks* pAllocator,
3731 VkSurfaceKHR* pSurface);
3732
3733VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWin32PresentationSupportKHR(
3734 VkPhysicalDevice physicalDevice,
3735 uint32_t queueFamilyIndex);
3736#endif
3737#endif /* VK_USE_PLATFORM_WIN32_KHR */
3738
Jon Ashburnb25e4fc2016-03-07 11:07:19 -07003739#define VK_KHR_sampler_mirror_clamp_to_edge 1
3740#define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_SPEC_VERSION 1
3741#define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME "VK_KHR_sampler_mirror_clamp_to_edge"
3742
3743
Mark Lobodzinski510e20d2016-02-11 09:26:16 -07003744#define VK_EXT_debug_report 1
3745VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkDebugReportCallbackEXT)
3746
Mark Lobodzinski2d589822016-12-12 09:44:34 -07003747#define VK_EXT_DEBUG_REPORT_SPEC_VERSION 4
Mark Lobodzinski510e20d2016-02-11 09:26:16 -07003748#define VK_EXT_DEBUG_REPORT_EXTENSION_NAME "VK_EXT_debug_report"
Jon Ashburnb25e4fc2016-03-07 11:07:19 -07003749#define VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT
Mark Lobodzinski510e20d2016-02-11 09:26:16 -07003750
3751
3752typedef enum VkDebugReportObjectTypeEXT {
3753 VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT = 0,
3754 VK_DEBUG_REPORT_OBJECT_TYPE_INSTANCE_EXT = 1,
3755 VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT = 2,
3756 VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT = 3,
3757 VK_DEBUG_REPORT_OBJECT_TYPE_QUEUE_EXT = 4,
3758 VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT = 5,
3759 VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT = 6,
3760 VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT = 7,
3761 VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT = 8,
3762 VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT = 9,
3763 VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT = 10,
3764 VK_DEBUG_REPORT_OBJECT_TYPE_EVENT_EXT = 11,
3765 VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT = 12,
3766 VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_VIEW_EXT = 13,
3767 VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT = 14,
3768 VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT = 15,
3769 VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CACHE_EXT = 16,
3770 VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_LAYOUT_EXT = 17,
3771 VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT = 18,
3772 VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT = 19,
3773 VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT_EXT = 20,
3774 VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_EXT = 21,
3775 VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_POOL_EXT = 22,
3776 VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_EXT = 23,
3777 VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT = 24,
3778 VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EXT = 25,
3779 VK_DEBUG_REPORT_OBJECT_TYPE_SURFACE_KHR_EXT = 26,
3780 VK_DEBUG_REPORT_OBJECT_TYPE_SWAPCHAIN_KHR_EXT = 27,
3781 VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT = 28,
Mark Lobodzinski2d589822016-12-12 09:44:34 -07003782 VK_DEBUG_REPORT_OBJECT_TYPE_DISPLAY_KHR_EXT = 29,
3783 VK_DEBUG_REPORT_OBJECT_TYPE_DISPLAY_MODE_KHR_EXT = 30,
3784 VK_DEBUG_REPORT_OBJECT_TYPE_OBJECT_TABLE_NVX_EXT = 31,
3785 VK_DEBUG_REPORT_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX_EXT = 32,
Jon Ashburn45de99c2016-03-28 09:59:08 -06003786 VK_DEBUG_REPORT_OBJECT_TYPE_BEGIN_RANGE_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT,
Mark Lobodzinski2d589822016-12-12 09:44:34 -07003787 VK_DEBUG_REPORT_OBJECT_TYPE_END_RANGE_EXT = VK_DEBUG_REPORT_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX_EXT,
3788 VK_DEBUG_REPORT_OBJECT_TYPE_RANGE_SIZE_EXT = (VK_DEBUG_REPORT_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX_EXT - VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT + 1),
Jon Ashburn45de99c2016-03-28 09:59:08 -06003789 VK_DEBUG_REPORT_OBJECT_TYPE_MAX_ENUM_EXT = 0x7FFFFFFF
Mark Lobodzinski510e20d2016-02-11 09:26:16 -07003790} VkDebugReportObjectTypeEXT;
3791
3792typedef enum VkDebugReportErrorEXT {
3793 VK_DEBUG_REPORT_ERROR_NONE_EXT = 0,
3794 VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT = 1,
Jon Ashburn45de99c2016-03-28 09:59:08 -06003795 VK_DEBUG_REPORT_ERROR_BEGIN_RANGE_EXT = VK_DEBUG_REPORT_ERROR_NONE_EXT,
3796 VK_DEBUG_REPORT_ERROR_END_RANGE_EXT = VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT,
3797 VK_DEBUG_REPORT_ERROR_RANGE_SIZE_EXT = (VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT - VK_DEBUG_REPORT_ERROR_NONE_EXT + 1),
3798 VK_DEBUG_REPORT_ERROR_MAX_ENUM_EXT = 0x7FFFFFFF
Mark Lobodzinski510e20d2016-02-11 09:26:16 -07003799} VkDebugReportErrorEXT;
3800
3801
3802typedef enum VkDebugReportFlagBitsEXT {
3803 VK_DEBUG_REPORT_INFORMATION_BIT_EXT = 0x00000001,
3804 VK_DEBUG_REPORT_WARNING_BIT_EXT = 0x00000002,
3805 VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT = 0x00000004,
3806 VK_DEBUG_REPORT_ERROR_BIT_EXT = 0x00000008,
3807 VK_DEBUG_REPORT_DEBUG_BIT_EXT = 0x00000010,
Jon Ashburn45de99c2016-03-28 09:59:08 -06003808 VK_DEBUG_REPORT_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
Mark Lobodzinski510e20d2016-02-11 09:26:16 -07003809} VkDebugReportFlagBitsEXT;
3810typedef VkFlags VkDebugReportFlagsEXT;
3811
3812typedef VkBool32 (VKAPI_PTR *PFN_vkDebugReportCallbackEXT)(
3813 VkDebugReportFlagsEXT flags,
3814 VkDebugReportObjectTypeEXT objectType,
3815 uint64_t object,
3816 size_t location,
3817 int32_t messageCode,
3818 const char* pLayerPrefix,
3819 const char* pMessage,
3820 void* pUserData);
3821
Mark Lobodzinskib3e97832016-09-06 16:21:40 -06003822
Mark Lobodzinski510e20d2016-02-11 09:26:16 -07003823typedef struct VkDebugReportCallbackCreateInfoEXT {
3824 VkStructureType sType;
3825 const void* pNext;
3826 VkDebugReportFlagsEXT flags;
3827 PFN_vkDebugReportCallbackEXT pfnCallback;
3828 void* pUserData;
3829} VkDebugReportCallbackCreateInfoEXT;
3830
3831
3832typedef VkResult (VKAPI_PTR *PFN_vkCreateDebugReportCallbackEXT)(VkInstance instance, const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDebugReportCallbackEXT* pCallback);
3833typedef void (VKAPI_PTR *PFN_vkDestroyDebugReportCallbackEXT)(VkInstance instance, VkDebugReportCallbackEXT callback, const VkAllocationCallbacks* pAllocator);
3834typedef void (VKAPI_PTR *PFN_vkDebugReportMessageEXT)(VkInstance instance, VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage);
3835
3836#ifndef VK_NO_PROTOTYPES
3837VKAPI_ATTR VkResult VKAPI_CALL vkCreateDebugReportCallbackEXT(
3838 VkInstance instance,
3839 const VkDebugReportCallbackCreateInfoEXT* pCreateInfo,
3840 const VkAllocationCallbacks* pAllocator,
3841 VkDebugReportCallbackEXT* pCallback);
3842
3843VKAPI_ATTR void VKAPI_CALL vkDestroyDebugReportCallbackEXT(
3844 VkInstance instance,
3845 VkDebugReportCallbackEXT callback,
3846 const VkAllocationCallbacks* pAllocator);
3847
3848VKAPI_ATTR void VKAPI_CALL vkDebugReportMessageEXT(
3849 VkInstance instance,
3850 VkDebugReportFlagsEXT flags,
3851 VkDebugReportObjectTypeEXT objectType,
3852 uint64_t object,
3853 size_t location,
3854 int32_t messageCode,
3855 const char* pLayerPrefix,
3856 const char* pMessage);
3857#endif
3858
Jon Ashburn57b82b72016-03-07 13:01:35 -07003859#define VK_NV_glsl_shader 1
3860#define VK_NV_GLSL_SHADER_SPEC_VERSION 1
3861#define VK_NV_GLSL_SHADER_EXTENSION_NAME "VK_NV_glsl_shader"
3862
3863
Jon Ashburndc9111c2016-03-22 12:57:13 -06003864#define VK_IMG_filter_cubic 1
3865#define VK_IMG_FILTER_CUBIC_SPEC_VERSION 1
3866#define VK_IMG_FILTER_CUBIC_EXTENSION_NAME "VK_IMG_filter_cubic"
3867
3868
Jon Ashburnc9d8f492016-05-03 08:52:58 -06003869#define VK_AMD_rasterization_order 1
3870#define VK_AMD_RASTERIZATION_ORDER_SPEC_VERSION 1
3871#define VK_AMD_RASTERIZATION_ORDER_EXTENSION_NAME "VK_AMD_rasterization_order"
3872
3873
3874typedef enum VkRasterizationOrderAMD {
3875 VK_RASTERIZATION_ORDER_STRICT_AMD = 0,
3876 VK_RASTERIZATION_ORDER_RELAXED_AMD = 1,
3877 VK_RASTERIZATION_ORDER_BEGIN_RANGE_AMD = VK_RASTERIZATION_ORDER_STRICT_AMD,
3878 VK_RASTERIZATION_ORDER_END_RANGE_AMD = VK_RASTERIZATION_ORDER_RELAXED_AMD,
3879 VK_RASTERIZATION_ORDER_RANGE_SIZE_AMD = (VK_RASTERIZATION_ORDER_RELAXED_AMD - VK_RASTERIZATION_ORDER_STRICT_AMD + 1),
3880 VK_RASTERIZATION_ORDER_MAX_ENUM_AMD = 0x7FFFFFFF
3881} VkRasterizationOrderAMD;
3882
3883typedef struct VkPipelineRasterizationStateRasterizationOrderAMD {
3884 VkStructureType sType;
3885 const void* pNext;
3886 VkRasterizationOrderAMD rasterizationOrder;
3887} VkPipelineRasterizationStateRasterizationOrderAMD;
3888
3889
3890
Jon Ashburn61c752c2016-06-13 14:10:18 -06003891#define VK_AMD_shader_trinary_minmax 1
3892#define VK_AMD_SHADER_TRINARY_MINMAX_SPEC_VERSION 1
3893#define VK_AMD_SHADER_TRINARY_MINMAX_EXTENSION_NAME "VK_AMD_shader_trinary_minmax"
3894
3895
3896#define VK_AMD_shader_explicit_vertex_parameter 1
3897#define VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_SPEC_VERSION 1
3898#define VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_EXTENSION_NAME "VK_AMD_shader_explicit_vertex_parameter"
3899
3900
Jon Ashburna5ded632016-05-09 07:59:14 -06003901#define VK_EXT_debug_marker 1
3902#define VK_EXT_DEBUG_MARKER_SPEC_VERSION 3
3903#define VK_EXT_DEBUG_MARKER_EXTENSION_NAME "VK_EXT_debug_marker"
3904
3905typedef struct VkDebugMarkerObjectNameInfoEXT {
3906 VkStructureType sType;
3907 const void* pNext;
3908 VkDebugReportObjectTypeEXT objectType;
3909 uint64_t object;
3910 const char* pObjectName;
3911} VkDebugMarkerObjectNameInfoEXT;
3912
3913typedef struct VkDebugMarkerObjectTagInfoEXT {
3914 VkStructureType sType;
3915 const void* pNext;
3916 VkDebugReportObjectTypeEXT objectType;
3917 uint64_t object;
3918 uint64_t tagName;
3919 size_t tagSize;
3920 const void* pTag;
3921} VkDebugMarkerObjectTagInfoEXT;
3922
3923typedef struct VkDebugMarkerMarkerInfoEXT {
3924 VkStructureType sType;
3925 const void* pNext;
3926 const char* pMarkerName;
3927 float color[4];
3928} VkDebugMarkerMarkerInfoEXT;
3929
3930
3931typedef VkResult (VKAPI_PTR *PFN_vkDebugMarkerSetObjectTagEXT)(VkDevice device, VkDebugMarkerObjectTagInfoEXT* pTagInfo);
3932typedef VkResult (VKAPI_PTR *PFN_vkDebugMarkerSetObjectNameEXT)(VkDevice device, VkDebugMarkerObjectNameInfoEXT* pNameInfo);
3933typedef void (VKAPI_PTR *PFN_vkCmdDebugMarkerBeginEXT)(VkCommandBuffer commandBuffer, VkDebugMarkerMarkerInfoEXT* pMarkerInfo);
3934typedef void (VKAPI_PTR *PFN_vkCmdDebugMarkerEndEXT)(VkCommandBuffer commandBuffer);
3935typedef void (VKAPI_PTR *PFN_vkCmdDebugMarkerInsertEXT)(VkCommandBuffer commandBuffer, VkDebugMarkerMarkerInfoEXT* pMarkerInfo);
3936
3937#ifndef VK_NO_PROTOTYPES
3938VKAPI_ATTR VkResult VKAPI_CALL vkDebugMarkerSetObjectTagEXT(
3939 VkDevice device,
3940 VkDebugMarkerObjectTagInfoEXT* pTagInfo);
3941
3942VKAPI_ATTR VkResult VKAPI_CALL vkDebugMarkerSetObjectNameEXT(
3943 VkDevice device,
3944 VkDebugMarkerObjectNameInfoEXT* pNameInfo);
3945
3946VKAPI_ATTR void VKAPI_CALL vkCmdDebugMarkerBeginEXT(
3947 VkCommandBuffer commandBuffer,
3948 VkDebugMarkerMarkerInfoEXT* pMarkerInfo);
3949
3950VKAPI_ATTR void VKAPI_CALL vkCmdDebugMarkerEndEXT(
3951 VkCommandBuffer commandBuffer);
3952
3953VKAPI_ATTR void VKAPI_CALL vkCmdDebugMarkerInsertEXT(
3954 VkCommandBuffer commandBuffer,
3955 VkDebugMarkerMarkerInfoEXT* pMarkerInfo);
3956#endif
3957
Jon Ashburn61c752c2016-06-13 14:10:18 -06003958#define VK_AMD_gcn_shader 1
3959#define VK_AMD_GCN_SHADER_SPEC_VERSION 1
3960#define VK_AMD_GCN_SHADER_EXTENSION_NAME "VK_AMD_gcn_shader"
3961
3962
Karl Schultzee344492016-07-11 15:09:57 -06003963#define VK_NV_dedicated_allocation 1
3964#define VK_NV_DEDICATED_ALLOCATION_SPEC_VERSION 1
3965#define VK_NV_DEDICATED_ALLOCATION_EXTENSION_NAME "VK_NV_dedicated_allocation"
3966
3967typedef struct VkDedicatedAllocationImageCreateInfoNV {
3968 VkStructureType sType;
3969 const void* pNext;
3970 VkBool32 dedicatedAllocation;
3971} VkDedicatedAllocationImageCreateInfoNV;
3972
3973typedef struct VkDedicatedAllocationBufferCreateInfoNV {
3974 VkStructureType sType;
3975 const void* pNext;
3976 VkBool32 dedicatedAllocation;
3977} VkDedicatedAllocationBufferCreateInfoNV;
3978
3979typedef struct VkDedicatedAllocationMemoryAllocateInfoNV {
3980 VkStructureType sType;
3981 const void* pNext;
3982 VkImage image;
3983 VkBuffer buffer;
3984} VkDedicatedAllocationMemoryAllocateInfoNV;
3985
3986
3987
Mark Lobodzinski74bb26f2016-08-29 09:02:13 -06003988#define VK_AMD_draw_indirect_count 1
Mark Lobodzinski1577dab2016-09-27 08:23:59 -06003989#define VK_AMD_DRAW_INDIRECT_COUNT_SPEC_VERSION 1
3990#define VK_AMD_DRAW_INDIRECT_COUNT_EXTENSION_NAME "VK_AMD_draw_indirect_count"
Mark Lobodzinski74bb26f2016-08-29 09:02:13 -06003991
3992typedef void (VKAPI_PTR *PFN_vkCmdDrawIndirectCountAMD)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride);
3993typedef void (VKAPI_PTR *PFN_vkCmdDrawIndexedIndirectCountAMD)(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, uint32_t stride);
3994
3995#ifndef VK_NO_PROTOTYPES
3996VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndirectCountAMD(
3997 VkCommandBuffer commandBuffer,
3998 VkBuffer buffer,
3999 VkDeviceSize offset,
4000 VkBuffer countBuffer,
4001 VkDeviceSize countBufferOffset,
4002 uint32_t maxDrawCount,
4003 uint32_t stride);
4004
4005VKAPI_ATTR void VKAPI_CALL vkCmdDrawIndexedIndirectCountAMD(
4006 VkCommandBuffer commandBuffer,
4007 VkBuffer buffer,
4008 VkDeviceSize offset,
4009 VkBuffer countBuffer,
4010 VkDeviceSize countBufferOffset,
4011 uint32_t maxDrawCount,
4012 uint32_t stride);
4013#endif
4014
Mark Lobodzinski1577dab2016-09-27 08:23:59 -06004015#define VK_AMD_negative_viewport_height 1
Mark Lobodzinskicab699b2016-10-28 08:50:56 -06004016#define VK_AMD_NEGATIVE_VIEWPORT_HEIGHT_SPEC_VERSION 1
Mark Lobodzinski4f783662016-10-03 08:09:38 -06004017#define VK_AMD_NEGATIVE_VIEWPORT_HEIGHT_EXTENSION_NAME "VK_AMD_negative_viewport_height"
Mark Lobodzinski1577dab2016-09-27 08:23:59 -06004018
4019
4020#define VK_AMD_gpu_shader_half_float 1
4021#define VK_AMD_GPU_SHADER_HALF_FLOAT_SPEC_VERSION 1
4022#define VK_AMD_GPU_SHADER_HALF_FLOAT_EXTENSION_NAME "VK_AMD_gpu_shader_half_float"
4023
4024
4025#define VK_AMD_shader_ballot 1
Mark Lobodzinskicab699b2016-10-28 08:50:56 -06004026#define VK_AMD_SHADER_BALLOT_SPEC_VERSION 1
Mark Lobodzinski4f783662016-10-03 08:09:38 -06004027#define VK_AMD_SHADER_BALLOT_EXTENSION_NAME "VK_AMD_shader_ballot"
Mark Lobodzinski1577dab2016-09-27 08:23:59 -06004028
4029
Mark Lobodzinskifc5f2512016-08-26 10:19:18 -06004030#define VK_IMG_format_pvrtc 1
4031#define VK_IMG_FORMAT_PVRTC_SPEC_VERSION 1
4032#define VK_IMG_FORMAT_PVRTC_EXTENSION_NAME "VK_IMG_format_pvrtc"
4033
4034
Mark Lobodzinski74bb26f2016-08-29 09:02:13 -06004035#define VK_NV_external_memory_capabilities 1
4036#define VK_NV_EXTERNAL_MEMORY_CAPABILITIES_SPEC_VERSION 1
4037#define VK_NV_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME "VK_NV_external_memory_capabilities"
4038
4039
4040typedef enum VkExternalMemoryHandleTypeFlagBitsNV {
4041 VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_NV = 0x00000001,
4042 VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_NV = 0x00000002,
4043 VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_BIT_NV = 0x00000004,
4044 VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_KMT_BIT_NV = 0x00000008,
4045 VK_EXTERNAL_MEMORY_HANDLE_TYPE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
4046} VkExternalMemoryHandleTypeFlagBitsNV;
Mark Lobodzinskib3e97832016-09-06 16:21:40 -06004047typedef VkFlags VkExternalMemoryHandleTypeFlagsNV;
Mark Lobodzinski74bb26f2016-08-29 09:02:13 -06004048
4049typedef enum VkExternalMemoryFeatureFlagBitsNV {
4050 VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT_NV = 0x00000001,
4051 VK_EXTERNAL_MEMORY_FEATURE_EXPORTABLE_BIT_NV = 0x00000002,
4052 VK_EXTERNAL_MEMORY_FEATURE_IMPORTABLE_BIT_NV = 0x00000004,
4053 VK_EXTERNAL_MEMORY_FEATURE_FLAG_BITS_MAX_ENUM_NV = 0x7FFFFFFF
4054} VkExternalMemoryFeatureFlagBitsNV;
Mark Lobodzinski74bb26f2016-08-29 09:02:13 -06004055typedef VkFlags VkExternalMemoryFeatureFlagsNV;
4056
4057typedef struct VkExternalImageFormatPropertiesNV {
4058 VkImageFormatProperties imageFormatProperties;
4059 VkExternalMemoryFeatureFlagsNV externalMemoryFeatures;
4060 VkExternalMemoryHandleTypeFlagsNV exportFromImportedHandleTypes;
4061 VkExternalMemoryHandleTypeFlagsNV compatibleHandleTypes;
4062} VkExternalImageFormatPropertiesNV;
4063
4064
4065typedef VkResult (VKAPI_PTR *PFN_vkGetPhysicalDeviceExternalImageFormatPropertiesNV)(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkExternalMemoryHandleTypeFlagsNV externalHandleType, VkExternalImageFormatPropertiesNV* pExternalImageFormatProperties);
4066
4067#ifndef VK_NO_PROTOTYPES
4068VKAPI_ATTR VkResult VKAPI_CALL vkGetPhysicalDeviceExternalImageFormatPropertiesNV(
4069 VkPhysicalDevice physicalDevice,
4070 VkFormat format,
4071 VkImageType type,
4072 VkImageTiling tiling,
4073 VkImageUsageFlags usage,
4074 VkImageCreateFlags flags,
4075 VkExternalMemoryHandleTypeFlagsNV externalHandleType,
4076 VkExternalImageFormatPropertiesNV* pExternalImageFormatProperties);
4077#endif
4078
4079#define VK_NV_external_memory 1
4080#define VK_NV_EXTERNAL_MEMORY_SPEC_VERSION 1
4081#define VK_NV_EXTERNAL_MEMORY_EXTENSION_NAME "VK_NV_external_memory"
4082
4083typedef struct VkExternalMemoryImageCreateInfoNV {
4084 VkStructureType sType;
4085 const void* pNext;
4086 VkExternalMemoryHandleTypeFlagsNV handleTypes;
4087} VkExternalMemoryImageCreateInfoNV;
4088
4089typedef struct VkExportMemoryAllocateInfoNV {
4090 VkStructureType sType;
4091 const void* pNext;
4092 VkExternalMemoryHandleTypeFlagsNV handleTypes;
4093} VkExportMemoryAllocateInfoNV;
4094
4095
4096
4097#ifdef VK_USE_PLATFORM_WIN32_KHR
4098#define VK_NV_external_memory_win32 1
4099#define VK_NV_EXTERNAL_MEMORY_WIN32_SPEC_VERSION 1
4100#define VK_NV_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME "VK_NV_external_memory_win32"
4101
4102typedef struct VkImportMemoryWin32HandleInfoNV {
4103 VkStructureType sType;
4104 const void* pNext;
4105 VkExternalMemoryHandleTypeFlagsNV handleType;
4106 HANDLE handle;
4107} VkImportMemoryWin32HandleInfoNV;
4108
4109typedef struct VkExportMemoryWin32HandleInfoNV {
4110 VkStructureType sType;
4111 const void* pNext;
4112 const SECURITY_ATTRIBUTES* pAttributes;
4113 DWORD dwAccess;
4114} VkExportMemoryWin32HandleInfoNV;
4115
4116
4117typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryWin32HandleNV)(VkDevice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE* pHandle);
4118
4119#ifndef VK_NO_PROTOTYPES
4120VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryWin32HandleNV(
4121 VkDevice device,
4122 VkDeviceMemory memory,
4123 VkExternalMemoryHandleTypeFlagsNV handleType,
4124 HANDLE* pHandle);
4125#endif
4126#endif /* VK_USE_PLATFORM_WIN32_KHR */
4127
4128#ifdef VK_USE_PLATFORM_WIN32_KHR
4129#define VK_NV_win32_keyed_mutex 1
4130#define VK_NV_WIN32_KEYED_MUTEX_SPEC_VERSION 1
4131#define VK_NV_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_NV_win32_keyed_mutex"
4132
4133typedef struct VkWin32KeyedMutexAcquireReleaseInfoNV {
4134 VkStructureType sType;
4135 const void* pNext;
4136 uint32_t acquireCount;
4137 const VkDeviceMemory* pAcquireSyncs;
4138 const uint64_t* pAcquireKeys;
4139 const uint32_t* pAcquireTimeoutMilliseconds;
4140 uint32_t releaseCount;
4141 const VkDeviceMemory* pReleaseSyncs;
4142 const uint64_t* pReleaseKeys;
4143} VkWin32KeyedMutexAcquireReleaseInfoNV;
4144
4145
4146#endif /* VK_USE_PLATFORM_WIN32_KHR */
4147
Mark Lobodzinski1577dab2016-09-27 08:23:59 -06004148#define VK_EXT_validation_flags 1
4149#define VK_EXT_VALIDATION_FLAGS_SPEC_VERSION 1
4150#define VK_EXT_VALIDATION_FLAGS_EXTENSION_NAME "VK_EXT_validation_flags"
4151
4152
4153typedef enum VkValidationCheckEXT {
4154 VK_VALIDATION_CHECK_ALL_EXT = 0,
4155 VK_VALIDATION_CHECK_BEGIN_RANGE_EXT = VK_VALIDATION_CHECK_ALL_EXT,
4156 VK_VALIDATION_CHECK_END_RANGE_EXT = VK_VALIDATION_CHECK_ALL_EXT,
4157 VK_VALIDATION_CHECK_RANGE_SIZE_EXT = (VK_VALIDATION_CHECK_ALL_EXT - VK_VALIDATION_CHECK_ALL_EXT + 1),
4158 VK_VALIDATION_CHECK_MAX_ENUM_EXT = 0x7FFFFFFF
4159} VkValidationCheckEXT;
4160
4161typedef struct VkValidationFlagsEXT {
4162 VkStructureType sType;
4163 const void* pNext;
4164 uint32_t disabledValidationCheckCount;
4165 VkValidationCheckEXT* pDisabledValidationChecks;
4166} VkValidationFlagsEXT;
4167
4168
4169
Mark Lobodzinski2d589822016-12-12 09:44:34 -07004170#define VK_NVX_device_generated_commands 1
4171VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkObjectTableNVX)
4172VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkIndirectCommandsLayoutNVX)
4173
4174#define VK_NVX_DEVICE_GENERATED_COMMANDS_SPEC_VERSION 1
4175#define VK_NVX_DEVICE_GENERATED_COMMANDS_EXTENSION_NAME "VK_NVX_device_generated_commands"
4176
4177
4178typedef enum VkIndirectCommandsTokenTypeNVX {
4179 VK_INDIRECT_COMMANDS_TOKEN_PIPELINE_NVX = 0,
4180 VK_INDIRECT_COMMANDS_TOKEN_DESCRIPTOR_SET_NVX = 1,
4181 VK_INDIRECT_COMMANDS_TOKEN_INDEX_BUFFER_NVX = 2,
4182 VK_INDIRECT_COMMANDS_TOKEN_VERTEX_BUFFER_NVX = 3,
4183 VK_INDIRECT_COMMANDS_TOKEN_PUSH_CONSTANT_NVX = 4,
4184 VK_INDIRECT_COMMANDS_TOKEN_DRAW_INDEXED_NVX = 5,
4185 VK_INDIRECT_COMMANDS_TOKEN_DRAW_NVX = 6,
4186 VK_INDIRECT_COMMANDS_TOKEN_DISPATCH_NVX = 7,
4187 VK_INDIRECT_COMMANDS_TOKEN_TYPE_BEGIN_RANGE_NVX = VK_INDIRECT_COMMANDS_TOKEN_PIPELINE_NVX,
4188 VK_INDIRECT_COMMANDS_TOKEN_TYPE_END_RANGE_NVX = VK_INDIRECT_COMMANDS_TOKEN_DISPATCH_NVX,
4189 VK_INDIRECT_COMMANDS_TOKEN_TYPE_RANGE_SIZE_NVX = (VK_INDIRECT_COMMANDS_TOKEN_DISPATCH_NVX - VK_INDIRECT_COMMANDS_TOKEN_PIPELINE_NVX + 1),
4190 VK_INDIRECT_COMMANDS_TOKEN_TYPE_MAX_ENUM_NVX = 0x7FFFFFFF
4191} VkIndirectCommandsTokenTypeNVX;
4192
4193typedef enum VkObjectEntryTypeNVX {
4194 VK_OBJECT_ENTRY_DESCRIPTOR_SET_NVX = 0,
4195 VK_OBJECT_ENTRY_PIPELINE_NVX = 1,
4196 VK_OBJECT_ENTRY_INDEX_BUFFER_NVX = 2,
4197 VK_OBJECT_ENTRY_VERTEX_BUFFER_NVX = 3,
4198 VK_OBJECT_ENTRY_PUSH_CONSTANT_NVX = 4,
4199 VK_OBJECT_ENTRY_TYPE_BEGIN_RANGE_NVX = VK_OBJECT_ENTRY_DESCRIPTOR_SET_NVX,
4200 VK_OBJECT_ENTRY_TYPE_END_RANGE_NVX = VK_OBJECT_ENTRY_PUSH_CONSTANT_NVX,
4201 VK_OBJECT_ENTRY_TYPE_RANGE_SIZE_NVX = (VK_OBJECT_ENTRY_PUSH_CONSTANT_NVX - VK_OBJECT_ENTRY_DESCRIPTOR_SET_NVX + 1),
4202 VK_OBJECT_ENTRY_TYPE_MAX_ENUM_NVX = 0x7FFFFFFF
4203} VkObjectEntryTypeNVX;
4204
4205
4206typedef enum VkIndirectCommandsLayoutUsageFlagBitsNVX {
4207 VK_INDIRECT_COMMANDS_LAYOUT_USAGE_UNORDERED_SEQUENCES_BIT_NVX = 0x00000001,
4208 VK_INDIRECT_COMMANDS_LAYOUT_USAGE_SPARSE_SEQUENCES_BIT_NVX = 0x00000002,
4209 VK_INDIRECT_COMMANDS_LAYOUT_USAGE_EMPTY_EXECUTIONS_BIT_NVX = 0x00000004,
4210 VK_INDIRECT_COMMANDS_LAYOUT_USAGE_INDEXED_SEQUENCES_BIT_NVX = 0x00000008,
4211 VK_INDIRECT_COMMANDS_LAYOUT_USAGE_FLAG_BITS_MAX_ENUM_NVX = 0x7FFFFFFF
4212} VkIndirectCommandsLayoutUsageFlagBitsNVX;
4213typedef VkFlags VkIndirectCommandsLayoutUsageFlagsNVX;
4214
4215typedef enum VkObjectEntryUsageFlagBitsNVX {
4216 VK_OBJECT_ENTRY_USAGE_GRAPHICS_BIT_NVX = 0x00000001,
4217 VK_OBJECT_ENTRY_USAGE_COMPUTE_BIT_NVX = 0x00000002,
4218 VK_OBJECT_ENTRY_USAGE_FLAG_BITS_MAX_ENUM_NVX = 0x7FFFFFFF
4219} VkObjectEntryUsageFlagBitsNVX;
4220typedef VkFlags VkObjectEntryUsageFlagsNVX;
4221
4222typedef struct VkDeviceGeneratedCommandsFeaturesNVX {
4223 VkStructureType sType;
4224 const void* pNext;
4225 VkBool32 computeBindingPointSupport;
4226} VkDeviceGeneratedCommandsFeaturesNVX;
4227
4228typedef struct VkDeviceGeneratedCommandsLimitsNVX {
4229 VkStructureType sType;
4230 const void* pNext;
4231 uint32_t maxIndirectCommandsLayoutTokenCount;
4232 uint32_t maxObjectEntryCounts;
4233 uint32_t minSequenceCountBufferOffsetAlignment;
4234 uint32_t minSequenceIndexBufferOffsetAlignment;
4235 uint32_t minCommandsTokenBufferOffsetAlignment;
4236} VkDeviceGeneratedCommandsLimitsNVX;
4237
4238typedef struct VkIndirectCommandsTokenNVX {
4239 VkIndirectCommandsTokenTypeNVX tokenType;
4240 VkBuffer buffer;
4241 VkDeviceSize offset;
4242} VkIndirectCommandsTokenNVX;
4243
4244typedef struct VkIndirectCommandsLayoutTokenNVX {
4245 VkIndirectCommandsTokenTypeNVX tokenType;
4246 uint32_t bindingUnit;
4247 uint32_t dynamicCount;
4248 uint32_t divisor;
4249} VkIndirectCommandsLayoutTokenNVX;
4250
4251typedef struct VkIndirectCommandsLayoutCreateInfoNVX {
4252 VkStructureType sType;
4253 const void* pNext;
4254 VkPipelineBindPoint pipelineBindPoint;
4255 VkIndirectCommandsLayoutUsageFlagsNVX flags;
4256 uint32_t tokenCount;
4257 const VkIndirectCommandsLayoutTokenNVX* pTokens;
4258} VkIndirectCommandsLayoutCreateInfoNVX;
4259
4260typedef struct VkCmdProcessCommandsInfoNVX {
4261 VkStructureType sType;
4262 const void* pNext;
4263 VkObjectTableNVX objectTable;
4264 VkIndirectCommandsLayoutNVX indirectCommandsLayout;
4265 uint32_t indirectCommandsTokenCount;
4266 const VkIndirectCommandsTokenNVX* pIndirectCommandsTokens;
4267 uint32_t maxSequencesCount;
4268 VkCommandBuffer targetCommandBuffer;
4269 VkBuffer sequencesCountBuffer;
4270 VkDeviceSize sequencesCountOffset;
4271 VkBuffer sequencesIndexBuffer;
4272 VkDeviceSize sequencesIndexOffset;
4273} VkCmdProcessCommandsInfoNVX;
4274
4275typedef struct VkCmdReserveSpaceForCommandsInfoNVX {
4276 VkStructureType sType;
4277 const void* pNext;
4278 VkObjectTableNVX objectTable;
4279 VkIndirectCommandsLayoutNVX indirectCommandsLayout;
4280 uint32_t maxSequencesCount;
4281} VkCmdReserveSpaceForCommandsInfoNVX;
4282
4283typedef struct VkObjectTableCreateInfoNVX {
4284 VkStructureType sType;
4285 const void* pNext;
4286 uint32_t objectCount;
4287 const VkObjectEntryTypeNVX* pObjectEntryTypes;
4288 const uint32_t* pObjectEntryCounts;
4289 const VkObjectEntryUsageFlagsNVX* pObjectEntryUsageFlags;
4290 uint32_t maxUniformBuffersPerDescriptor;
4291 uint32_t maxStorageBuffersPerDescriptor;
4292 uint32_t maxStorageImagesPerDescriptor;
4293 uint32_t maxSampledImagesPerDescriptor;
4294 uint32_t maxPipelineLayouts;
4295} VkObjectTableCreateInfoNVX;
4296
4297typedef struct VkObjectTableEntryNVX {
4298 VkObjectEntryTypeNVX type;
4299 VkObjectEntryUsageFlagsNVX flags;
4300} VkObjectTableEntryNVX;
4301
4302typedef struct VkObjectTablePipelineEntryNVX {
4303 VkObjectEntryTypeNVX type;
4304 VkObjectEntryUsageFlagsNVX flags;
4305 VkPipeline pipeline;
4306} VkObjectTablePipelineEntryNVX;
4307
4308typedef struct VkObjectTableDescriptorSetEntryNVX {
4309 VkObjectEntryTypeNVX type;
4310 VkObjectEntryUsageFlagsNVX flags;
4311 VkPipelineLayout pipelineLayout;
4312 VkDescriptorSet descriptorSet;
4313} VkObjectTableDescriptorSetEntryNVX;
4314
4315typedef struct VkObjectTableVertexBufferEntryNVX {
4316 VkObjectEntryTypeNVX type;
4317 VkObjectEntryUsageFlagsNVX flags;
4318 VkBuffer buffer;
4319} VkObjectTableVertexBufferEntryNVX;
4320
4321typedef struct VkObjectTableIndexBufferEntryNVX {
4322 VkObjectEntryTypeNVX type;
4323 VkObjectEntryUsageFlagsNVX flags;
4324 VkBuffer buffer;
4325} VkObjectTableIndexBufferEntryNVX;
4326
4327typedef struct VkObjectTablePushConstantEntryNVX {
4328 VkObjectEntryTypeNVX type;
4329 VkObjectEntryUsageFlagsNVX flags;
4330 VkPipelineLayout pipelineLayout;
4331 VkShaderStageFlags stageFlags;
4332} VkObjectTablePushConstantEntryNVX;
4333
4334
4335typedef void (VKAPI_PTR *PFN_vkCmdProcessCommandsNVX)(VkCommandBuffer commandBuffer, const VkCmdProcessCommandsInfoNVX* pProcessCommandsInfo);
4336typedef void (VKAPI_PTR *PFN_vkCmdReserveSpaceForCommandsNVX)(VkCommandBuffer commandBuffer, const VkCmdReserveSpaceForCommandsInfoNVX* pReserveSpaceInfo);
4337typedef VkResult (VKAPI_PTR *PFN_vkCreateIndirectCommandsLayoutNVX)(VkDevice device, const VkIndirectCommandsLayoutCreateInfoNVX* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkIndirectCommandsLayoutNVX* pIndirectCommandsLayout);
4338typedef void (VKAPI_PTR *PFN_vkDestroyIndirectCommandsLayoutNVX)(VkDevice device, VkIndirectCommandsLayoutNVX indirectCommandsLayout, const VkAllocationCallbacks* pAllocator);
4339typedef VkResult (VKAPI_PTR *PFN_vkCreateObjectTableNVX)(VkDevice device, const VkObjectTableCreateInfoNVX* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkObjectTableNVX* pObjectTable);
4340typedef void (VKAPI_PTR *PFN_vkDestroyObjectTableNVX)(VkDevice device, VkObjectTableNVX objectTable, const VkAllocationCallbacks* pAllocator);
4341typedef VkResult (VKAPI_PTR *PFN_vkRegisterObjectsNVX)(VkDevice device, VkObjectTableNVX objectTable, uint32_t objectCount, const VkObjectTableEntryNVX* const* ppObjectTableEntries, const uint32_t* pObjectIndices);
4342typedef VkResult (VKAPI_PTR *PFN_vkUnregisterObjectsNVX)(VkDevice device, VkObjectTableNVX objectTable, uint32_t objectCount, const VkObjectEntryTypeNVX* pObjectEntryTypes, const uint32_t* pObjectIndices);
4343typedef void (VKAPI_PTR *PFN_vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX)(VkPhysicalDevice physicalDevice, VkDeviceGeneratedCommandsFeaturesNVX* pFeatures, VkDeviceGeneratedCommandsLimitsNVX* pLimits);
4344
4345#ifndef VK_NO_PROTOTYPES
4346VKAPI_ATTR void VKAPI_CALL vkCmdProcessCommandsNVX(
4347 VkCommandBuffer commandBuffer,
4348 const VkCmdProcessCommandsInfoNVX* pProcessCommandsInfo);
4349
4350VKAPI_ATTR void VKAPI_CALL vkCmdReserveSpaceForCommandsNVX(
4351 VkCommandBuffer commandBuffer,
4352 const VkCmdReserveSpaceForCommandsInfoNVX* pReserveSpaceInfo);
4353
4354VKAPI_ATTR VkResult VKAPI_CALL vkCreateIndirectCommandsLayoutNVX(
4355 VkDevice device,
4356 const VkIndirectCommandsLayoutCreateInfoNVX* pCreateInfo,
4357 const VkAllocationCallbacks* pAllocator,
4358 VkIndirectCommandsLayoutNVX* pIndirectCommandsLayout);
4359
4360VKAPI_ATTR void VKAPI_CALL vkDestroyIndirectCommandsLayoutNVX(
4361 VkDevice device,
4362 VkIndirectCommandsLayoutNVX indirectCommandsLayout,
4363 const VkAllocationCallbacks* pAllocator);
4364
4365VKAPI_ATTR VkResult VKAPI_CALL vkCreateObjectTableNVX(
4366 VkDevice device,
4367 const VkObjectTableCreateInfoNVX* pCreateInfo,
4368 const VkAllocationCallbacks* pAllocator,
4369 VkObjectTableNVX* pObjectTable);
4370
4371VKAPI_ATTR void VKAPI_CALL vkDestroyObjectTableNVX(
4372 VkDevice device,
4373 VkObjectTableNVX objectTable,
4374 const VkAllocationCallbacks* pAllocator);
4375
4376VKAPI_ATTR VkResult VKAPI_CALL vkRegisterObjectsNVX(
4377 VkDevice device,
4378 VkObjectTableNVX objectTable,
4379 uint32_t objectCount,
4380 const VkObjectTableEntryNVX* const* ppObjectTableEntries,
4381 const uint32_t* pObjectIndices);
4382
4383VKAPI_ATTR VkResult VKAPI_CALL vkUnregisterObjectsNVX(
4384 VkDevice device,
4385 VkObjectTableNVX objectTable,
4386 uint32_t objectCount,
4387 const VkObjectEntryTypeNVX* pObjectEntryTypes,
4388 const uint32_t* pObjectIndices);
4389
4390VKAPI_ATTR void VKAPI_CALL vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX(
4391 VkPhysicalDevice physicalDevice,
4392 VkDeviceGeneratedCommandsFeaturesNVX* pFeatures,
4393 VkDeviceGeneratedCommandsLimitsNVX* pLimits);
4394#endif
4395
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06004396#ifdef __cplusplus
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06004397}
4398#endif
Courtney Goeltzenleuchter64d1a712015-04-08 18:04:29 -06004399
Courtney Goeltzenleuchterac191122015-07-12 12:21:19 -06004400#endif