Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1 | // |
| 2 | // File: vulkan.h |
| 3 | // |
| 4 | /* |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 5 | ** Copyright (c) 2014-2015 The Khronos Group Inc. |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 6 | ** |
| 7 | ** Permission is hereby granted, free of charge, to any person obtaining a |
| 8 | ** copy of this software and/or associated documentation files (the |
| 9 | ** "Materials"), to deal in the Materials without restriction, including |
| 10 | ** without limitation the rights to use, copy, modify, merge, publish, |
| 11 | ** distribute, sublicense, and/or sell copies of the Materials, and to |
| 12 | ** permit persons to whom the Materials are furnished to do so, subject to |
| 13 | ** the following conditions: |
| 14 | ** |
| 15 | ** The above copyright notice and this permission notice shall be included |
| 16 | ** in all copies or substantial portions of the Materials. |
| 17 | ** |
| 18 | ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 19 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 20 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 21 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 22 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 23 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 24 | ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
| 25 | */ |
| 26 | |
| 27 | #ifndef __VULKAN_H__ |
| 28 | #define __VULKAN_H__ |
| 29 | |
| 30 | #define VK_MAKE_VERSION(major, minor, patch) \ |
| 31 | ((major << 22) | (minor << 12) | patch) |
| 32 | |
Courtney Goeltzenleuchter | b0cedb8 | 2015-04-09 11:52:55 -0600 | [diff] [blame] | 33 | #include "vk_platform.h" |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 34 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 35 | // Vulkan API version supported by this file |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 36 | #define VK_API_VERSION VK_MAKE_VERSION(0, 78, 0) |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 37 | |
| 38 | #ifdef __cplusplus |
| 39 | extern "C" |
| 40 | { |
| 41 | #endif // __cplusplus |
| 42 | |
| 43 | /* |
| 44 | *************************************************************************************************** |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 45 | * Core Vulkan API |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 46 | *************************************************************************************************** |
| 47 | */ |
| 48 | |
| 49 | #ifdef __cplusplus |
| 50 | #define VK_DEFINE_HANDLE(_obj) struct _obj##_T {char _dummy;}; typedef _obj##_T* _obj; |
| 51 | #define VK_DEFINE_SUBCLASS_HANDLE(_obj, _base) struct _obj##_T : public _base##_T {}; typedef _obj##_T* _obj; |
| 52 | #else // __cplusplus |
| 53 | #define VK_DEFINE_HANDLE(_obj) typedef void* _obj; |
| 54 | #define VK_DEFINE_SUBCLASS_HANDLE(_obj, _base) typedef void* _obj; |
| 55 | #endif // __cplusplus |
| 56 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 57 | VK_DEFINE_HANDLE(VkInstance) |
| 58 | VK_DEFINE_HANDLE(VkPhysicalGpu) |
| 59 | VK_DEFINE_HANDLE(VkBaseObject) |
| 60 | VK_DEFINE_SUBCLASS_HANDLE(VkDevice, VkBaseObject) |
| 61 | VK_DEFINE_SUBCLASS_HANDLE(VkQueue, VkBaseObject) |
| 62 | VK_DEFINE_SUBCLASS_HANDLE(VkGpuMemory, VkBaseObject) |
| 63 | VK_DEFINE_SUBCLASS_HANDLE(VkObject, VkBaseObject) |
| 64 | VK_DEFINE_SUBCLASS_HANDLE(VkBuffer, VkObject) |
| 65 | VK_DEFINE_SUBCLASS_HANDLE(VkBufferView, VkObject) |
| 66 | VK_DEFINE_SUBCLASS_HANDLE(VkImage, VkObject) |
| 67 | VK_DEFINE_SUBCLASS_HANDLE(VkImageView, VkObject) |
| 68 | VK_DEFINE_SUBCLASS_HANDLE(VkColorAttachmentView, VkObject) |
| 69 | VK_DEFINE_SUBCLASS_HANDLE(VkDepthStencilView, VkObject) |
| 70 | VK_DEFINE_SUBCLASS_HANDLE(VkShader, VkObject) |
| 71 | VK_DEFINE_SUBCLASS_HANDLE(VkPipeline, VkObject) |
| 72 | VK_DEFINE_SUBCLASS_HANDLE(VkSampler, VkObject) |
| 73 | VK_DEFINE_SUBCLASS_HANDLE(VkDescriptorSet, VkObject) |
| 74 | VK_DEFINE_SUBCLASS_HANDLE(VkDescriptorSetLayout, VkObject) |
| 75 | VK_DEFINE_SUBCLASS_HANDLE(VkDescriptorSetLayoutChain, VkObject) |
| 76 | VK_DEFINE_SUBCLASS_HANDLE(VkDescriptorPool, VkObject) |
| 77 | VK_DEFINE_SUBCLASS_HANDLE(VkDynamicStateObject, VkObject) |
Courtney Goeltzenleuchter | 502744a | 2015-04-10 16:24:50 -0600 | [diff] [blame] | 78 | VK_DEFINE_SUBCLASS_HANDLE(VkDynamicVpState, VkDynamicStateObject) |
| 79 | VK_DEFINE_SUBCLASS_HANDLE(VkDynamicRsState, VkDynamicStateObject) |
| 80 | VK_DEFINE_SUBCLASS_HANDLE(VkDynamicCbState, VkDynamicStateObject) |
| 81 | VK_DEFINE_SUBCLASS_HANDLE(VkDynamicDsState, VkDynamicStateObject) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 82 | VK_DEFINE_SUBCLASS_HANDLE(VkCmdBuffer, VkObject) |
| 83 | VK_DEFINE_SUBCLASS_HANDLE(VkFence, VkObject) |
| 84 | VK_DEFINE_SUBCLASS_HANDLE(VkSemaphore, VkObject) |
| 85 | VK_DEFINE_SUBCLASS_HANDLE(VkEvent, VkObject) |
| 86 | VK_DEFINE_SUBCLASS_HANDLE(VkQueryPool, VkObject) |
| 87 | VK_DEFINE_SUBCLASS_HANDLE(VkFramebuffer, VkObject) |
| 88 | VK_DEFINE_SUBCLASS_HANDLE(VkRenderPass, VkObject) |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 89 | |
| 90 | #define VK_MAX_PHYSICAL_GPUS 16 |
| 91 | #define VK_MAX_PHYSICAL_GPU_NAME 256 |
Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 92 | #define VK_MAX_EXTENSION_NAME 256 |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 93 | |
| 94 | #define VK_LOD_CLAMP_NONE MAX_FLOAT |
| 95 | #define VK_LAST_MIP_OR_SLICE 0xffffffff |
| 96 | |
| 97 | #define VK_TRUE 1 |
| 98 | #define VK_FALSE 0 |
| 99 | |
| 100 | #define VK_NULL_HANDLE 0 |
| 101 | |
| 102 | // This macro defines INT_MAX in enumerations to force compilers to use 32 bits |
| 103 | // to represent them. This may or may not be necessary on some compilers. The |
| 104 | // option to compile it out may allow compilers that warn about missing enumerants |
| 105 | // in switch statements to be silenced. |
| 106 | #define VK_MAX_ENUM(T) T##_MAX_ENUM = 0x7FFFFFFF |
| 107 | |
| 108 | // ------------------------------------------------------------------------------------------------ |
| 109 | // Enumerations |
| 110 | |
| 111 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 112 | typedef enum VkMemoryPriority_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 113 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 114 | VK_MEMORY_PRIORITY_UNUSED = 0x0, |
| 115 | VK_MEMORY_PRIORITY_VERY_LOW = 0x1, |
| 116 | VK_MEMORY_PRIORITY_LOW = 0x2, |
| 117 | VK_MEMORY_PRIORITY_NORMAL = 0x3, |
| 118 | VK_MEMORY_PRIORITY_HIGH = 0x4, |
| 119 | VK_MEMORY_PRIORITY_VERY_HIGH = 0x5, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 120 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 121 | VK_MEMORY_PRIORITY_BEGIN_RANGE = VK_MEMORY_PRIORITY_UNUSED, |
| 122 | VK_MEMORY_PRIORITY_END_RANGE = VK_MEMORY_PRIORITY_VERY_HIGH, |
| 123 | VK_NUM_MEMORY_PRIORITY = (VK_MEMORY_PRIORITY_END_RANGE - VK_MEMORY_PRIORITY_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 124 | VK_MAX_ENUM(VkMemoryPriority) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 125 | } VkMemoryPriority; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 126 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 127 | typedef enum VkImageLayout_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 128 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 129 | VK_IMAGE_LAYOUT_UNDEFINED = 0x00000000, // Implicit layout an image is when its contents are undefined due to various reasons (e.g. right after creation) |
| 130 | VK_IMAGE_LAYOUT_GENERAL = 0x00000001, // General layout when image can be used for any kind of access |
| 131 | VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = 0x00000002, // Optimal layout when image is only used for color attachment read/write |
| 132 | VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = 0x00000003, // Optimal layout when image is only used for depth/stencil attachment read/write |
| 133 | VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = 0x00000004, // Optimal layout when image is used for read only depth/stencil attachment and shader access |
| 134 | VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = 0x00000005, // Optimal layout when image is used for read only shader access |
| 135 | VK_IMAGE_LAYOUT_CLEAR_OPTIMAL = 0x00000006, // Optimal layout when image is used only for clear operations |
| 136 | VK_IMAGE_LAYOUT_TRANSFER_SOURCE_OPTIMAL = 0x00000007, // Optimal layout when image is used only as source of transfer operations |
| 137 | VK_IMAGE_LAYOUT_TRANSFER_DESTINATION_OPTIMAL = 0x00000008, // Optimal layout when image is used only as destination of transfer operations |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 138 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 139 | VK_IMAGE_LAYOUT_BEGIN_RANGE = VK_IMAGE_LAYOUT_UNDEFINED, |
| 140 | VK_IMAGE_LAYOUT_END_RANGE = VK_IMAGE_LAYOUT_TRANSFER_DESTINATION_OPTIMAL, |
| 141 | VK_NUM_IMAGE_LAYOUT = (VK_IMAGE_LAYOUT_END_RANGE - VK_IMAGE_LAYOUT_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 142 | VK_MAX_ENUM(VkImageLayout) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 143 | } VkImageLayout; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 144 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 145 | typedef enum VkPipeEvent_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 146 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 147 | VK_PIPE_EVENT_TOP_OF_PIPE = 0x00000001, // Set event before the GPU starts processing subsequent command |
| 148 | VK_PIPE_EVENT_VERTEX_PROCESSING_COMPLETE = 0x00000002, // Set event when all pending vertex processing is complete |
| 149 | VK_PIPE_EVENT_LOCAL_FRAGMENT_PROCESSING_COMPLETE = 0x00000003, // Set event when all pending fragment shader executions are complete, within each fragment location |
| 150 | VK_PIPE_EVENT_FRAGMENT_PROCESSING_COMPLETE = 0x00000004, // Set event when all pending fragment shader executions are complete |
| 151 | VK_PIPE_EVENT_GRAPHICS_PIPELINE_COMPLETE = 0x00000005, // Set event when all pending graphics operations are complete |
| 152 | VK_PIPE_EVENT_COMPUTE_PIPELINE_COMPLETE = 0x00000006, // Set event when all pending compute operations are complete |
| 153 | VK_PIPE_EVENT_TRANSFER_COMPLETE = 0x00000007, // Set event when all pending transfer operations are complete |
| 154 | VK_PIPE_EVENT_GPU_COMMANDS_COMPLETE = 0x00000008, // Set event when all pending GPU work is complete |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 155 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 156 | VK_PIPE_EVENT_BEGIN_RANGE = VK_PIPE_EVENT_TOP_OF_PIPE, |
| 157 | VK_PIPE_EVENT_END_RANGE = VK_PIPE_EVENT_GPU_COMMANDS_COMPLETE, |
| 158 | VK_NUM_PIPE_EVENT = (VK_PIPE_EVENT_END_RANGE - VK_PIPE_EVENT_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 159 | VK_MAX_ENUM(VkPipeEvent) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 160 | } VkPipeEvent; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 161 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 162 | typedef enum VkWaitEvent_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 163 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 164 | VK_WAIT_EVENT_TOP_OF_PIPE = 0x00000001, // Wait event before the GPU starts processing subsequent commands |
| 165 | VK_WAIT_EVENT_BEFORE_RASTERIZATION = 0x00000002, // Wait event before rasterizing subsequent primitives |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 166 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 167 | VK_WAIT_EVENT_BEGIN_RANGE = VK_WAIT_EVENT_TOP_OF_PIPE, |
| 168 | VK_WAIT_EVENT_END_RANGE = VK_WAIT_EVENT_BEFORE_RASTERIZATION, |
| 169 | VK_NUM_WAIT_EVENT = (VK_WAIT_EVENT_END_RANGE - VK_WAIT_EVENT_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 170 | VK_MAX_ENUM(VkWaitEvent) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 171 | } VkWaitEvent; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 172 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 173 | typedef enum VkMemoryOutputFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 174 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 175 | VK_MEMORY_OUTPUT_CPU_WRITE_BIT = 0x00000001, // Controls output coherency of CPU writes |
| 176 | VK_MEMORY_OUTPUT_SHADER_WRITE_BIT = 0x00000002, // Controls output coherency of generic shader writes |
| 177 | VK_MEMORY_OUTPUT_COLOR_ATTACHMENT_BIT = 0x00000004, // Controls output coherency of color attachment writes |
| 178 | VK_MEMORY_OUTPUT_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000008, // Controls output coherency of depth/stencil attachment writes |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 179 | VK_MEMORY_OUTPUT_TRANSFER_BIT = 0x00000010, // Controls output coherency of transfer operations |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 180 | VK_MAX_ENUM(VkMemoryOutputFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 181 | } VkMemoryOutputFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 182 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 183 | typedef enum VkMemoryInputFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 184 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 185 | VK_MEMORY_INPUT_CPU_READ_BIT = 0x00000001, // Controls input coherency of CPU reads |
| 186 | VK_MEMORY_INPUT_INDIRECT_COMMAND_BIT = 0x00000002, // Controls input coherency of indirect command reads |
| 187 | VK_MEMORY_INPUT_INDEX_FETCH_BIT = 0x00000004, // Controls input coherency of index fetches |
| 188 | VK_MEMORY_INPUT_VERTEX_ATTRIBUTE_FETCH_BIT = 0x00000008, // Controls input coherency of vertex attribute fetches |
| 189 | VK_MEMORY_INPUT_UNIFORM_READ_BIT = 0x00000010, // Controls input coherency of uniform buffer reads |
| 190 | VK_MEMORY_INPUT_SHADER_READ_BIT = 0x00000020, // Controls input coherency of generic shader reads |
| 191 | VK_MEMORY_INPUT_COLOR_ATTACHMENT_BIT = 0x00000040, // Controls input coherency of color attachment reads |
| 192 | VK_MEMORY_INPUT_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000080, // Controls input coherency of depth/stencil attachment reads |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 193 | VK_MEMORY_INPUT_TRANSFER_BIT = 0x00000100, // Controls input coherency of transfer operations |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 194 | VK_MAX_ENUM(VkMemoryInputFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 195 | } VkMemoryInputFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 196 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 197 | typedef enum VkAttachmentLoadOp_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 198 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 199 | VK_ATTACHMENT_LOAD_OP_LOAD = 0x00000000, |
| 200 | VK_ATTACHMENT_LOAD_OP_CLEAR = 0x00000001, |
| 201 | VK_ATTACHMENT_LOAD_OP_DONT_CARE = 0x00000002, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 202 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 203 | VK_ATTACHMENT_LOAD_OP_BEGIN_RANGE = VK_ATTACHMENT_LOAD_OP_LOAD, |
| 204 | VK_ATTACHMENT_LOAD_OP_END_RANGE = VK_ATTACHMENT_LOAD_OP_DONT_CARE, |
| 205 | VK_NUM_ATTACHMENT_LOAD_OP = (VK_ATTACHMENT_LOAD_OP_END_RANGE - VK_ATTACHMENT_LOAD_OP_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 206 | VK_MAX_ENUM(VkAttachmentLoadOp) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 207 | } VkAttachmentLoadOp; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 208 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 209 | typedef enum VkAttachmentStoreOp_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 210 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 211 | VK_ATTACHMENT_STORE_OP_STORE = 0x00000000, |
| 212 | VK_ATTACHMENT_STORE_OP_RESOLVE_MSAA = 0x00000001, |
| 213 | VK_ATTACHMENT_STORE_OP_DONT_CARE = 0x00000002, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 214 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 215 | VK_ATTACHMENT_STORE_OP_BEGIN_RANGE = VK_ATTACHMENT_STORE_OP_STORE, |
| 216 | VK_ATTACHMENT_STORE_OP_END_RANGE = VK_ATTACHMENT_STORE_OP_DONT_CARE, |
| 217 | VK_NUM_ATTACHMENT_STORE_OP = (VK_ATTACHMENT_STORE_OP_END_RANGE - VK_ATTACHMENT_STORE_OP_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 218 | VK_MAX_ENUM(VkAttachmentStoreOp) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 219 | } VkAttachmentStoreOp; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 220 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 221 | typedef enum VkImageType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 222 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 223 | VK_IMAGE_1D = 0x00000000, |
| 224 | VK_IMAGE_2D = 0x00000001, |
| 225 | VK_IMAGE_3D = 0x00000002, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 226 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 227 | VK_IMAGE_TYPE_BEGIN_RANGE = VK_IMAGE_1D, |
| 228 | VK_IMAGE_TYPE_END_RANGE = VK_IMAGE_3D, |
| 229 | VK_NUM_IMAGE_TYPE = (VK_IMAGE_TYPE_END_RANGE - VK_IMAGE_TYPE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 230 | VK_MAX_ENUM(VkImageType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 231 | } VkImageType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 232 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 233 | typedef enum VkImageTiling_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 234 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 235 | VK_LINEAR_TILING = 0x00000000, |
| 236 | VK_OPTIMAL_TILING = 0x00000001, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 237 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 238 | VK_IMAGE_TILING_BEGIN_RANGE = VK_LINEAR_TILING, |
| 239 | VK_IMAGE_TILING_END_RANGE = VK_OPTIMAL_TILING, |
| 240 | VK_NUM_IMAGE_TILING = (VK_IMAGE_TILING_END_RANGE - VK_IMAGE_TILING_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 241 | VK_MAX_ENUM(VkImageTiling) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 242 | } VkImageTiling; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 243 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 244 | typedef enum VkImageViewType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 245 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 246 | VK_IMAGE_VIEW_1D = 0x00000000, |
| 247 | VK_IMAGE_VIEW_2D = 0x00000001, |
| 248 | VK_IMAGE_VIEW_3D = 0x00000002, |
| 249 | VK_IMAGE_VIEW_CUBE = 0x00000003, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 250 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 251 | VK_IMAGE_VIEW_TYPE_BEGIN_RANGE = VK_IMAGE_VIEW_1D, |
| 252 | VK_IMAGE_VIEW_TYPE_END_RANGE = VK_IMAGE_VIEW_CUBE, |
| 253 | VK_NUM_IMAGE_VIEW_TYPE = (VK_IMAGE_VIEW_TYPE_END_RANGE - VK_IMAGE_VIEW_TYPE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 254 | VK_MAX_ENUM(VkImageViewType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 255 | } VkImageViewType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 256 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 257 | typedef enum VkImageAspect_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 258 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 259 | VK_IMAGE_ASPECT_COLOR = 0x00000000, |
| 260 | VK_IMAGE_ASPECT_DEPTH = 0x00000001, |
| 261 | VK_IMAGE_ASPECT_STENCIL = 0x00000002, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 262 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 263 | VK_IMAGE_ASPECT_BEGIN_RANGE = VK_IMAGE_ASPECT_COLOR, |
| 264 | VK_IMAGE_ASPECT_END_RANGE = VK_IMAGE_ASPECT_STENCIL, |
| 265 | VK_NUM_IMAGE_ASPECT = (VK_IMAGE_ASPECT_END_RANGE - VK_IMAGE_ASPECT_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 266 | VK_MAX_ENUM(VkImageAspect) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 267 | } VkImageAspect; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 268 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 269 | typedef enum VkChannelSwizzle_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 270 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 271 | VK_CHANNEL_SWIZZLE_ZERO = 0x00000000, |
| 272 | VK_CHANNEL_SWIZZLE_ONE = 0x00000001, |
| 273 | VK_CHANNEL_SWIZZLE_R = 0x00000002, |
| 274 | VK_CHANNEL_SWIZZLE_G = 0x00000003, |
| 275 | VK_CHANNEL_SWIZZLE_B = 0x00000004, |
| 276 | VK_CHANNEL_SWIZZLE_A = 0x00000005, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 277 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 278 | VK_CHANNEL_SWIZZLE_BEGIN_RANGE = VK_CHANNEL_SWIZZLE_ZERO, |
| 279 | VK_CHANNEL_SWIZZLE_END_RANGE = VK_CHANNEL_SWIZZLE_A, |
| 280 | VK_NUM_CHANNEL_SWIZZLE = (VK_CHANNEL_SWIZZLE_END_RANGE - VK_CHANNEL_SWIZZLE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 281 | VK_MAX_ENUM(VkChannelSwizzle) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 282 | } VkChannelSwizzle; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 283 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 284 | typedef enum VkDescriptorType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 285 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 286 | VK_DESCRIPTOR_TYPE_SAMPLER = 0x00000000, |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 287 | VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = 0x00000001, |
| 288 | VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE = 0x00000002, |
| 289 | VK_DESCRIPTOR_TYPE_STORAGE_IMAGE = 0x00000003, |
| 290 | VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = 0x00000004, |
| 291 | VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = 0x00000005, |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 292 | VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER = 0x00000006, |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 293 | VK_DESCRIPTOR_TYPE_STORAGE_BUFFER = 0x00000007, |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 294 | VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = 0x00000008, |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 295 | VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = 0x00000009, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 296 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 297 | VK_DESCRIPTOR_TYPE_BEGIN_RANGE = VK_DESCRIPTOR_TYPE_SAMPLER, |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 298 | VK_DESCRIPTOR_TYPE_END_RANGE = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 299 | VK_NUM_DESCRIPTOR_TYPE = (VK_DESCRIPTOR_TYPE_END_RANGE - VK_DESCRIPTOR_TYPE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 300 | VK_MAX_ENUM(VkDescriptorType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 301 | } VkDescriptorType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 302 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 303 | typedef enum VkDescriptorPoolUsage_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 304 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 305 | VK_DESCRIPTOR_POOL_USAGE_ONE_SHOT = 0x00000000, |
| 306 | VK_DESCRIPTOR_POOL_USAGE_DYNAMIC = 0x00000001, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 307 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 308 | VK_DESCRIPTOR_POOL_USAGE_BEGIN_RANGE = VK_DESCRIPTOR_POOL_USAGE_ONE_SHOT, |
| 309 | VK_DESCRIPTOR_POOL_USAGE_END_RANGE = VK_DESCRIPTOR_POOL_USAGE_DYNAMIC, |
| 310 | VK_NUM_DESCRIPTOR_POOL_USAGE = (VK_DESCRIPTOR_POOL_USAGE_END_RANGE - VK_DESCRIPTOR_POOL_USAGE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 311 | VK_MAX_ENUM(VkDescriptorPoolUsage) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 312 | } VkDescriptorPoolUsage; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 313 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 314 | typedef enum VkDescriptorUpdateMode_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 315 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 316 | VK_DESCRIPTOR_UDPATE_MODE_COPY = 0x00000000, |
| 317 | VK_DESCRIPTOR_UPDATE_MODE_FASTEST = 0x00000001, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 318 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 319 | VK_DESCRIPTOR_UPDATE_MODE_BEGIN_RANGE = VK_DESCRIPTOR_UDPATE_MODE_COPY, |
| 320 | VK_DESCRIPTOR_UPDATE_MODE_END_RANGE = VK_DESCRIPTOR_UPDATE_MODE_FASTEST, |
| 321 | VK_NUM_DESCRIPTOR_UPDATE_MODE = (VK_DESCRIPTOR_UPDATE_MODE_END_RANGE - VK_DESCRIPTOR_UPDATE_MODE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 322 | VK_MAX_ENUM(VkDescriptorUpdateMode) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 323 | } VkDescriptorUpdateMode; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 324 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 325 | typedef enum VkDescriptorSetUsage_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 326 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 327 | VK_DESCRIPTOR_SET_USAGE_ONE_SHOT = 0x00000000, |
| 328 | VK_DESCRIPTOR_SET_USAGE_STATIC = 0x00000001, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 329 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 330 | VK_DESCRIPTOR_SET_USAGE_BEGIN_RANGE = VK_DESCRIPTOR_SET_USAGE_ONE_SHOT, |
| 331 | VK_DESCRIPTOR_SET_USAGE_END_RANGE = VK_DESCRIPTOR_SET_USAGE_STATIC, |
| 332 | VK_NUM_DESCRIPTOR_SET_USAGE = (VK_DESCRIPTOR_SET_USAGE_END_RANGE - VK_DESCRIPTOR_SET_USAGE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 333 | VK_MAX_ENUM(VkDescriptorSetUsage) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 334 | } VkDescriptorSetUsage; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 335 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 336 | typedef enum VkQueryType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 337 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 338 | VK_QUERY_OCCLUSION = 0x00000000, |
| 339 | VK_QUERY_PIPELINE_STATISTICS = 0x00000001, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 340 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 341 | VK_QUERY_TYPE_BEGIN_RANGE = VK_QUERY_OCCLUSION, |
| 342 | VK_QUERY_TYPE_END_RANGE = VK_QUERY_PIPELINE_STATISTICS, |
| 343 | VK_NUM_QUERY_TYPE = (VK_QUERY_TYPE_END_RANGE - VK_QUERY_TYPE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 344 | VK_MAX_ENUM(VkQueryType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 345 | } VkQueryType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 346 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 347 | typedef enum VkTimestampType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 348 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 349 | VK_TIMESTAMP_TOP = 0x00000000, |
| 350 | VK_TIMESTAMP_BOTTOM = 0x00000001, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 351 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 352 | VK_TIMESTAMP_TYPE_BEGIN_RANGE = VK_TIMESTAMP_TOP, |
| 353 | VK_TIMESTAMP_TYPE_END_RANGE = VK_TIMESTAMP_BOTTOM, |
| 354 | VK_NUM_TIMESTAMP_TYPE = (VK_TIMESTAMP_TYPE_END_RANGE - VK_TIMESTAMP_TYPE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 355 | VK_MAX_ENUM(VkTimestampType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 356 | } VkTimestampType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 357 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 358 | typedef enum VkBorderColorType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 359 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 360 | VK_BORDER_COLOR_OPAQUE_WHITE = 0x00000000, |
| 361 | VK_BORDER_COLOR_TRANSPARENT_BLACK = 0x00000001, |
| 362 | VK_BORDER_COLOR_OPAQUE_BLACK = 0x00000002, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 363 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 364 | VK_BORDER_COLOR_TYPE_BEGIN_RANGE = VK_BORDER_COLOR_OPAQUE_WHITE, |
| 365 | VK_BORDER_COLOR_TYPE_END_RANGE = VK_BORDER_COLOR_OPAQUE_BLACK, |
| 366 | VK_NUM_BORDER_COLOR_TYPE = (VK_BORDER_COLOR_TYPE_END_RANGE - VK_BORDER_COLOR_TYPE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 367 | VK_MAX_ENUM(VkBorderColorType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 368 | } VkBorderColorType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 369 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 370 | typedef enum VkPipelineBindPoint_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 371 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 372 | VK_PIPELINE_BIND_POINT_COMPUTE = 0x00000000, |
| 373 | VK_PIPELINE_BIND_POINT_GRAPHICS = 0x00000001, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 374 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 375 | VK_PIPELINE_BIND_POINT_BEGIN_RANGE = VK_PIPELINE_BIND_POINT_COMPUTE, |
| 376 | VK_PIPELINE_BIND_POINT_END_RANGE = VK_PIPELINE_BIND_POINT_GRAPHICS, |
| 377 | VK_NUM_PIPELINE_BIND_POINT = (VK_PIPELINE_BIND_POINT_END_RANGE - VK_PIPELINE_BIND_POINT_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 378 | VK_MAX_ENUM(VkPipelineBindPoint) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 379 | } VkPipelineBindPoint; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 380 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 381 | typedef enum VkStateBindPoint_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 382 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 383 | VK_STATE_BIND_VIEWPORT = 0x00000000, |
| 384 | VK_STATE_BIND_RASTER = 0x00000001, |
| 385 | VK_STATE_BIND_COLOR_BLEND = 0x00000002, |
| 386 | VK_STATE_BIND_DEPTH_STENCIL = 0x00000003, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 387 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 388 | VK_STATE_BIND_POINT_BEGIN_RANGE = VK_STATE_BIND_VIEWPORT, |
| 389 | VK_STATE_BIND_POINT_END_RANGE = VK_STATE_BIND_DEPTH_STENCIL, |
| 390 | VK_NUM_STATE_BIND_POINT = (VK_STATE_BIND_POINT_END_RANGE - VK_STATE_BIND_POINT_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 391 | VK_MAX_ENUM(VkStateBindPoint) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 392 | } VkStateBindPoint; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 393 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 394 | typedef enum VkPrimitiveTopology_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 395 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 396 | VK_TOPOLOGY_POINT_LIST = 0x00000000, |
| 397 | VK_TOPOLOGY_LINE_LIST = 0x00000001, |
| 398 | VK_TOPOLOGY_LINE_STRIP = 0x00000002, |
| 399 | VK_TOPOLOGY_TRIANGLE_LIST = 0x00000003, |
| 400 | VK_TOPOLOGY_TRIANGLE_STRIP = 0x00000004, |
| 401 | VK_TOPOLOGY_TRIANGLE_FAN = 0x00000005, |
| 402 | VK_TOPOLOGY_LINE_LIST_ADJ = 0x00000006, |
| 403 | VK_TOPOLOGY_LINE_STRIP_ADJ = 0x00000007, |
| 404 | VK_TOPOLOGY_TRIANGLE_LIST_ADJ = 0x00000008, |
| 405 | VK_TOPOLOGY_TRIANGLE_STRIP_ADJ = 0x00000009, |
| 406 | VK_TOPOLOGY_PATCH = 0x0000000a, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 407 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 408 | VK_PRIMITIVE_TOPOLOGY_BEGIN_RANGE = VK_TOPOLOGY_POINT_LIST, |
| 409 | VK_PRIMITIVE_TOPOLOGY_END_RANGE = VK_TOPOLOGY_PATCH, |
| 410 | VK_NUM_PRIMITIVE_TOPOLOGY = (VK_PRIMITIVE_TOPOLOGY_END_RANGE - VK_PRIMITIVE_TOPOLOGY_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 411 | VK_MAX_ENUM(VkPrimitiveTopology) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 412 | } VkPrimitiveTopology; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 413 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 414 | typedef enum VkIndexType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 415 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 416 | VK_INDEX_8 = 0x00000000, |
| 417 | VK_INDEX_16 = 0x00000001, |
| 418 | VK_INDEX_32 = 0x00000002, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 419 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 420 | VK_INDEX_TYPE_BEGIN_RANGE = VK_INDEX_8, |
| 421 | VK_INDEX_TYPE_END_RANGE = VK_INDEX_32, |
| 422 | VK_NUM_INDEX_TYPE = (VK_INDEX_TYPE_END_RANGE - VK_INDEX_TYPE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 423 | VK_MAX_ENUM(VkIndexType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 424 | } VkIndexType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 425 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 426 | typedef enum VkTexFilter_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 427 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 428 | VK_TEX_FILTER_NEAREST = 0, |
| 429 | VK_TEX_FILTER_LINEAR = 1, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 430 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 431 | VK_TEX_FILTER_BEGIN_RANGE = VK_TEX_FILTER_NEAREST, |
| 432 | VK_TEX_FILTER_END_RANGE = VK_TEX_FILTER_LINEAR, |
| 433 | VK_NUM_TEX_FILTER = (VK_TEX_FILTER_END_RANGE - VK_TEX_FILTER_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 434 | VK_MAX_ENUM(VkTexFilter) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 435 | } VkTexFilter; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 436 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 437 | typedef enum VkTexMipmapMode_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 438 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 439 | VK_TEX_MIPMAP_BASE = 0, // Always choose base level |
| 440 | VK_TEX_MIPMAP_NEAREST = 1, // Choose nearest mip level |
| 441 | VK_TEX_MIPMAP_LINEAR = 2, // Linear filter between mip levels |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 442 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 443 | VK_TEX_MIPMAP_BEGIN_RANGE = VK_TEX_MIPMAP_BASE, |
| 444 | VK_TEX_MIPMAP_END_RANGE = VK_TEX_MIPMAP_LINEAR, |
| 445 | VK_NUM_TEX_MIPMAP = (VK_TEX_MIPMAP_END_RANGE - VK_TEX_MIPMAP_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 446 | VK_MAX_ENUM(VkTexMipmapMode) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 447 | } VkTexMipmapMode; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 448 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 449 | typedef enum VkTexAddress_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 450 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 451 | VK_TEX_ADDRESS_WRAP = 0x00000000, |
| 452 | VK_TEX_ADDRESS_MIRROR = 0x00000001, |
| 453 | VK_TEX_ADDRESS_CLAMP = 0x00000002, |
| 454 | VK_TEX_ADDRESS_MIRROR_ONCE = 0x00000003, |
| 455 | VK_TEX_ADDRESS_CLAMP_BORDER = 0x00000004, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 456 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 457 | VK_TEX_ADDRESS_BEGIN_RANGE = VK_TEX_ADDRESS_WRAP, |
| 458 | VK_TEX_ADDRESS_END_RANGE = VK_TEX_ADDRESS_CLAMP_BORDER, |
| 459 | VK_NUM_TEX_ADDRESS = (VK_TEX_ADDRESS_END_RANGE - VK_TEX_ADDRESS_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 460 | VK_MAX_ENUM(VkTexAddress) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 461 | } VkTexAddress; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 462 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 463 | typedef enum VkCompareFunc_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 464 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 465 | VK_COMPARE_NEVER = 0x00000000, |
| 466 | VK_COMPARE_LESS = 0x00000001, |
| 467 | VK_COMPARE_EQUAL = 0x00000002, |
| 468 | VK_COMPARE_LESS_EQUAL = 0x00000003, |
| 469 | VK_COMPARE_GREATER = 0x00000004, |
| 470 | VK_COMPARE_NOT_EQUAL = 0x00000005, |
| 471 | VK_COMPARE_GREATER_EQUAL = 0x00000006, |
| 472 | VK_COMPARE_ALWAYS = 0x00000007, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 473 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 474 | VK_COMPARE_FUNC_BEGIN_RANGE = VK_COMPARE_NEVER, |
| 475 | VK_COMPARE_FUNC_END_RANGE = VK_COMPARE_ALWAYS, |
| 476 | VK_NUM_COMPARE_FUNC = (VK_COMPARE_FUNC_END_RANGE - VK_COMPARE_FUNC_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 477 | VK_MAX_ENUM(VkCompareFunc) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 478 | } VkCompareFunc; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 479 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 480 | typedef enum VkFillMode_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 481 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 482 | VK_FILL_POINTS = 0x00000000, |
| 483 | VK_FILL_WIREFRAME = 0x00000001, |
| 484 | VK_FILL_SOLID = 0x00000002, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 485 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 486 | VK_FILL_MODE_BEGIN_RANGE = VK_FILL_POINTS, |
| 487 | VK_FILL_MODE_END_RANGE = VK_FILL_SOLID, |
| 488 | VK_NUM_FILL_MODE = (VK_FILL_MODE_END_RANGE - VK_FILL_MODE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 489 | VK_MAX_ENUM(VkFillMode) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 490 | } VkFillMode; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 491 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 492 | typedef enum VkCullMode_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 493 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 494 | VK_CULL_NONE = 0x00000000, |
| 495 | VK_CULL_FRONT = 0x00000001, |
| 496 | VK_CULL_BACK = 0x00000002, |
| 497 | VK_CULL_FRONT_AND_BACK = 0x00000003, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 498 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 499 | VK_CULL_MODE_BEGIN_RANGE = VK_CULL_NONE, |
| 500 | VK_CULL_MODE_END_RANGE = VK_CULL_FRONT_AND_BACK, |
| 501 | VK_NUM_CULL_MODE = (VK_CULL_MODE_END_RANGE - VK_CULL_MODE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 502 | VK_MAX_ENUM(VkCullMode) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 503 | } VkCullMode; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 504 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 505 | typedef enum VkFaceOrientation_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 506 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 507 | VK_FRONT_FACE_CCW = 0x00000000, |
| 508 | VK_FRONT_FACE_CW = 0x00000001, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 509 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 510 | VK_FACE_ORIENTATION_BEGIN_RANGE = VK_FRONT_FACE_CCW, |
| 511 | VK_FACE_ORIENTATION_END_RANGE = VK_FRONT_FACE_CW, |
| 512 | VK_NUM_FACE_ORIENTATION = (VK_FACE_ORIENTATION_END_RANGE - VK_FACE_ORIENTATION_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 513 | VK_MAX_ENUM(VkFaceOrientation) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 514 | } VkFaceOrientation; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 515 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 516 | typedef enum VkProvokingVertexConvention_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 517 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 518 | VK_PROVOKING_VERTEX_FIRST = 0x00000000, |
| 519 | VK_PROVOKING_VERTEX_LAST = 0x00000001, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 520 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 521 | VK_PROVOKING_VERTEX_BEGIN_RANGE = VK_PROVOKING_VERTEX_FIRST, |
| 522 | VK_PROVOKING_VERTEX_END_RANGE = VK_PROVOKING_VERTEX_LAST, |
| 523 | VK_NUM_PROVOKING_VERTEX_CONVENTION = (VK_PROVOKING_VERTEX_END_RANGE - VK_PROVOKING_VERTEX_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 524 | VK_MAX_ENUM(VkProvokingVertexConvention) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 525 | } VkProvokingVertexConvention; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 526 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 527 | typedef enum VkCoordinateOrigin_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 528 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 529 | VK_COORDINATE_ORIGIN_UPPER_LEFT = 0x00000000, |
| 530 | VK_COORDINATE_ORIGIN_LOWER_LEFT = 0x00000001, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 531 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 532 | VK_COORDINATE_ORIGIN_BEGIN_RANGE = VK_COORDINATE_ORIGIN_UPPER_LEFT, |
| 533 | VK_COORDINATE_ORIGIN_END_RANGE = VK_COORDINATE_ORIGIN_LOWER_LEFT, |
| 534 | VK_NUM_COORDINATE_ORIGIN = (VK_COORDINATE_ORIGIN_END_RANGE - VK_COORDINATE_ORIGIN_END_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 535 | VK_MAX_ENUM(VkCoordinateOrigin) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 536 | } VkCoordinateOrigin; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 537 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 538 | typedef enum VkDepthMode_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 539 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 540 | VK_DEPTH_MODE_ZERO_TO_ONE = 0x00000000, |
| 541 | VK_DEPTH_MODE_NEGATIVE_ONE_TO_ONE = 0x00000001, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 542 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 543 | VK_DEPTH_MODE_BEGIN_RANGE = VK_DEPTH_MODE_ZERO_TO_ONE, |
| 544 | VK_DEPTH_MODE_END_RANGE = VK_DEPTH_MODE_NEGATIVE_ONE_TO_ONE, |
| 545 | VK_NUM_DEPTH_MODE = (VK_DEPTH_MODE_END_RANGE - VK_DEPTH_MODE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 546 | VK_MAX_ENUM(VkDepthMode) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 547 | } VkDepthMode; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 548 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 549 | typedef enum VkBlend_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 550 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 551 | VK_BLEND_ZERO = 0x00000000, |
| 552 | VK_BLEND_ONE = 0x00000001, |
| 553 | VK_BLEND_SRC_COLOR = 0x00000002, |
| 554 | VK_BLEND_ONE_MINUS_SRC_COLOR = 0x00000003, |
| 555 | VK_BLEND_DEST_COLOR = 0x00000004, |
| 556 | VK_BLEND_ONE_MINUS_DEST_COLOR = 0x00000005, |
| 557 | VK_BLEND_SRC_ALPHA = 0x00000006, |
| 558 | VK_BLEND_ONE_MINUS_SRC_ALPHA = 0x00000007, |
| 559 | VK_BLEND_DEST_ALPHA = 0x00000008, |
| 560 | VK_BLEND_ONE_MINUS_DEST_ALPHA = 0x00000009, |
| 561 | VK_BLEND_CONSTANT_COLOR = 0x0000000a, |
| 562 | VK_BLEND_ONE_MINUS_CONSTANT_COLOR = 0x0000000b, |
| 563 | VK_BLEND_CONSTANT_ALPHA = 0x0000000c, |
| 564 | VK_BLEND_ONE_MINUS_CONSTANT_ALPHA = 0x0000000d, |
| 565 | VK_BLEND_SRC_ALPHA_SATURATE = 0x0000000e, |
| 566 | VK_BLEND_SRC1_COLOR = 0x0000000f, |
| 567 | VK_BLEND_ONE_MINUS_SRC1_COLOR = 0x00000010, |
| 568 | VK_BLEND_SRC1_ALPHA = 0x00000011, |
| 569 | VK_BLEND_ONE_MINUS_SRC1_ALPHA = 0x00000012, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 570 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 571 | VK_BLEND_BEGIN_RANGE = VK_BLEND_ZERO, |
| 572 | VK_BLEND_END_RANGE = VK_BLEND_ONE_MINUS_SRC1_ALPHA, |
| 573 | VK_NUM_BLEND = (VK_BLEND_END_RANGE - VK_BLEND_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 574 | VK_MAX_ENUM(VkBlend) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 575 | } VkBlend; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 576 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 577 | typedef enum VkBlendFunc_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 578 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 579 | VK_BLEND_FUNC_ADD = 0x00000000, |
| 580 | VK_BLEND_FUNC_SUBTRACT = 0x00000001, |
| 581 | VK_BLEND_FUNC_REVERSE_SUBTRACT = 0x00000002, |
| 582 | VK_BLEND_FUNC_MIN = 0x00000003, |
| 583 | VK_BLEND_FUNC_MAX = 0x00000004, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 584 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 585 | VK_BLEND_FUNC_BEGIN_RANGE = VK_BLEND_FUNC_ADD, |
| 586 | VK_BLEND_FUNC_END_RANGE = VK_BLEND_FUNC_MAX, |
| 587 | VK_NUM_BLEND_FUNC = (VK_BLEND_FUNC_END_RANGE - VK_BLEND_FUNC_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 588 | VK_MAX_ENUM(VkBlendFunc) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 589 | } VkBlendFunc; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 590 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 591 | typedef enum VkStencilOp_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 592 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 593 | VK_STENCIL_OP_KEEP = 0x00000000, |
| 594 | VK_STENCIL_OP_ZERO = 0x00000001, |
| 595 | VK_STENCIL_OP_REPLACE = 0x00000002, |
| 596 | VK_STENCIL_OP_INC_CLAMP = 0x00000003, |
| 597 | VK_STENCIL_OP_DEC_CLAMP = 0x00000004, |
| 598 | VK_STENCIL_OP_INVERT = 0x00000005, |
| 599 | VK_STENCIL_OP_INC_WRAP = 0x00000006, |
| 600 | VK_STENCIL_OP_DEC_WRAP = 0x00000007, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 601 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 602 | VK_STENCIL_OP_BEGIN_RANGE = VK_STENCIL_OP_KEEP, |
| 603 | VK_STENCIL_OP_END_RANGE = VK_STENCIL_OP_DEC_WRAP, |
| 604 | VK_NUM_STENCIL_OP = (VK_STENCIL_OP_END_RANGE - VK_STENCIL_OP_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 605 | VK_MAX_ENUM(VkStencilOp) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 606 | } VkStencilOp; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 607 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 608 | typedef enum VkLogicOp_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 609 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 610 | VK_LOGIC_OP_COPY = 0x00000000, |
| 611 | VK_LOGIC_OP_CLEAR = 0x00000001, |
| 612 | VK_LOGIC_OP_AND = 0x00000002, |
| 613 | VK_LOGIC_OP_AND_REVERSE = 0x00000003, |
| 614 | VK_LOGIC_OP_AND_INVERTED = 0x00000004, |
| 615 | VK_LOGIC_OP_NOOP = 0x00000005, |
| 616 | VK_LOGIC_OP_XOR = 0x00000006, |
| 617 | VK_LOGIC_OP_OR = 0x00000007, |
| 618 | VK_LOGIC_OP_NOR = 0x00000008, |
| 619 | VK_LOGIC_OP_EQUIV = 0x00000009, |
| 620 | VK_LOGIC_OP_INVERT = 0x0000000a, |
| 621 | VK_LOGIC_OP_OR_REVERSE = 0x0000000b, |
| 622 | VK_LOGIC_OP_COPY_INVERTED = 0x0000000c, |
| 623 | VK_LOGIC_OP_OR_INVERTED = 0x0000000d, |
| 624 | VK_LOGIC_OP_NAND = 0x0000000e, |
| 625 | VK_LOGIC_OP_SET = 0x0000000f, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 626 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 627 | VK_LOGIC_OP_BEGIN_RANGE = VK_LOGIC_OP_COPY, |
| 628 | VK_LOGIC_OP_END_RANGE = VK_LOGIC_OP_SET, |
| 629 | VK_NUM_LOGIC_OP = (VK_LOGIC_OP_END_RANGE - VK_LOGIC_OP_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 630 | VK_MAX_ENUM(VkLogicOp) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 631 | } VkLogicOp; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 632 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 633 | typedef enum VkSystemAllocType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 634 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 635 | VK_SYSTEM_ALLOC_API_OBJECT = 0x00000000, |
| 636 | VK_SYSTEM_ALLOC_INTERNAL = 0x00000001, |
| 637 | VK_SYSTEM_ALLOC_INTERNAL_TEMP = 0x00000002, |
| 638 | VK_SYSTEM_ALLOC_INTERNAL_SHADER = 0x00000003, |
| 639 | VK_SYSTEM_ALLOC_DEBUG = 0x00000004, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 640 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 641 | VK_SYSTEM_ALLOC_BEGIN_RANGE = VK_SYSTEM_ALLOC_API_OBJECT, |
| 642 | VK_SYSTEM_ALLOC_END_RANGE = VK_SYSTEM_ALLOC_DEBUG, |
| 643 | VK_NUM_SYSTEM_ALLOC_TYPE = (VK_SYSTEM_ALLOC_END_RANGE - VK_SYSTEM_ALLOC_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 644 | VK_MAX_ENUM(VkSystemAllocType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 645 | } VkSystemAllocType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 646 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 647 | typedef enum VkPhysicalGpuType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 648 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 649 | VK_GPU_TYPE_OTHER = 0x00000000, |
| 650 | VK_GPU_TYPE_INTEGRATED = 0x00000001, |
| 651 | VK_GPU_TYPE_DISCRETE = 0x00000002, |
| 652 | VK_GPU_TYPE_VIRTUAL = 0x00000003, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 653 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 654 | VK_PHYSICAL_GPU_TYPE_BEGIN_RANGE = VK_GPU_TYPE_OTHER, |
| 655 | VK_PHYSICAL_GPU_TYPE_END_RANGE = VK_GPU_TYPE_VIRTUAL, |
| 656 | VK_NUM_PHYSICAL_GPU_TYPE = (VK_PHYSICAL_GPU_TYPE_END_RANGE - VK_PHYSICAL_GPU_TYPE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 657 | VK_MAX_ENUM(VkPhysicalGpuType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 658 | } VkPhysicalGpuType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 659 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 660 | typedef enum VkPhysicalGpuInfoType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 661 | { |
| 662 | // Info type for vkGetGpuInfo() |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 663 | VK_INFO_TYPE_PHYSICAL_GPU_PROPERTIES = 0x00000000, |
| 664 | VK_INFO_TYPE_PHYSICAL_GPU_PERFORMANCE = 0x00000001, |
| 665 | VK_INFO_TYPE_PHYSICAL_GPU_QUEUE_PROPERTIES = 0x00000002, |
| 666 | VK_INFO_TYPE_PHYSICAL_GPU_MEMORY_PROPERTIES = 0x00000003, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 667 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 668 | VK_INFO_TYPE_PHYSICAL_GPU_BEGIN_RANGE = VK_INFO_TYPE_PHYSICAL_GPU_PROPERTIES, |
| 669 | VK_INFO_TYPE_PHYSICAL_GPU_END_RANGE = VK_INFO_TYPE_PHYSICAL_GPU_MEMORY_PROPERTIES, |
| 670 | VK_NUM_INFO_TYPE_PHYSICAL_GPU = (VK_INFO_TYPE_PHYSICAL_GPU_END_RANGE - VK_INFO_TYPE_PHYSICAL_GPU_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 671 | VK_MAX_ENUM(VkPhysicalGpuInfoType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 672 | } VkPhysicalGpuInfoType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 673 | |
Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 674 | typedef enum VkExtensionInfoType_ |
| 675 | { |
| 676 | // Info type for vkGetGlobalExtensionInfo() and vkGetPhysicalDeviceExtensionInfo() |
| 677 | VK_EXTENSION_INFO_TYPE_COUNT = 0x00000000, |
| 678 | VK_EXTENSION_INFO_TYPE_PROPERTIES = 0x00000001, |
| 679 | |
| 680 | //VK_ENUM_RANGE(EXTENSION_INFO_TYPE, COUNT, PROPERTIES) |
| 681 | } VkExtensionInfoType; |
| 682 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 683 | typedef enum VkFormatInfoType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 684 | { |
| 685 | // Info type for vkGetFormatInfo() |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 686 | VK_INFO_TYPE_FORMAT_PROPERTIES = 0x00000000, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 687 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 688 | VK_INFO_TYPE_FORMAT_BEGIN_RANGE = VK_INFO_TYPE_FORMAT_PROPERTIES, |
| 689 | VK_INFO_TYPE_FORMAT_END_RANGE = VK_INFO_TYPE_FORMAT_PROPERTIES, |
| 690 | VK_NUM_INFO_TYPE_FORMAT = (VK_INFO_TYPE_FORMAT_END_RANGE - VK_INFO_TYPE_FORMAT_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 691 | VK_MAX_ENUM(VkFormatInfoType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 692 | } VkFormatInfoType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 693 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 694 | typedef enum VkSubresourceInfoType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 695 | { |
| 696 | // Info type for vkGetImageSubresourceInfo() |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 697 | VK_INFO_TYPE_SUBRESOURCE_LAYOUT = 0x00000000, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 698 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 699 | VK_INFO_TYPE_SUBRESOURCE_BEGIN_RANGE = VK_INFO_TYPE_SUBRESOURCE_LAYOUT, |
| 700 | VK_INFO_TYPE_SUBRESOURCE_END_RANGE = VK_INFO_TYPE_SUBRESOURCE_LAYOUT, |
| 701 | VK_NUM_INFO_TYPE_SUBRESOURCE = (VK_INFO_TYPE_SUBRESOURCE_END_RANGE - VK_INFO_TYPE_SUBRESOURCE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 702 | VK_MAX_ENUM(VkSubresourceInfoType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 703 | } VkSubresourceInfoType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 704 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 705 | typedef enum VkObjectInfoType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 706 | { |
| 707 | // Info type for vkGetObjectInfo() |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 708 | VK_INFO_TYPE_MEMORY_ALLOCATION_COUNT = 0x00000000, |
| 709 | VK_INFO_TYPE_MEMORY_REQUIREMENTS = 0x00000001, |
| 710 | VK_INFO_TYPE_BUFFER_MEMORY_REQUIREMENTS = 0x00000002, |
| 711 | VK_INFO_TYPE_IMAGE_MEMORY_REQUIREMENTS = 0x00000003, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 712 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 713 | VK_INFO_TYPE_BEGIN_RANGE = VK_INFO_TYPE_MEMORY_ALLOCATION_COUNT, |
| 714 | VK_INFO_TYPE_END_RANGE = VK_INFO_TYPE_IMAGE_MEMORY_REQUIREMENTS, |
| 715 | VK_NUM_INFO_TYPE = (VK_INFO_TYPE_END_RANGE - VK_INFO_TYPE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 716 | VK_MAX_ENUM(VkObjectInfoType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 717 | } VkObjectInfoType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 718 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 719 | typedef enum VkValidationLevel_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 720 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 721 | VK_VALIDATION_LEVEL_0 = 0x00000000, |
| 722 | VK_VALIDATION_LEVEL_1 = 0x00000001, |
| 723 | VK_VALIDATION_LEVEL_2 = 0x00000002, |
| 724 | VK_VALIDATION_LEVEL_3 = 0x00000003, |
| 725 | VK_VALIDATION_LEVEL_4 = 0x00000004, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 726 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 727 | VK_VALIDATION_LEVEL_BEGIN_RANGE = VK_VALIDATION_LEVEL_0, |
| 728 | VK_VALIDATION_LEVEL_END_RANGE = VK_VALIDATION_LEVEL_4, |
| 729 | VK_NUM_VALIDATION_LEVEL = (VK_VALIDATION_LEVEL_END_RANGE - VK_VALIDATION_LEVEL_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 730 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 731 | VK_MAX_ENUM(VkValidationLevel) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 732 | } VkValidationLevel; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 733 | |
| 734 | // ------------------------------------------------------------------------------------------------ |
| 735 | // Error and return codes |
| 736 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 737 | typedef enum VkResult_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 738 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 739 | // Return codes for successful operation execution (> = 0) |
| 740 | VK_SUCCESS = 0x0000000, |
| 741 | VK_UNSUPPORTED = 0x0000001, |
| 742 | VK_NOT_READY = 0x0000002, |
| 743 | VK_TIMEOUT = 0x0000003, |
| 744 | VK_EVENT_SET = 0x0000004, |
| 745 | VK_EVENT_RESET = 0x0000005, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 746 | |
| 747 | // Error codes (negative values) |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 748 | VK_ERROR_UNKNOWN = -(0x00000001), |
| 749 | VK_ERROR_UNAVAILABLE = -(0x00000002), |
| 750 | VK_ERROR_INITIALIZATION_FAILED = -(0x00000003), |
| 751 | VK_ERROR_OUT_OF_MEMORY = -(0x00000004), |
| 752 | VK_ERROR_OUT_OF_GPU_MEMORY = -(0x00000005), |
| 753 | VK_ERROR_DEVICE_ALREADY_CREATED = -(0x00000006), |
| 754 | VK_ERROR_DEVICE_LOST = -(0x00000007), |
| 755 | VK_ERROR_INVALID_POINTER = -(0x00000008), |
| 756 | VK_ERROR_INVALID_VALUE = -(0x00000009), |
| 757 | VK_ERROR_INVALID_HANDLE = -(0x0000000A), |
| 758 | VK_ERROR_INVALID_ORDINAL = -(0x0000000B), |
| 759 | VK_ERROR_INVALID_MEMORY_SIZE = -(0x0000000C), |
| 760 | VK_ERROR_INVALID_EXTENSION = -(0x0000000D), |
| 761 | VK_ERROR_INVALID_FLAGS = -(0x0000000E), |
| 762 | VK_ERROR_INVALID_ALIGNMENT = -(0x0000000F), |
| 763 | VK_ERROR_INVALID_FORMAT = -(0x00000010), |
| 764 | VK_ERROR_INVALID_IMAGE = -(0x00000011), |
| 765 | VK_ERROR_INVALID_DESCRIPTOR_SET_DATA = -(0x00000012), |
| 766 | VK_ERROR_INVALID_QUEUE_TYPE = -(0x00000013), |
| 767 | VK_ERROR_INVALID_OBJECT_TYPE = -(0x00000014), |
| 768 | VK_ERROR_UNSUPPORTED_SHADER_IL_VERSION = -(0x00000015), |
| 769 | VK_ERROR_BAD_SHADER_CODE = -(0x00000016), |
| 770 | VK_ERROR_BAD_PIPELINE_DATA = -(0x00000017), |
| 771 | VK_ERROR_TOO_MANY_MEMORY_REFERENCES = -(0x00000018), |
| 772 | VK_ERROR_NOT_MAPPABLE = -(0x00000019), |
| 773 | VK_ERROR_MEMORY_MAP_FAILED = -(0x0000001A), |
| 774 | VK_ERROR_MEMORY_UNMAP_FAILED = -(0x0000001B), |
| 775 | VK_ERROR_INCOMPATIBLE_DEVICE = -(0x0000001C), |
| 776 | VK_ERROR_INCOMPATIBLE_DRIVER = -(0x0000001D), |
| 777 | VK_ERROR_INCOMPLETE_COMMAND_BUFFER = -(0x0000001E), |
| 778 | VK_ERROR_BUILDING_COMMAND_BUFFER = -(0x0000001F), |
| 779 | VK_ERROR_MEMORY_NOT_BOUND = -(0x00000020), |
| 780 | VK_ERROR_INCOMPATIBLE_QUEUE = -(0x00000021), |
| 781 | VK_ERROR_NOT_SHAREABLE = -(0x00000022), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 782 | VK_MAX_ENUM(VkResult) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 783 | } VkResult; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 784 | |
| 785 | // ------------------------------------------------------------------------------------------------ |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 786 | // Vulkan format definitions |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 787 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 788 | typedef enum VkVertexInputStepRate_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 789 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 790 | VK_VERTEX_INPUT_STEP_RATE_VERTEX = 0x0, |
| 791 | VK_VERTEX_INPUT_STEP_RATE_INSTANCE = 0x1, |
| 792 | VK_VERTEX_INPUT_STEP_RATE_DRAW = 0x2, //Optional |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 793 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 794 | VK_VERTEX_INPUT_STEP_RATE_BEGIN_RANGE = VK_VERTEX_INPUT_STEP_RATE_VERTEX, |
| 795 | VK_VERTEX_INPUT_STEP_RATE_END_RANGE = VK_VERTEX_INPUT_STEP_RATE_DRAW, |
| 796 | VK_NUM_VERTEX_INPUT_STEP_RATE = (VK_VERTEX_INPUT_STEP_RATE_END_RANGE - VK_VERTEX_INPUT_STEP_RATE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 797 | VK_MAX_ENUM(VkVertexInputStepRate) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 798 | } VkVertexInputStepRate; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 799 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 800 | typedef enum VkFormat_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 801 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 802 | VK_FMT_UNDEFINED = 0x00000000, |
| 803 | VK_FMT_R4G4_UNORM = 0x00000001, |
| 804 | VK_FMT_R4G4_USCALED = 0x00000002, |
| 805 | VK_FMT_R4G4B4A4_UNORM = 0x00000003, |
| 806 | VK_FMT_R4G4B4A4_USCALED = 0x00000004, |
| 807 | VK_FMT_R5G6B5_UNORM = 0x00000005, |
| 808 | VK_FMT_R5G6B5_USCALED = 0x00000006, |
| 809 | VK_FMT_R5G5B5A1_UNORM = 0x00000007, |
| 810 | VK_FMT_R5G5B5A1_USCALED = 0x00000008, |
| 811 | VK_FMT_R8_UNORM = 0x00000009, |
| 812 | VK_FMT_R8_SNORM = 0x0000000A, |
| 813 | VK_FMT_R8_USCALED = 0x0000000B, |
| 814 | VK_FMT_R8_SSCALED = 0x0000000C, |
| 815 | VK_FMT_R8_UINT = 0x0000000D, |
| 816 | VK_FMT_R8_SINT = 0x0000000E, |
| 817 | VK_FMT_R8_SRGB = 0x0000000F, |
| 818 | VK_FMT_R8G8_UNORM = 0x00000010, |
| 819 | VK_FMT_R8G8_SNORM = 0x00000011, |
| 820 | VK_FMT_R8G8_USCALED = 0x00000012, |
| 821 | VK_FMT_R8G8_SSCALED = 0x00000013, |
| 822 | VK_FMT_R8G8_UINT = 0x00000014, |
| 823 | VK_FMT_R8G8_SINT = 0x00000015, |
| 824 | VK_FMT_R8G8_SRGB = 0x00000016, |
| 825 | VK_FMT_R8G8B8_UNORM = 0x00000017, |
| 826 | VK_FMT_R8G8B8_SNORM = 0x00000018, |
| 827 | VK_FMT_R8G8B8_USCALED = 0x00000019, |
| 828 | VK_FMT_R8G8B8_SSCALED = 0x0000001A, |
| 829 | VK_FMT_R8G8B8_UINT = 0x0000001B, |
| 830 | VK_FMT_R8G8B8_SINT = 0x0000001C, |
| 831 | VK_FMT_R8G8B8_SRGB = 0x0000001D, |
| 832 | VK_FMT_R8G8B8A8_UNORM = 0x0000001E, |
| 833 | VK_FMT_R8G8B8A8_SNORM = 0x0000001F, |
| 834 | VK_FMT_R8G8B8A8_USCALED = 0x00000020, |
| 835 | VK_FMT_R8G8B8A8_SSCALED = 0x00000021, |
| 836 | VK_FMT_R8G8B8A8_UINT = 0x00000022, |
| 837 | VK_FMT_R8G8B8A8_SINT = 0x00000023, |
| 838 | VK_FMT_R8G8B8A8_SRGB = 0x00000024, |
| 839 | VK_FMT_R10G10B10A2_UNORM = 0x00000025, |
| 840 | VK_FMT_R10G10B10A2_SNORM = 0x00000026, |
| 841 | VK_FMT_R10G10B10A2_USCALED = 0x00000027, |
| 842 | VK_FMT_R10G10B10A2_SSCALED = 0x00000028, |
| 843 | VK_FMT_R10G10B10A2_UINT = 0x00000029, |
| 844 | VK_FMT_R10G10B10A2_SINT = 0x0000002A, |
| 845 | VK_FMT_R16_UNORM = 0x0000002B, |
| 846 | VK_FMT_R16_SNORM = 0x0000002C, |
| 847 | VK_FMT_R16_USCALED = 0x0000002D, |
| 848 | VK_FMT_R16_SSCALED = 0x0000002E, |
| 849 | VK_FMT_R16_UINT = 0x0000002F, |
| 850 | VK_FMT_R16_SINT = 0x00000030, |
| 851 | VK_FMT_R16_SFLOAT = 0x00000031, |
| 852 | VK_FMT_R16G16_UNORM = 0x00000032, |
| 853 | VK_FMT_R16G16_SNORM = 0x00000033, |
| 854 | VK_FMT_R16G16_USCALED = 0x00000034, |
| 855 | VK_FMT_R16G16_SSCALED = 0x00000035, |
| 856 | VK_FMT_R16G16_UINT = 0x00000036, |
| 857 | VK_FMT_R16G16_SINT = 0x00000037, |
| 858 | VK_FMT_R16G16_SFLOAT = 0x00000038, |
| 859 | VK_FMT_R16G16B16_UNORM = 0x00000039, |
| 860 | VK_FMT_R16G16B16_SNORM = 0x0000003A, |
| 861 | VK_FMT_R16G16B16_USCALED = 0x0000003B, |
| 862 | VK_FMT_R16G16B16_SSCALED = 0x0000003C, |
| 863 | VK_FMT_R16G16B16_UINT = 0x0000003D, |
| 864 | VK_FMT_R16G16B16_SINT = 0x0000003E, |
| 865 | VK_FMT_R16G16B16_SFLOAT = 0x0000003F, |
| 866 | VK_FMT_R16G16B16A16_UNORM = 0x00000040, |
| 867 | VK_FMT_R16G16B16A16_SNORM = 0x00000041, |
| 868 | VK_FMT_R16G16B16A16_USCALED = 0x00000042, |
| 869 | VK_FMT_R16G16B16A16_SSCALED = 0x00000043, |
| 870 | VK_FMT_R16G16B16A16_UINT = 0x00000044, |
| 871 | VK_FMT_R16G16B16A16_SINT = 0x00000045, |
| 872 | VK_FMT_R16G16B16A16_SFLOAT = 0x00000046, |
| 873 | VK_FMT_R32_UINT = 0x00000047, |
| 874 | VK_FMT_R32_SINT = 0x00000048, |
| 875 | VK_FMT_R32_SFLOAT = 0x00000049, |
| 876 | VK_FMT_R32G32_UINT = 0x0000004A, |
| 877 | VK_FMT_R32G32_SINT = 0x0000004B, |
| 878 | VK_FMT_R32G32_SFLOAT = 0x0000004C, |
| 879 | VK_FMT_R32G32B32_UINT = 0x0000004D, |
| 880 | VK_FMT_R32G32B32_SINT = 0x0000004E, |
| 881 | VK_FMT_R32G32B32_SFLOAT = 0x0000004F, |
| 882 | VK_FMT_R32G32B32A32_UINT = 0x00000050, |
| 883 | VK_FMT_R32G32B32A32_SINT = 0x00000051, |
| 884 | VK_FMT_R32G32B32A32_SFLOAT = 0x00000052, |
| 885 | VK_FMT_R64_SFLOAT = 0x00000053, |
| 886 | VK_FMT_R64G64_SFLOAT = 0x00000054, |
| 887 | VK_FMT_R64G64B64_SFLOAT = 0x00000055, |
| 888 | VK_FMT_R64G64B64A64_SFLOAT = 0x00000056, |
| 889 | VK_FMT_R11G11B10_UFLOAT = 0x00000057, |
| 890 | VK_FMT_R9G9B9E5_UFLOAT = 0x00000058, |
| 891 | VK_FMT_D16_UNORM = 0x00000059, |
| 892 | VK_FMT_D24_UNORM = 0x0000005A, |
| 893 | VK_FMT_D32_SFLOAT = 0x0000005B, |
| 894 | VK_FMT_S8_UINT = 0x0000005C, |
| 895 | VK_FMT_D16_UNORM_S8_UINT = 0x0000005D, |
| 896 | VK_FMT_D24_UNORM_S8_UINT = 0x0000005E, |
| 897 | VK_FMT_D32_SFLOAT_S8_UINT = 0x0000005F, |
| 898 | VK_FMT_BC1_RGB_UNORM = 0x00000060, |
| 899 | VK_FMT_BC1_RGB_SRGB = 0x00000061, |
| 900 | VK_FMT_BC1_RGBA_UNORM = 0x00000062, |
| 901 | VK_FMT_BC1_RGBA_SRGB = 0x00000063, |
| 902 | VK_FMT_BC2_UNORM = 0x00000064, |
| 903 | VK_FMT_BC2_SRGB = 0x00000065, |
| 904 | VK_FMT_BC3_UNORM = 0x00000066, |
| 905 | VK_FMT_BC3_SRGB = 0x00000067, |
| 906 | VK_FMT_BC4_UNORM = 0x00000068, |
| 907 | VK_FMT_BC4_SNORM = 0x00000069, |
| 908 | VK_FMT_BC5_UNORM = 0x0000006A, |
| 909 | VK_FMT_BC5_SNORM = 0x0000006B, |
| 910 | VK_FMT_BC6H_UFLOAT = 0x0000006C, |
| 911 | VK_FMT_BC6H_SFLOAT = 0x0000006D, |
| 912 | VK_FMT_BC7_UNORM = 0x0000006E, |
| 913 | VK_FMT_BC7_SRGB = 0x0000006F, |
| 914 | VK_FMT_ETC2_R8G8B8_UNORM = 0x00000070, |
| 915 | VK_FMT_ETC2_R8G8B8_SRGB = 0x00000071, |
| 916 | VK_FMT_ETC2_R8G8B8A1_UNORM = 0x00000072, |
| 917 | VK_FMT_ETC2_R8G8B8A1_SRGB = 0x00000073, |
| 918 | VK_FMT_ETC2_R8G8B8A8_UNORM = 0x00000074, |
| 919 | VK_FMT_ETC2_R8G8B8A8_SRGB = 0x00000075, |
| 920 | VK_FMT_EAC_R11_UNORM = 0x00000076, |
| 921 | VK_FMT_EAC_R11_SNORM = 0x00000077, |
| 922 | VK_FMT_EAC_R11G11_UNORM = 0x00000078, |
| 923 | VK_FMT_EAC_R11G11_SNORM = 0x00000079, |
| 924 | VK_FMT_ASTC_4x4_UNORM = 0x0000007A, |
| 925 | VK_FMT_ASTC_4x4_SRGB = 0x0000007B, |
| 926 | VK_FMT_ASTC_5x4_UNORM = 0x0000007C, |
| 927 | VK_FMT_ASTC_5x4_SRGB = 0x0000007D, |
| 928 | VK_FMT_ASTC_5x5_UNORM = 0x0000007E, |
| 929 | VK_FMT_ASTC_5x5_SRGB = 0x0000007F, |
| 930 | VK_FMT_ASTC_6x5_UNORM = 0x00000080, |
| 931 | VK_FMT_ASTC_6x5_SRGB = 0x00000081, |
| 932 | VK_FMT_ASTC_6x6_UNORM = 0x00000082, |
| 933 | VK_FMT_ASTC_6x6_SRGB = 0x00000083, |
| 934 | VK_FMT_ASTC_8x5_UNORM = 0x00000084, |
| 935 | VK_FMT_ASTC_8x5_SRGB = 0x00000085, |
| 936 | VK_FMT_ASTC_8x6_UNORM = 0x00000086, |
| 937 | VK_FMT_ASTC_8x6_SRGB = 0x00000087, |
| 938 | VK_FMT_ASTC_8x8_UNORM = 0x00000088, |
| 939 | VK_FMT_ASTC_8x8_SRGB = 0x00000089, |
| 940 | VK_FMT_ASTC_10x5_UNORM = 0x0000008A, |
| 941 | VK_FMT_ASTC_10x5_SRGB = 0x0000008B, |
| 942 | VK_FMT_ASTC_10x6_UNORM = 0x0000008C, |
| 943 | VK_FMT_ASTC_10x6_SRGB = 0x0000008D, |
| 944 | VK_FMT_ASTC_10x8_UNORM = 0x0000008E, |
| 945 | VK_FMT_ASTC_10x8_SRGB = 0x0000008F, |
| 946 | VK_FMT_ASTC_10x10_UNORM = 0x00000090, |
| 947 | VK_FMT_ASTC_10x10_SRGB = 0x00000091, |
| 948 | VK_FMT_ASTC_12x10_UNORM = 0x00000092, |
| 949 | VK_FMT_ASTC_12x10_SRGB = 0x00000093, |
| 950 | VK_FMT_ASTC_12x12_UNORM = 0x00000094, |
| 951 | VK_FMT_ASTC_12x12_SRGB = 0x00000095, |
| 952 | VK_FMT_B4G4R4A4_UNORM = 0x00000096, |
| 953 | VK_FMT_B5G5R5A1_UNORM = 0x00000097, |
| 954 | VK_FMT_B5G6R5_UNORM = 0x00000098, |
| 955 | VK_FMT_B5G6R5_USCALED = 0x00000099, |
| 956 | VK_FMT_B8G8R8_UNORM = 0x0000009A, |
| 957 | VK_FMT_B8G8R8_SNORM = 0x0000009B, |
| 958 | VK_FMT_B8G8R8_USCALED = 0x0000009C, |
| 959 | VK_FMT_B8G8R8_SSCALED = 0x0000009D, |
| 960 | VK_FMT_B8G8R8_UINT = 0x0000009E, |
| 961 | VK_FMT_B8G8R8_SINT = 0x0000009F, |
| 962 | VK_FMT_B8G8R8_SRGB = 0x000000A0, |
| 963 | VK_FMT_B8G8R8A8_UNORM = 0x000000A1, |
| 964 | VK_FMT_B8G8R8A8_SNORM = 0x000000A2, |
| 965 | VK_FMT_B8G8R8A8_USCALED = 0x000000A3, |
| 966 | VK_FMT_B8G8R8A8_SSCALED = 0x000000A4, |
| 967 | VK_FMT_B8G8R8A8_UINT = 0x000000A5, |
| 968 | VK_FMT_B8G8R8A8_SINT = 0x000000A6, |
| 969 | VK_FMT_B8G8R8A8_SRGB = 0x000000A7, |
| 970 | VK_FMT_B10G10R10A2_UNORM = 0x000000A8, |
| 971 | VK_FMT_B10G10R10A2_SNORM = 0x000000A9, |
| 972 | VK_FMT_B10G10R10A2_USCALED = 0x000000AA, |
| 973 | VK_FMT_B10G10R10A2_SSCALED = 0x000000AB, |
| 974 | VK_FMT_B10G10R10A2_UINT = 0x000000AC, |
| 975 | VK_FMT_B10G10R10A2_SINT = 0x000000AD, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 976 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 977 | VK_FMT_BEGIN_RANGE = VK_FMT_UNDEFINED, |
| 978 | VK_FMT_END_RANGE = VK_FMT_B10G10R10A2_SINT, |
| 979 | VK_NUM_FMT = (VK_FMT_END_RANGE - VK_FMT_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 980 | VK_MAX_ENUM(VkFormat) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 981 | } VkFormat; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 982 | |
| 983 | // Shader stage enumerant |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 984 | typedef enum VkPipelineShaderStage_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 985 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 986 | VK_SHADER_STAGE_VERTEX = 0, |
| 987 | VK_SHADER_STAGE_TESS_CONTROL = 1, |
| 988 | VK_SHADER_STAGE_TESS_EVALUATION = 2, |
| 989 | VK_SHADER_STAGE_GEOMETRY = 3, |
| 990 | VK_SHADER_STAGE_FRAGMENT = 4, |
| 991 | VK_SHADER_STAGE_COMPUTE = 5, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 992 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 993 | VK_SHADER_STAGE_BEGIN_RANGE = VK_SHADER_STAGE_VERTEX, |
| 994 | VK_SHADER_STAGE_END_RANGE = VK_SHADER_STAGE_COMPUTE, |
| 995 | VK_NUM_SHADER_STAGE = (VK_SHADER_STAGE_END_RANGE - VK_SHADER_STAGE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 996 | VK_MAX_ENUM(VkPipelineShaderStage) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 997 | } VkPipelineShaderStage; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 998 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 999 | typedef enum VkShaderStageFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1000 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1001 | VK_SHADER_STAGE_FLAGS_VERTEX_BIT = 0x00000001, |
| 1002 | VK_SHADER_STAGE_FLAGS_TESS_CONTROL_BIT = 0x00000002, |
| 1003 | VK_SHADER_STAGE_FLAGS_TESS_EVALUATION_BIT = 0x00000004, |
| 1004 | VK_SHADER_STAGE_FLAGS_GEOMETRY_BIT = 0x00000008, |
| 1005 | VK_SHADER_STAGE_FLAGS_FRAGMENT_BIT = 0x00000010, |
| 1006 | VK_SHADER_STAGE_FLAGS_COMPUTE_BIT = 0x00000020, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1007 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1008 | VK_SHADER_STAGE_FLAGS_ALL = 0x7FFFFFFF, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1009 | VK_MAX_ENUM(VkShaderStageFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1010 | } VkShaderStageFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1011 | |
| 1012 | // Structure type enumerant |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1013 | typedef enum VkStructureType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1014 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1015 | VK_STRUCTURE_TYPE_APPLICATION_INFO = 0, |
| 1016 | VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = 1, |
| 1017 | VK_STRUCTURE_TYPE_MEMORY_ALLOC_INFO = 2, |
| 1018 | VK_STRUCTURE_TYPE_MEMORY_OPEN_INFO = 4, |
| 1019 | VK_STRUCTURE_TYPE_PEER_MEMORY_OPEN_INFO = 5, |
| 1020 | VK_STRUCTURE_TYPE_BUFFER_VIEW_ATTACH_INFO = 6, |
| 1021 | VK_STRUCTURE_TYPE_IMAGE_VIEW_ATTACH_INFO = 7, |
| 1022 | VK_STRUCTURE_TYPE_EVENT_WAIT_INFO = 8, |
| 1023 | VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 9, |
| 1024 | VK_STRUCTURE_TYPE_COLOR_ATTACHMENT_VIEW_CREATE_INFO = 10, |
| 1025 | VK_STRUCTURE_TYPE_DEPTH_STENCIL_VIEW_CREATE_INFO = 11, |
| 1026 | VK_STRUCTURE_TYPE_SHADER_CREATE_INFO = 12, |
| 1027 | VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 13, |
| 1028 | VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 14, |
| 1029 | VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 15, |
| 1030 | VK_STRUCTURE_TYPE_DYNAMIC_VP_STATE_CREATE_INFO = 16, |
| 1031 | VK_STRUCTURE_TYPE_DYNAMIC_RS_STATE_CREATE_INFO = 17, |
| 1032 | VK_STRUCTURE_TYPE_DYNAMIC_CB_STATE_CREATE_INFO = 18, |
| 1033 | VK_STRUCTURE_TYPE_DYNAMIC_DS_STATE_CREATE_INFO = 19, |
| 1034 | VK_STRUCTURE_TYPE_CMD_BUFFER_CREATE_INFO = 20, |
| 1035 | VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 21, |
| 1036 | VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 22, |
| 1037 | VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 23, |
| 1038 | VK_STRUCTURE_TYPE_SEMAPHORE_OPEN_INFO = 24, |
| 1039 | VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 25, |
| 1040 | VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 26, |
| 1041 | VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 27, |
| 1042 | VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_CREATE_INFO = 28, |
| 1043 | VK_STRUCTURE_TYPE_PIPELINE_IA_STATE_CREATE_INFO = 29, |
| 1044 | VK_STRUCTURE_TYPE_PIPELINE_TESS_STATE_CREATE_INFO = 30, |
| 1045 | VK_STRUCTURE_TYPE_PIPELINE_VP_STATE_CREATE_INFO = 31, |
| 1046 | VK_STRUCTURE_TYPE_PIPELINE_RS_STATE_CREATE_INFO = 32, |
| 1047 | VK_STRUCTURE_TYPE_PIPELINE_MS_STATE_CREATE_INFO = 33, |
| 1048 | VK_STRUCTURE_TYPE_PIPELINE_CB_STATE_CREATE_INFO = 34, |
| 1049 | VK_STRUCTURE_TYPE_PIPELINE_DS_STATE_CREATE_INFO = 35, |
| 1050 | VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 36, |
| 1051 | VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 37, |
| 1052 | VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 38, |
| 1053 | VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 39, |
| 1054 | VK_STRUCTURE_TYPE_CMD_BUFFER_BEGIN_INFO = 40, |
| 1055 | VK_STRUCTURE_TYPE_CMD_BUFFER_GRAPHICS_BEGIN_INFO = 41, |
| 1056 | VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 42, |
| 1057 | VK_STRUCTURE_TYPE_LAYER_CREATE_INFO = 43, |
| 1058 | VK_STRUCTURE_TYPE_PIPELINE_BARRIER = 44, |
| 1059 | VK_STRUCTURE_TYPE_MEMORY_BARRIER = 45, |
| 1060 | VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 46, |
| 1061 | VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 47, |
| 1062 | VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 48, |
| 1063 | VK_STRUCTURE_TYPE_UPDATE_SAMPLERS = 49, |
| 1064 | VK_STRUCTURE_TYPE_UPDATE_SAMPLER_TEXTURES = 50, |
| 1065 | VK_STRUCTURE_TYPE_UPDATE_IMAGES = 51, |
| 1066 | VK_STRUCTURE_TYPE_UPDATE_BUFFERS = 52, |
| 1067 | VK_STRUCTURE_TYPE_UPDATE_AS_COPY = 53, |
| 1068 | VK_STRUCTURE_TYPE_MEMORY_ALLOC_BUFFER_INFO = 54, |
| 1069 | VK_STRUCTURE_TYPE_MEMORY_ALLOC_IMAGE_INFO = 55, |
| 1070 | VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 56, |
| 1071 | |
| 1072 | VK_STRUCTURE_TYPE_BEGIN_RANGE = VK_STRUCTURE_TYPE_APPLICATION_INFO, |
| 1073 | VK_STRUCTURE_TYPE_END_RANGE = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, |
| 1074 | |
| 1075 | VK_NUM_STRUCTURE_TYPE = (VK_STRUCTURE_TYPE_END_RANGE - VK_STRUCTURE_TYPE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1076 | VK_MAX_ENUM(VkStructureType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1077 | } VkStructureType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1078 | |
| 1079 | // ------------------------------------------------------------------------------------------------ |
| 1080 | // Flags |
| 1081 | |
| 1082 | // Device creation flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1083 | typedef enum VkDeviceCreateFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1084 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1085 | VK_DEVICE_CREATE_VALIDATION_BIT = 0x00000001, |
| 1086 | VK_DEVICE_CREATE_MGPU_IQ_MATCH_BIT = 0x00000002, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1087 | VK_MAX_ENUM(VkDeviceCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1088 | } VkDeviceCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1089 | |
| 1090 | // Queue capabilities |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1091 | typedef enum VkQueueFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1092 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1093 | VK_QUEUE_GRAPHICS_BIT = 0x00000001, // Queue supports graphics operations |
| 1094 | VK_QUEUE_COMPUTE_BIT = 0x00000002, // Queue supports compute operations |
| 1095 | VK_QUEUE_DMA_BIT = 0x00000004, // Queue supports DMA operations |
| 1096 | VK_QUEUE_EXTENDED_BIT = 0x40000000, // Extended queue |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1097 | VK_MAX_ENUM(VkQueueFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1098 | } VkQueueFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1099 | |
| 1100 | // memory properties passed into vkAllocMemory(). |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1101 | typedef enum VkMemoryPropertyFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1102 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1103 | VK_MEMORY_PROPERTY_GPU_ONLY = 0x00000000, // If not set, then allocate memory on device (GPU) |
| 1104 | VK_MEMORY_PROPERTY_CPU_VISIBLE_BIT = 0x00000001, |
| 1105 | VK_MEMORY_PROPERTY_CPU_GPU_COHERENT_BIT = 0x00000002, |
| 1106 | VK_MEMORY_PROPERTY_CPU_UNCACHED_BIT = 0x00000004, |
| 1107 | VK_MEMORY_PROPERTY_CPU_WRITE_COMBINED_BIT = 0x00000008, |
| 1108 | VK_MEMORY_PROPERTY_PREFER_CPU_LOCAL = 0x00000010, // all else being equal, prefer CPU access |
| 1109 | VK_MEMORY_PROPERTY_SHAREABLE_BIT = 0x00000020, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1110 | VK_MAX_ENUM(VkMemoryPropertyFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1111 | } VkMemoryPropertyFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1112 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1113 | typedef enum VkMemoryType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1114 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1115 | VK_MEMORY_TYPE_OTHER = 0x00000000, // device memory that is not any of the others |
| 1116 | VK_MEMORY_TYPE_BUFFER = 0x00000001, // memory for buffers and associated information |
| 1117 | VK_MEMORY_TYPE_IMAGE = 0x00000002, // memory for images and associated information |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1118 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1119 | VK_MEMORY_TYPE_BEGIN_RANGE = VK_MEMORY_TYPE_OTHER, |
| 1120 | VK_MEMORY_TYPE_END_RANGE = VK_MEMORY_TYPE_IMAGE, |
| 1121 | VK_NUM_MEMORY_TYPE = (VK_MEMORY_TYPE_END_RANGE - VK_MEMORY_TYPE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1122 | VK_MAX_ENUM(VkMemoryType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1123 | } VkMemoryType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1124 | |
| 1125 | // Buffer and buffer allocation usage flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1126 | typedef enum VkBufferUsageFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1127 | { |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1128 | VK_BUFFER_USAGE_GENERAL = 0x00000000, // No special usage |
| 1129 | VK_BUFFER_USAGE_TRANSFER_SOURCE_BIT = 0x00000001, // Can be used as a source of transfer operations |
| 1130 | VK_BUFFER_USAGE_TRANSFER_DESTINATION_BIT = 0x00000002, // Can be used as a destination of transfer operations |
| 1131 | VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004, // Can be used as TBO |
| 1132 | VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = 0x00000008, // Can be used as IBO |
| 1133 | VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = 0x00000010, // Can be used as UBO |
| 1134 | VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = 0x00000020, // Can be used as SSBO |
| 1135 | VK_BUFFER_USAGE_INDEX_BUFFER_BIT = 0x00000040, // Can be used as source of fixed function index fetch (index buffer) |
| 1136 | VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = 0x00000080, // Can be used as source of fixed function vertex fetch (VBO) |
| 1137 | VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = 0x00000100, // Can be the source of indirect parameters (e.g. indirect buffer, parameter buffer) |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1138 | VK_MAX_ENUM(VkBufferUsageFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1139 | } VkBufferUsageFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1140 | |
| 1141 | // Buffer flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1142 | typedef enum VkBufferCreateFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1143 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1144 | VK_BUFFER_CREATE_SHAREABLE_BIT = 0x00000001, |
| 1145 | VK_BUFFER_CREATE_SPARSE_BIT = 0x00000002, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1146 | VK_MAX_ENUM(VkBufferCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1147 | } VkBufferCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1148 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1149 | typedef enum VkBufferViewType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1150 | { |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1151 | VK_BUFFER_VIEW_RAW = 0x00000000, // Raw buffer without special structure (UBO, SSBO) |
| 1152 | VK_BUFFER_VIEW_FORMATTED = 0x00000001, // Buffer with format (TBO, IBO) |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1153 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1154 | VK_BUFFER_VIEW_TYPE_BEGIN_RANGE = VK_BUFFER_VIEW_RAW, |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1155 | VK_BUFFER_VIEW_TYPE_END_RANGE = VK_BUFFER_VIEW_FORMATTED, |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1156 | VK_NUM_BUFFER_VIEW_TYPE = (VK_BUFFER_VIEW_TYPE_END_RANGE - VK_BUFFER_VIEW_TYPE_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1157 | VK_MAX_ENUM(VkBufferViewType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1158 | } VkBufferViewType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1159 | |
| 1160 | |
| 1161 | // Images memory allocations can be used for resources of a given format class. |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1162 | typedef enum VkImageFormatClass_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1163 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1164 | VK_IMAGE_FORMAT_CLASS_128_BITS = 1, // color formats |
| 1165 | VK_IMAGE_FORMAT_CLASS_96_BITS = 2, |
| 1166 | VK_IMAGE_FORMAT_CLASS_64_BITS = 3, |
| 1167 | VK_IMAGE_FORMAT_CLASS_48_BITS = 4, |
| 1168 | VK_IMAGE_FORMAT_CLASS_32_BITS = 5, |
| 1169 | VK_IMAGE_FORMAT_CLASS_24_BITS = 6, |
| 1170 | VK_IMAGE_FORMAT_CLASS_16_BITS = 7, |
| 1171 | VK_IMAGE_FORMAT_CLASS_8_BITS = 8, |
| 1172 | VK_IMAGE_FORMAT_CLASS_128_BIT_BLOCK = 9, // 128-bit block compressed formats |
| 1173 | VK_IMAGE_FORMAT_CLASS_64_BIT_BLOCK = 10, // 64-bit block compressed formats |
| 1174 | VK_IMAGE_FORMAT_CLASS_D32 = 11, // D32_SFLOAT |
| 1175 | VK_IMAGE_FORMAT_CLASS_D24 = 12, // D24_UNORM |
| 1176 | VK_IMAGE_FORMAT_CLASS_D16 = 13, // D16_UNORM |
| 1177 | VK_IMAGE_FORMAT_CLASS_S8 = 14, // S8_UINT |
| 1178 | VK_IMAGE_FORMAT_CLASS_D32S8 = 15, // D32_SFLOAT_S8_UINT |
| 1179 | VK_IMAGE_FORMAT_CLASS_D24S8 = 16, // D24_UNORM_S8_UINT |
| 1180 | VK_IMAGE_FORMAT_CLASS_D16S8 = 17, // D16_UNORM_S8_UINT |
| 1181 | VK_IMAGE_FORMAT_CLASS_LINEAR = 18, // used for pitch-linear (transparent) textures |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1182 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1183 | VK_IMAGE_FORMAT_CLASS_BEGIN_RANGE = VK_IMAGE_FORMAT_CLASS_128_BITS, |
| 1184 | VK_IMAGE_FORMAT_CLASS_END_RANGE = VK_IMAGE_FORMAT_CLASS_LINEAR, |
| 1185 | VK_NUM_IMAGE_FORMAT_CLASS = (VK_IMAGE_FORMAT_CLASS_END_RANGE - VK_IMAGE_FORMAT_CLASS_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1186 | VK_MAX_ENUM(VkImageFormatClass) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1187 | } VkImageFormatClass; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1188 | |
| 1189 | // Image and image allocation usage flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1190 | typedef enum VkImageUsageFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1191 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1192 | VK_IMAGE_USAGE_GENERAL = 0x00000000, // no special usage |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1193 | VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT = 0x00000001, // Can be used as a source of transfer operations |
| 1194 | VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT = 0x00000002, // Can be used as a destination of transfer operations |
| 1195 | VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004, // Can be sampled from (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types) |
| 1196 | VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008, // Can be used as storage image (STORAGE_IMAGE descriptor type) |
| 1197 | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010, // Can be used as framebuffer color attachment |
| 1198 | VK_IMAGE_USAGE_DEPTH_STENCIL_BIT = 0x00000020, // Can be used as framebuffer depth/stencil attachment |
| 1199 | VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040, // Image data not needed outside of rendering |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1200 | VK_MAX_ENUM(VkImageUsageFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1201 | } VkImageUsageFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1202 | |
| 1203 | // Image flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1204 | typedef enum VkImageCreateFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1205 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1206 | VK_IMAGE_CREATE_INVARIANT_DATA_BIT = 0x00000001, |
| 1207 | VK_IMAGE_CREATE_CLONEABLE_BIT = 0x00000002, |
| 1208 | VK_IMAGE_CREATE_SHAREABLE_BIT = 0x00000004, |
| 1209 | VK_IMAGE_CREATE_SPARSE_BIT = 0x00000008, |
| 1210 | VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = 0x00000010, // Allows image views to have different format than the base image |
Mark Lobodzinski | ee8373f | 2015-04-09 18:46:33 -0500 | [diff] [blame] | 1211 | VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = 0x00000020, // Allows creating image views with cube type from the created image |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1212 | VK_MAX_ENUM(VkImageCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1213 | } VkImageCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1214 | |
| 1215 | // Depth-stencil view creation flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1216 | typedef enum VkDepthStencilViewCreateFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1217 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1218 | VK_DEPTH_STENCIL_VIEW_CREATE_READ_ONLY_DEPTH_BIT = 0x00000001, |
| 1219 | VK_DEPTH_STENCIL_VIEW_CREATE_READ_ONLY_STENCIL_BIT = 0x00000002, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1220 | VK_MAX_ENUM(VkDepthStencilViewCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1221 | } VkDepthStencilViewCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1222 | |
| 1223 | // Pipeline creation flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1224 | typedef enum VkPipelineCreateFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1225 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1226 | VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = 0x00000001, |
| 1227 | VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = 0x00000002, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1228 | VK_MAX_ENUM(VkPipelineCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1229 | } VkPipelineCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1230 | |
| 1231 | // Fence creation flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1232 | typedef enum VkFenceCreateFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1233 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1234 | VK_FENCE_CREATE_SIGNALED_BIT = 0x00000001, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1235 | VK_MAX_ENUM(VkFenceCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1236 | } VkFenceCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1237 | |
| 1238 | // Semaphore creation flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1239 | typedef enum VkSemaphoreCreateFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1240 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1241 | VK_SEMAPHORE_CREATE_SHAREABLE_BIT = 0x00000001, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1242 | VK_MAX_ENUM(VkSemaphoreCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1243 | } VkSemaphoreCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1244 | |
| 1245 | // Format capability flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1246 | typedef enum VkFormatFeatureFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1247 | { |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1248 | VK_FORMAT_SAMPLED_IMAGE_BIT = 0x00000001, // Format can be used for sampled images (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types) |
| 1249 | VK_FORMAT_STORAGE_IMAGE_BIT = 0x00000002, // Format can be used for storage images (STORAGE_IMAGE descriptor type) |
| 1250 | VK_FORMAT_STORAGE_IMAGE_ATOMIC_BIT = 0x00000004, // Format supports atomic operations in case it's used for storage images |
| 1251 | VK_FORMAT_UNIFORM_TEXEL_BUFFER_BIT = 0x00000008, // Format can be used for uniform texel buffers (TBOs) |
| 1252 | VK_FORMAT_STORAGE_TEXEL_BUFFER_BIT = 0x00000010, // Format can be used for storage texel buffers (IBOs) |
| 1253 | VK_FORMAT_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 0x00000020, // Format supports atomic operations in case it's used for storage texel buffers |
| 1254 | VK_FORMAT_VERTEX_BUFFER_BIT = 0x00000040, // Format can be used for vertex buffers (VBOs) |
| 1255 | VK_FORMAT_COLOR_ATTACHMENT_BIT = 0x00000080, // Format can be used for color attachment images |
| 1256 | VK_FORMAT_COLOR_ATTACHMENT_BLEND_BIT = 0x00000100, // Format supports blending in case it's used for color attachment images |
| 1257 | VK_FORMAT_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000200, // Format can be used for depth/stencil attachment images |
| 1258 | VK_FORMAT_CONVERSION_BIT = 0x00000400, // Format can be used as the source or destination of format converting blits |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1259 | VK_MAX_ENUM(VkFormatFeatureFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1260 | } VkFormatFeatureFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1261 | |
| 1262 | // Query flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1263 | typedef enum VkQueryControlFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1264 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1265 | VK_QUERY_IMPRECISE_DATA_BIT = 0x00000001, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1266 | VK_MAX_ENUM(VkQueryControlFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1267 | } VkQueryControlFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1268 | |
| 1269 | // GPU compatibility flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1270 | typedef enum VkGpuCompatibilityFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1271 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1272 | VK_GPU_COMPAT_ASIC_FEATURES_BIT = 0x00000001, |
| 1273 | VK_GPU_COMPAT_IQ_MATCH_BIT = 0x00000002, |
| 1274 | VK_GPU_COMPAT_PEER_TRANSFER_BIT = 0x00000004, |
| 1275 | VK_GPU_COMPAT_SHARED_MEMORY_BIT = 0x00000008, |
| 1276 | VK_GPU_COMPAT_SHARED_SYNC_BIT = 0x00000010, |
| 1277 | VK_GPU_COMPAT_SHARED_GPU0_DISPLAY_BIT = 0x00000020, |
| 1278 | VK_GPU_COMPAT_SHARED_GPU1_DISPLAY_BIT = 0x00000040, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1279 | VK_MAX_ENUM(VkGpuCompatibilityFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1280 | } VkGpuCompatibilityFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1281 | |
| 1282 | // Command buffer building flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1283 | typedef enum VkCmdBufferBuildFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1284 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1285 | VK_CMD_BUFFER_OPTIMIZE_GPU_SMALL_BATCH_BIT = 0x00000001, |
| 1286 | VK_CMD_BUFFER_OPTIMIZE_PIPELINE_SWITCH_BIT = 0x00000002, |
| 1287 | VK_CMD_BUFFER_OPTIMIZE_ONE_TIME_SUBMIT_BIT = 0x00000004, |
| 1288 | VK_CMD_BUFFER_OPTIMIZE_DESCRIPTOR_SET_SWITCH_BIT = 0x00000008, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1289 | VK_MAX_ENUM(VkCmdBufferBuildFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1290 | } VkCmdBufferBuildFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1291 | |
| 1292 | // ------------------------------------------------------------------------------------------------ |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1293 | // Vulkan structures |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1294 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1295 | typedef struct VkOffset2D_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1296 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1297 | int32_t x; |
| 1298 | int32_t y; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1299 | } VkOffset2D; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1300 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1301 | typedef struct VkOffset3D_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1302 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1303 | int32_t x; |
| 1304 | int32_t y; |
| 1305 | int32_t z; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1306 | } VkOffset3D; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1307 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1308 | typedef struct VkExtent2D_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1309 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1310 | int32_t width; |
| 1311 | int32_t height; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1312 | } VkExtent2D; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1313 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1314 | typedef struct VkExtent3D_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1315 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1316 | int32_t width; |
| 1317 | int32_t height; |
| 1318 | int32_t depth; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1319 | } VkExtent3D; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1320 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1321 | typedef struct VkViewport_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1322 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1323 | float originX; |
| 1324 | float originY; |
| 1325 | float width; |
| 1326 | float height; |
| 1327 | float minDepth; |
| 1328 | float maxDepth; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1329 | } VkViewport; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1330 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1331 | typedef struct VkRect_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1332 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1333 | VkOffset2D offset; |
| 1334 | VkExtent2D extent; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1335 | } VkRect; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1336 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1337 | typedef struct VkChannelMapping_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1338 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1339 | VkChannelSwizzle r; |
| 1340 | VkChannelSwizzle g; |
| 1341 | VkChannelSwizzle b; |
| 1342 | VkChannelSwizzle a; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1343 | } VkChannelMapping; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1344 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1345 | typedef struct VkPhysicalGpuProperties_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1346 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1347 | uint32_t apiVersion; |
| 1348 | uint32_t driverVersion; |
| 1349 | uint32_t vendorId; |
| 1350 | uint32_t deviceId; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1351 | VkPhysicalGpuType gpuType; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1352 | char gpuName[VK_MAX_PHYSICAL_GPU_NAME]; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1353 | VkGpuSize maxInlineMemoryUpdateSize; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1354 | uint32_t maxBoundDescriptorSets; |
| 1355 | uint32_t maxThreadGroupSize; |
| 1356 | uint64_t timestampFrequency; |
| 1357 | bool32_t multiColorAttachmentClears; |
| 1358 | uint32_t maxDescriptorSets; // at least 2? |
| 1359 | uint32_t maxViewports; // at least 16? |
| 1360 | uint32_t maxColorAttachments; // at least 8? |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1361 | } VkPhysicalGpuProperties; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1362 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1363 | typedef struct VkPhysicalGpuPerformance_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1364 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1365 | float maxGpuClock; |
| 1366 | float aluPerClock; |
| 1367 | float texPerClock; |
| 1368 | float primsPerClock; |
| 1369 | float pixelsPerClock; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1370 | } VkPhysicalGpuPerformance; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1371 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1372 | typedef struct VkGpuCompatibilityInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1373 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1374 | VkFlags compatibilityFlags; // VkGpuCompatibilityFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1375 | } VkGpuCompatibilityInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1376 | |
Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 1377 | typedef struct VkExtensionProperties_ |
| 1378 | { |
| 1379 | char extName[VK_MAX_EXTENSION_NAME]; // extension name |
| 1380 | uint32_t version; // version of the extension specification |
| 1381 | } VkExtensionProperties; |
| 1382 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1383 | typedef struct VkApplicationInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1384 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1385 | VkStructureType sType; // Type of structure. Should be VK_STRUCTURE_TYPE_APPLICATION_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1386 | const void* pNext; // Next structure in chain |
| 1387 | const char* pAppName; |
| 1388 | uint32_t appVersion; |
| 1389 | const char* pEngineName; |
| 1390 | uint32_t engineVersion; |
| 1391 | uint32_t apiVersion; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1392 | } VkApplicationInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1393 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1394 | typedef void* (VKAPI *PFN_vkAllocFunction)( |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1395 | void* pUserData, |
| 1396 | size_t size, |
| 1397 | size_t alignment, |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1398 | VkSystemAllocType allocType); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1399 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1400 | typedef void (VKAPI *PFN_vkFreeFunction)( |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1401 | void* pUserData, |
| 1402 | void* pMem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1403 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1404 | typedef struct VkAllocCallbacks_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1405 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1406 | void* pUserData; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1407 | PFN_vkAllocFunction pfnAlloc; |
| 1408 | PFN_vkFreeFunction pfnFree; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1409 | } VkAllocCallbacks; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1410 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1411 | typedef struct VkDeviceQueueCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1412 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1413 | uint32_t queueNodeIndex; |
| 1414 | uint32_t queueCount; |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1415 | } VkDeviceQueueCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1416 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1417 | typedef struct VkDeviceCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1418 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1419 | VkStructureType sType; // Should be VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1420 | const void* pNext; // Pointer to next structure |
| 1421 | uint32_t queueRecordCount; |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1422 | const VkDeviceQueueCreateInfo* pRequestedQueues; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1423 | uint32_t extensionCount; |
| 1424 | const char*const* ppEnabledExtensionNames; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1425 | VkValidationLevel maxValidationLevel; |
| 1426 | VkFlags flags; // VkDeviceCreateFlags |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1427 | } VkDeviceCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1428 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1429 | typedef struct VkInstanceCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1430 | { |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1431 | VkStructureType sType; // Should be VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1432 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1433 | const VkApplicationInfo* pAppInfo; |
| 1434 | const VkAllocCallbacks* pAllocCb; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1435 | uint32_t extensionCount; |
| 1436 | const char*const* ppEnabledExtensionNames; // layer or extension name to be enabled |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1437 | } VkInstanceCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1438 | |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1439 | // can be added to VkDeviceCreateInfo or VkInstanceCreateInfo via pNext |
| 1440 | typedef struct _VkLayerCreateInfo |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1441 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1442 | VkStructureType sType; // Should be VK_STRUCTURE_TYPE_LAYER_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1443 | const void* pNext; // Pointer to next structure |
| 1444 | uint32_t layerCount; |
| 1445 | const char *const* ppActiveLayerNames; // layer name from the layer's vkEnumerateLayers()) |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1446 | } VkLayerCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1447 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1448 | typedef struct VkPhysicalGpuQueueProperties_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1449 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1450 | VkFlags queueFlags; // VkQueueFlags |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1451 | uint32_t queueCount; |
| 1452 | uint32_t maxAtomicCounters; |
| 1453 | bool32_t supportsTimestamps; |
| 1454 | uint32_t maxMemReferences; // Tells how many memory references can be active for the given queue |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1455 | } VkPhysicalGpuQueueProperties; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1456 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1457 | typedef struct VkPhysicalGpuMemoryProperties_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1458 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1459 | bool32_t supportsMigration; |
| 1460 | bool32_t supportsPinning; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1461 | } VkPhysicalGpuMemoryProperties; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1462 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1463 | typedef struct VkMemoryAllocInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1464 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1465 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_MEMORY_ALLOC_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1466 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1467 | VkGpuSize allocationSize; // Size of memory allocation |
| 1468 | VkFlags memProps; // VkMemoryPropertyFlags |
| 1469 | VkMemoryType memType; |
| 1470 | VkMemoryPriority memPriority; |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1471 | } VkMemoryAllocInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1472 | |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1473 | // This structure is included in the VkMemoryAllocInfo chain |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1474 | // for memory regions allocated for buffer usage. |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1475 | typedef struct VkMemoryAllocBufferInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1476 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1477 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_MEMORY_ALLOC_BUFFER_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1478 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1479 | VkFlags usage; // VkBufferUsageFlags |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1480 | } VkMemoryAllocBufferInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1481 | |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1482 | // This structure is included in the VkMemoryAllocInfo chain |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1483 | // for memory regions allocated for image usage. |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1484 | typedef struct VkMemoryAllocImageInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1485 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1486 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_MEMORY_ALLOC_IMAGE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1487 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1488 | VkFlags usage; // VkImageUsageFlags |
| 1489 | VkImageFormatClass formatClass; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1490 | uint32_t samples; |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1491 | } VkMemoryAllocImageInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1492 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1493 | typedef struct VkMemoryOpenInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1494 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1495 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_MEMORY_OPEN_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1496 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1497 | VkGpuMemory sharedMem; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1498 | } VkMemoryOpenInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1499 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1500 | typedef struct VkPeerMemoryOpenInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1501 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1502 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PEER_MEMORY_OPEN_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1503 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1504 | VkGpuMemory originalMem; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1505 | } VkPeerMemoryOpenInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1506 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1507 | typedef struct VkMemoryRequirements_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1508 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1509 | VkGpuSize size; // Specified in bytes |
| 1510 | VkGpuSize alignment; // Specified in bytes |
| 1511 | VkGpuSize granularity; // Granularity on which vkBindObjectMemoryRange can bind sub-ranges of memory specified in bytes (usually the page size) |
| 1512 | VkFlags memProps; // VkMemoryPropertyFlags |
| 1513 | VkMemoryType memType; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1514 | } VkMemoryRequirements; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1515 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1516 | typedef struct VkBufferMemoryRequirements_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1517 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1518 | VkFlags usage; // VkBufferUsageFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1519 | } VkBufferMemoryRequirements; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1520 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1521 | typedef struct VkImageMemoryRequirements_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1522 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1523 | VkFlags usage; // VkImageUsageFlags |
| 1524 | VkImageFormatClass formatClass; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1525 | uint32_t samples; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1526 | } VkImageMemoryRequirements; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1527 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1528 | typedef struct VkFormatProperties_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1529 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1530 | VkFlags linearTilingFeatures; // VkFormatFeatureFlags |
| 1531 | VkFlags optimalTilingFeatures; // VkFormatFeatureFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1532 | } VkFormatProperties; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1533 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1534 | typedef struct VkBufferViewAttachInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1535 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1536 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_BUFFER_VIEW_ATTACH_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1537 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1538 | VkBufferView view; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1539 | } VkBufferViewAttachInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1540 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1541 | typedef struct VkImageViewAttachInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1542 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1543 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_IMAGE_VIEW_ATTACH_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1544 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1545 | VkImageView view; |
| 1546 | VkImageLayout layout; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1547 | } VkImageViewAttachInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1548 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1549 | typedef struct VkUpdateSamplers_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1550 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1551 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_UPDATE_SAMPLERS |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1552 | const void* pNext; // Pointer to next structure |
| 1553 | uint32_t binding; // Binding of the sampler (array) |
| 1554 | uint32_t arrayIndex; // First element of the array to update or zero otherwise |
| 1555 | uint32_t count; // Number of elements to update |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1556 | const VkSampler* pSamplers; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1557 | } VkUpdateSamplers; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1558 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1559 | typedef struct VkSamplerImageViewInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1560 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1561 | VkSampler sampler; |
| 1562 | const VkImageViewAttachInfo* pImageView; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1563 | } VkSamplerImageViewInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1564 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1565 | typedef struct VkUpdateSamplerTextures_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1566 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1567 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_UPDATE_SAMPLER_TEXTURES |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1568 | const void* pNext; // Pointer to next structure |
| 1569 | uint32_t binding; // Binding of the combined texture sampler (array) |
| 1570 | uint32_t arrayIndex; // First element of the array to update or zero otherwise |
| 1571 | uint32_t count; // Number of elements to update |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1572 | const VkSamplerImageViewInfo* pSamplerImageViews; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1573 | } VkUpdateSamplerTextures; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1574 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1575 | typedef struct VkUpdateImages_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1576 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1577 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_UPDATE_IMAGES |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1578 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1579 | VkDescriptorType descriptorType; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1580 | uint32_t binding; // Binding of the image (array) |
| 1581 | uint32_t arrayIndex; // First element of the array to update or zero otherwise |
| 1582 | uint32_t count; // Number of elements to update |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1583 | const VkImageViewAttachInfo* pImageViews; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1584 | } VkUpdateImages; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1585 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1586 | typedef struct VkUpdateBuffers_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1587 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1588 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_UPDATE_BUFFERS |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1589 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1590 | VkDescriptorType descriptorType; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1591 | uint32_t binding; // Binding of the buffer (array) |
| 1592 | uint32_t arrayIndex; // First element of the array to update or zero otherwise |
| 1593 | uint32_t count; // Number of elements to update |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1594 | const VkBufferViewAttachInfo* pBufferViews; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1595 | } VkUpdateBuffers; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1596 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1597 | typedef struct VkUpdateAsCopy_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1598 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1599 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_UPDATE_AS_COPY |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1600 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1601 | VkDescriptorType descriptorType; |
| 1602 | VkDescriptorSet descriptorSet; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1603 | uint32_t binding; |
| 1604 | uint32_t arrayElement; |
| 1605 | uint32_t count; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1606 | } VkUpdateAsCopy; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1607 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1608 | typedef struct VkBufferCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1609 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1610 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1611 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1612 | VkGpuSize size; // Specified in bytes |
| 1613 | VkFlags usage; // VkBufferUsageFlags |
| 1614 | VkFlags flags; // VkBufferCreateFlags |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1615 | } VkBufferCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1616 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1617 | typedef struct VkBufferViewCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1618 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1619 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1620 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1621 | VkBuffer buffer; |
| 1622 | VkBufferViewType viewType; |
| 1623 | VkFormat format; // Optionally specifies format of elements |
| 1624 | VkGpuSize offset; // Specified in bytes |
| 1625 | VkGpuSize range; // View size specified in bytes |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1626 | } VkBufferViewCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1627 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1628 | typedef struct VkImageSubresource_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1629 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1630 | VkImageAspect aspect; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1631 | uint32_t mipLevel; |
| 1632 | uint32_t arraySlice; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1633 | } VkImageSubresource; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1634 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1635 | typedef struct VkImageSubresourceRange_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1636 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1637 | VkImageAspect aspect; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1638 | uint32_t baseMipLevel; |
| 1639 | uint32_t mipLevels; |
| 1640 | uint32_t baseArraySlice; |
| 1641 | uint32_t arraySize; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1642 | } VkImageSubresourceRange; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1643 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1644 | typedef struct VkEventWaitInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1645 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1646 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_EVENT_WAIT_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1647 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1648 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1649 | uint32_t eventCount; // Number of events to wait on |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1650 | const VkEvent* pEvents; // Array of event objects to wait on |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1651 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1652 | VkWaitEvent waitEvent; // Pipeline event where the wait should happen |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1653 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1654 | uint32_t memBarrierCount; // Number of memory barriers |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1655 | const void** ppMemBarriers; // Array of pointers to memory barriers (any of them can be either VkMemoryBarrier, VkBufferMemoryBarrier, or VkImageMemoryBarrier) |
| 1656 | } VkEventWaitInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1657 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1658 | typedef struct VkPipelineBarrier_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1659 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1660 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_BARRIER |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1661 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1662 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1663 | uint32_t eventCount; // Number of events to wait on |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1664 | const VkPipeEvent* pEvents; // Array of pipeline events to wait on |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1665 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1666 | VkWaitEvent waitEvent; // Pipeline event where the wait should happen |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1667 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1668 | uint32_t memBarrierCount; // Number of memory barriers |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1669 | const void** ppMemBarriers; // Array of pointers to memory barriers (any of them can be either VkMemoryBarrier, VkBufferMemoryBarrier, or VkImageMemoryBarrier) |
| 1670 | } VkPipelineBarrier; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1671 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1672 | typedef struct VkMemoryBarrier_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1673 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1674 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_MEMORY_BARRIER |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1675 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1676 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1677 | VkFlags outputMask; // Outputs the barrier should sync (see VkMemoryOutputFlags) |
| 1678 | VkFlags inputMask; // Inputs the barrier should sync to (see VkMemoryInputFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1679 | } VkMemoryBarrier; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1680 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1681 | typedef struct VkBufferMemoryBarrier_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1682 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1683 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1684 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1685 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1686 | VkFlags outputMask; // Outputs the barrier should sync (see VkMemoryOutputFlags) |
| 1687 | VkFlags inputMask; // Inputs the barrier should sync to (see VkMemoryInputFlags) |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1688 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1689 | VkBuffer buffer; // Buffer to sync |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1690 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1691 | VkGpuSize offset; // Offset within the buffer to sync |
| 1692 | VkGpuSize size; // Amount of bytes to sync |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1693 | } VkBufferMemoryBarrier; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1694 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1695 | typedef struct VkImageMemoryBarrier_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1696 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1697 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1698 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1699 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1700 | VkFlags outputMask; // Outputs the barrier should sync (see VkMemoryOutputFlags) |
| 1701 | VkFlags inputMask; // Inputs the barrier should sync to (see VkMemoryInputFlags) |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1702 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1703 | VkImageLayout oldLayout; // Current layout of the image |
| 1704 | VkImageLayout newLayout; // New layout to transition the image to |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1705 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1706 | VkImage image; // Image to sync |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1707 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1708 | VkImageSubresourceRange subresourceRange; // Subresource range to sync |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1709 | } VkImageMemoryBarrier; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1710 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1711 | typedef struct VkImageCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1712 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1713 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1714 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1715 | VkImageType imageType; |
| 1716 | VkFormat format; |
| 1717 | VkExtent3D extent; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1718 | uint32_t mipLevels; |
| 1719 | uint32_t arraySize; |
| 1720 | uint32_t samples; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1721 | VkImageTiling tiling; |
| 1722 | VkFlags usage; // VkImageUsageFlags |
| 1723 | VkFlags flags; // VkImageCreateFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1724 | } VkImageCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1725 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1726 | typedef struct VkPeerImageOpenInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1727 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1728 | VkImage originalImage; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1729 | } VkPeerImageOpenInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1730 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1731 | typedef struct VkSubresourceLayout_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1732 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1733 | VkGpuSize offset; // Specified in bytes |
| 1734 | VkGpuSize size; // Specified in bytes |
| 1735 | VkGpuSize rowPitch; // Specified in bytes |
| 1736 | VkGpuSize depthPitch; // Specified in bytes |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1737 | } VkSubresourceLayout; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1738 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1739 | typedef struct VkImageViewCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1740 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1741 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1742 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1743 | VkImage image; |
| 1744 | VkImageViewType viewType; |
| 1745 | VkFormat format; |
| 1746 | VkChannelMapping channels; |
| 1747 | VkImageSubresourceRange subresourceRange; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1748 | float minLod; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1749 | } VkImageViewCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1750 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1751 | typedef struct VkColorAttachmentViewCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1752 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1753 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_COLOR_ATTACHMENT_VIEW_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1754 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1755 | VkImage image; |
| 1756 | VkFormat format; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1757 | uint32_t mipLevel; |
| 1758 | uint32_t baseArraySlice; |
| 1759 | uint32_t arraySize; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1760 | VkImage msaaResolveImage; |
| 1761 | VkImageSubresourceRange msaaResolveSubResource; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1762 | } VkColorAttachmentViewCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1763 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1764 | typedef struct VkDepthStencilViewCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1765 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1766 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DEPTH_STENCIL_VIEW_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1767 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1768 | VkImage image; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1769 | uint32_t mipLevel; |
| 1770 | uint32_t baseArraySlice; |
| 1771 | uint32_t arraySize; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1772 | VkImage msaaResolveImage; |
| 1773 | VkImageSubresourceRange msaaResolveSubResource; |
| 1774 | VkFlags flags; // VkDepthStencilViewCreateFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1775 | } VkDepthStencilViewCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1776 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1777 | typedef struct VkColorAttachmentBindInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1778 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1779 | VkColorAttachmentView view; |
| 1780 | VkImageLayout layout; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1781 | } VkColorAttachmentBindInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1782 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1783 | typedef struct VkDepthStencilBindInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1784 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1785 | VkDepthStencilView view; |
| 1786 | VkImageLayout layout; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1787 | } VkDepthStencilBindInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1788 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1789 | typedef struct VkBufferCopy_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1790 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1791 | VkGpuSize srcOffset; // Specified in bytes |
| 1792 | VkGpuSize destOffset; // Specified in bytes |
| 1793 | VkGpuSize copySize; // Specified in bytes |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1794 | } VkBufferCopy; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1795 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1796 | typedef struct VkImageMemoryBindInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1797 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1798 | VkImageSubresource subresource; |
| 1799 | VkOffset3D offset; |
| 1800 | VkExtent3D extent; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1801 | } VkImageMemoryBindInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1802 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1803 | typedef struct VkImageCopy_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1804 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1805 | VkImageSubresource srcSubresource; |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1806 | VkOffset3D srcOffset; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1807 | VkImageSubresource destSubresource; |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1808 | VkOffset3D destOffset; // Specified in pixels for both compressed and uncompressed images |
| 1809 | VkExtent3D extent; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1810 | } VkImageCopy; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1811 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1812 | typedef struct VkImageBlit_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1813 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1814 | VkImageSubresource srcSubresource; |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1815 | VkOffset3D srcOffset; // Specified in pixels for both compressed and uncompressed images |
| 1816 | VkExtent3D srcExtent; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1817 | VkImageSubresource destSubresource; |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1818 | VkOffset3D destOffset; // Specified in pixels for both compressed and uncompressed images |
| 1819 | VkExtent3D destExtent; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1820 | } VkImageBlit; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1821 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1822 | typedef struct VkBufferImageCopy_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1823 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1824 | VkGpuSize bufferOffset; // Specified in bytes |
| 1825 | VkImageSubresource imageSubresource; |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1826 | VkOffset3D imageOffset; // Specified in pixels for both compressed and uncompressed images |
| 1827 | VkExtent3D imageExtent; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1828 | } VkBufferImageCopy; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1829 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1830 | typedef struct VkImageResolve_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1831 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1832 | VkImageSubresource srcSubresource; |
| 1833 | VkOffset2D srcOffset; |
| 1834 | VkImageSubresource destSubresource; |
| 1835 | VkOffset2D destOffset; |
| 1836 | VkExtent2D extent; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1837 | } VkImageResolve; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1838 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1839 | typedef struct VkShaderCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1840 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1841 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_SHADER_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1842 | const void* pNext; // Pointer to next structure |
| 1843 | size_t codeSize; // Specified in bytes |
| 1844 | const void* pCode; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1845 | VkFlags flags; // Reserved |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1846 | } VkShaderCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1847 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1848 | typedef struct VkDescriptorSetLayoutBinding_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1849 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1850 | VkDescriptorType descriptorType; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1851 | uint32_t count; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1852 | VkFlags stageFlags; // VkShaderStageFlags |
| 1853 | const VkSampler* pImmutableSamplers; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1854 | } VkDescriptorSetLayoutBinding; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1855 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1856 | typedef struct VkDescriptorSetLayoutCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1857 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1858 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1859 | const void* pNext; // Pointer to next structure |
| 1860 | uint32_t count; // Number of bindings in the descriptor set layout |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1861 | const VkDescriptorSetLayoutBinding* pBinding; // Array of descriptor set layout bindings |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1862 | } VkDescriptorSetLayoutCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1863 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1864 | typedef struct VkDescriptorTypeCount_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1865 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1866 | VkDescriptorType type; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1867 | uint32_t count; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1868 | } VkDescriptorTypeCount; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1869 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1870 | typedef struct VkDescriptorPoolCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1871 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1872 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1873 | const void* pNext; // Pointer to next structure |
| 1874 | uint32_t count; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1875 | const VkDescriptorTypeCount* pTypeCount; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1876 | } VkDescriptorPoolCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1877 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1878 | typedef struct VkLinkConstBuffer_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1879 | { |
| 1880 | uint32_t bufferId; |
| 1881 | size_t bufferSize; |
| 1882 | const void* pBufferData; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1883 | } VkLinkConstBuffer; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1884 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1885 | typedef struct VkSpecializationMapEntry_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1886 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1887 | uint32_t constantId; // The SpecConstant ID specified in the BIL |
| 1888 | uint32_t offset; // Offset of the value in the data block |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1889 | } VkSpecializationMapEntry; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1890 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1891 | typedef struct VkSpecializationInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1892 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1893 | uint32_t mapEntryCount; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1894 | const VkSpecializationMapEntry* pMap; // mapEntryCount entries |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1895 | const void* pData; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1896 | } VkSpecializationInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1897 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1898 | typedef struct VkPipelineShader_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1899 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1900 | VkPipelineShaderStage stage; |
| 1901 | VkShader shader; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1902 | uint32_t linkConstBufferCount; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1903 | const VkLinkConstBuffer* pLinkConstBufferInfo; |
| 1904 | const VkSpecializationInfo* pSpecializationInfo; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1905 | } VkPipelineShader; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1906 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1907 | typedef struct VkComputePipelineCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1908 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1909 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1910 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1911 | VkPipelineShader cs; |
| 1912 | VkFlags flags; // VkPipelineCreateFlags |
| 1913 | VkDescriptorSetLayoutChain setLayoutChain; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1914 | uint32_t localSizeX; |
| 1915 | uint32_t localSizeY; |
| 1916 | uint32_t localSizeZ; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1917 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1918 | } VkComputePipelineCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1919 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1920 | typedef struct VkVertexInputBindingDescription_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1921 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1922 | uint32_t binding; // Vertex buffer binding id |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1923 | uint32_t strideInBytes; // Distance between vertices in bytes (0 = no advancement) |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1924 | |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1925 | VkVertexInputStepRate stepRate; // Rate at which binding is incremented |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1926 | } VkVertexInputBindingDescription; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1927 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1928 | typedef struct VkVertexInputAttributeDescription_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1929 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1930 | uint32_t location; // location of the shader vertex attrib |
| 1931 | uint32_t binding; // Vertex buffer binding id |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1932 | |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1933 | VkFormat format; // format of source data |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1934 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1935 | uint32_t offsetInBytes; // Offset of first element in bytes from base of vertex |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1936 | } VkVertexInputAttributeDescription; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1937 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1938 | typedef struct VkPipelineVertexInputCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1939 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1940 | VkStructureType sType; // Should be VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1941 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1942 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1943 | uint32_t bindingCount; // number of bindings |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1944 | const VkVertexInputBindingDescription* pVertexBindingDescriptions; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1945 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1946 | uint32_t attributeCount; // number of attributes |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1947 | const VkVertexInputAttributeDescription* pVertexAttributeDescriptions; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1948 | } VkPipelineVertexInputCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1949 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1950 | typedef struct VkPipelineIaStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1951 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1952 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_IA_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1953 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1954 | VkPrimitiveTopology topology; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1955 | bool32_t disableVertexReuse; // optional |
| 1956 | bool32_t primitiveRestartEnable; |
| 1957 | uint32_t primitiveRestartIndex; // optional (GL45) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1958 | } VkPipelineIaStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1959 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1960 | typedef struct VkPipelineTessStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1961 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1962 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_TESS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1963 | const void* pNext; // Pointer to next structure |
| 1964 | uint32_t patchControlPoints; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1965 | } VkPipelineTessStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1966 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1967 | typedef struct VkPipelineVpStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1968 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1969 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_VP_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1970 | const void* pNext; // Pointer to next structure |
| 1971 | uint32_t numViewports; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1972 | VkCoordinateOrigin clipOrigin; // optional (GL45) |
| 1973 | VkDepthMode depthMode; // optional (GL45) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1974 | } VkPipelineVpStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1975 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1976 | typedef struct VkPipelineRsStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1977 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1978 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_RS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1979 | const void* pNext; // Pointer to next structure |
| 1980 | bool32_t depthClipEnable; |
| 1981 | bool32_t rasterizerDiscardEnable; |
| 1982 | bool32_t programPointSize; // optional (GL45) |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1983 | VkCoordinateOrigin pointOrigin; // optional (GL45) |
| 1984 | VkProvokingVertexConvention provokingVertex; // optional (GL45) |
| 1985 | VkFillMode fillMode; // optional (GL45) |
| 1986 | VkCullMode cullMode; |
| 1987 | VkFaceOrientation frontFace; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1988 | } VkPipelineRsStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1989 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1990 | typedef struct VkPipelineMsStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1991 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1992 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_MS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1993 | const void* pNext; // Pointer to next structure |
| 1994 | uint32_t samples; |
| 1995 | bool32_t multisampleEnable; // optional (GL45) |
| 1996 | bool32_t sampleShadingEnable; // optional (GL45) |
| 1997 | float minSampleShading; // optional (GL45) |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1998 | VkSampleMask sampleMask; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1999 | } VkPipelineMsStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2000 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2001 | typedef struct VkPipelineCbAttachmentState_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2002 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2003 | bool32_t blendEnable; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2004 | VkFormat format; |
| 2005 | VkBlend srcBlendColor; |
| 2006 | VkBlend destBlendColor; |
| 2007 | VkBlendFunc blendFuncColor; |
| 2008 | VkBlend srcBlendAlpha; |
| 2009 | VkBlend destBlendAlpha; |
| 2010 | VkBlendFunc blendFuncAlpha; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2011 | uint8_t channelWriteMask; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2012 | } VkPipelineCbAttachmentState; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2013 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2014 | typedef struct VkPipelineCbStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2015 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2016 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_CB_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2017 | const void* pNext; // Pointer to next structure |
| 2018 | bool32_t alphaToCoverageEnable; |
| 2019 | bool32_t logicOpEnable; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2020 | VkLogicOp logicOp; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2021 | uint32_t attachmentCount; // # of pAttachments |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2022 | const VkPipelineCbAttachmentState* pAttachments; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2023 | } VkPipelineCbStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2024 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2025 | typedef struct VkStencilOpState_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2026 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2027 | VkStencilOp stencilFailOp; |
| 2028 | VkStencilOp stencilPassOp; |
| 2029 | VkStencilOp stencilDepthFailOp; |
| 2030 | VkCompareFunc stencilFunc; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2031 | } VkStencilOpState; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2032 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2033 | typedef struct VkPipelineDsStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2034 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2035 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_DS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2036 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2037 | VkFormat format; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2038 | bool32_t depthTestEnable; |
| 2039 | bool32_t depthWriteEnable; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2040 | VkCompareFunc depthFunc; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2041 | bool32_t depthBoundsEnable; // optional (depth_bounds_test) |
| 2042 | bool32_t stencilTestEnable; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2043 | VkStencilOpState front; |
| 2044 | VkStencilOpState back; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2045 | } VkPipelineDsStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2046 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2047 | typedef struct VkPipelineShaderStageCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2048 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2049 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2050 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2051 | VkPipelineShader shader; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2052 | } VkPipelineShaderStageCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2053 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2054 | typedef struct VkGraphicsPipelineCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2055 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2056 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2057 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2058 | VkFlags flags; // VkPipelineCreateFlags |
| 2059 | VkDescriptorSetLayoutChain pSetLayoutChain; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2060 | } VkGraphicsPipelineCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2061 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2062 | typedef struct VkSamplerCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2063 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2064 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2065 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2066 | VkTexFilter magFilter; // Filter mode for magnification |
| 2067 | VkTexFilter minFilter; // Filter mode for minifiation |
| 2068 | VkTexMipmapMode mipMode; // Mipmap selection mode |
| 2069 | VkTexAddress addressU; |
| 2070 | VkTexAddress addressV; |
| 2071 | VkTexAddress addressW; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2072 | float mipLodBias; |
| 2073 | uint32_t maxAnisotropy; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2074 | VkCompareFunc compareFunc; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2075 | float minLod; |
| 2076 | float maxLod; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2077 | VkBorderColorType borderColorType; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2078 | } VkSamplerCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2079 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2080 | typedef struct VkDynamicVpStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2081 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2082 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DYNAMIC_VP_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2083 | const void* pNext; // Pointer to next structure |
| 2084 | uint32_t viewportAndScissorCount; // number of entries in pViewports and pScissors |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2085 | const VkViewport* pViewports; |
| 2086 | const VkRect* pScissors; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2087 | } VkDynamicVpStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2088 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2089 | typedef struct VkDynamicRsStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2090 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2091 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DYNAMIC_RS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2092 | const void* pNext; // Pointer to next structure |
| 2093 | float depthBias; |
| 2094 | float depthBiasClamp; |
| 2095 | float slopeScaledDepthBias; |
| 2096 | float pointSize; // optional (GL45) - Size of points |
| 2097 | float pointFadeThreshold; // optional (GL45) - Size of point fade threshold |
| 2098 | float lineWidth; // optional (GL45) - Width of lines |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2099 | } VkDynamicRsStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2100 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2101 | typedef struct VkDynamicCbStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2102 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2103 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DYNAMIC_CB_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2104 | const void* pNext; // Pointer to next structure |
| 2105 | float blendConst[4]; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2106 | } VkDynamicCbStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2107 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2108 | typedef struct VkDynamicDsStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2109 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2110 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DYNAMIC_DS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2111 | const void* pNext; // Pointer to next structure |
| 2112 | float minDepth; // optional (depth_bounds_test) |
| 2113 | float maxDepth; // optional (depth_bounds_test) |
| 2114 | uint32_t stencilReadMask; |
| 2115 | uint32_t stencilWriteMask; |
| 2116 | uint32_t stencilFrontRef; |
| 2117 | uint32_t stencilBackRef; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2118 | } VkDynamicDsStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2119 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2120 | typedef struct VkCmdBufferCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2121 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2122 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_CMD_BUFFER_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2123 | const void* pNext; // Pointer to next structure |
| 2124 | uint32_t queueNodeIndex; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2125 | VkFlags flags; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2126 | } VkCmdBufferCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2127 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2128 | typedef struct VkCmdBufferBeginInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2129 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2130 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_CMD_BUFFER_BEGIN_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2131 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2132 | |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2133 | VkFlags flags; // VkCmdBufferBuildFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2134 | } VkCmdBufferBeginInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2135 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2136 | typedef struct VkRenderPassBegin_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2137 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2138 | VkRenderPass renderPass; |
| 2139 | VkFramebuffer framebuffer; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2140 | } VkRenderPassBegin; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2141 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2142 | typedef struct VkCmdBufferGraphicsBeginInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2143 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2144 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_CMD_BUFFER_GRAPHICS_BEGIN_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2145 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2146 | |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2147 | VkRenderPassBegin renderPassContinue; // Only needed when a render pass is split across two command buffers |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2148 | } VkCmdBufferGraphicsBeginInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2149 | |
| 2150 | // Union allowing specification of floating point or raw color data. Actual value selected is based on image being cleared. |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2151 | typedef union VkClearColorValue_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2152 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2153 | float floatColor[4]; |
| 2154 | uint32_t rawColor[4]; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2155 | } VkClearColorValue; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2156 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2157 | typedef struct VkClearColor_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2158 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2159 | VkClearColorValue color; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2160 | bool32_t useRawValue; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2161 | } VkClearColor; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2162 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2163 | typedef struct VkRenderPassCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2164 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2165 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2166 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2167 | |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2168 | VkRect renderArea; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2169 | uint32_t colorAttachmentCount; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2170 | VkExtent2D extent; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2171 | uint32_t sampleCount; |
| 2172 | uint32_t layers; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2173 | const VkFormat* pColorFormats; |
| 2174 | const VkImageLayout* pColorLayouts; |
| 2175 | const VkAttachmentLoadOp* pColorLoadOps; |
| 2176 | const VkAttachmentStoreOp* pColorStoreOps; |
| 2177 | const VkClearColor* pColorLoadClearValues; |
| 2178 | VkFormat depthStencilFormat; |
| 2179 | VkImageLayout depthStencilLayout; |
| 2180 | VkAttachmentLoadOp depthLoadOp; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2181 | float depthLoadClearValue; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2182 | VkAttachmentStoreOp depthStoreOp; |
| 2183 | VkAttachmentLoadOp stencilLoadOp; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2184 | uint32_t stencilLoadClearValue; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2185 | VkAttachmentStoreOp stencilStoreOp; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2186 | } VkRenderPassCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2187 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2188 | typedef struct VkEventCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2189 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2190 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_EVENT_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2191 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2192 | VkFlags flags; // Reserved |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2193 | } VkEventCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2194 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2195 | typedef struct VkFenceCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2196 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2197 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_FENCE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2198 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2199 | VkFenceCreateFlags flags; // VkFenceCreateFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2200 | } VkFenceCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2201 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2202 | typedef struct VkSemaphoreCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2203 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2204 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2205 | const void* pNext; // Pointer to next structure |
| 2206 | uint32_t initialCount; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2207 | VkFlags flags; // VkSemaphoreCreateFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2208 | } VkSemaphoreCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2209 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2210 | typedef struct VkSemaphoreOpenInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2211 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2212 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_SEMAPHORE_OPEN_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2213 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2214 | VkSemaphore sharedSemaphore; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2215 | } VkSemaphoreOpenInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2216 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2217 | typedef struct VkPipelineStatisticsData_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2218 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2219 | uint64_t fsInvocations; // Fragment shader invocations |
| 2220 | uint64_t cPrimitives; // Clipper primitives |
| 2221 | uint64_t cInvocations; // Clipper invocations |
| 2222 | uint64_t vsInvocations; // Vertex shader invocations |
| 2223 | uint64_t gsInvocations; // Geometry shader invocations |
| 2224 | uint64_t gsPrimitives; // Geometry shader primitives |
| 2225 | uint64_t iaPrimitives; // Input primitives |
| 2226 | uint64_t iaVertices; // Input vertices |
| 2227 | uint64_t tcsInvocations; // Tessellation control shader invocations |
| 2228 | uint64_t tesInvocations; // Tessellation evaluation shader invocations |
| 2229 | uint64_t csInvocations; // Compute shader invocations |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2230 | } VkPipelineStatisticsData; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2231 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2232 | typedef struct VkQueryPoolCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2233 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2234 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2235 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2236 | VkQueryType queryType; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2237 | uint32_t slots; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2238 | } VkQueryPoolCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2239 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2240 | typedef struct VkFramebufferCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2241 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2242 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2243 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2244 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2245 | uint32_t colorAttachmentCount; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2246 | const VkColorAttachmentBindInfo* pColorAttachments; |
| 2247 | const VkDepthStencilBindInfo* pDepthStencilAttachment; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2248 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2249 | uint32_t sampleCount; |
| 2250 | uint32_t width; |
| 2251 | uint32_t height; |
| 2252 | uint32_t layers; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2253 | } VkFramebufferCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2254 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2255 | typedef struct VkDrawIndirectCmd_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2256 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2257 | uint32_t vertexCount; |
| 2258 | uint32_t instanceCount; |
| 2259 | uint32_t firstVertex; |
| 2260 | uint32_t firstInstance; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2261 | } VkDrawIndirectCmd; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2262 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2263 | typedef struct VkDrawIndexedIndirectCmd_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2264 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2265 | uint32_t indexCount; |
| 2266 | uint32_t instanceCount; |
| 2267 | uint32_t firstIndex; |
| 2268 | int32_t vertexOffset; |
| 2269 | uint32_t firstInstance; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2270 | } VkDrawIndexedIndirectCmd; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2271 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2272 | typedef struct VkDispatchIndirectCmd_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2273 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2274 | uint32_t x; |
| 2275 | uint32_t y; |
| 2276 | uint32_t z; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2277 | } VkDispatchIndirectCmd; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2278 | |
| 2279 | // ------------------------------------------------------------------------------------------------ |
| 2280 | // API functions |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2281 | typedef VkResult (VKAPI *PFN_vkCreateInstance)(const VkInstanceCreateInfo* pCreateInfo, VkInstance* pInstance); |
| 2282 | typedef VkResult (VKAPI *PFN_vkDestroyInstance)(VkInstance instance); |
| 2283 | typedef VkResult (VKAPI *PFN_vkEnumerateGpus)(VkInstance instance, uint32_t maxGpus, uint32_t* pGpuCount, VkPhysicalGpu* pGpus); |
| 2284 | typedef VkResult (VKAPI *PFN_vkGetGpuInfo)(VkPhysicalGpu gpu, VkPhysicalGpuInfoType infoType, size_t* pDataSize, void* pData); |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2285 | typedef void * (VKAPI *PFN_vkGetProcAddr)(VkPhysicalGpu gpu, const char * pName); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2286 | typedef VkResult (VKAPI *PFN_vkCreateDevice)(VkPhysicalGpu gpu, const VkDeviceCreateInfo* pCreateInfo, VkDevice* pDevice); |
| 2287 | typedef VkResult (VKAPI *PFN_vkDestroyDevice)(VkDevice device); |
Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 2288 | typedef VkResult (VKAPI *PFN_vkGetGlobalExtensionInfo)(VkExtensionInfoType infoType, uint32_t extensionIndex, size_t* pDataSize, void* pData); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2289 | typedef VkResult (VKAPI *PFN_vkGetExtensionSupport)(VkPhysicalGpu gpu, const char* pExtName); |
| 2290 | typedef VkResult (VKAPI *PFN_vkEnumerateLayers)(VkPhysicalGpu gpu, size_t maxLayerCount, size_t maxStringSize, size_t* pOutLayerCount, char* const* pOutLayers, void* pReserved); |
| 2291 | typedef VkResult (VKAPI *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueNodeIndex, uint32_t queueIndex, VkQueue* pQueue); |
| 2292 | typedef VkResult (VKAPI *PFN_vkQueueSubmit)(VkQueue queue, uint32_t cmdBufferCount, const VkCmdBuffer* pCmdBuffers, VkFence fence); |
| 2293 | typedef VkResult (VKAPI *PFN_vkQueueAddMemReference)(VkQueue queue, VkGpuMemory mem); |
| 2294 | typedef VkResult (VKAPI *PFN_vkQueueRemoveMemReference)(VkQueue queue, VkGpuMemory mem); |
| 2295 | typedef VkResult (VKAPI *PFN_vkQueueWaitIdle)(VkQueue queue); |
| 2296 | typedef VkResult (VKAPI *PFN_vkDeviceWaitIdle)(VkDevice device); |
| 2297 | typedef VkResult (VKAPI *PFN_vkAllocMemory)(VkDevice device, const VkMemoryAllocInfo* pAllocInfo, VkGpuMemory* pMem); |
| 2298 | typedef VkResult (VKAPI *PFN_vkFreeMemory)(VkGpuMemory mem); |
| 2299 | typedef VkResult (VKAPI *PFN_vkSetMemoryPriority)(VkGpuMemory mem, VkMemoryPriority priority); |
| 2300 | typedef VkResult (VKAPI *PFN_vkMapMemory)(VkGpuMemory mem, VkFlags flags, void** ppData); |
| 2301 | typedef VkResult (VKAPI *PFN_vkUnmapMemory)(VkGpuMemory mem); |
| 2302 | typedef VkResult (VKAPI *PFN_vkPinSystemMemory)(VkDevice device, const void* pSysMem, size_t memSize, VkGpuMemory* pMem); |
| 2303 | typedef VkResult (VKAPI *PFN_vkGetMultiGpuCompatibility)(VkPhysicalGpu gpu0, VkPhysicalGpu gpu1, VkGpuCompatibilityInfo* pInfo); |
| 2304 | typedef VkResult (VKAPI *PFN_vkOpenSharedMemory)(VkDevice device, const VkMemoryOpenInfo* pOpenInfo, VkGpuMemory* pMem); |
| 2305 | typedef VkResult (VKAPI *PFN_vkOpenSharedSemaphore)(VkDevice device, const VkSemaphoreOpenInfo* pOpenInfo, VkSemaphore* pSemaphore); |
| 2306 | typedef VkResult (VKAPI *PFN_vkOpenPeerMemory)(VkDevice device, const VkPeerMemoryOpenInfo* pOpenInfo, VkGpuMemory* pMem); |
| 2307 | typedef VkResult (VKAPI *PFN_vkOpenPeerImage)(VkDevice device, const VkPeerImageOpenInfo* pOpenInfo, VkImage* pImage, VkGpuMemory* pMem); |
| 2308 | typedef VkResult (VKAPI *PFN_vkDestroyObject)(VkObject object); |
| 2309 | typedef VkResult (VKAPI *PFN_vkGetObjectInfo)(VkBaseObject object, VkObjectInfoType infoType, size_t* pDataSize, void* pData); |
| 2310 | typedef VkResult (VKAPI *PFN_vkBindObjectMemory)(VkObject object, uint32_t allocationIdx, VkGpuMemory mem, VkGpuSize offset); |
| 2311 | typedef VkResult (VKAPI *PFN_vkBindObjectMemoryRange)(VkObject object, uint32_t allocationIdx, VkGpuSize rangeOffset,VkGpuSize rangeSize, VkGpuMemory mem, VkGpuSize memOffset); |
| 2312 | typedef VkResult (VKAPI *PFN_vkBindImageMemoryRange)(VkImage image, uint32_t allocationIdx, const VkImageMemoryBindInfo* bindInfo, VkGpuMemory mem, VkGpuSize memOffset); |
| 2313 | typedef VkResult (VKAPI *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, VkFence* pFence); |
| 2314 | typedef VkResult (VKAPI *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, VkFence* pFences); |
| 2315 | typedef VkResult (VKAPI *PFN_vkGetFenceStatus)(VkFence fence); |
| 2316 | typedef VkResult (VKAPI *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, bool32_t waitAll, uint64_t timeout); |
| 2317 | typedef VkResult (VKAPI *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, VkSemaphore* pSemaphore); |
| 2318 | typedef VkResult (VKAPI *PFN_vkQueueSignalSemaphore)(VkQueue queue, VkSemaphore semaphore); |
| 2319 | typedef VkResult (VKAPI *PFN_vkQueueWaitSemaphore)(VkQueue queue, VkSemaphore semaphore); |
| 2320 | typedef VkResult (VKAPI *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo* pCreateInfo, VkEvent* pEvent); |
| 2321 | typedef VkResult (VKAPI *PFN_vkGetEventStatus)(VkEvent event); |
| 2322 | typedef VkResult (VKAPI *PFN_vkSetEvent)(VkEvent event); |
| 2323 | typedef VkResult (VKAPI *PFN_vkResetEvent)(VkEvent event); |
| 2324 | typedef VkResult (VKAPI *PFN_vkCreateQueryPool)(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, VkQueryPool* pQueryPool); |
| 2325 | typedef VkResult (VKAPI *PFN_vkGetQueryPoolResults)(VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, size_t* pDataSize, void* pData); |
| 2326 | typedef VkResult (VKAPI *PFN_vkGetFormatInfo)(VkDevice device, VkFormat format, VkFormatInfoType infoType, size_t* pDataSize, void* pData); |
| 2327 | typedef VkResult (VKAPI *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkBuffer* pBuffer); |
| 2328 | typedef VkResult (VKAPI *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, VkBufferView* pView); |
| 2329 | typedef VkResult (VKAPI *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo* pCreateInfo, VkImage* pImage); |
| 2330 | typedef VkResult (VKAPI *PFN_vkGetImageSubresourceInfo)(VkImage image, const VkImageSubresource* pSubresource, VkSubresourceInfoType infoType, size_t* pDataSize, void* pData); |
| 2331 | typedef VkResult (VKAPI *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, VkImageView* pView); |
| 2332 | typedef VkResult (VKAPI *PFN_vkCreateColorAttachmentView)(VkDevice device, const VkColorAttachmentViewCreateInfo* pCreateInfo, VkColorAttachmentView* pView); |
| 2333 | typedef VkResult (VKAPI *PFN_vkCreateDepthStencilView)(VkDevice device, const VkDepthStencilViewCreateInfo* pCreateInfo, VkDepthStencilView* pView); |
| 2334 | typedef VkResult (VKAPI *PFN_vkCreateShader)(VkDevice device, const VkShaderCreateInfo* pCreateInfo, VkShader* pShader); |
| 2335 | typedef VkResult (VKAPI *PFN_vkCreateGraphicsPipeline)(VkDevice device, const VkGraphicsPipelineCreateInfo* pCreateInfo, VkPipeline* pPipeline); |
| 2336 | typedef VkResult (VKAPI *PFN_vkCreateGraphicsPipelineDerivative)(VkDevice device, const VkGraphicsPipelineCreateInfo* pCreateInfo, VkPipeline basePipeline, VkPipeline* pPipeline); |
| 2337 | typedef VkResult (VKAPI *PFN_vkCreateComputePipeline)(VkDevice device, const VkComputePipelineCreateInfo* pCreateInfo, VkPipeline* pPipeline); |
| 2338 | typedef VkResult (VKAPI *PFN_vkStorePipeline)(VkPipeline pipeline, size_t* pDataSize, void* pData); |
| 2339 | typedef VkResult (VKAPI *PFN_vkLoadPipeline)(VkDevice device, size_t dataSize, const void* pData, VkPipeline* pPipeline); |
| 2340 | typedef VkResult (VKAPI *PFN_vkLoadPipelineDerivative)(VkDevice device, size_t dataSize, const void* pData, VkPipeline basePipeline, VkPipeline* pPipeline); |
| 2341 | typedef VkResult (VKAPI *PFN_vkCreateSampler)(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, VkSampler* pSampler); |
| 2342 | typedef VkResult (VKAPI *PFN_vkCreateDescriptorSetLayout)(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, VkDescriptorSetLayout* pSetLayout); |
| 2343 | typedef VkResult (VKAPI *PFN_vkCreateDescriptorSetLayoutChain)(VkDevice device, uint32_t setLayoutArrayCount, const VkDescriptorSetLayout* pSetLayoutArray, VkDescriptorSetLayoutChain* pLayoutChain); |
| 2344 | typedef VkResult (VKAPI *PFN_vkBeginDescriptorPoolUpdate)(VkDevice device, VkDescriptorUpdateMode updateMode); |
| 2345 | typedef VkResult (VKAPI *PFN_vkEndDescriptorPoolUpdate)(VkDevice device, VkCmdBuffer cmd); |
| 2346 | typedef VkResult (VKAPI *PFN_vkCreateDescriptorPool)(VkDevice device, VkDescriptorPoolUsage poolUsage, uint32_t maxSets, const VkDescriptorPoolCreateInfo* pCreateInfo, VkDescriptorPool* pDescriptorPool); |
| 2347 | typedef VkResult (VKAPI *PFN_vkResetDescriptorPool)(VkDescriptorPool descriptorPool); |
| 2348 | typedef VkResult (VKAPI *PFN_vkAllocDescriptorSets)(VkDescriptorPool descriptorPool, VkDescriptorSetUsage setUsage, uint32_t count, const VkDescriptorSetLayout* pSetLayouts, VkDescriptorSet* pDescriptorSets, uint32_t* pCount); |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2349 | typedef void (VKAPI *PFN_vkClearDescriptorSets)(VkDescriptorPool descriptorPool, uint32_t count, const VkDescriptorSet* pDescriptorSets); |
| 2350 | typedef void (VKAPI *PFN_vkUpdateDescriptors)(VkDescriptorSet descriptorSet, uint32_t updateCount, const void** pUpdateArray); |
Courtney Goeltzenleuchter | 502744a | 2015-04-10 16:24:50 -0600 | [diff] [blame] | 2351 | typedef VkResult (VKAPI *PFN_vkCreateDynamicViewportState)(VkDevice device, const VkDynamicVpStateCreateInfo* pCreateInfo, VkDynamicVpState* pState); |
| 2352 | typedef VkResult (VKAPI *PFN_vkCreateDynamicRasterState)(VkDevice device, const VkDynamicRsStateCreateInfo* pCreateInfo, VkDynamicRsState* pState); |
| 2353 | typedef VkResult (VKAPI *PFN_vkCreateDynamicColorBlendState)(VkDevice device, const VkDynamicCbStateCreateInfo* pCreateInfo, VkDynamicCbState* pState); |
| 2354 | typedef VkResult (VKAPI *PFN_vkCreateDynamicDepthStencilState)(VkDevice device, const VkDynamicDsStateCreateInfo* pCreateInfo, VkDynamicDsState* pState); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2355 | typedef VkResult (VKAPI *PFN_vkCreateCommandBuffer)(VkDevice device, const VkCmdBufferCreateInfo* pCreateInfo, VkCmdBuffer* pCmdBuffer); |
| 2356 | typedef VkResult (VKAPI *PFN_vkBeginCommandBuffer)(VkCmdBuffer cmdBuffer, const VkCmdBufferBeginInfo* pBeginInfo); |
| 2357 | typedef VkResult (VKAPI *PFN_vkEndCommandBuffer)(VkCmdBuffer cmdBuffer); |
| 2358 | typedef VkResult (VKAPI *PFN_vkResetCommandBuffer)(VkCmdBuffer cmdBuffer); |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2359 | typedef void (VKAPI *PFN_vkCmdBindPipeline)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline); |
| 2360 | typedef void (VKAPI *PFN_vkCmdBindDynamicStateObject)(VkCmdBuffer cmdBuffer, VkStateBindPoint stateBindPoint, VkDynamicStateObject state); |
| 2361 | typedef void (VKAPI *PFN_vkCmdBindDescriptorSets)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkDescriptorSetLayoutChain layoutChain, uint32_t layoutChainSlot, uint32_t count, const VkDescriptorSet* pDescriptorSets, const uint32_t* pUserData); |
| 2362 | typedef void (VKAPI *PFN_vkCmdBindIndexBuffer)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkGpuSize offset, VkIndexType indexType); |
| 2363 | typedef void (VKAPI *PFN_vkCmdBindVertexBuffer)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkGpuSize offset, uint32_t binding); |
| 2364 | typedef void (VKAPI *PFN_vkCmdDraw)(VkCmdBuffer cmdBuffer, uint32_t firstVertex, uint32_t vertexCount, uint32_t firstInstance, uint32_t instanceCount); |
| 2365 | typedef void (VKAPI *PFN_vkCmdDrawIndexed)(VkCmdBuffer cmdBuffer, uint32_t firstIndex, uint32_t indexCount, int32_t vertexOffset, uint32_t firstInstance, uint32_t instanceCount); |
| 2366 | typedef void (VKAPI *PFN_vkCmdDrawIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkGpuSize offset, uint32_t count, uint32_t stride); |
| 2367 | typedef void (VKAPI *PFN_vkCmdDrawIndexedIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkGpuSize offset, uint32_t count, uint32_t stride); |
| 2368 | typedef void (VKAPI *PFN_vkCmdDispatch)(VkCmdBuffer cmdBuffer, uint32_t x, uint32_t y, uint32_t z); |
| 2369 | typedef void (VKAPI *PFN_vkCmdDispatchIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkGpuSize offset); |
| 2370 | typedef void (VKAPI *PFN_vkCmdCopyBuffer)(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkBuffer destBuffer, uint32_t regionCount, const VkBufferCopy* pRegions); |
| 2371 | typedef void (VKAPI *PFN_vkCmdCopyImage)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageCopy* pRegions); |
| 2372 | typedef void (VKAPI *PFN_vkCmdBlitImage)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageBlit* pRegions); |
| 2373 | typedef void (VKAPI *PFN_vkCmdCopyBufferToImage)(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions); |
| 2374 | typedef void (VKAPI *PFN_vkCmdCopyImageToBuffer)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer destBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions); |
| 2375 | typedef void (VKAPI *PFN_vkCmdCloneImageData)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout); |
| 2376 | typedef void (VKAPI *PFN_vkCmdUpdateBuffer)(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkGpuSize destOffset, VkGpuSize dataSize, const uint32_t* pData); |
| 2377 | typedef void (VKAPI *PFN_vkCmdFillBuffer)(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkGpuSize destOffset, VkGpuSize fillSize, uint32_t data); |
| 2378 | typedef void (VKAPI *PFN_vkCmdClearColorImage)(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, VkClearColor color, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); |
| 2379 | typedef void (VKAPI *PFN_vkCmdClearDepthStencil)(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, float depth, uint32_t stencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); |
| 2380 | typedef void (VKAPI *PFN_vkCmdResolveImage)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t rectCount, const VkImageResolve* pRects); |
| 2381 | typedef void (VKAPI *PFN_vkCmdSetEvent)(VkCmdBuffer cmdBuffer, VkEvent event, VkPipeEvent pipeEvent); |
| 2382 | typedef void (VKAPI *PFN_vkCmdResetEvent)(VkCmdBuffer cmdBuffer, VkEvent event, VkPipeEvent pipeEvent); |
| 2383 | typedef void (VKAPI *PFN_vkCmdWaitEvents)(VkCmdBuffer cmdBuffer, const VkEventWaitInfo* pWaitInfo); |
| 2384 | typedef void (VKAPI *PFN_vkCmdPipelineBarrier)(VkCmdBuffer cmdBuffer, const VkPipelineBarrier* pBarrier); |
| 2385 | typedef void (VKAPI *PFN_vkCmdBeginQuery)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot, VkFlags flags); |
| 2386 | typedef void (VKAPI *PFN_vkCmdEndQuery)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot); |
| 2387 | typedef void (VKAPI *PFN_vkCmdResetQueryPool)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount); |
| 2388 | typedef void (VKAPI *PFN_vkCmdWriteTimestamp)(VkCmdBuffer cmdBuffer, VkTimestampType timestampType, VkBuffer destBuffer, VkGpuSize destOffset); |
| 2389 | typedef void (VKAPI *PFN_vkCmdInitAtomicCounters)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t startCounter, uint32_t counterCount, const uint32_t* pData); |
| 2390 | typedef void (VKAPI *PFN_vkCmdLoadAtomicCounters)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t startCounter, uint32_t counterCount, VkBuffer srcBuffer, VkGpuSize srcOffset); |
| 2391 | typedef void (VKAPI *PFN_vkCmdSaveAtomicCounters)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t startCounter, uint32_t counterCount, VkBuffer destBuffer, VkGpuSize destOffset); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2392 | typedef VkResult (VKAPI *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, VkFramebuffer* pFramebuffer); |
| 2393 | typedef VkResult (VKAPI *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, VkRenderPass* pRenderPass); |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2394 | typedef void (VKAPI *PFN_vkCmdBeginRenderPass)(VkCmdBuffer cmdBuffer, const VkRenderPassBegin* pRenderPassBegin); |
| 2395 | typedef void (VKAPI *PFN_vkCmdEndRenderPass)(VkCmdBuffer cmdBuffer, VkRenderPass renderPass); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2396 | |
| 2397 | #ifdef VK_PROTOTYPES |
| 2398 | |
| 2399 | // GPU initialization |
| 2400 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2401 | VkResult VKAPI vkCreateInstance( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2402 | const VkInstanceCreateInfo* pCreateInfo, |
| 2403 | VkInstance* pInstance); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2404 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2405 | VkResult VKAPI vkDestroyInstance( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2406 | VkInstance instance); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2407 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2408 | VkResult VKAPI vkEnumerateGpus( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2409 | VkInstance instance, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2410 | uint32_t maxGpus, |
| 2411 | uint32_t* pGpuCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2412 | VkPhysicalGpu* pGpus); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2413 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2414 | VkResult VKAPI vkGetGpuInfo( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2415 | VkPhysicalGpu gpu, |
| 2416 | VkPhysicalGpuInfoType infoType, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2417 | size_t* pDataSize, |
| 2418 | void* pData); |
| 2419 | |
| 2420 | void * VKAPI vkGetProcAddr( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2421 | VkPhysicalGpu gpu, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2422 | const char* pName); |
| 2423 | |
| 2424 | // Device functions |
| 2425 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2426 | VkResult VKAPI vkCreateDevice( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2427 | VkPhysicalGpu gpu, |
| 2428 | const VkDeviceCreateInfo* pCreateInfo, |
| 2429 | VkDevice* pDevice); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2430 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2431 | VkResult VKAPI vkDestroyDevice( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2432 | VkDevice device); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2433 | |
| 2434 | // Extension discovery functions |
Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 2435 | VkResult VKAPI vkGetGlobalExtensionInfo( |
| 2436 | VkExtensionInfoType infoType, |
| 2437 | uint32_t extensionIndex, |
| 2438 | size_t* pDataSize, |
| 2439 | void* pData); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2440 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2441 | VkResult VKAPI vkGetExtensionSupport( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2442 | VkPhysicalGpu gpu, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2443 | const char* pExtName); |
| 2444 | |
| 2445 | // Layer discovery functions |
| 2446 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2447 | VkResult VKAPI vkEnumerateLayers( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2448 | VkPhysicalGpu gpu, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2449 | size_t maxLayerCount, |
| 2450 | size_t maxStringSize, |
| 2451 | size_t* pOutLayerCount, |
| 2452 | char* const* pOutLayers, |
| 2453 | void* pReserved); |
| 2454 | |
| 2455 | // Queue functions |
| 2456 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2457 | VkResult VKAPI vkGetDeviceQueue( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2458 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2459 | uint32_t queueNodeIndex, |
| 2460 | uint32_t queueIndex, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2461 | VkQueue* pQueue); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2462 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2463 | VkResult VKAPI vkQueueSubmit( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2464 | VkQueue queue, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2465 | uint32_t cmdBufferCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2466 | const VkCmdBuffer* pCmdBuffers, |
| 2467 | VkFence fence); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2468 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2469 | VkResult VKAPI vkQueueAddMemReference( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2470 | VkQueue queue, |
| 2471 | VkGpuMemory mem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2472 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2473 | VkResult VKAPI vkQueueRemoveMemReference( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2474 | VkQueue queue, |
| 2475 | VkGpuMemory mem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2476 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2477 | VkResult VKAPI vkQueueWaitIdle( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2478 | VkQueue queue); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2479 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2480 | VkResult VKAPI vkDeviceWaitIdle( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2481 | VkDevice device); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2482 | |
| 2483 | // Memory functions |
| 2484 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2485 | VkResult VKAPI vkAllocMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2486 | VkDevice device, |
| 2487 | const VkMemoryAllocInfo* pAllocInfo, |
| 2488 | VkGpuMemory* pMem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2489 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2490 | VkResult VKAPI vkFreeMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2491 | VkGpuMemory mem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2492 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2493 | VkResult VKAPI vkSetMemoryPriority( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2494 | VkGpuMemory mem, |
| 2495 | VkMemoryPriority priority); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2496 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2497 | VkResult VKAPI vkMapMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2498 | VkGpuMemory mem, |
| 2499 | VkFlags flags, // Reserved |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2500 | void** ppData); |
| 2501 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2502 | VkResult VKAPI vkUnmapMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2503 | VkGpuMemory mem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2504 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2505 | VkResult VKAPI vkPinSystemMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2506 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2507 | const void* pSysMem, |
| 2508 | size_t memSize, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2509 | VkGpuMemory* pMem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2510 | |
| 2511 | // Multi-device functions |
| 2512 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2513 | VkResult VKAPI vkGetMultiGpuCompatibility( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2514 | VkPhysicalGpu gpu0, |
| 2515 | VkPhysicalGpu gpu1, |
| 2516 | VkGpuCompatibilityInfo* pInfo); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2517 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2518 | VkResult VKAPI vkOpenSharedMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2519 | VkDevice device, |
| 2520 | const VkMemoryOpenInfo* pOpenInfo, |
| 2521 | VkGpuMemory* pMem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2522 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2523 | VkResult VKAPI vkOpenSharedSemaphore( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2524 | VkDevice device, |
| 2525 | const VkSemaphoreOpenInfo* pOpenInfo, |
| 2526 | VkSemaphore* pSemaphore); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2527 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2528 | VkResult VKAPI vkOpenPeerMemory( |
| 2529 | VkDevice device, |
| 2530 | const VkPeerMemoryOpenInfo* pOpenInfo, |
| 2531 | VkGpuMemory* pMem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2532 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2533 | VkResult VKAPI vkOpenPeerImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2534 | VkDevice device, |
| 2535 | const VkPeerImageOpenInfo* pOpenInfo, |
| 2536 | VkImage* pImage, |
| 2537 | VkGpuMemory* pMem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2538 | |
| 2539 | // Generic API object functions |
| 2540 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2541 | VkResult VKAPI vkDestroyObject( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2542 | VkObject object); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2543 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2544 | VkResult VKAPI vkGetObjectInfo( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2545 | VkBaseObject object, |
| 2546 | VkObjectInfoType infoType, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2547 | size_t* pDataSize, |
| 2548 | void* pData); |
| 2549 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2550 | VkResult VKAPI vkBindObjectMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2551 | VkObject object, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2552 | uint32_t allocationIdx, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2553 | VkGpuMemory mem, |
| 2554 | VkGpuSize memOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2555 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2556 | VkResult VKAPI vkBindObjectMemoryRange( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2557 | VkObject object, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2558 | uint32_t allocationIdx, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2559 | VkGpuSize rangeOffset, |
| 2560 | VkGpuSize rangeSize, |
| 2561 | VkGpuMemory mem, |
| 2562 | VkGpuSize memOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2563 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2564 | VkResult VKAPI vkBindImageMemoryRange( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2565 | VkImage image, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2566 | uint32_t allocationIdx, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2567 | const VkImageMemoryBindInfo* bindInfo, |
| 2568 | VkGpuMemory mem, |
| 2569 | VkGpuSize memOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2570 | |
| 2571 | // Fence functions |
| 2572 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2573 | VkResult VKAPI vkCreateFence( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2574 | VkDevice device, |
| 2575 | const VkFenceCreateInfo* pCreateInfo, |
| 2576 | VkFence* pFence); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2577 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2578 | VkResult VKAPI vkResetFences( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2579 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2580 | uint32_t fenceCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2581 | VkFence* pFences); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2582 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2583 | VkResult VKAPI vkGetFenceStatus( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2584 | VkFence fence); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2585 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2586 | VkResult VKAPI vkWaitForFences( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2587 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2588 | uint32_t fenceCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2589 | const VkFence* pFences, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2590 | bool32_t waitAll, |
| 2591 | uint64_t timeout); // timeout in nanoseconds |
| 2592 | |
| 2593 | // Queue semaphore functions |
| 2594 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2595 | VkResult VKAPI vkCreateSemaphore( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2596 | VkDevice device, |
| 2597 | const VkSemaphoreCreateInfo* pCreateInfo, |
| 2598 | VkSemaphore* pSemaphore); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2599 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2600 | VkResult VKAPI vkQueueSignalSemaphore( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2601 | VkQueue queue, |
| 2602 | VkSemaphore semaphore); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2603 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2604 | VkResult VKAPI vkQueueWaitSemaphore( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2605 | VkQueue queue, |
| 2606 | VkSemaphore semaphore); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2607 | |
| 2608 | // Event functions |
| 2609 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2610 | VkResult VKAPI vkCreateEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2611 | VkDevice device, |
| 2612 | const VkEventCreateInfo* pCreateInfo, |
| 2613 | VkEvent* pEvent); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2614 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2615 | VkResult VKAPI vkGetEventStatus( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2616 | VkEvent event); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2617 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2618 | VkResult VKAPI vkSetEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2619 | VkEvent event); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2620 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2621 | VkResult VKAPI vkResetEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2622 | VkEvent event); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2623 | |
| 2624 | // Query functions |
| 2625 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2626 | VkResult VKAPI vkCreateQueryPool( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2627 | VkDevice device, |
| 2628 | const VkQueryPoolCreateInfo* pCreateInfo, |
| 2629 | VkQueryPool* pQueryPool); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2630 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2631 | VkResult VKAPI vkGetQueryPoolResults( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2632 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2633 | uint32_t startQuery, |
| 2634 | uint32_t queryCount, |
| 2635 | size_t* pDataSize, |
| 2636 | void* pData); |
| 2637 | |
| 2638 | // Format capabilities |
| 2639 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2640 | VkResult VKAPI vkGetFormatInfo( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2641 | VkDevice device, |
| 2642 | VkFormat format, |
| 2643 | VkFormatInfoType infoType, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2644 | size_t* pDataSize, |
| 2645 | void* pData); |
| 2646 | |
| 2647 | // Buffer functions |
| 2648 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2649 | VkResult VKAPI vkCreateBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2650 | VkDevice device, |
| 2651 | const VkBufferCreateInfo* pCreateInfo, |
| 2652 | VkBuffer* pBuffer); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2653 | |
| 2654 | // Buffer view functions |
| 2655 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2656 | VkResult VKAPI vkCreateBufferView( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2657 | VkDevice device, |
| 2658 | const VkBufferViewCreateInfo* pCreateInfo, |
| 2659 | VkBufferView* pView); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2660 | |
| 2661 | // Image functions |
| 2662 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2663 | VkResult VKAPI vkCreateImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2664 | VkDevice device, |
| 2665 | const VkImageCreateInfo* pCreateInfo, |
| 2666 | VkImage* pImage); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2667 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2668 | VkResult VKAPI vkGetImageSubresourceInfo( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2669 | VkImage image, |
| 2670 | const VkImageSubresource* pSubresource, |
| 2671 | VkSubresourceInfoType infoType, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2672 | size_t* pDataSize, |
| 2673 | void* pData); |
| 2674 | |
| 2675 | // Image view functions |
| 2676 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2677 | VkResult VKAPI vkCreateImageView( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2678 | VkDevice device, |
| 2679 | const VkImageViewCreateInfo* pCreateInfo, |
| 2680 | VkImageView* pView); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2681 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2682 | VkResult VKAPI vkCreateColorAttachmentView( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2683 | VkDevice device, |
| 2684 | const VkColorAttachmentViewCreateInfo* pCreateInfo, |
| 2685 | VkColorAttachmentView* pView); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2686 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2687 | VkResult VKAPI vkCreateDepthStencilView( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2688 | VkDevice device, |
| 2689 | const VkDepthStencilViewCreateInfo* pCreateInfo, |
| 2690 | VkDepthStencilView* pView); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2691 | |
| 2692 | // Shader functions |
| 2693 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2694 | VkResult VKAPI vkCreateShader( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2695 | VkDevice device, |
| 2696 | const VkShaderCreateInfo* pCreateInfo, |
| 2697 | VkShader* pShader); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2698 | |
| 2699 | // Pipeline functions |
| 2700 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2701 | VkResult VKAPI vkCreateGraphicsPipeline( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2702 | VkDevice device, |
| 2703 | const VkGraphicsPipelineCreateInfo* pCreateInfo, |
| 2704 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2705 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2706 | VkResult VKAPI vkCreateGraphicsPipelineDerivative( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2707 | VkDevice device, |
| 2708 | const VkGraphicsPipelineCreateInfo* pCreateInfo, |
| 2709 | VkPipeline basePipeline, |
| 2710 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2711 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2712 | VkResult VKAPI vkCreateComputePipeline( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2713 | VkDevice device, |
| 2714 | const VkComputePipelineCreateInfo* pCreateInfo, |
| 2715 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2716 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2717 | VkResult VKAPI vkStorePipeline( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2718 | VkPipeline pipeline, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2719 | size_t* pDataSize, |
| 2720 | void* pData); |
| 2721 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2722 | VkResult VKAPI vkLoadPipeline( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2723 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2724 | size_t dataSize, |
| 2725 | const void* pData, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2726 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2727 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2728 | VkResult VKAPI vkLoadPipelineDerivative( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2729 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2730 | size_t dataSize, |
| 2731 | const void* pData, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2732 | VkPipeline basePipeline, |
| 2733 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2734 | |
| 2735 | // Sampler functions |
| 2736 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2737 | VkResult VKAPI vkCreateSampler( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2738 | VkDevice device, |
| 2739 | const VkSamplerCreateInfo* pCreateInfo, |
| 2740 | VkSampler* pSampler); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2741 | |
| 2742 | // Descriptor set functions |
| 2743 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2744 | VkResult VKAPI vkCreateDescriptorSetLayout( |
| 2745 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2746 | const VkDescriptorSetLayoutCreateInfo* pCreateInfo, |
| 2747 | VkDescriptorSetLayout* pSetLayout); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2748 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2749 | VkResult VKAPI vkCreateDescriptorSetLayoutChain( |
| 2750 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2751 | uint32_t setLayoutArrayCount, |
| 2752 | const VkDescriptorSetLayout* pSetLayoutArray, |
| 2753 | VkDescriptorSetLayoutChain* pLayoutChain); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2754 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2755 | VkResult VKAPI vkBeginDescriptorPoolUpdate( |
| 2756 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2757 | VkDescriptorUpdateMode updateMode); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2758 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2759 | VkResult VKAPI vkEndDescriptorPoolUpdate( |
| 2760 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2761 | VkCmdBuffer cmd); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2762 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2763 | VkResult VKAPI vkCreateDescriptorPool( |
| 2764 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2765 | VkDescriptorPoolUsage poolUsage, |
| 2766 | uint32_t maxSets, |
| 2767 | const VkDescriptorPoolCreateInfo* pCreateInfo, |
| 2768 | VkDescriptorPool* pDescriptorPool); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2769 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2770 | VkResult VKAPI vkResetDescriptorPool( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2771 | VkDescriptorPool descriptorPool); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2772 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2773 | VkResult VKAPI vkAllocDescriptorSets( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2774 | VkDescriptorPool descriptorPool, |
| 2775 | VkDescriptorSetUsage setUsage, |
| 2776 | uint32_t count, |
| 2777 | const VkDescriptorSetLayout* pSetLayouts, |
| 2778 | VkDescriptorSet* pDescriptorSets, |
| 2779 | uint32_t* pCount); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2780 | |
| 2781 | void VKAPI vkClearDescriptorSets( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2782 | VkDescriptorPool descriptorPool, |
| 2783 | uint32_t count, |
| 2784 | const VkDescriptorSet* pDescriptorSets); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2785 | |
| 2786 | void VKAPI vkUpdateDescriptors( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2787 | VkDescriptorSet descriptorSet, |
| 2788 | uint32_t updateCount, |
| 2789 | const void** pUpdateArray); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2790 | |
| 2791 | // State object functions |
| 2792 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2793 | VkResult VKAPI vkCreateDynamicViewportState( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2794 | VkDevice device, |
| 2795 | const VkDynamicVpStateCreateInfo* pCreateInfo, |
| 2796 | VkDynamicVpState* pState); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2797 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2798 | VkResult VKAPI vkCreateDynamicRasterState( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2799 | VkDevice device, |
| 2800 | const VkDynamicRsStateCreateInfo* pCreateInfo, |
| 2801 | VkDynamicRsState* pState); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2802 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2803 | VkResult VKAPI vkCreateDynamicColorBlendState( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2804 | VkDevice device, |
| 2805 | const VkDynamicCbStateCreateInfo* pCreateInfo, |
| 2806 | VkDynamicCbState* pState); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2807 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2808 | VkResult VKAPI vkCreateDynamicDepthStencilState( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2809 | VkDevice device, |
| 2810 | const VkDynamicDsStateCreateInfo* pCreateInfo, |
| 2811 | VkDynamicDsState* pState); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2812 | |
| 2813 | // Command buffer functions |
| 2814 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2815 | VkResult VKAPI vkCreateCommandBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2816 | VkDevice device, |
| 2817 | const VkCmdBufferCreateInfo* pCreateInfo, |
| 2818 | VkCmdBuffer* pCmdBuffer); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2819 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2820 | VkResult VKAPI vkBeginCommandBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2821 | VkCmdBuffer cmdBuffer, |
| 2822 | const VkCmdBufferBeginInfo* pBeginInfo); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2823 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2824 | VkResult VKAPI vkEndCommandBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2825 | VkCmdBuffer cmdBuffer); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2826 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2827 | VkResult VKAPI vkResetCommandBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2828 | VkCmdBuffer cmdBuffer); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2829 | |
| 2830 | // Command buffer building functions |
| 2831 | |
| 2832 | void VKAPI vkCmdBindPipeline( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2833 | VkCmdBuffer cmdBuffer, |
| 2834 | VkPipelineBindPoint pipelineBindPoint, |
| 2835 | VkPipeline pipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2836 | |
| 2837 | void VKAPI vkCmdBindDynamicStateObject( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2838 | VkCmdBuffer cmdBuffer, |
| 2839 | VkStateBindPoint stateBindPoint, |
| 2840 | VkDynamicStateObject dynamicState); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2841 | |
| 2842 | void VKAPI vkCmdBindDescriptorSets( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2843 | VkCmdBuffer cmdBuffer, |
| 2844 | VkPipelineBindPoint pipelineBindPoint, |
| 2845 | VkDescriptorSetLayoutChain layoutChain, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2846 | uint32_t layoutChainSlot, |
| 2847 | uint32_t count, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2848 | const VkDescriptorSet* pDescriptorSets, |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 2849 | const uint32_t* pUserData); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2850 | |
| 2851 | void VKAPI vkCmdBindIndexBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2852 | VkCmdBuffer cmdBuffer, |
| 2853 | VkBuffer buffer, |
| 2854 | VkGpuSize offset, |
| 2855 | VkIndexType indexType); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2856 | |
| 2857 | void VKAPI vkCmdBindVertexBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2858 | VkCmdBuffer cmdBuffer, |
| 2859 | VkBuffer buffer, |
| 2860 | VkGpuSize offset, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2861 | uint32_t binding); |
| 2862 | |
| 2863 | void VKAPI vkCmdDraw( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2864 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2865 | uint32_t firstVertex, |
| 2866 | uint32_t vertexCount, |
| 2867 | uint32_t firstInstance, |
| 2868 | uint32_t instanceCount); |
| 2869 | |
| 2870 | void VKAPI vkCmdDrawIndexed( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2871 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2872 | uint32_t firstIndex, |
| 2873 | uint32_t indexCount, |
| 2874 | int32_t vertexOffset, |
| 2875 | uint32_t firstInstance, |
| 2876 | uint32_t instanceCount); |
| 2877 | |
| 2878 | void VKAPI vkCmdDrawIndirect( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2879 | VkCmdBuffer cmdBuffer, |
| 2880 | VkBuffer buffer, |
| 2881 | VkGpuSize offset, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2882 | uint32_t count, |
| 2883 | uint32_t stride); |
| 2884 | |
| 2885 | void VKAPI vkCmdDrawIndexedIndirect( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2886 | VkCmdBuffer cmdBuffer, |
| 2887 | VkBuffer buffer, |
| 2888 | VkGpuSize offset, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2889 | uint32_t count, |
| 2890 | uint32_t stride); |
| 2891 | |
| 2892 | void VKAPI vkCmdDispatch( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2893 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2894 | uint32_t x, |
| 2895 | uint32_t y, |
| 2896 | uint32_t z); |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2897 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2898 | void VKAPI vkCmdDispatchIndirect( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2899 | VkCmdBuffer cmdBuffer, |
| 2900 | VkBuffer buffer, |
| 2901 | VkGpuSize offset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2902 | |
| 2903 | void VKAPI vkCmdCopyBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2904 | VkCmdBuffer cmdBuffer, |
| 2905 | VkBuffer srcBuffer, |
| 2906 | VkBuffer destBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2907 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2908 | const VkBufferCopy* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2909 | |
| 2910 | void VKAPI vkCmdCopyImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2911 | VkCmdBuffer cmdBuffer, |
| 2912 | VkImage srcImage, |
| 2913 | VkImageLayout srcImageLayout, |
| 2914 | VkImage destImage, |
| 2915 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2916 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2917 | const VkImageCopy* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2918 | |
| 2919 | void VKAPI vkCmdBlitImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2920 | VkCmdBuffer cmdBuffer, |
| 2921 | VkImage srcImage, |
| 2922 | VkImageLayout srcImageLayout, |
| 2923 | VkImage destImage, |
| 2924 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2925 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2926 | const VkImageBlit* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2927 | |
| 2928 | void VKAPI vkCmdCopyBufferToImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2929 | VkCmdBuffer cmdBuffer, |
| 2930 | VkBuffer srcBuffer, |
| 2931 | VkImage destImage, |
| 2932 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2933 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2934 | const VkBufferImageCopy* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2935 | |
| 2936 | void VKAPI vkCmdCopyImageToBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2937 | VkCmdBuffer cmdBuffer, |
| 2938 | VkImage srcImage, |
| 2939 | VkImageLayout srcImageLayout, |
| 2940 | VkBuffer destBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2941 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2942 | const VkBufferImageCopy* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2943 | |
| 2944 | void VKAPI vkCmdCloneImageData( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2945 | VkCmdBuffer cmdBuffer, |
| 2946 | VkImage srcImage, |
| 2947 | VkImageLayout srcImageLayout, |
| 2948 | VkImage destImage, |
| 2949 | VkImageLayout destImageLayout); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2950 | |
| 2951 | void VKAPI vkCmdUpdateBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2952 | VkCmdBuffer cmdBuffer, |
| 2953 | VkBuffer destBuffer, |
| 2954 | VkGpuSize destOffset, |
| 2955 | VkGpuSize dataSize, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2956 | const uint32_t* pData); |
| 2957 | |
| 2958 | void VKAPI vkCmdFillBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2959 | VkCmdBuffer cmdBuffer, |
| 2960 | VkBuffer destBuffer, |
| 2961 | VkGpuSize destOffset, |
| 2962 | VkGpuSize fillSize, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2963 | uint32_t data); |
| 2964 | |
| 2965 | void VKAPI vkCmdClearColorImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2966 | VkCmdBuffer cmdBuffer, |
| 2967 | VkImage image, |
| 2968 | VkImageLayout imageLayout, |
| 2969 | VkClearColor color, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2970 | uint32_t rangeCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2971 | const VkImageSubresourceRange* pRanges); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2972 | |
| 2973 | void VKAPI vkCmdClearDepthStencil( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2974 | VkCmdBuffer cmdBuffer, |
| 2975 | VkImage image, |
| 2976 | VkImageLayout imageLayout, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2977 | float depth, |
| 2978 | uint32_t stencil, |
| 2979 | uint32_t rangeCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2980 | const VkImageSubresourceRange* pRanges); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2981 | |
| 2982 | void VKAPI vkCmdResolveImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2983 | VkCmdBuffer cmdBuffer, |
| 2984 | VkImage srcImage, |
| 2985 | VkImageLayout srcImageLayout, |
| 2986 | VkImage destImage, |
| 2987 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2988 | uint32_t rectCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2989 | const VkImageResolve* pRects); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2990 | |
| 2991 | void VKAPI vkCmdSetEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2992 | VkCmdBuffer cmdBuffer, |
| 2993 | VkEvent event, |
| 2994 | VkPipeEvent pipeEvent); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2995 | |
| 2996 | void VKAPI vkCmdResetEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2997 | VkCmdBuffer cmdBuffer, |
| 2998 | VkEvent event, |
| 2999 | VkPipeEvent pipeEvent); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3000 | |
| 3001 | void VKAPI vkCmdWaitEvents( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3002 | VkCmdBuffer cmdBuffer, |
| 3003 | const VkEventWaitInfo* pWaitInfo); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3004 | |
| 3005 | void VKAPI vkCmdPipelineBarrier( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3006 | VkCmdBuffer cmdBuffer, |
| 3007 | const VkPipelineBarrier* pBarrier); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3008 | |
| 3009 | void VKAPI vkCmdBeginQuery( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3010 | VkCmdBuffer cmdBuffer, |
| 3011 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3012 | uint32_t slot, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3013 | VkFlags flags); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3014 | |
| 3015 | void VKAPI vkCmdEndQuery( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3016 | VkCmdBuffer cmdBuffer, |
| 3017 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3018 | uint32_t slot); |
| 3019 | |
| 3020 | void VKAPI vkCmdResetQueryPool( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3021 | VkCmdBuffer cmdBuffer, |
| 3022 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3023 | uint32_t startQuery, |
| 3024 | uint32_t queryCount); |
| 3025 | |
| 3026 | void VKAPI vkCmdWriteTimestamp( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3027 | VkCmdBuffer cmdBuffer, |
| 3028 | VkTimestampType timestampType, |
| 3029 | VkBuffer destBuffer, |
| 3030 | VkGpuSize destOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3031 | |
| 3032 | void VKAPI vkCmdInitAtomicCounters( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3033 | VkCmdBuffer cmdBuffer, |
| 3034 | VkPipelineBindPoint pipelineBindPoint, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3035 | uint32_t startCounter, |
| 3036 | uint32_t counterCount, |
| 3037 | const uint32_t* pData); |
| 3038 | |
| 3039 | void VKAPI vkCmdLoadAtomicCounters( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3040 | VkCmdBuffer cmdBuffer, |
| 3041 | VkPipelineBindPoint pipelineBindPoint, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3042 | uint32_t startCounter, |
| 3043 | uint32_t counterCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3044 | VkBuffer srcBuffer, |
| 3045 | VkGpuSize srcOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3046 | |
| 3047 | void VKAPI vkCmdSaveAtomicCounters( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3048 | VkCmdBuffer cmdBuffer, |
| 3049 | VkPipelineBindPoint pipelineBindPoint, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3050 | uint32_t startCounter, |
| 3051 | uint32_t counterCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3052 | VkBuffer destBuffer, |
| 3053 | VkGpuSize destOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3054 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 3055 | VkResult VKAPI vkCreateFramebuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3056 | VkDevice device, |
| 3057 | const VkFramebufferCreateInfo* pCreateInfo, |
| 3058 | VkFramebuffer* pFramebuffer); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3059 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 3060 | VkResult VKAPI vkCreateRenderPass( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3061 | VkDevice device, |
| 3062 | const VkRenderPassCreateInfo* pCreateInfo, |
| 3063 | VkRenderPass* pRenderPass); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3064 | |
| 3065 | void VKAPI vkCmdBeginRenderPass( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3066 | VkCmdBuffer cmdBuffer, |
| 3067 | const VkRenderPassBegin* pRenderPassBegin); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3068 | |
| 3069 | void VKAPI vkCmdEndRenderPass( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3070 | VkCmdBuffer cmdBuffer, |
| 3071 | VkRenderPass renderPass); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3072 | |
| 3073 | #endif // VK_PROTOTYPES |
| 3074 | |
| 3075 | #ifdef __cplusplus |
| 3076 | } // extern "C" |
| 3077 | #endif // __cplusplus |
| 3078 | |
| 3079 | #endif // __VULKAN_H__ |