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 | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 36 | #define VK_API_VERSION VK_MAKE_VERSION(0, 80, 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, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 710 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 711 | VK_INFO_TYPE_BEGIN_RANGE = VK_INFO_TYPE_MEMORY_ALLOCATION_COUNT, |
Mark Lobodzinski | e39f695 | 2015-04-16 08:52:00 -0500 | [diff] [blame] | 712 | VK_INFO_TYPE_END_RANGE = VK_INFO_TYPE_MEMORY_REQUIREMENTS, |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 713 | 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] | 714 | VK_MAX_ENUM(VkObjectInfoType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 715 | } VkObjectInfoType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 716 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 717 | |
| 718 | // ------------------------------------------------------------------------------------------------ |
| 719 | // Error and return codes |
| 720 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 721 | typedef enum VkResult_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 722 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 723 | // Return codes for successful operation execution (> = 0) |
| 724 | VK_SUCCESS = 0x0000000, |
| 725 | VK_UNSUPPORTED = 0x0000001, |
| 726 | VK_NOT_READY = 0x0000002, |
| 727 | VK_TIMEOUT = 0x0000003, |
| 728 | VK_EVENT_SET = 0x0000004, |
| 729 | VK_EVENT_RESET = 0x0000005, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 730 | |
| 731 | // Error codes (negative values) |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 732 | VK_ERROR_UNKNOWN = -(0x00000001), |
| 733 | VK_ERROR_UNAVAILABLE = -(0x00000002), |
| 734 | VK_ERROR_INITIALIZATION_FAILED = -(0x00000003), |
| 735 | VK_ERROR_OUT_OF_MEMORY = -(0x00000004), |
| 736 | VK_ERROR_OUT_OF_GPU_MEMORY = -(0x00000005), |
| 737 | VK_ERROR_DEVICE_ALREADY_CREATED = -(0x00000006), |
| 738 | VK_ERROR_DEVICE_LOST = -(0x00000007), |
| 739 | VK_ERROR_INVALID_POINTER = -(0x00000008), |
| 740 | VK_ERROR_INVALID_VALUE = -(0x00000009), |
| 741 | VK_ERROR_INVALID_HANDLE = -(0x0000000A), |
| 742 | VK_ERROR_INVALID_ORDINAL = -(0x0000000B), |
| 743 | VK_ERROR_INVALID_MEMORY_SIZE = -(0x0000000C), |
| 744 | VK_ERROR_INVALID_EXTENSION = -(0x0000000D), |
| 745 | VK_ERROR_INVALID_FLAGS = -(0x0000000E), |
| 746 | VK_ERROR_INVALID_ALIGNMENT = -(0x0000000F), |
| 747 | VK_ERROR_INVALID_FORMAT = -(0x00000010), |
| 748 | VK_ERROR_INVALID_IMAGE = -(0x00000011), |
| 749 | VK_ERROR_INVALID_DESCRIPTOR_SET_DATA = -(0x00000012), |
| 750 | VK_ERROR_INVALID_QUEUE_TYPE = -(0x00000013), |
| 751 | VK_ERROR_INVALID_OBJECT_TYPE = -(0x00000014), |
| 752 | VK_ERROR_UNSUPPORTED_SHADER_IL_VERSION = -(0x00000015), |
| 753 | VK_ERROR_BAD_SHADER_CODE = -(0x00000016), |
| 754 | VK_ERROR_BAD_PIPELINE_DATA = -(0x00000017), |
| 755 | VK_ERROR_TOO_MANY_MEMORY_REFERENCES = -(0x00000018), |
| 756 | VK_ERROR_NOT_MAPPABLE = -(0x00000019), |
| 757 | VK_ERROR_MEMORY_MAP_FAILED = -(0x0000001A), |
| 758 | VK_ERROR_MEMORY_UNMAP_FAILED = -(0x0000001B), |
| 759 | VK_ERROR_INCOMPATIBLE_DEVICE = -(0x0000001C), |
| 760 | VK_ERROR_INCOMPATIBLE_DRIVER = -(0x0000001D), |
| 761 | VK_ERROR_INCOMPLETE_COMMAND_BUFFER = -(0x0000001E), |
| 762 | VK_ERROR_BUILDING_COMMAND_BUFFER = -(0x0000001F), |
| 763 | VK_ERROR_MEMORY_NOT_BOUND = -(0x00000020), |
| 764 | VK_ERROR_INCOMPATIBLE_QUEUE = -(0x00000021), |
| 765 | VK_ERROR_NOT_SHAREABLE = -(0x00000022), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 766 | VK_MAX_ENUM(VkResult) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 767 | } VkResult; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 768 | |
| 769 | // ------------------------------------------------------------------------------------------------ |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 770 | // Vulkan format definitions |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 771 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 772 | typedef enum VkVertexInputStepRate_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 773 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 774 | VK_VERTEX_INPUT_STEP_RATE_VERTEX = 0x0, |
| 775 | VK_VERTEX_INPUT_STEP_RATE_INSTANCE = 0x1, |
| 776 | VK_VERTEX_INPUT_STEP_RATE_DRAW = 0x2, //Optional |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 777 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 778 | VK_VERTEX_INPUT_STEP_RATE_BEGIN_RANGE = VK_VERTEX_INPUT_STEP_RATE_VERTEX, |
| 779 | VK_VERTEX_INPUT_STEP_RATE_END_RANGE = VK_VERTEX_INPUT_STEP_RATE_DRAW, |
| 780 | 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] | 781 | VK_MAX_ENUM(VkVertexInputStepRate) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 782 | } VkVertexInputStepRate; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 783 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 784 | typedef enum VkFormat_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 785 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 786 | VK_FMT_UNDEFINED = 0x00000000, |
| 787 | VK_FMT_R4G4_UNORM = 0x00000001, |
| 788 | VK_FMT_R4G4_USCALED = 0x00000002, |
| 789 | VK_FMT_R4G4B4A4_UNORM = 0x00000003, |
| 790 | VK_FMT_R4G4B4A4_USCALED = 0x00000004, |
| 791 | VK_FMT_R5G6B5_UNORM = 0x00000005, |
| 792 | VK_FMT_R5G6B5_USCALED = 0x00000006, |
| 793 | VK_FMT_R5G5B5A1_UNORM = 0x00000007, |
| 794 | VK_FMT_R5G5B5A1_USCALED = 0x00000008, |
| 795 | VK_FMT_R8_UNORM = 0x00000009, |
| 796 | VK_FMT_R8_SNORM = 0x0000000A, |
| 797 | VK_FMT_R8_USCALED = 0x0000000B, |
| 798 | VK_FMT_R8_SSCALED = 0x0000000C, |
| 799 | VK_FMT_R8_UINT = 0x0000000D, |
| 800 | VK_FMT_R8_SINT = 0x0000000E, |
| 801 | VK_FMT_R8_SRGB = 0x0000000F, |
| 802 | VK_FMT_R8G8_UNORM = 0x00000010, |
| 803 | VK_FMT_R8G8_SNORM = 0x00000011, |
| 804 | VK_FMT_R8G8_USCALED = 0x00000012, |
| 805 | VK_FMT_R8G8_SSCALED = 0x00000013, |
| 806 | VK_FMT_R8G8_UINT = 0x00000014, |
| 807 | VK_FMT_R8G8_SINT = 0x00000015, |
| 808 | VK_FMT_R8G8_SRGB = 0x00000016, |
| 809 | VK_FMT_R8G8B8_UNORM = 0x00000017, |
| 810 | VK_FMT_R8G8B8_SNORM = 0x00000018, |
| 811 | VK_FMT_R8G8B8_USCALED = 0x00000019, |
| 812 | VK_FMT_R8G8B8_SSCALED = 0x0000001A, |
| 813 | VK_FMT_R8G8B8_UINT = 0x0000001B, |
| 814 | VK_FMT_R8G8B8_SINT = 0x0000001C, |
| 815 | VK_FMT_R8G8B8_SRGB = 0x0000001D, |
| 816 | VK_FMT_R8G8B8A8_UNORM = 0x0000001E, |
| 817 | VK_FMT_R8G8B8A8_SNORM = 0x0000001F, |
| 818 | VK_FMT_R8G8B8A8_USCALED = 0x00000020, |
| 819 | VK_FMT_R8G8B8A8_SSCALED = 0x00000021, |
| 820 | VK_FMT_R8G8B8A8_UINT = 0x00000022, |
| 821 | VK_FMT_R8G8B8A8_SINT = 0x00000023, |
| 822 | VK_FMT_R8G8B8A8_SRGB = 0x00000024, |
| 823 | VK_FMT_R10G10B10A2_UNORM = 0x00000025, |
| 824 | VK_FMT_R10G10B10A2_SNORM = 0x00000026, |
| 825 | VK_FMT_R10G10B10A2_USCALED = 0x00000027, |
| 826 | VK_FMT_R10G10B10A2_SSCALED = 0x00000028, |
| 827 | VK_FMT_R10G10B10A2_UINT = 0x00000029, |
| 828 | VK_FMT_R10G10B10A2_SINT = 0x0000002A, |
| 829 | VK_FMT_R16_UNORM = 0x0000002B, |
| 830 | VK_FMT_R16_SNORM = 0x0000002C, |
| 831 | VK_FMT_R16_USCALED = 0x0000002D, |
| 832 | VK_FMT_R16_SSCALED = 0x0000002E, |
| 833 | VK_FMT_R16_UINT = 0x0000002F, |
| 834 | VK_FMT_R16_SINT = 0x00000030, |
| 835 | VK_FMT_R16_SFLOAT = 0x00000031, |
| 836 | VK_FMT_R16G16_UNORM = 0x00000032, |
| 837 | VK_FMT_R16G16_SNORM = 0x00000033, |
| 838 | VK_FMT_R16G16_USCALED = 0x00000034, |
| 839 | VK_FMT_R16G16_SSCALED = 0x00000035, |
| 840 | VK_FMT_R16G16_UINT = 0x00000036, |
| 841 | VK_FMT_R16G16_SINT = 0x00000037, |
| 842 | VK_FMT_R16G16_SFLOAT = 0x00000038, |
| 843 | VK_FMT_R16G16B16_UNORM = 0x00000039, |
| 844 | VK_FMT_R16G16B16_SNORM = 0x0000003A, |
| 845 | VK_FMT_R16G16B16_USCALED = 0x0000003B, |
| 846 | VK_FMT_R16G16B16_SSCALED = 0x0000003C, |
| 847 | VK_FMT_R16G16B16_UINT = 0x0000003D, |
| 848 | VK_FMT_R16G16B16_SINT = 0x0000003E, |
| 849 | VK_FMT_R16G16B16_SFLOAT = 0x0000003F, |
| 850 | VK_FMT_R16G16B16A16_UNORM = 0x00000040, |
| 851 | VK_FMT_R16G16B16A16_SNORM = 0x00000041, |
| 852 | VK_FMT_R16G16B16A16_USCALED = 0x00000042, |
| 853 | VK_FMT_R16G16B16A16_SSCALED = 0x00000043, |
| 854 | VK_FMT_R16G16B16A16_UINT = 0x00000044, |
| 855 | VK_FMT_R16G16B16A16_SINT = 0x00000045, |
| 856 | VK_FMT_R16G16B16A16_SFLOAT = 0x00000046, |
| 857 | VK_FMT_R32_UINT = 0x00000047, |
| 858 | VK_FMT_R32_SINT = 0x00000048, |
| 859 | VK_FMT_R32_SFLOAT = 0x00000049, |
| 860 | VK_FMT_R32G32_UINT = 0x0000004A, |
| 861 | VK_FMT_R32G32_SINT = 0x0000004B, |
| 862 | VK_FMT_R32G32_SFLOAT = 0x0000004C, |
| 863 | VK_FMT_R32G32B32_UINT = 0x0000004D, |
| 864 | VK_FMT_R32G32B32_SINT = 0x0000004E, |
| 865 | VK_FMT_R32G32B32_SFLOAT = 0x0000004F, |
| 866 | VK_FMT_R32G32B32A32_UINT = 0x00000050, |
| 867 | VK_FMT_R32G32B32A32_SINT = 0x00000051, |
| 868 | VK_FMT_R32G32B32A32_SFLOAT = 0x00000052, |
| 869 | VK_FMT_R64_SFLOAT = 0x00000053, |
| 870 | VK_FMT_R64G64_SFLOAT = 0x00000054, |
| 871 | VK_FMT_R64G64B64_SFLOAT = 0x00000055, |
| 872 | VK_FMT_R64G64B64A64_SFLOAT = 0x00000056, |
| 873 | VK_FMT_R11G11B10_UFLOAT = 0x00000057, |
| 874 | VK_FMT_R9G9B9E5_UFLOAT = 0x00000058, |
| 875 | VK_FMT_D16_UNORM = 0x00000059, |
| 876 | VK_FMT_D24_UNORM = 0x0000005A, |
| 877 | VK_FMT_D32_SFLOAT = 0x0000005B, |
| 878 | VK_FMT_S8_UINT = 0x0000005C, |
| 879 | VK_FMT_D16_UNORM_S8_UINT = 0x0000005D, |
| 880 | VK_FMT_D24_UNORM_S8_UINT = 0x0000005E, |
| 881 | VK_FMT_D32_SFLOAT_S8_UINT = 0x0000005F, |
| 882 | VK_FMT_BC1_RGB_UNORM = 0x00000060, |
| 883 | VK_FMT_BC1_RGB_SRGB = 0x00000061, |
| 884 | VK_FMT_BC1_RGBA_UNORM = 0x00000062, |
| 885 | VK_FMT_BC1_RGBA_SRGB = 0x00000063, |
| 886 | VK_FMT_BC2_UNORM = 0x00000064, |
| 887 | VK_FMT_BC2_SRGB = 0x00000065, |
| 888 | VK_FMT_BC3_UNORM = 0x00000066, |
| 889 | VK_FMT_BC3_SRGB = 0x00000067, |
| 890 | VK_FMT_BC4_UNORM = 0x00000068, |
| 891 | VK_FMT_BC4_SNORM = 0x00000069, |
| 892 | VK_FMT_BC5_UNORM = 0x0000006A, |
| 893 | VK_FMT_BC5_SNORM = 0x0000006B, |
| 894 | VK_FMT_BC6H_UFLOAT = 0x0000006C, |
| 895 | VK_FMT_BC6H_SFLOAT = 0x0000006D, |
| 896 | VK_FMT_BC7_UNORM = 0x0000006E, |
| 897 | VK_FMT_BC7_SRGB = 0x0000006F, |
| 898 | VK_FMT_ETC2_R8G8B8_UNORM = 0x00000070, |
| 899 | VK_FMT_ETC2_R8G8B8_SRGB = 0x00000071, |
| 900 | VK_FMT_ETC2_R8G8B8A1_UNORM = 0x00000072, |
| 901 | VK_FMT_ETC2_R8G8B8A1_SRGB = 0x00000073, |
| 902 | VK_FMT_ETC2_R8G8B8A8_UNORM = 0x00000074, |
| 903 | VK_FMT_ETC2_R8G8B8A8_SRGB = 0x00000075, |
| 904 | VK_FMT_EAC_R11_UNORM = 0x00000076, |
| 905 | VK_FMT_EAC_R11_SNORM = 0x00000077, |
| 906 | VK_FMT_EAC_R11G11_UNORM = 0x00000078, |
| 907 | VK_FMT_EAC_R11G11_SNORM = 0x00000079, |
| 908 | VK_FMT_ASTC_4x4_UNORM = 0x0000007A, |
| 909 | VK_FMT_ASTC_4x4_SRGB = 0x0000007B, |
| 910 | VK_FMT_ASTC_5x4_UNORM = 0x0000007C, |
| 911 | VK_FMT_ASTC_5x4_SRGB = 0x0000007D, |
| 912 | VK_FMT_ASTC_5x5_UNORM = 0x0000007E, |
| 913 | VK_FMT_ASTC_5x5_SRGB = 0x0000007F, |
| 914 | VK_FMT_ASTC_6x5_UNORM = 0x00000080, |
| 915 | VK_FMT_ASTC_6x5_SRGB = 0x00000081, |
| 916 | VK_FMT_ASTC_6x6_UNORM = 0x00000082, |
| 917 | VK_FMT_ASTC_6x6_SRGB = 0x00000083, |
| 918 | VK_FMT_ASTC_8x5_UNORM = 0x00000084, |
| 919 | VK_FMT_ASTC_8x5_SRGB = 0x00000085, |
| 920 | VK_FMT_ASTC_8x6_UNORM = 0x00000086, |
| 921 | VK_FMT_ASTC_8x6_SRGB = 0x00000087, |
| 922 | VK_FMT_ASTC_8x8_UNORM = 0x00000088, |
| 923 | VK_FMT_ASTC_8x8_SRGB = 0x00000089, |
| 924 | VK_FMT_ASTC_10x5_UNORM = 0x0000008A, |
| 925 | VK_FMT_ASTC_10x5_SRGB = 0x0000008B, |
| 926 | VK_FMT_ASTC_10x6_UNORM = 0x0000008C, |
| 927 | VK_FMT_ASTC_10x6_SRGB = 0x0000008D, |
| 928 | VK_FMT_ASTC_10x8_UNORM = 0x0000008E, |
| 929 | VK_FMT_ASTC_10x8_SRGB = 0x0000008F, |
| 930 | VK_FMT_ASTC_10x10_UNORM = 0x00000090, |
| 931 | VK_FMT_ASTC_10x10_SRGB = 0x00000091, |
| 932 | VK_FMT_ASTC_12x10_UNORM = 0x00000092, |
| 933 | VK_FMT_ASTC_12x10_SRGB = 0x00000093, |
| 934 | VK_FMT_ASTC_12x12_UNORM = 0x00000094, |
| 935 | VK_FMT_ASTC_12x12_SRGB = 0x00000095, |
| 936 | VK_FMT_B4G4R4A4_UNORM = 0x00000096, |
| 937 | VK_FMT_B5G5R5A1_UNORM = 0x00000097, |
| 938 | VK_FMT_B5G6R5_UNORM = 0x00000098, |
| 939 | VK_FMT_B5G6R5_USCALED = 0x00000099, |
| 940 | VK_FMT_B8G8R8_UNORM = 0x0000009A, |
| 941 | VK_FMT_B8G8R8_SNORM = 0x0000009B, |
| 942 | VK_FMT_B8G8R8_USCALED = 0x0000009C, |
| 943 | VK_FMT_B8G8R8_SSCALED = 0x0000009D, |
| 944 | VK_FMT_B8G8R8_UINT = 0x0000009E, |
| 945 | VK_FMT_B8G8R8_SINT = 0x0000009F, |
| 946 | VK_FMT_B8G8R8_SRGB = 0x000000A0, |
| 947 | VK_FMT_B8G8R8A8_UNORM = 0x000000A1, |
| 948 | VK_FMT_B8G8R8A8_SNORM = 0x000000A2, |
| 949 | VK_FMT_B8G8R8A8_USCALED = 0x000000A3, |
| 950 | VK_FMT_B8G8R8A8_SSCALED = 0x000000A4, |
| 951 | VK_FMT_B8G8R8A8_UINT = 0x000000A5, |
| 952 | VK_FMT_B8G8R8A8_SINT = 0x000000A6, |
| 953 | VK_FMT_B8G8R8A8_SRGB = 0x000000A7, |
| 954 | VK_FMT_B10G10R10A2_UNORM = 0x000000A8, |
| 955 | VK_FMT_B10G10R10A2_SNORM = 0x000000A9, |
| 956 | VK_FMT_B10G10R10A2_USCALED = 0x000000AA, |
| 957 | VK_FMT_B10G10R10A2_SSCALED = 0x000000AB, |
| 958 | VK_FMT_B10G10R10A2_UINT = 0x000000AC, |
| 959 | VK_FMT_B10G10R10A2_SINT = 0x000000AD, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 960 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 961 | VK_FMT_BEGIN_RANGE = VK_FMT_UNDEFINED, |
| 962 | VK_FMT_END_RANGE = VK_FMT_B10G10R10A2_SINT, |
| 963 | VK_NUM_FMT = (VK_FMT_END_RANGE - VK_FMT_BEGIN_RANGE + 1), |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 964 | VK_MAX_ENUM(VkFormat) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 965 | } VkFormat; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 966 | |
| 967 | // Shader stage enumerant |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 968 | typedef enum VkPipelineShaderStage_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 969 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 970 | VK_SHADER_STAGE_VERTEX = 0, |
| 971 | VK_SHADER_STAGE_TESS_CONTROL = 1, |
| 972 | VK_SHADER_STAGE_TESS_EVALUATION = 2, |
| 973 | VK_SHADER_STAGE_GEOMETRY = 3, |
| 974 | VK_SHADER_STAGE_FRAGMENT = 4, |
| 975 | VK_SHADER_STAGE_COMPUTE = 5, |
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_SHADER_STAGE_BEGIN_RANGE = VK_SHADER_STAGE_VERTEX, |
| 978 | VK_SHADER_STAGE_END_RANGE = VK_SHADER_STAGE_COMPUTE, |
| 979 | 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] | 980 | VK_MAX_ENUM(VkPipelineShaderStage) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 981 | } VkPipelineShaderStage; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 982 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 983 | typedef enum VkShaderStageFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 984 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 985 | VK_SHADER_STAGE_FLAGS_VERTEX_BIT = 0x00000001, |
| 986 | VK_SHADER_STAGE_FLAGS_TESS_CONTROL_BIT = 0x00000002, |
| 987 | VK_SHADER_STAGE_FLAGS_TESS_EVALUATION_BIT = 0x00000004, |
| 988 | VK_SHADER_STAGE_FLAGS_GEOMETRY_BIT = 0x00000008, |
| 989 | VK_SHADER_STAGE_FLAGS_FRAGMENT_BIT = 0x00000010, |
| 990 | VK_SHADER_STAGE_FLAGS_COMPUTE_BIT = 0x00000020, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 991 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 992 | VK_SHADER_STAGE_FLAGS_ALL = 0x7FFFFFFF, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 993 | VK_MAX_ENUM(VkShaderStageFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 994 | } VkShaderStageFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 995 | |
| 996 | // Structure type enumerant |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 997 | typedef enum VkStructureType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 998 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 999 | VK_STRUCTURE_TYPE_APPLICATION_INFO = 0, |
| 1000 | VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = 1, |
| 1001 | VK_STRUCTURE_TYPE_MEMORY_ALLOC_INFO = 2, |
| 1002 | VK_STRUCTURE_TYPE_MEMORY_OPEN_INFO = 4, |
| 1003 | VK_STRUCTURE_TYPE_PEER_MEMORY_OPEN_INFO = 5, |
| 1004 | VK_STRUCTURE_TYPE_BUFFER_VIEW_ATTACH_INFO = 6, |
| 1005 | VK_STRUCTURE_TYPE_IMAGE_VIEW_ATTACH_INFO = 7, |
| 1006 | VK_STRUCTURE_TYPE_EVENT_WAIT_INFO = 8, |
| 1007 | VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 9, |
| 1008 | VK_STRUCTURE_TYPE_COLOR_ATTACHMENT_VIEW_CREATE_INFO = 10, |
| 1009 | VK_STRUCTURE_TYPE_DEPTH_STENCIL_VIEW_CREATE_INFO = 11, |
| 1010 | VK_STRUCTURE_TYPE_SHADER_CREATE_INFO = 12, |
| 1011 | VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 13, |
| 1012 | VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 14, |
| 1013 | VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 15, |
| 1014 | VK_STRUCTURE_TYPE_DYNAMIC_VP_STATE_CREATE_INFO = 16, |
| 1015 | VK_STRUCTURE_TYPE_DYNAMIC_RS_STATE_CREATE_INFO = 17, |
| 1016 | VK_STRUCTURE_TYPE_DYNAMIC_CB_STATE_CREATE_INFO = 18, |
| 1017 | VK_STRUCTURE_TYPE_DYNAMIC_DS_STATE_CREATE_INFO = 19, |
| 1018 | VK_STRUCTURE_TYPE_CMD_BUFFER_CREATE_INFO = 20, |
| 1019 | VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 21, |
| 1020 | VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 22, |
| 1021 | VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 23, |
| 1022 | VK_STRUCTURE_TYPE_SEMAPHORE_OPEN_INFO = 24, |
| 1023 | VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 25, |
| 1024 | VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 26, |
| 1025 | VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 27, |
| 1026 | VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_CREATE_INFO = 28, |
| 1027 | VK_STRUCTURE_TYPE_PIPELINE_IA_STATE_CREATE_INFO = 29, |
| 1028 | VK_STRUCTURE_TYPE_PIPELINE_TESS_STATE_CREATE_INFO = 30, |
| 1029 | VK_STRUCTURE_TYPE_PIPELINE_VP_STATE_CREATE_INFO = 31, |
| 1030 | VK_STRUCTURE_TYPE_PIPELINE_RS_STATE_CREATE_INFO = 32, |
| 1031 | VK_STRUCTURE_TYPE_PIPELINE_MS_STATE_CREATE_INFO = 33, |
| 1032 | VK_STRUCTURE_TYPE_PIPELINE_CB_STATE_CREATE_INFO = 34, |
| 1033 | VK_STRUCTURE_TYPE_PIPELINE_DS_STATE_CREATE_INFO = 35, |
| 1034 | VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 36, |
| 1035 | VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 37, |
| 1036 | VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 38, |
| 1037 | VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 39, |
| 1038 | VK_STRUCTURE_TYPE_CMD_BUFFER_BEGIN_INFO = 40, |
| 1039 | VK_STRUCTURE_TYPE_CMD_BUFFER_GRAPHICS_BEGIN_INFO = 41, |
| 1040 | VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 42, |
| 1041 | VK_STRUCTURE_TYPE_LAYER_CREATE_INFO = 43, |
| 1042 | VK_STRUCTURE_TYPE_PIPELINE_BARRIER = 44, |
| 1043 | VK_STRUCTURE_TYPE_MEMORY_BARRIER = 45, |
| 1044 | VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 46, |
| 1045 | VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 47, |
| 1046 | VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 48, |
| 1047 | VK_STRUCTURE_TYPE_UPDATE_SAMPLERS = 49, |
| 1048 | VK_STRUCTURE_TYPE_UPDATE_SAMPLER_TEXTURES = 50, |
| 1049 | VK_STRUCTURE_TYPE_UPDATE_IMAGES = 51, |
| 1050 | VK_STRUCTURE_TYPE_UPDATE_BUFFERS = 52, |
| 1051 | VK_STRUCTURE_TYPE_UPDATE_AS_COPY = 53, |
Mark Lobodzinski | e39f695 | 2015-04-16 08:52:00 -0500 | [diff] [blame] | 1052 | VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 54, |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1053 | |
| 1054 | VK_STRUCTURE_TYPE_BEGIN_RANGE = VK_STRUCTURE_TYPE_APPLICATION_INFO, |
| 1055 | VK_STRUCTURE_TYPE_END_RANGE = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, |
| 1056 | |
| 1057 | 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] | 1058 | VK_MAX_ENUM(VkStructureType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1059 | } VkStructureType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1060 | |
| 1061 | // ------------------------------------------------------------------------------------------------ |
| 1062 | // Flags |
| 1063 | |
| 1064 | // Device creation flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1065 | typedef enum VkDeviceCreateFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1066 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1067 | VK_DEVICE_CREATE_VALIDATION_BIT = 0x00000001, |
| 1068 | VK_DEVICE_CREATE_MGPU_IQ_MATCH_BIT = 0x00000002, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1069 | VK_MAX_ENUM(VkDeviceCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1070 | } VkDeviceCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1071 | |
| 1072 | // Queue capabilities |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1073 | typedef enum VkQueueFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1074 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1075 | VK_QUEUE_GRAPHICS_BIT = 0x00000001, // Queue supports graphics operations |
| 1076 | VK_QUEUE_COMPUTE_BIT = 0x00000002, // Queue supports compute operations |
| 1077 | VK_QUEUE_DMA_BIT = 0x00000004, // Queue supports DMA operations |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 1078 | VK_QUEUE_MEMMGR_BIT = 0x00000008, // Queue supports memory management operations |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1079 | VK_QUEUE_EXTENDED_BIT = 0x40000000, // Extended queue |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1080 | VK_MAX_ENUM(VkQueueFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1081 | } VkQueueFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1082 | |
| 1083 | // memory properties passed into vkAllocMemory(). |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1084 | typedef enum VkMemoryPropertyFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1085 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1086 | VK_MEMORY_PROPERTY_GPU_ONLY = 0x00000000, // If not set, then allocate memory on device (GPU) |
| 1087 | VK_MEMORY_PROPERTY_CPU_VISIBLE_BIT = 0x00000001, |
| 1088 | VK_MEMORY_PROPERTY_CPU_GPU_COHERENT_BIT = 0x00000002, |
| 1089 | VK_MEMORY_PROPERTY_CPU_UNCACHED_BIT = 0x00000004, |
| 1090 | VK_MEMORY_PROPERTY_CPU_WRITE_COMBINED_BIT = 0x00000008, |
| 1091 | VK_MEMORY_PROPERTY_PREFER_CPU_LOCAL = 0x00000010, // all else being equal, prefer CPU access |
| 1092 | VK_MEMORY_PROPERTY_SHAREABLE_BIT = 0x00000020, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1093 | VK_MAX_ENUM(VkMemoryPropertyFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1094 | } VkMemoryPropertyFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1095 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1096 | // Buffer and buffer allocation usage flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1097 | typedef enum VkBufferUsageFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1098 | { |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1099 | VK_BUFFER_USAGE_GENERAL = 0x00000000, // No special usage |
| 1100 | VK_BUFFER_USAGE_TRANSFER_SOURCE_BIT = 0x00000001, // Can be used as a source of transfer operations |
| 1101 | VK_BUFFER_USAGE_TRANSFER_DESTINATION_BIT = 0x00000002, // Can be used as a destination of transfer operations |
| 1102 | VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004, // Can be used as TBO |
| 1103 | VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = 0x00000008, // Can be used as IBO |
| 1104 | VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = 0x00000010, // Can be used as UBO |
| 1105 | VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = 0x00000020, // Can be used as SSBO |
| 1106 | VK_BUFFER_USAGE_INDEX_BUFFER_BIT = 0x00000040, // Can be used as source of fixed function index fetch (index buffer) |
| 1107 | VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = 0x00000080, // Can be used as source of fixed function vertex fetch (VBO) |
| 1108 | 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] | 1109 | VK_MAX_ENUM(VkBufferUsageFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1110 | } VkBufferUsageFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1111 | |
| 1112 | // Buffer flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1113 | typedef enum VkBufferCreateFlags_ |
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_BUFFER_CREATE_SHAREABLE_BIT = 0x00000001, |
| 1116 | VK_BUFFER_CREATE_SPARSE_BIT = 0x00000002, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1117 | VK_MAX_ENUM(VkBufferCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1118 | } VkBufferCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1119 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1120 | typedef enum VkBufferViewType_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1121 | { |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1122 | VK_BUFFER_VIEW_RAW = 0x00000000, // Raw buffer without special structure (UBO, SSBO) |
| 1123 | VK_BUFFER_VIEW_FORMATTED = 0x00000001, // Buffer with format (TBO, IBO) |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1124 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1125 | VK_BUFFER_VIEW_TYPE_BEGIN_RANGE = VK_BUFFER_VIEW_RAW, |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1126 | VK_BUFFER_VIEW_TYPE_END_RANGE = VK_BUFFER_VIEW_FORMATTED, |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1127 | 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] | 1128 | VK_MAX_ENUM(VkBufferViewType) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1129 | } VkBufferViewType; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1130 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1131 | // Image and image allocation usage flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1132 | typedef enum VkImageUsageFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1133 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1134 | VK_IMAGE_USAGE_GENERAL = 0x00000000, // no special usage |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1135 | VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT = 0x00000001, // Can be used as a source of transfer operations |
| 1136 | VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT = 0x00000002, // Can be used as a destination of transfer operations |
| 1137 | VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004, // Can be sampled from (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types) |
| 1138 | VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008, // Can be used as storage image (STORAGE_IMAGE descriptor type) |
| 1139 | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010, // Can be used as framebuffer color attachment |
| 1140 | VK_IMAGE_USAGE_DEPTH_STENCIL_BIT = 0x00000020, // Can be used as framebuffer depth/stencil attachment |
| 1141 | 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] | 1142 | VK_MAX_ENUM(VkImageUsageFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1143 | } VkImageUsageFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1144 | |
| 1145 | // Image flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1146 | typedef enum VkImageCreateFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1147 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1148 | VK_IMAGE_CREATE_INVARIANT_DATA_BIT = 0x00000001, |
| 1149 | VK_IMAGE_CREATE_CLONEABLE_BIT = 0x00000002, |
| 1150 | VK_IMAGE_CREATE_SHAREABLE_BIT = 0x00000004, |
| 1151 | VK_IMAGE_CREATE_SPARSE_BIT = 0x00000008, |
| 1152 | 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] | 1153 | 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] | 1154 | VK_MAX_ENUM(VkImageCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1155 | } VkImageCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1156 | |
| 1157 | // Depth-stencil view creation flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1158 | typedef enum VkDepthStencilViewCreateFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1159 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1160 | VK_DEPTH_STENCIL_VIEW_CREATE_READ_ONLY_DEPTH_BIT = 0x00000001, |
| 1161 | VK_DEPTH_STENCIL_VIEW_CREATE_READ_ONLY_STENCIL_BIT = 0x00000002, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1162 | VK_MAX_ENUM(VkDepthStencilViewCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1163 | } VkDepthStencilViewCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1164 | |
| 1165 | // Pipeline creation flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1166 | typedef enum VkPipelineCreateFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1167 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1168 | VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = 0x00000001, |
| 1169 | VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = 0x00000002, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1170 | VK_MAX_ENUM(VkPipelineCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1171 | } VkPipelineCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1172 | |
| 1173 | // Fence creation flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1174 | typedef enum VkFenceCreateFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1175 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1176 | VK_FENCE_CREATE_SIGNALED_BIT = 0x00000001, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1177 | VK_MAX_ENUM(VkFenceCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1178 | } VkFenceCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1179 | |
| 1180 | // Semaphore creation flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1181 | typedef enum VkSemaphoreCreateFlags_ |
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_SEMAPHORE_CREATE_SHAREABLE_BIT = 0x00000001, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1184 | VK_MAX_ENUM(VkSemaphoreCreateFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1185 | } VkSemaphoreCreateFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1186 | |
| 1187 | // Format capability flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1188 | typedef enum VkFormatFeatureFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1189 | { |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1190 | VK_FORMAT_SAMPLED_IMAGE_BIT = 0x00000001, // Format can be used for sampled images (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types) |
| 1191 | VK_FORMAT_STORAGE_IMAGE_BIT = 0x00000002, // Format can be used for storage images (STORAGE_IMAGE descriptor type) |
| 1192 | VK_FORMAT_STORAGE_IMAGE_ATOMIC_BIT = 0x00000004, // Format supports atomic operations in case it's used for storage images |
| 1193 | VK_FORMAT_UNIFORM_TEXEL_BUFFER_BIT = 0x00000008, // Format can be used for uniform texel buffers (TBOs) |
| 1194 | VK_FORMAT_STORAGE_TEXEL_BUFFER_BIT = 0x00000010, // Format can be used for storage texel buffers (IBOs) |
| 1195 | VK_FORMAT_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 0x00000020, // Format supports atomic operations in case it's used for storage texel buffers |
| 1196 | VK_FORMAT_VERTEX_BUFFER_BIT = 0x00000040, // Format can be used for vertex buffers (VBOs) |
| 1197 | VK_FORMAT_COLOR_ATTACHMENT_BIT = 0x00000080, // Format can be used for color attachment images |
| 1198 | VK_FORMAT_COLOR_ATTACHMENT_BLEND_BIT = 0x00000100, // Format supports blending in case it's used for color attachment images |
| 1199 | VK_FORMAT_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000200, // Format can be used for depth/stencil attachment images |
| 1200 | 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] | 1201 | VK_MAX_ENUM(VkFormatFeatureFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1202 | } VkFormatFeatureFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1203 | |
| 1204 | // Query flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1205 | typedef enum VkQueryControlFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1206 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1207 | VK_QUERY_IMPRECISE_DATA_BIT = 0x00000001, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1208 | VK_MAX_ENUM(VkQueryControlFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1209 | } VkQueryControlFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1210 | |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 1211 | // Query result flags |
| 1212 | typedef enum VkQueryResultFlags_ |
| 1213 | { |
| 1214 | VK_QUERY_RESULT_32_BIT = 0x00000000, // Results of the queries are written to the destination buffer as 32-bit values |
| 1215 | VK_QUERY_RESULT_64_BIT = 0x00000001, // Results of the queries are written to the destination buffer as 64-bit values |
| 1216 | // Duplicate enum result messes with validation |
| 1217 | // VK_QUERY_RESULT_NO_WAIT_BIT = 0x00000000, // Results of the queries aren't waited on before proceeding with the result copy |
| 1218 | VK_QUERY_RESULT_WAIT_BIT = 0x00000002, // Results of the queries are waited on before proceeding with the result copy |
| 1219 | VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = 0x00000004, // Besides the results of the query, the availability of the results is also written |
| 1220 | VK_QUERY_RESULT_PARTIAL_BIT = 0x00000008 // Copy the partial results of the query even if the final results aren't available |
| 1221 | } VkQueryResultFlags; |
| 1222 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1223 | // GPU compatibility flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1224 | typedef enum VkGpuCompatibilityFlags_ |
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_GPU_COMPAT_ASIC_FEATURES_BIT = 0x00000001, |
| 1227 | VK_GPU_COMPAT_IQ_MATCH_BIT = 0x00000002, |
| 1228 | VK_GPU_COMPAT_PEER_TRANSFER_BIT = 0x00000004, |
| 1229 | VK_GPU_COMPAT_SHARED_MEMORY_BIT = 0x00000008, |
| 1230 | VK_GPU_COMPAT_SHARED_SYNC_BIT = 0x00000010, |
| 1231 | VK_GPU_COMPAT_SHARED_GPU0_DISPLAY_BIT = 0x00000020, |
| 1232 | VK_GPU_COMPAT_SHARED_GPU1_DISPLAY_BIT = 0x00000040, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1233 | VK_MAX_ENUM(VkGpuCompatibilityFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1234 | } VkGpuCompatibilityFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1235 | |
| 1236 | // Command buffer building flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1237 | typedef enum VkCmdBufferBuildFlags_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1238 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1239 | VK_CMD_BUFFER_OPTIMIZE_GPU_SMALL_BATCH_BIT = 0x00000001, |
| 1240 | VK_CMD_BUFFER_OPTIMIZE_PIPELINE_SWITCH_BIT = 0x00000002, |
| 1241 | VK_CMD_BUFFER_OPTIMIZE_ONE_TIME_SUBMIT_BIT = 0x00000004, |
| 1242 | VK_CMD_BUFFER_OPTIMIZE_DESCRIPTOR_SET_SWITCH_BIT = 0x00000008, |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1243 | VK_MAX_ENUM(VkCmdBufferBuildFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1244 | } VkCmdBufferBuildFlags; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1245 | |
| 1246 | // ------------------------------------------------------------------------------------------------ |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1247 | // Vulkan structures |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1248 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1249 | typedef struct VkOffset2D_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1250 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1251 | int32_t x; |
| 1252 | int32_t y; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1253 | } VkOffset2D; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1254 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1255 | typedef struct VkOffset3D_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1256 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1257 | int32_t x; |
| 1258 | int32_t y; |
| 1259 | int32_t z; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1260 | } VkOffset3D; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1261 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1262 | typedef struct VkExtent2D_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1263 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1264 | int32_t width; |
| 1265 | int32_t height; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1266 | } VkExtent2D; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1267 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1268 | typedef struct VkExtent3D_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1269 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1270 | int32_t width; |
| 1271 | int32_t height; |
| 1272 | int32_t depth; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1273 | } VkExtent3D; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1274 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1275 | typedef struct VkViewport_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1276 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1277 | float originX; |
| 1278 | float originY; |
| 1279 | float width; |
| 1280 | float height; |
| 1281 | float minDepth; |
| 1282 | float maxDepth; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1283 | } VkViewport; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1284 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1285 | typedef struct VkRect_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1286 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1287 | VkOffset2D offset; |
| 1288 | VkExtent2D extent; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1289 | } VkRect; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1290 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1291 | typedef struct VkChannelMapping_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1292 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1293 | VkChannelSwizzle r; |
| 1294 | VkChannelSwizzle g; |
| 1295 | VkChannelSwizzle b; |
| 1296 | VkChannelSwizzle a; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1297 | } VkChannelMapping; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1298 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1299 | typedef struct VkPhysicalGpuProperties_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1300 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1301 | uint32_t apiVersion; |
| 1302 | uint32_t driverVersion; |
| 1303 | uint32_t vendorId; |
| 1304 | uint32_t deviceId; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1305 | VkPhysicalGpuType gpuType; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1306 | char gpuName[VK_MAX_PHYSICAL_GPU_NAME]; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1307 | VkGpuSize maxInlineMemoryUpdateSize; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1308 | uint32_t maxBoundDescriptorSets; |
| 1309 | uint32_t maxThreadGroupSize; |
| 1310 | uint64_t timestampFrequency; |
| 1311 | bool32_t multiColorAttachmentClears; |
| 1312 | uint32_t maxDescriptorSets; // at least 2? |
| 1313 | uint32_t maxViewports; // at least 16? |
| 1314 | uint32_t maxColorAttachments; // at least 8? |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1315 | } VkPhysicalGpuProperties; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1316 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1317 | typedef struct VkPhysicalGpuPerformance_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1318 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1319 | float maxGpuClock; |
| 1320 | float aluPerClock; |
| 1321 | float texPerClock; |
| 1322 | float primsPerClock; |
| 1323 | float pixelsPerClock; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1324 | } VkPhysicalGpuPerformance; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1325 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1326 | typedef struct VkGpuCompatibilityInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1327 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1328 | VkFlags compatibilityFlags; // VkGpuCompatibilityFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1329 | } VkGpuCompatibilityInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1330 | |
Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 1331 | typedef struct VkExtensionProperties_ |
| 1332 | { |
| 1333 | char extName[VK_MAX_EXTENSION_NAME]; // extension name |
| 1334 | uint32_t version; // version of the extension specification |
| 1335 | } VkExtensionProperties; |
| 1336 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1337 | typedef struct VkApplicationInfo_ |
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 | VkStructureType sType; // Type of structure. Should be VK_STRUCTURE_TYPE_APPLICATION_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1340 | const void* pNext; // Next structure in chain |
| 1341 | const char* pAppName; |
| 1342 | uint32_t appVersion; |
| 1343 | const char* pEngineName; |
| 1344 | uint32_t engineVersion; |
| 1345 | uint32_t apiVersion; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1346 | } VkApplicationInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1347 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1348 | typedef void* (VKAPI *PFN_vkAllocFunction)( |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1349 | void* pUserData, |
| 1350 | size_t size, |
| 1351 | size_t alignment, |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1352 | VkSystemAllocType allocType); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1353 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1354 | typedef void (VKAPI *PFN_vkFreeFunction)( |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1355 | void* pUserData, |
| 1356 | void* pMem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1357 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1358 | typedef struct VkAllocCallbacks_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1359 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1360 | void* pUserData; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1361 | PFN_vkAllocFunction pfnAlloc; |
| 1362 | PFN_vkFreeFunction pfnFree; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1363 | } VkAllocCallbacks; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1364 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1365 | typedef struct VkDeviceQueueCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1366 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1367 | uint32_t queueNodeIndex; |
| 1368 | uint32_t queueCount; |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1369 | } VkDeviceQueueCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1370 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1371 | typedef struct VkDeviceCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1372 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1373 | VkStructureType sType; // Should be VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1374 | const void* pNext; // Pointer to next structure |
| 1375 | uint32_t queueRecordCount; |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1376 | const VkDeviceQueueCreateInfo* pRequestedQueues; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1377 | uint32_t extensionCount; |
| 1378 | const char*const* ppEnabledExtensionNames; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1379 | VkFlags flags; // VkDeviceCreateFlags |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1380 | } VkDeviceCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1381 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1382 | typedef struct VkInstanceCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1383 | { |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1384 | VkStructureType sType; // Should be VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1385 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1386 | const VkApplicationInfo* pAppInfo; |
| 1387 | const VkAllocCallbacks* pAllocCb; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1388 | uint32_t extensionCount; |
| 1389 | const char*const* ppEnabledExtensionNames; // layer or extension name to be enabled |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1390 | } VkInstanceCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1391 | |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1392 | // can be added to VkDeviceCreateInfo or VkInstanceCreateInfo via pNext |
| 1393 | typedef struct _VkLayerCreateInfo |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1394 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1395 | VkStructureType sType; // Should be VK_STRUCTURE_TYPE_LAYER_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1396 | const void* pNext; // Pointer to next structure |
| 1397 | uint32_t layerCount; |
| 1398 | const char *const* ppActiveLayerNames; // layer name from the layer's vkEnumerateLayers()) |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1399 | } VkLayerCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1400 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1401 | typedef struct VkPhysicalGpuQueueProperties_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1402 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1403 | VkFlags queueFlags; // VkQueueFlags |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1404 | uint32_t queueCount; |
| 1405 | uint32_t maxAtomicCounters; |
| 1406 | bool32_t supportsTimestamps; |
| 1407 | 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] | 1408 | } VkPhysicalGpuQueueProperties; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1409 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1410 | typedef struct VkPhysicalGpuMemoryProperties_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1411 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1412 | bool32_t supportsMigration; |
| 1413 | bool32_t supportsPinning; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1414 | } VkPhysicalGpuMemoryProperties; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1415 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1416 | typedef struct VkMemoryAllocInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1417 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1418 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_MEMORY_ALLOC_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1419 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1420 | VkGpuSize allocationSize; // Size of memory allocation |
| 1421 | VkFlags memProps; // VkMemoryPropertyFlags |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1422 | VkMemoryPriority memPriority; |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1423 | } VkMemoryAllocInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1424 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1425 | typedef struct VkMemoryOpenInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1426 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1427 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_MEMORY_OPEN_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1428 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1429 | VkGpuMemory sharedMem; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1430 | } VkMemoryOpenInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1431 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1432 | typedef struct VkPeerMemoryOpenInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1433 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1434 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PEER_MEMORY_OPEN_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1435 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1436 | VkGpuMemory originalMem; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1437 | } VkPeerMemoryOpenInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1438 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1439 | typedef struct VkMemoryRequirements_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1440 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1441 | VkGpuSize size; // Specified in bytes |
| 1442 | VkGpuSize alignment; // Specified in bytes |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 1443 | VkGpuSize granularity; // Granularity on which vkQueueBindObjectMemoryRange can bind sub-ranges of memory specified in bytes (usually the page size) |
Jeremy Hayes | 38ce2b1 | 2015-04-15 14:17:56 -0600 | [diff] [blame^] | 1444 | VkMemoryPropertyFlags memPropsAllowed; // Allowed memory property flags |
| 1445 | VkMemoryPropertyFlags memPropsRequired; // Required memory property flags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1446 | } VkMemoryRequirements; |
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 VkFormatProperties_ |
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 linearTilingFeatures; // VkFormatFeatureFlags |
| 1451 | VkFlags optimalTilingFeatures; // VkFormatFeatureFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1452 | } VkFormatProperties; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1453 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1454 | typedef struct VkBufferViewAttachInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1455 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1456 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_BUFFER_VIEW_ATTACH_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1457 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1458 | VkBufferView view; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1459 | } VkBufferViewAttachInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1460 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1461 | typedef struct VkImageViewAttachInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1462 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1463 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_IMAGE_VIEW_ATTACH_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1464 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1465 | VkImageView view; |
| 1466 | VkImageLayout layout; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1467 | } VkImageViewAttachInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1468 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1469 | typedef struct VkUpdateSamplers_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1470 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1471 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_UPDATE_SAMPLERS |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1472 | const void* pNext; // Pointer to next structure |
| 1473 | uint32_t binding; // Binding of the sampler (array) |
| 1474 | uint32_t arrayIndex; // First element of the array to update or zero otherwise |
| 1475 | uint32_t count; // Number of elements to update |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1476 | const VkSampler* pSamplers; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1477 | } VkUpdateSamplers; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1478 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1479 | typedef struct VkSamplerImageViewInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1480 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1481 | VkSampler sampler; |
| 1482 | const VkImageViewAttachInfo* pImageView; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1483 | } VkSamplerImageViewInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1484 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1485 | typedef struct VkUpdateSamplerTextures_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1486 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1487 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_UPDATE_SAMPLER_TEXTURES |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1488 | const void* pNext; // Pointer to next structure |
| 1489 | uint32_t binding; // Binding of the combined texture sampler (array) |
| 1490 | uint32_t arrayIndex; // First element of the array to update or zero otherwise |
| 1491 | uint32_t count; // Number of elements to update |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1492 | const VkSamplerImageViewInfo* pSamplerImageViews; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1493 | } VkUpdateSamplerTextures; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1494 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1495 | typedef struct VkUpdateImages_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1496 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1497 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_UPDATE_IMAGES |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1498 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1499 | VkDescriptorType descriptorType; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1500 | uint32_t binding; // Binding of the image (array) |
| 1501 | uint32_t arrayIndex; // First element of the array to update or zero otherwise |
| 1502 | uint32_t count; // Number of elements to update |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1503 | const VkImageViewAttachInfo* pImageViews; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1504 | } VkUpdateImages; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1505 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1506 | typedef struct VkUpdateBuffers_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1507 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1508 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_UPDATE_BUFFERS |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1509 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1510 | VkDescriptorType descriptorType; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1511 | uint32_t binding; // Binding of the buffer (array) |
| 1512 | uint32_t arrayIndex; // First element of the array to update or zero otherwise |
| 1513 | uint32_t count; // Number of elements to update |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1514 | const VkBufferViewAttachInfo* pBufferViews; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1515 | } VkUpdateBuffers; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1516 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1517 | typedef struct VkUpdateAsCopy_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1518 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1519 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_UPDATE_AS_COPY |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1520 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1521 | VkDescriptorType descriptorType; |
| 1522 | VkDescriptorSet descriptorSet; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1523 | uint32_t binding; |
| 1524 | uint32_t arrayElement; |
| 1525 | uint32_t count; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1526 | } VkUpdateAsCopy; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1527 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1528 | typedef struct VkBufferCreateInfo_ |
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 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1531 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1532 | VkGpuSize size; // Specified in bytes |
| 1533 | VkFlags usage; // VkBufferUsageFlags |
| 1534 | VkFlags flags; // VkBufferCreateFlags |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1535 | } VkBufferCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1536 | |
Courtney Goeltzenleuchter | 4b140cb | 2015-04-10 17:59:44 -0600 | [diff] [blame] | 1537 | typedef struct VkBufferViewCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1538 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1539 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1540 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1541 | VkBuffer buffer; |
| 1542 | VkBufferViewType viewType; |
| 1543 | VkFormat format; // Optionally specifies format of elements |
| 1544 | VkGpuSize offset; // Specified in bytes |
| 1545 | VkGpuSize range; // View size specified in bytes |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 1546 | } VkBufferViewCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1547 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1548 | typedef struct VkImageSubresource_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1549 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1550 | VkImageAspect aspect; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1551 | uint32_t mipLevel; |
| 1552 | uint32_t arraySlice; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1553 | } VkImageSubresource; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1554 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1555 | typedef struct VkImageSubresourceRange_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1556 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1557 | VkImageAspect aspect; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1558 | uint32_t baseMipLevel; |
| 1559 | uint32_t mipLevels; |
| 1560 | uint32_t baseArraySlice; |
| 1561 | uint32_t arraySize; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1562 | } VkImageSubresourceRange; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1563 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1564 | typedef struct VkEventWaitInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1565 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1566 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_EVENT_WAIT_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1567 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1568 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1569 | uint32_t eventCount; // Number of events to wait on |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1570 | const VkEvent* pEvents; // Array of event objects to wait on |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1571 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1572 | VkWaitEvent waitEvent; // Pipeline event where the wait should happen |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1573 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1574 | uint32_t memBarrierCount; // Number of memory barriers |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1575 | const void** ppMemBarriers; // Array of pointers to memory barriers (any of them can be either VkMemoryBarrier, VkBufferMemoryBarrier, or VkImageMemoryBarrier) |
| 1576 | } VkEventWaitInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1577 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1578 | typedef struct VkPipelineBarrier_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1579 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1580 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_BARRIER |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1581 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1582 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1583 | uint32_t eventCount; // Number of events to wait on |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1584 | const VkPipeEvent* pEvents; // Array of pipeline events to wait on |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1585 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1586 | VkWaitEvent waitEvent; // Pipeline event where the wait should happen |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1587 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1588 | uint32_t memBarrierCount; // Number of memory barriers |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1589 | const void** ppMemBarriers; // Array of pointers to memory barriers (any of them can be either VkMemoryBarrier, VkBufferMemoryBarrier, or VkImageMemoryBarrier) |
| 1590 | } VkPipelineBarrier; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1591 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1592 | typedef struct VkMemoryBarrier_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1593 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1594 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_MEMORY_BARRIER |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1595 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1596 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1597 | VkFlags outputMask; // Outputs the barrier should sync (see VkMemoryOutputFlags) |
| 1598 | VkFlags inputMask; // Inputs the barrier should sync to (see VkMemoryInputFlags) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1599 | } VkMemoryBarrier; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1600 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1601 | typedef struct VkBufferMemoryBarrier_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1602 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1603 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1604 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1605 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1606 | VkFlags outputMask; // Outputs the barrier should sync (see VkMemoryOutputFlags) |
| 1607 | VkFlags inputMask; // Inputs the barrier should sync to (see VkMemoryInputFlags) |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1608 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1609 | VkBuffer buffer; // Buffer to sync |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1610 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1611 | VkGpuSize offset; // Offset within the buffer to sync |
| 1612 | VkGpuSize size; // Amount of bytes to sync |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1613 | } VkBufferMemoryBarrier; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1614 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1615 | typedef struct VkImageMemoryBarrier_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1616 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1617 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1618 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1619 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1620 | VkFlags outputMask; // Outputs the barrier should sync (see VkMemoryOutputFlags) |
| 1621 | VkFlags inputMask; // Inputs the barrier should sync to (see VkMemoryInputFlags) |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1622 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1623 | VkImageLayout oldLayout; // Current layout of the image |
| 1624 | VkImageLayout newLayout; // New layout to transition the image to |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1625 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1626 | VkImage image; // Image to sync |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1627 | |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1628 | VkImageSubresourceRange subresourceRange; // Subresource range to sync |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1629 | } VkImageMemoryBarrier; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1630 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1631 | typedef struct VkImageCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1632 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1633 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1634 | const void* pNext; // Pointer to next structure. |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1635 | VkImageType imageType; |
| 1636 | VkFormat format; |
| 1637 | VkExtent3D extent; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1638 | uint32_t mipLevels; |
| 1639 | uint32_t arraySize; |
| 1640 | uint32_t samples; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1641 | VkImageTiling tiling; |
| 1642 | VkFlags usage; // VkImageUsageFlags |
| 1643 | VkFlags flags; // VkImageCreateFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1644 | } VkImageCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1645 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1646 | typedef struct VkPeerImageOpenInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1647 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1648 | VkImage originalImage; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1649 | } VkPeerImageOpenInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1650 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1651 | typedef struct VkSubresourceLayout_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1652 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1653 | VkGpuSize offset; // Specified in bytes |
| 1654 | VkGpuSize size; // Specified in bytes |
| 1655 | VkGpuSize rowPitch; // Specified in bytes |
| 1656 | VkGpuSize depthPitch; // Specified in bytes |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1657 | } VkSubresourceLayout; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1658 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1659 | typedef struct VkImageViewCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1660 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1661 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1662 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1663 | VkImage image; |
| 1664 | VkImageViewType viewType; |
| 1665 | VkFormat format; |
| 1666 | VkChannelMapping channels; |
| 1667 | VkImageSubresourceRange subresourceRange; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1668 | float minLod; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1669 | } VkImageViewCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1670 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1671 | typedef struct VkColorAttachmentViewCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1672 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1673 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_COLOR_ATTACHMENT_VIEW_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1674 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1675 | VkImage image; |
| 1676 | VkFormat format; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1677 | uint32_t mipLevel; |
| 1678 | uint32_t baseArraySlice; |
| 1679 | uint32_t arraySize; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1680 | VkImage msaaResolveImage; |
| 1681 | VkImageSubresourceRange msaaResolveSubResource; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1682 | } VkColorAttachmentViewCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1683 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1684 | typedef struct VkDepthStencilViewCreateInfo_ |
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 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DEPTH_STENCIL_VIEW_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1687 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1688 | VkImage image; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1689 | uint32_t mipLevel; |
| 1690 | uint32_t baseArraySlice; |
| 1691 | uint32_t arraySize; |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1692 | VkImage msaaResolveImage; |
| 1693 | VkImageSubresourceRange msaaResolveSubResource; |
| 1694 | VkFlags flags; // VkDepthStencilViewCreateFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1695 | } VkDepthStencilViewCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1696 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1697 | typedef struct VkColorAttachmentBindInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1698 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1699 | VkColorAttachmentView view; |
| 1700 | VkImageLayout layout; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1701 | } VkColorAttachmentBindInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1702 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1703 | typedef struct VkDepthStencilBindInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1704 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1705 | VkDepthStencilView view; |
| 1706 | VkImageLayout layout; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1707 | } VkDepthStencilBindInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1708 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1709 | typedef struct VkBufferCopy_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1710 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1711 | VkGpuSize srcOffset; // Specified in bytes |
| 1712 | VkGpuSize destOffset; // Specified in bytes |
| 1713 | VkGpuSize copySize; // Specified in bytes |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1714 | } VkBufferCopy; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1715 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1716 | typedef struct VkImageMemoryBindInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1717 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1718 | VkImageSubresource subresource; |
| 1719 | VkOffset3D offset; |
| 1720 | VkExtent3D extent; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1721 | } VkImageMemoryBindInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1722 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1723 | typedef struct VkImageCopy_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1724 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1725 | VkImageSubresource srcSubresource; |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1726 | VkOffset3D srcOffset; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1727 | VkImageSubresource destSubresource; |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1728 | VkOffset3D destOffset; // Specified in pixels for both compressed and uncompressed images |
| 1729 | VkExtent3D extent; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1730 | } VkImageCopy; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1731 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1732 | typedef struct VkImageBlit_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1733 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1734 | VkImageSubresource srcSubresource; |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1735 | VkOffset3D srcOffset; // Specified in pixels for both compressed and uncompressed images |
| 1736 | VkExtent3D srcExtent; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1737 | VkImageSubresource destSubresource; |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1738 | VkOffset3D destOffset; // Specified in pixels for both compressed and uncompressed images |
| 1739 | VkExtent3D destExtent; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1740 | } VkImageBlit; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1741 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1742 | typedef struct VkBufferImageCopy_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1743 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1744 | VkGpuSize bufferOffset; // Specified in bytes |
| 1745 | VkImageSubresource imageSubresource; |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1746 | VkOffset3D imageOffset; // Specified in pixels for both compressed and uncompressed images |
| 1747 | VkExtent3D imageExtent; // Specified in pixels for both compressed and uncompressed images |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1748 | } VkBufferImageCopy; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1749 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1750 | typedef struct VkImageResolve_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1751 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1752 | VkImageSubresource srcSubresource; |
Tony Barbour | 2e64be8 | 2015-04-13 13:11:12 -0600 | [diff] [blame] | 1753 | VkOffset3D srcOffset; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1754 | VkImageSubresource destSubresource; |
Tony Barbour | 2e64be8 | 2015-04-13 13:11:12 -0600 | [diff] [blame] | 1755 | VkOffset3D destOffset; |
| 1756 | VkExtent3D extent; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1757 | } VkImageResolve; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1758 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1759 | typedef struct VkShaderCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1760 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1761 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_SHADER_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1762 | const void* pNext; // Pointer to next structure |
| 1763 | size_t codeSize; // Specified in bytes |
| 1764 | const void* pCode; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1765 | VkFlags flags; // Reserved |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1766 | } VkShaderCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1767 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1768 | typedef struct VkDescriptorSetLayoutBinding_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1769 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1770 | VkDescriptorType descriptorType; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1771 | uint32_t count; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1772 | VkFlags stageFlags; // VkShaderStageFlags |
| 1773 | const VkSampler* pImmutableSamplers; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1774 | } VkDescriptorSetLayoutBinding; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1775 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1776 | typedef struct VkDescriptorSetLayoutCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1777 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1778 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1779 | const void* pNext; // Pointer to next structure |
| 1780 | uint32_t count; // Number of bindings in the descriptor set layout |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1781 | const VkDescriptorSetLayoutBinding* pBinding; // Array of descriptor set layout bindings |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1782 | } VkDescriptorSetLayoutCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1783 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1784 | typedef struct VkDescriptorTypeCount_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1785 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1786 | VkDescriptorType type; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1787 | uint32_t count; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1788 | } VkDescriptorTypeCount; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1789 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1790 | typedef struct VkDescriptorPoolCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1791 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1792 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1793 | const void* pNext; // Pointer to next structure |
| 1794 | uint32_t count; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1795 | const VkDescriptorTypeCount* pTypeCount; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1796 | } VkDescriptorPoolCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1797 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1798 | typedef struct VkLinkConstBuffer_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1799 | { |
| 1800 | uint32_t bufferId; |
| 1801 | size_t bufferSize; |
| 1802 | const void* pBufferData; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1803 | } VkLinkConstBuffer; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1804 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1805 | typedef struct VkSpecializationMapEntry_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1806 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1807 | uint32_t constantId; // The SpecConstant ID specified in the BIL |
| 1808 | uint32_t offset; // Offset of the value in the data block |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1809 | } VkSpecializationMapEntry; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1810 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1811 | typedef struct VkSpecializationInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1812 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1813 | uint32_t mapEntryCount; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1814 | const VkSpecializationMapEntry* pMap; // mapEntryCount entries |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1815 | const void* pData; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1816 | } VkSpecializationInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1817 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1818 | typedef struct VkPipelineShader_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1819 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1820 | VkPipelineShaderStage stage; |
| 1821 | VkShader shader; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1822 | uint32_t linkConstBufferCount; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1823 | const VkLinkConstBuffer* pLinkConstBufferInfo; |
| 1824 | const VkSpecializationInfo* pSpecializationInfo; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1825 | } VkPipelineShader; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1826 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1827 | typedef struct VkComputePipelineCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1828 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1829 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1830 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1831 | VkPipelineShader cs; |
| 1832 | VkFlags flags; // VkPipelineCreateFlags |
| 1833 | VkDescriptorSetLayoutChain setLayoutChain; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1834 | uint32_t localSizeX; |
| 1835 | uint32_t localSizeY; |
| 1836 | uint32_t localSizeZ; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1837 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1838 | } VkComputePipelineCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1839 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1840 | typedef struct VkVertexInputBindingDescription_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1841 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1842 | uint32_t binding; // Vertex buffer binding id |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 1843 | uint32_t strideInBytes; // Distance between vertices in bytes (0 = no advancement) |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1844 | |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1845 | VkVertexInputStepRate stepRate; // Rate at which binding is incremented |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1846 | } VkVertexInputBindingDescription; |
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 VkVertexInputAttributeDescription_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1849 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1850 | uint32_t location; // location of the shader vertex attrib |
| 1851 | uint32_t binding; // Vertex buffer binding id |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1852 | |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1853 | VkFormat format; // format of source data |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1854 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1855 | 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] | 1856 | } VkVertexInputAttributeDescription; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1857 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1858 | typedef struct VkPipelineVertexInputCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1859 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1860 | VkStructureType sType; // Should be VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1861 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1862 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1863 | uint32_t bindingCount; // number of bindings |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1864 | const VkVertexInputBindingDescription* pVertexBindingDescriptions; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1865 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1866 | uint32_t attributeCount; // number of attributes |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1867 | const VkVertexInputAttributeDescription* pVertexAttributeDescriptions; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1868 | } VkPipelineVertexInputCreateInfo; |
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 VkPipelineIaStateCreateInfo_ |
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_PIPELINE_IA_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1873 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1874 | VkPrimitiveTopology topology; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1875 | bool32_t disableVertexReuse; // optional |
| 1876 | bool32_t primitiveRestartEnable; |
| 1877 | uint32_t primitiveRestartIndex; // optional (GL45) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1878 | } VkPipelineIaStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1879 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1880 | typedef struct VkPipelineTessStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1881 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1882 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_TESS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1883 | const void* pNext; // Pointer to next structure |
| 1884 | uint32_t patchControlPoints; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1885 | } VkPipelineTessStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1886 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1887 | typedef struct VkPipelineVpStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1888 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1889 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_VP_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1890 | const void* pNext; // Pointer to next structure |
| 1891 | uint32_t numViewports; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1892 | VkCoordinateOrigin clipOrigin; // optional (GL45) |
| 1893 | VkDepthMode depthMode; // optional (GL45) |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1894 | } VkPipelineVpStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1895 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1896 | typedef struct VkPipelineRsStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1897 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1898 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_RS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1899 | const void* pNext; // Pointer to next structure |
| 1900 | bool32_t depthClipEnable; |
| 1901 | bool32_t rasterizerDiscardEnable; |
| 1902 | bool32_t programPointSize; // optional (GL45) |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1903 | VkCoordinateOrigin pointOrigin; // optional (GL45) |
| 1904 | VkProvokingVertexConvention provokingVertex; // optional (GL45) |
| 1905 | VkFillMode fillMode; // optional (GL45) |
| 1906 | VkCullMode cullMode; |
| 1907 | VkFaceOrientation frontFace; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1908 | } VkPipelineRsStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1909 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1910 | typedef struct VkPipelineMsStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1911 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1912 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_MS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1913 | const void* pNext; // Pointer to next structure |
| 1914 | uint32_t samples; |
| 1915 | bool32_t multisampleEnable; // optional (GL45) |
| 1916 | bool32_t sampleShadingEnable; // optional (GL45) |
| 1917 | float minSampleShading; // optional (GL45) |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1918 | VkSampleMask sampleMask; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1919 | } VkPipelineMsStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1920 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1921 | typedef struct VkPipelineCbAttachmentState_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1922 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1923 | bool32_t blendEnable; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1924 | VkFormat format; |
| 1925 | VkBlend srcBlendColor; |
| 1926 | VkBlend destBlendColor; |
| 1927 | VkBlendFunc blendFuncColor; |
| 1928 | VkBlend srcBlendAlpha; |
| 1929 | VkBlend destBlendAlpha; |
| 1930 | VkBlendFunc blendFuncAlpha; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1931 | uint8_t channelWriteMask; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1932 | } VkPipelineCbAttachmentState; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1933 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1934 | typedef struct VkPipelineCbStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1935 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1936 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_CB_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1937 | const void* pNext; // Pointer to next structure |
| 1938 | bool32_t alphaToCoverageEnable; |
| 1939 | bool32_t logicOpEnable; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1940 | VkLogicOp logicOp; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1941 | uint32_t attachmentCount; // # of pAttachments |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1942 | const VkPipelineCbAttachmentState* pAttachments; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1943 | } VkPipelineCbStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1944 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1945 | typedef struct VkStencilOpState_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1946 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1947 | VkStencilOp stencilFailOp; |
| 1948 | VkStencilOp stencilPassOp; |
| 1949 | VkStencilOp stencilDepthFailOp; |
| 1950 | VkCompareFunc stencilFunc; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1951 | } VkStencilOpState; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1952 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1953 | typedef struct VkPipelineDsStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1954 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1955 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_DS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1956 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1957 | VkFormat format; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1958 | bool32_t depthTestEnable; |
| 1959 | bool32_t depthWriteEnable; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1960 | VkCompareFunc depthFunc; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1961 | bool32_t depthBoundsEnable; // optional (depth_bounds_test) |
| 1962 | bool32_t stencilTestEnable; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1963 | VkStencilOpState front; |
| 1964 | VkStencilOpState back; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1965 | } VkPipelineDsStateCreateInfo; |
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 VkPipelineShaderStageCreateInfo_ |
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_SHADER_STAGE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1970 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1971 | VkPipelineShader shader; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1972 | } VkPipelineShaderStageCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1973 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1974 | typedef struct VkGraphicsPipelineCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1975 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1976 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1977 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1978 | VkFlags flags; // VkPipelineCreateFlags |
| 1979 | VkDescriptorSetLayoutChain pSetLayoutChain; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1980 | } VkGraphicsPipelineCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1981 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1982 | typedef struct VkSamplerCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1983 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 1984 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1985 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1986 | VkTexFilter magFilter; // Filter mode for magnification |
| 1987 | VkTexFilter minFilter; // Filter mode for minifiation |
| 1988 | VkTexMipmapMode mipMode; // Mipmap selection mode |
| 1989 | VkTexAddress addressU; |
| 1990 | VkTexAddress addressV; |
| 1991 | VkTexAddress addressW; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1992 | float mipLodBias; |
| 1993 | uint32_t maxAnisotropy; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1994 | VkCompareFunc compareFunc; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1995 | float minLod; |
| 1996 | float maxLod; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 1997 | VkBorderColorType borderColorType; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1998 | } VkSamplerCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 1999 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2000 | typedef struct VkDynamicVpStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2001 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2002 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DYNAMIC_VP_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2003 | const void* pNext; // Pointer to next structure |
| 2004 | uint32_t viewportAndScissorCount; // number of entries in pViewports and pScissors |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2005 | const VkViewport* pViewports; |
| 2006 | const VkRect* pScissors; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2007 | } VkDynamicVpStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2008 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2009 | typedef struct VkDynamicRsStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2010 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2011 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DYNAMIC_RS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2012 | const void* pNext; // Pointer to next structure |
| 2013 | float depthBias; |
| 2014 | float depthBiasClamp; |
| 2015 | float slopeScaledDepthBias; |
| 2016 | float pointSize; // optional (GL45) - Size of points |
| 2017 | float pointFadeThreshold; // optional (GL45) - Size of point fade threshold |
| 2018 | float lineWidth; // optional (GL45) - Width of lines |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2019 | } VkDynamicRsStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2020 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2021 | typedef struct VkDynamicCbStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2022 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2023 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DYNAMIC_CB_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2024 | const void* pNext; // Pointer to next structure |
| 2025 | float blendConst[4]; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2026 | } VkDynamicCbStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2027 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2028 | typedef struct VkDynamicDsStateCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2029 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2030 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_DYNAMIC_DS_STATE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2031 | const void* pNext; // Pointer to next structure |
| 2032 | float minDepth; // optional (depth_bounds_test) |
| 2033 | float maxDepth; // optional (depth_bounds_test) |
| 2034 | uint32_t stencilReadMask; |
| 2035 | uint32_t stencilWriteMask; |
| 2036 | uint32_t stencilFrontRef; |
| 2037 | uint32_t stencilBackRef; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2038 | } VkDynamicDsStateCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2039 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2040 | typedef struct VkCmdBufferCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2041 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2042 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_CMD_BUFFER_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2043 | const void* pNext; // Pointer to next structure |
| 2044 | uint32_t queueNodeIndex; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2045 | VkFlags flags; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2046 | } VkCmdBufferCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2047 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2048 | typedef struct VkCmdBufferBeginInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2049 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2050 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_CMD_BUFFER_BEGIN_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2051 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2052 | |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2053 | VkFlags flags; // VkCmdBufferBuildFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2054 | } VkCmdBufferBeginInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2055 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2056 | typedef struct VkRenderPassBegin_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2057 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2058 | VkRenderPass renderPass; |
| 2059 | VkFramebuffer framebuffer; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2060 | } VkRenderPassBegin; |
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 VkCmdBufferGraphicsBeginInfo_ |
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_CMD_BUFFER_GRAPHICS_BEGIN_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2065 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2066 | |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2067 | 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] | 2068 | } VkCmdBufferGraphicsBeginInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2069 | |
| 2070 | // 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] | 2071 | typedef union VkClearColorValue_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2072 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2073 | float floatColor[4]; |
| 2074 | uint32_t rawColor[4]; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2075 | } VkClearColorValue; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2076 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2077 | typedef struct VkClearColor_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2078 | { |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2079 | VkClearColorValue color; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2080 | bool32_t useRawValue; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2081 | } VkClearColor; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2082 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2083 | typedef struct VkRenderPassCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2084 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2085 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2086 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2087 | |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2088 | VkRect renderArea; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2089 | uint32_t colorAttachmentCount; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2090 | VkExtent2D extent; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2091 | uint32_t sampleCount; |
| 2092 | uint32_t layers; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2093 | const VkFormat* pColorFormats; |
| 2094 | const VkImageLayout* pColorLayouts; |
| 2095 | const VkAttachmentLoadOp* pColorLoadOps; |
| 2096 | const VkAttachmentStoreOp* pColorStoreOps; |
| 2097 | const VkClearColor* pColorLoadClearValues; |
| 2098 | VkFormat depthStencilFormat; |
| 2099 | VkImageLayout depthStencilLayout; |
| 2100 | VkAttachmentLoadOp depthLoadOp; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2101 | float depthLoadClearValue; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2102 | VkAttachmentStoreOp depthStoreOp; |
| 2103 | VkAttachmentLoadOp stencilLoadOp; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2104 | uint32_t stencilLoadClearValue; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2105 | VkAttachmentStoreOp stencilStoreOp; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2106 | } VkRenderPassCreateInfo; |
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 VkEventCreateInfo_ |
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_EVENT_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2111 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2112 | VkFlags flags; // Reserved |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2113 | } VkEventCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2114 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2115 | typedef struct VkFenceCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2116 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2117 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_FENCE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2118 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2119 | VkFenceCreateFlags flags; // VkFenceCreateFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2120 | } VkFenceCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2121 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2122 | typedef struct VkSemaphoreCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2123 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2124 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2125 | const void* pNext; // Pointer to next structure |
| 2126 | uint32_t initialCount; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2127 | VkFlags flags; // VkSemaphoreCreateFlags |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2128 | } VkSemaphoreCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2129 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2130 | typedef struct VkSemaphoreOpenInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2131 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2132 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_SEMAPHORE_OPEN_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2133 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2134 | VkSemaphore sharedSemaphore; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2135 | } VkSemaphoreOpenInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2136 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2137 | typedef struct VkPipelineStatisticsData_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2138 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2139 | uint64_t fsInvocations; // Fragment shader invocations |
| 2140 | uint64_t cPrimitives; // Clipper primitives |
| 2141 | uint64_t cInvocations; // Clipper invocations |
| 2142 | uint64_t vsInvocations; // Vertex shader invocations |
| 2143 | uint64_t gsInvocations; // Geometry shader invocations |
| 2144 | uint64_t gsPrimitives; // Geometry shader primitives |
| 2145 | uint64_t iaPrimitives; // Input primitives |
| 2146 | uint64_t iaVertices; // Input vertices |
| 2147 | uint64_t tcsInvocations; // Tessellation control shader invocations |
| 2148 | uint64_t tesInvocations; // Tessellation evaluation shader invocations |
| 2149 | uint64_t csInvocations; // Compute shader invocations |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2150 | } VkPipelineStatisticsData; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2151 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2152 | typedef struct VkQueryPoolCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2153 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2154 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2155 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2156 | VkQueryType queryType; |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2157 | uint32_t slots; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2158 | } VkQueryPoolCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2159 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2160 | typedef struct VkFramebufferCreateInfo_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2161 | { |
Courtney Goeltzenleuchter | 548c4bc | 2015-04-10 16:34:21 -0600 | [diff] [blame] | 2162 | VkStructureType sType; // Must be VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2163 | const void* pNext; // Pointer to next structure |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2164 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2165 | uint32_t colorAttachmentCount; |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2166 | const VkColorAttachmentBindInfo* pColorAttachments; |
| 2167 | const VkDepthStencilBindInfo* pDepthStencilAttachment; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2168 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2169 | uint32_t sampleCount; |
| 2170 | uint32_t width; |
| 2171 | uint32_t height; |
| 2172 | uint32_t layers; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2173 | } VkFramebufferCreateInfo; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2174 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2175 | typedef struct VkDrawIndirectCmd_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2176 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2177 | uint32_t vertexCount; |
| 2178 | uint32_t instanceCount; |
| 2179 | uint32_t firstVertex; |
| 2180 | uint32_t firstInstance; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2181 | } VkDrawIndirectCmd; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2182 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2183 | typedef struct VkDrawIndexedIndirectCmd_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2184 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2185 | uint32_t indexCount; |
| 2186 | uint32_t instanceCount; |
| 2187 | uint32_t firstIndex; |
| 2188 | int32_t vertexOffset; |
| 2189 | uint32_t firstInstance; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2190 | } VkDrawIndexedIndirectCmd; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2191 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2192 | typedef struct VkDispatchIndirectCmd_ |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2193 | { |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 2194 | uint32_t x; |
| 2195 | uint32_t y; |
| 2196 | uint32_t z; |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2197 | } VkDispatchIndirectCmd; |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2198 | |
| 2199 | // ------------------------------------------------------------------------------------------------ |
| 2200 | // API functions |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2201 | typedef VkResult (VKAPI *PFN_vkCreateInstance)(const VkInstanceCreateInfo* pCreateInfo, VkInstance* pInstance); |
| 2202 | typedef VkResult (VKAPI *PFN_vkDestroyInstance)(VkInstance instance); |
| 2203 | typedef VkResult (VKAPI *PFN_vkEnumerateGpus)(VkInstance instance, uint32_t maxGpus, uint32_t* pGpuCount, VkPhysicalGpu* pGpus); |
| 2204 | 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] | 2205 | typedef void * (VKAPI *PFN_vkGetProcAddr)(VkPhysicalGpu gpu, const char * pName); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2206 | typedef VkResult (VKAPI *PFN_vkCreateDevice)(VkPhysicalGpu gpu, const VkDeviceCreateInfo* pCreateInfo, VkDevice* pDevice); |
| 2207 | typedef VkResult (VKAPI *PFN_vkDestroyDevice)(VkDevice device); |
Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 2208 | typedef VkResult (VKAPI *PFN_vkGetGlobalExtensionInfo)(VkExtensionInfoType infoType, uint32_t extensionIndex, size_t* pDataSize, void* pData); |
Tobin Ehlis | 0193901 | 2015-04-16 12:51:37 -0600 | [diff] [blame] | 2209 | typedef VkResult (VKAPI *PFN_vkGetPhysicalDeviceExtensionInfo)(VkPhysicalGpu gpu, VkExtensionInfoType infoType, uint32_t extensionIndex, size_t* pDataSize, void* pData); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2210 | typedef VkResult (VKAPI *PFN_vkEnumerateLayers)(VkPhysicalGpu gpu, size_t maxLayerCount, size_t maxStringSize, size_t* pOutLayerCount, char* const* pOutLayers, void* pReserved); |
| 2211 | typedef VkResult (VKAPI *PFN_vkGetDeviceQueue)(VkDevice device, uint32_t queueNodeIndex, uint32_t queueIndex, VkQueue* pQueue); |
| 2212 | typedef VkResult (VKAPI *PFN_vkQueueSubmit)(VkQueue queue, uint32_t cmdBufferCount, const VkCmdBuffer* pCmdBuffers, VkFence fence); |
| 2213 | typedef VkResult (VKAPI *PFN_vkQueueAddMemReference)(VkQueue queue, VkGpuMemory mem); |
| 2214 | typedef VkResult (VKAPI *PFN_vkQueueRemoveMemReference)(VkQueue queue, VkGpuMemory mem); |
| 2215 | typedef VkResult (VKAPI *PFN_vkQueueWaitIdle)(VkQueue queue); |
| 2216 | typedef VkResult (VKAPI *PFN_vkDeviceWaitIdle)(VkDevice device); |
| 2217 | typedef VkResult (VKAPI *PFN_vkAllocMemory)(VkDevice device, const VkMemoryAllocInfo* pAllocInfo, VkGpuMemory* pMem); |
| 2218 | typedef VkResult (VKAPI *PFN_vkFreeMemory)(VkGpuMemory mem); |
| 2219 | typedef VkResult (VKAPI *PFN_vkSetMemoryPriority)(VkGpuMemory mem, VkMemoryPriority priority); |
| 2220 | typedef VkResult (VKAPI *PFN_vkMapMemory)(VkGpuMemory mem, VkFlags flags, void** ppData); |
| 2221 | typedef VkResult (VKAPI *PFN_vkUnmapMemory)(VkGpuMemory mem); |
| 2222 | typedef VkResult (VKAPI *PFN_vkPinSystemMemory)(VkDevice device, const void* pSysMem, size_t memSize, VkGpuMemory* pMem); |
| 2223 | typedef VkResult (VKAPI *PFN_vkGetMultiGpuCompatibility)(VkPhysicalGpu gpu0, VkPhysicalGpu gpu1, VkGpuCompatibilityInfo* pInfo); |
| 2224 | typedef VkResult (VKAPI *PFN_vkOpenSharedMemory)(VkDevice device, const VkMemoryOpenInfo* pOpenInfo, VkGpuMemory* pMem); |
| 2225 | typedef VkResult (VKAPI *PFN_vkOpenSharedSemaphore)(VkDevice device, const VkSemaphoreOpenInfo* pOpenInfo, VkSemaphore* pSemaphore); |
| 2226 | typedef VkResult (VKAPI *PFN_vkOpenPeerMemory)(VkDevice device, const VkPeerMemoryOpenInfo* pOpenInfo, VkGpuMemory* pMem); |
| 2227 | typedef VkResult (VKAPI *PFN_vkOpenPeerImage)(VkDevice device, const VkPeerImageOpenInfo* pOpenInfo, VkImage* pImage, VkGpuMemory* pMem); |
| 2228 | typedef VkResult (VKAPI *PFN_vkDestroyObject)(VkObject object); |
| 2229 | typedef VkResult (VKAPI *PFN_vkGetObjectInfo)(VkBaseObject object, VkObjectInfoType infoType, size_t* pDataSize, void* pData); |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 2230 | typedef VkResult (VKAPI *PFN_vkQueueBindObjectMemory)(VkQueue queue, VkObject object, uint32_t allocationIdx, VkGpuMemory mem, VkGpuSize offset); |
| 2231 | typedef VkResult (VKAPI *PFN_vkQueueBindObjectMemoryRange)(VkQueue queue, VkObject object, uint32_t allocationIdx, VkGpuSize rangeOffset,VkGpuSize rangeSize, VkGpuMemory mem, VkGpuSize memOffset); |
| 2232 | typedef VkResult (VKAPI *PFN_vkQueueBindImageMemoryRange)(VkQueue queue, VkImage image, uint32_t allocationIdx, const VkImageMemoryBindInfo* bindInfo, VkGpuMemory mem, VkGpuSize memOffset); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2233 | typedef VkResult (VKAPI *PFN_vkCreateFence)(VkDevice device, const VkFenceCreateInfo* pCreateInfo, VkFence* pFence); |
| 2234 | typedef VkResult (VKAPI *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount, VkFence* pFences); |
| 2235 | typedef VkResult (VKAPI *PFN_vkGetFenceStatus)(VkFence fence); |
| 2236 | typedef VkResult (VKAPI *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, bool32_t waitAll, uint64_t timeout); |
| 2237 | typedef VkResult (VKAPI *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, VkSemaphore* pSemaphore); |
| 2238 | typedef VkResult (VKAPI *PFN_vkQueueSignalSemaphore)(VkQueue queue, VkSemaphore semaphore); |
| 2239 | typedef VkResult (VKAPI *PFN_vkQueueWaitSemaphore)(VkQueue queue, VkSemaphore semaphore); |
| 2240 | typedef VkResult (VKAPI *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo* pCreateInfo, VkEvent* pEvent); |
| 2241 | typedef VkResult (VKAPI *PFN_vkGetEventStatus)(VkEvent event); |
| 2242 | typedef VkResult (VKAPI *PFN_vkSetEvent)(VkEvent event); |
| 2243 | typedef VkResult (VKAPI *PFN_vkResetEvent)(VkEvent event); |
| 2244 | typedef VkResult (VKAPI *PFN_vkCreateQueryPool)(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, VkQueryPool* pQueryPool); |
| 2245 | typedef VkResult (VKAPI *PFN_vkGetQueryPoolResults)(VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, size_t* pDataSize, void* pData); |
| 2246 | typedef VkResult (VKAPI *PFN_vkGetFormatInfo)(VkDevice device, VkFormat format, VkFormatInfoType infoType, size_t* pDataSize, void* pData); |
| 2247 | typedef VkResult (VKAPI *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkBuffer* pBuffer); |
| 2248 | typedef VkResult (VKAPI *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, VkBufferView* pView); |
| 2249 | typedef VkResult (VKAPI *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo* pCreateInfo, VkImage* pImage); |
| 2250 | typedef VkResult (VKAPI *PFN_vkGetImageSubresourceInfo)(VkImage image, const VkImageSubresource* pSubresource, VkSubresourceInfoType infoType, size_t* pDataSize, void* pData); |
| 2251 | typedef VkResult (VKAPI *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, VkImageView* pView); |
| 2252 | typedef VkResult (VKAPI *PFN_vkCreateColorAttachmentView)(VkDevice device, const VkColorAttachmentViewCreateInfo* pCreateInfo, VkColorAttachmentView* pView); |
| 2253 | typedef VkResult (VKAPI *PFN_vkCreateDepthStencilView)(VkDevice device, const VkDepthStencilViewCreateInfo* pCreateInfo, VkDepthStencilView* pView); |
| 2254 | typedef VkResult (VKAPI *PFN_vkCreateShader)(VkDevice device, const VkShaderCreateInfo* pCreateInfo, VkShader* pShader); |
| 2255 | typedef VkResult (VKAPI *PFN_vkCreateGraphicsPipeline)(VkDevice device, const VkGraphicsPipelineCreateInfo* pCreateInfo, VkPipeline* pPipeline); |
| 2256 | typedef VkResult (VKAPI *PFN_vkCreateGraphicsPipelineDerivative)(VkDevice device, const VkGraphicsPipelineCreateInfo* pCreateInfo, VkPipeline basePipeline, VkPipeline* pPipeline); |
| 2257 | typedef VkResult (VKAPI *PFN_vkCreateComputePipeline)(VkDevice device, const VkComputePipelineCreateInfo* pCreateInfo, VkPipeline* pPipeline); |
| 2258 | typedef VkResult (VKAPI *PFN_vkStorePipeline)(VkPipeline pipeline, size_t* pDataSize, void* pData); |
| 2259 | typedef VkResult (VKAPI *PFN_vkLoadPipeline)(VkDevice device, size_t dataSize, const void* pData, VkPipeline* pPipeline); |
| 2260 | typedef VkResult (VKAPI *PFN_vkLoadPipelineDerivative)(VkDevice device, size_t dataSize, const void* pData, VkPipeline basePipeline, VkPipeline* pPipeline); |
| 2261 | typedef VkResult (VKAPI *PFN_vkCreateSampler)(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, VkSampler* pSampler); |
| 2262 | typedef VkResult (VKAPI *PFN_vkCreateDescriptorSetLayout)(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, VkDescriptorSetLayout* pSetLayout); |
| 2263 | typedef VkResult (VKAPI *PFN_vkCreateDescriptorSetLayoutChain)(VkDevice device, uint32_t setLayoutArrayCount, const VkDescriptorSetLayout* pSetLayoutArray, VkDescriptorSetLayoutChain* pLayoutChain); |
| 2264 | typedef VkResult (VKAPI *PFN_vkBeginDescriptorPoolUpdate)(VkDevice device, VkDescriptorUpdateMode updateMode); |
| 2265 | typedef VkResult (VKAPI *PFN_vkEndDescriptorPoolUpdate)(VkDevice device, VkCmdBuffer cmd); |
| 2266 | typedef VkResult (VKAPI *PFN_vkCreateDescriptorPool)(VkDevice device, VkDescriptorPoolUsage poolUsage, uint32_t maxSets, const VkDescriptorPoolCreateInfo* pCreateInfo, VkDescriptorPool* pDescriptorPool); |
| 2267 | typedef VkResult (VKAPI *PFN_vkResetDescriptorPool)(VkDescriptorPool descriptorPool); |
| 2268 | 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] | 2269 | typedef void (VKAPI *PFN_vkClearDescriptorSets)(VkDescriptorPool descriptorPool, uint32_t count, const VkDescriptorSet* pDescriptorSets); |
| 2270 | 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] | 2271 | typedef VkResult (VKAPI *PFN_vkCreateDynamicViewportState)(VkDevice device, const VkDynamicVpStateCreateInfo* pCreateInfo, VkDynamicVpState* pState); |
| 2272 | typedef VkResult (VKAPI *PFN_vkCreateDynamicRasterState)(VkDevice device, const VkDynamicRsStateCreateInfo* pCreateInfo, VkDynamicRsState* pState); |
| 2273 | typedef VkResult (VKAPI *PFN_vkCreateDynamicColorBlendState)(VkDevice device, const VkDynamicCbStateCreateInfo* pCreateInfo, VkDynamicCbState* pState); |
| 2274 | typedef VkResult (VKAPI *PFN_vkCreateDynamicDepthStencilState)(VkDevice device, const VkDynamicDsStateCreateInfo* pCreateInfo, VkDynamicDsState* pState); |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2275 | typedef VkResult (VKAPI *PFN_vkCreateCommandBuffer)(VkDevice device, const VkCmdBufferCreateInfo* pCreateInfo, VkCmdBuffer* pCmdBuffer); |
| 2276 | typedef VkResult (VKAPI *PFN_vkBeginCommandBuffer)(VkCmdBuffer cmdBuffer, const VkCmdBufferBeginInfo* pBeginInfo); |
| 2277 | typedef VkResult (VKAPI *PFN_vkEndCommandBuffer)(VkCmdBuffer cmdBuffer); |
| 2278 | typedef VkResult (VKAPI *PFN_vkResetCommandBuffer)(VkCmdBuffer cmdBuffer); |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2279 | typedef void (VKAPI *PFN_vkCmdBindPipeline)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline); |
| 2280 | typedef void (VKAPI *PFN_vkCmdBindDynamicStateObject)(VkCmdBuffer cmdBuffer, VkStateBindPoint stateBindPoint, VkDynamicStateObject state); |
| 2281 | typedef void (VKAPI *PFN_vkCmdBindDescriptorSets)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkDescriptorSetLayoutChain layoutChain, uint32_t layoutChainSlot, uint32_t count, const VkDescriptorSet* pDescriptorSets, const uint32_t* pUserData); |
| 2282 | typedef void (VKAPI *PFN_vkCmdBindIndexBuffer)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkGpuSize offset, VkIndexType indexType); |
| 2283 | typedef void (VKAPI *PFN_vkCmdBindVertexBuffer)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkGpuSize offset, uint32_t binding); |
| 2284 | typedef void (VKAPI *PFN_vkCmdDraw)(VkCmdBuffer cmdBuffer, uint32_t firstVertex, uint32_t vertexCount, uint32_t firstInstance, uint32_t instanceCount); |
| 2285 | typedef void (VKAPI *PFN_vkCmdDrawIndexed)(VkCmdBuffer cmdBuffer, uint32_t firstIndex, uint32_t indexCount, int32_t vertexOffset, uint32_t firstInstance, uint32_t instanceCount); |
| 2286 | typedef void (VKAPI *PFN_vkCmdDrawIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkGpuSize offset, uint32_t count, uint32_t stride); |
| 2287 | typedef void (VKAPI *PFN_vkCmdDrawIndexedIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkGpuSize offset, uint32_t count, uint32_t stride); |
| 2288 | typedef void (VKAPI *PFN_vkCmdDispatch)(VkCmdBuffer cmdBuffer, uint32_t x, uint32_t y, uint32_t z); |
| 2289 | typedef void (VKAPI *PFN_vkCmdDispatchIndirect)(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkGpuSize offset); |
| 2290 | typedef void (VKAPI *PFN_vkCmdCopyBuffer)(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkBuffer destBuffer, uint32_t regionCount, const VkBufferCopy* pRegions); |
| 2291 | typedef void (VKAPI *PFN_vkCmdCopyImage)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageCopy* pRegions); |
| 2292 | typedef void (VKAPI *PFN_vkCmdBlitImage)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageBlit* pRegions); |
| 2293 | typedef void (VKAPI *PFN_vkCmdCopyBufferToImage)(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions); |
| 2294 | typedef void (VKAPI *PFN_vkCmdCopyImageToBuffer)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer destBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions); |
| 2295 | typedef void (VKAPI *PFN_vkCmdCloneImageData)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout); |
| 2296 | typedef void (VKAPI *PFN_vkCmdUpdateBuffer)(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkGpuSize destOffset, VkGpuSize dataSize, const uint32_t* pData); |
| 2297 | typedef void (VKAPI *PFN_vkCmdFillBuffer)(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkGpuSize destOffset, VkGpuSize fillSize, uint32_t data); |
| 2298 | typedef void (VKAPI *PFN_vkCmdClearColorImage)(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, VkClearColor color, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); |
| 2299 | typedef void (VKAPI *PFN_vkCmdClearDepthStencil)(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, float depth, uint32_t stencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); |
Tony Barbour | 6865d4a | 2015-04-13 15:02:52 -0600 | [diff] [blame] | 2300 | typedef void (VKAPI *PFN_vkCmdResolveImage)(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageResolve* pRegions); |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2301 | typedef void (VKAPI *PFN_vkCmdSetEvent)(VkCmdBuffer cmdBuffer, VkEvent event, VkPipeEvent pipeEvent); |
| 2302 | typedef void (VKAPI *PFN_vkCmdResetEvent)(VkCmdBuffer cmdBuffer, VkEvent event, VkPipeEvent pipeEvent); |
| 2303 | typedef void (VKAPI *PFN_vkCmdWaitEvents)(VkCmdBuffer cmdBuffer, const VkEventWaitInfo* pWaitInfo); |
| 2304 | typedef void (VKAPI *PFN_vkCmdPipelineBarrier)(VkCmdBuffer cmdBuffer, const VkPipelineBarrier* pBarrier); |
| 2305 | typedef void (VKAPI *PFN_vkCmdBeginQuery)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot, VkFlags flags); |
| 2306 | typedef void (VKAPI *PFN_vkCmdEndQuery)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot); |
| 2307 | typedef void (VKAPI *PFN_vkCmdResetQueryPool)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount); |
| 2308 | typedef void (VKAPI *PFN_vkCmdWriteTimestamp)(VkCmdBuffer cmdBuffer, VkTimestampType timestampType, VkBuffer destBuffer, VkGpuSize destOffset); |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 2309 | typedef void (VKAPI *PFN_vkCmdCopyQueryPoolResults)(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, VkBuffer destBuffer, VkGpuSize destOffset, VkGpuSize destStride, VkFlags flags); |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2310 | typedef void (VKAPI *PFN_vkCmdInitAtomicCounters)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t startCounter, uint32_t counterCount, const uint32_t* pData); |
| 2311 | typedef void (VKAPI *PFN_vkCmdLoadAtomicCounters)(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t startCounter, uint32_t counterCount, VkBuffer srcBuffer, VkGpuSize srcOffset); |
| 2312 | 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] | 2313 | typedef VkResult (VKAPI *PFN_vkCreateFramebuffer)(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, VkFramebuffer* pFramebuffer); |
| 2314 | typedef VkResult (VKAPI *PFN_vkCreateRenderPass)(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, VkRenderPass* pRenderPass); |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2315 | typedef void (VKAPI *PFN_vkCmdBeginRenderPass)(VkCmdBuffer cmdBuffer, const VkRenderPassBegin* pRenderPassBegin); |
| 2316 | typedef void (VKAPI *PFN_vkCmdEndRenderPass)(VkCmdBuffer cmdBuffer, VkRenderPass renderPass); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2317 | |
| 2318 | #ifdef VK_PROTOTYPES |
| 2319 | |
| 2320 | // GPU initialization |
| 2321 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2322 | VkResult VKAPI vkCreateInstance( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2323 | const VkInstanceCreateInfo* pCreateInfo, |
| 2324 | VkInstance* pInstance); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2325 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2326 | VkResult VKAPI vkDestroyInstance( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2327 | VkInstance instance); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2328 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2329 | VkResult VKAPI vkEnumerateGpus( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2330 | VkInstance instance, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2331 | uint32_t maxGpus, |
| 2332 | uint32_t* pGpuCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2333 | VkPhysicalGpu* pGpus); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2334 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2335 | VkResult VKAPI vkGetGpuInfo( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2336 | VkPhysicalGpu gpu, |
| 2337 | VkPhysicalGpuInfoType infoType, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2338 | size_t* pDataSize, |
| 2339 | void* pData); |
| 2340 | |
| 2341 | void * VKAPI vkGetProcAddr( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2342 | VkPhysicalGpu gpu, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2343 | const char* pName); |
| 2344 | |
| 2345 | // Device functions |
| 2346 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2347 | VkResult VKAPI vkCreateDevice( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2348 | VkPhysicalGpu gpu, |
| 2349 | const VkDeviceCreateInfo* pCreateInfo, |
| 2350 | VkDevice* pDevice); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2351 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2352 | VkResult VKAPI vkDestroyDevice( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2353 | VkDevice device); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2354 | |
| 2355 | // Extension discovery functions |
Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 2356 | VkResult VKAPI vkGetGlobalExtensionInfo( |
| 2357 | VkExtensionInfoType infoType, |
| 2358 | uint32_t extensionIndex, |
| 2359 | size_t* pDataSize, |
| 2360 | void* pData); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2361 | |
Tobin Ehlis | 0193901 | 2015-04-16 12:51:37 -0600 | [diff] [blame] | 2362 | VkResult VKAPI vkGetPhysicalDeviceExtensionInfo( |
| 2363 | VkPhysicalGpu gpu, |
| 2364 | VkExtensionInfoType infoType, |
| 2365 | uint32_t extensionIndex, |
| 2366 | size_t* pDataSize, |
| 2367 | void* pData); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2368 | |
| 2369 | // Layer discovery functions |
| 2370 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2371 | VkResult VKAPI vkEnumerateLayers( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2372 | VkPhysicalGpu gpu, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2373 | size_t maxLayerCount, |
| 2374 | size_t maxStringSize, |
| 2375 | size_t* pOutLayerCount, |
| 2376 | char* const* pOutLayers, |
| 2377 | void* pReserved); |
| 2378 | |
| 2379 | // Queue functions |
| 2380 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2381 | VkResult VKAPI vkGetDeviceQueue( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2382 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2383 | uint32_t queueNodeIndex, |
| 2384 | uint32_t queueIndex, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2385 | VkQueue* pQueue); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2386 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2387 | VkResult VKAPI vkQueueSubmit( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2388 | VkQueue queue, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2389 | uint32_t cmdBufferCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2390 | const VkCmdBuffer* pCmdBuffers, |
| 2391 | VkFence fence); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2392 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2393 | VkResult VKAPI vkQueueAddMemReference( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2394 | VkQueue queue, |
| 2395 | VkGpuMemory mem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2396 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2397 | VkResult VKAPI vkQueueRemoveMemReference( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2398 | VkQueue queue, |
| 2399 | VkGpuMemory mem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2400 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2401 | VkResult VKAPI vkQueueWaitIdle( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2402 | VkQueue queue); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2403 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2404 | VkResult VKAPI vkDeviceWaitIdle( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2405 | VkDevice device); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2406 | |
| 2407 | // Memory functions |
| 2408 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2409 | VkResult VKAPI vkAllocMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2410 | VkDevice device, |
| 2411 | const VkMemoryAllocInfo* pAllocInfo, |
| 2412 | VkGpuMemory* pMem); |
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 vkFreeMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2415 | VkGpuMemory mem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2416 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2417 | VkResult VKAPI vkSetMemoryPriority( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2418 | VkGpuMemory mem, |
| 2419 | VkMemoryPriority priority); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2420 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2421 | VkResult VKAPI vkMapMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2422 | VkGpuMemory mem, |
| 2423 | VkFlags flags, // Reserved |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2424 | void** ppData); |
| 2425 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2426 | VkResult VKAPI vkUnmapMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2427 | VkGpuMemory mem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2428 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2429 | VkResult VKAPI vkPinSystemMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2430 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2431 | const void* pSysMem, |
| 2432 | size_t memSize, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2433 | VkGpuMemory* pMem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2434 | |
| 2435 | // Multi-device functions |
| 2436 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2437 | VkResult VKAPI vkGetMultiGpuCompatibility( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2438 | VkPhysicalGpu gpu0, |
| 2439 | VkPhysicalGpu gpu1, |
| 2440 | VkGpuCompatibilityInfo* pInfo); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2441 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2442 | VkResult VKAPI vkOpenSharedMemory( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2443 | VkDevice device, |
| 2444 | const VkMemoryOpenInfo* pOpenInfo, |
| 2445 | VkGpuMemory* pMem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2446 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2447 | VkResult VKAPI vkOpenSharedSemaphore( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2448 | VkDevice device, |
| 2449 | const VkSemaphoreOpenInfo* pOpenInfo, |
| 2450 | VkSemaphore* pSemaphore); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2451 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2452 | VkResult VKAPI vkOpenPeerMemory( |
| 2453 | VkDevice device, |
| 2454 | const VkPeerMemoryOpenInfo* pOpenInfo, |
| 2455 | VkGpuMemory* pMem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2456 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2457 | VkResult VKAPI vkOpenPeerImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2458 | VkDevice device, |
| 2459 | const VkPeerImageOpenInfo* pOpenInfo, |
| 2460 | VkImage* pImage, |
| 2461 | VkGpuMemory* pMem); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2462 | |
| 2463 | // Generic API object functions |
| 2464 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2465 | VkResult VKAPI vkDestroyObject( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2466 | VkObject object); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2467 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2468 | VkResult VKAPI vkGetObjectInfo( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2469 | VkBaseObject object, |
| 2470 | VkObjectInfoType infoType, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2471 | size_t* pDataSize, |
| 2472 | void* pData); |
| 2473 | |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 2474 | // Memory namagement API functions |
| 2475 | |
| 2476 | VkResult VKAPI vkQueueBindObjectMemory( |
| 2477 | VkQueue queue, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2478 | VkObject object, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2479 | uint32_t allocationIdx, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2480 | VkGpuMemory mem, |
| 2481 | VkGpuSize memOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2482 | |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 2483 | VkResult VKAPI vkQueueBindObjectMemoryRange( |
| 2484 | VkQueue queue, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2485 | VkObject object, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2486 | uint32_t allocationIdx, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2487 | VkGpuSize rangeOffset, |
| 2488 | VkGpuSize rangeSize, |
| 2489 | VkGpuMemory mem, |
| 2490 | VkGpuSize memOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2491 | |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 2492 | VkResult VKAPI vkQueueBindImageMemoryRange( |
| 2493 | VkQueue queue, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2494 | VkImage image, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2495 | uint32_t allocationIdx, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2496 | const VkImageMemoryBindInfo* bindInfo, |
| 2497 | VkGpuMemory mem, |
| 2498 | VkGpuSize memOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2499 | |
| 2500 | // Fence functions |
| 2501 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2502 | VkResult VKAPI vkCreateFence( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2503 | VkDevice device, |
| 2504 | const VkFenceCreateInfo* pCreateInfo, |
| 2505 | VkFence* pFence); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2506 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2507 | VkResult VKAPI vkResetFences( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2508 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2509 | uint32_t fenceCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2510 | VkFence* pFences); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2511 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2512 | VkResult VKAPI vkGetFenceStatus( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2513 | VkFence fence); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2514 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2515 | VkResult VKAPI vkWaitForFences( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2516 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2517 | uint32_t fenceCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2518 | const VkFence* pFences, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2519 | bool32_t waitAll, |
| 2520 | uint64_t timeout); // timeout in nanoseconds |
| 2521 | |
| 2522 | // Queue semaphore functions |
| 2523 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2524 | VkResult VKAPI vkCreateSemaphore( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2525 | VkDevice device, |
| 2526 | const VkSemaphoreCreateInfo* pCreateInfo, |
| 2527 | VkSemaphore* pSemaphore); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2528 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2529 | VkResult VKAPI vkQueueSignalSemaphore( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2530 | VkQueue queue, |
| 2531 | VkSemaphore semaphore); |
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 vkQueueWaitSemaphore( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2534 | VkQueue queue, |
| 2535 | VkSemaphore semaphore); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2536 | |
| 2537 | // Event functions |
| 2538 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2539 | VkResult VKAPI vkCreateEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2540 | VkDevice device, |
| 2541 | const VkEventCreateInfo* pCreateInfo, |
| 2542 | VkEvent* pEvent); |
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 vkGetEventStatus( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2545 | VkEvent event); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2546 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2547 | VkResult VKAPI vkSetEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2548 | VkEvent event); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2549 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2550 | VkResult VKAPI vkResetEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2551 | VkEvent event); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2552 | |
| 2553 | // Query functions |
| 2554 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2555 | VkResult VKAPI vkCreateQueryPool( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2556 | VkDevice device, |
| 2557 | const VkQueryPoolCreateInfo* pCreateInfo, |
| 2558 | VkQueryPool* pQueryPool); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2559 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2560 | VkResult VKAPI vkGetQueryPoolResults( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2561 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2562 | uint32_t startQuery, |
| 2563 | uint32_t queryCount, |
| 2564 | size_t* pDataSize, |
| 2565 | void* pData); |
| 2566 | |
| 2567 | // Format capabilities |
| 2568 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2569 | VkResult VKAPI vkGetFormatInfo( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2570 | VkDevice device, |
| 2571 | VkFormat format, |
| 2572 | VkFormatInfoType infoType, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2573 | size_t* pDataSize, |
| 2574 | void* pData); |
| 2575 | |
| 2576 | // Buffer functions |
| 2577 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2578 | VkResult VKAPI vkCreateBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2579 | VkDevice device, |
| 2580 | const VkBufferCreateInfo* pCreateInfo, |
| 2581 | VkBuffer* pBuffer); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2582 | |
| 2583 | // Buffer view functions |
| 2584 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2585 | VkResult VKAPI vkCreateBufferView( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2586 | VkDevice device, |
| 2587 | const VkBufferViewCreateInfo* pCreateInfo, |
| 2588 | VkBufferView* pView); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2589 | |
| 2590 | // Image functions |
| 2591 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2592 | VkResult VKAPI vkCreateImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2593 | VkDevice device, |
| 2594 | const VkImageCreateInfo* pCreateInfo, |
| 2595 | VkImage* pImage); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2596 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2597 | VkResult VKAPI vkGetImageSubresourceInfo( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2598 | VkImage image, |
| 2599 | const VkImageSubresource* pSubresource, |
| 2600 | VkSubresourceInfoType infoType, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2601 | size_t* pDataSize, |
| 2602 | void* pData); |
| 2603 | |
| 2604 | // Image view functions |
| 2605 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2606 | VkResult VKAPI vkCreateImageView( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2607 | VkDevice device, |
| 2608 | const VkImageViewCreateInfo* pCreateInfo, |
| 2609 | VkImageView* pView); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2610 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2611 | VkResult VKAPI vkCreateColorAttachmentView( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2612 | VkDevice device, |
| 2613 | const VkColorAttachmentViewCreateInfo* pCreateInfo, |
| 2614 | VkColorAttachmentView* pView); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2615 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2616 | VkResult VKAPI vkCreateDepthStencilView( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2617 | VkDevice device, |
| 2618 | const VkDepthStencilViewCreateInfo* pCreateInfo, |
| 2619 | VkDepthStencilView* pView); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2620 | |
| 2621 | // Shader functions |
| 2622 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2623 | VkResult VKAPI vkCreateShader( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2624 | VkDevice device, |
| 2625 | const VkShaderCreateInfo* pCreateInfo, |
| 2626 | VkShader* pShader); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2627 | |
| 2628 | // Pipeline functions |
| 2629 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2630 | VkResult VKAPI vkCreateGraphicsPipeline( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2631 | VkDevice device, |
| 2632 | const VkGraphicsPipelineCreateInfo* pCreateInfo, |
| 2633 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2634 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2635 | VkResult VKAPI vkCreateGraphicsPipelineDerivative( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2636 | VkDevice device, |
| 2637 | const VkGraphicsPipelineCreateInfo* pCreateInfo, |
| 2638 | VkPipeline basePipeline, |
| 2639 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2640 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2641 | VkResult VKAPI vkCreateComputePipeline( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2642 | VkDevice device, |
| 2643 | const VkComputePipelineCreateInfo* pCreateInfo, |
| 2644 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2645 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2646 | VkResult VKAPI vkStorePipeline( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2647 | VkPipeline pipeline, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2648 | size_t* pDataSize, |
| 2649 | void* pData); |
| 2650 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2651 | VkResult VKAPI vkLoadPipeline( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2652 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2653 | size_t dataSize, |
| 2654 | const void* pData, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2655 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2656 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2657 | VkResult VKAPI vkLoadPipelineDerivative( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2658 | VkDevice device, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2659 | size_t dataSize, |
| 2660 | const void* pData, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2661 | VkPipeline basePipeline, |
| 2662 | VkPipeline* pPipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2663 | |
| 2664 | // Sampler functions |
| 2665 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2666 | VkResult VKAPI vkCreateSampler( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2667 | VkDevice device, |
| 2668 | const VkSamplerCreateInfo* pCreateInfo, |
| 2669 | VkSampler* pSampler); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2670 | |
| 2671 | // Descriptor set functions |
| 2672 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2673 | VkResult VKAPI vkCreateDescriptorSetLayout( |
| 2674 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2675 | const VkDescriptorSetLayoutCreateInfo* pCreateInfo, |
| 2676 | VkDescriptorSetLayout* pSetLayout); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2677 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2678 | VkResult VKAPI vkCreateDescriptorSetLayoutChain( |
| 2679 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2680 | uint32_t setLayoutArrayCount, |
| 2681 | const VkDescriptorSetLayout* pSetLayoutArray, |
| 2682 | VkDescriptorSetLayoutChain* pLayoutChain); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2683 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2684 | VkResult VKAPI vkBeginDescriptorPoolUpdate( |
| 2685 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2686 | VkDescriptorUpdateMode updateMode); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2687 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2688 | VkResult VKAPI vkEndDescriptorPoolUpdate( |
| 2689 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2690 | VkCmdBuffer cmd); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2691 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2692 | VkResult VKAPI vkCreateDescriptorPool( |
| 2693 | VkDevice device, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2694 | VkDescriptorPoolUsage poolUsage, |
| 2695 | uint32_t maxSets, |
| 2696 | const VkDescriptorPoolCreateInfo* pCreateInfo, |
| 2697 | VkDescriptorPool* pDescriptorPool); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2698 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2699 | VkResult VKAPI vkResetDescriptorPool( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2700 | VkDescriptorPool descriptorPool); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2701 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2702 | VkResult VKAPI vkAllocDescriptorSets( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2703 | VkDescriptorPool descriptorPool, |
| 2704 | VkDescriptorSetUsage setUsage, |
| 2705 | uint32_t count, |
| 2706 | const VkDescriptorSetLayout* pSetLayouts, |
| 2707 | VkDescriptorSet* pDescriptorSets, |
| 2708 | uint32_t* pCount); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2709 | |
| 2710 | void VKAPI vkClearDescriptorSets( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2711 | VkDescriptorPool descriptorPool, |
| 2712 | uint32_t count, |
| 2713 | const VkDescriptorSet* pDescriptorSets); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2714 | |
| 2715 | void VKAPI vkUpdateDescriptors( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2716 | VkDescriptorSet descriptorSet, |
| 2717 | uint32_t updateCount, |
| 2718 | const void** pUpdateArray); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2719 | |
| 2720 | // State object functions |
| 2721 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2722 | VkResult VKAPI vkCreateDynamicViewportState( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2723 | VkDevice device, |
| 2724 | const VkDynamicVpStateCreateInfo* pCreateInfo, |
| 2725 | VkDynamicVpState* pState); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2726 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2727 | VkResult VKAPI vkCreateDynamicRasterState( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2728 | VkDevice device, |
| 2729 | const VkDynamicRsStateCreateInfo* pCreateInfo, |
| 2730 | VkDynamicRsState* pState); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2731 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2732 | VkResult VKAPI vkCreateDynamicColorBlendState( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2733 | VkDevice device, |
| 2734 | const VkDynamicCbStateCreateInfo* pCreateInfo, |
| 2735 | VkDynamicCbState* pState); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2736 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2737 | VkResult VKAPI vkCreateDynamicDepthStencilState( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2738 | VkDevice device, |
| 2739 | const VkDynamicDsStateCreateInfo* pCreateInfo, |
| 2740 | VkDynamicDsState* pState); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2741 | |
| 2742 | // Command buffer functions |
| 2743 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2744 | VkResult VKAPI vkCreateCommandBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2745 | VkDevice device, |
| 2746 | const VkCmdBufferCreateInfo* pCreateInfo, |
| 2747 | VkCmdBuffer* pCmdBuffer); |
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 vkBeginCommandBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2750 | VkCmdBuffer cmdBuffer, |
| 2751 | const VkCmdBufferBeginInfo* pBeginInfo); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2752 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2753 | VkResult VKAPI vkEndCommandBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2754 | VkCmdBuffer cmdBuffer); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2755 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2756 | VkResult VKAPI vkResetCommandBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2757 | VkCmdBuffer cmdBuffer); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2758 | |
| 2759 | // Command buffer building functions |
| 2760 | |
| 2761 | void VKAPI vkCmdBindPipeline( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2762 | VkCmdBuffer cmdBuffer, |
| 2763 | VkPipelineBindPoint pipelineBindPoint, |
| 2764 | VkPipeline pipeline); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2765 | |
| 2766 | void VKAPI vkCmdBindDynamicStateObject( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2767 | VkCmdBuffer cmdBuffer, |
| 2768 | VkStateBindPoint stateBindPoint, |
| 2769 | VkDynamicStateObject dynamicState); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2770 | |
| 2771 | void VKAPI vkCmdBindDescriptorSets( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2772 | VkCmdBuffer cmdBuffer, |
| 2773 | VkPipelineBindPoint pipelineBindPoint, |
| 2774 | VkDescriptorSetLayoutChain layoutChain, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2775 | uint32_t layoutChainSlot, |
| 2776 | uint32_t count, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2777 | const VkDescriptorSet* pDescriptorSets, |
Courtney Goeltzenleuchter | b9776ab | 2015-04-15 15:29:59 -0600 | [diff] [blame] | 2778 | const uint32_t* pUserData); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2779 | |
| 2780 | void VKAPI vkCmdBindIndexBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2781 | VkCmdBuffer cmdBuffer, |
| 2782 | VkBuffer buffer, |
| 2783 | VkGpuSize offset, |
| 2784 | VkIndexType indexType); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2785 | |
| 2786 | void VKAPI vkCmdBindVertexBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2787 | VkCmdBuffer cmdBuffer, |
| 2788 | VkBuffer buffer, |
| 2789 | VkGpuSize offset, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2790 | uint32_t binding); |
| 2791 | |
| 2792 | void VKAPI vkCmdDraw( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2793 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2794 | uint32_t firstVertex, |
| 2795 | uint32_t vertexCount, |
| 2796 | uint32_t firstInstance, |
| 2797 | uint32_t instanceCount); |
| 2798 | |
| 2799 | void VKAPI vkCmdDrawIndexed( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2800 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2801 | uint32_t firstIndex, |
| 2802 | uint32_t indexCount, |
| 2803 | int32_t vertexOffset, |
| 2804 | uint32_t firstInstance, |
| 2805 | uint32_t instanceCount); |
| 2806 | |
| 2807 | void VKAPI vkCmdDrawIndirect( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2808 | VkCmdBuffer cmdBuffer, |
| 2809 | VkBuffer buffer, |
| 2810 | VkGpuSize offset, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2811 | uint32_t count, |
| 2812 | uint32_t stride); |
| 2813 | |
| 2814 | void VKAPI vkCmdDrawIndexedIndirect( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2815 | VkCmdBuffer cmdBuffer, |
| 2816 | VkBuffer buffer, |
| 2817 | VkGpuSize offset, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2818 | uint32_t count, |
| 2819 | uint32_t stride); |
| 2820 | |
| 2821 | void VKAPI vkCmdDispatch( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2822 | VkCmdBuffer cmdBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2823 | uint32_t x, |
| 2824 | uint32_t y, |
| 2825 | uint32_t z); |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2826 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2827 | void VKAPI vkCmdDispatchIndirect( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2828 | VkCmdBuffer cmdBuffer, |
| 2829 | VkBuffer buffer, |
| 2830 | VkGpuSize offset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2831 | |
| 2832 | void VKAPI vkCmdCopyBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2833 | VkCmdBuffer cmdBuffer, |
| 2834 | VkBuffer srcBuffer, |
| 2835 | VkBuffer destBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2836 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2837 | const VkBufferCopy* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2838 | |
| 2839 | void VKAPI vkCmdCopyImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2840 | VkCmdBuffer cmdBuffer, |
| 2841 | VkImage srcImage, |
| 2842 | VkImageLayout srcImageLayout, |
| 2843 | VkImage destImage, |
| 2844 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2845 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2846 | const VkImageCopy* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2847 | |
| 2848 | void VKAPI vkCmdBlitImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2849 | VkCmdBuffer cmdBuffer, |
| 2850 | VkImage srcImage, |
| 2851 | VkImageLayout srcImageLayout, |
| 2852 | VkImage destImage, |
| 2853 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2854 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2855 | const VkImageBlit* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2856 | |
| 2857 | void VKAPI vkCmdCopyBufferToImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2858 | VkCmdBuffer cmdBuffer, |
| 2859 | VkBuffer srcBuffer, |
| 2860 | VkImage destImage, |
| 2861 | VkImageLayout destImageLayout, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2862 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2863 | const VkBufferImageCopy* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2864 | |
| 2865 | void VKAPI vkCmdCopyImageToBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2866 | VkCmdBuffer cmdBuffer, |
| 2867 | VkImage srcImage, |
| 2868 | VkImageLayout srcImageLayout, |
| 2869 | VkBuffer destBuffer, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2870 | uint32_t regionCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2871 | const VkBufferImageCopy* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2872 | |
| 2873 | void VKAPI vkCmdCloneImageData( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2874 | VkCmdBuffer cmdBuffer, |
| 2875 | VkImage srcImage, |
| 2876 | VkImageLayout srcImageLayout, |
| 2877 | VkImage destImage, |
| 2878 | VkImageLayout destImageLayout); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2879 | |
| 2880 | void VKAPI vkCmdUpdateBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2881 | VkCmdBuffer cmdBuffer, |
| 2882 | VkBuffer destBuffer, |
| 2883 | VkGpuSize destOffset, |
| 2884 | VkGpuSize dataSize, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2885 | const uint32_t* pData); |
| 2886 | |
| 2887 | void VKAPI vkCmdFillBuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2888 | VkCmdBuffer cmdBuffer, |
| 2889 | VkBuffer destBuffer, |
| 2890 | VkGpuSize destOffset, |
| 2891 | VkGpuSize fillSize, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2892 | uint32_t data); |
| 2893 | |
| 2894 | void VKAPI vkCmdClearColorImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2895 | VkCmdBuffer cmdBuffer, |
| 2896 | VkImage image, |
| 2897 | VkImageLayout imageLayout, |
| 2898 | VkClearColor color, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2899 | uint32_t rangeCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2900 | const VkImageSubresourceRange* pRanges); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2901 | |
| 2902 | void VKAPI vkCmdClearDepthStencil( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2903 | VkCmdBuffer cmdBuffer, |
| 2904 | VkImage image, |
| 2905 | VkImageLayout imageLayout, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2906 | float depth, |
| 2907 | uint32_t stencil, |
| 2908 | uint32_t rangeCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2909 | const VkImageSubresourceRange* pRanges); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2910 | |
| 2911 | void VKAPI vkCmdResolveImage( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2912 | VkCmdBuffer cmdBuffer, |
| 2913 | VkImage srcImage, |
| 2914 | VkImageLayout srcImageLayout, |
| 2915 | VkImage destImage, |
| 2916 | VkImageLayout destImageLayout, |
Tony Barbour | 6865d4a | 2015-04-13 15:02:52 -0600 | [diff] [blame] | 2917 | uint32_t regionCount, |
| 2918 | const VkImageResolve* pRegions); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2919 | |
| 2920 | void VKAPI vkCmdSetEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2921 | VkCmdBuffer cmdBuffer, |
| 2922 | VkEvent event, |
| 2923 | VkPipeEvent pipeEvent); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2924 | |
| 2925 | void VKAPI vkCmdResetEvent( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2926 | VkCmdBuffer cmdBuffer, |
| 2927 | VkEvent event, |
| 2928 | VkPipeEvent pipeEvent); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2929 | |
| 2930 | void VKAPI vkCmdWaitEvents( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2931 | VkCmdBuffer cmdBuffer, |
| 2932 | const VkEventWaitInfo* pWaitInfo); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2933 | |
| 2934 | void VKAPI vkCmdPipelineBarrier( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2935 | VkCmdBuffer cmdBuffer, |
| 2936 | const VkPipelineBarrier* pBarrier); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2937 | |
| 2938 | void VKAPI vkCmdBeginQuery( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2939 | VkCmdBuffer cmdBuffer, |
| 2940 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2941 | uint32_t slot, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2942 | VkFlags flags); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2943 | |
| 2944 | void VKAPI vkCmdEndQuery( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2945 | VkCmdBuffer cmdBuffer, |
| 2946 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2947 | uint32_t slot); |
| 2948 | |
| 2949 | void VKAPI vkCmdResetQueryPool( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2950 | VkCmdBuffer cmdBuffer, |
| 2951 | VkQueryPool queryPool, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2952 | uint32_t startQuery, |
| 2953 | uint32_t queryCount); |
| 2954 | |
| 2955 | void VKAPI vkCmdWriteTimestamp( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2956 | VkCmdBuffer cmdBuffer, |
| 2957 | VkTimestampType timestampType, |
| 2958 | VkBuffer destBuffer, |
| 2959 | VkGpuSize destOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2960 | |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 2961 | void VKAPI vkCmdCopyQueryPoolResults( |
| 2962 | VkCmdBuffer cmdBuffer, |
| 2963 | VkQueryPool queryPool, |
| 2964 | uint32_t startQuery, |
| 2965 | uint32_t queryCount, |
| 2966 | VkBuffer destBuffer, |
| 2967 | VkGpuSize destOffset, |
| 2968 | VkGpuSize destStride, |
| 2969 | VkFlags flags); // VkQueryResultFlags |
| 2970 | |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2971 | void VKAPI vkCmdInitAtomicCounters( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2972 | VkCmdBuffer cmdBuffer, |
| 2973 | VkPipelineBindPoint pipelineBindPoint, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2974 | uint32_t startCounter, |
| 2975 | uint32_t counterCount, |
| 2976 | const uint32_t* pData); |
| 2977 | |
| 2978 | void VKAPI vkCmdLoadAtomicCounters( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2979 | VkCmdBuffer cmdBuffer, |
| 2980 | VkPipelineBindPoint pipelineBindPoint, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2981 | uint32_t startCounter, |
| 2982 | uint32_t counterCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2983 | VkBuffer srcBuffer, |
| 2984 | VkGpuSize srcOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2985 | |
| 2986 | void VKAPI vkCmdSaveAtomicCounters( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2987 | VkCmdBuffer cmdBuffer, |
| 2988 | VkPipelineBindPoint pipelineBindPoint, |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2989 | uint32_t startCounter, |
| 2990 | uint32_t counterCount, |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2991 | VkBuffer destBuffer, |
| 2992 | VkGpuSize destOffset); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2993 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2994 | VkResult VKAPI vkCreateFramebuffer( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 2995 | VkDevice device, |
| 2996 | const VkFramebufferCreateInfo* pCreateInfo, |
| 2997 | VkFramebuffer* pFramebuffer); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 2998 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 2999 | VkResult VKAPI vkCreateRenderPass( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3000 | VkDevice device, |
| 3001 | const VkRenderPassCreateInfo* pCreateInfo, |
| 3002 | VkRenderPass* pRenderPass); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3003 | |
| 3004 | void VKAPI vkCmdBeginRenderPass( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3005 | VkCmdBuffer cmdBuffer, |
| 3006 | const VkRenderPassBegin* pRenderPassBegin); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3007 | |
| 3008 | void VKAPI vkCmdEndRenderPass( |
Courtney Goeltzenleuchter | aa58f67 | 2015-04-10 18:00:50 -0600 | [diff] [blame] | 3009 | VkCmdBuffer cmdBuffer, |
| 3010 | VkRenderPass renderPass); |
Courtney Goeltzenleuchter | 64d1a71 | 2015-04-08 18:04:29 -0600 | [diff] [blame] | 3011 | |
| 3012 | #endif // VK_PROTOTYPES |
| 3013 | |
| 3014 | #ifdef __cplusplus |
| 3015 | } // extern "C" |
| 3016 | #endif // __cplusplus |
| 3017 | |
| 3018 | #endif // __VULKAN_H__ |