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