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