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