Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1 | // Copyright (c) 2015 The Khronos Group Inc. |
| 2 | // |
| 3 | // Permission is hereby granted, free of charge, to any person obtaining a |
| 4 | // copy of this software and/or associated documentation files (the |
| 5 | // "Materials"), to deal in the Materials without restriction, including |
| 6 | // without limitation the rights to use, copy, modify, merge, publish, |
| 7 | // distribute, sublicense, and/or sell copies of the Materials, and to |
| 8 | // permit persons to whom the Materials are furnished to do so, subject to |
| 9 | // the following conditions: |
| 10 | // |
| 11 | // The above copyright notice and this permission notice shall be included |
| 12 | // in all copies or substantial portions of the Materials. |
| 13 | // |
| 14 | // THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 15 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 16 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 17 | // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 18 | // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 19 | // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 20 | // MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
| 21 | |
| 22 | import platform "platform.api" |
| 23 | |
| 24 | /////////////// |
| 25 | // Constants // |
| 26 | /////////////// |
| 27 | |
| 28 | // API version (major.minor.patch) |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 29 | define VERSION_MAJOR 1 |
| 30 | define VERSION_MINOR 0 |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 31 | define VERSION_PATCH 54 |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 32 | |
| 33 | // API limits |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 34 | define VK_MAX_PHYSICAL_DEVICE_NAME_SIZE 256 |
| 35 | define VK_UUID_SIZE 16 |
| 36 | define VK_MAX_EXTENSION_NAME_SIZE 256 |
| 37 | define VK_MAX_DESCRIPTION_SIZE 256 |
| 38 | define VK_MAX_MEMORY_TYPES 32 |
| 39 | define VK_MAX_MEMORY_HEAPS 16 /// The maximum number of unique memory heaps, each of which supporting 1 or more memory types. |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 40 | define VK_MAX_DEVICE_GROUP_SIZE_KHX 32 |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 41 | //@extension("VK_KHR_external_memory_capabilities") |
| 42 | define VK_LUID_SIZE_KHR 8 |
| 43 | //@extension("VK_KHR_external_memory") |
| 44 | define VK_QUEUE_FAMILY_EXTERNAL_KHR -2 |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 45 | |
| 46 | // API keywords |
| 47 | define VK_TRUE 1 |
| 48 | define VK_FALSE 0 |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 49 | |
| 50 | // API keyword, but needs special handling by some templates |
| 51 | define NULL_HANDLE 0 |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 52 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 53 | // 1 |
Jesse Hall | 33faaad | 2016-01-24 21:00:49 -0800 | [diff] [blame] | 54 | @extension("VK_KHR_surface") define VK_KHR_SURFACE_SPEC_VERSION 25 |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 55 | @extension("VK_KHR_surface") define VK_KHR_SURFACE_EXTENSION_NAME "VK_KHR_surface" |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 56 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 57 | // 2 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 58 | @extension("VK_KHR_swapchain") define VK_KHR_SWAPCHAIN_SPEC_VERSION 68 |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 59 | @extension("VK_KHR_swapchain") define VK_KHR_SWAPCHAIN_EXTENSION_NAME "VK_KHR_swapchain" |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 60 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 61 | // 3 |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 62 | @extension("VK_KHR_display") define VK_KHR_DISPLAY_SPEC_VERSION 21 |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 63 | @extension("VK_KHR_display") define VK_KHR_DISPLAY_EXTENSION_NAME "VK_KHR_display" |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 64 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 65 | // 4 |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 66 | @extension("VK_KHR_display_swapchain") define VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION 9 |
Jesse Hall | 0e74f00 | 2015-11-30 11:37:59 -0800 | [diff] [blame] | 67 | @extension("VK_KHR_display_swapchain") define VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME "VK_KHR_display_swapchain" |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 68 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 69 | // 5 |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 70 | @extension("VK_KHR_xlib_surface") define VK_KHR_XLIB_SURFACE_SPEC_VERSION 6 |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 71 | @extension("VK_KHR_xlib_surface") define VK_KHR_XLIB_SURFACE_NAME "VK_KHR_xlib_surface" |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 72 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 73 | // 6 |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 74 | @extension("VK_KHR_xcb_surface") define VK_KHR_XCB_SURFACE_SPEC_VERSION 6 |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 75 | @extension("VK_KHR_xcb_surface") define VK_KHR_XCB_SURFACE_NAME "VK_KHR_xcb_surface" |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 76 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 77 | // 7 |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 78 | @extension("VK_KHR_wayland_surface") define VK_KHR_WAYLAND_SURFACE_SPEC_VERSION 6 |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 79 | @extension("VK_KHR_wayland_surface") define VK_KHR_WAYLAND_SURFACE_NAME "VK_KHR_wayland_surface" |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 80 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 81 | // 8 |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 82 | @extension("VK_KHR_mir_surface") define VK_KHR_MIR_SURFACE_SPEC_VERSION 4 |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 83 | @extension("VK_KHR_mir_surface") define VK_KHR_MIR_SURFACE_NAME "VK_KHR_mir_surface" |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 84 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 85 | // 9 |
Jesse Hall | 33faaad | 2016-01-24 21:00:49 -0800 | [diff] [blame] | 86 | @extension("VK_KHR_android_surface") define VK_KHR_ANDROID_SURFACE_SPEC_VERSION 6 |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 87 | @extension("VK_KHR_android_surface") define VK_KHR_ANDROID_SURFACE_NAME "VK_KHR_android_surface" |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 88 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 89 | // 10 |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 90 | @extension("VK_KHR_win32_surface") define VK_KHR_WIN32_SURFACE_SPEC_VERSION 6 |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 91 | @extension("VK_KHR_win32_surface") define VK_KHR_WIN32_SURFACE_NAME "VK_KHR_win32_surface" |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 92 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 93 | // 11 |
Chris Forbes | 1d4e554 | 2017-02-15 19:38:50 +1300 | [diff] [blame] | 94 | @extension("VK_ANDROID_native_buffer") define VK_ANDROID_NATIVE_BUFFER_SPEC_VERSION 7 |
Chia-I Wu | b262ddc | 2016-03-22 07:38:20 +0800 | [diff] [blame] | 95 | @extension("VK_ANDROID_native_buffer") define VK_ANDROID_NATIVE_BUFFER_NAME "VK_ANDROID_native_buffer" |
| 96 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 97 | // 12 |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 98 | @extension("VK_EXT_debug_report") define VK_EXT_DEBUG_REPORT_SPEC_VERSION 8 |
Jesse Hall | 715b86a | 2016-01-16 16:34:29 -0800 | [diff] [blame] | 99 | @extension("VK_EXT_debug_report") define VK_EXT_DEBUG_REPORT_NAME "VK_EXT_debug_report" |
| 100 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 101 | // 13 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 102 | @extension("VK_NV_glsl_shader") define VK_NV_GLSL_SHADER_SPEC_VERSION 1 |
| 103 | @extension("VK_NV_glsl_shader") define VK_NV_GLSL_SHADER_NAME "VK_NV_glsl_shader" |
| 104 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 105 | // 15 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 106 | @extension("VK_KHR_sampler_mirror_clamp_to_edge") define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_SPEC_VERSION 1 |
| 107 | @extension("VK_KHR_sampler_mirror_clamp_to_edge") define VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_NAME "VK_KHR_sampler_mirror_clamp_to_edge" |
| 108 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 109 | // 16 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 110 | @extension("VK_IMG_filter_cubic") define VK_IMG_FILTER_CUBIC_SPEC_VERSION 1 |
| 111 | @extension("VK_IMG_filter_cubic") define VK_IMG_FILTER_CUBIC_NAME "VK_IMG_filter_cubic" |
| 112 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 113 | // 19 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 114 | @extension("VK_AMD_rasterization_order") define VK_AMD_RASTERIZATION_ORDER_SPEC_VERSION 1 |
| 115 | @extension("VK_AMD_rasterization_order") define VK_AMD_RASTERIZATION_ORDER_NAME "VK_AMD_rasterization_order" |
| 116 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 117 | // 21 |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 118 | @extension("VK_AMD_shader_trinary_minmax") define VK_AMD_SHADER_TRINARY_MINMAX_SPEC_VERSION 1 |
| 119 | @extension("VK_AMD_shader_trinary_minmax") define VK_AMD_SHADER_TRINARY_MINMAX_EXTENSION_NAME "VK_AMD_shader_trinary_minmax" |
| 120 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 121 | // 22 |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 122 | @extension("VK_AMD_shader_explicit_vertex_parameter") define VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_SPEC_VERSION 1 |
| 123 | @extension("VK_AMD_shader_explicit_vertex_parameter") define VK_AMD_SHADER_EXPLICIT_VERTEX_PARAMETER_EXTENSION_NAME "VK_AMD_shader_explicit_vertex_parameter" |
| 124 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 125 | // 23 |
Jesse Hall | 8f49fcb | 2017-03-06 16:02:58 -0800 | [diff] [blame] | 126 | @extension("VK_EXT_debug_marker") define VK_EXT_DEBUG_MARKER_SPEC_VERSION 4 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 127 | @extension("VK_EXT_debug_marker") define VK_EXT_DEBUG_MARKER_NAME "VK_EXT_debug_marker" |
| 128 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 129 | // 26 |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 130 | @extension("VK_AMD_gcn_shader") define VK_AMD_GCN_SHADER_SPEC_VERSION 1 |
| 131 | @extension("VK_AMD_gcn_shader") define VK_AMD_GCN_SHADER_EXTENSION_NAME "VK_AMD_gcn_shader" |
| 132 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 133 | // 27 |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 134 | @extension("VK_NV_dedicated_allocation") define VK_NV_DEDICATED_ALLOCATION_SPEC_VERSION 1 |
| 135 | @extension("VK_NV_dedicated_allocation") define VK_NV_DEDICATED_ALLOCATION_EXTENSION_NAME "VK_NV_dedicated_allocation" |
| 136 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 137 | // 28 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 138 | @extension("VK_IMG_format_pvrtc") define VK_IMG_FORMAT_PVRTC_SPEC_VERSION 1 |
| 139 | @extension("VK_IMG_format_pvrtc") define VK_IMG_FORMAT_PVRTC_EXTENSION_NAME "VK_IMG_format_pvrtc" |
| 140 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 141 | // 34 |
| 142 | @extension("VK_AMD_draw_indirect_count") define VK_AMD_DRAW_INDIRECT_COUNT_SPEC_VERSION 1 |
| 143 | @extension("VK_AMD_draw_indirect_count") define VK_AMD_DRAW_INDIRECT_COUNT_EXTENSION_NAME "VK_AMD_draw_indirect_count" |
| 144 | |
| 145 | // 36 |
| 146 | @extension("VK_AMD_negative_viewport_height") define VK_AMD_NEGATIVE_VIEWPORT_HEIGHT_SPEC_VERSION 1 |
| 147 | @extension("VK_AMD_negative_viewport_height") define VK_AMD_NEGATIVE_VIEWPORT_HEIGHT_EXTENSION_NAME "VK_AMD_negative_viewport_height" |
| 148 | |
| 149 | // 37 |
| 150 | @extension("VK_AMD_gpu_shader_half_float") define VK_AMD_GPU_SHADER_HALF_FLOAT_SPEC_VERSION 1 |
| 151 | @extension("VK_AMD_gpu_shader_half_float") define VK_AMD_GPU_SHADER_HALF_FLOAT_EXTENSION_NAME "VK_AMD_gpu_shader_half_float" |
| 152 | |
| 153 | // 38 |
| 154 | @extension("VK_AMD_shader_ballot") define VK_AMD_SHADER_BALLOT_SPEC_VERSION 1 |
| 155 | @extension("VK_AMD_shader_ballot") define VK_AMD_SHADER_BALLOT_EXTENSION_NAME "VK_AMD_shader_ballot" |
| 156 | |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 157 | // 42 |
| 158 | @extension("VK_AMD_texture_gather_bias_lod") define VK_AMD_TEXTURE_GATHER_BIAS_LOD_SPEC_VERSION 1 |
| 159 | @extension("VK_AMD_texture_gather_bias_lod") define VK_AMD_TEXTURE_GATHER_BIAS_LOD_EXTENSION_NAME "VK_AMD_texture_gather_bias_lod" |
| 160 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 161 | // 54 |
| 162 | @extension("VK_KHX_multiview") define VK_KHX_MULTIVIEW_SPEC_VERSION 1 |
| 163 | @extension("VK_KHX_multiview") define VK_KHX_MULTIVIEW_EXTENSION_NAME "VK_KHX_multiview" |
| 164 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 165 | // 56 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 166 | @extension("VK_NV_external_memory_capabilities") define VK_NV_EXTERNAL_MEMORY_CAPABILITIES_SPEC_VERSION 1 |
| 167 | @extension("VK_NV_external_memory_capabilities") define VK_NV_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME "VK_NV_external_memory_capabilities" |
| 168 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 169 | // 57 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 170 | @extension("VK_NV_external_memory") define VK_NV_EXTERNAL_MEMORY_SPEC_VERSION 1 |
| 171 | @extension("VK_NV_external_memory") define VK_NV_EXTERNAL_MEMORY_EXTENSION_NAME "VK_NV_external_memory" |
| 172 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 173 | // 58 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 174 | @extension("VK_NV_external_memory_win32") define VK_NV_EXTERNAL_MEMORY_WIN32_SPEC_VERSION 1 |
| 175 | @extension("VK_NV_external_memory_win32") define VK_NV_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME "VK_NV_external_memory_win32" |
| 176 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 177 | // 59 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 178 | @extension("VK_NV_win32_keyed_mutex") define VK_NV_WIN32_KEYED_MUTEX_SPEC_VERSION 1 |
| 179 | @extension("VK_NV_win32_keyed_mutex") define VK_NV_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_NV_win32_keyed_mutex" |
| 180 | |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 181 | // 60 |
| 182 | @extension("VK_KHR_get_physical_device_properties2") define VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_SPEC_VERSION 1 |
| 183 | @extension("VK_KHR_get_physical_device_properties2") define VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME "VK_KHR_get_physical_device_properties2" |
| 184 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 185 | // 61 |
| 186 | @extension("VK_KHX_device_group") define VK_KHX_DEVICE_GROUP_SPEC_VERSION 1 |
| 187 | @extension("VK_KHX_device_group") define VK_KHX_DEVICE_GROUP_EXTENSION_NAME "VK_KHX_device_group" |
| 188 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 189 | // 62 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 190 | @extension("VK_EXT_validation_flags") define VK_EXT_VALIDATION_FLAGS_SPEC_VERSION 1 |
| 191 | @extension("VK_EXT_validation_flags") define VK_EXT_VALIDATION_FLAGS_EXTENSION_NAME "VK_EXT_validation_flags" |
| 192 | |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 193 | // 63 |
| 194 | @extension("VK_NN_vi_surface") define VK_NN_VI_SURFACE_SPEC_VERSION 1 |
| 195 | @extension("VK_NN_vi_surface") define VK_NN_VI_SURFACE_EXTENSION_NAME "VK_NN_vi_surface" |
| 196 | |
| 197 | // 64 |
| 198 | @extension("VK_KHR_shader_draw_parameters") define VK_KHR_SHADER_DRAW_PARAMETERS_SPEC_VERSION 1 |
| 199 | @extension("VK_KHR_shader_draw_parameters") define VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME "VK_KHR_shader_draw_parameters" |
| 200 | |
| 201 | // 65 |
| 202 | @extension("VK_EXT_shader_subgroup_ballot") define VK_EXT_SHADER_SUBGROUP_BALLOT_SPEC_VERSION 1 |
| 203 | @extension("VK_EXT_shader_subgroup_ballot") define VK_EXT_SHADER_SUBGROUP_BALLOT_EXTENSION_NAME "VK_EXT_shader_subgroup_ballot" |
| 204 | |
| 205 | // 66 |
| 206 | @extension("VK_EXT_shader_subgroup_vote") define VK_EXT_SHADER_SUBGROUP_VOTE_SPEC_VERSION 1 |
| 207 | @extension("VK_EXT_shader_subgroup_vote") define VK_EXT_SHADER_SUBGROUP_VOTE_EXTENSION_NAME "VK_EXT_shader_subgroup_vote" |
| 208 | |
| 209 | // 70 |
| 210 | @extension("VK_KHR_maintenance1") define VK_KHR_MAINTENANCE1_SPEC_VERSION 1 |
| 211 | @extension("VK_KHR_maintenance1") define VK_KHR_MAINTENANCE1_EXTENSION_NAME "VK_KHR_maintenance1" |
| 212 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 213 | // 71 |
| 214 | @extension("VK_KHX_device_group_creation") define VK_KHX_DEVICE_GROUP_CREATION_SPEC_VERSION 1 |
| 215 | @extension("VK_KHX_device_group_creation") define VK_KHX_DEVICE_GROUP_CREATION_EXTENSION_NAME "VK_KHX_device_group_creation" |
| 216 | |
| 217 | // 72 |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 218 | @extension("VK_KHR_external_memory_capabilities") define VK_KHR_EXTERNAL_MEMORY_CAPABILITIES_SPEC_VERSION 1 |
| 219 | @extension("VK_KHR_external_memory_capabilities") define VK_KHR_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME "VK_KHR_external_memory_capabilities" |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 220 | |
| 221 | // 73 |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 222 | @extension("VK_KHR_external_memory") define VK_KHR_EXTERNAL_MEMORY_SPEC_VERSION 1 |
| 223 | @extension("VK_KHR_external_memory") define VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME "VK_KHR_external_memory" |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 224 | |
| 225 | // 74 |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 226 | @extension("VK_KHR_external_memory_win32") define VK_KHR_EXTERNAL_MEMORY_WIN32_SPEC_VERSION 1 |
| 227 | @extension("VK_KHR_external_memory_win32") define VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME "VK_KHR_external_memory_win32" |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 228 | |
| 229 | // 75 |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 230 | @extension("VK_KHR_external_memory_fd") define VK_KHR_EXTERNAL_MEMORY_FD_SPEC_VERSION 1 |
| 231 | @extension("VK_KHR_external_memory_fd") define VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME "VK_KHR_external_memory_fd" |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 232 | |
| 233 | // 76 |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 234 | @extension("VK_KHR_win32_keyed_mutex") define VK_KHR_WIN32_KEYED_MUTEX_SPEC_VERSION 1 |
| 235 | @extension("VK_KHR_win32_keyed_mutex") define VK_KHR_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_KHR_win32_keyed_mutex" |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 236 | |
| 237 | // 77 |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 238 | @extension("VK_KHR_external_semaphore_capabilities") define VK_KHR_EXTERNAL_SEMAPHORE_CAPABILITIES_SPEC_VERSION 1 |
| 239 | @extension("VK_KHR_external_semaphore_capabilities") define VK_KHR_EXTERNAL_SEMAPHORE_CAPABILITIES_EXTENSION_NAME "VK_KHR_external_semaphore_capabilities" |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 240 | |
| 241 | // 78 |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 242 | @extension("VK_KHR_external_semaphore") define VK_KHR_EXTERNAL_SEMAPHORE_SPEC_VERSION 1 |
| 243 | @extension("VK_KHR_external_semaphore") define VK_KHR_EXTERNAL_SEMAPHORE_EXTENSION_NAME "VK_KHR_external_semaphore" |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 244 | |
| 245 | // 79 |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 246 | @extension("VK_KHR_external_semaphore_win32") define VK_KHR_EXTERNAL_SEMAPHORE_WIN32_SPEC_VERSION 1 |
| 247 | @extension("VK_KHR_external_semaphore_win32") define VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME "VK_KHR_external_semaphore_win32" |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 248 | |
| 249 | // 80 |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 250 | @extension("VK_KHR_external_semaphore_fd") define VK_KHR_EXTERNAL_SEMAPHORE_FD_SPEC_VERSION 1 |
| 251 | @extension("VK_KHR_external_semaphore_fd") define VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME "VK_KHR_external_semaphore_fd" |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 252 | |
| 253 | // 81 |
| 254 | @extension("VK_KHR_push_descriptor") define VK_KHR_PUSH_DESCRIPTOR_SPEC_VERSION 1 |
| 255 | @extension("VK_KHR_push_descriptor") define VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME "VK_KHR_push_descriptor" |
| 256 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 257 | // 84 |
| 258 | @extension("VK_KHR_16bit_storage") define VK_KHR_16BIT_STORAGE_SPEC_VERSION 1 |
| 259 | @extension("VK_KHR_16bit_storage") define VK_KHR_16BIT_STORAGE_EXTENSION_NAME "VK_KHR_16bit_storage" |
| 260 | |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 261 | // 85 |
| 262 | @extension("VK_KHR_incremental_present") define VK_KHR_INCREMENTAL_PRESENT_SPEC_VERSION 1 |
Jesse Hall | f5ad48b | 2017-03-20 13:09:19 -0700 | [diff] [blame] | 263 | @extension("VK_KHR_incremental_present") define VK_KHR_INCREMENTAL_PRESENT_EXTENSION_NAME "VK_KHR_incremental_present" |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 264 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 265 | // 86 |
| 266 | @extension("VK_KHR_descriptor_update_template") define VK_KHR_DESCRIPTOR_UPDATE_TEMPLATE_SPEC_VERSION 1 |
| 267 | @extension("VK_KHR_descriptor_update_template") define VK_KHR_DESCRIPTOR_UPDATE_TEMPLATE_EXTENSION_NAME "VK_KHR_descriptor_update_template" |
| 268 | |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 269 | // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 270 | @extension("VK_NVX_device_generated_commands") define VK_NVX_DEVICE_GENERATED_COMMANDS_SPEC_VERSION 1 |
| 271 | @extension("VK_NVX_device_generated_commands") define VK_NVX_DEVICE_GENERATED_COMMANDS_EXTENSION_NAME "VK_NVX_device_generated_commands" |
| 272 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 273 | // 88 |
| 274 | @extension("VK_NV_clip_space_w_scaling") define VK_NV_CLIP_SPACE_W_SCALING_SPEC_VERSION 1 |
| 275 | @extension("VK_NV_clip_space_w_scaling") define VK_NV_CLIP_SPACE_W_SCALING_EXTENSION_NAME "VK_NV_clip_space_w_scaling" |
| 276 | |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 277 | // 89 |
| 278 | @extension("VK_EXT_direct_mode_display") define VK_EXT_DIRECT_MODE_DISPLAY_SPEC_VERSION 1 |
| 279 | @extension("VK_EXT_direct_mode_display") define VK_EXT_DIRECT_MODE_DISPLAY_EXTENSION_NAME "VK_EXT_direct_mode_display" |
| 280 | |
| 281 | // 90 |
| 282 | @extension("VK_EXT_acquire_xlib_display") define VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION 1 |
| 283 | @extension("VK_EXT_acquire_xlib_display") define VK_EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME "VK_EXT_acquire_xlib_display" |
| 284 | |
| 285 | // 91 |
| 286 | @extension("VK_EXT_display_surface_counter") define VK_EXT_DISPLAY_SURFACE_COUNTER_SPEC_VERSION 1 |
| 287 | @extension("VK_EXT_display_surface_counter") define VK_EXT_DISPLAY_SURFACE_COUNTER_EXTENSION_NAME "VK_EXT_display_surface_counter" |
| 288 | |
| 289 | // 92 |
| 290 | @extension("VK_EXT_display_control") define VK_EXT_DISPLAY_CONTROL_SPEC_VERSION 1 |
| 291 | @extension("VK_EXT_display_control") define VK_EXT_DISPLAY_CONTROL_COUNTER_EXTENSION_NAME "VK_EXT_display_control" |
| 292 | |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 293 | // 93 |
| 294 | @extension("VK_GOOGLE_display_timing") define VK_GOOGLE_DISPLAY_TIMING_SPEC_VERSION 1 |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 295 | @extension("VK_GOOGLE_display_timing") define VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME "VK_GOOGLE_display_timing" |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 296 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 297 | // 95 |
| 298 | @extension("VK_NV_sample_mask_override_coverage") define VK_NV_SAMPLE_MASK_OVERRIDE_COVERAGE_SPEC_VERSION 1 |
| 299 | @extension("VK_NV_sample_mask_override_coverage") define VK_NV_SAMPLE_MASK_OVERRIDE_COVERAGE_EXTENSION_NAME "VK_NV_sample_mask_override_coverage" |
| 300 | |
| 301 | // 96 |
| 302 | @extension("VK_NV_geometry_shader_passthrough") define VK_NV_GEOMETRY_SHADER_PASSTHROUGH_SPEC_VERSION 1 |
| 303 | @extension("VK_NV_geometry_shader_passthrough") define VK_NV_GEOMETRY_SHADER_PASSTHROUGH_EXTENSION_NAME "VK_NV_geometry_shader_passthrough" |
| 304 | |
| 305 | // 97 |
| 306 | @extension("VK_NV_viewport_array2") define VK_NV_VIEWPORT_ARRAY2_SPEC_VERSION 1 |
| 307 | @extension("VK_NV_viewport_array2") define VK_NV_VIEWPORT_ARRAY2_EXTENSION_NAME "VK_NV_viewport_array2" |
| 308 | |
| 309 | // 98 |
| 310 | @extension("VK_NVX_multiview_per_view_attributes") define VK_NVX_MULTIVIEW_PER_VIEW_ATTRIBUTES_SPEC_VERSION 1 |
| 311 | @extension("VK_NVX_multiview_per_view_attributes") define VK_NVX_MULTIVIEW_PER_VIEW_ATTRIBUTES_EXTENSION_NAME "VK_NVX_multiview_per_view_attributes" |
| 312 | |
| 313 | // 99 |
| 314 | @extension("VK_NV_viewport_swizzle") define VK_NV_VIEWPORT_SWIZZLE_SPEC_VERSION 1 |
| 315 | @extension("VK_NV_viewport_swizzle") define VK_NV_VIEWPORT_SWIZZLE_EXTENSION_NAME "VK_NV_viewport_swizzle" |
| 316 | |
| 317 | // 100 |
| 318 | @extension("VK_EXT_discard_rectangles") define VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION 1 |
| 319 | @extension("VK_EXT_discard_rectangles") define VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME "VK_EXT_discard_rectangles" |
| 320 | |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 321 | // 105 |
Jesse Hall | f5ad48b | 2017-03-20 13:09:19 -0700 | [diff] [blame] | 322 | @extension("VK_EXT_swapchain_colorspace") define VK_EXT_SWAPCHAIN_COLORSPACE_SPEC_VERSION 2 |
| 323 | @extension("VK_EXT_swapchain_colorspace") define VK_EXT_SWAPCHAIN_COLORSPACE_EXTENSION_NAME "VK_EXT_swapchain_colorspace" |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 324 | |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 325 | // 106 |
| 326 | @extension("VK_EXT_hdr_metadata") define VK_EXT_HDR_METADATA_SPEC_VERSION 1 |
| 327 | @extension("VK_EXT_hdr_metadata") define VK_EXT_HDR_METADATA_EXTENSION_NAME "VK_EXT_hdr_metadata" |
| 328 | |
| 329 | // 112 |
Chris Forbes | 1d5f68c | 2017-01-31 10:17:01 +1300 | [diff] [blame] | 330 | @extension("VK_KHR_shared_presentable_image") define VK_KHR_SHARED_PRESENTABLE_IMAGE_SPEC_VERSION 1 |
| 331 | @extension("VK_KHR_shared_presentable_image") define VK_KHR_SHARED_PRESENTABLE_IMAGE_EXTENSION_NAME "VK_KHR_shared_presentable_image" |
Chris Forbes | 2e12cb8 | 2017-01-18 11:45:17 +1300 | [diff] [blame] | 332 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 333 | // 113 |
| 334 | @extension("VK_KHR_external_fence_capabilities") define VK_KHR_EXTERNAL_FENCE_CAPABILITIES_SPEC_VERSION 1 |
| 335 | @extension("VK_KHR_external_fence_capabilities") define VK_KHR_EXTERNAL_FENCE_CAPABILITIES_EXTENSION_NAME "VK_KHR_external_fence_capabilities" |
| 336 | |
| 337 | // 114 |
| 338 | @extension("VK_KHR_external_fence") define VK_KHR_EXTERNAL_FENCE_SPEC_VERSION 1 |
| 339 | @extension("VK_KHR_external_fence") define VK_KHR_EXTERNAL_FENCE_EXTENSION_NAME "VK_KHR_external_fence" |
| 340 | |
| 341 | // 115 |
| 342 | @extension("VK_KHR_external_fence_win32") define VK_KHR_EXTERNAL_FENCE_WIN32_SPEC_VERSION 1 |
| 343 | @extension("VK_KHR_external_fence_win32") define VK_KHR_EXTERNAL_FENCE_WIN32_EXTENSION_NAME "VK_KHR_external_fence_win32" |
| 344 | |
| 345 | // 116 |
| 346 | @extension("VK_KHR_external_fence_fd") define VK_KHR_EXTERNAL_FENCE_FD_SPEC_VERSION 1 |
| 347 | @extension("VK_KHR_external_fence_fd") define VK_KHR_EXTERNAL_FENCE_FD_EXTENSION_NAME "VK_KHR_external_fence_fd" |
| 348 | |
Jesse Hall | 05556b1 | 2017-05-18 17:40:25 -0700 | [diff] [blame] | 349 | // 120 |
Chris Forbes | e2d3ee1 | 2017-03-16 16:10:15 +1300 | [diff] [blame] | 350 | @extension("VK_KHR_get_surface_capabilities2") define VK_KHR_GET_SURFACE_CAPABILITIES_2_SPEC_VERSION 1 |
| 351 | @extension("VK_KHR_get_surface_capabilities2") define VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME "VK_KHR_get_surface_capabilities2" |
| 352 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 353 | // 121 |
| 354 | @extension("VK_KHR_variable_pointers") define VK_KHR_VARIABLE_POINTERS_SPEC_VERSION 1 |
| 355 | @extension("VK_KHR_variable_pointers") define VK_KHR_VARIABLE_POINTERS_EXTENSION_NAME "VK_KHR_variable_pointers" |
| 356 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 357 | // 123 |
| 358 | @extension("VK_MVK_ios_surface") define VK_MVK_IOS_SURFACE_SPEC_VERSION 1 |
| 359 | @extension("VK_MVK_ios_surface") define VK_MVK_IOS_SURFACE_EXTENSION_NAME "VK_MVK_ios_surface" |
| 360 | |
| 361 | // 124 |
| 362 | @extension("VK_MVK_macos_surface") define VK_MVK_MACOS_SURFACE_SPEC_VERSION 1 |
| 363 | @extension("VK_MVK_macos_surface") define VK_MVK_MACOS_SURFACE_EXTENSION_NAME "VK_MVK_macos_surface" |
| 364 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 365 | // 128 |
| 366 | @extension("VK_KHR_dedicated_allocation") define VK_KHR_DEDICATED_ALLOCATION_SPEC_VERSION 1 |
| 367 | @extension("VK_KHR_dedicated_allocation") define VK_KHR_DEDICATED_ALLOCATION_EXTENSION_NAME "VK_KHR_dedicated_allocation" |
| 368 | |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 369 | // 131 |
| 370 | @extension("VK_EXT_sampler_filter_minmax") define VK_EXT_SAMPLER_FILTER_MINMAX_SPEC_VERSION 1 |
| 371 | @extension("VK_EXT_sampler_filter_minmax") define VK_EXT_SAMPLER_FILTER_MINMAX_EXTENSION_NAME "VK_EXT_sampler_filter_minmax" |
| 372 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 373 | // 132 |
| 374 | @extension("VK_KHR_storage_buffer_storage_class") define VK_KHR_STORAGE_BUFFER_STORAGE_CLASS_SPEC_VERSION 1 |
| 375 | @extension("VK_KHR_storage_buffer_storage_class") define VK_KHR_STORAGE_BUFFER_STORAGE_CLASS_EXTENSION_NAME "VK_KHR_storage_buffer_storage_class" |
| 376 | |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 377 | // 133 |
| 378 | @extension("VK_AMD_gpu_shader_int16") define VK_AMD_GPU_SHADER_INT16_SPEC_VERSION 1 |
| 379 | @extension("VK_AMD_gpu_shader_int16") define VK_AMD_GPU_SHADER_INT16_EXTENSION_NAME "VK_AMD_gpu_shader_int16" |
| 380 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 381 | // 147 |
| 382 | @extension("VK_KHR_get_memory_requirements2") define VK_KHR_GET_MEMORY_REQUIREMENTS2_SPEC_VERSION 1 |
| 383 | @extension("VK_KHR_get_memory_requirements2") define VK_KHR_GET_MEMORY_REQUIREMENTS2_EXTENSION_NAME "VK_KHR_get_memory_requirements2" |
| 384 | |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 385 | // 149 |
| 386 | @extension("VK_EXT_blend_operation_advanced") define VK_EXT_BLEND_OPERATION_ADVANCED_SPEC_VERSION 2 |
| 387 | @extension("VK_EXT_blend_operation_advanced") define VK_EXT_BLEND_OPERATION_ADVANCED_EXTENSION_NAME "VK_EXT_blend_operation_advanced" |
| 388 | |
| 389 | // 150 |
| 390 | @extension("VK_NV_fragment_coverage_to_color") define VK_NV_FRAGMENT_COVERAGE_TO_COLOR_SPEC_VERSION 1 |
| 391 | @extension("VK_NV_fragment_coverage_to_color") define VK_NV_FRAGMENT_COVERAGE_TO_COLOR_EXTENSION_NAME "VK_NV_fragment_coverage_to_color" |
| 392 | |
| 393 | // 153 |
| 394 | @extension("VK_NV_framebuffer_mixed_samples") define VK_NV_FRAMEBUFFER_MIXED_SAMPLES_SPEC_VERSION 1 |
| 395 | @extension("VK_NV_framebuffer_mixed_samples") define VK_NV_FRAMEBUFFER_MIXED_SAMPLES_EXTENSION_NAME "VK_NV_framebuffer_mixed_samples" |
| 396 | |
| 397 | // 154 |
| 398 | @extension("VK_NV_fill_rectangle") define VK_NV_FILL_RECTANGLE_SPEC_VERSION 1 |
| 399 | @extension("VK_NV_fill_rectangle") define VK_NV_FILL_RECTANGLE_EXTENSION_NAME "VK_NV_fill_rectangle" |
| 400 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 401 | ///////////// |
| 402 | // Types // |
| 403 | ///////////// |
| 404 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 405 | type u32 VkBool32 |
| 406 | type u32 VkFlags |
| 407 | type u64 VkDeviceSize |
| 408 | type u32 VkSampleMask |
| 409 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 410 | /// Dispatchable handle types. |
| 411 | @dispatchHandle type u64 VkInstance |
| 412 | @dispatchHandle type u64 VkPhysicalDevice |
| 413 | @dispatchHandle type u64 VkDevice |
| 414 | @dispatchHandle type u64 VkQueue |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 415 | @dispatchHandle type u64 VkCommandBuffer |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 416 | |
| 417 | /// Non dispatchable handle types. |
| 418 | @nonDispatchHandle type u64 VkDeviceMemory |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 419 | @nonDispatchHandle type u64 VkCommandPool |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 420 | @nonDispatchHandle type u64 VkBuffer |
| 421 | @nonDispatchHandle type u64 VkBufferView |
| 422 | @nonDispatchHandle type u64 VkImage |
| 423 | @nonDispatchHandle type u64 VkImageView |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 424 | @nonDispatchHandle type u64 VkShaderModule |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 425 | @nonDispatchHandle type u64 VkPipeline |
| 426 | @nonDispatchHandle type u64 VkPipelineLayout |
| 427 | @nonDispatchHandle type u64 VkSampler |
| 428 | @nonDispatchHandle type u64 VkDescriptorSet |
| 429 | @nonDispatchHandle type u64 VkDescriptorSetLayout |
| 430 | @nonDispatchHandle type u64 VkDescriptorPool |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 431 | @nonDispatchHandle type u64 VkFence |
| 432 | @nonDispatchHandle type u64 VkSemaphore |
| 433 | @nonDispatchHandle type u64 VkEvent |
| 434 | @nonDispatchHandle type u64 VkQueryPool |
| 435 | @nonDispatchHandle type u64 VkFramebuffer |
| 436 | @nonDispatchHandle type u64 VkRenderPass |
| 437 | @nonDispatchHandle type u64 VkPipelineCache |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 438 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 439 | // 1 |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 440 | @extension("VK_KHR_surface") @nonDispatchHandle type u64 VkSurfaceKHR |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 441 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 442 | // 2 |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 443 | @extension("VK_KHR_swapchain") @nonDispatchHandle type u64 VkSwapchainKHR |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 444 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 445 | // 3 |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 446 | @extension("VK_KHR_display") @nonDispatchHandle type u64 VkDisplayKHR |
| 447 | @extension("VK_KHR_display") @nonDispatchHandle type u64 VkDisplayModeKHR |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 448 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 449 | // 12 |
Jesse Hall | 715b86a | 2016-01-16 16:34:29 -0800 | [diff] [blame] | 450 | @extension("VK_EXT_debug_report") @nonDispatchHandle type u64 VkDebugReportCallbackEXT |
| 451 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 452 | // 86 |
| 453 | @extension("VK_KHR_descriptor_update_template") @nonDispatchHandle type u64 VkDescriptorUpdateTemplateKHR |
| 454 | |
| 455 | // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 456 | @extension("VK_NVX_device_generated_commands") @nonDispatchHandle type u64 VkObjectTableNVX |
| 457 | @extension("VK_NVX_device_generated_commands") @nonDispatchHandle type u64 VkIndirectCommandsLayoutNVX |
| 458 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 459 | |
| 460 | ///////////// |
| 461 | // Enums // |
| 462 | ///////////// |
| 463 | |
| 464 | enum VkImageLayout { |
| 465 | VK_IMAGE_LAYOUT_UNDEFINED = 0x00000000, /// Implicit layout an image is when its contents are undefined due to various reasons (e.g. right after creation) |
| 466 | VK_IMAGE_LAYOUT_GENERAL = 0x00000001, /// General layout when image can be used for any kind of access |
| 467 | VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = 0x00000002, /// Optimal layout when image is only used for color attachment read/write |
| 468 | VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = 0x00000003, /// Optimal layout when image is only used for depth/stencil attachment read/write |
| 469 | VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = 0x00000004, /// Optimal layout when image is used for read only depth/stencil attachment and shader access |
| 470 | VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = 0x00000005, /// Optimal layout when image is used for read only shader access |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 471 | VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = 0x00000006, /// Optimal layout when image is used only as source of transfer operations |
| 472 | VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL = 0x00000007, /// Optimal layout when image is used only as destination of transfer operations |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 473 | VK_IMAGE_LAYOUT_PREINITIALIZED = 0x00000008, /// Initial layout used when the data is populated by the CPU |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 474 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 475 | //@extension("VK_KHR_swapchain") // 2 |
Jesse Hall | bd88884 | 2015-11-30 21:44:14 -0800 | [diff] [blame] | 476 | VK_IMAGE_LAYOUT_PRESENT_SRC_KHR = 1000001002, |
Chris Forbes | af3a111 | 2017-01-31 15:37:03 +1300 | [diff] [blame] | 477 | |
Jesse Hall | 05556b1 | 2017-05-18 17:40:25 -0700 | [diff] [blame] | 478 | //@extension("VK_KHR_shared_presentable_image") // 112 |
Chris Forbes | af3a111 | 2017-01-31 15:37:03 +1300 | [diff] [blame] | 479 | VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR = 1000111000, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 480 | } |
| 481 | |
| 482 | enum VkAttachmentLoadOp { |
| 483 | VK_ATTACHMENT_LOAD_OP_LOAD = 0x00000000, |
| 484 | VK_ATTACHMENT_LOAD_OP_CLEAR = 0x00000001, |
| 485 | VK_ATTACHMENT_LOAD_OP_DONT_CARE = 0x00000002, |
| 486 | } |
| 487 | |
| 488 | enum VkAttachmentStoreOp { |
| 489 | VK_ATTACHMENT_STORE_OP_STORE = 0x00000000, |
| 490 | VK_ATTACHMENT_STORE_OP_DONT_CARE = 0x00000001, |
| 491 | } |
| 492 | |
| 493 | enum VkImageType { |
| 494 | VK_IMAGE_TYPE_1D = 0x00000000, |
| 495 | VK_IMAGE_TYPE_2D = 0x00000001, |
| 496 | VK_IMAGE_TYPE_3D = 0x00000002, |
| 497 | } |
| 498 | |
| 499 | enum VkImageTiling { |
Jesse Hall | c7467b7 | 2015-11-29 21:05:26 -0800 | [diff] [blame] | 500 | VK_IMAGE_TILING_OPTIMAL = 0x00000000, |
| 501 | VK_IMAGE_TILING_LINEAR = 0x00000001, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 502 | } |
| 503 | |
| 504 | enum VkImageViewType { |
| 505 | VK_IMAGE_VIEW_TYPE_1D = 0x00000000, |
| 506 | VK_IMAGE_VIEW_TYPE_2D = 0x00000001, |
| 507 | VK_IMAGE_VIEW_TYPE_3D = 0x00000002, |
| 508 | VK_IMAGE_VIEW_TYPE_CUBE = 0x00000003, |
| 509 | VK_IMAGE_VIEW_TYPE_1D_ARRAY = 0x00000004, |
| 510 | VK_IMAGE_VIEW_TYPE_2D_ARRAY = 0x00000005, |
| 511 | VK_IMAGE_VIEW_TYPE_CUBE_ARRAY = 0x00000006, |
| 512 | } |
| 513 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 514 | enum VkCommandBufferLevel { |
| 515 | VK_COMMAND_BUFFER_LEVEL_PRIMARY = 0x00000000, |
| 516 | VK_COMMAND_BUFFER_LEVEL_SECONDARY = 0x00000001, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 517 | } |
| 518 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 519 | enum VkComponentSwizzle { |
| 520 | VK_COMPONENT_SWIZZLE_IDENTITY = 0x00000000, |
| 521 | VK_COMPONENT_SWIZZLE_ZERO = 0x00000001, |
| 522 | VK_COMPONENT_SWIZZLE_ONE = 0x00000002, |
| 523 | VK_COMPONENT_SWIZZLE_R = 0x00000003, |
| 524 | VK_COMPONENT_SWIZZLE_G = 0x00000004, |
| 525 | VK_COMPONENT_SWIZZLE_B = 0x00000005, |
| 526 | VK_COMPONENT_SWIZZLE_A = 0x00000006, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 527 | } |
| 528 | |
| 529 | enum VkDescriptorType { |
| 530 | VK_DESCRIPTOR_TYPE_SAMPLER = 0x00000000, |
| 531 | VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = 0x00000001, |
| 532 | VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE = 0x00000002, |
| 533 | VK_DESCRIPTOR_TYPE_STORAGE_IMAGE = 0x00000003, |
| 534 | VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = 0x00000004, |
| 535 | VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = 0x00000005, |
| 536 | VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER = 0x00000006, |
| 537 | VK_DESCRIPTOR_TYPE_STORAGE_BUFFER = 0x00000007, |
| 538 | VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = 0x00000008, |
| 539 | VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = 0x00000009, |
| 540 | VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT = 0x0000000a, |
| 541 | } |
| 542 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 543 | enum VkQueryType { |
| 544 | VK_QUERY_TYPE_OCCLUSION = 0x00000000, |
| 545 | VK_QUERY_TYPE_PIPELINE_STATISTICS = 0x00000001, /// Optional |
Jesse Hall | a3a7a1d | 2015-11-24 11:37:23 -0800 | [diff] [blame] | 546 | VK_QUERY_TYPE_TIMESTAMP = 0x00000002, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 547 | } |
| 548 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 549 | enum VkBorderColor { |
| 550 | VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = 0x00000000, |
| 551 | VK_BORDER_COLOR_INT_TRANSPARENT_BLACK = 0x00000001, |
| 552 | VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK = 0x00000002, |
| 553 | VK_BORDER_COLOR_INT_OPAQUE_BLACK = 0x00000003, |
| 554 | VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE = 0x00000004, |
| 555 | VK_BORDER_COLOR_INT_OPAQUE_WHITE = 0x00000005, |
| 556 | } |
| 557 | |
| 558 | enum VkPipelineBindPoint { |
Jesse Hall | c7467b7 | 2015-11-29 21:05:26 -0800 | [diff] [blame] | 559 | VK_PIPELINE_BIND_POINT_GRAPHICS = 0x00000000, |
| 560 | VK_PIPELINE_BIND_POINT_COMPUTE = 0x00000001, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 561 | } |
| 562 | |
| 563 | enum VkPrimitiveTopology { |
| 564 | VK_PRIMITIVE_TOPOLOGY_POINT_LIST = 0x00000000, |
| 565 | VK_PRIMITIVE_TOPOLOGY_LINE_LIST = 0x00000001, |
| 566 | VK_PRIMITIVE_TOPOLOGY_LINE_STRIP = 0x00000002, |
| 567 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST = 0x00000003, |
| 568 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP = 0x00000004, |
| 569 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN = 0x00000005, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 570 | VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY = 0x00000006, |
| 571 | VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY = 0x00000007, |
| 572 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY = 0x00000008, |
| 573 | VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY = 0x00000009, |
Jesse Hall | 091ed9e | 2015-11-30 00:55:29 -0800 | [diff] [blame] | 574 | VK_PRIMITIVE_TOPOLOGY_PATCH_LIST = 0x0000000a, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 575 | } |
| 576 | |
| 577 | enum VkSharingMode { |
| 578 | VK_SHARING_MODE_EXCLUSIVE = 0x00000000, |
| 579 | VK_SHARING_MODE_CONCURRENT = 0x00000001, |
| 580 | } |
| 581 | |
| 582 | enum VkIndexType { |
| 583 | VK_INDEX_TYPE_UINT16 = 0x00000000, |
| 584 | VK_INDEX_TYPE_UINT32 = 0x00000001, |
| 585 | } |
| 586 | |
Jesse Hall | 23ff73f | 2015-11-29 14:36:39 -0800 | [diff] [blame] | 587 | enum VkFilter { |
| 588 | VK_FILTER_NEAREST = 0x00000000, |
| 589 | VK_FILTER_LINEAR = 0x00000001, |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 590 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 591 | //@extension("VK_IMG_filter_cubic") // 16 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 592 | VK_FILTER_CUBIC_IMG = 1000015000, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 593 | } |
| 594 | |
Jesse Hall | 23ff73f | 2015-11-29 14:36:39 -0800 | [diff] [blame] | 595 | enum VkSamplerMipmapMode { |
Jesse Hall | 23ff73f | 2015-11-29 14:36:39 -0800 | [diff] [blame] | 596 | VK_SAMPLER_MIPMAP_MODE_NEAREST = 0x00000001, /// Choose nearest mip level |
| 597 | VK_SAMPLER_MIPMAP_MODE_LINEAR = 0x00000002, /// Linear filter between mip levels |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 598 | } |
| 599 | |
Jesse Hall | 23ff73f | 2015-11-29 14:36:39 -0800 | [diff] [blame] | 600 | enum VkSamplerAddressMode { |
Jesse Hall | c7467b7 | 2015-11-29 21:05:26 -0800 | [diff] [blame] | 601 | VK_SAMPLER_ADDRESS_MODE_REPEAT = 0x00000000, |
| 602 | VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT = 0x00000001, |
| 603 | VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE = 0x00000002, |
| 604 | VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER = 0x00000003, |
| 605 | VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE = 0x00000004, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 606 | } |
| 607 | |
| 608 | enum VkCompareOp { |
| 609 | VK_COMPARE_OP_NEVER = 0x00000000, |
| 610 | VK_COMPARE_OP_LESS = 0x00000001, |
| 611 | VK_COMPARE_OP_EQUAL = 0x00000002, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 612 | VK_COMPARE_OP_LESS_OR_EQUAL = 0x00000003, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 613 | VK_COMPARE_OP_GREATER = 0x00000004, |
| 614 | VK_COMPARE_OP_NOT_EQUAL = 0x00000005, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 615 | VK_COMPARE_OP_GREATER_OR_EQUAL = 0x00000006, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 616 | VK_COMPARE_OP_ALWAYS = 0x00000007, |
| 617 | } |
| 618 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 619 | enum VkPolygonMode { |
| 620 | VK_POLYGON_MODE_FILL = 0x00000000, |
| 621 | VK_POLYGON_MODE_LINE = 0x00000001, |
| 622 | VK_POLYGON_MODE_POINT = 0x00000002, |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 623 | |
| 624 | //@extension("VK_NV_fill_rectangle") // 154 |
| 625 | VK_POLYGON_MODE_FILL_RECTANGLE_NV = 1000153000, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 626 | } |
| 627 | |
| 628 | enum VkFrontFace { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 629 | VK_FRONT_FACE_COUNTER_CLOCKWISE = 0x00000000, |
| 630 | VK_FRONT_FACE_CLOCKWISE = 0x00000001, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 631 | } |
| 632 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 633 | enum VkBlendFactor { |
| 634 | VK_BLEND_FACTOR_ZERO = 0x00000000, |
| 635 | VK_BLEND_FACTOR_ONE = 0x00000001, |
| 636 | VK_BLEND_FACTOR_SRC_COLOR = 0x00000002, |
| 637 | VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR = 0x00000003, |
| 638 | VK_BLEND_FACTOR_DST_COLOR = 0x00000004, |
| 639 | VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR = 0x00000005, |
| 640 | VK_BLEND_FACTOR_SRC_ALPHA = 0x00000006, |
| 641 | VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA = 0x00000007, |
| 642 | VK_BLEND_FACTOR_DST_ALPHA = 0x00000008, |
| 643 | VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA = 0x00000009, |
| 644 | VK_BLEND_FACTOR_CONSTANT_COLOR = 0x0000000a, |
| 645 | VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR = 0x0000000b, |
| 646 | VK_BLEND_FACTOR_CONSTANT_ALPHA = 0x0000000c, |
| 647 | VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA = 0x0000000d, |
| 648 | VK_BLEND_FACTOR_SRC_ALPHA_SATURATE = 0x0000000e, |
| 649 | VK_BLEND_FACTOR_SRC1_COLOR = 0x0000000f, |
| 650 | VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR = 0x00000010, |
| 651 | VK_BLEND_FACTOR_SRC1_ALPHA = 0x00000011, |
| 652 | VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA = 0x00000012, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 653 | } |
| 654 | |
| 655 | enum VkBlendOp { |
| 656 | VK_BLEND_OP_ADD = 0x00000000, |
| 657 | VK_BLEND_OP_SUBTRACT = 0x00000001, |
| 658 | VK_BLEND_OP_REVERSE_SUBTRACT = 0x00000002, |
| 659 | VK_BLEND_OP_MIN = 0x00000003, |
| 660 | VK_BLEND_OP_MAX = 0x00000004, |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 661 | |
| 662 | //@extension("VK_EXT_blend_operation_advanced") // 149 |
| 663 | VK_BLEND_OP_ZERO_EXT = 1000148000, |
| 664 | VK_BLEND_OP_SRC_EXT = 1000148001, |
| 665 | VK_BLEND_OP_DST_EXT = 1000148002, |
| 666 | VK_BLEND_OP_SRC_OVER_EXT = 1000148003, |
| 667 | VK_BLEND_OP_DST_OVER_EXT = 1000148004, |
| 668 | VK_BLEND_OP_SRC_IN_EXT = 1000148005, |
| 669 | VK_BLEND_OP_DST_IN_EXT = 1000148006, |
| 670 | VK_BLEND_OP_SRC_OUT_EXT = 1000148007, |
| 671 | VK_BLEND_OP_DST_OUT_EXT = 1000148008, |
| 672 | VK_BLEND_OP_SRC_ATOP_EXT = 1000148009, |
| 673 | VK_BLEND_OP_DST_ATOP_EXT = 1000148010, |
| 674 | VK_BLEND_OP_XOR_EXT = 1000148011, |
| 675 | VK_BLEND_OP_MULTIPLY_EXT = 1000148012, |
| 676 | VK_BLEND_OP_SCREEN_EXT = 1000148013, |
| 677 | VK_BLEND_OP_OVERLAY_EXT = 1000148014, |
| 678 | VK_BLEND_OP_DARKEN_EXT = 1000148015, |
| 679 | VK_BLEND_OP_LIGHTEN_EXT = 1000148016, |
| 680 | VK_BLEND_OP_COLORDODGE_EXT = 1000148017, |
| 681 | VK_BLEND_OP_COLORBURN_EXT = 1000148018, |
| 682 | VK_BLEND_OP_HARDLIGHT_EXT = 1000148019, |
| 683 | VK_BLEND_OP_SOFTLIGHT_EXT = 1000148020, |
| 684 | VK_BLEND_OP_DIFFERENCE_EXT = 1000148021, |
| 685 | VK_BLEND_OP_EXCLUSION_EXT = 1000148022, |
| 686 | VK_BLEND_OP_INVERT_EXT = 1000148023, |
| 687 | VK_BLEND_OP_INVERT_RGB_EXT = 1000148024, |
| 688 | VK_BLEND_OP_LINEARDODGE_EXT = 1000148025, |
| 689 | VK_BLEND_OP_LINEARBURN_EXT = 1000148026, |
| 690 | VK_BLEND_OP_VIVIDLIGHT_EXT = 1000148027, |
| 691 | VK_BLEND_OP_LINEARLIGHT_EXT = 1000148028, |
| 692 | VK_BLEND_OP_PINLIGHT_EXT = 1000148029, |
| 693 | VK_BLEND_OP_HARDMIX_EXT = 1000148030, |
| 694 | VK_BLEND_OP_HSL_HUE_EXT = 1000148031, |
| 695 | VK_BLEND_OP_HSL_SATURATION_EXT = 1000148032, |
| 696 | VK_BLEND_OP_HSL_COLOR_EXT = 1000148033, |
| 697 | VK_BLEND_OP_HSL_LUMINOSITY_EXT = 1000148034, |
| 698 | VK_BLEND_OP_PLUS_EXT = 1000148035, |
| 699 | VK_BLEND_OP_PLUS_CLAMPED_EXT = 1000148036, |
| 700 | VK_BLEND_OP_PLUS_CLAMPED_ALPHA_EXT = 1000148037, |
| 701 | VK_BLEND_OP_PLUS_DARKER_EXT = 1000148038, |
| 702 | VK_BLEND_OP_MINUS_EXT = 1000148039, |
| 703 | VK_BLEND_OP_MINUS_CLAMPED_EXT = 1000148040, |
| 704 | VK_BLEND_OP_CONTRAST_EXT = 1000148041, |
| 705 | VK_BLEND_OP_INVERT_OVG_EXT = 1000148042, |
| 706 | VK_BLEND_OP_RED_EXT = 1000148043, |
| 707 | VK_BLEND_OP_GREEN_EXT = 1000148044, |
| 708 | VK_BLEND_OP_BLUE_EXT = 1000148045, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 709 | } |
| 710 | |
| 711 | enum VkStencilOp { |
| 712 | VK_STENCIL_OP_KEEP = 0x00000000, |
| 713 | VK_STENCIL_OP_ZERO = 0x00000001, |
| 714 | VK_STENCIL_OP_REPLACE = 0x00000002, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 715 | VK_STENCIL_OP_INCREMENT_AND_CLAMP = 0x00000003, |
| 716 | VK_STENCIL_OP_DECREMENT_AND_CLAMP = 0x00000004, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 717 | VK_STENCIL_OP_INVERT = 0x00000005, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 718 | VK_STENCIL_OP_INCREMENT_AND_WRAP = 0x00000006, |
| 719 | VK_STENCIL_OP_DECREMENT_AND_WRAP = 0x00000007, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 720 | } |
| 721 | |
| 722 | enum VkLogicOp { |
| 723 | VK_LOGIC_OP_CLEAR = 0x00000000, |
| 724 | VK_LOGIC_OP_AND = 0x00000001, |
| 725 | VK_LOGIC_OP_AND_REVERSE = 0x00000002, |
| 726 | VK_LOGIC_OP_COPY = 0x00000003, |
| 727 | VK_LOGIC_OP_AND_INVERTED = 0x00000004, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 728 | VK_LOGIC_OP_NO_OP = 0x00000005, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 729 | VK_LOGIC_OP_XOR = 0x00000006, |
| 730 | VK_LOGIC_OP_OR = 0x00000007, |
| 731 | VK_LOGIC_OP_NOR = 0x00000008, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 732 | VK_LOGIC_OP_EQUIVALENT = 0x00000009, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 733 | VK_LOGIC_OP_INVERT = 0x0000000a, |
| 734 | VK_LOGIC_OP_OR_REVERSE = 0x0000000b, |
| 735 | VK_LOGIC_OP_COPY_INVERTED = 0x0000000c, |
| 736 | VK_LOGIC_OP_OR_INVERTED = 0x0000000d, |
| 737 | VK_LOGIC_OP_NAND = 0x0000000e, |
| 738 | VK_LOGIC_OP_SET = 0x0000000f, |
| 739 | } |
| 740 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 741 | enum VkSystemAllocationScope { |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 742 | VK_SYSTEM_ALLOCATION_SCOPE_COMMAND = 0x00000000, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 743 | VK_SYSTEM_ALLOCATION_SCOPE_OBJECT = 0x00000001, |
| 744 | VK_SYSTEM_ALLOCATION_SCOPE_CACHE = 0x00000002, |
| 745 | VK_SYSTEM_ALLOCATION_SCOPE_DEVICE = 0x00000003, |
| 746 | VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE = 0x00000004, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 747 | } |
| 748 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 749 | enum VkInternalAllocationType { |
| 750 | VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE = 0x00000000, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 751 | } |
| 752 | |
| 753 | enum VkPhysicalDeviceType { |
| 754 | VK_PHYSICAL_DEVICE_TYPE_OTHER = 0x00000000, |
| 755 | VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU = 0x00000001, |
| 756 | VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU = 0x00000002, |
| 757 | VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU = 0x00000003, |
| 758 | VK_PHYSICAL_DEVICE_TYPE_CPU = 0x00000004, |
| 759 | } |
| 760 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 761 | enum VkVertexInputRate { |
| 762 | VK_VERTEX_INPUT_RATE_VERTEX = 0x00000000, |
| 763 | VK_VERTEX_INPUT_RATE_INSTANCE = 0x00000001, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 764 | } |
| 765 | |
| 766 | /// Vulkan format definitions |
| 767 | enum VkFormat { |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 768 | VK_FORMAT_UNDEFINED = 0, |
| 769 | VK_FORMAT_R4G4_UNORM_PACK8 = 1, |
| 770 | VK_FORMAT_R4G4B4A4_UNORM_PACK16 = 2, |
| 771 | VK_FORMAT_B4G4R4A4_UNORM_PACK16 = 3, |
| 772 | VK_FORMAT_R5G6B5_UNORM_PACK16 = 4, |
| 773 | VK_FORMAT_B5G6R5_UNORM_PACK16 = 5, |
| 774 | VK_FORMAT_R5G5B5A1_UNORM_PACK16 = 6, |
| 775 | VK_FORMAT_B5G5R5A1_UNORM_PACK16 = 7, |
| 776 | VK_FORMAT_A1R5G5B5_UNORM_PACK16 = 8, |
| 777 | VK_FORMAT_R8_UNORM = 9, |
| 778 | VK_FORMAT_R8_SNORM = 10, |
| 779 | VK_FORMAT_R8_USCALED = 11, |
| 780 | VK_FORMAT_R8_SSCALED = 12, |
| 781 | VK_FORMAT_R8_UINT = 13, |
| 782 | VK_FORMAT_R8_SINT = 14, |
| 783 | VK_FORMAT_R8_SRGB = 15, |
| 784 | VK_FORMAT_R8G8_UNORM = 16, |
| 785 | VK_FORMAT_R8G8_SNORM = 17, |
| 786 | VK_FORMAT_R8G8_USCALED = 18, |
| 787 | VK_FORMAT_R8G8_SSCALED = 19, |
| 788 | VK_FORMAT_R8G8_UINT = 20, |
| 789 | VK_FORMAT_R8G8_SINT = 21, |
| 790 | VK_FORMAT_R8G8_SRGB = 22, |
| 791 | VK_FORMAT_R8G8B8_UNORM = 23, |
| 792 | VK_FORMAT_R8G8B8_SNORM = 24, |
| 793 | VK_FORMAT_R8G8B8_USCALED = 25, |
| 794 | VK_FORMAT_R8G8B8_SSCALED = 26, |
| 795 | VK_FORMAT_R8G8B8_UINT = 27, |
| 796 | VK_FORMAT_R8G8B8_SINT = 28, |
| 797 | VK_FORMAT_R8G8B8_SRGB = 29, |
| 798 | VK_FORMAT_B8G8R8_UNORM = 30, |
| 799 | VK_FORMAT_B8G8R8_SNORM = 31, |
| 800 | VK_FORMAT_B8G8R8_USCALED = 32, |
| 801 | VK_FORMAT_B8G8R8_SSCALED = 33, |
| 802 | VK_FORMAT_B8G8R8_UINT = 34, |
| 803 | VK_FORMAT_B8G8R8_SINT = 35, |
| 804 | VK_FORMAT_B8G8R8_SRGB = 36, |
| 805 | VK_FORMAT_R8G8B8A8_UNORM = 37, |
| 806 | VK_FORMAT_R8G8B8A8_SNORM = 38, |
| 807 | VK_FORMAT_R8G8B8A8_USCALED = 39, |
| 808 | VK_FORMAT_R8G8B8A8_SSCALED = 40, |
| 809 | VK_FORMAT_R8G8B8A8_UINT = 41, |
| 810 | VK_FORMAT_R8G8B8A8_SINT = 42, |
| 811 | VK_FORMAT_R8G8B8A8_SRGB = 43, |
| 812 | VK_FORMAT_B8G8R8A8_UNORM = 44, |
| 813 | VK_FORMAT_B8G8R8A8_SNORM = 45, |
| 814 | VK_FORMAT_B8G8R8A8_USCALED = 46, |
| 815 | VK_FORMAT_B8G8R8A8_SSCALED = 47, |
| 816 | VK_FORMAT_B8G8R8A8_UINT = 48, |
| 817 | VK_FORMAT_B8G8R8A8_SINT = 49, |
| 818 | VK_FORMAT_B8G8R8A8_SRGB = 50, |
| 819 | VK_FORMAT_A8B8G8R8_UNORM_PACK32 = 51, |
| 820 | VK_FORMAT_A8B8G8R8_SNORM_PACK32 = 52, |
| 821 | VK_FORMAT_A8B8G8R8_USCALED_PACK32 = 53, |
| 822 | VK_FORMAT_A8B8G8R8_SSCALED_PACK32 = 54, |
| 823 | VK_FORMAT_A8B8G8R8_UINT_PACK32 = 55, |
| 824 | VK_FORMAT_A8B8G8R8_SINT_PACK32 = 56, |
| 825 | VK_FORMAT_A8B8G8R8_SRGB_PACK32 = 57, |
| 826 | VK_FORMAT_A2R10G10B10_UNORM_PACK32 = 58, |
| 827 | VK_FORMAT_A2R10G10B10_SNORM_PACK32 = 59, |
| 828 | VK_FORMAT_A2R10G10B10_USCALED_PACK32 = 60, |
| 829 | VK_FORMAT_A2R10G10B10_SSCALED_PACK32 = 61, |
| 830 | VK_FORMAT_A2R10G10B10_UINT_PACK32 = 62, |
| 831 | VK_FORMAT_A2R10G10B10_SINT_PACK32 = 63, |
| 832 | VK_FORMAT_A2B10G10R10_UNORM_PACK32 = 64, |
| 833 | VK_FORMAT_A2B10G10R10_SNORM_PACK32 = 65, |
| 834 | VK_FORMAT_A2B10G10R10_USCALED_PACK32 = 66, |
| 835 | VK_FORMAT_A2B10G10R10_SSCALED_PACK32 = 67, |
| 836 | VK_FORMAT_A2B10G10R10_UINT_PACK32 = 68, |
| 837 | VK_FORMAT_A2B10G10R10_SINT_PACK32 = 69, |
| 838 | VK_FORMAT_R16_UNORM = 70, |
| 839 | VK_FORMAT_R16_SNORM = 71, |
| 840 | VK_FORMAT_R16_USCALED = 72, |
| 841 | VK_FORMAT_R16_SSCALED = 73, |
| 842 | VK_FORMAT_R16_UINT = 74, |
| 843 | VK_FORMAT_R16_SINT = 75, |
| 844 | VK_FORMAT_R16_SFLOAT = 76, |
| 845 | VK_FORMAT_R16G16_UNORM = 77, |
| 846 | VK_FORMAT_R16G16_SNORM = 78, |
| 847 | VK_FORMAT_R16G16_USCALED = 79, |
| 848 | VK_FORMAT_R16G16_SSCALED = 80, |
| 849 | VK_FORMAT_R16G16_UINT = 81, |
| 850 | VK_FORMAT_R16G16_SINT = 82, |
| 851 | VK_FORMAT_R16G16_SFLOAT = 83, |
| 852 | VK_FORMAT_R16G16B16_UNORM = 84, |
| 853 | VK_FORMAT_R16G16B16_SNORM = 85, |
| 854 | VK_FORMAT_R16G16B16_USCALED = 86, |
| 855 | VK_FORMAT_R16G16B16_SSCALED = 87, |
| 856 | VK_FORMAT_R16G16B16_UINT = 88, |
| 857 | VK_FORMAT_R16G16B16_SINT = 89, |
| 858 | VK_FORMAT_R16G16B16_SFLOAT = 90, |
| 859 | VK_FORMAT_R16G16B16A16_UNORM = 91, |
| 860 | VK_FORMAT_R16G16B16A16_SNORM = 92, |
| 861 | VK_FORMAT_R16G16B16A16_USCALED = 93, |
| 862 | VK_FORMAT_R16G16B16A16_SSCALED = 94, |
| 863 | VK_FORMAT_R16G16B16A16_UINT = 95, |
| 864 | VK_FORMAT_R16G16B16A16_SINT = 96, |
| 865 | VK_FORMAT_R16G16B16A16_SFLOAT = 97, |
| 866 | VK_FORMAT_R32_UINT = 98, |
| 867 | VK_FORMAT_R32_SINT = 99, |
| 868 | VK_FORMAT_R32_SFLOAT = 100, |
| 869 | VK_FORMAT_R32G32_UINT = 101, |
| 870 | VK_FORMAT_R32G32_SINT = 102, |
| 871 | VK_FORMAT_R32G32_SFLOAT = 103, |
| 872 | VK_FORMAT_R32G32B32_UINT = 104, |
| 873 | VK_FORMAT_R32G32B32_SINT = 105, |
| 874 | VK_FORMAT_R32G32B32_SFLOAT = 106, |
| 875 | VK_FORMAT_R32G32B32A32_UINT = 107, |
| 876 | VK_FORMAT_R32G32B32A32_SINT = 108, |
| 877 | VK_FORMAT_R32G32B32A32_SFLOAT = 109, |
| 878 | VK_FORMAT_R64_UINT = 110, |
| 879 | VK_FORMAT_R64_SINT = 111, |
| 880 | VK_FORMAT_R64_SFLOAT = 112, |
| 881 | VK_FORMAT_R64G64_UINT = 113, |
| 882 | VK_FORMAT_R64G64_SINT = 114, |
| 883 | VK_FORMAT_R64G64_SFLOAT = 115, |
| 884 | VK_FORMAT_R64G64B64_UINT = 116, |
| 885 | VK_FORMAT_R64G64B64_SINT = 117, |
| 886 | VK_FORMAT_R64G64B64_SFLOAT = 118, |
| 887 | VK_FORMAT_R64G64B64A64_UINT = 119, |
| 888 | VK_FORMAT_R64G64B64A64_SINT = 120, |
| 889 | VK_FORMAT_R64G64B64A64_SFLOAT = 121, |
| 890 | VK_FORMAT_B10G11R11_UFLOAT_PACK32 = 122, |
| 891 | VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 = 123, |
| 892 | VK_FORMAT_D16_UNORM = 124, |
| 893 | VK_FORMAT_X8_D24_UNORM_PACK32 = 125, |
| 894 | VK_FORMAT_D32_SFLOAT = 126, |
| 895 | VK_FORMAT_S8_UINT = 127, |
| 896 | VK_FORMAT_D16_UNORM_S8_UINT = 128, |
| 897 | VK_FORMAT_D24_UNORM_S8_UINT = 129, |
| 898 | VK_FORMAT_D32_SFLOAT_S8_UINT = 130, |
| 899 | VK_FORMAT_BC1_RGB_UNORM_BLOCK = 131, |
| 900 | VK_FORMAT_BC1_RGB_SRGB_BLOCK = 132, |
| 901 | VK_FORMAT_BC1_RGBA_UNORM_BLOCK = 133, |
| 902 | VK_FORMAT_BC1_RGBA_SRGB_BLOCK = 134, |
| 903 | VK_FORMAT_BC2_UNORM_BLOCK = 135, |
| 904 | VK_FORMAT_BC2_SRGB_BLOCK = 136, |
| 905 | VK_FORMAT_BC3_UNORM_BLOCK = 137, |
| 906 | VK_FORMAT_BC3_SRGB_BLOCK = 138, |
| 907 | VK_FORMAT_BC4_UNORM_BLOCK = 139, |
| 908 | VK_FORMAT_BC4_SNORM_BLOCK = 140, |
| 909 | VK_FORMAT_BC5_UNORM_BLOCK = 141, |
| 910 | VK_FORMAT_BC5_SNORM_BLOCK = 142, |
| 911 | VK_FORMAT_BC6H_UFLOAT_BLOCK = 143, |
| 912 | VK_FORMAT_BC6H_SFLOAT_BLOCK = 144, |
| 913 | VK_FORMAT_BC7_UNORM_BLOCK = 145, |
| 914 | VK_FORMAT_BC7_SRGB_BLOCK = 146, |
| 915 | VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK = 147, |
| 916 | VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK = 148, |
| 917 | VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK = 149, |
| 918 | VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK = 150, |
| 919 | VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK = 151, |
| 920 | VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK = 152, |
| 921 | VK_FORMAT_EAC_R11_UNORM_BLOCK = 153, |
| 922 | VK_FORMAT_EAC_R11_SNORM_BLOCK = 154, |
| 923 | VK_FORMAT_EAC_R11G11_UNORM_BLOCK = 155, |
| 924 | VK_FORMAT_EAC_R11G11_SNORM_BLOCK = 156, |
| 925 | VK_FORMAT_ASTC_4x4_UNORM_BLOCK = 157, |
| 926 | VK_FORMAT_ASTC_4x4_SRGB_BLOCK = 158, |
| 927 | VK_FORMAT_ASTC_5x4_UNORM_BLOCK = 159, |
| 928 | VK_FORMAT_ASTC_5x4_SRGB_BLOCK = 160, |
| 929 | VK_FORMAT_ASTC_5x5_UNORM_BLOCK = 161, |
| 930 | VK_FORMAT_ASTC_5x5_SRGB_BLOCK = 162, |
| 931 | VK_FORMAT_ASTC_6x5_UNORM_BLOCK = 163, |
| 932 | VK_FORMAT_ASTC_6x5_SRGB_BLOCK = 164, |
| 933 | VK_FORMAT_ASTC_6x6_UNORM_BLOCK = 165, |
| 934 | VK_FORMAT_ASTC_6x6_SRGB_BLOCK = 166, |
| 935 | VK_FORMAT_ASTC_8x5_UNORM_BLOCK = 167, |
| 936 | VK_FORMAT_ASTC_8x5_SRGB_BLOCK = 168, |
| 937 | VK_FORMAT_ASTC_8x6_UNORM_BLOCK = 169, |
| 938 | VK_FORMAT_ASTC_8x6_SRGB_BLOCK = 170, |
| 939 | VK_FORMAT_ASTC_8x8_UNORM_BLOCK = 171, |
| 940 | VK_FORMAT_ASTC_8x8_SRGB_BLOCK = 172, |
| 941 | VK_FORMAT_ASTC_10x5_UNORM_BLOCK = 173, |
| 942 | VK_FORMAT_ASTC_10x5_SRGB_BLOCK = 174, |
| 943 | VK_FORMAT_ASTC_10x6_UNORM_BLOCK = 175, |
| 944 | VK_FORMAT_ASTC_10x6_SRGB_BLOCK = 176, |
| 945 | VK_FORMAT_ASTC_10x8_UNORM_BLOCK = 177, |
| 946 | VK_FORMAT_ASTC_10x8_SRGB_BLOCK = 178, |
| 947 | VK_FORMAT_ASTC_10x10_UNORM_BLOCK = 179, |
| 948 | VK_FORMAT_ASTC_10x10_SRGB_BLOCK = 180, |
| 949 | VK_FORMAT_ASTC_12x10_UNORM_BLOCK = 181, |
| 950 | VK_FORMAT_ASTC_12x10_SRGB_BLOCK = 182, |
| 951 | VK_FORMAT_ASTC_12x12_UNORM_BLOCK = 183, |
| 952 | VK_FORMAT_ASTC_12x12_SRGB_BLOCK = 184, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 953 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 954 | //@extension("VK_IMG_format_pvrtc") // 28 |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 955 | VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG = 1000054000, |
| 956 | VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG = 1000054001, |
| 957 | VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG = 1000054002, |
| 958 | VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG = 1000054003, |
| 959 | VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG = 1000054004, |
| 960 | VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG = 1000054005, |
| 961 | VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG = 1000054006, |
| 962 | VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG = 1000054007, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 963 | } |
| 964 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 965 | /// Structure type enumerant |
| 966 | enum VkStructureType { |
| 967 | VK_STRUCTURE_TYPE_APPLICATION_INFO = 0, |
Jesse Hall | c7467b7 | 2015-11-29 21:05:26 -0800 | [diff] [blame] | 968 | VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 1, |
| 969 | VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO = 2, |
| 970 | VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = 3, |
| 971 | VK_STRUCTURE_TYPE_SUBMIT_INFO = 4, |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 972 | VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO = 5, |
Jesse Hall | c7467b7 | 2015-11-29 21:05:26 -0800 | [diff] [blame] | 973 | VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE = 6, |
| 974 | VK_STRUCTURE_TYPE_BIND_SPARSE_INFO = 7, |
| 975 | VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 8, |
| 976 | VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 9, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 977 | VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 10, |
Jesse Hall | c7467b7 | 2015-11-29 21:05:26 -0800 | [diff] [blame] | 978 | VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 11, |
| 979 | VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 12, |
| 980 | VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 13, |
| 981 | VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 14, |
| 982 | VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 15, |
| 983 | VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO = 16, |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 984 | VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO = 17, |
| 985 | VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 18, |
| 986 | VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = 19, |
| 987 | VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO = 20, |
| 988 | VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO = 21, |
| 989 | VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO = 22, |
| 990 | VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO = 23, |
| 991 | VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO = 24, |
| 992 | VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO = 25, |
| 993 | VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO = 26, |
| 994 | VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO = 27, |
| 995 | VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 28, |
| 996 | VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 29, |
| 997 | VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO = 30, |
| 998 | VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 31, |
| 999 | VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 32, |
| 1000 | VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 33, |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 1001 | VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO = 34, |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 1002 | VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET = 35, |
| 1003 | VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET = 36, |
| 1004 | VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 37, |
| 1005 | VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 38, |
| 1006 | VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO = 39, |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 1007 | VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO = 40, |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 1008 | VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO = 41, |
| 1009 | VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO = 42, |
| 1010 | VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO = 43, |
| 1011 | VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 44, |
| 1012 | VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 45, |
| 1013 | VK_STRUCTURE_TYPE_MEMORY_BARRIER = 46, |
| 1014 | VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO = 47, |
| 1015 | VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO = 48, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 1016 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1017 | //@extension("VK_KHR_swapchain") // 2 |
Jesse Hall | bd88884 | 2015-11-30 21:44:14 -0800 | [diff] [blame] | 1018 | VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR = 1000001000, |
| 1019 | VK_STRUCTURE_TYPE_PRESENT_INFO_KHR = 1000001001, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 1020 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1021 | //@extension("VK_KHR_display") // 3 |
Jesse Hall | bd88884 | 2015-11-30 21:44:14 -0800 | [diff] [blame] | 1022 | VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR = 1000002000, |
| 1023 | VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR = 1000002001, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 1024 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1025 | //@extension("VK_KHR_display_swapchain") // 4 |
Jesse Hall | bd88884 | 2015-11-30 21:44:14 -0800 | [diff] [blame] | 1026 | VK_STRUCTURE_TYPE_DISPLAY_DISPLAY_PRESENT_INFO_KHR = 1000003000, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 1027 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1028 | //@extension("VK_KHR_xlib_surface") // 5 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 1029 | VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000, |
| 1030 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1031 | //@extension("VK_KHR_xcb_surface") // 6 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 1032 | VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000, |
| 1033 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1034 | //@extension("VK_KHR_wayland_surface") // 7 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 1035 | VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000, |
| 1036 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1037 | //@extension("VK_KHR_mir_surface") // 8 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 1038 | VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR = 1000007000, |
| 1039 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1040 | //@extension("VK_KHR_android_surface") // 9 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 1041 | VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR = 1000008000, |
| 1042 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1043 | //@extension("VK_KHR_win32_surface") // 10 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 1044 | VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000, |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 1045 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1046 | //@extension("VK_ANDROID_native_buffer") // 11 |
Chia-I Wu | b262ddc | 2016-03-22 07:38:20 +0800 | [diff] [blame] | 1047 | VK_STRUCTURE_TYPE_NATIVE_BUFFER_ANDROID = 1000010000, |
Chris Forbes | 8e4438b | 2016-12-07 16:26:49 +1300 | [diff] [blame] | 1048 | VK_STRUCTURE_TYPE_SWAPCHAIN_IMAGE_CREATE_INFO_ANDROID = 1000010001, |
Chris Forbes | 1d4e554 | 2017-02-15 19:38:50 +1300 | [diff] [blame] | 1049 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENTATION_PROPERTIES_ANDROID = 1000010002, |
Chia-I Wu | b262ddc | 2016-03-22 07:38:20 +0800 | [diff] [blame] | 1050 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1051 | //@extension("VK_EXT_debug_report") // 12 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 1052 | VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT = 1000011000, |
| 1053 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1054 | //@extension("VK_AMD_rasterization_order") // 19 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 1055 | VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD = 1000018000, |
| 1056 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1057 | //@extension("VK_EXT_debug_marker") // 23 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 1058 | VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT = 1000022000, |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 1059 | VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_TAG_INFO_EXT = 1000022001, |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 1060 | VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT = 1000022002, |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 1061 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1062 | //@extension("VK_NV_dedicated_allocation") // 27 |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 1063 | VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV = 1000026000, |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 1064 | VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV = 1000026001, |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 1065 | VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV = 1000026002, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1066 | |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 1067 | //@extension("VK_AMD_texture_gather_bias_lod") // 42 |
| 1068 | VK_STRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD = 1000041000, |
| 1069 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1070 | //@extension("VK_KHX_multiview") // 54 |
| 1071 | VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO_KHX = 1000053000, |
| 1072 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES_KHX = 1000053001, |
| 1073 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES_KHX = 1000053002, |
| 1074 | |
| 1075 | //@extension("VK_NV_external_memory") // 57 |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 1076 | VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV = 1000056000, |
| 1077 | VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NV = 1000056001, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1078 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1079 | //@extension("VK_NV_external_memory_win32") // 58 |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 1080 | VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV = 1000057000, |
| 1081 | VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV = 1000057001, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1082 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1083 | //@extension("VK_NV_win32_keyed_mutex") // 59 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1084 | VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV = 1000058000, |
| 1085 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1086 | //@extension("VK_KHR_get_physical_device_properties2") // 60 |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 1087 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHR = 1000059000, |
| 1088 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR = 1000059001, |
| 1089 | VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHR = 1000059002, |
| 1090 | VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHR = 1000059003, |
| 1091 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHR = 1000059004, |
| 1092 | VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHR = 1000059005, |
| 1093 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHR = 1000059006, |
| 1094 | VK_STRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHR = 1000059007, |
Chris Forbes | 1194ede | 2016-12-30 16:29:25 +1300 | [diff] [blame] | 1095 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHR = 1000059008, |
| 1096 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1097 | //@extension("VK_KHX_device_group") // 61 |
| 1098 | VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO_KHX = 1000060000, |
| 1099 | VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO_KHX = 1000060001, |
| 1100 | VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO_KHX = 1000060002, |
| 1101 | VK_STRUCTURE_TYPE_DEVICE_GROUP_RENDER_PASS_BEGIN_INFO_KHX = 1000060003, |
| 1102 | VK_STRUCTURE_TYPE_DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO_KHX = 1000060004, |
| 1103 | VK_STRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFO_KHX = 1000060005, |
| 1104 | VK_STRUCTURE_TYPE_DEVICE_GROUP_BIND_SPARSE_INFO_KHX = 1000060006, |
| 1105 | VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_CAPABILITIES_KHX = 1000060007, |
| 1106 | VK_STRUCTURE_TYPE_IMAGE_SWAPCHAIN_CREATE_INFO_KHX = 1000060008, |
| 1107 | VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHX = 1000060009, |
| 1108 | VK_STRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHX = 1000060010, |
| 1109 | VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_INFO_KHX = 1000060011, |
| 1110 | VK_STRUCTURE_TYPE_DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHX = 1000060012, |
| 1111 | |
| 1112 | //@extension("VK_EXT_validation_flags") // 62 |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 1113 | VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT = 1000061000, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1114 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1115 | //@extension("VK_NN_vi_surface") // 63 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1116 | VK_STRUCTURE_TYPE_VI_SURFACE_CREATE_INFO_NN = 1000062000, |
| 1117 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1118 | //@extension("VK_KHX_device_group_creation") // 71 |
| 1119 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES_KHX = 1000070000, |
| 1120 | VK_STRUCTURE_TYPE_DEVICE_GROUP_DEVICE_CREATE_INFO_KHX = 1000070001, |
| 1121 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1122 | //@extension("VK_KHR_external_memory_capabilities") // 72 |
| 1123 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO_KHR = 1000071000, |
| 1124 | VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES_KHR = 1000071001, |
| 1125 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO_KHR = 1000071002, |
| 1126 | VK_STRUCTURE_TYPE_EXTERNAL_BUFFER_PROPERTIES_KHR = 1000071003, |
| 1127 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES_KHR = 1000071004, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1128 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1129 | //@extension("VK_KHR_external_memory") // 73 |
| 1130 | VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO_KHR = 1000072000, |
| 1131 | VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_KHR = 1000072001, |
| 1132 | VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR = 1000072002, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1133 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1134 | //@extension("VK_KHR_external_memory_win32") // 74 |
| 1135 | VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR = 1000073000, |
| 1136 | VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR = 1000073001, |
| 1137 | VK_STRUCTURE_TYPE_MEMORY_WIN32_HANDLE_PROPERTIES_KHR = 1000073002, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1138 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1139 | //@extension("VK_KHR_external_memory_fd") // 75 |
| 1140 | VK_STRUCTURE_TYPE_IMPORT_MEMORY_FD_INFO_KHR = 1000074000, |
| 1141 | VK_STRUCTURE_TYPE_MEMORY_FD_PROPERTIES_KHR = 1000074001, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1142 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1143 | //@extension("VK_KHR_win32_keyed_mutex") // 76 |
| 1144 | VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR = 1000075000, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1145 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1146 | //@extension("VK_KHR_external_semaphore_capabilities") // 77 |
| 1147 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO_KHR = 1000076000, |
| 1148 | VK_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIES_KHR = 1000076001, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1149 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1150 | //@extension("VK_KHR_external_semaphore") // 78 |
| 1151 | VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO_KHR = 1000077000, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1152 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1153 | //@extension("VK_KHR_external_semaphore_win32") // 79 |
| 1154 | VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR = 1000078000, |
| 1155 | VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR = 1000078001, |
| 1156 | VK_STRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHR = 1000078002, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1157 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1158 | //@extension("VK_KHR_external_semaphore_fd") // 80 |
| 1159 | VK_STRUCTURE_TYPE_IMPORT_SEMAPHORE_FD_INFO_KHR = 1000079000, |
| 1160 | VK_STRUCTURE_TYPE_SEMAPHORE_GET_FD_INFO_KHR = 1000079001, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1161 | |
| 1162 | //@extension("VK_KHR_push_descriptor") // 81 |
| 1163 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR = 1000080000, |
| 1164 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1165 | //@extension("VK_KHR_16bit_storage") // 84 |
| 1166 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES_KHR = 1000083000, |
| 1167 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1168 | //@extension("VK_KHR_incremental_present") // 85 |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 1169 | VK_STRUCTURE_TYPE_PRESENT_REGIONS_KHR = 1000084000, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1170 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1171 | //@extension("VK_KHR_descriptor_update_template") // 86 |
| 1172 | VK_STRUCTURE_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO_KHR = 1000085000, |
| 1173 | |
| 1174 | //@extension("VK_NVX_device_generated_commands") // 87 |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 1175 | VK_STRUCTURE_TYPE_OBJECT_TABLE_CREATE_INFO_NVX = 1000086000, |
| 1176 | VK_STRUCTURE_TYPE_INDIRECT_COMMANDS_LAYOUT_CREATE_INFO_NVX = 1000086001, |
| 1177 | VK_STRUCTURE_TYPE_CMD_PROCESS_COMMANDS_INFO_NVX = 1000086002, |
| 1178 | VK_STRUCTURE_TYPE_CMD_RESERVE_SPACE_FOR_COMMANDS_INFO_NVX = 1000086003, |
| 1179 | VK_STRUCTURE_TYPE_DEVICE_GENERATED_COMMANDS_LIMITS_NVX = 1000086004, |
| 1180 | VK_STRUCTURE_TYPE_DEVICE_GENERATED_COMMANDS_FEATURES_NVX = 1000086005, |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1181 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1182 | //@extension("VK_NV_clip_space_w_scaling") // 88 |
| 1183 | VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV = 1000087000, |
| 1184 | |
| 1185 | //@extension("VK_EXT_display_surface_counter") // 91 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1186 | VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES2_EXT = 1000090000, |
| 1187 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1188 | //@extension("VK_EXT_display_control") // 92 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1189 | VK_STRUCTURE_TYPE_DISPLAY_POWER_INFO_EXT = 1000091000, |
| 1190 | VK_STRUCTURE_TYPE_DEVICE_EVENT_INFO_EXT = 1000091001, |
| 1191 | VK_STRUCTURE_TYPE_DISPLAY_EVENT_INFO_EXT = 1000091002, |
| 1192 | VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXT = 1000091003, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1193 | |
| 1194 | //@extension("VK_GOOGLE_display_timing") // 93 |
| 1195 | VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE = 1000092000, |
| 1196 | |
| 1197 | //@extension("VK_NVX_multiview_per_view_attributes") // 98 |
| 1198 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_ATTRIBUTES_PROPERTIES_NVX = 1000097000, |
| 1199 | |
| 1200 | //@extension("VK_NV_viewport_swizzle") // 99 |
| 1201 | VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_SWIZZLE_STATE_CREATE_INFO_NV = 1000098000, |
| 1202 | |
| 1203 | //@extension("VK_EXT_discard_rectangles") // 100 |
| 1204 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT = 1000099000, |
| 1205 | VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT = 1000099001, |
| 1206 | |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 1207 | //@extension("VK_EXT_hdr_metadata") // 106 |
| 1208 | VK_STRUCTURE_TYPE_HDR_METADATA_EXT = 1000105000, |
| 1209 | |
Jesse Hall | 05556b1 | 2017-05-18 17:40:25 -0700 | [diff] [blame] | 1210 | //@extension("VK_KHR_shared_presentable_image") // 112 |
Chris Forbes | e2d3ee1 | 2017-03-16 16:10:15 +1300 | [diff] [blame] | 1211 | VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_KHR = 1000111000, |
| 1212 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1213 | //@extension("VK_KHR_external_fence_capabilities") // 113 |
| 1214 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO_KHR = 1000112000, |
| 1215 | VK_STRUCTURE_TYPE_EXTERNAL_FENCE_PROPERTIES_KHR = 1000112001, |
| 1216 | |
| 1217 | //@extension("VK_KHR_external_fence") // 114 |
| 1218 | VK_STRUCTURE_TYPE_EXPORT_FENCE_CREATE_INFO_KHR = 1000113000, |
| 1219 | |
| 1220 | //@extension("VK_KHR_external_fence_win32") // 115 |
| 1221 | VK_STRUCTURE_TYPE_IMPORT_FENCE_WIN32_HANDLE_INFO_KHR = 1000114000, |
| 1222 | VK_STRUCTURE_TYPE_EXPORT_FENCE_WIN32_HANDLE_INFO_KHR = 1000114001, |
| 1223 | VK_STRUCTURE_TYPE_FENCE_GET_WIN32_HANDLE_INFO_KHR = 1000114002, |
| 1224 | |
| 1225 | //@extension("VK_KHR_external_fence_fd") // 117 |
| 1226 | VK_STRUCTURE_TYPE_IMPORT_FENCE_FD_INFO_KHR = 1000115000, |
| 1227 | VK_STRUCTURE_TYPE_FENCE_GET_FD_INFO_KHR = 1000115001, |
| 1228 | |
Jesse Hall | 05556b1 | 2017-05-18 17:40:25 -0700 | [diff] [blame] | 1229 | //@extension("VK_KHR_get_surface_capabilities2") // 120 |
Chris Forbes | e2d3ee1 | 2017-03-16 16:10:15 +1300 | [diff] [blame] | 1230 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SURFACE_INFO_2_KHR = 1000119000, |
| 1231 | VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_2_KHR = 1000119001, |
| 1232 | VK_STRUCTURE_TYPE_SURFACE_FORMAT_2_KHR = 1000119002, |
| 1233 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1234 | //@extension("VK_KHR_variable_pointers") // 121 |
| 1235 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES_KHR = 1000120000, |
| 1236 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1237 | //@extension("VK_MVK_ios_surface") // 123 |
| 1238 | VK_STRUCTURE_TYPE_IOS_SURFACE_CREATE_INFO_MVK = 1000122000, |
| 1239 | |
| 1240 | //@extension("VK_MVK_macos_surface") // 124 |
| 1241 | VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK = 1000123000, |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 1242 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1243 | //@extension("VK_KHR_dedicated_allocation") // 128 |
| 1244 | VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS_KHR = 1000127000, |
| 1245 | VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO_KHR = 1000127001, |
| 1246 | |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 1247 | //@extension("VK_EXT_sampler_filter_minmax") // 131 |
| 1248 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES_EXT = 1000130000, |
| 1249 | VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO_EXT = 1000130001, |
| 1250 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1251 | //@extension("VK_KHR_get_memory_requirements2") // 147 |
| 1252 | VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR = 1000146000, |
| 1253 | VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR = 1000146001, |
| 1254 | VK_STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2_KHR = 1000146002, |
| 1255 | VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR = 1000146003, |
| 1256 | VK_STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2_KHR = 1000146004, |
| 1257 | |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 1258 | //@extension("VK_EXT_blend_operation_advanced") // 149 |
| 1259 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_FEATURES_EXT = 1000148000, |
| 1260 | VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT = 1000148001, |
| 1261 | VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXT = 1000148002, |
| 1262 | |
| 1263 | //@extension("VK_NV_fragment_coverage_to_color") // 150 |
| 1264 | VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NV = 1000149000, |
| 1265 | |
| 1266 | //@structure("VK_NV_framebuffer_mixed_samples") // 153 |
| 1267 | VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_MODULATION_STATE_CREATE_INFO_NV = 1000152000, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1268 | } |
| 1269 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 1270 | enum VkSubpassContents { |
| 1271 | VK_SUBPASS_CONTENTS_INLINE = 0x00000000, |
| 1272 | VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS = 0x00000001, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1273 | } |
| 1274 | |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 1275 | enum VkPipelineCacheHeaderVersion { |
| 1276 | VK_PIPELINE_CACHE_HEADER_VERSION_ONE = 1, |
| 1277 | } |
| 1278 | |
Jesse Hall | bd88884 | 2015-11-30 21:44:14 -0800 | [diff] [blame] | 1279 | @lastUnused(-11) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1280 | /// Error and return codes |
| 1281 | enum VkResult { |
| 1282 | // Return codes for successful operation execution (positive values) |
Jesse Hall | bd88884 | 2015-11-30 21:44:14 -0800 | [diff] [blame] | 1283 | VK_SUCCESS = 0, |
| 1284 | VK_NOT_READY = 1, |
| 1285 | VK_TIMEOUT = 2, |
| 1286 | VK_EVENT_SET = 3, |
| 1287 | VK_EVENT_RESET = 4, |
| 1288 | VK_INCOMPLETE = 5, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1289 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1290 | //@extension("VK_KHR_swapchain") // 2 |
Jesse Hall | bd88884 | 2015-11-30 21:44:14 -0800 | [diff] [blame] | 1291 | VK_SUBOPTIMAL_KHR = 1000001003, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 1292 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1293 | // Error codes (negative values) |
Jesse Hall | bd88884 | 2015-11-30 21:44:14 -0800 | [diff] [blame] | 1294 | VK_ERROR_OUT_OF_HOST_MEMORY = 0xFFFFFFFF, // -1 |
| 1295 | VK_ERROR_OUT_OF_DEVICE_MEMORY = 0xFFFFFFFE, // -2 |
| 1296 | VK_ERROR_INITIALIZATION_FAILED = 0xFFFFFFFD, // -3 |
| 1297 | VK_ERROR_DEVICE_LOST = 0xFFFFFFFC, // -4 |
| 1298 | VK_ERROR_MEMORY_MAP_FAILED = 0xFFFFFFFB, // -5 |
| 1299 | VK_ERROR_LAYER_NOT_PRESENT = 0xFFFFFFFA, // -6 |
| 1300 | VK_ERROR_EXTENSION_NOT_PRESENT = 0xFFFFFFF9, // -7 |
| 1301 | VK_ERROR_FEATURE_NOT_PRESENT = 0xFFFFFFF8, // -8 |
| 1302 | VK_ERROR_INCOMPATIBLE_DRIVER = 0xFFFFFFF7, // -9 |
| 1303 | VK_ERROR_TOO_MANY_OBJECTS = 0xFFFFFFF6, // -10 |
| 1304 | VK_ERROR_FORMAT_NOT_SUPPORTED = 0xFFFFFFF5, // -11 |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 1305 | VK_ERROR_FRAGMENTED_POOL = 0xFFFFFFF4, // -12 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 1306 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1307 | //@extension("VK_KHR_surface") // 1 |
Jesse Hall | bd88884 | 2015-11-30 21:44:14 -0800 | [diff] [blame] | 1308 | VK_ERROR_SURFACE_LOST_KHR = 0xC4653600, // -1000000000 |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1309 | VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = 0xC46535FF, // -1000000001 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 1310 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1311 | //@extension("VK_KHR_swapchain") // 2 |
Jesse Hall | bd88884 | 2015-11-30 21:44:14 -0800 | [diff] [blame] | 1312 | VK_ERROR_OUT_OF_DATE_KHR = 0xC4653214, // -1000001004 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 1313 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1314 | //@extension("VK_KHR_display_swapchain") // 4 |
Jesse Hall | bd88884 | 2015-11-30 21:44:14 -0800 | [diff] [blame] | 1315 | VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = 0xC4652A47, // -1000003001 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 1316 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1317 | //@extension("VK_EXT_debug_report") // 12 |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 1318 | VK_ERROR_VALIDATION_FAILED_EXT = 0xC4650B07, // -1000011001 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 1319 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1320 | //@extension("VK_NV_glsl_shader") // 13 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 1321 | VK_ERROR_INVALID_SHADER_NV = 0xC4650720, // -1000012000 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1322 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1323 | //@extension("VK_KHR_maintenance1") // 70 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1324 | VK_ERROR_OUT_OF_POOL_MEMORY_KHR = 0xC4642878, // -1000069000 |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1325 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 1326 | //@extension("VK_KHR_external_memory") // 73 |
| 1327 | VK_ERROR_INVALID_EXTERNAL_HANDLE_KHR = 0xC4641CBD, // -1000072003 |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 1328 | } |
| 1329 | |
| 1330 | enum VkDynamicState { |
| 1331 | VK_DYNAMIC_STATE_VIEWPORT = 0x00000000, |
| 1332 | VK_DYNAMIC_STATE_SCISSOR = 0x00000001, |
| 1333 | VK_DYNAMIC_STATE_LINE_WIDTH = 0x00000002, |
| 1334 | VK_DYNAMIC_STATE_DEPTH_BIAS = 0x00000003, |
| 1335 | VK_DYNAMIC_STATE_BLEND_CONSTANTS = 0x00000004, |
| 1336 | VK_DYNAMIC_STATE_DEPTH_BOUNDS = 0x00000005, |
| 1337 | VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK = 0x00000006, |
| 1338 | VK_DYNAMIC_STATE_STENCIL_WRITE_MASK = 0x00000007, |
| 1339 | VK_DYNAMIC_STATE_STENCIL_REFERENCE = 0x00000008, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1340 | |
| 1341 | //@extension("VK_NV_clip_space_w_scaling") // 88 |
| 1342 | VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV = 1000087000, |
| 1343 | |
| 1344 | //@extension("VK_EXT_discard_rectangles") // 100 |
| 1345 | VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT = 1000099000, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1346 | } |
| 1347 | |
Jesse Hall | 05556b1 | 2017-05-18 17:40:25 -0700 | [diff] [blame] | 1348 | enum VkObjectType { |
| 1349 | VK_OBJECT_TYPE_UNKNOWN = 0, |
| 1350 | VK_OBJECT_TYPE_INSTANCE = 1, |
| 1351 | VK_OBJECT_TYPE_PHYSICAL_DEVICE = 2, |
| 1352 | VK_OBJECT_TYPE_DEVICE = 3, |
| 1353 | VK_OBJECT_TYPE_QUEUE = 4, |
| 1354 | VK_OBJECT_TYPE_SEMAPHORE = 5, |
| 1355 | VK_OBJECT_TYPE_COMMAND_BUFFER = 6, |
| 1356 | VK_OBJECT_TYPE_FENCE = 7, |
| 1357 | VK_OBJECT_TYPE_DEVICE_MEMORY = 8, |
| 1358 | VK_OBJECT_TYPE_BUFFER = 9, |
| 1359 | VK_OBJECT_TYPE_IMAGE = 10, |
| 1360 | VK_OBJECT_TYPE_EVENT = 11, |
| 1361 | VK_OBJECT_TYPE_QUERY_POOL = 12, |
| 1362 | VK_OBJECT_TYPE_BUFFER_VIEW = 13, |
| 1363 | VK_OBJECT_TYPE_IMAGE_VIEW = 14, |
| 1364 | VK_OBJECT_TYPE_SHADER_MODULE = 15, |
| 1365 | VK_OBJECT_TYPE_PIPELINE_CACHE = 16, |
| 1366 | VK_OBJECT_TYPE_PIPELINE_LAYOUT = 17, |
| 1367 | VK_OBJECT_TYPE_RENDER_PASS = 18, |
| 1368 | VK_OBJECT_TYPE_PIPELINE = 19, |
| 1369 | VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT = 20, |
| 1370 | VK_OBJECT_TYPE_SAMPLER = 21, |
| 1371 | VK_OBJECT_TYPE_DESCRIPTOR_POOL = 22, |
| 1372 | VK_OBJECT_TYPE_DESCRIPTOR_SET = 23, |
| 1373 | VK_OBJECT_TYPE_FRAMEBUFFER = 24, |
| 1374 | VK_OBJECT_TYPE_COMMAND_POOL = 25, |
| 1375 | |
| 1376 | //@extension("VK_KHR_surface") // 1 |
| 1377 | VK_OBJECT_TYPE_SURFACE_KHR = 1000000000, |
| 1378 | |
| 1379 | //@extension("VK_KHR_swapchain") // 2 |
| 1380 | VK_OBJECT_TYPE_SWAPCHAIN_KHR = 1000001000, |
| 1381 | |
| 1382 | //@extension("VK_KHR_display") // 3 |
| 1383 | VK_OBJECT_TYPE_DISPLAY_KHR = 1000002000, |
| 1384 | VK_OBJECT_TYPE_DISPLAY_MODE_KHR = 1000002001, |
| 1385 | |
| 1386 | //@extension("VK_KHR_debug_report") // 12 |
| 1387 | VK_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT = 1000011000, |
| 1388 | |
| 1389 | //@extension("VK_KHR_descriptor_update_template") // 86 |
| 1390 | VK_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_KHR = 1000085000, |
| 1391 | |
| 1392 | //@extension("VK_NVX_device_generated_commands") // 87 |
| 1393 | VK_OBJECT_TYPE_OBJECT_TABLE_NVX = 1000086000, |
| 1394 | VK_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX = 1000086001, |
| 1395 | } |
| 1396 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1397 | @extension("VK_KHR_surface") // 1 |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 1398 | enum VkPresentModeKHR { |
| 1399 | VK_PRESENT_MODE_IMMEDIATE_KHR = 0x00000000, |
| 1400 | VK_PRESENT_MODE_MAILBOX_KHR = 0x00000001, |
| 1401 | VK_PRESENT_MODE_FIFO_KHR = 0x00000002, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 1402 | VK_PRESENT_MODE_FIFO_RELAXED_KHR = 0x00000003, |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1403 | |
Jesse Hall | 05556b1 | 2017-05-18 17:40:25 -0700 | [diff] [blame] | 1404 | //@extension("VK_KHR_shared_presentable_image") // 112 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1405 | VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR = 1000111000, |
| 1406 | VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR = 1000111001, |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 1407 | } |
| 1408 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1409 | @extension("VK_KHR_surface") // 1 |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 1410 | enum VkColorSpaceKHR { |
| 1411 | VK_COLORSPACE_SRGB_NONLINEAR_KHR = 0x00000000, |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1412 | |
Jesse Hall | f5ad48b | 2017-03-20 13:09:19 -0700 | [diff] [blame] | 1413 | //@extension("VK_EXT_swapchain_colorspace") // 105 |
| 1414 | VK_COLOR_SPACE_DISPLAY_P3_NONLINEAR_EXT = 1000104001, |
| 1415 | VK_COLOR_SPACE_EXTENDED_SRGB_LINEAR_EXT = 1000104002, |
| 1416 | VK_COLOR_SPACE_DCI_P3_LINEAR_EXT = 1000104003, |
| 1417 | VK_COLOR_SPACE_DCI_P3_NONLINEAR_EXT = 1000104004, |
| 1418 | VK_COLOR_SPACE_BT709_LINEAR_EXT = 1000104005, |
| 1419 | VK_COLOR_SPACE_BT709_NONLINEAR_EXT = 1000104006, |
| 1420 | VK_COLOR_SPACE_BT2020_LINEAR_EXT = 1000104007, |
| 1421 | VK_COLOR_SPACE_HDR10_ST2084_EXT = 1000104008, |
| 1422 | VK_COLOR_SPACE_DOLBYVISION_EXT = 1000104009, |
| 1423 | VK_COLOR_SPACE_HDR10_HLG_EXT = 1000104010, |
Courtney Goeltzenleuchter | 7f558ed | 2017-01-23 17:15:24 -0700 | [diff] [blame] | 1424 | VK_COLOR_SPACE_ADOBERGB_LINEAR_EXT = 1000104011, |
| 1425 | VK_COLOR_SPACE_ADOBERGB_NONLINEAR_EXT = 1000104012, |
Jesse Hall | f5ad48b | 2017-03-20 13:09:19 -0700 | [diff] [blame] | 1426 | VK_COLOR_SPACE_PASS_THROUGH_EXT = 1000104013, |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 1427 | } |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1428 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1429 | @extension("VK_EXT_debug_report") // 12 |
Jesse Hall | 715b86a | 2016-01-16 16:34:29 -0800 | [diff] [blame] | 1430 | enum VkDebugReportObjectTypeEXT { |
| 1431 | VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT = 0, |
| 1432 | VK_DEBUG_REPORT_OBJECT_TYPE_INSTANCE_EXT = 1, |
| 1433 | VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT = 2, |
| 1434 | VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT = 3, |
| 1435 | VK_DEBUG_REPORT_OBJECT_TYPE_QUEUE_EXT = 4, |
| 1436 | VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT = 5, |
| 1437 | VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT = 6, |
| 1438 | VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT = 7, |
| 1439 | VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT = 8, |
| 1440 | VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT = 9, |
| 1441 | VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT = 10, |
| 1442 | VK_DEBUG_REPORT_OBJECT_TYPE_EVENT_EXT = 11, |
| 1443 | VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT = 12, |
| 1444 | VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_VIEW_EXT = 13, |
| 1445 | VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT = 14, |
| 1446 | VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT = 15, |
| 1447 | VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CACHE_EXT = 16, |
| 1448 | VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_LAYOUT_EXT = 17, |
| 1449 | VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT = 18, |
| 1450 | VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT = 19, |
| 1451 | VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT_EXT = 20, |
| 1452 | VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_EXT = 21, |
| 1453 | VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_POOL_EXT = 22, |
| 1454 | VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_EXT = 23, |
| 1455 | VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT = 24, |
| 1456 | VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EXT = 25, |
| 1457 | VK_DEBUG_REPORT_OBJECT_TYPE_SURFACE_KHR_EXT = 26, |
| 1458 | VK_DEBUG_REPORT_OBJECT_TYPE_SWAPCHAIN_KHR_EXT = 27, |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 1459 | VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_CALLBACK_EXT_EXT = 28, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1460 | VK_DEBUG_REPORT_OBJECT_TYPE_DISPLAY_KHR_EXT = 29, |
| 1461 | VK_DEBUG_REPORT_OBJECT_TYPE_DISPLAY_MODE_KHR_EXT = 30, |
| 1462 | VK_DEBUG_REPORT_OBJECT_TYPE_OBJECT_TABLE_NVX_EXT = 31, |
| 1463 | VK_DEBUG_REPORT_OBJECT_TYPE_INDIRECT_COMMANDS_LAYOUT_NVX_EXT = 32, |
Jesse Hall | f5ad48b | 2017-03-20 13:09:19 -0700 | [diff] [blame] | 1464 | |
| 1465 | //extension("VK_KHR_descriptor_update_template") // 86 |
| 1466 | VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_KHR_EXT = 1000085000, |
Jesse Hall | 715b86a | 2016-01-16 16:34:29 -0800 | [diff] [blame] | 1467 | } |
| 1468 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1469 | @extension("VK_AMD_rasterization_order") // 19 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 1470 | enum VkRasterizationOrderAMD { |
| 1471 | VK_RASTERIZATION_ORDER_STRICT_AMD = 0, |
| 1472 | VK_RASTERIZATION_ORDER_RELAXED_AMD = 1, |
| 1473 | } |
| 1474 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1475 | @extension("VK_EXT_validation_flags") // 62 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1476 | enum VkValidationCheckEXT { |
| 1477 | VK_VALIDATION_CHECK_ALL_EXT = 0, |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 1478 | VK_VALIDATION_CHECK_SHADERS_EXT = 1, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1479 | } |
| 1480 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1481 | @extension("VK_KHR_descriptor_update_template") // 86 |
| 1482 | enum VkDescriptorUpdateTemplateTypeKHR { |
| 1483 | VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET_KHR = 0, |
| 1484 | VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR = 1, |
| 1485 | } |
| 1486 | |
| 1487 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1488 | enum VkIndirectCommandsTokenTypeNVX { |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 1489 | VK_INDIRECT_COMMANDS_TOKEN_TYPE_PIPELINE_NVX = 0, |
| 1490 | VK_INDIRECT_COMMANDS_TOKEN_TYPE_DESCRIPTOR_SET_NVX = 1, |
| 1491 | VK_INDIRECT_COMMANDS_TOKEN_TYPE_INDEX_BUFFER_NVX = 2, |
| 1492 | VK_INDIRECT_COMMANDS_TOKEN_TYPE_VERTEX_BUFFER_NVX = 3, |
| 1493 | VK_INDIRECT_COMMANDS_TOKEN_TYPE_PUSH_CONSTANT_NVX = 4, |
| 1494 | VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_INDEXED_NVX = 5, |
| 1495 | VK_INDIRECT_COMMANDS_TOKEN_TYPE_DRAW_NVX = 6, |
| 1496 | VK_INDIRECT_COMMANDS_TOKEN_TYPE_DISPATCH_NVX = 7, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1497 | } |
| 1498 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1499 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1500 | enum VkObjectEntryTypeNVX { |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 1501 | VK_OBJECT_ENTRY_TYPE_DESCRIPTOR_SET_NVX = 0, |
| 1502 | VK_OBJECT_ENTRY_TYPE_PIPELINE_NVX = 1, |
| 1503 | VK_OBJECT_ENTRY_TYPE_INDEX_BUFFER_NVX = 2, |
| 1504 | VK_OBJECT_ENTRY_TYPE_VERTEX_BUFFER_NVX = 3, |
| 1505 | VK_OBJECT_ENTRY_TYPE_PUSH_CONSTANT_NVX = 4, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1506 | } |
Jesse Hall | 715b86a | 2016-01-16 16:34:29 -0800 | [diff] [blame] | 1507 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1508 | @extension("VK_EXT_display_control") // 92 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1509 | enum VkDisplayPowerStateEXT { |
| 1510 | VK_DISPLAY_POWER_STATE_OFF_EXT = 0, |
| 1511 | VK_DISPLAY_POWER_STATE_SUSPEND_EXT = 1, |
| 1512 | VK_DISPLAY_POWER_STATE_ON_EXT = 2, |
| 1513 | } |
| 1514 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1515 | @extension("VK_EXT_display_control") // 92 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1516 | enum VkDeviceEventTypeEXT { |
| 1517 | VK_DEVICE_EVENT_TYPE_DISPLAY_HOTPLUG_EXT = 0, |
| 1518 | } |
| 1519 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1520 | @extension("VK_EXT_display_control") // 92 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1521 | enum VkDisplayEventTypeEXT { |
| 1522 | VK_DISPLAY_EVENT_TYPE_FIRST_PIXEL_OUT_EXT = 0, |
| 1523 | } |
| 1524 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1525 | @extension("VK_NV_viewport_swizzle") // 99 |
| 1526 | enum VkViewportCoordinateSwizzleNV { |
| 1527 | VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_X_NV = 0, |
| 1528 | VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_X_NV = 1, |
| 1529 | VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_Y_NV = 2, |
| 1530 | VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_Y_NV = 3, |
| 1531 | VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_Z_NV = 4, |
| 1532 | VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_Z_NV = 5, |
| 1533 | VK_VIEWPORT_COORDINATE_SWIZZLE_POSITIVE_W_NV = 6, |
| 1534 | VK_VIEWPORT_COORDINATE_SWIZZLE_NEGATIVE_W_NV = 7, |
| 1535 | } |
| 1536 | |
| 1537 | @extension("VK_EXT_discard_rectangles") // 100 |
| 1538 | enum VkDiscardRectangleModeEXT { |
| 1539 | VK_DISCARD_RECTANGLE_MODE_INCLUSIVE_EXT = 0, |
| 1540 | VK_DISCARD_RECTANGLE_MODE_EXCLUSIVE_EXT = 1, |
| 1541 | } |
| 1542 | |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 1543 | @extension("VK_EXT_sampler_filter_minmax") // 131 |
| 1544 | enum VkSamplerReductionModeEXT { |
| 1545 | VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT = 0, |
| 1546 | VK_SAMPLER_REDUCTION_MODE_MIN_EXT = 1, |
| 1547 | VK_SAMPLER_REDUCTION_MODE_MAX_EXT = 2, |
| 1548 | } |
| 1549 | |
| 1550 | @extension("VK_EXT_blend_operation_advanced") // 149 |
| 1551 | enum VkBlendOverlapEXT { |
| 1552 | VK_BLEND_OVERLAP_UNCORRELATED_EXT = 0, |
| 1553 | VK_BLEND_OVERLAP_DISJOINT_EXT = 1, |
| 1554 | VK_BLEND_OVERLAP_CONJOINT_EXT = 2, |
| 1555 | } |
| 1556 | |
| 1557 | @extension("VK_NV_framebuffer_mixed_samples") // 153 |
| 1558 | enum VkCoverageModulationModeNV { |
| 1559 | VK_COVERAGE_MODULATION_MODE_NONE_NV = 0, |
| 1560 | VK_COVERAGE_MODULATION_MODE_RGB_NV = 1, |
| 1561 | VK_COVERAGE_MODULATION_MODE_ALPHA_NV = 2, |
| 1562 | VK_COVERAGE_MODULATION_MODE_RGBA_NV = 3, |
| 1563 | } |
| 1564 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1565 | ///////////////// |
| 1566 | // Bitfields // |
| 1567 | ///////////////// |
| 1568 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1569 | /// Queue capabilities |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1570 | type VkFlags VkQueueFlags |
| 1571 | bitfield VkQueueFlagBits { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1572 | VK_QUEUE_GRAPHICS_BIT = 0x00000001, /// Queue supports graphics operations |
| 1573 | VK_QUEUE_COMPUTE_BIT = 0x00000002, /// Queue supports compute operations |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 1574 | VK_QUEUE_TRANSFER_BIT = 0x00000004, /// Queue supports transfer operations |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 1575 | VK_QUEUE_SPARSE_BINDING_BIT = 0x00000008, /// Queue supports sparse resource memory management operations |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1576 | } |
| 1577 | |
| 1578 | /// Memory properties passed into vkAllocMemory(). |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1579 | type VkFlags VkMemoryPropertyFlags |
| 1580 | bitfield VkMemoryPropertyFlagBits { |
Jesse Hall | d1af812 | 2015-11-29 23:50:38 -0800 | [diff] [blame] | 1581 | VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT = 0x00000001, |
| 1582 | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT = 0x00000002, |
| 1583 | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT = 0x00000004, |
| 1584 | VK_MEMORY_PROPERTY_HOST_CACHED_BIT = 0x00000008, |
| 1585 | VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT = 0x00000010, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1586 | } |
| 1587 | |
| 1588 | /// Memory heap flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1589 | type VkFlags VkMemoryHeapFlags |
| 1590 | bitfield VkMemoryHeapFlagBits { |
Jesse Hall | d1af812 | 2015-11-29 23:50:38 -0800 | [diff] [blame] | 1591 | VK_MEMORY_HEAP_DEVICE_LOCAL_BIT = 0x00000001, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1592 | |
| 1593 | //@extension("VK_KHX_device_group_creation") // 71 |
| 1594 | VK_MEMORY_HEAP_MULTI_INSTANCE_BIT_KHX = 0x00000002, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1595 | } |
| 1596 | |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 1597 | /// Access flags |
| 1598 | type VkFlags VkAccessFlags |
| 1599 | bitfield VkAccessFlagBits { |
| 1600 | VK_ACCESS_INDIRECT_COMMAND_READ_BIT = 0x00000001, |
| 1601 | VK_ACCESS_INDEX_READ_BIT = 0x00000002, |
| 1602 | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT = 0x00000004, |
| 1603 | VK_ACCESS_UNIFORM_READ_BIT = 0x00000008, |
| 1604 | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT = 0x00000010, |
| 1605 | VK_ACCESS_SHADER_READ_BIT = 0x00000020, |
| 1606 | VK_ACCESS_SHADER_WRITE_BIT = 0x00000040, |
| 1607 | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT = 0x00000080, |
| 1608 | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT = 0x00000100, |
| 1609 | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT = 0x00000200, |
| 1610 | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT = 0x00000400, |
| 1611 | VK_ACCESS_TRANSFER_READ_BIT = 0x00000800, |
| 1612 | VK_ACCESS_TRANSFER_WRITE_BIT = 0x00001000, |
| 1613 | VK_ACCESS_HOST_READ_BIT = 0x00002000, |
| 1614 | VK_ACCESS_HOST_WRITE_BIT = 0x00004000, |
| 1615 | VK_ACCESS_MEMORY_READ_BIT = 0x00008000, |
| 1616 | VK_ACCESS_MEMORY_WRITE_BIT = 0x00010000, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1617 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1618 | //@extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1619 | VK_ACCESS_COMMAND_PROCESS_READ_BIT_NVX = 0x00020000, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1620 | VK_ACCESS_COMMAND_PROCESS_WRITE_BIT_NVX = 0x00040000, |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 1621 | |
| 1622 | //@extension("VK_EXT_blend_operation_advanced") // 149 |
| 1623 | VK_ACCESS_COLOR_ATTACHMENT_READ_NONCOHERENT_BIT_EXT = 0x00080000, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1624 | } |
| 1625 | |
| 1626 | /// Buffer usage flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1627 | type VkFlags VkBufferUsageFlags |
| 1628 | bitfield VkBufferUsageFlagBits { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 1629 | VK_BUFFER_USAGE_TRANSFER_SRC_BIT = 0x00000001, /// Can be used as a source of transfer operations |
| 1630 | VK_BUFFER_USAGE_TRANSFER_DST_BIT = 0x00000002, /// Can be used as a destination of transfer operations |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1631 | VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004, /// Can be used as TBO |
| 1632 | VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = 0x00000008, /// Can be used as IBO |
| 1633 | VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = 0x00000010, /// Can be used as UBO |
| 1634 | VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = 0x00000020, /// Can be used as SSBO |
| 1635 | VK_BUFFER_USAGE_INDEX_BUFFER_BIT = 0x00000040, /// Can be used as source of fixed function index fetch (index buffer) |
| 1636 | VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = 0x00000080, /// Can be used as source of fixed function vertex fetch (VBO) |
| 1637 | VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = 0x00000100, /// Can be the source of indirect parameters (e.g. indirect buffer, parameter buffer) |
| 1638 | } |
| 1639 | |
| 1640 | /// Buffer creation flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1641 | type VkFlags VkBufferCreateFlags |
| 1642 | bitfield VkBufferCreateFlagBits { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 1643 | VK_BUFFER_CREATE_SPARSE_BINDING_BIT = 0x00000001, /// Buffer should support sparse backing |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1644 | VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002, /// Buffer should support sparse backing with partial residency |
| 1645 | VK_BUFFER_CREATE_SPARSE_ALIASED_BIT = 0x00000004, /// Buffer should support constent data access to physical memory blocks mapped into multiple locations of sparse buffers |
| 1646 | } |
| 1647 | |
| 1648 | /// Shader stage flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1649 | type VkFlags VkShaderStageFlags |
| 1650 | bitfield VkShaderStageFlagBits { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1651 | VK_SHADER_STAGE_VERTEX_BIT = 0x00000001, |
Jesse Hall | ae38f73 | 2015-11-19 21:32:50 -0800 | [diff] [blame] | 1652 | VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT = 0x00000002, |
| 1653 | VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT = 0x00000004, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1654 | VK_SHADER_STAGE_GEOMETRY_BIT = 0x00000008, |
| 1655 | VK_SHADER_STAGE_FRAGMENT_BIT = 0x00000010, |
| 1656 | VK_SHADER_STAGE_COMPUTE_BIT = 0x00000020, |
Jesse Hall | c7467b7 | 2015-11-29 21:05:26 -0800 | [diff] [blame] | 1657 | VK_SHADER_STAGE_ALL_GRAPHICS = 0x0000001F, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1658 | |
| 1659 | VK_SHADER_STAGE_ALL = 0x7FFFFFFF, |
| 1660 | } |
| 1661 | |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 1662 | /// Descriptor pool create flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1663 | type VkFlags VkDescriptorPoolCreateFlags |
| 1664 | bitfield VkDescriptorPoolCreateFlagBits { |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 1665 | VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT = 0x00000001, |
| 1666 | } |
| 1667 | |
| 1668 | /// Descriptor pool reset flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1669 | type VkFlags VkDescriptorPoolResetFlags |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 1670 | //bitfield VkDescriptorPoolResetFlagBits { |
| 1671 | //} |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 1672 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1673 | /// Image usage flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1674 | type VkFlags VkImageUsageFlags |
| 1675 | bitfield VkImageUsageFlagBits { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 1676 | VK_IMAGE_USAGE_TRANSFER_SRC_BIT = 0x00000001, /// Can be used as a source of transfer operations |
| 1677 | VK_IMAGE_USAGE_TRANSFER_DST_BIT = 0x00000002, /// Can be used as a destination of transfer operations |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1678 | VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004, /// Can be sampled from (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types) |
| 1679 | VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008, /// Can be used as storage image (STORAGE_IMAGE descriptor type) |
| 1680 | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010, /// Can be used as framebuffer color attachment |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 1681 | VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000020, /// Can be used as framebuffer depth/stencil attachment |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1682 | VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040, /// Image data not needed outside of rendering |
| 1683 | VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 0x00000080, /// Can be used as framebuffer input attachment |
| 1684 | } |
| 1685 | |
| 1686 | /// Image creation flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1687 | type VkFlags VkImageCreateFlags |
| 1688 | bitfield VkImageCreateFlagBits { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 1689 | VK_IMAGE_CREATE_SPARSE_BINDING_BIT = 0x00000001, /// Image should support sparse backing |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1690 | VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002, /// Image should support sparse backing with partial residency |
| 1691 | VK_IMAGE_CREATE_SPARSE_ALIASED_BIT = 0x00000004, /// Image should support constent data access to physical memory blocks mapped into multiple locations of sparse images |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 1692 | VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = 0x00000008, /// Allows image views to have different format than the base image |
| 1693 | VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = 0x00000010, /// Allows creating image views with cube type from the created image |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1694 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1695 | //@extension("VK_KHR_maintenance1") // 70 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1696 | VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT_KHR = 0x00000020, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1697 | |
| 1698 | //@extension("VK_KHX_device_group") // 61 |
| 1699 | VK_IMAGE_CREATE_BIND_SFR_BIT_KHX = 0x00000040, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1700 | } |
| 1701 | |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 1702 | /// Image view creation flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1703 | type VkFlags VkImageViewCreateFlags |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 1704 | //bitfield VkImageViewCreateFlagBits { |
| 1705 | //} |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1706 | |
| 1707 | /// Pipeline creation flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1708 | type VkFlags VkPipelineCreateFlags |
| 1709 | bitfield VkPipelineCreateFlagBits { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1710 | VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = 0x00000001, |
| 1711 | VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = 0x00000002, |
| 1712 | VK_PIPELINE_CREATE_DERIVATIVE_BIT = 0x00000004, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1713 | |
| 1714 | //@extension("VK_KHX_device_group") // 61 |
| 1715 | VK_PIPELINE_CREATE_VIEW_INDEX_FROM_DEVICE_INDEX_BIT_KHX = 0x00000008, |
| 1716 | VK_PIPELINE_CREATE_DISPATCH_BASE_KHX = 0x00000010, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1717 | } |
| 1718 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 1719 | /// Color component flags |
| 1720 | type VkFlags VkColorComponentFlags |
| 1721 | bitfield VkColorComponentFlagBits { |
| 1722 | VK_COLOR_COMPONENT_R_BIT = 0x00000001, |
| 1723 | VK_COLOR_COMPONENT_G_BIT = 0x00000002, |
| 1724 | VK_COLOR_COMPONENT_B_BIT = 0x00000004, |
| 1725 | VK_COLOR_COMPONENT_A_BIT = 0x00000008, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1726 | } |
| 1727 | |
| 1728 | /// Fence creation flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1729 | type VkFlags VkFenceCreateFlags |
| 1730 | bitfield VkFenceCreateFlagBits { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1731 | VK_FENCE_CREATE_SIGNALED_BIT = 0x00000001, |
| 1732 | } |
| 1733 | |
| 1734 | /// Semaphore creation flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1735 | type VkFlags VkSemaphoreCreateFlags |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 1736 | //bitfield VkSemaphoreCreateFlagBits { |
| 1737 | //} |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1738 | |
| 1739 | /// Format capability flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1740 | type VkFlags VkFormatFeatureFlags |
| 1741 | bitfield VkFormatFeatureFlagBits { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1742 | VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = 0x00000001, /// Format can be used for sampled images (SAMPLED_IMAGE and COMBINED_IMAGE_SAMPLER descriptor types) |
| 1743 | VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = 0x00000002, /// Format can be used for storage images (STORAGE_IMAGE descriptor type) |
| 1744 | VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = 0x00000004, /// Format supports atomic operations in case it's used for storage images |
| 1745 | VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000008, /// Format can be used for uniform texel buffers (TBOs) |
| 1746 | VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = 0x00000010, /// Format can be used for storage texel buffers (IBOs) |
| 1747 | VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 0x00000020, /// Format supports atomic operations in case it's used for storage texel buffers |
| 1748 | VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = 0x00000040, /// Format can be used for vertex buffers (VBOs) |
| 1749 | VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 0x00000080, /// Format can be used for color attachment images |
| 1750 | VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = 0x00000100, /// Format supports blending in case it's used for color attachment images |
| 1751 | VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000200, /// Format can be used for depth/stencil attachment images |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 1752 | VK_FORMAT_FEATURE_BLIT_SRC_BIT = 0x00000400, /// Format can be used as the source image of blits with vkCommandBlitImage |
| 1753 | VK_FORMAT_FEATURE_BLIT_DST_BIT = 0x00000800, /// Format can be used as the destination image of blits with vkCommandBlitImage |
Jesse Hall | 33faaad | 2016-01-24 21:00:49 -0800 | [diff] [blame] | 1754 | VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = 0x00001000, |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 1755 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1756 | //@extension("VK_IMG_filter_cubic") // 16 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 1757 | VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG = 0x00002000, |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1758 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1759 | //@extension("VK_KHR_maintenance1") // 70 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 1760 | VK_FORMAT_FEATURE_TRANSFER_SRC_BIT_KHR = 0x00004000, |
| 1761 | VK_FORMAT_FEATURE_TRANSFER_DST_BIT_KHR = 0x00008000, |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 1762 | |
| 1763 | //@extension("VK_EXT_sampler_filter_minmax") // 131 |
| 1764 | VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXT = 0x00010000, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1765 | } |
| 1766 | |
| 1767 | /// Query control flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1768 | type VkFlags VkQueryControlFlags |
| 1769 | bitfield VkQueryControlFlagBits { |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 1770 | VK_QUERY_CONTROL_PRECISE_BIT = 0x00000001, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1771 | } |
| 1772 | |
| 1773 | /// Query result flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1774 | type VkFlags VkQueryResultFlags |
| 1775 | bitfield VkQueryResultFlagBits { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1776 | VK_QUERY_RESULT_64_BIT = 0x00000001, /// Results of the queries are written to the destination buffer as 64-bit values |
| 1777 | VK_QUERY_RESULT_WAIT_BIT = 0x00000002, /// Results of the queries are waited on before proceeding with the result copy |
| 1778 | VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = 0x00000004, /// Besides the results of the query, the availability of the results is also written |
| 1779 | VK_QUERY_RESULT_PARTIAL_BIT = 0x00000008, /// Copy the partial results of the query even if the final results aren't available |
| 1780 | } |
| 1781 | |
| 1782 | /// Shader module creation flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1783 | type VkFlags VkShaderModuleCreateFlags |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 1784 | //bitfield VkShaderModuleCreateFlagBits { |
| 1785 | //} |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1786 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1787 | /// Event creation flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1788 | type VkFlags VkEventCreateFlags |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 1789 | //bitfield VkEventCreateFlagBits { |
| 1790 | //} |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1791 | |
Jesse Hall | a15a4bf | 2015-11-19 22:48:02 -0800 | [diff] [blame] | 1792 | /// Command buffer usage flags |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 1793 | type VkFlags VkCommandBufferUsageFlags |
| 1794 | bitfield VkCommandBufferUsageFlagBits { |
| 1795 | VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = 0x00000001, |
| 1796 | VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = 0x00000002, |
| 1797 | VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = 0x00000004, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1798 | } |
| 1799 | |
| 1800 | /// Pipeline statistics flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1801 | type VkFlags VkQueryPipelineStatisticFlags |
| 1802 | bitfield VkQueryPipelineStatisticFlagBits { |
Jesse Hall | ae38f73 | 2015-11-19 21:32:50 -0800 | [diff] [blame] | 1803 | VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT = 0x00000001, /// Optional |
| 1804 | VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT = 0x00000002, /// Optional |
| 1805 | VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT = 0x00000004, /// Optional |
| 1806 | VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT = 0x00000008, /// Optional |
| 1807 | VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT = 0x00000010, /// Optional |
| 1808 | VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT = 0x00000020, /// Optional |
| 1809 | VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT = 0x00000040, /// Optional |
| 1810 | VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT = 0x00000080, /// Optional |
| 1811 | VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT = 0x00000100, /// Optional |
| 1812 | VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT = 0x00000200, /// Optional |
| 1813 | VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT = 0x00000400, /// Optional |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1814 | } |
| 1815 | |
| 1816 | /// Memory mapping flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1817 | type VkFlags VkMemoryMapFlags |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 1818 | //bitfield VkMemoryMapFlagBits { |
| 1819 | //} |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1820 | |
| 1821 | /// Bitfield of image aspects |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1822 | type VkFlags VkImageAspectFlags |
| 1823 | bitfield VkImageAspectFlagBits { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1824 | VK_IMAGE_ASPECT_COLOR_BIT = 0x00000001, |
| 1825 | VK_IMAGE_ASPECT_DEPTH_BIT = 0x00000002, |
| 1826 | VK_IMAGE_ASPECT_STENCIL_BIT = 0x00000004, |
| 1827 | VK_IMAGE_ASPECT_METADATA_BIT = 0x00000008, |
| 1828 | } |
| 1829 | |
| 1830 | /// Sparse memory bind flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1831 | type VkFlags VkSparseMemoryBindFlags |
Jesse Hall | 091ed9e | 2015-11-30 00:55:29 -0800 | [diff] [blame] | 1832 | bitfield VkSparseMemoryBindFlagBits { |
| 1833 | VK_SPARSE_MEMORY_BIND_METADATA_BIT = 0x00000001, |
| 1834 | } |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1835 | |
| 1836 | /// Sparse image memory requirements flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1837 | type VkFlags VkSparseImageFormatFlags |
| 1838 | bitfield VkSparseImageFormatFlagBits { |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 1839 | VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT = 0x00000001, /// Image uses a single miptail region for all array slices |
| 1840 | VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT = 0x00000002, /// Image requires mip levels to be an exact multiple of the sparse iamge block size for non-mip-tail levels. |
| 1841 | VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT = 0x00000004, /// Image uses a non-standard sparse block size |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1842 | } |
| 1843 | |
| 1844 | /// Pipeline stages |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1845 | type VkFlags VkPipelineStageFlags |
| 1846 | bitfield VkPipelineStageFlagBits { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1847 | VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT = 0x00000001, /// Before subsequent commands are processed |
| 1848 | VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT = 0x00000002, /// Draw/DispatchIndirect command fetch |
| 1849 | VK_PIPELINE_STAGE_VERTEX_INPUT_BIT = 0x00000004, /// Vertex/index fetch |
| 1850 | VK_PIPELINE_STAGE_VERTEX_SHADER_BIT = 0x00000008, /// Vertex shading |
Jesse Hall | ae38f73 | 2015-11-19 21:32:50 -0800 | [diff] [blame] | 1851 | VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT = 0x00000010, /// Tessellation control shading |
| 1852 | VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT = 0x00000020, /// Tessellation evaluation shading |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1853 | VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT = 0x00000040, /// Geometry shading |
| 1854 | VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT = 0x00000080, /// Fragment shading |
| 1855 | VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT = 0x00000100, /// Early fragment (depth/stencil) tests |
| 1856 | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT = 0x00000200, /// Late fragment (depth/stencil) tests |
| 1857 | VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT = 0x00000400, /// Color attachment writes |
| 1858 | VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT = 0x00000800, /// Compute shading |
| 1859 | VK_PIPELINE_STAGE_TRANSFER_BIT = 0x00001000, /// Transfer/copy operations |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 1860 | VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT = 0x00002000, |
| 1861 | VK_PIPELINE_STAGE_HOST_BIT = 0x00004000, /// Indicates host (CPU) is a source/sink of the dependency |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1862 | |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 1863 | VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT = 0x00008000, /// All stages of the graphics pipeline |
| 1864 | VK_PIPELINE_STAGE_ALL_COMMANDS_BIT = 0x00010000, /// All graphics, compute, copy, and transition commands |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1865 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1866 | //@extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 1867 | VK_PIPELINE_STAGE_COMMAND_PROCESS_BIT_NVX = 0x00020000, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 1868 | } |
| 1869 | |
| 1870 | /// Render pass attachment description flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1871 | type VkFlags VkAttachmentDescriptionFlags |
| 1872 | bitfield VkAttachmentDescriptionFlagBits { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 1873 | VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT = 0x00000001, /// The attachment may alias physical memory of another attachment in the same renderpass |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1874 | } |
| 1875 | |
| 1876 | /// Subpass description flags |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1877 | type VkFlags VkSubpassDescriptionFlags |
| 1878 | bitfield VkSubpassDescriptionFlagBits { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1879 | //@extension("VK_NVX_multiview_per_view_attributes") // 98 |
| 1880 | VK_SUBPASS_DESCRIPTION_PER_VIEW_ATTRIBUTES_BIT_NVX = 0x00000001, |
| 1881 | VK_SUBPASS_DESCRIPTION_PER_VIEW_POSITION_X_ONLY_BIT_NVX = 0x00000002, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1882 | } |
| 1883 | |
| 1884 | /// Command pool creation flags |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 1885 | type VkFlags VkCommandPoolCreateFlags |
| 1886 | bitfield VkCommandPoolCreateFlagBits { |
| 1887 | VK_COMMAND_POOL_CREATE_TRANSIENT_BIT = 0x00000001, /// Command buffers have a short lifetime |
| 1888 | VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = 0x00000002, /// Command buffers may release their memory individually |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1889 | } |
| 1890 | |
| 1891 | /// Command pool reset flags |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 1892 | type VkFlags VkCommandPoolResetFlags |
| 1893 | bitfield VkCommandPoolResetFlagBits { |
| 1894 | VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT = 0x00000001, /// Release resources owned by the pool |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1895 | } |
| 1896 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 1897 | type VkFlags VkCommandBufferResetFlags |
| 1898 | bitfield VkCommandBufferResetFlagBits { |
| 1899 | VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT = 0x00000001, /// Release resources owned by the buffer |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 1900 | } |
| 1901 | |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1902 | type VkFlags VkSampleCountFlags |
| 1903 | bitfield VkSampleCountFlagBits { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 1904 | VK_SAMPLE_COUNT_1_BIT = 0x00000001, |
| 1905 | VK_SAMPLE_COUNT_2_BIT = 0x00000002, |
| 1906 | VK_SAMPLE_COUNT_4_BIT = 0x00000004, |
| 1907 | VK_SAMPLE_COUNT_8_BIT = 0x00000008, |
| 1908 | VK_SAMPLE_COUNT_16_BIT = 0x00000010, |
| 1909 | VK_SAMPLE_COUNT_32_BIT = 0x00000020, |
| 1910 | VK_SAMPLE_COUNT_64_BIT = 0x00000040, |
| 1911 | } |
| 1912 | |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 1913 | type VkFlags VkStencilFaceFlags |
| 1914 | bitfield VkStencilFaceFlagBits { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 1915 | VK_STENCIL_FACE_FRONT_BIT = 0x00000001, /// Front face |
| 1916 | VK_STENCIL_FACE_BACK_BIT = 0x00000002, /// Back face |
Jesse Hall | c7467b7 | 2015-11-29 21:05:26 -0800 | [diff] [blame] | 1917 | VK_STENCIL_FRONT_AND_BACK = 0x00000003, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 1918 | } |
| 1919 | |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 1920 | /// Instance creation flags |
| 1921 | type VkFlags VkInstanceCreateFlags |
| 1922 | //bitfield VkInstanceCreateFlagBits { |
| 1923 | //} |
| 1924 | |
| 1925 | /// Device creation flags |
| 1926 | type VkFlags VkDeviceCreateFlags |
| 1927 | //bitfield VkDeviceCreateFlagBits { |
| 1928 | //} |
| 1929 | |
| 1930 | /// Device queue creation flags |
| 1931 | type VkFlags VkDeviceQueueCreateFlags |
| 1932 | //bitfield VkDeviceQueueCreateFlagBits { |
| 1933 | //} |
| 1934 | |
| 1935 | /// Query pool creation flags |
| 1936 | type VkFlags VkQueryPoolCreateFlags |
| 1937 | //bitfield VkQueryPoolCreateFlagBits { |
| 1938 | //} |
| 1939 | |
| 1940 | /// Buffer view creation flags |
| 1941 | type VkFlags VkBufferViewCreateFlags |
| 1942 | //bitfield VkBufferViewCreateFlagBits { |
| 1943 | //} |
| 1944 | |
| 1945 | /// Pipeline cache creation flags |
| 1946 | type VkFlags VkPipelineCacheCreateFlags |
| 1947 | //bitfield VkPipelineCacheCreateFlagBits { |
| 1948 | //} |
| 1949 | |
| 1950 | /// Pipeline shader stage creation flags |
| 1951 | type VkFlags VkPipelineShaderStageCreateFlags |
| 1952 | //bitfield VkPipelineShaderStageCreateFlagBits { |
| 1953 | //} |
| 1954 | |
| 1955 | /// Descriptor set layout creation flags |
| 1956 | type VkFlags VkDescriptorSetLayoutCreateFlags |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 1957 | bitfield VkDescriptorSetLayoutCreateFlagBits { |
| 1958 | //@extension("VK_KHR_push_descriptor") // 81 |
| 1959 | VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR = 0x00000001, |
| 1960 | } |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 1961 | |
| 1962 | /// Pipeline vertex input state creation flags |
| 1963 | type VkFlags VkPipelineVertexInputStateCreateFlags |
| 1964 | //bitfield VkPipelineVertexInputStateCreateFlagBits { |
| 1965 | //} |
| 1966 | |
| 1967 | /// Pipeline input assembly state creation flags |
| 1968 | type VkFlags VkPipelineInputAssemblyStateCreateFlags |
| 1969 | //bitfield VkPipelineInputAssemblyStateCreateFlagBits { |
| 1970 | //} |
| 1971 | |
| 1972 | /// Tessellation state creation flags |
| 1973 | type VkFlags VkPipelineTessellationStateCreateFlags |
| 1974 | //bitfield VkPipelineTessellationStateCreateFlagBits { |
| 1975 | //} |
| 1976 | |
| 1977 | /// Viewport state creation flags |
| 1978 | type VkFlags VkPipelineViewportStateCreateFlags |
| 1979 | //bitfield VkPipelineViewportStateCreateFlagBits { |
| 1980 | //} |
| 1981 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 1982 | /// Rasterization state creation flags |
| 1983 | type VkFlags VkPipelineRasterizationStateCreateFlags |
| 1984 | //bitfield VkPipelineRasterizationStateCreateFlagBits { |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 1985 | //} |
| 1986 | |
| 1987 | /// Multisample state creation flags |
| 1988 | type VkFlags VkPipelineMultisampleStateCreateFlags |
| 1989 | //bitfield VkPipelineMultisampleStateCreateFlagBits { |
| 1990 | //} |
| 1991 | |
| 1992 | /// Color blend state creation flags |
| 1993 | type VkFlags VkPipelineColorBlendStateCreateFlags |
| 1994 | //bitfield VkPipelineColorBlendStateCreateFlagBits { |
| 1995 | //} |
| 1996 | |
| 1997 | /// Depth/stencil state creation flags |
| 1998 | type VkFlags VkPipelineDepthStencilStateCreateFlags |
| 1999 | //bitfield VkPipelineDepthStencilStateCreateFlagBits { |
| 2000 | //} |
| 2001 | |
| 2002 | /// Dynamic state creation flags |
| 2003 | type VkFlags VkPipelineDynamicStateCreateFlags |
| 2004 | //bitfield VkPipelineDynamicStateCreateFlagBits { |
| 2005 | //} |
| 2006 | |
| 2007 | /// Pipeline layout creation flags |
| 2008 | type VkFlags VkPipelineLayoutCreateFlags |
| 2009 | //bitfield VkPipelineLayoutCreateFlagBits { |
| 2010 | //} |
| 2011 | |
| 2012 | /// Sampler creation flags |
| 2013 | type VkFlags VkSamplerCreateFlags |
| 2014 | //bitfield VkSamplerCreateFlagBits { |
| 2015 | //} |
| 2016 | |
| 2017 | /// Render pass creation flags |
| 2018 | type VkFlags VkRenderPassCreateFlags |
| 2019 | //bitfield VkRenderPassCreateFlagBits { |
| 2020 | //} |
| 2021 | |
| 2022 | /// Framebuffer creation flags |
| 2023 | type VkFlags VkFramebufferCreateFlags |
| 2024 | //bitfield VkFramebufferCreateFlagBits { |
| 2025 | //} |
| 2026 | |
Jesse Hall | dc6d36c | 2015-11-29 19:12:15 -0800 | [diff] [blame] | 2027 | /// Dependency flags |
| 2028 | type VkFlags VkDependencyFlags |
| 2029 | bitfield VkDependencyFlagBits { |
| 2030 | VK_DEPENDENCY_BY_REGION_BIT = 0x00000001, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2031 | |
| 2032 | //@extension("VK_KHX_multiview") // 54 |
| 2033 | VK_DEPENDENCY_VIEW_LOCAL_BIT_KHX = 0x00000002, |
| 2034 | |
| 2035 | //@extension("VK_KHX_device_group") // 61 |
| 2036 | VK_DEPENDENCY_DEVICE_GROUP_BIT_KHX = 0x00000004, |
Jesse Hall | dc6d36c | 2015-11-29 19:12:15 -0800 | [diff] [blame] | 2037 | } |
| 2038 | |
Jesse Hall | c7467b7 | 2015-11-29 21:05:26 -0800 | [diff] [blame] | 2039 | /// Cull mode flags |
| 2040 | type VkFlags VkCullModeFlags |
| 2041 | bitfield VkCullModeFlagBits { |
| 2042 | VK_CULL_MODE_NONE = 0x00000000, |
| 2043 | VK_CULL_MODE_FRONT_BIT = 0x00000001, |
| 2044 | VK_CULL_MODE_BACK_BIT = 0x00000002, |
| 2045 | VK_CULL_MODE_FRONT_AND_BACK = 0x00000003, |
| 2046 | } |
| 2047 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2048 | @extension("VK_KHR_surface") // 1 |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 2049 | type VkFlags VkSurfaceTransformFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2050 | @extension("VK_KHR_surface") // 1 |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 2051 | bitfield VkSurfaceTransformFlagBitsKHR { |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2052 | VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR = 0x00000001, |
Jesse Hall | 9ba8bc8 | 2015-11-30 16:22:16 -0800 | [diff] [blame] | 2053 | VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR = 0x00000002, |
| 2054 | VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR = 0x00000004, |
| 2055 | VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR = 0x00000008, |
| 2056 | VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR = 0x00000010, |
| 2057 | VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR = 0x00000020, |
| 2058 | VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR = 0x00000040, |
| 2059 | VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR = 0x00000080, |
| 2060 | VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR = 0x00000100, |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 2061 | } |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2062 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2063 | @extension("VK_KHR_surface") // 1 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2064 | type VkFlags VkCompositeAlphaFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2065 | @extension("VK_KHR_surface") // 1 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2066 | bitfield VkCompositeAlphaFlagBitsKHR { |
| 2067 | VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = 0x00000001, |
| 2068 | VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = 0x00000002, |
| 2069 | VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = 0x00000004, |
| 2070 | VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = 0x00000008, |
| 2071 | } |
| 2072 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2073 | @extension("VK_KHR_swapchain") // 2 |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 2074 | type VkFlags VkSwapchainCreateFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2075 | @extension("VK_KHR_swapchain") // 2 |
| 2076 | bitfield VkSwapchainCreateFlagBitsKHR { |
| 2077 | //@extension("VK_KHX_device_group") // 61 |
| 2078 | VK_SWAPCHAIN_CREATE_BIND_SFR_BIT_KHX = 0x00000001, |
| 2079 | } |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 2080 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2081 | @extension("VK_KHR_display") // 3 |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 2082 | type VkFlags VkDisplayPlaneAlphaFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2083 | @extension("VK_KHR_display") // 3 |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 2084 | bitfield VkDisplayPlaneAlphaFlagBitsKHR { |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 2085 | VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR = 0x00000001, |
| 2086 | VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR = 0x00000002, |
| 2087 | VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR = 0x00000004, |
| 2088 | VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR = 0x00000008, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 2089 | } |
| 2090 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2091 | @extension("VK_KHR_display") // 3 |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 2092 | type VkFlags VkDisplaySurfaceCreateFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2093 | //@extension("VK_KHR_display") // 3 |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 2094 | //bitfield VkDisplaySurfaceCreateFlagBitsKHR { |
| 2095 | //} |
| 2096 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2097 | @extension("VK_KHR_display") // 3 |
Jesse Hall | 9ba8bc8 | 2015-11-30 16:22:16 -0800 | [diff] [blame] | 2098 | type VkFlags VkDisplayModeCreateFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2099 | //@extension("VK_KHR_display") // 3 |
Jesse Hall | 9ba8bc8 | 2015-11-30 16:22:16 -0800 | [diff] [blame] | 2100 | //bitfield VkDisplayModeCreateFlagBitsKHR { |
| 2101 | //} |
| 2102 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2103 | @extension("VK_KHR_xlib_surface") // 5 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2104 | type VkFlags VkXlibSurfaceCreateFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2105 | //@extension("VK_KHR_xlib_surface") // 5 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2106 | //bitfield VkXlibSurfaceCreateFlagBitsKHR { |
| 2107 | //} |
| 2108 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2109 | @extension("VK_KHR_xcb_surface") // 6 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2110 | type VkFlags VkXcbSurfaceCreateFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2111 | //@extension("VK_KHR_xcb_surface") // 6 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2112 | //bitfield VkXcbSurfaceCreateFlagBitsKHR { |
| 2113 | //} |
| 2114 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2115 | @extension("VK_KHR_wayland_surface") // 7 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2116 | type VkFlags VkWaylandSurfaceCreateFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2117 | //@extension("VK_KHR_wayland_surface") // 7 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2118 | //bitfield VkWaylandSurfaceCreateFlagBitsKHR { |
| 2119 | //} |
| 2120 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2121 | @extension("VK_KHR_mir_surface") // 8 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2122 | type VkFlags VkMirSurfaceCreateFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2123 | //@extension("VK_KHR_mir_surface") // 8 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2124 | //bitfield VkMirSurfaceCreateFlagBitsKHR { |
| 2125 | //} |
| 2126 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2127 | @extension("VK_KHR_android_surface") // 9 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2128 | type VkFlags VkAndroidSurfaceCreateFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2129 | //@extension("VK_KHR_android_surface") // 9 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2130 | //bitfield VkAndroidSurfaceCreateFlagBitsKHR { |
| 2131 | //} |
| 2132 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2133 | @extension("VK_KHR_win32_surface") // 10 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2134 | type VkFlags VkWin32SurfaceCreateFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2135 | //@extension("VK_KHR_win32_surface") // 10 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2136 | //bitfield VkWin32SurfaceCreateFlagBitsKHR { |
| 2137 | //} |
| 2138 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2139 | @extension("VK_ANDROID_native_buffer") // 11 |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 2140 | type VkFlags VkSwapchainImageUsageFlagsANDROID |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2141 | @extension("VK_ANDROID_native_buffer") // 11 |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 2142 | bitfield VkSwapchainImageUsageFlagBitsANDROID { |
| 2143 | VK_SWAPCHAIN_IMAGE_USAGE_FLAGS_SHARED_BIT_ANDROID = 0x00000001, |
| 2144 | } |
| 2145 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2146 | @extension("VK_EXT_debug_report") // 12 |
Jesse Hall | 715b86a | 2016-01-16 16:34:29 -0800 | [diff] [blame] | 2147 | type VkFlags VkDebugReportFlagsEXT |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2148 | @extension("VK_EXT_debug_report") // 12 |
Jesse Hall | 715b86a | 2016-01-16 16:34:29 -0800 | [diff] [blame] | 2149 | bitfield VkDebugReportFlagBitsEXT { |
Jesse Hall | e2948d8 | 2016-02-25 04:19:32 -0800 | [diff] [blame] | 2150 | VK_DEBUG_REPORT_INFORMATION_BIT_EXT = 0x00000001, |
| 2151 | VK_DEBUG_REPORT_WARNING_BIT_EXT = 0x00000002, |
| 2152 | VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT = 0x00000004, |
Jesse Hall | 715b86a | 2016-01-16 16:34:29 -0800 | [diff] [blame] | 2153 | VK_DEBUG_REPORT_ERROR_BIT_EXT = 0x00000008, |
| 2154 | VK_DEBUG_REPORT_DEBUG_BIT_EXT = 0x00000010, |
| 2155 | } |
| 2156 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2157 | @extension("VK_NV_external_memory_capabilities") // 56 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 2158 | type VkFlags VkExternalMemoryHandleTypeFlagsNV |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2159 | @extension("VK_NV_external_memory_capabilities") // 56 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 2160 | bitfield VkExternalMemoryHandleTypeFlagBitsNV { |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 2161 | VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_NV = 0x00000001, |
| 2162 | VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_NV = 0x00000002, |
| 2163 | VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_BIT_NV = 0x00000004, |
| 2164 | VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_IMAGE_KMT_BIT_NV = 0x00000008, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 2165 | } |
| 2166 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2167 | @extension("VK_NV_external_memory_capabilities") // 56 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 2168 | type VkFlags VkExternalMemoryFeatureFlagsNV |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2169 | @extension("VK_NV_external_memory_capabilities") // 56 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 2170 | bitfield VkExternalMemoryFeatureFlagBitsNV { |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 2171 | VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT_NV = 0x00000001, |
| 2172 | VK_EXTERNAL_MEMORY_FEATURE_EXPORTABLE_BIT_NV = 0x00000002, |
| 2173 | VK_EXTERNAL_MEMORY_FEATURE_IMPORTABLE_BIT_NV = 0x00000004, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 2174 | } |
| 2175 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2176 | @extension("VK_KHX_device_group") // 61 |
| 2177 | type VkFlags VkPeerMemoryFeatureFlagsKHX |
| 2178 | @extension("VK_KHX_device_group") // 61 |
| 2179 | bitfield VkPeerMemoryFeatureFlagBitsKHX { |
| 2180 | VK_PEER_MEMORY_FEATURE_COPY_SRC_BIT_KHX = 0x00000001, |
| 2181 | VK_PEER_MEMORY_FEATURE_COPY_DST_BIT_KHX = 0x00000002, |
| 2182 | VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT_KHX = 0x00000004, |
| 2183 | VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT_KHX = 0x00000008, |
| 2184 | } |
| 2185 | |
| 2186 | @extension("VK_KHX_device_group") // 61 |
| 2187 | type VkFlags VkMemoryAllocateFlagsKHX |
| 2188 | @extension("VK_KHX_device_group") // 61 |
| 2189 | bitfield VkMemoryAllocateFlagBitsKHX { |
| 2190 | VK_MEMORY_ALLOCATE_DEVICE_MASK_BIT_KHX = 0x00000001, |
| 2191 | } |
| 2192 | |
| 2193 | @extension("VK_KHX_device_group") // 61 |
| 2194 | type VkFlags VkDeviceGroupPresentModeFlagsKHX |
| 2195 | @extension("VK_KHX_device_group") // 61 |
| 2196 | bitfield VkDeviceGroupPresentModeFlagBitsKHX { |
| 2197 | VK_DEVICE_GROUP_PRESENT_MODE_LOCAL_BIT_KHX = 0x00000001, |
| 2198 | VK_DEVICE_GROUP_PRESENT_MODE_REMOTE_BIT_KHX = 0x00000002, |
| 2199 | VK_DEVICE_GROUP_PRESENT_MODE_SUM_BIT_KHX = 0x00000004, |
| 2200 | VK_DEVICE_GROUP_PRESENT_MODE_LOCAL_MULTI_DEVICE_BIT_KHX = 0x00000008, |
| 2201 | } |
| 2202 | |
| 2203 | @extension("VK_NN_vi_surface") // 63 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 2204 | type VkFlags VkViSurfaceCreateFlagsNN |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2205 | //@extension("VK_NN_vi_surface") // 63 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 2206 | //bitfield VkViSurfaceCreateFlagBitsNN { |
| 2207 | //} |
| 2208 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2209 | @extension("VK_KHR_maintenance1") // 70 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 2210 | type VkFlags VkCommandPoolTrimFlagsKHR |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2211 | //@extension("VK_KHR_maintenance1") // 70 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 2212 | //bitfield VkCommandPoolTrimFlagBitsKHR { |
| 2213 | //} |
| 2214 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 2215 | @extension("VK_KHR_external_memory_capabilities") // 72 |
| 2216 | type VkFlags VkExternalMemoryHandleTypeFlagsKHR |
| 2217 | @extension("VK_KHR_external_memory_capabilities") // 72 |
| 2218 | bitfield VkExternalMemoryHandleTypeFlagBitsKHR { |
| 2219 | VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR = 0x00000001, |
| 2220 | VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR = 0x00000002, |
| 2221 | VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_KHR = 0x00000004, |
| 2222 | VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT_KHR = 0x00000008, |
| 2223 | VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT_KHR = 0x00000010, |
| 2224 | VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT_KHR = 0x00000020, |
| 2225 | VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT_KHR = 0x00000040, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2226 | } |
| 2227 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 2228 | @extension("VK_KHR_external_memory_capabilities") // 72 |
| 2229 | type VkFlags VkExternalMemoryFeatureFlagsKHR |
| 2230 | @extension("VK_KHR_external_memory_capabilities") // 72 |
| 2231 | bitfield VkExternalMemoryFeatureFlagBitsKHR { |
| 2232 | VK_EXTERNAL_MEMORY_FEATURE_DEDICATED_ONLY_BIT_KHR = 0x00000001, |
| 2233 | VK_EXTERNAL_MEMORY_FEATURE_EXPORTABLE_BIT_KHR = 0x00000002, |
| 2234 | VK_EXTERNAL_MEMORY_FEATURE_IMPORTABLE_BIT_KHR = 0x00000004, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2235 | } |
| 2236 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 2237 | @extension("VK_KHR_external_semaphore_capabilities") // 77 |
| 2238 | type VkFlags VkExternalSemaphoreHandleTypeFlagsKHR |
| 2239 | @extension("VK_KHR_external_semaphore_capabilities") // 77 |
| 2240 | bitfield VkExternalSemaphoreHandleTypeFlagBitsKHR { |
| 2241 | VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT_KHR = 0x00000001 |
| 2242 | VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR = 0x00000002 |
| 2243 | VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_KHR = 0x00000004 |
| 2244 | VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE_BIT_KHR = 0x00000008 |
| 2245 | VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_FENCE_FD_BIT_KHR = 0x00000010 |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2246 | } |
| 2247 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 2248 | @extension("VK_KHR_external_semaphore_capabilities") // 77 |
| 2249 | type VkFlags VkExternalSemaphoreFeatureFlagsKHR |
| 2250 | @extension("VK_KHR_external_semaphore_capabilities") // 77 |
| 2251 | bitfield VkExternalSemaphoreFeatureFlagBitsKHR { |
| 2252 | VK_EXTERNAL_SEMAPHORE_FEATURE_EXPORTABLE_BIT_KHR = 0x00000001, |
| 2253 | VK_EXTERNAL_SEMAPHORE_FEATURE_IMPORTABLE_BIT_KHR = 0x00000002, |
| 2254 | } |
| 2255 | |
| 2256 | @extension("VK_KHR_external_semaphore") // 78 |
| 2257 | type VkFlags VkSemaphoreImportFlagsKHR |
| 2258 | @extension("VK_KHR_external_semaphore") // 78 |
| 2259 | bitfield VkSemaphoreImportFlagBitsKHR { |
| 2260 | VK_SEMAPHORE_IMPORT_TEMPORARY_BIT_KHR = 0x00000001, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2261 | } |
| 2262 | |
| 2263 | @extension("VK_KHR_descriptor_update_template") // 86 |
| 2264 | type VkFlags VkDescriptorUpdateTemplateCreateFlagsKHR |
| 2265 | //@extension("VK_KHR_descriptor_update_template") // 86 |
| 2266 | //bitfield VkDescriptorUpdateTemplateCreateFlagBitsKHR { |
| 2267 | //} |
| 2268 | |
| 2269 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 2270 | type VkFlags VkIndirectCommandsLayoutUsageFlagsNVX |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2271 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 2272 | bitfield VkIndirectCommandsLayoutUsageFlagBitsNVX { |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 2273 | VK_INDIRECT_COMMANDS_LAYOUT_USAGE_UNORDERED_SEQUENCES_BIT_NVX = 0x00000001, |
| 2274 | VK_INDIRECT_COMMANDS_LAYOUT_USAGE_SPARSE_SEQUENCES_BIT_NVX = 0x00000002, |
| 2275 | VK_INDIRECT_COMMANDS_LAYOUT_USAGE_EMPTY_EXECUTIONS_BIT_NVX = 0x00000004, |
| 2276 | VK_INDIRECT_COMMANDS_LAYOUT_USAGE_INDEXED_SEQUENCES_BIT_NVX = 0x00000008, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 2277 | } |
| 2278 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2279 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 2280 | type VkFlags VkObjectEntryUsageFlagsNVX |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2281 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 2282 | bitfield VkObjectEntryUsageFlagBitsNVX { |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 2283 | VK_OBJECT_ENTRY_USAGE_GRAPHICS_BIT_NVX = 0x00000001, |
| 2284 | VK_OBJECT_ENTRY_USAGE_COMPUTE_BIT_NVX = 0x00000002, |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 2285 | } |
| 2286 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2287 | @extension("VK_EXT_display_surface_counter") // 91 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 2288 | type VkFlags VkSurfaceCounterFlagsEXT |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2289 | @extension("VK_EXT_display_surface_counter") // 91 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 2290 | bitfield VkSurfaceCounterFlagBitsEXT { |
| 2291 | VK_SURFACE_COUNTER_VBLANK_EXT = 0x00000001, |
| 2292 | } |
| 2293 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2294 | @extension("VK_NV_viewport_swizzle") // 99 |
| 2295 | type VkFlags VkPipelineViewportSwizzleStateCreateFlagsNV |
| 2296 | //@extension("VK_NV_viewport_swizzle") // 99 |
| 2297 | //bitfield VkPipelineViewportSwizzleStateCreateFlagBitsNV { |
| 2298 | //} |
| 2299 | |
| 2300 | @extension("VK_EXT_discard_rectangles") // 100 |
| 2301 | type VkFlags VkPipelineDiscardRectangleStateCreateFlagsEXT |
| 2302 | //@extension("VK_EXT_discard_rectangles") // 100 |
| 2303 | //bitfield VkPipelineDiscardRectangleStateCreateFlagBitsEXT { |
| 2304 | //} |
| 2305 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 2306 | @extension("VK_KHR_external_fence_capabilities") // 113 |
| 2307 | type VkFlags VkExternalFenceHandleTypeFlagsKHR |
| 2308 | @extension("VK_KHR_external_fence_capabilities") // 113 |
| 2309 | bitfield VkExternalFenceHandleTypeFlagBitsKHR { |
| 2310 | VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_FD_BIT_KHR = 0x00000001, |
| 2311 | VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR = 0x00000002, |
| 2312 | VK_EXTERNAL_FENCE_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT_KHR = 0x00000004, |
| 2313 | VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT_KHR = 0x00000008, |
| 2314 | } |
| 2315 | |
| 2316 | @extension("VK_KHR_external_fence_capabilities") // 113 |
| 2317 | type VkFlags VkExternalFenceFeatureFlagsKHR |
| 2318 | @extension("VK_KHR_external_fence_capabilities") // 113 |
| 2319 | bitfield VkExternalFenceFeatureFlagBitsKHR { |
| 2320 | VK_EXTERNAL_FENCE_FEATURE_EXPORTABLE_BIT_KHR = 0x00000001, |
| 2321 | VK_EXTERNAL_FENCE_FEATURE_IMPORTABLE_BIT_KHR = 0x00000002, |
| 2322 | } |
| 2323 | |
| 2324 | @extension("VK_KHR_external_fence") // 114 |
| 2325 | type VkFlags VkFenceImportFlagsKHR |
| 2326 | @extension("VK_KHR_external_fence") // 114 |
| 2327 | bitfield VkFenceImportFlagBitsKHR { |
| 2328 | VK_FENCE_IMPORT_TEMPORARY_BIT_KHR = 0x00000001, |
| 2329 | } |
| 2330 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 2331 | @extension("VK_MVK_ios_surface") // 123 |
| 2332 | type VkFlags VkIOSSurfaceCreateFlagsMVK |
| 2333 | //@extension("VK_MVK_ios_surface") // 123 |
| 2334 | //bitfield VkIOSSurfaceCreateFlagBitsMVK { |
| 2335 | //} |
| 2336 | |
| 2337 | @extension("VK_MVK_macos_surface") // 124 |
| 2338 | type VkFlags VkMacOSSurfaceCreateFlagsMVK |
| 2339 | //@extension("VK_MVK_macos_surface") // 124 |
| 2340 | //bitfield VkMacOSSurfaceCreateFlagBitsMVK { |
| 2341 | //} |
| 2342 | |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 2343 | @extension("VK_NV_fragment_coverage_to_color") // 150 |
| 2344 | type VkFlags VkPipelineCoverageToColorStateCreateFlagsNV |
| 2345 | @extension("VK_NV_fragment_coverage_to_color") // 150 |
| 2346 | //bitfield VkPipelineCoverageToColorStateCreateFlagBitsNV { |
| 2347 | //} |
| 2348 | |
| 2349 | @extension("VK_NV_framebuffer_mixed_samples") // 153 |
| 2350 | type VkFlags VkPipelineCoverageModulationStateCreateFlagsNV |
| 2351 | @extension("VK_NV_framebuffer_mixed_samples") // 153 |
| 2352 | //bitfield VkPipelineCoverageModulationStateCreateFlagBitsNV { |
| 2353 | //} |
| 2354 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2355 | ////////////////// |
| 2356 | // Structures // |
| 2357 | ////////////////// |
| 2358 | |
| 2359 | class VkOffset2D { |
| 2360 | s32 x |
| 2361 | s32 y |
| 2362 | } |
| 2363 | |
| 2364 | class VkOffset3D { |
| 2365 | s32 x |
| 2366 | s32 y |
| 2367 | s32 z |
| 2368 | } |
| 2369 | |
| 2370 | class VkExtent2D { |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 2371 | u32 width |
| 2372 | u32 height |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2373 | } |
| 2374 | |
| 2375 | class VkExtent3D { |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 2376 | u32 width |
| 2377 | u32 height |
| 2378 | u32 depth |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2379 | } |
| 2380 | |
| 2381 | class VkViewport { |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2382 | f32 x |
| 2383 | f32 y |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2384 | f32 width |
| 2385 | f32 height |
| 2386 | f32 minDepth |
| 2387 | f32 maxDepth |
| 2388 | } |
| 2389 | |
| 2390 | class VkRect2D { |
| 2391 | VkOffset2D offset |
| 2392 | VkExtent2D extent |
| 2393 | } |
| 2394 | |
Jesse Hall | a15a4bf | 2015-11-19 22:48:02 -0800 | [diff] [blame] | 2395 | class VkClearRect { |
| 2396 | VkRect2D rect |
| 2397 | u32 baseArrayLayer |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2398 | u32 layerCount |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2399 | } |
| 2400 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2401 | class VkComponentMapping { |
| 2402 | VkComponentSwizzle r |
| 2403 | VkComponentSwizzle g |
| 2404 | VkComponentSwizzle b |
| 2405 | VkComponentSwizzle a |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2406 | } |
| 2407 | |
| 2408 | class VkPhysicalDeviceProperties { |
| 2409 | u32 apiVersion |
| 2410 | u32 driverVersion |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2411 | u32 vendorID |
| 2412 | u32 deviceID |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2413 | VkPhysicalDeviceType deviceType |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2414 | char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE] deviceName |
| 2415 | u8[VK_UUID_SIZE] pipelineCacheUUID |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2416 | VkPhysicalDeviceLimits limits |
| 2417 | VkPhysicalDeviceSparseProperties sparseProperties |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2418 | } |
| 2419 | |
| 2420 | class VkExtensionProperties { |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2421 | char[VK_MAX_EXTENSION_NAME_SIZE] extensionName /// extension name |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2422 | u32 specVersion /// version of the extension specification implemented |
| 2423 | } |
| 2424 | |
| 2425 | class VkLayerProperties { |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2426 | char[VK_MAX_EXTENSION_NAME_SIZE] layerName /// layer name |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2427 | u32 specVersion /// version of the layer specification implemented |
| 2428 | u32 implementationVersion /// build or release version of the layer's library |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2429 | char[VK_MAX_DESCRIPTION_SIZE] description /// Free-form description of the layer |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2430 | } |
| 2431 | |
Jesse Hall | a366a51 | 2015-11-19 22:30:07 -0800 | [diff] [blame] | 2432 | class VkSubmitInfo { |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2433 | VkStructureType sType /// Type of structure. Should be VK_STRUCTURE_TYPE_SUBMIT_INFO |
| 2434 | const void* pNext /// Next structure in chain |
| 2435 | u32 waitSemaphoreCount |
Jesse Hall | a366a51 | 2015-11-19 22:30:07 -0800 | [diff] [blame] | 2436 | const VkSemaphore* pWaitSemaphores |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 2437 | const VkPipelineStageFlags* pWaitDstStageMask |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2438 | u32 commandBufferCount |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2439 | const VkCommandBuffer* pCommandBuffers |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2440 | u32 signalSemaphoreCount |
Jesse Hall | a366a51 | 2015-11-19 22:30:07 -0800 | [diff] [blame] | 2441 | const VkSemaphore* pSignalSemaphores |
| 2442 | } |
| 2443 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2444 | class VkApplicationInfo { |
| 2445 | VkStructureType sType /// Type of structure. Should be VK_STRUCTURE_TYPE_APPLICATION_INFO |
| 2446 | const void* pNext /// Next structure in chain |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2447 | const char* pApplicationName |
| 2448 | u32 applicationVersion |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2449 | const char* pEngineName |
| 2450 | u32 engineVersion |
| 2451 | u32 apiVersion |
| 2452 | } |
| 2453 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2454 | class VkAllocationCallbacks { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2455 | void* pUserData |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2456 | PFN_vkAllocationFunction pfnAllocation |
| 2457 | PFN_vkReallocationFunction pfnReallocation |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2458 | PFN_vkFreeFunction pfnFree |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2459 | PFN_vkInternalAllocationNotification pfnInternalAllocation |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2460 | PFN_vkInternalFreeNotification pfnInternalFree |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2461 | } |
| 2462 | |
| 2463 | class VkDeviceQueueCreateInfo { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2464 | VkStructureType sStype /// Should be VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO |
| 2465 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2466 | VkDeviceQueueCreateFlags flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2467 | u32 queueFamilyIndex |
Jesse Hall | dba27f7 | 2015-11-30 14:25:46 -0800 | [diff] [blame] | 2468 | u32 queueCount |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 2469 | const f32* pQueuePriorities |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2470 | } |
| 2471 | |
| 2472 | class VkDeviceCreateInfo { |
| 2473 | VkStructureType sType /// Should be VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO |
| 2474 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2475 | VkDeviceCreateFlags flags |
Jesse Hall | dba27f7 | 2015-11-30 14:25:46 -0800 | [diff] [blame] | 2476 | u32 queueCreateInfoCount |
| 2477 | const VkDeviceQueueCreateInfo* pQueueCreateInfos |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 2478 | u32 enabledLayerCount |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2479 | const char* const* ppEnabledLayerNames /// Ordered list of layer names to be enabled |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 2480 | u32 enabledExtensionCount |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2481 | const char* const* ppEnabledExtensionNames |
| 2482 | const VkPhysicalDeviceFeatures* pEnabledFeatures |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2483 | } |
| 2484 | |
| 2485 | class VkInstanceCreateInfo { |
| 2486 | VkStructureType sType /// Should be VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO |
| 2487 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2488 | VkInstanceCreateFlags flags |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2489 | const VkApplicationInfo* pApplicationInfo |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 2490 | u32 enabledLayerCount |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2491 | const char* const* ppEnabledLayerNames /// Ordered list of layer names to be enabled |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 2492 | u32 enabledExtensionCount |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2493 | const char* const* ppEnabledExtensionNames /// Extension names to be enabled |
| 2494 | } |
| 2495 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2496 | class VkQueueFamilyProperties { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2497 | VkQueueFlags queueFlags /// Queue flags |
| 2498 | u32 queueCount |
Jesse Hall | acfa534 | 2015-11-19 21:51:33 -0800 | [diff] [blame] | 2499 | u32 timestampValidBits |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2500 | VkExtent3D minImageTransferGranularity |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2501 | } |
| 2502 | |
| 2503 | class VkPhysicalDeviceMemoryProperties { |
| 2504 | u32 memoryTypeCount |
| 2505 | VkMemoryType[VK_MAX_MEMORY_TYPES] memoryTypes |
| 2506 | u32 memoryHeapCount |
| 2507 | VkMemoryHeap[VK_MAX_MEMORY_HEAPS] memoryHeaps |
| 2508 | } |
| 2509 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2510 | class VkMemoryAllocateInfo { |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 2511 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2512 | const void* pNext /// Pointer to next structure |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2513 | VkDeviceSize allocationSize /// Size of memory allocation |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2514 | u32 memoryTypeIndex /// Index of the of the memory type to allocate from |
| 2515 | } |
| 2516 | |
| 2517 | class VkMemoryRequirements { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2518 | VkDeviceSize size /// Specified in bytes |
| 2519 | VkDeviceSize alignment /// Specified in bytes |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2520 | u32 memoryTypeBits /// Bitfield of the allowed memory type indices into memoryTypes[] for this object |
| 2521 | } |
| 2522 | |
| 2523 | class VkSparseImageFormatProperties { |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 2524 | VkImageAspectFlagBits aspectMask |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2525 | VkExtent3D imageGranularity |
| 2526 | VkSparseImageFormatFlags flags |
| 2527 | } |
| 2528 | |
| 2529 | class VkSparseImageMemoryRequirements { |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 2530 | VkSparseImageFormatProperties formatProperties |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 2531 | u32 imageMipTailFirstLod |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2532 | VkDeviceSize imageMipTailSize /// Specified in bytes, must be a multiple of image block size / alignment |
| 2533 | VkDeviceSize imageMipTailOffset /// Specified in bytes, must be a multiple of image block size / alignment |
| 2534 | VkDeviceSize imageMipTailStride /// Specified in bytes, must be a multiple of image block size / alignment |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2535 | } |
| 2536 | |
| 2537 | class VkMemoryType { |
| 2538 | VkMemoryPropertyFlags propertyFlags /// Memory properties of this memory type |
| 2539 | u32 heapIndex /// Index of the memory heap allocations of this memory type are taken from |
| 2540 | } |
| 2541 | |
| 2542 | class VkMemoryHeap { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2543 | VkDeviceSize size /// Available memory in the heap |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2544 | VkMemoryHeapFlags flags /// Flags for the heap |
| 2545 | } |
| 2546 | |
| 2547 | class VkMappedMemoryRange { |
| 2548 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE |
| 2549 | const void* pNext /// Pointer to next structure |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2550 | VkDeviceMemory memory /// Mapped memory object |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2551 | VkDeviceSize offset /// Offset within the mapped memory the range starts from |
| 2552 | VkDeviceSize size /// Size of the range within the mapped memory |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2553 | } |
| 2554 | |
| 2555 | class VkFormatProperties { |
| 2556 | VkFormatFeatureFlags linearTilingFeatures /// Format features in case of linear tiling |
| 2557 | VkFormatFeatureFlags optimalTilingFeatures /// Format features in case of optimal tiling |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2558 | VkFormatFeatureFlags bufferFeatures /// Format features supported by buffers |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2559 | } |
| 2560 | |
| 2561 | class VkImageFormatProperties { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2562 | VkExtent3D maxExtent /// max image dimensions for this resource type |
| 2563 | u32 maxMipLevels /// max number of mipmap levels for this resource type |
Jesse Hall | a15a4bf | 2015-11-19 22:48:02 -0800 | [diff] [blame] | 2564 | u32 maxArrayLayers /// max array layers for this resource type |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2565 | VkSampleCountFlags sampleCounts /// supported sample counts for this resource type |
| 2566 | VkDeviceSize maxResourceSize /// max size (in bytes) of this resource type |
| 2567 | } |
| 2568 | |
Jesse Hall | a15a4bf | 2015-11-19 22:48:02 -0800 | [diff] [blame] | 2569 | class VkDescriptorImageInfo { |
| 2570 | VkSampler sampler |
| 2571 | VkImageView imageView |
| 2572 | VkImageLayout imageLayout |
| 2573 | } |
| 2574 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2575 | class VkDescriptorBufferInfo { |
| 2576 | VkBuffer buffer /// Buffer used for this descriptor when the descriptor is UNIFORM_BUFFER[_DYNAMIC] |
| 2577 | VkDeviceSize offset /// Base offset from buffer start in bytes to update in the descriptor set. |
| 2578 | VkDeviceSize range /// Size in bytes of the buffer resource for this descriptor update. |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2579 | } |
| 2580 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2581 | class VkWriteDescriptorSet { |
| 2582 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET |
| 2583 | const void* pNext /// Pointer to next structure |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2584 | VkDescriptorSet dstSet /// Destination descriptor set |
| 2585 | u32 dstBinding /// Binding within the destination descriptor set to write |
| 2586 | u32 dstArrayElement /// Array element within the destination binding to write |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2587 | u32 descriptorCount /// Number of descriptors to write (determines the size of the array pointed by <pDescriptors>) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2588 | VkDescriptorType descriptorType /// Descriptor type to write (determines which fields of the array pointed by <pDescriptors> are going to be used) |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 2589 | const VkDescriptorImageInfo* pImageInfo |
| 2590 | const VkDescriptorBufferInfo* pBufferInfo |
| 2591 | const VkBufferView* pTexelBufferView |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2592 | } |
| 2593 | |
| 2594 | class VkCopyDescriptorSet { |
| 2595 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET |
| 2596 | const void* pNext /// Pointer to next structure |
| 2597 | VkDescriptorSet srcSet /// Source descriptor set |
| 2598 | u32 srcBinding /// Binding within the source descriptor set to copy from |
| 2599 | u32 srcArrayElement /// Array element within the source binding to copy from |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2600 | VkDescriptorSet dstSet /// Destination descriptor set |
| 2601 | u32 dstBinding /// Binding within the destination descriptor set to copy to |
| 2602 | u32 dstArrayElement /// Array element within the destination binding to copy to |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2603 | u32 descriptorCount /// Number of descriptors to copy |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2604 | } |
| 2605 | |
| 2606 | class VkBufferCreateInfo { |
| 2607 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO |
| 2608 | const void* pNext /// Pointer to next structure. |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2609 | VkBufferCreateFlags flags /// Buffer creation flags |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2610 | VkDeviceSize size /// Specified in bytes |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2611 | VkBufferUsageFlags usage /// Buffer usage flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2612 | VkSharingMode sharingMode |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2613 | u32 queueFamilyIndexCount |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2614 | const u32* pQueueFamilyIndices |
| 2615 | } |
| 2616 | |
| 2617 | class VkBufferViewCreateInfo { |
| 2618 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO |
| 2619 | const void* pNext /// Pointer to next structure. |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2620 | VkBufferViewCreateFlags flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2621 | VkBuffer buffer |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2622 | VkFormat format /// Optionally specifies format of elements |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2623 | VkDeviceSize offset /// Specified in bytes |
| 2624 | VkDeviceSize range /// View size specified in bytes |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2625 | } |
| 2626 | |
| 2627 | class VkImageSubresource { |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 2628 | VkImageAspectFlagBits aspectMask |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2629 | u32 mipLevel |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2630 | u32 arrayLayer |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2631 | } |
| 2632 | |
| 2633 | class VkImageSubresourceRange { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2634 | VkImageAspectFlags aspectMask |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2635 | u32 baseMipLevel |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2636 | u32 levelCount |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2637 | u32 baseArrayLayer |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2638 | u32 layerCount |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2639 | } |
| 2640 | |
| 2641 | class VkMemoryBarrier { |
| 2642 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_MEMORY_BARRIER |
| 2643 | const void* pNext /// Pointer to next structure. |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 2644 | VkAccessFlags srcAccessMask |
| 2645 | VkAccessFlags dstAccessMask |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2646 | } |
| 2647 | |
| 2648 | class VkBufferMemoryBarrier { |
| 2649 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER |
| 2650 | const void* pNext /// Pointer to next structure. |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 2651 | VkAccessFlags srcAccessMask |
| 2652 | VkAccessFlags dstAccessMask |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2653 | u32 srcQueueFamilyIndex /// Queue family to transition ownership from |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2654 | u32 dstQueueFamilyIndex /// Queue family to transition ownership to |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2655 | VkBuffer buffer /// Buffer to sync |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2656 | VkDeviceSize offset /// Offset within the buffer to sync |
| 2657 | VkDeviceSize size /// Amount of bytes to sync |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2658 | } |
| 2659 | |
| 2660 | class VkImageMemoryBarrier { |
| 2661 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER |
| 2662 | const void* pNext /// Pointer to next structure. |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 2663 | VkAccessFlags srcAccessMask |
| 2664 | VkAccessFlags dstAccessMask |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2665 | VkImageLayout oldLayout /// Current layout of the image |
| 2666 | VkImageLayout newLayout /// New layout to transition the image to |
| 2667 | u32 srcQueueFamilyIndex /// Queue family to transition ownership from |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2668 | u32 dstQueueFamilyIndex /// Queue family to transition ownership to |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2669 | VkImage image /// Image to sync |
| 2670 | VkImageSubresourceRange subresourceRange /// Subresource range to sync |
| 2671 | } |
| 2672 | |
| 2673 | class VkImageCreateInfo { |
| 2674 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO |
| 2675 | const void* pNext /// Pointer to next structure. |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2676 | VkImageCreateFlags flags /// Image creation flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2677 | VkImageType imageType |
| 2678 | VkFormat format |
| 2679 | VkExtent3D extent |
| 2680 | u32 mipLevels |
Jesse Hall | a15a4bf | 2015-11-19 22:48:02 -0800 | [diff] [blame] | 2681 | u32 arrayLayers |
Jesse Hall | 091ed9e | 2015-11-30 00:55:29 -0800 | [diff] [blame] | 2682 | VkSampleCountFlagBits samples |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2683 | VkImageTiling tiling |
| 2684 | VkImageUsageFlags usage /// Image usage flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2685 | VkSharingMode sharingMode /// Cross-queue-family sharing mode |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2686 | u32 queueFamilyIndexCount /// Number of queue families to share across |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2687 | const u32* pQueueFamilyIndices /// Array of queue family indices to share across |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2688 | VkImageLayout initialLayout /// Initial image layout for all subresources |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2689 | } |
| 2690 | |
| 2691 | class VkSubresourceLayout { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2692 | VkDeviceSize offset /// Specified in bytes |
| 2693 | VkDeviceSize size /// Specified in bytes |
| 2694 | VkDeviceSize rowPitch /// Specified in bytes |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 2695 | VkDeviceSize arrayPitch /// Specified in bytes |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2696 | VkDeviceSize depthPitch /// Specified in bytes |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2697 | } |
| 2698 | |
| 2699 | class VkImageViewCreateInfo { |
| 2700 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO |
| 2701 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2702 | VkImageViewCreateFlags flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2703 | VkImage image |
| 2704 | VkImageViewType viewType |
| 2705 | VkFormat format |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2706 | VkComponentMapping components |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2707 | VkImageSubresourceRange subresourceRange |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2708 | } |
| 2709 | |
| 2710 | class VkBufferCopy { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2711 | VkDeviceSize srcOffset /// Specified in bytes |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2712 | VkDeviceSize dstOffset /// Specified in bytes |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 2713 | VkDeviceSize size /// Specified in bytes |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2714 | } |
| 2715 | |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2716 | class VkSparseMemoryBind { |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 2717 | VkDeviceSize resourceOffset /// Specified in bytes |
| 2718 | VkDeviceSize size /// Specified in bytes |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2719 | VkDeviceMemory memory |
| 2720 | VkDeviceSize memoryOffset /// Specified in bytes |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2721 | VkSparseMemoryBindFlags flags |
| 2722 | } |
| 2723 | |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2724 | class VkSparseImageMemoryBind { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2725 | VkImageSubresource subresource |
| 2726 | VkOffset3D offset |
| 2727 | VkExtent3D extent |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2728 | VkDeviceMemory memory |
| 2729 | VkDeviceSize memoryOffset /// Specified in bytes |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2730 | VkSparseMemoryBindFlags flags |
| 2731 | } |
| 2732 | |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2733 | class VkSparseBufferMemoryBindInfo { |
| 2734 | VkBuffer buffer |
| 2735 | u32 bindCount |
| 2736 | const VkSparseMemoryBind* pBinds |
| 2737 | } |
| 2738 | |
| 2739 | class VkSparseImageOpaqueMemoryBindInfo { |
| 2740 | VkImage image |
| 2741 | u32 bindCount |
| 2742 | const VkSparseMemoryBind* pBinds |
| 2743 | } |
| 2744 | |
| 2745 | class VkSparseImageMemoryBindInfo { |
| 2746 | VkImage image |
| 2747 | u32 bindCount |
| 2748 | const VkSparseMemoryBind* pBinds |
| 2749 | } |
| 2750 | |
| 2751 | class VkBindSparseInfo { |
| 2752 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_BIND_SPARSE_INFO |
| 2753 | const void* pNext |
| 2754 | u32 waitSemaphoreCount |
| 2755 | const VkSemaphore* pWaitSemaphores |
| 2756 | u32 numBufferBinds |
| 2757 | const VkSparseBufferMemoryBindInfo* pBufferBinds |
| 2758 | u32 numImageOpaqueBinds |
| 2759 | const VkSparseImageOpaqueMemoryBindInfo* pImageOpaqueBinds |
| 2760 | u32 numImageBinds |
| 2761 | const VkSparseImageMemoryBindInfo* pImageBinds |
| 2762 | u32 signalSemaphoreCount |
| 2763 | const VkSemaphore* pSignalSemaphores |
| 2764 | } |
| 2765 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2766 | class VkImageSubresourceLayers { |
| 2767 | VkImageAspectFlags aspectMask |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2768 | u32 mipLevel |
Jesse Hall | a15a4bf | 2015-11-19 22:48:02 -0800 | [diff] [blame] | 2769 | u32 baseArrayLayer |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2770 | u32 layerCount |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2771 | } |
| 2772 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2773 | class VkImageCopy { |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2774 | VkImageSubresourceLayers srcSubresource |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2775 | VkOffset3D srcOffset /// Specified in pixels for both compressed and uncompressed images |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2776 | VkImageSubresourceLayers dstSubresource |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2777 | VkOffset3D dstOffset /// Specified in pixels for both compressed and uncompressed images |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2778 | VkExtent3D extent /// Specified in pixels for both compressed and uncompressed images |
| 2779 | } |
| 2780 | |
| 2781 | class VkImageBlit { |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2782 | VkImageSubresourceLayers srcSubresource |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 2783 | VkOffset3D[2] srcOffsets |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2784 | VkImageSubresourceLayers dstSubresource |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 2785 | VkOffset3D[2] dstOffsets |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2786 | } |
| 2787 | |
| 2788 | class VkBufferImageCopy { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2789 | VkDeviceSize bufferOffset /// Specified in bytes |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2790 | u32 bufferRowLength /// Specified in texels |
| 2791 | u32 bufferImageHeight |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2792 | VkImageSubresourceLayers imageSubresource |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2793 | VkOffset3D imageOffset /// Specified in pixels for both compressed and uncompressed images |
| 2794 | VkExtent3D imageExtent /// Specified in pixels for both compressed and uncompressed images |
| 2795 | } |
| 2796 | |
| 2797 | class VkImageResolve { |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2798 | VkImageSubresourceLayers srcSubresource |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2799 | VkOffset3D srcOffset |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2800 | VkImageSubresourceLayers dstSubresource |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2801 | VkOffset3D dstOffset |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2802 | VkExtent3D extent |
| 2803 | } |
| 2804 | |
| 2805 | class VkShaderModuleCreateInfo { |
| 2806 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO |
| 2807 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2808 | VkShaderModuleCreateFlags flags /// Reserved |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2809 | platform.size_t codeSize /// Specified in bytes |
Jesse Hall | a9bb62b | 2015-11-21 19:31:56 -0800 | [diff] [blame] | 2810 | const u32* pCode /// Binary code of size codeSize |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2811 | } |
| 2812 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2813 | class VkDescriptorSetLayoutBinding { |
Jesse Hall | 091ed9e | 2015-11-30 00:55:29 -0800 | [diff] [blame] | 2814 | u32 binding |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2815 | VkDescriptorType descriptorType /// Type of the descriptors in this binding |
Jesse Hall | dba27f7 | 2015-11-30 14:25:46 -0800 | [diff] [blame] | 2816 | u32 descriptorCount /// Number of descriptors in this binding |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2817 | VkShaderStageFlags stageFlags /// Shader stages this binding is visible to |
| 2818 | const VkSampler* pImmutableSamplers /// Immutable samplers (used if descriptor type is SAMPLER or COMBINED_IMAGE_SAMPLER, is either NULL or contains <count> number of elements) |
| 2819 | } |
| 2820 | |
| 2821 | class VkDescriptorSetLayoutCreateInfo { |
| 2822 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO |
| 2823 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2824 | VkDescriptorSetLayoutCreateFlags flags |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2825 | u32 bindingCount /// Number of bindings in the descriptor set layout |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 2826 | const VkDescriptorSetLayoutBinding* pBindings /// Array of descriptor set layout bindings |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2827 | } |
| 2828 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2829 | class VkDescriptorPoolSize { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2830 | VkDescriptorType type |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2831 | u32 descriptorCount |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2832 | } |
| 2833 | |
| 2834 | class VkDescriptorPoolCreateInfo { |
| 2835 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO |
| 2836 | const void* pNext /// Pointer to next structure |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 2837 | VkDescriptorPoolCreateFlags flags |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2838 | u32 maxSets |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2839 | u32 poolSizeCount |
| 2840 | const VkDescriptorPoolSize* pPoolSizes |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2841 | } |
| 2842 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2843 | class VkDescriptorSetAllocateInfo { |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 2844 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 2845 | const void* pNext /// Pointer to next structure |
| 2846 | VkDescriptorPool descriptorPool |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2847 | u32 setCount |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 2848 | const VkDescriptorSetLayout* pSetLayouts |
| 2849 | } |
| 2850 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2851 | class VkSpecializationMapEntry { |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2852 | u32 constantID /// The SpecConstant ID specified in the BIL |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2853 | u32 offset /// Offset of the value in the data block |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 2854 | platform.size_t size /// Size in bytes of the SpecConstant |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2855 | } |
| 2856 | |
| 2857 | class VkSpecializationInfo { |
| 2858 | u32 mapEntryCount /// Number of entries in the map |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 2859 | const VkSpecializationMapEntry* pMapEntries /// Array of map entries |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2860 | platform.size_t dataSize /// Size in bytes of pData |
| 2861 | const void* pData /// Pointer to SpecConstant data |
| 2862 | } |
| 2863 | |
| 2864 | class VkPipelineShaderStageCreateInfo { |
| 2865 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO |
| 2866 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2867 | VkPipelineShaderStageCreateFlags flags |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 2868 | VkShaderStageFlagBits stage |
| 2869 | VkShaderModule module |
| 2870 | const char* pName |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2871 | const VkSpecializationInfo* pSpecializationInfo |
| 2872 | } |
| 2873 | |
| 2874 | class VkComputePipelineCreateInfo { |
| 2875 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO |
| 2876 | const void* pNext /// Pointer to next structure |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2877 | VkPipelineCreateFlags flags /// Pipeline creation flags |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2878 | VkPipelineShaderStageCreateInfo stage |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2879 | VkPipelineLayout layout /// Interface layout of the pipeline |
| 2880 | VkPipeline basePipelineHandle /// If VK_PIPELINE_CREATE_DERIVATIVE_BIT is set and this value is nonzero, it specifies the handle of the base pipeline this is a derivative of |
| 2881 | s32 basePipelineIndex /// If VK_PIPELINE_CREATE_DERIVATIVE_BIT is set and this value is not -1, it specifies an index into pCreateInfos of the base pipeline this is a derivative of |
| 2882 | } |
| 2883 | |
| 2884 | class VkVertexInputBindingDescription { |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 2885 | u32 binding /// Vertex buffer binding id |
| 2886 | u32 stride /// Distance between vertices in bytes (0 = no advancement) |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2887 | VkVertexInputRate inputRate /// Rate at which binding is incremented |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2888 | } |
| 2889 | |
| 2890 | class VkVertexInputAttributeDescription { |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 2891 | u32 location /// location of the shader vertex attrib |
| 2892 | u32 binding /// Vertex buffer binding id |
| 2893 | VkFormat format /// format of source data |
| 2894 | u32 offset /// Offset of first element in bytes from base of vertex |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2895 | } |
| 2896 | |
| 2897 | class VkPipelineVertexInputStateCreateInfo { |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2898 | VkStructureType sType /// Should be VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO |
| 2899 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2900 | VkPipelineVertexInputStateCreateFlags flags |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2901 | u32 vertexBindingDescriptionCount /// number of bindings |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2902 | const VkVertexInputBindingDescription* pVertexBindingDescriptions |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 2903 | u32 vertexAttributeDescriptionCount /// number of attributes |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2904 | const VkVertexInputAttributeDescription* pVertexAttributeDescriptions |
| 2905 | } |
| 2906 | |
| 2907 | class VkPipelineInputAssemblyStateCreateInfo { |
| 2908 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO |
| 2909 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2910 | VkPipelineInputAssemblyStateCreateFlags flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2911 | VkPrimitiveTopology topology |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2912 | VkBool32 primitiveRestartEnable |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2913 | } |
| 2914 | |
| 2915 | class VkPipelineTessellationStateCreateInfo { |
| 2916 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO |
| 2917 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2918 | VkPipelineTessellationStateCreateFlags flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2919 | u32 patchControlPoints |
| 2920 | } |
| 2921 | |
| 2922 | class VkPipelineViewportStateCreateInfo { |
| 2923 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO |
| 2924 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2925 | VkPipelineViewportStateCreateFlags flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2926 | u32 viewportCount |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2927 | const VkViewport* pViewports |
| 2928 | u32 scissorCount |
| 2929 | const VkRect2D* pScissors |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2930 | } |
| 2931 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2932 | class VkPipelineRasterizationStateCreateInfo { |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2933 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2934 | const void* pNext /// Pointer to next structure |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 2935 | VkPipelineRasterizationStateCreateFlags flags |
Jesse Hall | ae38f73 | 2015-11-19 21:32:50 -0800 | [diff] [blame] | 2936 | VkBool32 depthClampEnable |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2937 | VkBool32 rasterizerDiscardEnable |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2938 | VkPolygonMode polygonMode /// optional (GL45) |
Jesse Hall | c7467b7 | 2015-11-29 21:05:26 -0800 | [diff] [blame] | 2939 | VkCullModeFlags cullMode |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2940 | VkFrontFace frontFace |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2941 | VkBool32 depthBiasEnable |
Jesse Hall | a9bb62b | 2015-11-21 19:31:56 -0800 | [diff] [blame] | 2942 | f32 depthBiasConstantFactor |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2943 | f32 depthBiasClamp |
Jesse Hall | a9bb62b | 2015-11-21 19:31:56 -0800 | [diff] [blame] | 2944 | f32 depthBiasSlopeFactor |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2945 | f32 lineWidth |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2946 | } |
| 2947 | |
| 2948 | class VkPipelineMultisampleStateCreateInfo { |
| 2949 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO |
| 2950 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2951 | VkPipelineMultisampleStateCreateFlags flags |
Jesse Hall | 091ed9e | 2015-11-30 00:55:29 -0800 | [diff] [blame] | 2952 | VkSampleCountFlagBits rasterizationSamples /// Number of samples used for rasterization |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2953 | VkBool32 sampleShadingEnable /// optional (GL45) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2954 | f32 minSampleShading /// optional (GL45) |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2955 | const VkSampleMask* pSampleMask |
Jesse Hall | acfa534 | 2015-11-19 21:51:33 -0800 | [diff] [blame] | 2956 | VkBool32 alphaToCoverageEnable |
| 2957 | VkBool32 alphaToOneEnable |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2958 | } |
| 2959 | |
| 2960 | class VkPipelineColorBlendAttachmentState { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2961 | VkBool32 blendEnable |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2962 | VkBlendFactor srcColorBlendFactor |
| 2963 | VkBlendFactor dstColorBlendFactor |
| 2964 | VkBlendOp colorBlendOp |
| 2965 | VkBlendFactor srcAlphaBlendFactor |
| 2966 | VkBlendFactor dstAlphaBlendFactor |
| 2967 | VkBlendOp alphaBlendOp |
| 2968 | VkColorComponentFlags colorWriteMask |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2969 | } |
| 2970 | |
| 2971 | class VkPipelineColorBlendStateCreateInfo { |
| 2972 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO |
| 2973 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2974 | VkPipelineColorBlendStateCreateFlags flags |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2975 | VkBool32 logicOpEnable |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2976 | VkLogicOp logicOp |
| 2977 | u32 attachmentCount /// # of pAttachments |
| 2978 | const VkPipelineColorBlendAttachmentState* pAttachments |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 2979 | f32[4] blendConstants |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2980 | } |
| 2981 | |
| 2982 | class VkStencilOpState { |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 2983 | VkStencilOp failOp |
| 2984 | VkStencilOp passOp |
| 2985 | VkStencilOp depthFailOp |
| 2986 | VkCompareOp compareOp |
| 2987 | u32 compareMask |
| 2988 | u32 writeMask |
| 2989 | u32 reference |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2990 | } |
| 2991 | |
| 2992 | class VkPipelineDepthStencilStateCreateInfo { |
| 2993 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO |
| 2994 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 2995 | VkPipelineDepthStencilStateCreateFlags flags |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2996 | VkBool32 depthTestEnable |
| 2997 | VkBool32 depthWriteEnable |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 2998 | VkCompareOp depthCompareOp |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 2999 | VkBool32 depthBoundsTestEnable /// optional (depth_bounds_test) |
| 3000 | VkBool32 stencilTestEnable |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3001 | VkStencilOpState front |
| 3002 | VkStencilOpState back |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3003 | f32 minDepthBounds |
| 3004 | f32 maxDepthBounds |
| 3005 | } |
| 3006 | |
| 3007 | class VkPipelineDynamicStateCreateInfo { |
| 3008 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO |
| 3009 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3010 | VkPipelineDynamicStateCreateFlags flags |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3011 | u32 dynamicStateCount |
| 3012 | const VkDynamicState* pDynamicStates |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3013 | } |
| 3014 | |
| 3015 | class VkGraphicsPipelineCreateInfo { |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3016 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO |
| 3017 | const void* pNext /// Pointer to next structure |
| 3018 | VkPipelineCreateFlags flags /// Pipeline creation flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3019 | u32 stageCount |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3020 | const VkPipelineShaderStageCreateInfo* pStages /// One entry for each active shader stage |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3021 | const VkPipelineVertexInputStateCreateInfo* pVertexInputState |
| 3022 | const VkPipelineInputAssemblyStateCreateInfo* pInputAssemblyState |
| 3023 | const VkPipelineTessellationStateCreateInfo* pTessellationState |
| 3024 | const VkPipelineViewportStateCreateInfo* pViewportState |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3025 | const VkPipelineRasterizationStateCreateInfo* pRasterizationState |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3026 | const VkPipelineMultisampleStateCreateInfo* pMultisampleState |
| 3027 | const VkPipelineDepthStencilStateCreateInfo* pDepthStencilState |
| 3028 | const VkPipelineColorBlendStateCreateInfo* pColorBlendState |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3029 | const VkPipelineDynamicStateCreateInfo* pDynamicState |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3030 | VkPipelineLayout layout /// Interface layout of the pipeline |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3031 | VkRenderPass renderPass |
| 3032 | u32 subpass |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3033 | VkPipeline basePipelineHandle /// If VK_PIPELINE_CREATE_DERIVATIVE_BIT is set and this value is nonzero, it specifies the handle of the base pipeline this is a derivative of |
| 3034 | s32 basePipelineIndex /// If VK_PIPELINE_CREATE_DERIVATIVE_BIT is set and this value is not -1, it specifies an index into pCreateInfos of the base pipeline this is a derivative of |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3035 | } |
| 3036 | |
| 3037 | class VkPipelineCacheCreateInfo { |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 3038 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO |
| 3039 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3040 | VkPipelineCacheCreateFlags flags |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 3041 | platform.size_t initialDataSize /// Size of initial data to populate cache, in bytes |
| 3042 | const void* pInitialData /// Initial data to populate cache |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3043 | } |
| 3044 | |
| 3045 | class VkPushConstantRange { |
| 3046 | VkShaderStageFlags stageFlags /// Which stages use the range |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 3047 | u32 offset /// Start of the range, in bytes |
| 3048 | u32 size /// Length of the range, in bytes |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3049 | } |
| 3050 | |
| 3051 | class VkPipelineLayoutCreateInfo { |
| 3052 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO |
| 3053 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3054 | VkPipelineLayoutCreateFlags flags |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 3055 | u32 descriptorSetCount /// Number of descriptor sets interfaced by the pipeline |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3056 | const VkDescriptorSetLayout* pSetLayouts /// Array of <setCount> number of descriptor set layout objects defining the layout of the |
| 3057 | u32 pushConstantRangeCount /// Number of push-constant ranges used by the pipeline |
| 3058 | const VkPushConstantRange* pPushConstantRanges /// Array of pushConstantRangeCount number of ranges used by various shader stages |
| 3059 | } |
| 3060 | |
| 3061 | class VkSamplerCreateInfo { |
| 3062 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO |
| 3063 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3064 | VkSamplerCreateFlags flags |
Jesse Hall | 23ff73f | 2015-11-29 14:36:39 -0800 | [diff] [blame] | 3065 | VkFilter magFilter /// Filter mode for magnification |
| 3066 | VkFilter minFilter /// Filter mode for minifiation |
| 3067 | VkSamplerMipmapMode mipmapMode /// Mipmap selection mode |
| 3068 | VkSamplerAddressMode addressModeU |
| 3069 | VkSamplerAddressMode addressModeV |
| 3070 | VkSamplerAddressMode addressModeW |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3071 | f32 mipLodBias |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 3072 | VkBool32 anisotropyEnable |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3073 | f32 maxAnisotropy |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3074 | VkBool32 compareEnable |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3075 | VkCompareOp compareOp |
| 3076 | f32 minLod |
| 3077 | f32 maxLod |
| 3078 | VkBorderColor borderColor |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3079 | VkBool32 unnormalizedCoordinates |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3080 | } |
| 3081 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3082 | class VkCommandPoolCreateInfo { |
| 3083 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3084 | const void* pNext /// Pointer to next structure |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3085 | VkCommandPoolCreateFlags flags /// Command pool creation flags |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3086 | u32 queueFamilyIndex |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3087 | } |
| 3088 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3089 | class VkCommandBufferAllocateInfo { |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 3090 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3091 | const void* pNext /// Pointer to next structure |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3092 | VkCommandPool commandPool |
| 3093 | VkCommandBufferLevel level |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 3094 | u32 commandBufferCount |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3095 | } |
| 3096 | |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 3097 | class VkCommandBufferInheritanceInfo { |
| 3098 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3099 | const void* pNext /// Pointer to next structure |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3100 | VkRenderPass renderPass /// Render pass for secondary command buffers |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3101 | u32 subpass |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3102 | VkFramebuffer framebuffer /// Framebuffer for secondary command buffers |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 3103 | VkBool32 occlusionQueryEnable |
| 3104 | VkQueryControlFlags queryFlags |
| 3105 | VkQueryPipelineStatisticFlags pipelineStatistics |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3106 | } |
| 3107 | |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 3108 | class VkCommandBufferBeginInfo { |
| 3109 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO |
| 3110 | const void* pNext /// Pointer to next structure |
| 3111 | VkCommandBufferUsageFlags flags /// Command buffer usage flags |
| 3112 | const VkCommandBufferInheritanceInfo* pInheritanceInfo |
| 3113 | } |
| 3114 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3115 | class VkRenderPassBeginInfo { |
| 3116 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO |
| 3117 | const void* pNext /// Pointer to next structure |
| 3118 | VkRenderPass renderPass |
| 3119 | VkFramebuffer framebuffer |
| 3120 | VkRect2D renderArea |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3121 | u32 clearValueCount |
| 3122 | const VkClearValue* pClearValues |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3123 | } |
| 3124 | |
| 3125 | @union |
| 3126 | /// Union allowing specification of floating point, integer, or unsigned integer color data. Actual value selected is based on image/attachment being cleared. |
| 3127 | class VkClearColorValue { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3128 | f32[4] float32 |
| 3129 | s32[4] int32 |
| 3130 | u32[4] uint32 |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3131 | } |
| 3132 | |
| 3133 | class VkClearDepthStencilValue { |
| 3134 | f32 depth |
| 3135 | u32 stencil |
| 3136 | } |
| 3137 | |
| 3138 | @union |
| 3139 | /// Union allowing specification of color, depth, and stencil color values. Actual value selected is based on attachment being cleared. |
| 3140 | class VkClearValue { |
| 3141 | VkClearColorValue color |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3142 | VkClearDepthStencilValue depthStencil |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3143 | } |
| 3144 | |
Jesse Hall | ae38f73 | 2015-11-19 21:32:50 -0800 | [diff] [blame] | 3145 | class VkClearAttachment { |
| 3146 | VkImageAspectFlags aspectMask |
| 3147 | u32 colorAttachment |
| 3148 | VkClearValue clearValue |
| 3149 | } |
| 3150 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3151 | class VkAttachmentDescription { |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3152 | VkAttachmentDescriptionFlags flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3153 | VkFormat format |
Jesse Hall | 091ed9e | 2015-11-30 00:55:29 -0800 | [diff] [blame] | 3154 | VkSampleCountFlagBits samples |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3155 | VkAttachmentLoadOp loadOp /// Load op for color or depth data |
| 3156 | VkAttachmentStoreOp storeOp /// Store op for color or depth data |
| 3157 | VkAttachmentLoadOp stencilLoadOp /// Load op for stencil data |
| 3158 | VkAttachmentStoreOp stencilStoreOp /// Store op for stencil data |
| 3159 | VkImageLayout initialLayout |
| 3160 | VkImageLayout finalLayout |
| 3161 | } |
| 3162 | |
| 3163 | class VkAttachmentReference { |
| 3164 | u32 attachment |
| 3165 | VkImageLayout layout |
| 3166 | } |
| 3167 | |
| 3168 | class VkSubpassDescription { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3169 | VkSubpassDescriptionFlags flags |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3170 | VkPipelineBindPoint pipelineBindPoint /// Must be VK_PIPELINE_BIND_POINT_GRAPHICS for now |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 3171 | u32 inputAttachmentCount |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3172 | const VkAttachmentReference* pInputAttachments |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 3173 | u32 colorAttachmentCount |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3174 | const VkAttachmentReference* pColorAttachments |
| 3175 | const VkAttachmentReference* pResolveAttachments |
Jesse Hall | c7467b7 | 2015-11-29 21:05:26 -0800 | [diff] [blame] | 3176 | const VkAttachmentReference* pDepthStencilAttachment |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 3177 | u32 preserveAttachmentCount |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 3178 | const u32* pPreserveAttachments |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3179 | } |
| 3180 | |
| 3181 | class VkSubpassDependency { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3182 | u32 srcSubpass |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3183 | u32 dstSubpass |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3184 | VkPipelineStageFlags srcStageMask |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3185 | VkPipelineStageFlags dstStageMask |
Jesse Hall | 3e0dc8f | 2015-11-30 00:42:57 -0800 | [diff] [blame] | 3186 | VkAccessFlags srcAccessMask |
| 3187 | VkAccessFlags dstAccessMask |
Jesse Hall | dc6d36c | 2015-11-29 19:12:15 -0800 | [diff] [blame] | 3188 | VkDependencyFlags dependencyFlags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3189 | } |
| 3190 | |
| 3191 | class VkRenderPassCreateInfo { |
| 3192 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO |
| 3193 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3194 | VkRenderPassCreateFlags flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3195 | u32 attachmentCount |
| 3196 | const VkAttachmentDescription* pAttachments |
| 3197 | u32 subpassCount |
| 3198 | const VkSubpassDescription* pSubpasses |
| 3199 | u32 dependencyCount |
| 3200 | const VkSubpassDependency* pDependencies |
| 3201 | } |
| 3202 | |
| 3203 | class VkEventCreateInfo { |
| 3204 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_EVENT_CREATE_INFO |
| 3205 | const void* pNext /// Pointer to next structure |
| 3206 | VkEventCreateFlags flags /// Event creation flags |
| 3207 | } |
| 3208 | |
| 3209 | class VkFenceCreateInfo { |
| 3210 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_FENCE_CREATE_INFO |
| 3211 | const void* pNext /// Pointer to next structure |
| 3212 | VkFenceCreateFlags flags /// Fence creation flags |
| 3213 | } |
| 3214 | |
| 3215 | class VkPhysicalDeviceFeatures { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3216 | VkBool32 robustBufferAccess /// out of bounds buffer accesses are well defined |
| 3217 | VkBool32 fullDrawIndexUint32 /// full 32-bit range of indices for indexed draw calls |
| 3218 | VkBool32 imageCubeArray /// image views which are arrays of cube maps |
| 3219 | VkBool32 independentBlend /// blending operations are controlled per-attachment |
| 3220 | VkBool32 geometryShader /// geometry stage |
| 3221 | VkBool32 tessellationShader /// tessellation control and evaluation stage |
| 3222 | VkBool32 sampleRateShading /// per-sample shading and interpolation |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3223 | VkBool32 dualSrcBlend /// blend operations which take two sources |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3224 | VkBool32 logicOp /// logic operations |
| 3225 | VkBool32 multiDrawIndirect /// multi draw indirect |
Jesse Hall | 543a7ff | 2016-01-08 16:38:30 -0800 | [diff] [blame] | 3226 | VkBool32 drawIndirectFirstInstance |
Jesse Hall | ae38f73 | 2015-11-19 21:32:50 -0800 | [diff] [blame] | 3227 | VkBool32 depthClamp /// depth clamping |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3228 | VkBool32 depthBiasClamp /// depth bias clamping |
| 3229 | VkBool32 fillModeNonSolid /// point and wireframe fill modes |
| 3230 | VkBool32 depthBounds /// depth bounds test |
| 3231 | VkBool32 wideLines /// lines with width greater than 1 |
| 3232 | VkBool32 largePoints /// points with size greater than 1 |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 3233 | VkBool32 alphaToOne /// The fragment alpha channel can be forced to maximum representable alpha value |
| 3234 | VkBool32 multiViewport |
| 3235 | VkBool32 samplerAnisotropy |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3236 | VkBool32 textureCompressionETC2 /// ETC texture compression formats |
| 3237 | VkBool32 textureCompressionASTC_LDR /// ASTC LDR texture compression formats |
| 3238 | VkBool32 textureCompressionBC /// BC1-7 texture compressed formats |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 3239 | VkBool32 occlusionQueryPrecise |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3240 | VkBool32 pipelineStatisticsQuery /// pipeline statistics query |
Jesse Hall | dc6d36c | 2015-11-29 19:12:15 -0800 | [diff] [blame] | 3241 | VkBool32 vertexPipelineStoresAndAtomics |
| 3242 | VkBool32 fragmentStoresAndAtomics |
| 3243 | VkBool32 shaderTessellationAndGeometryPointSize |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3244 | VkBool32 shaderImageGatherExtended /// texture gather with run-time values and independent offsets |
| 3245 | VkBool32 shaderStorageImageExtendedFormats /// the extended set of formats can be used for storage images |
| 3246 | VkBool32 shaderStorageImageMultisample /// multisample images can be used for storage images |
Jesse Hall | d1af812 | 2015-11-29 23:50:38 -0800 | [diff] [blame] | 3247 | VkBool32 shaderStorageImageReadWithoutFormat |
| 3248 | VkBool32 shaderStorageImageWriteWithoutFormat |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3249 | VkBool32 shaderUniformBufferArrayDynamicIndexing /// arrays of uniform buffers can be accessed with dynamically uniform indices |
| 3250 | VkBool32 shaderSampledImageArrayDynamicIndexing /// arrays of sampled images can be accessed with dynamically uniform indices |
| 3251 | VkBool32 shaderStorageBufferArrayDynamicIndexing /// arrays of storage buffers can be accessed with dynamically uniform indices |
| 3252 | VkBool32 shaderStorageImageArrayDynamicIndexing /// arrays of storage images can be accessed with dynamically uniform indices |
| 3253 | VkBool32 shaderClipDistance /// clip distance in shaders |
| 3254 | VkBool32 shaderCullDistance /// cull distance in shaders |
| 3255 | VkBool32 shaderFloat64 /// 64-bit floats (doubles) in shaders |
| 3256 | VkBool32 shaderInt64 /// 64-bit integers in shaders |
| 3257 | VkBool32 shaderInt16 /// 16-bit integers in shaders |
| 3258 | VkBool32 shaderResourceResidency /// shader can use texture operations that return resource residency information (requires sparseNonResident support) |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 3259 | VkBool32 shaderResourceMinLod /// shader can use texture operations that specify minimum resource LOD |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3260 | VkBool32 sparseBinding /// Sparse resources support: Resource memory can be managed at opaque page level rather than object level |
| 3261 | VkBool32 sparseResidencyBuffer /// Sparse resources support: GPU can access partially resident buffers |
| 3262 | VkBool32 sparseResidencyImage2D /// Sparse resources support: GPU can access partially resident 2D (non-MSAA non-DepthStencil) images |
| 3263 | VkBool32 sparseResidencyImage3D /// Sparse resources support: GPU can access partially resident 3D images |
| 3264 | VkBool32 sparseResidency2Samples /// Sparse resources support: GPU can access partially resident MSAA 2D images with 2 samples |
| 3265 | VkBool32 sparseResidency4Samples /// Sparse resources support: GPU can access partially resident MSAA 2D images with 4 samples |
| 3266 | VkBool32 sparseResidency8Samples /// Sparse resources support: GPU can access partially resident MSAA 2D images with 8 samples |
| 3267 | VkBool32 sparseResidency16Samples /// Sparse resources support: GPU can access partially resident MSAA 2D images with 16 samples |
| 3268 | VkBool32 sparseResidencyAliased /// Sparse resources support: GPU can correctly access data aliased into multiple locations (opt-in) |
Jesse Hall | d1af812 | 2015-11-29 23:50:38 -0800 | [diff] [blame] | 3269 | VkBool32 variableMultisampleRate |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 3270 | VkBool32 inheritedQueries |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3271 | } |
| 3272 | |
| 3273 | class VkPhysicalDeviceLimits { |
| 3274 | /// resource maximum sizes |
| 3275 | u32 maxImageDimension1D /// max 1D image dimension |
| 3276 | u32 maxImageDimension2D /// max 2D image dimension |
| 3277 | u32 maxImageDimension3D /// max 3D image dimension |
| 3278 | u32 maxImageDimensionCube /// max cubemap image dimension |
| 3279 | u32 maxImageArrayLayers /// max layers for image arrays |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 3280 | u32 maxTexelBufferElements |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 3281 | u32 maxUniformBufferRange /// max uniform buffer size (bytes) |
| 3282 | u32 maxStorageBufferRange /// max storage buffer size (bytes) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3283 | u32 maxPushConstantsSize /// max size of the push constants pool (bytes) |
| 3284 | /// memory limits |
| 3285 | u32 maxMemoryAllocationCount /// max number of device memory allocations supported |
Jesse Hall | 091ed9e | 2015-11-30 00:55:29 -0800 | [diff] [blame] | 3286 | u32 maxSamplerAllocationCount |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3287 | VkDeviceSize bufferImageGranularity /// Granularity (in bytes) at which buffers and images can be bound to adjacent memory for simultaneous usage |
| 3288 | VkDeviceSize sparseAddressSpaceSize /// Total address space available for sparse allocations (bytes) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3289 | /// descriptor set limits |
| 3290 | u32 maxBoundDescriptorSets /// max number of descriptors sets that can be bound to a pipeline |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3291 | u32 maxPerStageDescriptorSamplers /// max num of samplers allowed per-stage in a descriptor set |
| 3292 | u32 maxPerStageDescriptorUniformBuffers /// max num of uniform buffers allowed per-stage in a descriptor set |
| 3293 | u32 maxPerStageDescriptorStorageBuffers /// max num of storage buffers allowed per-stage in a descriptor set |
| 3294 | u32 maxPerStageDescriptorSampledImages /// max num of sampled images allowed per-stage in a descriptor set |
| 3295 | u32 maxPerStageDescriptorStorageImages /// max num of storage images allowed per-stage in a descriptor set |
Jesse Hall | e1b1278 | 2015-11-30 11:27:32 -0800 | [diff] [blame] | 3296 | u32 maxPerStageDescriptorInputAttachments |
Jesse Hall | dba27f7 | 2015-11-30 14:25:46 -0800 | [diff] [blame] | 3297 | u32 maxPerStageResources |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3298 | u32 maxDescriptorSetSamplers /// max num of samplers allowed in all stages in a descriptor set |
| 3299 | u32 maxDescriptorSetUniformBuffers /// max num of uniform buffers allowed in all stages in a descriptor set |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3300 | u32 maxDescriptorSetUniformBuffersDynamic /// max num of dynamic uniform buffers allowed in all stages in a descriptor set |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3301 | u32 maxDescriptorSetStorageBuffers /// max num of storage buffers allowed in all stages in a descriptor set |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3302 | u32 maxDescriptorSetStorageBuffersDynamic /// max num of dynamic storage buffers allowed in all stages in a descriptor set |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3303 | u32 maxDescriptorSetSampledImages /// max num of sampled images allowed in all stages in a descriptor set |
| 3304 | u32 maxDescriptorSetStorageImages /// max num of storage images allowed in all stages in a descriptor set |
Jesse Hall | e1b1278 | 2015-11-30 11:27:32 -0800 | [diff] [blame] | 3305 | u32 maxDescriptorSetInputAttachments |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3306 | /// vertex stage limits |
| 3307 | u32 maxVertexInputAttributes /// max num of vertex input attribute slots |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3308 | u32 maxVertexInputBindings /// max num of vertex input binding slots |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3309 | u32 maxVertexInputAttributeOffset /// max vertex input attribute offset added to vertex buffer offset |
| 3310 | u32 maxVertexInputBindingStride /// max vertex input binding stride |
| 3311 | u32 maxVertexOutputComponents /// max num of output components written by vertex shader |
| 3312 | /// tessellation control stage limits |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3313 | u32 maxTessellationGenerationLevel /// max level supported by tess primitive generator |
Jesse Hall | ae38f73 | 2015-11-19 21:32:50 -0800 | [diff] [blame] | 3314 | u32 maxTessellationPatchSize /// max patch size (vertices) |
| 3315 | u32 maxTessellationControlPerVertexInputComponents /// max num of input components per-vertex in TCS |
| 3316 | u32 maxTessellationControlPerVertexOutputComponents /// max num of output components per-vertex in TCS |
| 3317 | u32 maxTessellationControlPerPatchOutputComponents /// max num of output components per-patch in TCS |
| 3318 | u32 maxTessellationControlTotalOutputComponents /// max total num of per-vertex and per-patch output components in TCS |
| 3319 | u32 maxTessellationEvaluationInputComponents /// max num of input components per vertex in TES |
| 3320 | u32 maxTessellationEvaluationOutputComponents /// max num of output components per vertex in TES |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3321 | /// geometry stage limits |
| 3322 | u32 maxGeometryShaderInvocations /// max invocation count supported in geometry shader |
| 3323 | u32 maxGeometryInputComponents /// max num of input components read in geometry stage |
| 3324 | u32 maxGeometryOutputComponents /// max num of output components written in geometry stage |
| 3325 | u32 maxGeometryOutputVertices /// max num of vertices that can be emitted in geometry stage |
| 3326 | u32 maxGeometryTotalOutputComponents /// max total num of components (all vertices) written in geometry stage |
| 3327 | /// fragment stage limits |
| 3328 | u32 maxFragmentInputComponents /// max num of input compontents read in fragment stage |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 3329 | u32 maxFragmentOutputAttachments /// max num of output attachments written in fragment stage |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3330 | u32 maxFragmentDualSrcAttachments /// max num of output attachments written when using dual source blending |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3331 | u32 maxFragmentCombinedOutputResources /// max total num of storage buffers, storage images and output buffers |
| 3332 | /// compute stage limits |
| 3333 | u32 maxComputeSharedMemorySize /// max total storage size of work group local storage (bytes) |
| 3334 | u32[3] maxComputeWorkGroupCount /// max num of compute work groups that may be dispatched by a single command (x,y,z) |
| 3335 | u32 maxComputeWorkGroupInvocations /// max total compute invocations in a single local work group |
| 3336 | u32[3] maxComputeWorkGroupSize /// max local size of a compute work group (x,y,z) |
| 3337 | |
| 3338 | u32 subPixelPrecisionBits /// num bits of subpixel precision in screen x and y |
| 3339 | u32 subTexelPrecisionBits /// num bits of subtexel precision |
| 3340 | u32 mipmapPrecisionBits /// num bits of mipmap precision |
| 3341 | |
| 3342 | u32 maxDrawIndexedIndexValue /// max index value for indexed draw calls (for 32-bit indices) |
Jesse Hall | dba27f7 | 2015-11-30 14:25:46 -0800 | [diff] [blame] | 3343 | u32 maxDrawIndirectCount |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3344 | |
| 3345 | f32 maxSamplerLodBias /// max absolute sampler level of detail bias |
| 3346 | f32 maxSamplerAnisotropy /// max degree of sampler anisotropy |
| 3347 | |
| 3348 | u32 maxViewports /// max number of active viewports |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3349 | u32[2] maxViewportDimensions /// max viewport dimensions (x,y) |
| 3350 | f32[2] viewportBoundsRange /// viewport bounds range (min,max) |
| 3351 | u32 viewportSubPixelBits /// num bits of subpixel precision for viewport |
| 3352 | |
Jesse Hall | dc6d36c | 2015-11-29 19:12:15 -0800 | [diff] [blame] | 3353 | platform.size_t minMemoryMapAlignment /// min required alignment of pointers returned by MapMemory (bytes) |
| 3354 | VkDeviceSize minTexelBufferOffsetAlignment /// min required alignment for texel buffer offsets (bytes) |
| 3355 | VkDeviceSize minUniformBufferOffsetAlignment /// min required alignment for uniform buffer sizes and offsets (bytes) |
| 3356 | VkDeviceSize minStorageBufferOffsetAlignment /// min required alignment for storage buffer offsets (bytes) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3357 | |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 3358 | s32 minTexelOffset /// min texel offset for OpTextureSampleOffset |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3359 | u32 maxTexelOffset /// max texel offset for OpTextureSampleOffset |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 3360 | s32 minTexelGatherOffset /// min texel offset for OpTextureGatherOffset |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3361 | u32 maxTexelGatherOffset /// max texel offset for OpTextureGatherOffset |
| 3362 | f32 minInterpolationOffset /// furthest negative offset for interpolateAtOffset |
| 3363 | f32 maxInterpolationOffset /// furthest positive offset for interpolateAtOffset |
| 3364 | u32 subPixelInterpolationOffsetBits /// num of subpixel bits for interpolateAtOffset |
| 3365 | |
| 3366 | u32 maxFramebufferWidth /// max width for a framebuffer |
| 3367 | u32 maxFramebufferHeight /// max height for a framebuffer |
| 3368 | u32 maxFramebufferLayers /// max layer count for a layered framebuffer |
Jesse Hall | 091ed9e | 2015-11-30 00:55:29 -0800 | [diff] [blame] | 3369 | VkSampleCountFlags framebufferColorSampleCounts |
| 3370 | VkSampleCountFlags framebufferDepthSampleCounts |
| 3371 | VkSampleCountFlags framebufferStencilSampleCounts |
| 3372 | VkSampleCountFlags framebufferNoAttachmentSampleCounts |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3373 | u32 maxColorAttachments /// max num of framebuffer color attachments |
| 3374 | |
Jesse Hall | 091ed9e | 2015-11-30 00:55:29 -0800 | [diff] [blame] | 3375 | VkSampleCountFlags sampledImageColorSampleCounts |
| 3376 | VkSampleCountFlags sampledImageIntegerSampleCounts |
| 3377 | VkSampleCountFlags sampledImageDepthSampleCounts |
| 3378 | VkSampleCountFlags sampledImageStencilSampleCounts |
| 3379 | VkSampleCountFlags storageImageSampleCounts |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3380 | u32 maxSampleMaskWords /// max num of sample mask words |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 3381 | VkBool32 timestampComputeAndGraphics |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3382 | |
Jesse Hall | a9bb62b | 2015-11-21 19:31:56 -0800 | [diff] [blame] | 3383 | f32 timestampPeriod |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3384 | |
| 3385 | u32 maxClipDistances /// max number of clip distances |
| 3386 | u32 maxCullDistances /// max number of cull distances |
| 3387 | u32 maxCombinedClipAndCullDistances /// max combined number of user clipping |
| 3388 | |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 3389 | u32 discreteQueuePriorities |
| 3390 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3391 | f32[2] pointSizeRange /// range (min,max) of supported point sizes |
| 3392 | f32[2] lineWidthRange /// range (min,max) of supported line widths |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3393 | f32 pointSizeGranularity /// granularity of supported point sizes |
| 3394 | f32 lineWidthGranularity /// granularity of supported line widths |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 3395 | VkBool32 strictLines |
Jesse Hall | 091ed9e | 2015-11-30 00:55:29 -0800 | [diff] [blame] | 3396 | VkBool32 standardSampleLocations |
Jesse Hall | a9bb62b | 2015-11-21 19:31:56 -0800 | [diff] [blame] | 3397 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 3398 | VkDeviceSize optimalBufferCopyOffsetAlignment |
| 3399 | VkDeviceSize optimalBufferCopyRowPitchAlignment |
Jesse Hall | dba27f7 | 2015-11-30 14:25:46 -0800 | [diff] [blame] | 3400 | VkDeviceSize nonCoherentAtomSize |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3401 | } |
| 3402 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3403 | class VkPhysicalDeviceSparseProperties { |
| 3404 | VkBool32 residencyStandard2DBlockShape /// Sparse resources support: GPU will access all 2D (single sample) sparse resources using the standard block shapes (based on pixel format) |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 3405 | VkBool32 residencyStandard2DMultisampleBlockShape /// Sparse resources support: GPU will access all 2D (multisample) sparse resources using the standard block shapes (based on pixel format) |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3406 | VkBool32 residencyStandard3DBlockShape /// Sparse resources support: GPU will access all 3D sparse resources using the standard block shapes (based on pixel format) |
| 3407 | VkBool32 residencyAlignedMipSize /// Sparse resources support: Images with mip-level dimensions that are NOT a multiple of the block size will be placed in the mip tail |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3408 | VkBool32 residencyNonResidentStrict /// Sparse resources support: GPU can safely access non-resident regions of a resource, all reads return as if data is 0, writes are discarded |
| 3409 | } |
| 3410 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3411 | class VkSemaphoreCreateInfo { |
| 3412 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO |
| 3413 | const void* pNext /// Pointer to next structure |
| 3414 | VkSemaphoreCreateFlags flags /// Semaphore creation flags |
| 3415 | } |
| 3416 | |
| 3417 | class VkQueryPoolCreateInfo { |
| 3418 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO |
| 3419 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3420 | VkQueryPoolCreateFlags flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3421 | VkQueryType queryType |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 3422 | u32 queryCount |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3423 | VkQueryPipelineStatisticFlags pipelineStatistics /// Optional |
| 3424 | } |
| 3425 | |
| 3426 | class VkFramebufferCreateInfo { |
| 3427 | VkStructureType sType /// Must be VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO |
| 3428 | const void* pNext /// Pointer to next structure |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3429 | VkFramebufferCreateFlags flags |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3430 | VkRenderPass renderPass |
| 3431 | u32 attachmentCount |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 3432 | const VkImageView* pAttachments |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3433 | u32 width |
| 3434 | u32 height |
| 3435 | u32 layers |
| 3436 | } |
| 3437 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3438 | class VkDrawIndirectCommand { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3439 | u32 vertexCount |
| 3440 | u32 instanceCount |
| 3441 | u32 firstVertex |
| 3442 | u32 firstInstance |
| 3443 | } |
| 3444 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3445 | class VkDrawIndexedIndirectCommand { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3446 | u32 indexCount |
| 3447 | u32 instanceCount |
| 3448 | u32 firstIndex |
| 3449 | s32 vertexOffset |
| 3450 | u32 firstInstance |
| 3451 | } |
| 3452 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 3453 | class VkDispatchIndirectCommand { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3454 | u32 x |
| 3455 | u32 y |
| 3456 | u32 z |
| 3457 | } |
| 3458 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3459 | @extension("VK_KHR_surface") // 1 |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 3460 | class VkSurfaceCapabilitiesKHR { |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3461 | u32 minImageCount |
| 3462 | u32 maxImageCount |
| 3463 | VkExtent2D currentExtent |
| 3464 | VkExtent2D minImageExtent |
| 3465 | VkExtent2D maxImageExtent |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 3466 | u32 maxImageArrayLayers |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3467 | VkSurfaceTransformFlagsKHR supportedTransforms |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 3468 | VkSurfaceTransformFlagBitsKHR currentTransform |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3469 | VkCompositeAlphaFlagsKHR supportedCompositeAlpha |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3470 | VkImageUsageFlags supportedUsageFlags |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 3471 | } |
| 3472 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3473 | @extension("VK_KHR_surface") // 1 |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 3474 | class VkSurfaceFormatKHR { |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3475 | VkFormat format |
| 3476 | VkColorSpaceKHR colorSpace |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 3477 | } |
| 3478 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3479 | @extension("VK_KHR_swapchain") // 2 |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 3480 | class VkSwapchainCreateInfoKHR { |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3481 | VkStructureType sType |
| 3482 | const void* pNext |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 3483 | VkSwapchainCreateFlagsKHR flags |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3484 | VkSurfaceKHR surface |
| 3485 | u32 minImageCount |
| 3486 | VkFormat imageFormat |
| 3487 | VkColorSpaceKHR imageColorSpace |
| 3488 | VkExtent2D imageExtent |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 3489 | u32 imageArrayLayers |
| 3490 | VkImageUsageFlags imageUsage |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3491 | VkSharingMode sharingMode |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 3492 | u32 queueFamilyIndexCount |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3493 | const u32* pQueueFamilyIndices |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 3494 | VkSurfaceTransformFlagBitsKHR preTransform |
| 3495 | VkCompositeAlphaFlagBitsKHR compositeAlpha |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3496 | VkPresentModeKHR presentMode |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3497 | VkBool32 clipped |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 3498 | VkSwapchainKHR oldSwapchain |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 3499 | } |
| 3500 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3501 | @extension("VK_KHR_swapchain") // 2 |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 3502 | class VkPresentInfoKHR { |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3503 | VkStructureType sType |
| 3504 | const void* pNext |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 3505 | u32 waitSemaphoreCount |
| 3506 | const VkSemaphore* pWaitSemaphores |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3507 | u32 swapchainCount |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 3508 | const VkSwapchainKHR* pSwapchains |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 3509 | const u32* pImageIndices |
Jesse Hall | e1b1278 | 2015-11-30 11:27:32 -0800 | [diff] [blame] | 3510 | VkResult* pResults |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 3511 | } |
| 3512 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3513 | @extension("VK_KHR_display") // 3 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3514 | class VkDisplayPropertiesKHR { |
| 3515 | VkDisplayKHR display |
| 3516 | const char* displayName |
| 3517 | VkExtent2D physicalDimensions |
| 3518 | VkExtent2D physicalResolution |
| 3519 | VkSurfaceTransformFlagsKHR supportedTransforms |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3520 | VkBool32 planeReorderPossible |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3521 | VkBool32 persistentContent |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 3522 | } |
| 3523 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3524 | @extension("VK_KHR_display") // 3 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3525 | class VkDisplayModeParametersKHR { |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3526 | VkExtent2D visibleRegion |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3527 | u32 refreshRate |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 3528 | } |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 3529 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3530 | @extension("VK_KHR_display") // 3 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3531 | class VkDisplayModePropertiesKHR { |
| 3532 | VkDisplayModeKHR displayMode |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3533 | VkDisplayModeParametersKHR parameters |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3534 | } |
| 3535 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3536 | @extension("VK_KHR_display") // 3 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3537 | class VkDisplayModeCreateInfoKHR { |
| 3538 | VkStructureType sType |
| 3539 | const void* pNext |
Jesse Hall | 9ba8bc8 | 2015-11-30 16:22:16 -0800 | [diff] [blame] | 3540 | VkDisplayModeCreateFlagsKHR flags |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3541 | VkDisplayModeParametersKHR parameters |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3542 | } |
| 3543 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3544 | @extension("VK_KHR_display") // 3 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3545 | class VkDisplayPlanePropertiesKHR { |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3546 | VkDisplayKHR currentDisplay |
| 3547 | u32 currentStackIndex |
| 3548 | } |
| 3549 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3550 | @extension("VK_KHR_display") // 3 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3551 | class VkDisplayPlaneCapabilitiesKHR { |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3552 | VkDisplayPlaneAlphaFlagsKHR supportedAlpha |
| 3553 | VkOffset2D minSrcPosition |
| 3554 | VkOffset2D maxSrcPosition |
| 3555 | VkExtent2D minSrcExtent |
| 3556 | VkExtent2D maxSrcExtent |
| 3557 | VkOffset2D minDstPosition |
| 3558 | VkOffset2D maxDstPosition |
| 3559 | VkExtent2D minDstExtent |
| 3560 | VkExtent2D maxDstExtent |
| 3561 | } |
| 3562 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3563 | @extension("VK_KHR_display") // 3 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3564 | class VkDisplaySurfaceCreateInfoKHR { |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3565 | VkStructureType sType |
| 3566 | const void* pNext |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 3567 | VkDisplaySurfaceCreateFlagsKHR flags |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3568 | VkDisplayModeKHR displayMode |
| 3569 | u32 planeIndex |
| 3570 | u32 planeStackIndex |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 3571 | VkSurfaceTransformFlagBitsKHR transform |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3572 | f32 globalAlpha |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 3573 | VkDisplayPlaneAlphaFlagBitsKHR alphaMode |
| 3574 | VkExtent2D imageExtent |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3575 | } |
| 3576 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3577 | @extension("VK_KHR_display_swapchain") // 4 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3578 | class VkDisplayPresentInfoKHR { |
| 3579 | VkStructureType sType |
| 3580 | const void* pNext |
| 3581 | VkRect2D srcRect |
| 3582 | VkRect2D dstRect |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 3583 | VkBool32 persistent |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 3584 | } |
| 3585 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3586 | @extension("VK_KHR_xlib_surface") // 5 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 3587 | class VkXlibSurfaceCreateInfoKHR { |
| 3588 | VkStructureType sType |
| 3589 | const void* pNext |
| 3590 | VkXlibSurfaceCreateFlagsKHR flags |
| 3591 | platform.Display* dpy |
| 3592 | platform.Window window |
| 3593 | } |
| 3594 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3595 | @extension("VK_KHR_xcb_surface") // 6 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 3596 | class VkXcbSurfaceCreateInfoKHR { |
| 3597 | VkStructureType sType |
| 3598 | const void* pNext |
| 3599 | VkXcbSurfaceCreateFlagsKHR flags |
| 3600 | platform.xcb_connection_t* connection |
| 3601 | platform.xcb_window_t window |
| 3602 | } |
| 3603 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3604 | @extension("VK_KHR_wayland_surface") // 7 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 3605 | class VkWaylandSurfaceCreateInfoKHR { |
| 3606 | VkStructureType sType |
| 3607 | const void* pNext |
| 3608 | VkWaylandSurfaceCreateFlagsKHR flags |
| 3609 | platform.wl_display* display |
| 3610 | platform.wl_surface* surface |
| 3611 | } |
| 3612 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3613 | @extension("VK_KHR_mir_surface") // 8 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 3614 | class VkMirSurfaceCreateInfoKHR { |
| 3615 | VkStructureType sType |
| 3616 | const void* pNext |
| 3617 | VkMirSurfaceCreateFlagsKHR flags |
| 3618 | platform.MirConnection* connection |
| 3619 | platform.MirSurface* mirSurface |
| 3620 | } |
| 3621 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3622 | @extension("VK_KHR_android_surface") // 9 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 3623 | class VkAndroidSurfaceCreateInfoKHR { |
| 3624 | VkStructureType sType |
| 3625 | const void* pNext |
| 3626 | VkAndroidSurfaceCreateFlagsKHR flags |
| 3627 | platform.ANativeWindow* window |
| 3628 | } |
| 3629 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3630 | @extension("VK_KHR_win32_surface") // 10 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 3631 | class VkWin32SurfaceCreateInfoKHR { |
| 3632 | VkStructureType sType |
| 3633 | const void* pNext |
| 3634 | VkWin32SurfaceCreateFlagsKHR flags |
| 3635 | platform.HINSTANCE hinstance |
| 3636 | platform.HWND hwnd |
| 3637 | } |
| 3638 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3639 | @extension("VK_ANDROID_native_buffer") // 11 |
Jesse Hall | d1abd74 | 2017-02-09 21:45:51 -0800 | [diff] [blame] | 3640 | @internal class Gralloc1Usage { |
| 3641 | u64 consumer |
| 3642 | u64 producer |
| 3643 | } |
| 3644 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3645 | @extension("VK_ANDROID_native_buffer") // 11 |
Chia-I Wu | b262ddc | 2016-03-22 07:38:20 +0800 | [diff] [blame] | 3646 | class VkNativeBufferANDROID { |
| 3647 | VkStructureType sType |
| 3648 | const void* pNext |
| 3649 | platform.buffer_handle_t handle |
Jesse Hall | d1abd74 | 2017-02-09 21:45:51 -0800 | [diff] [blame] | 3650 | s32 stride |
| 3651 | s32 format |
| 3652 | s32 usage |
| 3653 | Gralloc1Usage usage2 |
Chia-I Wu | b262ddc | 2016-03-22 07:38:20 +0800 | [diff] [blame] | 3654 | } |
| 3655 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3656 | @extension("VK_ANDROID_native_buffer") // 11 |
Chris Forbes | 8e4438b | 2016-12-07 16:26:49 +1300 | [diff] [blame] | 3657 | class VkSwapchainImageCreateInfoANDROID { |
| 3658 | VkStructureType sType |
| 3659 | const void* pNext |
Chris Forbes | 134d958 | 2017-01-12 14:26:37 +1300 | [diff] [blame] | 3660 | VkSwapchainImageUsageFlagsANDROID flags |
Chris Forbes | 4885371 | 2017-01-12 14:09:33 +1300 | [diff] [blame] | 3661 | } |
Ian Elliott | 4c8bb2a | 2016-12-29 11:07:26 -0700 | [diff] [blame] | 3662 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3663 | @extension("VK_ANDROID_native_buffer") // 11 |
Chris Forbes | 1d4e554 | 2017-02-15 19:38:50 +1300 | [diff] [blame] | 3664 | class VkPhysicalDevicePresentationPropertiesANDROID { |
| 3665 | VkStructureType sType |
| 3666 | void* pNext |
| 3667 | VkBool32 sharedImage |
| 3668 | } |
| 3669 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3670 | @extension("VK_EXT_debug_report") // 12 |
Jesse Hall | 715b86a | 2016-01-16 16:34:29 -0800 | [diff] [blame] | 3671 | class VkDebugReportCallbackCreateInfoEXT { |
| 3672 | VkStructureType sType |
| 3673 | const void* pNext |
| 3674 | VkDebugReportFlagsEXT flags |
| 3675 | PFN_vkDebugReportCallbackEXT pfnCallback |
| 3676 | void* pUserData |
| 3677 | } |
| 3678 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3679 | @extension("VK_AMD_rasterization_order") // 19 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 3680 | class VkPipelineRasterizationStateRasterizationOrderAMD { |
| 3681 | VkStructureType sType |
| 3682 | const void* pNext |
| 3683 | VkRasterizationOrderAMD rasterizationOrder |
| 3684 | } |
| 3685 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3686 | @extension("VK_EXT_debug_marker") // 23 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 3687 | class VkDebugMarkerObjectNameInfoEXT { |
| 3688 | VkStructureType sType |
| 3689 | const void* pNext |
| 3690 | VkDebugReportObjectTypeEXT objectType |
| 3691 | u64 object |
| 3692 | const char* pObjectName |
| 3693 | } |
| 3694 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3695 | @extension("VK_EXT_debug_marker") // 23 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 3696 | class VkDebugMarkerObjectTagInfoEXT { |
| 3697 | VkStructureType sType |
| 3698 | const void* pNext |
| 3699 | VkDebugReportObjectTypeEXT objectType |
| 3700 | u64 object |
| 3701 | u64 tagName |
| 3702 | platform.size_t tagSize |
| 3703 | const void* pTag |
| 3704 | } |
| 3705 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3706 | @extension("VK_EXT_debug_marker") // 23 |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 3707 | class VkDebugMarkerMarkerInfoEXT { |
| 3708 | VkStructureType sType |
| 3709 | const void* pNext |
| 3710 | const char* pMarkerName |
| 3711 | f32[4] color |
| 3712 | } |
| 3713 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3714 | @extension("VK_NV_dedicated_allocation") // 27 |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 3715 | class VkDedicatedAllocationImageCreateInfoNV { |
| 3716 | VkStructureType sType |
| 3717 | const void* pNext |
| 3718 | VkBool32 dedicatedAllocation |
| 3719 | } |
| 3720 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3721 | @extension("VK_NV_dedicated_allocation") // 27 |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 3722 | class VkDedicatedAllocationBufferCreateInfoNV { |
| 3723 | VkStructureType sType |
| 3724 | const void* pNext |
| 3725 | VkBool32 dedicatedAllocation |
| 3726 | } |
| 3727 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3728 | @extension("VK_NV_dedicated_allocation") // 27 |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 3729 | class VkDedicatedAllocationMemoryAllocateInfoNV { |
| 3730 | VkStructureType sType |
| 3731 | const void* pNext |
| 3732 | VkImage image |
| 3733 | VkBuffer buffer |
| 3734 | } |
| 3735 | |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 3736 | @extension("VK_AMD_texture_gather_bias_lod") // 42 |
| 3737 | class VkTextureLODGatherFormatPropertiesAMD { |
| 3738 | VkStructureType sType |
| 3739 | void* pNext |
| 3740 | VkBool32 supportsTextureGatherLODBiasAMD |
| 3741 | } |
| 3742 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3743 | @extension("VK_KHX_multiview") // 54 |
| 3744 | class VkRenderPassMultiviewCreateInfoKHX { |
| 3745 | VkStructureType sType |
| 3746 | const void* pNext |
| 3747 | u32 subpassCount |
| 3748 | const u32* pViewMasks |
| 3749 | u32 dependencyCount |
| 3750 | const s32* pViewOffsets |
| 3751 | u32 correlationMaskCount |
| 3752 | const u32* pCorrelationMasks |
| 3753 | } |
| 3754 | |
| 3755 | @extension("VK_KHX_multiview") // 54 |
| 3756 | class VkPhysicalDeviceMultiviewFeaturesKHX { |
| 3757 | VkStructureType sType |
| 3758 | void* pNext |
| 3759 | VkBool32 multiview |
| 3760 | VkBool32 multiviewGeometryShader |
| 3761 | VkBool32 multiviewTessellationShader |
| 3762 | } |
| 3763 | |
| 3764 | @extension("VK_KHX_multiview") // 54 |
| 3765 | class VkPhysicalDeviceMultiviewPropertiesKHX { |
| 3766 | VkStructureType sType |
| 3767 | void* pNext |
| 3768 | u32 maxMultiviewViewCount |
| 3769 | u32 maxMultiviewInstanceIndex |
| 3770 | } |
| 3771 | |
| 3772 | @extension("VK_NV_external_memory_capabilities") // 56 |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 3773 | class VkExternalImageFormatPropertiesNV { |
| 3774 | VkImageFormatProperties imageFormatProperties |
| 3775 | VkExternalMemoryFeatureFlagsNV externalMemoryFeatures |
| 3776 | VkExternalMemoryHandleTypeFlagsNV exportFromImportedHandleTypes |
| 3777 | VkExternalMemoryHandleTypeFlagsNV compatibleHandleTypes |
| 3778 | } |
| 3779 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3780 | @extension("VK_NV_external_memory") // 57 |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 3781 | class VkExternalMemoryImageCreateInfoNV { |
| 3782 | VkStructureType sType |
| 3783 | const void* pNext |
| 3784 | VkExternalMemoryHandleTypeFlagsNV handleTypes |
| 3785 | } |
| 3786 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3787 | @extension("VK_NV_external_memory") // 57 |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 3788 | class VkExportMemoryAllocateInfoNV { |
| 3789 | VkStructureType sType |
| 3790 | const void* pNext |
| 3791 | VkExternalMemoryHandleTypeFlagsNV handleTypes |
| 3792 | } |
| 3793 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3794 | @extension("VK_NV_external_memory_win32") // 58 |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 3795 | class VkImportMemoryWin32HandleInfoNV { |
| 3796 | VkStructureType sType |
| 3797 | const void* pNext |
| 3798 | VkExternalMemoryHandleTypeFlagsNV handleType |
| 3799 | platform.HANDLE handle |
| 3800 | } |
| 3801 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3802 | @extension("VK_NV_external_memory_win32") // 58 |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 3803 | class VkExportMemoryWin32HandleInfoNV { |
| 3804 | VkStructureType sType |
| 3805 | const void* pNext |
| 3806 | const platform.SECURITY_ATTRIBUTES* pAttributes |
| 3807 | platform.DWORD dwAccess |
| 3808 | } |
| 3809 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3810 | @extension("VK_NV_win32_keyed_mutex") // 59 |
Jesse Hall | eb02c47 | 2017-02-24 15:13:45 -0800 | [diff] [blame] | 3811 | class VkWin32KeyedMutexAcquireReleaseInfoNV { |
| 3812 | VkStructureType sType |
| 3813 | const void* pNext |
| 3814 | u32 acquireCount |
| 3815 | const VkDeviceMemory* pAcquireSyncs |
| 3816 | const u64* pAcquireKeys |
| 3817 | const u32* pAcquireTimeoutMilliseconds |
| 3818 | u32 releaseCount |
| 3819 | const VkDeviceMemory* pReleaseSyncs |
| 3820 | const u64* pReleaseKeys |
| 3821 | } |
| 3822 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3823 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
Chris Forbes | 1194ede | 2016-12-30 16:29:25 +1300 | [diff] [blame] | 3824 | class VkPhysicalDeviceFeatures2KHR { |
| 3825 | VkStructureType sType |
| 3826 | void* pNext |
| 3827 | VkPhysicalDeviceFeatures features |
| 3828 | } |
| 3829 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3830 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
Chris Forbes | 1194ede | 2016-12-30 16:29:25 +1300 | [diff] [blame] | 3831 | class VkPhysicalDeviceProperties2KHR { |
| 3832 | VkStructureType sType |
| 3833 | void* pNext |
| 3834 | VkPhysicalDeviceProperties properties |
| 3835 | } |
| 3836 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3837 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
Chris Forbes | 1194ede | 2016-12-30 16:29:25 +1300 | [diff] [blame] | 3838 | class VkFormatProperties2KHR { |
| 3839 | VkStructureType sType |
| 3840 | void* pNext |
| 3841 | VkFormatProperties formatProperties |
| 3842 | } |
| 3843 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3844 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
Chris Forbes | 1194ede | 2016-12-30 16:29:25 +1300 | [diff] [blame] | 3845 | class VkImageFormatProperties2KHR { |
| 3846 | VkStructureType sType |
| 3847 | void* pNext |
| 3848 | VkImageFormatProperties imageFormatProperties |
| 3849 | } |
| 3850 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3851 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
Chris Forbes | 1194ede | 2016-12-30 16:29:25 +1300 | [diff] [blame] | 3852 | class VkPhysicalDeviceImageFormatInfo2KHR { |
| 3853 | VkStructureType sType |
| 3854 | const void* pNext |
| 3855 | VkFormat format |
| 3856 | VkImageType type |
| 3857 | VkImageTiling tiling |
| 3858 | VkImageUsageFlags usage |
| 3859 | VkImageCreateFlags flags |
| 3860 | } |
| 3861 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3862 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
Chris Forbes | 1194ede | 2016-12-30 16:29:25 +1300 | [diff] [blame] | 3863 | class VkQueueFamilyProperties2KHR { |
| 3864 | VkStructureType sType |
| 3865 | void* pNext |
| 3866 | VkQueueFamilyProperties queueFamilyProperties |
| 3867 | } |
| 3868 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3869 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
Chris Forbes | 1194ede | 2016-12-30 16:29:25 +1300 | [diff] [blame] | 3870 | class VkPhysicalDeviceMemoryProperties2KHR { |
| 3871 | VkStructureType sType |
| 3872 | void* pNext |
| 3873 | VkPhysicalDeviceMemoryProperties memoryProperties |
| 3874 | } |
| 3875 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3876 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
Chris Forbes | 1194ede | 2016-12-30 16:29:25 +1300 | [diff] [blame] | 3877 | class VkSparseImageFormatProperties2KHR { |
| 3878 | VkStructureType sType |
| 3879 | void* pNext |
| 3880 | VkSparseImageFormatProperties properties |
| 3881 | } |
| 3882 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3883 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
Chris Forbes | 1194ede | 2016-12-30 16:29:25 +1300 | [diff] [blame] | 3884 | class VkPhysicalDeviceSparseImageFormatInfo2KHR { |
| 3885 | VkStructureType sType |
| 3886 | const void* pNext |
| 3887 | VkFormat format |
| 3888 | VkImageType type |
| 3889 | VkSampleCountFlagBits samples |
| 3890 | VkImageUsageFlags usage |
| 3891 | VkImageTiling tiling |
| 3892 | } |
| 3893 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 3894 | @extension("VK_KHX_device_group") // 61 |
| 3895 | class VkMemoryAllocateFlagsInfoKHX { |
| 3896 | VkStructureType sType |
| 3897 | const void* pNext |
| 3898 | VkMemoryAllocateFlagsKHX flags |
| 3899 | u32 deviceMask |
| 3900 | } |
| 3901 | |
| 3902 | @extension("VK_KHX_device_group") // 61 |
| 3903 | class VkBindBufferMemoryInfoKHX { |
| 3904 | VkStructureType sType |
| 3905 | const void* pNext |
| 3906 | VkBuffer buffer |
| 3907 | VkDeviceMemory memory |
| 3908 | VkDeviceSize memoryOffset |
| 3909 | u32 deviceIndexCount |
| 3910 | const u32* pDeviceIndices |
| 3911 | } |
| 3912 | |
| 3913 | @extension("VK_KHX_device_group") // 61 |
| 3914 | class VkBindImageMemoryInfoKHX { |
| 3915 | VkStructureType sType |
| 3916 | const void* pNext |
| 3917 | VkImage image |
| 3918 | VkDeviceMemory memory |
| 3919 | VkDeviceSize memoryOffset |
| 3920 | u32 deviceIndexCount |
| 3921 | const u32* pDeviceIndices |
| 3922 | u32 SFRRectCount |
| 3923 | const VkRect2D* pSFRRects |
| 3924 | } |
| 3925 | |
| 3926 | @extension("VK_KHX_device_group") // 61 |
| 3927 | class VkDeviceGroupRenderPassBeginInfoKHX { |
| 3928 | VkStructureType sType |
| 3929 | const void* pNext |
| 3930 | u32 deviceMask |
| 3931 | u32 deviceRenderAreaCount |
| 3932 | const VkRect2D* pDeviceRenderAreas |
| 3933 | } |
| 3934 | |
| 3935 | @extension("VK_KHX_device_group") // 61 |
| 3936 | class VkDeviceGroupCommandBufferBeginInfoKHX { |
| 3937 | VkStructureType sType |
| 3938 | const void* pNext |
| 3939 | u32 deviceMask |
| 3940 | } |
| 3941 | |
| 3942 | @extension("VK_KHX_device_group") // 61 |
| 3943 | class VkDeviceGroupSubmitInfoKHX { |
| 3944 | VkStructureType sType |
| 3945 | const void* pNext |
| 3946 | u32 waitSemaphoreCount |
| 3947 | const u32* pWaitSemaphoreDeviceIndices |
| 3948 | u32 commandBufferCount |
| 3949 | const u32* pCommandBufferDeviceMasks |
| 3950 | u32 signalSemaphoreCount |
| 3951 | const u32* pSignalSemaphoreDeviceIndices |
| 3952 | } |
| 3953 | |
| 3954 | @extension("VK_KHX_device_group") // 61 |
| 3955 | class VkDeviceGroupBindSparseInfoKHX { |
| 3956 | VkStructureType sType |
| 3957 | const void* pNext |
| 3958 | u32 resourceDeviceIndex |
| 3959 | u32 memoryDeviceIndex |
| 3960 | } |
| 3961 | |
| 3962 | @extension("VK_KHX_device_group") // 61 |
| 3963 | class VkDeviceGroupPresentCapabilitiesKHX { |
| 3964 | VkStructureType sType |
| 3965 | const void* pNext |
| 3966 | u32[VK_MAX_DEVICE_GROUP_SIZE_KHX] presentMask |
| 3967 | VkDeviceGroupPresentModeFlagsKHX modes |
| 3968 | } |
| 3969 | |
| 3970 | @extension("VK_KHX_device_group") // 61 |
| 3971 | class VkImageSwapchainCreateInfoKHX { |
| 3972 | VkStructureType sType |
| 3973 | const void* pNext |
| 3974 | VkSwapchainKHR swapchain |
| 3975 | } |
| 3976 | |
| 3977 | @extension("VK_KHX_device_group") // 61 |
| 3978 | class VkBindImageMemorySwapchainInfoKHX { |
| 3979 | VkStructureType sType |
| 3980 | const void* pNext |
| 3981 | VkSwapchainKHR swapchain |
| 3982 | u32 imageIndex |
| 3983 | } |
| 3984 | |
| 3985 | @extension("VK_KHX_device_group") // 61 |
| 3986 | class VkAcquireNextImageInfoKHX { |
| 3987 | VkStructureType sType |
| 3988 | const void* pNext |
| 3989 | VkSwapchainKHR swapchain |
| 3990 | u64 timeout |
| 3991 | VkSemaphore semaphore |
| 3992 | VkFence fence |
| 3993 | u32 deviceMask |
| 3994 | } |
| 3995 | |
| 3996 | @extension("VK_KHX_device_group") // 61 |
| 3997 | class VkDeviceGroupPresentInfoKHX { |
| 3998 | VkStructureType sType |
| 3999 | const void* pNext |
| 4000 | u32 swapchainCount |
| 4001 | const u32* pDeviceMasks |
| 4002 | VkDeviceGroupPresentModeFlagBitsKHX mode |
| 4003 | } |
| 4004 | |
| 4005 | @extension("VK_KHX_device_group") // 61 |
| 4006 | class VkDeviceGroupSwapchainCreateInfoKHX { |
| 4007 | VkStructureType sType |
| 4008 | const void* pNext |
| 4009 | VkDeviceGroupPresentModeFlagsKHX modes |
| 4010 | } |
| 4011 | |
| 4012 | @extension("VK_EXT_validation_flags") // 62 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4013 | class VkValidationFlagsEXT { |
| 4014 | VkStructureType sType |
| 4015 | const void* pNext |
| 4016 | u32 disabledValidationCheckCount |
| 4017 | VkValidationCheckEXT* pDisabledValidationChecks |
| 4018 | } |
| 4019 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4020 | @extension("VK_NN_vi_surface") // 63 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 4021 | class VkViSurfaceCreateInfoNN { |
| 4022 | VkStructureType sType |
| 4023 | const void* pNext |
| 4024 | VkViSurfaceCreateFlagsNN flags |
| 4025 | void* window |
| 4026 | } |
| 4027 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4028 | @extension("VK_KHX_device_group_creation") // 71 |
| 4029 | class VkPhysicalDeviceGroupPropertiesKHX { |
| 4030 | VkStructureType sType |
Jesse Hall | f5ad48b | 2017-03-20 13:09:19 -0700 | [diff] [blame] | 4031 | void* pNext |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4032 | u32 physicalDeviceCount |
| 4033 | VkPhysicalDevice[VK_MAX_DEVICE_GROUP_SIZE_KHX] physicalDevices |
| 4034 | VkBool32 subsetAllocation |
| 4035 | } |
| 4036 | |
| 4037 | @extension("VK_KHX_device_group_creation") // 71 |
| 4038 | class VkDeviceGroupDeviceCreateInfoKHX { |
| 4039 | VkStructureType sType |
| 4040 | const void* pNext |
| 4041 | u32 physicalDeviceCount |
| 4042 | const VkPhysicalDevice* pPhysicalDevices |
| 4043 | } |
| 4044 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4045 | @extension("VK_KHR_external_memory_capabilities") // 72 |
| 4046 | class VkExternalMemoryPropertiesKHR { |
| 4047 | VkExternalMemoryFeatureFlagsKHR externalMemoryFeatures |
| 4048 | VkExternalMemoryHandleTypeFlagsKHR exportFromImportedHandleTypes |
| 4049 | VkExternalMemoryHandleTypeFlagsKHR compatibleHandleTypes |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4050 | } |
| 4051 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4052 | @extension("VK_KHR_external_memory_capabilities") // 72 |
| 4053 | class VkPhysicalDeviceExternalImageFormatInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4054 | VkStructureType sType |
| 4055 | const void* pNext |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4056 | VkExternalMemoryHandleTypeFlagBitsKHR handleType |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4057 | } |
| 4058 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4059 | @extension("VK_KHR_external_memory_capabilities") // 72 |
| 4060 | class VkExternalImageFormatPropertiesKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4061 | VkStructureType sType |
| 4062 | void* pNext |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4063 | VkExternalMemoryPropertiesKHR externalMemoryProperties |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4064 | } |
| 4065 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4066 | @extension("VK_KHR_external_memory_capabilities") // 72 |
| 4067 | class VkPhysicalDeviceExternalBufferInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4068 | VkStructureType sType |
| 4069 | const void* pNext |
| 4070 | VkBufferCreateFlags flags |
| 4071 | VkBufferUsageFlags usage |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4072 | VkExternalMemoryHandleTypeFlagBitsKHR handleType |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4073 | } |
| 4074 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4075 | @extension("VK_KHR_external_memory_capabilities") // 72 |
| 4076 | class VkExternalBufferPropertiesKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4077 | VkStructureType sType |
| 4078 | void* pNext |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4079 | VkExternalMemoryPropertiesKHR externalMemoryProperties |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4080 | } |
| 4081 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4082 | @extension("VK_KHR_external_memory_capabilities") // 72 |
| 4083 | class VkPhysicalDeviceIDPropertiesKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4084 | VkStructureType sType |
| 4085 | void* pNext |
| 4086 | u8[VK_UUID_SIZE] deviceUUID |
| 4087 | u8[VK_UUID_SIZE] driverUUID |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4088 | u8[VK_LUID_SIZE_KHR] deviceLUID |
| 4089 | u32 deviceNodeMask |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4090 | VkBool32 deviceLUIDValid |
| 4091 | } |
| 4092 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4093 | @extension("VK_KHR_external_memory") // 73 |
| 4094 | class VkExternalMemoryImageCreateInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4095 | VkStructureType sType |
| 4096 | const void* pNext |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4097 | VkExternalMemoryHandleTypeFlagsKHR handleTypes |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4098 | } |
| 4099 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4100 | @extension("VK_KHR_external_memory") // 73 |
| 4101 | class VkExternalMemoryBufferCreateInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4102 | VkStructureType sType |
| 4103 | const void* pNext |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4104 | VkExternalMemoryHandleTypeFlagsKHR handleTypes |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4105 | } |
| 4106 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4107 | @extension("VK_KHR_external_memory") // 73 |
| 4108 | class VkExportMemoryAllocateInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4109 | VkStructureType sType |
| 4110 | const void* pNext |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4111 | VkExternalMemoryHandleTypeFlagsKHR handleTypes |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4112 | } |
| 4113 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4114 | @extension("VK_KHR_external_memory_win32") // 74 |
| 4115 | class VkImportMemoryWin32HandleInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4116 | VkStructureType sType |
| 4117 | const void* pNext |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4118 | VkExternalMemoryHandleTypeFlagBitsKHR handleType |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4119 | platform.HANDLE handle |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4120 | platform.LPCWSTR name |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4121 | } |
| 4122 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4123 | @extension("VK_KHR_external_memory_win32") // 74 |
| 4124 | class VkExportMemoryWin32HandleInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4125 | VkStructureType sType |
| 4126 | const void* pNext |
| 4127 | const platform.SECURITY_ATTRIBUTES* pAttributes |
| 4128 | platform.DWORD dwAccess |
| 4129 | platform.LPCWSTR name |
| 4130 | } |
| 4131 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4132 | @extension("VK_KHR_external_memory_win32") // 74 |
| 4133 | class VkMemoryWin32HandlePropertiesKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4134 | VkStructureType sType |
| 4135 | void* pNext |
| 4136 | u32 memoryTypeBits |
| 4137 | } |
| 4138 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4139 | @extension("VK_KHR_external_memory_win32") // 74 |
| 4140 | class VkMemoryGetWin32HandleInfoKHR { |
| 4141 | VkStructureType sType |
| 4142 | void* pNext |
| 4143 | VkDeviceMemory memory |
| 4144 | VkExternalMemoryHandleTypeFlagBitsKHR handleType |
| 4145 | } |
| 4146 | |
| 4147 | @extension("VK_KHR_external_memory_fd") // 75 |
| 4148 | class VkImportMemoryFdInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4149 | VkStructureType sType |
| 4150 | const void* pNext |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4151 | VkExternalMemoryHandleTypeFlagBitsKHR handleType |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4152 | int fd |
| 4153 | } |
| 4154 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4155 | @extension("VK_KHR_external_memory_fd") // 75 |
| 4156 | class VkMemoryFdPropertiesKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4157 | VkStructureType sType |
| 4158 | void* pNext |
| 4159 | u32 memoryTypeBits |
| 4160 | } |
| 4161 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4162 | @extension("VK_KHR_external_memory_fd") // 75 |
| 4163 | class VkMemoryGetFdInfoKHR { |
| 4164 | VkStructureType sType |
| 4165 | void* pNext |
| 4166 | VkDeviceMemory memory |
| 4167 | VkExternalMemoryHandleTypeFlagBitsKHR handleType |
| 4168 | } |
| 4169 | |
| 4170 | @extension("VK_KHR_win32_keyed_mutex") // 76 |
| 4171 | class VkWin32KeyedMutexAcquireReleaseInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4172 | VkStructureType sType |
| 4173 | const void* pNext |
| 4174 | u32 acquireCount |
| 4175 | const VkDeviceMemory* pAcquireSyncs |
| 4176 | const u64* pAcquireKeys |
| 4177 | const u32* pAcquireTimeouts |
| 4178 | u32 releaseCount |
| 4179 | const VkDeviceMemory* pReleaseSyncs |
| 4180 | const u64* pReleaseKeys |
| 4181 | } |
| 4182 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4183 | @extension("VK_KHR_external_semaphore_capabilities") // 77 |
| 4184 | class VkPhysicalDeviceExternalSemaphoreInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4185 | VkStructureType sType |
| 4186 | const void* pNext |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4187 | VkExternalSemaphoreHandleTypeFlagBitsKHR handleType |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4188 | } |
| 4189 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4190 | @extension("VK_KHR_external_semaphore_capabilities") // 77 |
| 4191 | class VkExternalSemaphorePropertiesKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4192 | VkStructureType sType |
| 4193 | void* pNext |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4194 | VkExternalSemaphoreHandleTypeFlagsKHR exportFromImportedHandleTypes |
| 4195 | VkExternalSemaphoreHandleTypeFlagsKHR compatibleHandleTypes |
| 4196 | VkExternalSemaphoreFeatureFlagsKHR externalSemaphoreFeatures |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4197 | } |
| 4198 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4199 | @extension("VK_KHR_external_semaphore") // 78 |
| 4200 | class VkExportSemaphoreCreateInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4201 | VkStructureType sType |
| 4202 | const void* pNext |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4203 | VkExternalSemaphoreHandleTypeFlagsKHR handleTypes |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4204 | } |
| 4205 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4206 | @extension("VK_KHR_external_semaphore_win32") // 79 |
| 4207 | class VkImportSemaphoreWin32HandleInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4208 | VkStructureType sType |
| 4209 | const void* pNext |
| 4210 | VkSemaphore semaphore |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4211 | VkSemaphoreImportFlagsKHR flags |
| 4212 | VkExternalSemaphoreHandleTypeFlagsKHR handleType |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4213 | platform.HANDLE handle |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4214 | platform.LPCWSTR name |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4215 | } |
| 4216 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4217 | @extension("VK_KHR_external_semaphore_win32") // 79 |
| 4218 | class VkExportSemaphoreWin32HandleInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4219 | VkStructureType sType |
| 4220 | const void* pNext |
| 4221 | const platform.SECURITY_ATTRIBUTES* pAttributes |
| 4222 | platform.DWORD dwAccess |
| 4223 | platform.LPCWSTR name |
| 4224 | } |
| 4225 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4226 | @extension("VK_KHR_external_semaphore_win32") // 79 |
| 4227 | class VkD3D12FenceSubmitInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4228 | VkStructureType sType |
| 4229 | const void* pNext |
| 4230 | u32 waitSemaphoreValuesCount |
| 4231 | const u64* pWaitSemaphoreValues |
| 4232 | u32 signalSemaphoreValuesCount |
| 4233 | const u64* pSignalSemaphoreValues |
| 4234 | } |
| 4235 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4236 | @extension("VK_KHR_external_semaphore_win32") // 79 |
| 4237 | class VkSemaphoreGetWin32HandleInfoKHR { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4238 | VkStructureType sType |
| 4239 | const void* pNext |
| 4240 | VkSemaphore semaphore |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4241 | VkExternalSemaphoreHandleTypeFlagBitsKHR handleType |
| 4242 | } |
| 4243 | |
| 4244 | @extension("VK_KHR_external_semaphore_fd") // 80 |
| 4245 | class VkImportSemaphoreFdInfoKHR { |
| 4246 | VkStructureType sType |
| 4247 | const void* pNext |
| 4248 | VkSemaphore semaphore |
| 4249 | VkSemaphoreImportFlagsKHR flags |
| 4250 | VkExternalSemaphoreHandleTypeFlagBitsKHR handleType |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4251 | s32 fd |
| 4252 | } |
| 4253 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4254 | @extension("VK_KHR_external_semaphore_fd") // 80 |
| 4255 | class VkSemaphoreGetFdInfoKHR { |
| 4256 | VkStructureType sType |
| 4257 | const void* pNext |
| 4258 | VkSemaphore semaphore |
| 4259 | VkExternalSemaphoreHandleTypeFlagBitsKHR handleType |
| 4260 | } |
| 4261 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4262 | @extension("VK_KHR_push_descriptor") // 81 |
| 4263 | class VkPhysicalDevicePushDescriptorPropertiesKHR { |
| 4264 | VkStructureType sType |
| 4265 | void* pNext |
| 4266 | u32 maxPushDescriptors |
| 4267 | } |
| 4268 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4269 | @extension("VK_KHR_16bit_storage") // 84 |
| 4270 | class VkPhysicalDevice16BitStorageFeaturesKHR { |
| 4271 | VkStructureType sType |
| 4272 | void* pNext |
| 4273 | VkBool32 storageBuffer16BitAccess |
| 4274 | VkBool32 uniformAndStorageBuffer16BitAccess |
| 4275 | VkBool32 storagePushConstant16 |
| 4276 | VkBool32 storageInputOutput16 |
| 4277 | } |
| 4278 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4279 | @extension("VK_KHR_incremental_present") // 85 |
| 4280 | class VkRectLayerKHR { |
| 4281 | VkOffset2D offset |
| 4282 | VkExtent2D extent |
| 4283 | u32 layer |
| 4284 | } |
| 4285 | |
| 4286 | @extension("VK_KHR_incremental_present") // 85 |
| 4287 | class VkPresentRegionKHR { |
| 4288 | u32 rectangleCount |
| 4289 | const VkRectLayerKHR* pRectangles |
| 4290 | } |
| 4291 | |
| 4292 | @extension("VK_KHR_incremental_present") // 85 |
| 4293 | class VkPresentRegionsKHR { |
| 4294 | VkStructureType sType |
| 4295 | const void* pNext |
| 4296 | u32 swapchainCount |
| 4297 | const VkPresentRegionKHR* pRegions |
| 4298 | } |
| 4299 | |
| 4300 | @extension("VK_KHR_descriptor_update_template") // 86 |
| 4301 | class VkDescriptorUpdateTemplateEntryKHR { |
| 4302 | u32 dstBinding |
| 4303 | u32 dstArrayElement |
| 4304 | u32 descriptorCount |
| 4305 | VkDescriptorType descriptorType |
| 4306 | platform.size_t offset |
| 4307 | platform.size_t stride |
| 4308 | } |
| 4309 | |
| 4310 | @extension("VK_KHR_descriptor_update_template") // 86 |
| 4311 | class VkDescriptorUpdateTemplateCreateInfoKHR { |
| 4312 | VkStructureType sType |
| 4313 | void* pNext |
| 4314 | VkDescriptorUpdateTemplateCreateFlagsKHR flags |
| 4315 | u32 descriptorUpdateEntryCount |
| 4316 | const VkDescriptorUpdateTemplateEntryKHR* pDescriptorUpdateEntries |
| 4317 | VkDescriptorUpdateTemplateTypeKHR templateType |
| 4318 | VkDescriptorSetLayout descriptorSetLayout |
| 4319 | VkPipelineBindPoint pipelineBindPoint |
| 4320 | VkPipelineLayout pipelineLayout |
| 4321 | u32 set |
| 4322 | } |
| 4323 | |
| 4324 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4325 | class VkDeviceGeneratedCommandsFeaturesNVX { |
| 4326 | VkStructureType sType |
| 4327 | const void* pNext |
| 4328 | VkBool32 computeBindingPointSupport |
| 4329 | } |
| 4330 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4331 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4332 | class VkDeviceGeneratedCommandsLimitsNVX { |
| 4333 | VkStructureType sType |
| 4334 | const void* pNext |
| 4335 | u32 maxIndirectCommandsLayoutTokenCount |
| 4336 | u32 maxObjectEntryCounts |
| 4337 | u32 minSequenceCountBufferOffsetAlignment |
| 4338 | u32 minSequenceIndexBufferOffsetAlignment |
| 4339 | u32 minCommandsTokenBufferOffsetAlignment |
| 4340 | } |
| 4341 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4342 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4343 | class VkIndirectCommandsTokenNVX { |
| 4344 | VkIndirectCommandsTokenTypeNVX tokenType |
| 4345 | VkBuffer buffer |
| 4346 | VkDeviceSize offset |
| 4347 | } |
| 4348 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4349 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4350 | class VkIndirectCommandsLayoutTokenNVX { |
| 4351 | VkIndirectCommandsTokenTypeNVX tokenType |
| 4352 | u32 bindingUnit |
| 4353 | u32 dynamicCount |
| 4354 | u32 divisor |
| 4355 | } |
| 4356 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4357 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4358 | class VkIndirectCommandsLayoutCreateInfoNVX { |
| 4359 | VkStructureType sType |
| 4360 | const void* pNext |
| 4361 | VkPipelineBindPoint pipelineBindPoint |
| 4362 | VkIndirectCommandsLayoutUsageFlagsNVX flags |
| 4363 | u32 tokenCount |
| 4364 | const VkIndirectCommandsLayoutTokenNVX* pTokens |
| 4365 | } |
| 4366 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4367 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4368 | class VkCmdProcessCommandsInfoNVX { |
| 4369 | VkStructureType sType |
| 4370 | const void* pNext |
| 4371 | VkObjectTableNVX objectTable |
| 4372 | VkIndirectCommandsLayoutNVX indirectCommandsLayout |
| 4373 | u32 indirectCommandsTokenCount |
| 4374 | const VkIndirectCommandsTokenNVX* pIndirectCommandsTokens |
| 4375 | u32 maxSequencesCount |
| 4376 | VkCommandBuffer targetCommandBuffer |
| 4377 | VkBuffer sequencesCountBuffer |
| 4378 | VkDeviceSize sequencesCountOffset |
| 4379 | VkBuffer sequencesIndexBuffer |
| 4380 | VkDeviceSize sequencesIndexOffset |
| 4381 | } |
| 4382 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4383 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4384 | class VkCmdReserveSpaceForCommandsInfoNVX { |
| 4385 | VkStructureType sType |
| 4386 | const void* pNext |
| 4387 | VkObjectTableNVX objectTable |
| 4388 | VkIndirectCommandsLayoutNVX indirectCommandsLayout |
| 4389 | u32 maxSequencesCount |
| 4390 | } |
| 4391 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4392 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4393 | class VkObjectTableCreateInfoNVX { |
| 4394 | VkStructureType sType |
| 4395 | const void* pNext |
| 4396 | u32 objectCount |
| 4397 | const VkObjectEntryTypeNVX* pObjectEntryTypes |
| 4398 | const u32* pObjectEntryCounts |
| 4399 | const VkObjectEntryUsageFlagsNVX* pObjectEntryUsageFlags |
| 4400 | u32 maxUniformBuffersPerDescriptor |
| 4401 | u32 maxStorageBuffersPerDescriptor |
| 4402 | u32 maxStorageImagesPerDescriptor |
| 4403 | u32 maxSampledImagesPerDescriptor |
| 4404 | u32 maxPipelineLayouts |
| 4405 | } |
| 4406 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4407 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4408 | class VkObjectTableEntryNVX { |
| 4409 | VkObjectEntryTypeNVX type |
| 4410 | VkObjectEntryUsageFlagsNVX flags |
| 4411 | } |
| 4412 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4413 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4414 | class VkObjectTablePipelineEntryNVX { |
| 4415 | VkObjectEntryTypeNVX type |
| 4416 | VkObjectEntryUsageFlagsNVX flags |
| 4417 | VkPipeline pipeline |
| 4418 | } |
| 4419 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4420 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4421 | class VkObjectTableDescriptorSetEntryNVX { |
| 4422 | VkObjectEntryTypeNVX type |
| 4423 | VkObjectEntryUsageFlagsNVX flags |
| 4424 | VkPipelineLayout pipelineLayout |
| 4425 | VkDescriptorSet descriptorSet |
| 4426 | } |
| 4427 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4428 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4429 | class VkObjectTableVertexBufferEntryNVX { |
| 4430 | VkObjectEntryTypeNVX type |
| 4431 | VkObjectEntryUsageFlagsNVX flags |
| 4432 | VkBuffer buffer |
| 4433 | } |
| 4434 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4435 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4436 | class VkObjectTableIndexBufferEntryNVX { |
| 4437 | VkObjectEntryTypeNVX type |
| 4438 | VkObjectEntryUsageFlagsNVX flags |
| 4439 | VkBuffer buffer |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 4440 | VkIndexType indexType |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4441 | } |
| 4442 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4443 | @extension("VK_NVX_device_generated_commands") // 87 |
Chris Forbes | 289cb79 | 2016-12-30 15:03:55 +1300 | [diff] [blame] | 4444 | class VkObjectTablePushConstantEntryNVX { |
| 4445 | VkObjectEntryTypeNVX type |
| 4446 | VkObjectEntryUsageFlagsNVX flags |
| 4447 | VkPipelineLayout pipelineLayout |
| 4448 | VkShaderStageFlags stageFlags |
| 4449 | } |
| 4450 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4451 | @extension("VK_NV_clip_space_w_scaling") // 88 |
| 4452 | class VkViewportWScalingNV { |
| 4453 | f32 xcoeff |
| 4454 | f32 ycoeff |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 4455 | } |
| 4456 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4457 | @extension("VK_NV_clip_space_w_scaling") // 88 |
| 4458 | class VkPipelineViewportWScalingStateCreateInfoNV { |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 4459 | VkStructureType sType |
| 4460 | const void* pNext |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4461 | VkBool32 viewportWScalingEnable |
| 4462 | u32 viewportCount |
| 4463 | const VkViewportWScalingNV* pViewportWScalings |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 4464 | } |
| 4465 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4466 | @extension("VK_EXT_display_surface_counter") // 91 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 4467 | class VkSurfaceCapabilities2EXT { |
| 4468 | VkStructureType sType |
| 4469 | void* pNext |
| 4470 | u32 minImageCount |
| 4471 | u32 maxImageCount |
| 4472 | VkExtent2D currentExtent |
| 4473 | VkExtent2D minImageExtent |
| 4474 | VkExtent2D maxImageExtent |
| 4475 | u32 maxImageArrayLayers |
| 4476 | VkSurfaceTransformFlagsKHR supportedTransforms |
| 4477 | VkSurfaceTransformFlagBitsKHR currentTransform |
| 4478 | VkCompositeAlphaFlagsKHR supportedCompositeAlpha |
| 4479 | VkImageUsageFlags supportedUsageFlags |
| 4480 | VkSurfaceCounterFlagsEXT supportedSurfaceCounters |
| 4481 | } |
| 4482 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4483 | @extension("VK_EXT_display_control") // 92 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 4484 | class VkDisplayPowerInfoEXT { |
| 4485 | VkStructureType sType |
| 4486 | const void* pNext |
| 4487 | VkDisplayPowerStateEXT powerState |
| 4488 | } |
| 4489 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4490 | @extension("VK_EXT_display_control") // 92 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 4491 | class VkDeviceEventInfoEXT { |
| 4492 | VkStructureType sType |
| 4493 | const void* pNext |
| 4494 | VkDeviceEventTypeEXT deviceEvent |
| 4495 | } |
| 4496 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4497 | @extension("VK_EXT_display_control") // 92 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 4498 | class VkDisplayEventInfoEXT { |
| 4499 | VkStructureType sType |
| 4500 | const void* pNext |
| 4501 | VkDisplayEventTypeEXT displayEvent |
| 4502 | } |
| 4503 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4504 | @extension("VK_EXT_display_control") // 92 |
Jesse Hall | 77ad05b | 2017-03-10 22:02:20 -0800 | [diff] [blame] | 4505 | class VkSwapchainCounterCreateInfoEXT { |
| 4506 | VkStructureType sType |
| 4507 | const void* pNext |
| 4508 | VkSurfaceCounterFlagsEXT surfaceCounters |
| 4509 | } |
| 4510 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4511 | @extension("VK_GOOGLE_display_timing") // 93 |
| 4512 | class VkRefreshCycleDurationGOOGLE { |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 4513 | u64 refreshDuration |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4514 | } |
| 4515 | |
| 4516 | @extension("VK_GOOGLE_display_timing") // 93 |
| 4517 | class VkPastPresentationTimingGOOGLE { |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 4518 | u32 presentID |
| 4519 | u64 desiredPresentTime |
| 4520 | u64 actualPresentTime |
| 4521 | u64 earliestPresentTime |
| 4522 | u64 presentMargin |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4523 | } |
| 4524 | |
| 4525 | @extension("VK_GOOGLE_display_timing") // 93 |
| 4526 | class VkPresentTimeGOOGLE { |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 4527 | u32 presentID |
| 4528 | u64 desiredPresentTime |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4529 | } |
| 4530 | |
| 4531 | @extension("VK_GOOGLE_display_timing") // 93 |
| 4532 | class VkPresentTimesInfoGOOGLE { |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 4533 | VkStructureType sType |
| 4534 | const void* pNext |
| 4535 | u32 swapchainCount |
| 4536 | const VkPresentTimeGOOGLE* pTimes |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4537 | } |
| 4538 | |
| 4539 | @extension("VK_NVX_multiview_per_view_attributes") // 98 |
| 4540 | class VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX { |
| 4541 | VkStructureType sType |
| 4542 | void* pNext |
| 4543 | VkBool32 perViewPositionAllComponents |
| 4544 | } |
| 4545 | |
| 4546 | @extension("VK_NV_viewport_swizzle") // 99 |
| 4547 | class VkViewportSwizzleNV { |
| 4548 | VkViewportCoordinateSwizzleNV x |
| 4549 | VkViewportCoordinateSwizzleNV y |
| 4550 | VkViewportCoordinateSwizzleNV z |
| 4551 | VkViewportCoordinateSwizzleNV w |
| 4552 | } |
| 4553 | |
| 4554 | @extension("VK_NV_viewport_swizzle") // 99 |
| 4555 | class VkPipelineViewportSwizzleStateCreateInfoNV { |
| 4556 | VkStructureType sType |
| 4557 | const void* pNext |
| 4558 | VkPipelineViewportSwizzleStateCreateFlagsNV flags |
| 4559 | u32 viewportCount |
| 4560 | const VkViewportSwizzleNV* pViewportSwizzles |
| 4561 | } |
| 4562 | |
| 4563 | @extension("VK_EXT_discard_rectangles") // 100 |
| 4564 | class VkPhysicalDeviceDiscardRectanglePropertiesEXT { |
| 4565 | VkStructureType sType |
Jesse Hall | f5ad48b | 2017-03-20 13:09:19 -0700 | [diff] [blame] | 4566 | void* pNext |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4567 | u32 maxDiscardRectangles |
| 4568 | } |
| 4569 | |
| 4570 | @extension("VK_EXT_discard_rectangles") // 100 |
| 4571 | class VkPipelineDiscardRectangleStateCreateInfoEXT { |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 4572 | VkStructureType sType |
| 4573 | const void* pNext |
| 4574 | VkPipelineDiscardRectangleStateCreateFlagsEXT flags |
| 4575 | VkDiscardRectangleModeEXT discardRectangleMode |
| 4576 | u32 discardRectangleCount |
| 4577 | const VkRect2D* pDiscardRectangles |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4578 | } |
| 4579 | |
| 4580 | @extension("VK_EXT_hdr_metadata") // 106 |
Courtney Goeltzenleuchter | d634c48 | 2017-01-05 15:55:31 -0700 | [diff] [blame] | 4581 | class VkXYColorEXT { |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 4582 | f32 x |
| 4583 | f32 y |
Courtney Goeltzenleuchter | d634c48 | 2017-01-05 15:55:31 -0700 | [diff] [blame] | 4584 | } |
| 4585 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4586 | @extension("VK_EXT_hdr_metadata") // 106 |
Courtney Goeltzenleuchter | d634c48 | 2017-01-05 15:55:31 -0700 | [diff] [blame] | 4587 | class VkHdrMetadataEXT { |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 4588 | VkStructureType sType |
| 4589 | const void* pNext |
| 4590 | VkXYColorEXT displayPrimaryRed |
| 4591 | VkXYColorEXT displayPrimaryGreen |
| 4592 | VkXYColorEXT displayPrimaryBlue |
| 4593 | VkXYColorEXT whitePoint |
| 4594 | f32 maxLuminance |
| 4595 | f32 minLuminance |
| 4596 | f32 maxContentLightLevel |
| 4597 | f32 maxFrameAverageLightLevel |
Courtney Goeltzenleuchter | d634c48 | 2017-01-05 15:55:31 -0700 | [diff] [blame] | 4598 | } |
| 4599 | |
Jesse Hall | 05556b1 | 2017-05-18 17:40:25 -0700 | [diff] [blame] | 4600 | @extension("VK_KHR_shared_presentable_image") // 112 |
Chris Forbes | e2d3ee1 | 2017-03-16 16:10:15 +1300 | [diff] [blame] | 4601 | class VkSharedPresentSurfaceCapabilitiesKHR { |
| 4602 | VkStructureType sType |
| 4603 | const void* pNext |
| 4604 | VkImageUsageFlags sharedPresentSupportedUsageFlags |
| 4605 | } |
| 4606 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4607 | @extension("VK_KHR_external_fence_capabilities") // 113 |
| 4608 | class VkPhysicalDeviceExternalFenceInfoKHR { |
| 4609 | VkStructureType sType |
| 4610 | const void* pNext |
| 4611 | VkExternalFenceHandleTypeFlagBitsKHR handleType |
| 4612 | } |
| 4613 | |
| 4614 | @extension("VK_KHR_external_fence_capabilities") // 113 |
| 4615 | class VkExternalFencePropertiesKHR { |
| 4616 | VkStructureType sType |
| 4617 | void* pNext |
| 4618 | VkExternalFenceHandleTypeFlagsKHR exportFromImportedHandleTypes |
| 4619 | VkExternalFenceHandleTypeFlagsKHR compatibleHandleTypes |
| 4620 | VkExternalFenceFeatureFlagsKHR externalFenceFeatures |
| 4621 | } |
| 4622 | |
| 4623 | @extension("VK_KHR_external_fence") // 114 |
| 4624 | class VkExportFenceCreateInfoKHR { |
| 4625 | VkStructureType sType |
| 4626 | const void* pNext |
| 4627 | VkExternalFenceHandleTypeFlagsKHR handleTypes |
| 4628 | } |
| 4629 | |
| 4630 | @extension("VK_KHR_external_fence_win32") // 115 |
| 4631 | class VkImportFenceWin32HandleInfoKHR { |
| 4632 | VkStructureType sType |
| 4633 | const void* pNext |
| 4634 | VkFence fence |
| 4635 | VkFenceImportFlagsKHR flags |
| 4636 | VkExternalFenceHandleTypeFlagBitsKHR handleType |
| 4637 | platform.HANDLE handle |
| 4638 | platform.LPCWSTR name |
| 4639 | } |
| 4640 | |
| 4641 | @extension("VK_KHR_external_fence_win32") // 115 |
| 4642 | class VkExportFenceWin32HandleInfoKHR { |
| 4643 | VkStructureType sType |
| 4644 | const void* pNext |
| 4645 | const platform.SECURITY_ATTRIBUTES* pAttributes |
| 4646 | platform.DWORD dwAccess |
| 4647 | platform.LPCWSTR name |
| 4648 | } |
| 4649 | |
| 4650 | @extension("VK_KHR_external_fence_win32") // 115 |
| 4651 | class VkFenceGetWin32HandleInfoKHR { |
| 4652 | VkStructureType sType |
| 4653 | const void* pNext |
| 4654 | VkFence fence |
| 4655 | VkExternalFenceHandleTypeFlagBitsKHR handleType |
| 4656 | } |
| 4657 | |
| 4658 | @extension("VK_KHR_external_fence_fd") // 116 |
| 4659 | class VkImportFenceFdInfoKHR { |
| 4660 | VkStructureType sType |
| 4661 | const void* pNext |
| 4662 | VkFence fence |
| 4663 | VkFenceImportFlagsKHR flags |
| 4664 | VkExternalFenceHandleTypeFlagBitsKHR handleType |
| 4665 | int fd |
| 4666 | } |
| 4667 | |
| 4668 | @extension("VK_KHR_external_fence_fd") // 116 |
| 4669 | class VkFenceGetFdInfoKHR { |
| 4670 | VkStructureType sType |
| 4671 | const void* pNext |
| 4672 | VkFence fence |
| 4673 | VkExternalFenceHandleTypeFlagBitsKHR handleType |
| 4674 | } |
| 4675 | |
Jesse Hall | 05556b1 | 2017-05-18 17:40:25 -0700 | [diff] [blame] | 4676 | @extension("VK_KHR_get_surface_capabilities2") // 120 |
Chris Forbes | e2d3ee1 | 2017-03-16 16:10:15 +1300 | [diff] [blame] | 4677 | class VkPhysicalDeviceSurfaceInfo2KHR { |
| 4678 | VkStructureType sType |
| 4679 | const void* pNext |
| 4680 | VkSurfaceKHR surface |
| 4681 | } |
| 4682 | |
Jesse Hall | 05556b1 | 2017-05-18 17:40:25 -0700 | [diff] [blame] | 4683 | @extension("VK_KHR_get_surface_capabilities2") // 120 |
Chris Forbes | e2d3ee1 | 2017-03-16 16:10:15 +1300 | [diff] [blame] | 4684 | class VkSurfaceCapabilities2KHR { |
| 4685 | VkStructureType sType |
| 4686 | void* pNext |
| 4687 | VkSurfaceCapabilitiesKHR surfaceCapabilities |
| 4688 | } |
| 4689 | |
Jesse Hall | 05556b1 | 2017-05-18 17:40:25 -0700 | [diff] [blame] | 4690 | @extension("VK_KHR_get_surface_capabilities2") // 120 |
Chris Forbes | e2d3ee1 | 2017-03-16 16:10:15 +1300 | [diff] [blame] | 4691 | class VkSurfaceFormat2KHR { |
| 4692 | VkStructureType sType |
| 4693 | void* pNext |
| 4694 | VkSurfaceFormatKHR surfaceFormat |
| 4695 | } |
| 4696 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4697 | @extension("VK_KHR_variable_pointers") // 121 |
| 4698 | class VkPhysicalDeviceVariablePointerFeaturesKHR { |
| 4699 | VkStructureType sType |
| 4700 | void* pNext |
| 4701 | VkBool32 variablePointersStorageBuffer |
| 4702 | VkBool32 variablePointers |
| 4703 | } |
| 4704 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 4705 | @extension("VK_MVK_ios_surface") // 123 |
| 4706 | class VkIOSSurfaceCreateInfoMVK { |
| 4707 | VkStructureType sType |
| 4708 | const void* pNext |
| 4709 | VkIOSSurfaceCreateFlagsMVK flags |
| 4710 | const void* pView |
| 4711 | } |
| 4712 | |
| 4713 | @extension("VK_MVK_macos_surface") // 124 |
| 4714 | class VkMacOSSurfaceCreateInfoMVK { |
| 4715 | VkStructureType sType |
| 4716 | const void* pNext |
| 4717 | VkMacOSSurfaceCreateFlagsMVK flags |
| 4718 | const void* pView |
| 4719 | } |
| 4720 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4721 | @extension("VK_KHR_dedicated_allocation") // 128 |
| 4722 | class VkMemoryDedicatedRequirementsKHR { |
| 4723 | VkStructureType sType |
| 4724 | void* pNext |
| 4725 | VkBool32 prefersDedicatedAllocation |
| 4726 | VkBool32 requiresDedicatedAllocation |
| 4727 | } |
| 4728 | |
| 4729 | @extension("VK_KHR_dedicated_allocation") // 128 |
| 4730 | class VkMemoryDedicatedAllocateInfoKHR { |
| 4731 | VkStructureType sType |
| 4732 | const void* pNext |
| 4733 | VkImage image |
| 4734 | VkBuffer buffer |
| 4735 | } |
| 4736 | |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 4737 | @extension("VK_EXT_sampler_filter_minmax") // 131 |
| 4738 | class VkSamplerReductionModeCreateInfoEXT { |
| 4739 | VkStructureType sType |
| 4740 | const void* pNext |
| 4741 | VkSamplerReductionModeEXT reductionMode |
| 4742 | } |
| 4743 | |
| 4744 | @extension("VK_EXT_sampler_filter_minmax") // 131 |
| 4745 | class VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT { |
| 4746 | VkStructureType sType |
| 4747 | void* pNext |
| 4748 | VkBool32 filterMinmaxSingleComponentFormats |
| 4749 | VkBool32 filterMinmaxImageComponentMapping |
| 4750 | } |
| 4751 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 4752 | @extension("VK_KHR_get_memory_requirements2") // 147 |
| 4753 | class VkBufferMemoryRequirementsInfo2KHR { |
| 4754 | VkStructureType sType |
| 4755 | const void* pNext |
| 4756 | VkBuffer buffer |
| 4757 | } |
| 4758 | |
| 4759 | @extension("VK_KHR_get_memory_requirements2") // 147 |
| 4760 | class VkImageMemoryRequirementsInfo2KHR { |
| 4761 | VkStructureType sType |
| 4762 | const void* pNext |
| 4763 | VkImage image |
| 4764 | } |
| 4765 | |
| 4766 | @extension("VK_KHR_get_memory_requirements2") // 147 |
| 4767 | class VkImageSparseMemoryRequirementsInfo2KHR { |
| 4768 | VkStructureType sType |
| 4769 | const void* pNext |
| 4770 | VkImage image |
| 4771 | } |
| 4772 | |
| 4773 | @extension("VK_KHR_get_memory_requirements2") // 147 |
| 4774 | class VkMemoryRequirements2KHR { |
| 4775 | VkStructureType sType |
| 4776 | void* pNext |
| 4777 | VkMemoryRequirements memoryRequirements |
| 4778 | } |
| 4779 | |
| 4780 | @extension("VK_KHR_get_memory_requirements2") // 147 |
| 4781 | class VkSparseImageMemoryRequirements2KHR { |
| 4782 | VkStructureType sType |
| 4783 | void* pNext |
| 4784 | VkSparseImageMemoryRequirements memoryRequirements |
| 4785 | } |
| 4786 | |
Jesse Hall | 7ba0ac7 | 2017-07-07 17:13:23 -0700 | [diff] [blame] | 4787 | @extension("VK_EXT_blend_operation_advanced") // 149 |
| 4788 | class VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT { |
| 4789 | VkStructureType sType |
| 4790 | void* pNext |
| 4791 | VkBool32 advancedBlendCoherentOperations |
| 4792 | } |
| 4793 | |
| 4794 | @extension("VK_EXT_blend_operation_advanced") // 149 |
| 4795 | class VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT { |
| 4796 | VkStructureType sType |
| 4797 | void* pNext |
| 4798 | u32 advancedBlendMaxColorAttachments |
| 4799 | VkBool32 advancedBlendIndependentBlend |
| 4800 | VkBool32 advancedBlendNonPremultipliedSrcColor |
| 4801 | VkBool32 advancedBlendNonPremultipliedDstColor |
| 4802 | VkBool32 advancedBlendCorrelatedOverlap |
| 4803 | VkBool32 advancedBlendAllOperations |
| 4804 | } |
| 4805 | |
| 4806 | @extension("VK_EXT_blend_operation_advanced") // 149 |
| 4807 | class VkPipelineColorBlendAdvancedStateCreateInfoEXT { |
| 4808 | VkStructureType sType |
| 4809 | const void* pNext |
| 4810 | VkBool32 srcPremultiplied |
| 4811 | VkBool32 dstPremultiplied |
| 4812 | VkBlendOverlapEXT blendOverlap |
| 4813 | } |
| 4814 | |
| 4815 | @extension("VK_NV_fragment_coverage_to_color") // 150 |
| 4816 | class VkPipelineCoverageToColorStateCreateInfoNV { |
| 4817 | VkStructureType sType |
| 4818 | const void* pNext |
| 4819 | VkPipelineCoverageToColorStateCreateFlagsNV flags |
| 4820 | VkBool32 coverageToColorEnable |
| 4821 | u32 coverageToColorLocation |
| 4822 | } |
| 4823 | |
| 4824 | @extension("VK_NV_framebuffer_mixed_samples") // 153 |
| 4825 | class VkPipelineCoverageModulationStateCreateInfoNV { |
| 4826 | VkStructureType sType |
| 4827 | const void* pNext |
| 4828 | VkPipelineCoverageModulationStateCreateFlagsNV flags |
| 4829 | VkCoverageModulationModeNV coverageModulationMode |
| 4830 | VkBool32 coverageModulationTableEnable |
| 4831 | u32 coverageModulationTableCount |
| 4832 | const f32* pCoverageModulationTable |
| 4833 | } |
| 4834 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4835 | //////////////// |
| 4836 | // Commands // |
| 4837 | //////////////// |
| 4838 | |
| 4839 | // Function pointers. TODO: add support for function pointers. |
| 4840 | |
| 4841 | @external type void* PFN_vkVoidFunction |
| 4842 | @pfn cmd void vkVoidFunction() { |
| 4843 | } |
| 4844 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 4845 | @external type void* PFN_vkAllocationFunction |
| 4846 | @pfn cmd void* vkAllocationFunction( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4847 | void* pUserData, |
| 4848 | platform.size_t size, |
| 4849 | platform.size_t alignment, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 4850 | VkSystemAllocationScope allocationScope) { |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 4851 | return ? |
| 4852 | } |
| 4853 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 4854 | @external type void* PFN_vkReallocationFunction |
| 4855 | @pfn cmd void* vkReallocationFunction( |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 4856 | void* pUserData, |
| 4857 | void* pOriginal, |
| 4858 | platform.size_t size, |
| 4859 | platform.size_t alignment, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 4860 | VkSystemAllocationScope allocationScope) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4861 | return ? |
| 4862 | } |
| 4863 | |
| 4864 | @external type void* PFN_vkFreeFunction |
| 4865 | @pfn cmd void vkFreeFunction( |
| 4866 | void* pUserData, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 4867 | void* pMemory) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4868 | } |
| 4869 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 4870 | @external type void* PFN_vkInternalAllocationNotification |
| 4871 | @pfn cmd void vkInternalAllocationNotification( |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 4872 | void* pUserData, |
| 4873 | platform.size_t size, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 4874 | VkInternalAllocationType allocationType, |
| 4875 | VkSystemAllocationScope allocationScope) { |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 4876 | } |
| 4877 | |
| 4878 | @external type void* PFN_vkInternalFreeNotification |
| 4879 | @pfn cmd void vkInternalFreeNotification( |
| 4880 | void* pUserData, |
| 4881 | platform.size_t size, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 4882 | VkInternalAllocationType allocationType, |
| 4883 | VkSystemAllocationScope allocationScope) { |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 4884 | } |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4885 | |
| 4886 | // Global functions |
| 4887 | |
| 4888 | @threadSafety("system") |
| 4889 | cmd VkResult vkCreateInstance( |
| 4890 | const VkInstanceCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 4891 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4892 | VkInstance* pInstance) { |
| 4893 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO) |
| 4894 | |
| 4895 | instance := ? |
| 4896 | pInstance[0] = instance |
| 4897 | State.Instances[instance] = new!InstanceObject() |
| 4898 | |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 4899 | layers := pCreateInfo.ppEnabledLayerNames[0:pCreateInfo.enabledLayerCount] |
| 4900 | extensions := pCreateInfo.ppEnabledExtensionNames[0:pCreateInfo.enabledExtensionCount] |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4901 | |
| 4902 | return ? |
| 4903 | } |
| 4904 | |
| 4905 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 4906 | cmd void vkDestroyInstance( |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 4907 | VkInstance instance, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 4908 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4909 | instanceObject := GetInstance(instance) |
| 4910 | |
| 4911 | State.Instances[instance] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4912 | } |
| 4913 | |
| 4914 | @threadSafety("system") |
| 4915 | cmd VkResult vkEnumeratePhysicalDevices( |
| 4916 | VkInstance instance, |
| 4917 | u32* pPhysicalDeviceCount, |
| 4918 | VkPhysicalDevice* pPhysicalDevices) { |
| 4919 | instanceObject := GetInstance(instance) |
| 4920 | |
| 4921 | physicalDeviceCount := as!u32(?) |
| 4922 | pPhysicalDeviceCount[0] = physicalDeviceCount |
| 4923 | physicalDevices := pPhysicalDevices[0:physicalDeviceCount] |
| 4924 | |
| 4925 | for i in (0 .. physicalDeviceCount) { |
| 4926 | physicalDevice := ? |
| 4927 | physicalDevices[i] = physicalDevice |
| 4928 | if !(physicalDevice in State.PhysicalDevices) { |
| 4929 | State.PhysicalDevices[physicalDevice] = new!PhysicalDeviceObject(instance: instance) |
| 4930 | } |
| 4931 | } |
| 4932 | |
| 4933 | return ? |
| 4934 | } |
| 4935 | |
| 4936 | cmd PFN_vkVoidFunction vkGetDeviceProcAddr( |
| 4937 | VkDevice device, |
| 4938 | const char* pName) { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 4939 | if device != NULL_HANDLE { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4940 | device := GetDevice(device) |
| 4941 | } |
| 4942 | |
| 4943 | return ? |
| 4944 | } |
| 4945 | |
| 4946 | cmd PFN_vkVoidFunction vkGetInstanceProcAddr( |
| 4947 | VkInstance instance, |
| 4948 | const char* pName) { |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 4949 | if instance != NULL_HANDLE { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4950 | instanceObject := GetInstance(instance) |
| 4951 | } |
| 4952 | |
| 4953 | return ? |
| 4954 | } |
| 4955 | |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 4956 | cmd void vkGetPhysicalDeviceProperties( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4957 | VkPhysicalDevice physicalDevice, |
| 4958 | VkPhysicalDeviceProperties* pProperties) { |
| 4959 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 4960 | |
| 4961 | properties := ? |
| 4962 | pProperties[0] = properties |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4963 | } |
| 4964 | |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 4965 | cmd void vkGetPhysicalDeviceQueueFamilyProperties( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4966 | VkPhysicalDevice physicalDevice, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 4967 | u32* pQueueFamilyPropertyCount, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 4968 | VkQueueFamilyProperties* pQueueFamilyProperties) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4969 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 4970 | // TODO: Figure out how to express fetch-count-or-properties |
| 4971 | // This version fails 'apic validate' with 'fence not allowed in |
| 4972 | // *semantic.Branch'. Other attempts have failed with the same or other |
| 4973 | // errors. |
| 4974 | // if pQueueFamilyProperties != null { |
| 4975 | // queuesProperties := pQueueFamilyProperties[0:pCount[0]] |
| 4976 | // for i in (0 .. pCount[0]) { |
| 4977 | // queueProperties := as!VkQueueFamilyProperties(?) |
| 4978 | // queuesProperties[i] = queueProperties |
| 4979 | // } |
| 4980 | // } else { |
| 4981 | // count := ? |
| 4982 | // pCount[0] = count |
| 4983 | // } |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4984 | } |
| 4985 | |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 4986 | cmd void vkGetPhysicalDeviceMemoryProperties( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4987 | VkPhysicalDevice physicalDevice, |
| 4988 | VkPhysicalDeviceMemoryProperties* pMemoryProperties) { |
| 4989 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 4990 | |
| 4991 | memoryProperties := ? |
| 4992 | pMemoryProperties[0] = memoryProperties |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4993 | } |
| 4994 | |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 4995 | cmd void vkGetPhysicalDeviceFeatures( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 4996 | VkPhysicalDevice physicalDevice, |
| 4997 | VkPhysicalDeviceFeatures* pFeatures) { |
| 4998 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 4999 | |
| 5000 | features := ? |
| 5001 | pFeatures[0] = features |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5002 | } |
| 5003 | |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 5004 | cmd void vkGetPhysicalDeviceFormatProperties( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5005 | VkPhysicalDevice physicalDevice, |
| 5006 | VkFormat format, |
| 5007 | VkFormatProperties* pFormatProperties) { |
| 5008 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 5009 | |
| 5010 | formatProperties := ? |
| 5011 | pFormatProperties[0] = formatProperties |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5012 | } |
| 5013 | |
Jesse Hall | a9e5703 | 2015-11-30 01:03:10 -0800 | [diff] [blame] | 5014 | cmd VkResult vkGetPhysicalDeviceImageFormatProperties( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5015 | VkPhysicalDevice physicalDevice, |
| 5016 | VkFormat format, |
| 5017 | VkImageType type, |
| 5018 | VkImageTiling tiling, |
| 5019 | VkImageUsageFlags usage, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5020 | VkImageCreateFlags flags, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5021 | VkImageFormatProperties* pImageFormatProperties) { |
| 5022 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 5023 | |
| 5024 | imageFormatProperties := ? |
| 5025 | pImageFormatProperties[0] = imageFormatProperties |
Jesse Hall | a9e5703 | 2015-11-30 01:03:10 -0800 | [diff] [blame] | 5026 | |
| 5027 | return ? |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5028 | } |
| 5029 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5030 | |
| 5031 | // Device functions |
| 5032 | |
| 5033 | @threadSafety("system") |
| 5034 | cmd VkResult vkCreateDevice( |
| 5035 | VkPhysicalDevice physicalDevice, |
| 5036 | const VkDeviceCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5037 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5038 | VkDevice* pDevice) { |
| 5039 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO) |
| 5040 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 5041 | |
| 5042 | device := ? |
| 5043 | pDevice[0] = device |
| 5044 | State.Devices[device] = new!DeviceObject(physicalDevice: physicalDevice) |
| 5045 | |
| 5046 | return ? |
| 5047 | } |
| 5048 | |
| 5049 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5050 | cmd void vkDestroyDevice( |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5051 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5052 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5053 | deviceObject := GetDevice(device) |
| 5054 | |
| 5055 | State.Devices[device] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5056 | } |
| 5057 | |
| 5058 | |
| 5059 | // Extension discovery functions |
| 5060 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5061 | cmd VkResult vkEnumerateInstanceLayerProperties( |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5062 | u32* pPropertyCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5063 | VkLayerProperties* pProperties) { |
| 5064 | count := as!u32(?) |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5065 | pPropertyCount[0] = count |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5066 | |
| 5067 | properties := pProperties[0:count] |
| 5068 | for i in (0 .. count) { |
| 5069 | property := ? |
| 5070 | properties[i] = property |
| 5071 | } |
| 5072 | |
| 5073 | return ? |
| 5074 | } |
| 5075 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5076 | cmd VkResult vkEnumerateInstanceExtensionProperties( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5077 | const char* pLayerName, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5078 | u32* pPropertyCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5079 | VkExtensionProperties* pProperties) { |
| 5080 | count := as!u32(?) |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5081 | pPropertyCount[0] = count |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5082 | |
| 5083 | properties := pProperties[0:count] |
| 5084 | for i in (0 .. count) { |
| 5085 | property := ? |
| 5086 | properties[i] = property |
| 5087 | } |
| 5088 | |
| 5089 | return ? |
| 5090 | } |
| 5091 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5092 | cmd VkResult vkEnumerateDeviceLayerProperties( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5093 | VkPhysicalDevice physicalDevice, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5094 | u32* pPropertyCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5095 | VkLayerProperties* pProperties) { |
| 5096 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 5097 | count := as!u32(?) |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5098 | pPropertyCount[0] = count |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5099 | |
| 5100 | properties := pProperties[0:count] |
| 5101 | for i in (0 .. count) { |
| 5102 | property := ? |
| 5103 | properties[i] = property |
| 5104 | } |
| 5105 | |
| 5106 | return ? |
| 5107 | } |
| 5108 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5109 | cmd VkResult vkEnumerateDeviceExtensionProperties( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5110 | VkPhysicalDevice physicalDevice, |
| 5111 | const char* pLayerName, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5112 | u32* pPropertyCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5113 | VkExtensionProperties* pProperties) { |
| 5114 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 5115 | |
| 5116 | count := as!u32(?) |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5117 | pPropertyCount[0] = count |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5118 | |
| 5119 | properties := pProperties[0:count] |
| 5120 | for i in (0 .. count) { |
| 5121 | property := ? |
| 5122 | properties[i] = property |
| 5123 | } |
| 5124 | |
| 5125 | return ? |
| 5126 | } |
| 5127 | |
| 5128 | |
| 5129 | // Queue functions |
| 5130 | |
| 5131 | @threadSafety("system") |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 5132 | cmd void vkGetDeviceQueue( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5133 | VkDevice device, |
| 5134 | u32 queueFamilyIndex, |
| 5135 | u32 queueIndex, |
| 5136 | VkQueue* pQueue) { |
| 5137 | deviceObject := GetDevice(device) |
| 5138 | |
| 5139 | queue := ? |
| 5140 | pQueue[0] = queue |
| 5141 | |
| 5142 | if !(queue in State.Queues) { |
| 5143 | State.Queues[queue] = new!QueueObject(device: device) |
| 5144 | } |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5145 | } |
| 5146 | |
| 5147 | @threadSafety("app") |
| 5148 | cmd VkResult vkQueueSubmit( |
| 5149 | VkQueue queue, |
Jesse Hall | a366a51 | 2015-11-19 22:30:07 -0800 | [diff] [blame] | 5150 | u32 submitCount, |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 5151 | const VkSubmitInfo* pSubmits, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5152 | VkFence fence) { |
| 5153 | queueObject := GetQueue(queue) |
| 5154 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5155 | if fence != NULL_HANDLE { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5156 | fenceObject := GetFence(fence) |
| 5157 | assert(fenceObject.device == queueObject.device) |
| 5158 | } |
| 5159 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5160 | // commandBuffers := pcommandBuffers[0:commandBufferCount] |
| 5161 | // for i in (0 .. commandBufferCount) { |
| 5162 | // commandBuffer := commandBuffers[i] |
| 5163 | // commandBufferObject := GetCommandBuffer(commandBuffer) |
| 5164 | // assert(commandBufferObject.device == queueObject.device) |
Jesse Hall | a366a51 | 2015-11-19 22:30:07 -0800 | [diff] [blame] | 5165 | // |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5166 | // validate("QueueCheck", commandBufferObject.queueFlags in queueObject.flags, |
| 5167 | // "vkQueueSubmit: enqueued commandBuffer requires missing queue capabilities.") |
Jesse Hall | a366a51 | 2015-11-19 22:30:07 -0800 | [diff] [blame] | 5168 | // } |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5169 | |
| 5170 | return ? |
| 5171 | } |
| 5172 | |
| 5173 | @threadSafety("system") |
| 5174 | cmd VkResult vkQueueWaitIdle( |
| 5175 | VkQueue queue) { |
| 5176 | queueObject := GetQueue(queue) |
| 5177 | |
| 5178 | return ? |
| 5179 | } |
| 5180 | |
| 5181 | @threadSafety("system") |
| 5182 | cmd VkResult vkDeviceWaitIdle( |
| 5183 | VkDevice device) { |
| 5184 | deviceObject := GetDevice(device) |
| 5185 | |
| 5186 | return ? |
| 5187 | } |
| 5188 | |
| 5189 | |
| 5190 | // Memory functions |
| 5191 | |
| 5192 | @threadSafety("system") |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5193 | cmd VkResult vkAllocateMemory( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5194 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5195 | const VkMemoryAllocateInfo* pAllocateInfo, |
| 5196 | const VkAllocationCallbacks* pAllocator, |
| 5197 | VkDeviceMemory* pMemory) { |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 5198 | assert(pAllocateInfo.sType == VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5199 | deviceObject := GetDevice(device) |
| 5200 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5201 | memory := ? |
| 5202 | pMemory[0] = memory |
| 5203 | State.DeviceMemories[memory] = new!DeviceMemoryObject( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5204 | device: device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5205 | allocationSize: pAllocateInfo[0].allocationSize) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5206 | |
| 5207 | return ? |
| 5208 | } |
| 5209 | |
| 5210 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5211 | cmd void vkFreeMemory( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5212 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5213 | VkDeviceMemory memory, |
| 5214 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5215 | deviceObject := GetDevice(device) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5216 | memoryObject := GetDeviceMemory(memory) |
| 5217 | assert(memoryObject.device == device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5218 | |
| 5219 | // Check that no objects are still bound before freeing. |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5220 | validate("MemoryCheck", len(memoryObject.boundObjects) == 0, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5221 | "vkFreeMemory: objects still bound") |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5222 | validate("MemoryCheck", len(memoryObject.boundCommandBuffers) == 0, |
| 5223 | "vkFreeMemory: commandBuffers still bound") |
| 5224 | State.DeviceMemories[memory] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5225 | } |
| 5226 | |
| 5227 | @threadSafety("app") |
| 5228 | cmd VkResult vkMapMemory( |
| 5229 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5230 | VkDeviceMemory memory, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5231 | VkDeviceSize offset, |
| 5232 | VkDeviceSize size, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5233 | VkMemoryMapFlags flags, |
| 5234 | void** ppData) { |
| 5235 | deviceObject := GetDevice(device) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5236 | memoryObject := GetDeviceMemory(memory) |
| 5237 | assert(memoryObject.device == device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5238 | |
| 5239 | assert(flags == as!VkMemoryMapFlags(0)) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5240 | assert((offset + size) <= memoryObject.allocationSize) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5241 | |
| 5242 | return ? |
| 5243 | } |
| 5244 | |
| 5245 | @threadSafety("app") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5246 | cmd void vkUnmapMemory( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5247 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5248 | VkDeviceMemory memory) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5249 | deviceObject := GetDevice(device) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5250 | memoryObject := GetDeviceMemory(memory) |
| 5251 | assert(memoryObject.device == device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5252 | } |
| 5253 | |
| 5254 | cmd VkResult vkFlushMappedMemoryRanges( |
| 5255 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5256 | u32 memoryRangeCount |
| 5257 | const VkMappedMemoryRange* pMemoryRanges) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5258 | deviceObject := GetDevice(device) |
| 5259 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5260 | memoryRanges := pMemoryRanges[0:memoryRangeCount] |
| 5261 | for i in (0 .. memoryRangeCount) { |
| 5262 | memoryRange := memoryRanges[i] |
| 5263 | memoryObject := GetDeviceMemory(memoryRange.memory) |
| 5264 | assert(memoryObject.device == device) |
| 5265 | assert((memoryRange.offset + memoryRange.size) <= memoryObject.allocationSize) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5266 | } |
| 5267 | |
| 5268 | return ? |
| 5269 | } |
| 5270 | |
| 5271 | cmd VkResult vkInvalidateMappedMemoryRanges( |
| 5272 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5273 | u32 memoryRangeCount, |
| 5274 | const VkMappedMemoryRange* pMemoryRanges) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5275 | deviceObject := GetDevice(device) |
| 5276 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5277 | memoryRanges := pMemoryRanges[0:memoryRangeCount] |
| 5278 | for i in (0 .. memoryRangeCount) { |
| 5279 | memoryRange := memoryRanges[i] |
| 5280 | memoryObject := GetDeviceMemory(memoryRange.memory) |
| 5281 | assert(memoryObject.device == device) |
| 5282 | assert((memoryRange.offset + memoryRange.size) <= memoryObject.allocationSize) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5283 | } |
| 5284 | |
| 5285 | return ? |
| 5286 | } |
| 5287 | |
| 5288 | |
| 5289 | // Memory management API functions |
| 5290 | |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 5291 | cmd void vkGetDeviceMemoryCommitment( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5292 | VkDevice device, |
| 5293 | VkDeviceMemory memory, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5294 | VkDeviceSize* pCommittedMemoryInBytes) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5295 | deviceObject := GetDevice(device) |
| 5296 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5297 | if memory != NULL_HANDLE { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5298 | memoryObject := GetDeviceMemory(memory) |
| 5299 | assert(memoryObject.device == device) |
| 5300 | } |
| 5301 | |
| 5302 | committedMemoryInBytes := ? |
| 5303 | pCommittedMemoryInBytes[0] = committedMemoryInBytes |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5304 | } |
| 5305 | |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 5306 | cmd void vkGetBufferMemoryRequirements( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5307 | VkDevice device, |
| 5308 | VkBuffer buffer, |
| 5309 | VkMemoryRequirements* pMemoryRequirements) { |
| 5310 | deviceObject := GetDevice(device) |
| 5311 | bufferObject := GetBuffer(buffer) |
| 5312 | assert(bufferObject.device == device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5313 | } |
| 5314 | |
| 5315 | cmd VkResult vkBindBufferMemory( |
| 5316 | VkDevice device, |
| 5317 | VkBuffer buffer, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5318 | VkDeviceMemory memory, |
| 5319 | VkDeviceSize memoryOffset) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5320 | deviceObject := GetDevice(device) |
| 5321 | bufferObject := GetBuffer(buffer) |
| 5322 | assert(bufferObject.device == device) |
| 5323 | |
| 5324 | // Unbind buffer from previous memory object, if not VK_NULL_HANDLE. |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5325 | if bufferObject.memory != NULL_HANDLE { |
| 5326 | memoryObject := GetDeviceMemory(bufferObject.memory) |
| 5327 | memoryObject.boundObjects[as!u64(buffer)] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5328 | } |
| 5329 | |
| 5330 | // Bind buffer to given memory object, if not VK_NULL_HANDLE. |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5331 | if memory != NULL_HANDLE { |
| 5332 | memoryObject := GetDeviceMemory(memory) |
| 5333 | assert(memoryObject.device == device) |
| 5334 | memoryObject.boundObjects[as!u64(buffer)] = memoryOffset |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5335 | } |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5336 | bufferObject.memory = memory |
| 5337 | bufferObject.memoryOffset = memoryOffset |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5338 | |
| 5339 | return ? |
| 5340 | } |
| 5341 | |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 5342 | cmd void vkGetImageMemoryRequirements( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5343 | VkDevice device, |
| 5344 | VkImage image, |
| 5345 | VkMemoryRequirements* pMemoryRequirements) { |
| 5346 | deviceObject := GetDevice(device) |
| 5347 | imageObject := GetImage(image) |
| 5348 | assert(imageObject.device == device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5349 | } |
| 5350 | |
| 5351 | cmd VkResult vkBindImageMemory( |
| 5352 | VkDevice device, |
| 5353 | VkImage image, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5354 | VkDeviceMemory memory, |
| 5355 | VkDeviceSize memoryOffset) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5356 | deviceObject := GetDevice(device) |
| 5357 | imageObject := GetImage(image) |
| 5358 | assert(imageObject.device == device) |
| 5359 | |
| 5360 | // Unbind image from previous memory object, if not VK_NULL_HANDLE. |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5361 | if imageObject.memory != NULL_HANDLE { |
| 5362 | memoryObject := GetDeviceMemory(imageObject.memory) |
| 5363 | memoryObject.boundObjects[as!u64(image)] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5364 | } |
| 5365 | |
| 5366 | // Bind image to given memory object, if not VK_NULL_HANDLE. |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5367 | if memory != NULL_HANDLE { |
| 5368 | memoryObject := GetDeviceMemory(memory) |
| 5369 | assert(memoryObject.device == device) |
| 5370 | memoryObject.boundObjects[as!u64(image)] = memoryOffset |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5371 | } |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5372 | imageObject.memory = memory |
| 5373 | imageObject.memoryOffset = memoryOffset |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5374 | |
| 5375 | return ? |
| 5376 | } |
| 5377 | |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 5378 | cmd void vkGetImageSparseMemoryRequirements( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5379 | VkDevice device, |
| 5380 | VkImage image, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5381 | u32* pSparseMemoryRequirementCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5382 | VkSparseImageMemoryRequirements* pSparseMemoryRequirements) { |
| 5383 | deviceObject := GetDevice(device) |
| 5384 | imageObject := GetImage(image) |
| 5385 | assert(imageObject.device == device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5386 | } |
| 5387 | |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 5388 | cmd void vkGetPhysicalDeviceSparseImageFormatProperties( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5389 | VkPhysicalDevice physicalDevice, |
| 5390 | VkFormat format, |
| 5391 | VkImageType type, |
Jesse Hall | 091ed9e | 2015-11-30 00:55:29 -0800 | [diff] [blame] | 5392 | VkSampleCountFlagBits samples, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5393 | VkImageUsageFlags usage, |
| 5394 | VkImageTiling tiling, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5395 | u32* pPropertyCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5396 | VkSparseImageFormatProperties* pProperties) { |
| 5397 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5398 | } |
| 5399 | |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 5400 | cmd VkResult vkQueueBindSparse( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5401 | VkQueue queue, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5402 | u32 bindInfoCount, |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 5403 | const VkBindSparseInfo* pBindInfo, |
| 5404 | VkFence fence) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5405 | queueObject := GetQueue(queue) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5406 | |
| 5407 | return ? |
| 5408 | } |
| 5409 | |
| 5410 | |
| 5411 | // Fence functions |
| 5412 | |
| 5413 | @threadSafety("system") |
| 5414 | cmd VkResult vkCreateFence( |
| 5415 | VkDevice device, |
| 5416 | const VkFenceCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5417 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5418 | VkFence* pFence) { |
| 5419 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_FENCE_CREATE_INFO) |
| 5420 | deviceObject := GetDevice(device) |
| 5421 | |
| 5422 | fence := ? |
| 5423 | pFence[0] = fence |
| 5424 | State.Fences[fence] = new!FenceObject( |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 5425 | device: device, signaled: (pCreateInfo.flags == as!VkFenceCreateFlags(VK_FENCE_CREATE_SIGNALED_BIT))) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5426 | |
| 5427 | return ? |
| 5428 | } |
| 5429 | |
| 5430 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5431 | cmd void vkDestroyFence( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5432 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5433 | VkFence fence, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5434 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5435 | deviceObject := GetDevice(device) |
| 5436 | fenceObject := GetFence(fence) |
| 5437 | assert(fenceObject.device == device) |
| 5438 | |
| 5439 | State.Fences[fence] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5440 | } |
| 5441 | |
| 5442 | @threadSafety("system") |
| 5443 | cmd VkResult vkResetFences( |
| 5444 | VkDevice device, |
| 5445 | u32 fenceCount, |
| 5446 | const VkFence* pFences) { |
| 5447 | deviceObject := GetDevice(device) |
| 5448 | |
| 5449 | fences := pFences[0:fenceCount] |
| 5450 | for i in (0 .. fenceCount) { |
| 5451 | fence := fences[i] |
| 5452 | fenceObject := GetFence(fence) |
| 5453 | assert(fenceObject.device == device) |
| 5454 | fenceObject.signaled = false |
| 5455 | } |
| 5456 | |
| 5457 | return ? |
| 5458 | } |
| 5459 | |
| 5460 | @threadSafety("system") |
| 5461 | cmd VkResult vkGetFenceStatus( |
| 5462 | VkDevice device, |
| 5463 | VkFence fence) { |
| 5464 | deviceObject := GetDevice(device) |
| 5465 | fenceObject := GetFence(fence) |
| 5466 | assert(fenceObject.device == device) |
| 5467 | |
| 5468 | return ? |
| 5469 | } |
| 5470 | |
| 5471 | @threadSafety("system") |
| 5472 | cmd VkResult vkWaitForFences( |
| 5473 | VkDevice device, |
| 5474 | u32 fenceCount, |
| 5475 | const VkFence* pFences, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5476 | VkBool32 waitAll, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5477 | u64 timeout) { /// timeout in nanoseconds |
| 5478 | deviceObject := GetDevice(device) |
| 5479 | |
| 5480 | fences := pFences[0:fenceCount] |
| 5481 | for i in (0 .. fenceCount) { |
| 5482 | fence := fences[i] |
| 5483 | fenceObject := GetFence(fence) |
| 5484 | assert(fenceObject.device == device) |
| 5485 | } |
| 5486 | |
| 5487 | return ? |
| 5488 | } |
| 5489 | |
| 5490 | |
| 5491 | // Queue semaphore functions |
| 5492 | |
| 5493 | @threadSafety("system") |
| 5494 | cmd VkResult vkCreateSemaphore( |
| 5495 | VkDevice device, |
| 5496 | const VkSemaphoreCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5497 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5498 | VkSemaphore* pSemaphore) { |
| 5499 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO) |
| 5500 | deviceObject := GetDevice(device) |
| 5501 | |
| 5502 | semaphore := ? |
| 5503 | pSemaphore[0] = semaphore |
| 5504 | State.Semaphores[semaphore] = new!SemaphoreObject(device: device) |
| 5505 | |
| 5506 | return ? |
| 5507 | } |
| 5508 | |
| 5509 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5510 | cmd void vkDestroySemaphore( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5511 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5512 | VkSemaphore semaphore, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5513 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5514 | deviceObject := GetDevice(device) |
| 5515 | semaphoreObject := GetSemaphore(semaphore) |
| 5516 | assert(semaphoreObject.device == device) |
| 5517 | |
| 5518 | State.Semaphores[semaphore] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5519 | } |
| 5520 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5521 | |
| 5522 | // Event functions |
| 5523 | |
| 5524 | @threadSafety("system") |
| 5525 | cmd VkResult vkCreateEvent( |
| 5526 | VkDevice device, |
| 5527 | const VkEventCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5528 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5529 | VkEvent* pEvent) { |
| 5530 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_EVENT_CREATE_INFO) |
| 5531 | deviceObject := GetDevice(device) |
| 5532 | |
| 5533 | event := ? |
| 5534 | pEvent[0] = event |
| 5535 | State.Events[event] = new!EventObject(device: device) |
| 5536 | |
| 5537 | return ? |
| 5538 | } |
| 5539 | |
| 5540 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5541 | cmd void vkDestroyEvent( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5542 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5543 | VkEvent event, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5544 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5545 | deviceObject := GetDevice(device) |
| 5546 | eventObject := GetEvent(event) |
| 5547 | assert(eventObject.device == device) |
| 5548 | |
| 5549 | State.Events[event] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5550 | } |
| 5551 | |
| 5552 | @threadSafety("system") |
| 5553 | cmd VkResult vkGetEventStatus( |
| 5554 | VkDevice device, |
| 5555 | VkEvent event) { |
| 5556 | deviceObject := GetDevice(device) |
| 5557 | eventObject := GetEvent(event) |
| 5558 | assert(eventObject.device == device) |
| 5559 | |
| 5560 | return ? |
| 5561 | } |
| 5562 | |
| 5563 | @threadSafety("system") |
| 5564 | cmd VkResult vkSetEvent( |
| 5565 | VkDevice device, |
| 5566 | VkEvent event) { |
| 5567 | deviceObject := GetDevice(device) |
| 5568 | eventObject := GetEvent(event) |
| 5569 | assert(eventObject.device == device) |
| 5570 | |
| 5571 | return ? |
| 5572 | } |
| 5573 | |
| 5574 | @threadSafety("system") |
| 5575 | cmd VkResult vkResetEvent( |
| 5576 | VkDevice device, |
| 5577 | VkEvent event) { |
| 5578 | deviceObject := GetDevice(device) |
| 5579 | eventObject := GetEvent(event) |
| 5580 | assert(eventObject.device == device) |
| 5581 | |
| 5582 | return ? |
| 5583 | } |
| 5584 | |
| 5585 | |
| 5586 | // Query functions |
| 5587 | |
| 5588 | @threadSafety("system") |
| 5589 | cmd VkResult vkCreateQueryPool( |
| 5590 | VkDevice device, |
| 5591 | const VkQueryPoolCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5592 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5593 | VkQueryPool* pQueryPool) { |
| 5594 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO) |
| 5595 | deviceObject := GetDevice(device) |
| 5596 | |
| 5597 | queryPool := ? |
| 5598 | pQueryPool[0] = queryPool |
| 5599 | State.QueryPools[queryPool] = new!QueryPoolObject(device: device) |
| 5600 | |
| 5601 | return ? |
| 5602 | } |
| 5603 | |
| 5604 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5605 | cmd void vkDestroyQueryPool( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5606 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5607 | VkQueryPool queryPool, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5608 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5609 | deviceObject := GetDevice(device) |
| 5610 | queryPoolObject := GetQueryPool(queryPool) |
| 5611 | assert(queryPoolObject.device == device) |
| 5612 | |
| 5613 | State.QueryPools[queryPool] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5614 | } |
| 5615 | |
| 5616 | @threadSafety("system") |
| 5617 | cmd VkResult vkGetQueryPoolResults( |
| 5618 | VkDevice device, |
| 5619 | VkQueryPool queryPool, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 5620 | u32 firstQuery, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5621 | u32 queryCount, |
Jesse Hall | a9bb62b | 2015-11-21 19:31:56 -0800 | [diff] [blame] | 5622 | platform.size_t dataSize, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5623 | void* pData, |
Jesse Hall | a9bb62b | 2015-11-21 19:31:56 -0800 | [diff] [blame] | 5624 | VkDeviceSize stride, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5625 | VkQueryResultFlags flags) { |
| 5626 | deviceObject := GetDevice(device) |
| 5627 | queryPoolObject := GetQueryPool(queryPool) |
| 5628 | assert(queryPoolObject.device == device) |
| 5629 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5630 | data := pData[0:dataSize] |
| 5631 | |
| 5632 | return ? |
| 5633 | } |
| 5634 | |
| 5635 | // Buffer functions |
| 5636 | |
| 5637 | @threadSafety("system") |
| 5638 | cmd VkResult vkCreateBuffer( |
| 5639 | VkDevice device, |
| 5640 | const VkBufferCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5641 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5642 | VkBuffer* pBuffer) { |
| 5643 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO) |
| 5644 | deviceObject := GetDevice(device) |
| 5645 | |
| 5646 | buffer := ? |
| 5647 | pBuffer[0] = buffer |
| 5648 | State.Buffers[buffer] = new!BufferObject(device: device) |
| 5649 | |
| 5650 | return ? |
| 5651 | } |
| 5652 | |
| 5653 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5654 | cmd void vkDestroyBuffer( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5655 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5656 | VkBuffer buffer, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5657 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5658 | deviceObject := GetDevice(device) |
| 5659 | bufferObject := GetBuffer(buffer) |
| 5660 | assert(bufferObject.device == device) |
| 5661 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5662 | assert(bufferObject.memory == 0) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5663 | State.Buffers[buffer] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5664 | } |
| 5665 | |
| 5666 | |
| 5667 | // Buffer view functions |
| 5668 | |
| 5669 | @threadSafety("system") |
| 5670 | cmd VkResult vkCreateBufferView( |
| 5671 | VkDevice device, |
| 5672 | const VkBufferViewCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5673 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5674 | VkBufferView* pView) { |
| 5675 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO) |
| 5676 | deviceObject := GetDevice(device) |
| 5677 | |
| 5678 | bufferObject := GetBuffer(pCreateInfo.buffer) |
| 5679 | assert(bufferObject.device == device) |
| 5680 | |
| 5681 | view := ? |
| 5682 | pView[0] = view |
| 5683 | State.BufferViews[view] = new!BufferViewObject(device: device, buffer: pCreateInfo.buffer) |
| 5684 | |
| 5685 | return ? |
| 5686 | } |
| 5687 | |
| 5688 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5689 | cmd void vkDestroyBufferView( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5690 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5691 | VkBufferView bufferView, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5692 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5693 | deviceObject := GetDevice(device) |
| 5694 | bufferViewObject := GetBufferView(bufferView) |
| 5695 | assert(bufferViewObject.device == device) |
| 5696 | |
| 5697 | State.BufferViews[bufferView] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5698 | } |
| 5699 | |
| 5700 | |
| 5701 | // Image functions |
| 5702 | |
| 5703 | @threadSafety("system") |
| 5704 | cmd VkResult vkCreateImage( |
| 5705 | VkDevice device, |
| 5706 | const VkImageCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5707 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5708 | VkImage* pImage) { |
| 5709 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO) |
| 5710 | deviceObject := GetDevice(device) |
| 5711 | |
| 5712 | image := ? |
| 5713 | pImage[0] = image |
| 5714 | State.Images[image] = new!ImageObject(device: device) |
| 5715 | |
| 5716 | return ? |
| 5717 | } |
| 5718 | |
| 5719 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5720 | cmd void vkDestroyImage( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5721 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5722 | VkImage image, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5723 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5724 | deviceObject := GetDevice(device) |
| 5725 | imageObject := GetImage(image) |
| 5726 | assert(imageObject.device == device) |
| 5727 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5728 | assert(imageObject.memory == 0) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5729 | State.Images[image] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5730 | } |
| 5731 | |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 5732 | cmd void vkGetImageSubresourceLayout( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5733 | VkDevice device, |
| 5734 | VkImage image, |
| 5735 | const VkImageSubresource* pSubresource, |
| 5736 | VkSubresourceLayout* pLayout) { |
| 5737 | deviceObject := GetDevice(device) |
| 5738 | imageObject := GetImage(image) |
| 5739 | assert(imageObject.device == device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5740 | } |
| 5741 | |
| 5742 | |
| 5743 | // Image view functions |
| 5744 | |
| 5745 | @threadSafety("system") |
| 5746 | cmd VkResult vkCreateImageView( |
| 5747 | VkDevice device, |
| 5748 | const VkImageViewCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5749 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5750 | VkImageView* pView) { |
| 5751 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO) |
| 5752 | deviceObject := GetDevice(device) |
| 5753 | |
| 5754 | imageObject := GetImage(pCreateInfo.image) |
| 5755 | assert(imageObject.device == device) |
| 5756 | |
| 5757 | view := ? |
| 5758 | pView[0] = view |
| 5759 | State.ImageViews[view] = new!ImageViewObject(device: device, image: pCreateInfo.image) |
| 5760 | |
| 5761 | return ? |
| 5762 | } |
| 5763 | |
| 5764 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5765 | cmd void vkDestroyImageView( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5766 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5767 | VkImageView imageView, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5768 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5769 | deviceObject := GetDevice(device) |
| 5770 | imageViewObject := GetImageView(imageView) |
| 5771 | assert(imageViewObject.device == device) |
| 5772 | |
| 5773 | State.ImageViews[imageView] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5774 | } |
| 5775 | |
| 5776 | |
| 5777 | // Shader functions |
| 5778 | |
| 5779 | cmd VkResult vkCreateShaderModule( |
| 5780 | VkDevice device, |
| 5781 | const VkShaderModuleCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5782 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5783 | VkShaderModule* pShaderModule) { |
| 5784 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO) |
| 5785 | deviceObject := GetDevice(device) |
| 5786 | |
| 5787 | shaderModule := ? |
| 5788 | pShaderModule[0] = shaderModule |
| 5789 | State.ShaderModules[shaderModule] = new!ShaderModuleObject(device: device) |
| 5790 | |
| 5791 | return ? |
| 5792 | } |
| 5793 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5794 | cmd void vkDestroyShaderModule( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5795 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5796 | VkShaderModule shaderModule, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5797 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5798 | deviceObject := GetDevice(device) |
| 5799 | shaderModuleObject := GetShaderModule(shaderModule) |
| 5800 | assert(shaderModuleObject.device == device) |
| 5801 | |
| 5802 | State.ShaderModules[shaderModule] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5803 | } |
| 5804 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5805 | |
| 5806 | // Pipeline functions |
| 5807 | |
| 5808 | cmd VkResult vkCreatePipelineCache( |
| 5809 | VkDevice device, |
| 5810 | const VkPipelineCacheCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5811 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5812 | VkPipelineCache* pPipelineCache) { |
| 5813 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO) |
| 5814 | deviceObject := GetDevice(device) |
| 5815 | |
| 5816 | pipelineCache := ? |
| 5817 | pPipelineCache[0] = pipelineCache |
| 5818 | State.PipelineCaches[pipelineCache] = new!PipelineCacheObject(device: device) |
| 5819 | |
| 5820 | return ? |
| 5821 | } |
| 5822 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5823 | cmd void vkDestroyPipelineCache( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5824 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5825 | VkPipelineCache pipelineCache, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5826 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5827 | deviceObject := GetDevice(device) |
| 5828 | pipelineCacheObject := GetPipelineCache(pipelineCache) |
| 5829 | assert(pipelineCacheObject.device == device) |
| 5830 | |
| 5831 | State.PipelineCaches[pipelineCache] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5832 | } |
| 5833 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5834 | cmd VkResult vkGetPipelineCacheData( |
| 5835 | VkDevice device, |
| 5836 | VkPipelineCache pipelineCache, |
Jesse Hall | a9bb62b | 2015-11-21 19:31:56 -0800 | [diff] [blame] | 5837 | platform.size_t* pDataSize, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5838 | void* pData) { |
| 5839 | deviceObject := GetDevice(device) |
| 5840 | pipelineCacheObject := GetPipelineCache(pipelineCache) |
| 5841 | assert(pipelineCacheObject.device == device) |
| 5842 | |
| 5843 | return ? |
| 5844 | } |
| 5845 | |
| 5846 | cmd VkResult vkMergePipelineCaches( |
| 5847 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5848 | VkPipelineCache dstCache, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5849 | u32 srcCacheCount, |
| 5850 | const VkPipelineCache* pSrcCaches) { |
| 5851 | deviceObject := GetDevice(device) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5852 | dstCacheObject := GetPipelineCache(dstCache) |
| 5853 | assert(dstCacheObject.device == device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5854 | |
| 5855 | srcCaches := pSrcCaches[0:srcCacheCount] |
| 5856 | for i in (0 .. srcCacheCount) { |
| 5857 | srcCache := srcCaches[i] |
| 5858 | srcCacheObject := GetPipelineCache(srcCache) |
| 5859 | assert(srcCacheObject.device == device) |
| 5860 | } |
| 5861 | |
| 5862 | return ? |
| 5863 | } |
| 5864 | |
| 5865 | cmd VkResult vkCreateGraphicsPipelines( |
| 5866 | VkDevice device, |
| 5867 | VkPipelineCache pipelineCache, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5868 | u32 createInfoCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5869 | const VkGraphicsPipelineCreateInfo* pCreateInfos, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5870 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5871 | VkPipeline* pPipelines) { |
| 5872 | deviceObject := GetDevice(device) |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5873 | if pipelineCache != NULL_HANDLE { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5874 | pipelineCacheObject := GetPipelineCache(pipelineCache) |
| 5875 | assert(pipelineCacheObject.device == device) |
| 5876 | } |
| 5877 | |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5878 | createInfos := pCreateInfos[0:createInfoCount] |
| 5879 | pipelines := pPipelines[0:createInfoCount] |
| 5880 | for i in (0 .. createInfoCount) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5881 | pipeline := ? |
| 5882 | pipelines[i] = pipeline |
| 5883 | State.Pipelines[pipeline] = new!PipelineObject(device: device) |
| 5884 | } |
| 5885 | |
| 5886 | return ? |
| 5887 | } |
| 5888 | |
| 5889 | cmd VkResult vkCreateComputePipelines( |
| 5890 | VkDevice device, |
| 5891 | VkPipelineCache pipelineCache, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5892 | u32 createInfoCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5893 | const VkComputePipelineCreateInfo* pCreateInfos, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5894 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5895 | VkPipeline* pPipelines) { |
| 5896 | deviceObject := GetDevice(device) |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5897 | if pipelineCache != NULL_HANDLE { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5898 | pipelineCacheObject := GetPipelineCache(pipelineCache) |
| 5899 | assert(pipelineCacheObject.device == device) |
| 5900 | } |
| 5901 | |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5902 | createInfos := pCreateInfos[0:createInfoCount] |
| 5903 | pipelines := pPipelines[0:createInfoCount] |
| 5904 | for i in (0 .. createInfoCount) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5905 | pipeline := ? |
| 5906 | pipelines[i] = pipeline |
| 5907 | State.Pipelines[pipeline] = new!PipelineObject(device: device) |
| 5908 | } |
| 5909 | |
| 5910 | return ? |
| 5911 | } |
| 5912 | |
| 5913 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5914 | cmd void vkDestroyPipeline( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5915 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5916 | VkPipeline pipeline, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5917 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5918 | deviceObject := GetDevice(device) |
| 5919 | pipelineObjects := GetPipeline(pipeline) |
| 5920 | assert(pipelineObjects.device == device) |
| 5921 | |
| 5922 | State.Pipelines[pipeline] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5923 | } |
| 5924 | |
| 5925 | |
| 5926 | // Pipeline layout functions |
| 5927 | |
| 5928 | @threadSafety("system") |
| 5929 | cmd VkResult vkCreatePipelineLayout( |
| 5930 | VkDevice device, |
| 5931 | const VkPipelineLayoutCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5932 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5933 | VkPipelineLayout* pPipelineLayout) { |
| 5934 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO) |
| 5935 | deviceObject := GetDevice(device) |
| 5936 | |
| 5937 | pipelineLayout := ? |
| 5938 | pPipelineLayout[0] = pipelineLayout |
| 5939 | State.PipelineLayouts[pipelineLayout] = new!PipelineLayoutObject(device: device) |
| 5940 | |
| 5941 | return ? |
| 5942 | } |
| 5943 | |
| 5944 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5945 | cmd void vkDestroyPipelineLayout( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5946 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5947 | VkPipelineLayout pipelineLayout, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5948 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5949 | deviceObject := GetDevice(device) |
| 5950 | pipelineLayoutObjects := GetPipelineLayout(pipelineLayout) |
| 5951 | assert(pipelineLayoutObjects.device == device) |
| 5952 | |
| 5953 | State.PipelineLayouts[pipelineLayout] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5954 | } |
| 5955 | |
| 5956 | |
| 5957 | // Sampler functions |
| 5958 | |
| 5959 | @threadSafety("system") |
| 5960 | cmd VkResult vkCreateSampler( |
| 5961 | VkDevice device, |
| 5962 | const VkSamplerCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5963 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5964 | VkSampler* pSampler) { |
| 5965 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO) |
| 5966 | deviceObject := GetDevice(device) |
| 5967 | |
| 5968 | sampler := ? |
| 5969 | pSampler[0] = sampler |
| 5970 | State.Samplers[sampler] = new!SamplerObject(device: device) |
| 5971 | |
| 5972 | return ? |
| 5973 | } |
| 5974 | |
| 5975 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 5976 | cmd void vkDestroySampler( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5977 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 5978 | VkSampler sampler, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5979 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5980 | deviceObject := GetDevice(device) |
| 5981 | samplerObject := GetSampler(sampler) |
| 5982 | assert(samplerObject.device == device) |
| 5983 | |
| 5984 | State.Samplers[sampler] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5985 | } |
| 5986 | |
| 5987 | |
| 5988 | // Descriptor set functions |
| 5989 | |
| 5990 | @threadSafety("system") |
| 5991 | cmd VkResult vkCreateDescriptorSetLayout( |
| 5992 | VkDevice device, |
| 5993 | const VkDescriptorSetLayoutCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 5994 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 5995 | VkDescriptorSetLayout* pSetLayout) { |
| 5996 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO) |
| 5997 | deviceObject := GetDevice(device) |
| 5998 | |
| 5999 | setLayout := ? |
| 6000 | pSetLayout[0] = setLayout |
| 6001 | State.DescriptorSetLayouts[setLayout] = new!DescriptorSetLayoutObject(device: device) |
| 6002 | |
| 6003 | return ? |
| 6004 | } |
| 6005 | |
| 6006 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6007 | cmd void vkDestroyDescriptorSetLayout( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6008 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6009 | VkDescriptorSetLayout descriptorSetLayout, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6010 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6011 | deviceObject := GetDevice(device) |
| 6012 | descriptorSetLayoutObject := GetDescriptorSetLayout(descriptorSetLayout) |
| 6013 | assert(descriptorSetLayoutObject.device == device) |
| 6014 | |
| 6015 | State.DescriptorSetLayouts[descriptorSetLayout] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6016 | } |
| 6017 | |
| 6018 | @threadSafety("system") |
| 6019 | cmd VkResult vkCreateDescriptorPool( |
| 6020 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6021 | const VkDescriptorPoolCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6022 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6023 | VkDescriptorPool* pDescriptorPool) { |
| 6024 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO) |
| 6025 | deviceObject := GetDevice(device) |
| 6026 | |
| 6027 | descriptorPool := ? |
| 6028 | pDescriptorPool[0] = descriptorPool |
| 6029 | State.DescriptorPools[descriptorPool] = new!DescriptorPoolObject(device: device) |
| 6030 | |
| 6031 | return ? |
| 6032 | } |
| 6033 | |
| 6034 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6035 | cmd void vkDestroyDescriptorPool( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6036 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6037 | VkDescriptorPool descriptorPool, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6038 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6039 | deviceObject := GetDevice(device) |
| 6040 | descriptorPoolObject := GetDescriptorPool(descriptorPool) |
| 6041 | assert(descriptorPoolObject.device == device) |
| 6042 | |
| 6043 | State.DescriptorPools[descriptorPool] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6044 | } |
| 6045 | |
| 6046 | @threadSafety("app") |
| 6047 | cmd VkResult vkResetDescriptorPool( |
| 6048 | VkDevice device, |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 6049 | VkDescriptorPool descriptorPool, |
| 6050 | VkDescriptorPoolResetFlags flags) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6051 | deviceObject := GetDevice(device) |
| 6052 | descriptorPoolObject := GetDescriptorPool(descriptorPool) |
| 6053 | assert(descriptorPoolObject.device == device) |
| 6054 | |
| 6055 | return ? |
| 6056 | } |
| 6057 | |
| 6058 | @threadSafety("app") |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6059 | cmd VkResult vkAllocateDescriptorSets( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6060 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6061 | const VkDescriptorSetAllocateInfo* pAllocateInfo, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6062 | VkDescriptorSet* pDescriptorSets) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6063 | deviceObject := GetDevice(device) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6064 | allocInfo := pAllocateInfo[0] |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 6065 | descriptorPoolObject := GetDescriptorPool(allocInfo.descriptorPool) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6066 | |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6067 | setLayouts := allocInfo.pSetLayouts[0:allocInfo.setCount] |
| 6068 | for i in (0 .. allocInfo.setCount) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6069 | setLayout := setLayouts[i] |
| 6070 | setLayoutObject := GetDescriptorSetLayout(setLayout) |
| 6071 | assert(setLayoutObject.device == device) |
| 6072 | } |
| 6073 | |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6074 | descriptorSets := pDescriptorSets[0:allocInfo.setCount] |
| 6075 | for i in (0 .. allocInfo.setCount) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6076 | descriptorSet := ? |
| 6077 | descriptorSets[i] = descriptorSet |
| 6078 | State.DescriptorSets[descriptorSet] = new!DescriptorSetObject(device: device) |
| 6079 | } |
| 6080 | |
| 6081 | return ? |
| 6082 | } |
| 6083 | |
Jesse Hall | f09c6b1 | 2015-08-15 19:54:28 -0700 | [diff] [blame] | 6084 | cmd VkResult vkFreeDescriptorSets( |
| 6085 | VkDevice device, |
| 6086 | VkDescriptorPool descriptorPool, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6087 | u32 descriptorSetCount, |
Jesse Hall | f09c6b1 | 2015-08-15 19:54:28 -0700 | [diff] [blame] | 6088 | const VkDescriptorSet* pDescriptorSets) { |
| 6089 | deviceObject := GetDevice(device) |
| 6090 | descriptorPoolObject := GetDescriptorPool(descriptorPool) |
| 6091 | |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6092 | descriptorSets := pDescriptorSets[0:descriptorSetCount] |
| 6093 | for i in (0 .. descriptorSetCount) { |
Jesse Hall | f09c6b1 | 2015-08-15 19:54:28 -0700 | [diff] [blame] | 6094 | descriptorSet := descriptorSets[i] |
| 6095 | descriptorSetObject := GetDescriptorSet(descriptorSet) |
| 6096 | assert(descriptorSetObject.device == device) |
| 6097 | State.DescriptorSets[descriptorSet] = null |
| 6098 | } |
| 6099 | |
| 6100 | return ? |
| 6101 | } |
| 6102 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6103 | cmd void vkUpdateDescriptorSets( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6104 | VkDevice device, |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 6105 | u32 descriptorWriteCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6106 | const VkWriteDescriptorSet* pDescriptorWrites, |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 6107 | u32 descriptorCopyCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6108 | const VkCopyDescriptorSet* pDescriptorCopies) { |
| 6109 | deviceObject := GetDevice(device) |
| 6110 | |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 6111 | descriptorWrites := pDescriptorWrites[0:descriptorWriteCount] |
| 6112 | for i in (0 .. descriptorWriteCount) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6113 | descriptorWrite := descriptorWrites[i] |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6114 | descriptorWriteObject := GetDescriptorSet(descriptorWrite.dstSet) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6115 | assert(descriptorWriteObject.device == device) |
| 6116 | } |
| 6117 | |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 6118 | descriptorCopies := pDescriptorCopies[0:descriptorCopyCount] |
| 6119 | for i in (0 .. descriptorCopyCount) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6120 | descriptorCopy := descriptorCopies[i] |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6121 | descriptorCopyObject := GetDescriptorSet(descriptorCopy.dstSet) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6122 | assert(descriptorCopyObject.device == device) |
| 6123 | } |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6124 | } |
| 6125 | |
| 6126 | |
| 6127 | // Framebuffer functions |
| 6128 | |
| 6129 | @threadSafety("system") |
| 6130 | cmd VkResult vkCreateFramebuffer( |
| 6131 | VkDevice device, |
| 6132 | const VkFramebufferCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6133 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6134 | VkFramebuffer* pFramebuffer) { |
| 6135 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO) |
| 6136 | deviceObject := GetDevice(device) |
| 6137 | |
| 6138 | framebuffer := ? |
| 6139 | pFramebuffer[0] = framebuffer |
| 6140 | State.Framebuffers[framebuffer] = new!FramebufferObject(device: device) |
| 6141 | |
| 6142 | return ? |
| 6143 | } |
| 6144 | |
| 6145 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6146 | cmd void vkDestroyFramebuffer( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6147 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6148 | VkFramebuffer framebuffer, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6149 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6150 | deviceObject := GetDevice(device) |
| 6151 | framebufferObject := GetFramebuffer(framebuffer) |
| 6152 | assert(framebufferObject.device == device) |
| 6153 | |
| 6154 | State.Framebuffers[framebuffer] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6155 | } |
| 6156 | |
| 6157 | |
| 6158 | // Renderpass functions |
| 6159 | |
| 6160 | @threadSafety("system") |
| 6161 | cmd VkResult vkCreateRenderPass( |
| 6162 | VkDevice device, |
| 6163 | const VkRenderPassCreateInfo* pCreateInfo, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6164 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6165 | VkRenderPass* pRenderPass) { |
| 6166 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO) |
| 6167 | deviceObject := GetDevice(device) |
| 6168 | |
| 6169 | renderpass := ? |
| 6170 | pRenderPass[0] = renderpass |
| 6171 | State.RenderPasses[renderpass] = new!RenderPassObject(device: device) |
| 6172 | |
| 6173 | return ? |
| 6174 | } |
| 6175 | |
| 6176 | @threadSafety("system") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6177 | cmd void vkDestroyRenderPass( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6178 | VkDevice device, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6179 | VkRenderPass renderPass, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6180 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6181 | deviceObject := GetDevice(device) |
| 6182 | renderPassObject := GetRenderPass(renderPass) |
| 6183 | assert(renderPassObject.device == device) |
| 6184 | |
| 6185 | State.RenderPasses[renderPass] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6186 | } |
| 6187 | |
Jesse Hall | 606a54e | 2015-11-19 22:17:28 -0800 | [diff] [blame] | 6188 | cmd void vkGetRenderAreaGranularity( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6189 | VkDevice device, |
| 6190 | VkRenderPass renderPass, |
| 6191 | VkExtent2D* pGranularity) { |
| 6192 | deviceObject := GetDevice(device) |
| 6193 | renderPassObject := GetRenderPass(renderPass) |
| 6194 | |
| 6195 | granularity := ? |
| 6196 | pGranularity[0] = granularity |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6197 | } |
| 6198 | |
| 6199 | // Command pool functions |
| 6200 | |
| 6201 | cmd VkResult vkCreateCommandPool( |
| 6202 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6203 | const VkCommandPoolCreateInfo* pCreateInfo, |
| 6204 | const VkAllocationCallbacks* pAllocator, |
| 6205 | VkCommandPool* pCommandPool) { |
| 6206 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6207 | deviceObject := GetDevice(device) |
| 6208 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6209 | commandPool := ? |
| 6210 | pCommandPool[0] = commandPool |
| 6211 | State.CommandPools[commandPool] = new!CommandPoolObject(device: device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6212 | |
| 6213 | return ? |
| 6214 | } |
| 6215 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6216 | cmd void vkDestroyCommandPool( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6217 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6218 | VkCommandPool commandPool, |
| 6219 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6220 | deviceObject := GetDevice(device) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6221 | commandPoolObject := GetCommandPool(commandPool) |
| 6222 | assert(commandPoolObject.device == device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6223 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6224 | State.CommandPools[commandPool] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6225 | } |
| 6226 | |
| 6227 | cmd VkResult vkResetCommandPool( |
| 6228 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6229 | VkCommandPool commandPool, |
| 6230 | VkCommandPoolResetFlags flags) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6231 | deviceObject := GetDevice(device) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6232 | commandPoolObject := GetCommandPool(commandPool) |
| 6233 | assert(commandPoolObject.device == device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6234 | |
| 6235 | return ? |
| 6236 | } |
| 6237 | |
| 6238 | // Command buffer functions |
| 6239 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6240 | macro void bindCommandBuffer(VkCommandBuffer commandBuffer, any obj, VkDeviceMemory memory) { |
| 6241 | memoryObject := GetDeviceMemory(memory) |
| 6242 | memoryObject.boundCommandBuffers[commandBuffer] = commandBuffer |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6243 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6244 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6245 | commandBufferObject.boundObjects[as!u64(obj)] = memory |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6246 | } |
| 6247 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6248 | macro void unbindCommandBuffer(VkCommandBuffer commandBuffer, any obj, VkDeviceMemory memory) { |
| 6249 | memoryObject := GetDeviceMemory(memory) |
| 6250 | memoryObject.boundCommandBuffers[commandBuffer] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6251 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6252 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6253 | commandBufferObject.boundObjects[as!u64(obj)] = null |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6254 | } |
| 6255 | |
| 6256 | @threadSafety("system") |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6257 | cmd VkResult vkAllocateCommandBuffers( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6258 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6259 | const VkCommandBufferAllocateInfo* pAllocateInfo, |
| 6260 | VkCommandBuffer* pCommandBuffers) { |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 6261 | assert(pAllocateInfo[0].sType == VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6262 | |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 6263 | count := pAllocateInfo[0].commandBufferCount |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6264 | commandBuffers := pCommandBuffers[0:count] |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 6265 | for i in (0 .. count) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6266 | commandBuffer := ? |
| 6267 | commandBuffers[i] = commandBuffer |
| 6268 | State.CommandBuffers[commandBuffer] = new!CommandBufferObject(device: device) |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 6269 | } |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6270 | |
| 6271 | return ? |
| 6272 | } |
| 6273 | |
| 6274 | @threadSafety("system") |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 6275 | cmd void vkFreeCommandBuffers( |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6276 | VkDevice device, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6277 | VkCommandPool commandPool, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6278 | u32 commandBufferCount, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6279 | const VkCommandBuffer* pCommandBuffers) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6280 | deviceObject := GetDevice(device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6281 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6282 | commandBuffers := pCommandBuffers[0:commandBufferCount] |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6283 | for i in (0 .. commandBufferCount) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6284 | commandBufferObject := GetCommandBuffer(commandBuffers[i]) |
| 6285 | assert(commandBufferObject.device == device) |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 6286 | // TODO: iterate over boundObjects and clear memory bindings |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6287 | State.CommandBuffers[commandBuffers[i]] = null |
Jesse Hall | fbf97b0 | 2015-11-20 14:17:03 -0800 | [diff] [blame] | 6288 | } |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6289 | } |
| 6290 | |
| 6291 | @threadSafety("app") |
| 6292 | cmd VkResult vkBeginCommandBuffer( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6293 | VkCommandBuffer commandBuffer, |
| 6294 | const VkCommandBufferBeginInfo* pBeginInfo) { |
| 6295 | assert(pBeginInfo.sType == VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO) |
| 6296 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6297 | |
| 6298 | // TODO: iterate over boundObjects and clear memory bindings |
| 6299 | |
| 6300 | return ? |
| 6301 | } |
| 6302 | |
| 6303 | @threadSafety("app") |
| 6304 | cmd VkResult vkEndCommandBuffer( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6305 | VkCommandBuffer commandBuffer) { |
| 6306 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6307 | |
| 6308 | return ? |
| 6309 | } |
| 6310 | |
| 6311 | @threadSafety("app") |
| 6312 | cmd VkResult vkResetCommandBuffer( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6313 | VkCommandBuffer commandBuffer, |
| 6314 | VkCommandBufferResetFlags flags) { |
| 6315 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6316 | |
| 6317 | // TODO: iterate over boundObjects and clear memory bindings |
| 6318 | |
| 6319 | return ? |
| 6320 | } |
| 6321 | |
| 6322 | |
| 6323 | // Command buffer building functions |
| 6324 | |
| 6325 | @threadSafety("app") |
| 6326 | cmd void vkCmdBindPipeline( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6327 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6328 | VkPipelineBindPoint pipelineBindPoint, |
| 6329 | VkPipeline pipeline) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6330 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6331 | pipelineObject := GetPipeline(pipeline) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6332 | assert(commandBufferObject.device == pipelineObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6333 | |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 6334 | queue := switch (pipelineBindPoint) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6335 | case VK_PIPELINE_BIND_POINT_COMPUTE: VK_QUEUE_COMPUTE_BIT |
| 6336 | case VK_PIPELINE_BIND_POINT_GRAPHICS: VK_QUEUE_GRAPHICS_BIT |
| 6337 | } |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6338 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, queue) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6339 | } |
| 6340 | |
| 6341 | @threadSafety("app") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6342 | cmd void vkCmdSetViewport( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6343 | VkCommandBuffer commandBuffer, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 6344 | u32 firstViewport, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6345 | u32 viewportCount, |
| 6346 | const VkViewport* pViewports) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6347 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6348 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6349 | } |
| 6350 | |
| 6351 | @threadSafety("app") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6352 | cmd void vkCmdSetScissor( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6353 | VkCommandBuffer commandBuffer, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 6354 | u32 firstScissor, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6355 | u32 scissorCount, |
| 6356 | const VkRect2D* pScissors) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6357 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6358 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6359 | } |
| 6360 | |
| 6361 | @threadSafety("app") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6362 | cmd void vkCmdSetLineWidth( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6363 | VkCommandBuffer commandBuffer, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6364 | f32 lineWidth) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6365 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6366 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6367 | } |
| 6368 | |
| 6369 | @threadSafety("app") |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6370 | cmd void vkCmdSetDepthBias( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6371 | VkCommandBuffer commandBuffer, |
Jesse Hall | a9bb62b | 2015-11-21 19:31:56 -0800 | [diff] [blame] | 6372 | f32 depthBiasConstantFactor, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6373 | f32 depthBiasClamp, |
Jesse Hall | a9bb62b | 2015-11-21 19:31:56 -0800 | [diff] [blame] | 6374 | f32 depthBiasSlopeFactor) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6375 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6376 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6377 | } |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6378 | |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6379 | @threadSafety("app") |
| 6380 | cmd void vkCmdSetBlendConstants( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6381 | VkCommandBuffer commandBuffer, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6382 | // TODO(jessehall): apic only supports 'const' on pointer types. Using |
| 6383 | // an annotation as a quick hack to pass this to the template without |
| 6384 | // having to modify the AST and semantic model. |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 6385 | @readonly f32[4] blendConstants) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6386 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6387 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6388 | } |
| 6389 | |
| 6390 | @threadSafety("app") |
| 6391 | cmd void vkCmdSetDepthBounds( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6392 | VkCommandBuffer commandBuffer, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6393 | f32 minDepthBounds, |
| 6394 | f32 maxDepthBounds) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6395 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6396 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6397 | } |
| 6398 | |
| 6399 | @threadSafety("app") |
| 6400 | cmd void vkCmdSetStencilCompareMask( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6401 | VkCommandBuffer commandBuffer, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6402 | VkStencilFaceFlags faceMask, |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 6403 | u32 compareMask) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6404 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6405 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6406 | } |
| 6407 | |
| 6408 | @threadSafety("app") |
| 6409 | cmd void vkCmdSetStencilWriteMask( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6410 | VkCommandBuffer commandBuffer, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6411 | VkStencilFaceFlags faceMask, |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 6412 | u32 writeMask) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6413 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6414 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6415 | } |
| 6416 | |
| 6417 | @threadSafety("app") |
| 6418 | cmd void vkCmdSetStencilReference( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6419 | VkCommandBuffer commandBuffer, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6420 | VkStencilFaceFlags faceMask, |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 6421 | u32 reference) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6422 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6423 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6424 | } |
| 6425 | |
| 6426 | @threadSafety("app") |
| 6427 | cmd void vkCmdBindDescriptorSets( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6428 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6429 | VkPipelineBindPoint pipelineBindPoint, |
| 6430 | VkPipelineLayout layout, |
| 6431 | u32 firstSet, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6432 | u32 descriptorSetCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6433 | const VkDescriptorSet* pDescriptorSets, |
| 6434 | u32 dynamicOffsetCount, |
| 6435 | const u32* pDynamicOffsets) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6436 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6437 | |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6438 | descriptorSets := pDescriptorSets[0:descriptorSetCount] |
| 6439 | for i in (0 .. descriptorSetCount) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6440 | descriptorSet := descriptorSets[i] |
| 6441 | descriptorSetObject := GetDescriptorSet(descriptorSet) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6442 | assert(commandBufferObject.device == descriptorSetObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6443 | } |
| 6444 | |
| 6445 | dynamicOffsets := pDynamicOffsets[0:dynamicOffsetCount] |
| 6446 | for i in (0 .. dynamicOffsetCount) { |
| 6447 | dynamicOffset := dynamicOffsets[i] |
| 6448 | } |
| 6449 | |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 6450 | queue := switch (pipelineBindPoint) { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6451 | case VK_PIPELINE_BIND_POINT_COMPUTE: VK_QUEUE_COMPUTE_BIT |
| 6452 | case VK_PIPELINE_BIND_POINT_GRAPHICS: VK_QUEUE_GRAPHICS_BIT |
| 6453 | } |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6454 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, queue) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6455 | } |
| 6456 | |
| 6457 | @threadSafety("app") |
| 6458 | cmd void vkCmdBindIndexBuffer( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6459 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6460 | VkBuffer buffer, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6461 | VkDeviceSize offset, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6462 | VkIndexType indexType) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6463 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6464 | bufferObject := GetBuffer(buffer) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6465 | assert(commandBufferObject.device == bufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6466 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6467 | bindCommandBuffer(commandBuffer, buffer, bufferObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6468 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6469 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6470 | } |
| 6471 | |
| 6472 | @threadSafety("app") |
| 6473 | cmd void vkCmdBindVertexBuffers( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6474 | VkCommandBuffer commandBuffer, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 6475 | u32 firstBinding, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6476 | u32 bindingCount, |
| 6477 | const VkBuffer* pBuffers, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6478 | const VkDeviceSize* pOffsets) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6479 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6480 | |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 6481 | // TODO: check if not [firstBinding:firstBinding+bindingCount] |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6482 | buffers := pBuffers[0:bindingCount] |
| 6483 | offsets := pOffsets[0:bindingCount] |
| 6484 | for i in (0 .. bindingCount) { |
| 6485 | buffer := buffers[i] |
| 6486 | offset := offsets[i] |
| 6487 | bufferObject := GetBuffer(buffer) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6488 | assert(commandBufferObject.device == bufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6489 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6490 | bindCommandBuffer(commandBuffer, buffer, bufferObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6491 | } |
| 6492 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6493 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6494 | } |
| 6495 | |
| 6496 | @threadSafety("app") |
| 6497 | cmd void vkCmdDraw( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6498 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6499 | u32 vertexCount, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6500 | u32 instanceCount, |
| 6501 | u32 firstVertex, |
| 6502 | u32 firstInstance) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6503 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6504 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6505 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6506 | } |
| 6507 | |
| 6508 | @threadSafety("app") |
| 6509 | cmd void vkCmdDrawIndexed( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6510 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6511 | u32 indexCount, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6512 | u32 instanceCount, |
| 6513 | u32 firstIndex, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6514 | s32 vertexOffset, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6515 | u32 firstInstance) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6516 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6517 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6518 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6519 | } |
| 6520 | |
| 6521 | @threadSafety("app") |
| 6522 | cmd void vkCmdDrawIndirect( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6523 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6524 | VkBuffer buffer, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6525 | VkDeviceSize offset, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6526 | u32 drawCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6527 | u32 stride) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6528 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6529 | bufferObject := GetBuffer(buffer) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6530 | assert(commandBufferObject.device == bufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6531 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6532 | bindCommandBuffer(commandBuffer, buffer, bufferObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6533 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6534 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6535 | } |
| 6536 | |
| 6537 | @threadSafety("app") |
| 6538 | cmd void vkCmdDrawIndexedIndirect( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6539 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6540 | VkBuffer buffer, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6541 | VkDeviceSize offset, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6542 | u32 drawCount, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6543 | u32 stride) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6544 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6545 | bufferObject := GetBuffer(buffer) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6546 | assert(commandBufferObject.device == bufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6547 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6548 | bindCommandBuffer(commandBuffer, buffer, bufferObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6549 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6550 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6551 | } |
| 6552 | |
| 6553 | @threadSafety("app") |
| 6554 | cmd void vkCmdDispatch( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6555 | VkCommandBuffer commandBuffer, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 6556 | u32 groupCountX, |
| 6557 | u32 groupCountY, |
| 6558 | u32 groupCountZ) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6559 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6560 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6561 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_COMPUTE_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6562 | } |
| 6563 | |
| 6564 | @threadSafety("app") |
| 6565 | cmd void vkCmdDispatchIndirect( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6566 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6567 | VkBuffer buffer, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6568 | VkDeviceSize offset) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6569 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6570 | bufferObject := GetBuffer(buffer) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6571 | assert(commandBufferObject.device == bufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6572 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6573 | bindCommandBuffer(commandBuffer, buffer, bufferObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6574 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6575 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_COMPUTE_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6576 | } |
| 6577 | |
| 6578 | @threadSafety("app") |
| 6579 | cmd void vkCmdCopyBuffer( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6580 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6581 | VkBuffer srcBuffer, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6582 | VkBuffer dstBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6583 | u32 regionCount, |
| 6584 | const VkBufferCopy* pRegions) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6585 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6586 | srcBufferObject := GetBuffer(srcBuffer) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6587 | dstBufferObject := GetBuffer(dstBuffer) |
| 6588 | assert(commandBufferObject.device == srcBufferObject.device) |
| 6589 | assert(commandBufferObject.device == dstBufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6590 | |
| 6591 | regions := pRegions[0:regionCount] |
| 6592 | for i in (0 .. regionCount) { |
| 6593 | region := regions[i] |
| 6594 | } |
| 6595 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6596 | bindCommandBuffer(commandBuffer, srcBuffer, srcBufferObject.memory) |
| 6597 | bindCommandBuffer(commandBuffer, dstBuffer, dstBufferObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6598 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 6599 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_TRANSFER_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6600 | } |
| 6601 | |
| 6602 | @threadSafety("app") |
| 6603 | cmd void vkCmdCopyImage( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6604 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6605 | VkImage srcImage, |
| 6606 | VkImageLayout srcImageLayout, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6607 | VkImage dstImage, |
| 6608 | VkImageLayout dstImageLayout, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6609 | u32 regionCount, |
| 6610 | const VkImageCopy* pRegions) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6611 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6612 | srcImageObject := GetImage(srcImage) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6613 | dstImageObject := GetImage(dstImage) |
| 6614 | assert(commandBufferObject.device == srcImageObject.device) |
| 6615 | assert(commandBufferObject.device == dstImageObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6616 | |
| 6617 | regions := pRegions[0:regionCount] |
| 6618 | for i in (0 .. regionCount) { |
| 6619 | region := regions[i] |
| 6620 | } |
| 6621 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6622 | bindCommandBuffer(commandBuffer, srcImage, srcImageObject.memory) |
| 6623 | bindCommandBuffer(commandBuffer, dstImage, dstImageObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6624 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 6625 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_TRANSFER_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6626 | } |
| 6627 | |
| 6628 | @threadSafety("app") |
| 6629 | cmd void vkCmdBlitImage( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6630 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6631 | VkImage srcImage, |
| 6632 | VkImageLayout srcImageLayout, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6633 | VkImage dstImage, |
| 6634 | VkImageLayout dstImageLayout, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6635 | u32 regionCount, |
| 6636 | const VkImageBlit* pRegions, |
Jesse Hall | 23ff73f | 2015-11-29 14:36:39 -0800 | [diff] [blame] | 6637 | VkFilter filter) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6638 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6639 | srcImageObject := GetImage(srcImage) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6640 | dstImageObject := GetImage(dstImage) |
| 6641 | assert(commandBufferObject.device == srcImageObject.device) |
| 6642 | assert(commandBufferObject.device == dstImageObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6643 | |
| 6644 | regions := pRegions[0:regionCount] |
| 6645 | for i in (0 .. regionCount) { |
| 6646 | region := regions[i] |
| 6647 | } |
| 6648 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6649 | bindCommandBuffer(commandBuffer, srcImage, srcImageObject.memory) |
| 6650 | bindCommandBuffer(commandBuffer, dstImage, dstImageObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6651 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6652 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6653 | } |
| 6654 | |
| 6655 | @threadSafety("app") |
| 6656 | cmd void vkCmdCopyBufferToImage( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6657 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6658 | VkBuffer srcBuffer, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6659 | VkImage dstImage, |
| 6660 | VkImageLayout dstImageLayout, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6661 | u32 regionCount, |
| 6662 | const VkBufferImageCopy* pRegions) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6663 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6664 | srcBufferObject := GetBuffer(srcBuffer) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6665 | dstImageObject := GetImage(dstImage) |
| 6666 | assert(commandBufferObject.device == srcBufferObject.device) |
| 6667 | assert(commandBufferObject.device == dstImageObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6668 | |
| 6669 | regions := pRegions[0:regionCount] |
| 6670 | for i in (0 .. regionCount) { |
| 6671 | region := regions[i] |
| 6672 | } |
| 6673 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6674 | bindCommandBuffer(commandBuffer, srcBuffer, srcBufferObject.memory) |
| 6675 | bindCommandBuffer(commandBuffer, dstImage, dstImageObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6676 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 6677 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_TRANSFER_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6678 | } |
| 6679 | |
| 6680 | @threadSafety("app") |
| 6681 | cmd void vkCmdCopyImageToBuffer( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6682 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6683 | VkImage srcImage, |
| 6684 | VkImageLayout srcImageLayout, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6685 | VkBuffer dstBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6686 | u32 regionCount, |
| 6687 | const VkBufferImageCopy* pRegions) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6688 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6689 | srcImageObject := GetImage(srcImage) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6690 | dstBufferObject := GetBuffer(dstBuffer) |
| 6691 | assert(commandBufferObject.device == srcImageObject.device) |
| 6692 | assert(commandBufferObject.device == dstBufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6693 | |
| 6694 | regions := pRegions[0:regionCount] |
| 6695 | for i in (0 .. regionCount) { |
| 6696 | region := regions[i] |
| 6697 | } |
| 6698 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6699 | bindCommandBuffer(commandBuffer, srcImage, srcImageObject.memory) |
| 6700 | bindCommandBuffer(commandBuffer, dstBuffer, dstBufferObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6701 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 6702 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_TRANSFER_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6703 | } |
| 6704 | |
| 6705 | @threadSafety("app") |
| 6706 | cmd void vkCmdUpdateBuffer( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6707 | VkCommandBuffer commandBuffer, |
| 6708 | VkBuffer dstBuffer, |
| 6709 | VkDeviceSize dstOffset, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6710 | VkDeviceSize dataSize, |
Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 6711 | const void* pData) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6712 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6713 | dstBufferObject := GetBuffer(dstBuffer) |
| 6714 | assert(commandBufferObject.device == dstBufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6715 | |
| 6716 | data := pData[0:dataSize] |
| 6717 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6718 | bindCommandBuffer(commandBuffer, dstBuffer, dstBufferObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6719 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 6720 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_TRANSFER_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6721 | } |
| 6722 | |
| 6723 | @threadSafety("app") |
| 6724 | cmd void vkCmdFillBuffer( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6725 | VkCommandBuffer commandBuffer, |
| 6726 | VkBuffer dstBuffer, |
| 6727 | VkDeviceSize dstOffset, |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 6728 | VkDeviceSize size, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6729 | u32 data) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6730 | commandBufferObject := GetCommandBuffer(commandBuffer) |
| 6731 | dstBufferObject := GetBuffer(dstBuffer) |
| 6732 | assert(commandBufferObject.device == dstBufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6733 | |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 6734 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_TRANSFER_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6735 | } |
| 6736 | |
| 6737 | @threadSafety("app") |
| 6738 | cmd void vkCmdClearColorImage( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6739 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6740 | VkImage image, |
| 6741 | VkImageLayout imageLayout, |
| 6742 | const VkClearColorValue* pColor, |
| 6743 | u32 rangeCount, |
| 6744 | const VkImageSubresourceRange* pRanges) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6745 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6746 | imageObject := GetImage(image) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6747 | assert(commandBufferObject.device == imageObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6748 | |
| 6749 | ranges := pRanges[0:rangeCount] |
| 6750 | for i in (0 .. rangeCount) { |
| 6751 | range := ranges[i] |
| 6752 | } |
| 6753 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6754 | bindCommandBuffer(commandBuffer, image, imageObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6755 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6756 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6757 | } |
| 6758 | |
| 6759 | @threadSafety("app") |
| 6760 | cmd void vkCmdClearDepthStencilImage( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6761 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6762 | VkImage image, |
| 6763 | VkImageLayout imageLayout, |
Jesse Hall | 5ae3abb | 2015-10-08 14:00:22 -0700 | [diff] [blame] | 6764 | const VkClearDepthStencilValue* pDepthStencil, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6765 | u32 rangeCount, |
| 6766 | const VkImageSubresourceRange* pRanges) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6767 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6768 | imageObject := GetImage(image) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6769 | assert(commandBufferObject.device == imageObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6770 | |
| 6771 | ranges := pRanges[0:rangeCount] |
| 6772 | for i in (0 .. rangeCount) { |
| 6773 | range := ranges[i] |
| 6774 | } |
| 6775 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6776 | bindCommandBuffer(commandBuffer, image, imageObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6777 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6778 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6779 | } |
| 6780 | |
| 6781 | @threadSafety("app") |
Jesse Hall | ae38f73 | 2015-11-19 21:32:50 -0800 | [diff] [blame] | 6782 | cmd void vkCmdClearAttachments( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6783 | VkCommandBuffer commandBuffer, |
Jesse Hall | ae38f73 | 2015-11-19 21:32:50 -0800 | [diff] [blame] | 6784 | u32 attachmentCount, |
| 6785 | const VkClearAttachment* pAttachments, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6786 | u32 rectCount, |
Jesse Hall | a15a4bf | 2015-11-19 22:48:02 -0800 | [diff] [blame] | 6787 | const VkClearRect* pRects) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6788 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6789 | |
| 6790 | rects := pRects[0:rectCount] |
| 6791 | for i in (0 .. rectCount) { |
| 6792 | rect := rects[i] |
| 6793 | } |
| 6794 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6795 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6796 | } |
| 6797 | |
| 6798 | @threadSafety("app") |
| 6799 | cmd void vkCmdResolveImage( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6800 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6801 | VkImage srcImage, |
| 6802 | VkImageLayout srcImageLayout, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6803 | VkImage dstImage, |
| 6804 | VkImageLayout dstImageLayout, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6805 | u32 regionCount, |
| 6806 | const VkImageResolve* pRegions) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6807 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6808 | srcImageObject := GetImage(srcImage) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6809 | dstImageObject := GetImage(dstImage) |
| 6810 | assert(commandBufferObject.device == srcImageObject.device) |
| 6811 | assert(commandBufferObject.device == dstImageObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6812 | |
| 6813 | regions := pRegions[0:regionCount] |
| 6814 | for i in (0 .. regionCount) { |
| 6815 | region := regions[i] |
| 6816 | } |
| 6817 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6818 | bindCommandBuffer(commandBuffer, srcImage, srcImageObject.memory) |
| 6819 | bindCommandBuffer(commandBuffer, dstImage, dstImageObject.memory) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6820 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6821 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6822 | } |
| 6823 | |
| 6824 | @threadSafety("app") |
| 6825 | cmd void vkCmdSetEvent( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6826 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6827 | VkEvent event, |
| 6828 | VkPipelineStageFlags stageMask) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6829 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6830 | eventObject := GetEvent(event) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6831 | assert(commandBufferObject.device == eventObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6832 | } |
| 6833 | |
| 6834 | @threadSafety("app") |
| 6835 | cmd void vkCmdResetEvent( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6836 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6837 | VkEvent event, |
| 6838 | VkPipelineStageFlags stageMask) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6839 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6840 | eventObject := GetEvent(event) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6841 | assert(commandBufferObject.device == eventObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6842 | } |
| 6843 | |
| 6844 | @threadSafety("app") |
| 6845 | cmd void vkCmdWaitEvents( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6846 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6847 | u32 eventCount, |
| 6848 | const VkEvent* pEvents, |
| 6849 | VkPipelineStageFlags srcStageMask, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6850 | VkPipelineStageFlags dstStageMask, |
| 6851 | u32 memoryBarrierCount, |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 6852 | const VkMemoryBarrier* pMemoryBarriers, |
| 6853 | u32 bufferMemoryBarrierCount, |
| 6854 | const VkBufferMemoryBarrier* pBufferMemoryBarriers, |
| 6855 | u32 imageMemoryBarrierCount, |
| 6856 | const VkImageMemoryBarrier* pImageMemoryBarriers) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6857 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6858 | |
| 6859 | events := pEvents[0:eventCount] |
| 6860 | for i in (0 .. eventCount) { |
| 6861 | event := events[i] |
| 6862 | eventObject := GetEvent(event) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6863 | assert(commandBufferObject.device == eventObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6864 | } |
| 6865 | |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 6866 | memoryBarriers := pMemoryBarriers[0:memoryBarrierCount] |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6867 | for i in (0 .. memoryBarrierCount) { |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 6868 | memoryBarrier := memoryBarriers[i] |
| 6869 | } |
| 6870 | bufferMemoryBarriers := pBufferMemoryBarriers[0:bufferMemoryBarrierCount] |
| 6871 | for i in (0 .. bufferMemoryBarrierCount) { |
| 6872 | bufferMemoryBarrier := bufferMemoryBarriers[i] |
| 6873 | bufferObject := GetBuffer(bufferMemoryBarrier.buffer) |
| 6874 | assert(bufferObject.device == commandBufferObject.device) |
| 6875 | } |
| 6876 | imageMemoryBarriers := pImageMemoryBarriers[0:imageMemoryBarrierCount] |
| 6877 | for i in (0 .. imageMemoryBarrierCount) { |
| 6878 | imageMemoryBarrier := imageMemoryBarriers[i] |
| 6879 | imageObject := GetImage(imageMemoryBarrier.image) |
| 6880 | assert(imageObject.device == commandBufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6881 | } |
| 6882 | } |
| 6883 | |
| 6884 | @threadSafety("app") |
| 6885 | cmd void vkCmdPipelineBarrier( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6886 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6887 | VkPipelineStageFlags srcStageMask, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6888 | VkPipelineStageFlags dstStageMask, |
Jesse Hall | dc6d36c | 2015-11-29 19:12:15 -0800 | [diff] [blame] | 6889 | VkDependencyFlags dependencyFlags, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6890 | u32 memoryBarrierCount, |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 6891 | const VkMemoryBarrier* pMemoryBarriers, |
| 6892 | u32 bufferMemoryBarrierCount, |
| 6893 | const VkBufferMemoryBarrier* pBufferMemoryBarriers, |
| 6894 | u32 imageMemoryBarrierCount, |
| 6895 | const VkImageMemoryBarrier* pImageMemoryBarriers) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6896 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6897 | |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 6898 | memoryBarriers := pMemoryBarriers[0:memoryBarrierCount] |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6899 | for i in (0 .. memoryBarrierCount) { |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 6900 | memoryBarrier := memoryBarriers[i] |
| 6901 | } |
| 6902 | bufferMemoryBarriers := pBufferMemoryBarriers[0:bufferMemoryBarrierCount] |
| 6903 | for i in (0 .. bufferMemoryBarrierCount) { |
| 6904 | bufferMemoryBarrier := bufferMemoryBarriers[i] |
| 6905 | bufferObject := GetBuffer(bufferMemoryBarrier.buffer) |
| 6906 | assert(bufferObject.device == commandBufferObject.device) |
| 6907 | } |
| 6908 | imageMemoryBarriers := pImageMemoryBarriers[0:imageMemoryBarrierCount] |
| 6909 | for i in (0 .. imageMemoryBarrierCount) { |
| 6910 | imageMemoryBarrier := imageMemoryBarriers[i] |
| 6911 | imageObject := GetImage(imageMemoryBarrier.image) |
| 6912 | assert(imageObject.device == commandBufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6913 | } |
| 6914 | } |
| 6915 | |
| 6916 | @threadSafety("app") |
| 6917 | cmd void vkCmdBeginQuery( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6918 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6919 | VkQueryPool queryPool, |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 6920 | u32 query, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6921 | VkQueryControlFlags flags) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6922 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6923 | queryPoolObject := GetQueryPool(queryPool) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6924 | assert(commandBufferObject.device == queryPoolObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6925 | } |
| 6926 | |
| 6927 | @threadSafety("app") |
| 6928 | cmd void vkCmdEndQuery( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6929 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6930 | VkQueryPool queryPool, |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 6931 | u32 query) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6932 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6933 | queryPoolObject := GetQueryPool(queryPool) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6934 | assert(commandBufferObject.device == queryPoolObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6935 | } |
| 6936 | |
| 6937 | @threadSafety("app") |
| 6938 | cmd void vkCmdResetQueryPool( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6939 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6940 | VkQueryPool queryPool, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 6941 | u32 firstQuery, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6942 | u32 queryCount) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6943 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6944 | queryPoolObject := GetQueryPool(queryPool) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6945 | assert(commandBufferObject.device == queryPoolObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6946 | } |
| 6947 | |
| 6948 | @threadSafety("app") |
| 6949 | cmd void vkCmdWriteTimestamp( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6950 | VkCommandBuffer commandBuffer, |
Jesse Hall | 6f39a6d | 2015-11-24 11:08:36 -0800 | [diff] [blame] | 6951 | VkPipelineStageFlagBits pipelineStage, |
Jesse Hall | a3a7a1d | 2015-11-24 11:37:23 -0800 | [diff] [blame] | 6952 | VkQueryPool queryPool, |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 6953 | u32 query) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6954 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | a3a7a1d | 2015-11-24 11:37:23 -0800 | [diff] [blame] | 6955 | queryPoolObject := GetQueryPool(queryPool) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6956 | assert(commandBufferObject.device == queryPoolObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6957 | } |
| 6958 | |
| 6959 | @threadSafety("app") |
| 6960 | cmd void vkCmdCopyQueryPoolResults( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6961 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6962 | VkQueryPool queryPool, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 6963 | u32 firstQuery, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6964 | u32 queryCount, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6965 | VkBuffer dstBuffer, |
| 6966 | VkDeviceSize dstOffset, |
Jesse Hall | a9bb62b | 2015-11-21 19:31:56 -0800 | [diff] [blame] | 6967 | VkDeviceSize stride, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6968 | VkQueryResultFlags flags) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6969 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6970 | queryPoolObject := GetQueryPool(queryPool) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6971 | dstBufferObject := GetBuffer(dstBuffer) |
| 6972 | assert(commandBufferObject.device == queryPoolObject.device) |
| 6973 | assert(commandBufferObject.device == dstBufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6974 | } |
| 6975 | |
| 6976 | cmd void vkCmdPushConstants( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6977 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6978 | VkPipelineLayout layout, |
| 6979 | VkShaderStageFlags stageFlags, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 6980 | u32 offset, |
| 6981 | u32 size, |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 6982 | const void* pValues) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6983 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6984 | layoutObject := GetPipelineLayout(layout) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6985 | assert(commandBufferObject.device == layoutObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6986 | } |
| 6987 | |
| 6988 | @threadSafety("app") |
| 6989 | cmd void vkCmdBeginRenderPass( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6990 | VkCommandBuffer commandBuffer, |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6991 | const VkRenderPassBeginInfo* pRenderPassBegin, |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 6992 | VkSubpassContents contents) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6993 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6994 | renderPassObject := GetRenderPass(pRenderPassBegin.renderPass) |
| 6995 | framebufferObject := GetFramebuffer(pRenderPassBegin.framebuffer) |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6996 | assert(commandBufferObject.device == renderPassObject.device) |
| 6997 | assert(commandBufferObject.device == framebufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 6998 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 6999 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 7000 | } |
| 7001 | |
| 7002 | cmd void vkCmdNextSubpass( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 7003 | VkCommandBuffer commandBuffer, |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 7004 | VkSubpassContents contents) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 7005 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 7006 | } |
| 7007 | |
| 7008 | @threadSafety("app") |
| 7009 | cmd void vkCmdEndRenderPass( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 7010 | VkCommandBuffer commandBuffer) { |
| 7011 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 7012 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 7013 | commandBufferObject.queueFlags = AddQueueFlag(commandBufferObject.queueFlags, VK_QUEUE_GRAPHICS_BIT) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 7014 | } |
| 7015 | |
| 7016 | cmd void vkCmdExecuteCommands( |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 7017 | VkCommandBuffer commandBuffer, |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 7018 | u32 commandBufferCount, |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 7019 | const VkCommandBuffer* pCommandBuffers) { |
| 7020 | commandBufferObject := GetCommandBuffer(commandBuffer) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 7021 | |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 7022 | commandBuffers := pCommandBuffers[0:commandBufferCount] |
| 7023 | for i in (0 .. commandBufferCount) { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 7024 | secondaryCommandBuffer := commandBuffers[i] |
| 7025 | secondaryCommandBufferObject := GetCommandBuffer(secondaryCommandBuffer) |
| 7026 | assert(commandBufferObject.device == secondaryCommandBufferObject.device) |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 7027 | } |
| 7028 | } |
| 7029 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7030 | @extension("VK_KHR_surface") // 1 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7031 | cmd void vkDestroySurfaceKHR( |
| 7032 | VkInstance instance, |
Jesse Hall | 0e74f00 | 2015-11-30 11:37:59 -0800 | [diff] [blame] | 7033 | VkSurfaceKHR surface, |
| 7034 | const VkAllocationCallbacks* pAllocator) { |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7035 | instanceObject := GetInstance(instance) |
| 7036 | surfaceObject := GetSurface(surface) |
| 7037 | assert(surfaceObject.instance == instance) |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7038 | |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7039 | State.Surfaces[surface] = null |
Jesse Hall | 2818f93 | 2015-11-19 21:19:17 -0800 | [diff] [blame] | 7040 | } |
| 7041 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7042 | @extension("VK_KHR_surface") // 1 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7043 | cmd VkResult vkGetPhysicalDeviceSurfaceSupportKHR( |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7044 | VkPhysicalDevice physicalDevice, |
| 7045 | u32 queueFamilyIndex, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7046 | VkSurfaceKHR surface, |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 7047 | VkBool32* pSupported) { |
| 7048 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7049 | |
| 7050 | return ? |
| 7051 | } |
| 7052 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7053 | @extension("VK_KHR_surface") // 1 |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 7054 | cmd VkResult vkGetPhysicalDeviceSurfaceCapabilitiesKHR( |
| 7055 | VkPhysicalDevice physicalDevice, |
| 7056 | VkSurfaceKHR surface, |
| 7057 | VkSurfaceCapabilitiesKHR* pSurfaceCapabilities) { |
| 7058 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 7059 | |
| 7060 | surfaceCapabilities := ? |
| 7061 | pSurfaceCapabilities[0] = surfaceCapabilities |
| 7062 | |
| 7063 | return ? |
| 7064 | } |
| 7065 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7066 | @extension("VK_KHR_surface") // 1 |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 7067 | cmd VkResult vkGetPhysicalDeviceSurfaceFormatsKHR( |
| 7068 | VkPhysicalDevice physicalDevice, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7069 | VkSurfaceKHR surface, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 7070 | u32* pSurfaceFormatCount, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7071 | VkSurfaceFormatKHR* pSurfaceFormats) { |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 7072 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7073 | |
| 7074 | count := as!u32(?) |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 7075 | pSurfaceFormatCount[0] = count |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7076 | surfaceFormats := pSurfaceFormats[0:count] |
| 7077 | |
| 7078 | for i in (0 .. count) { |
| 7079 | surfaceFormat := ? |
| 7080 | surfaceFormats[i] = surfaceFormat |
| 7081 | } |
| 7082 | |
| 7083 | return ? |
| 7084 | } |
| 7085 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7086 | @extension("VK_KHR_surface") // 1 |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 7087 | cmd VkResult vkGetPhysicalDeviceSurfacePresentModesKHR( |
| 7088 | VkPhysicalDevice physicalDevice, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7089 | VkSurfaceKHR surface, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 7090 | u32* pPresentModeCount, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7091 | VkPresentModeKHR* pPresentModes) { |
Jesse Hall | b00daad | 2015-11-29 19:46:20 -0800 | [diff] [blame] | 7092 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7093 | |
| 7094 | count := as!u32(?) |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 7095 | pPresentModeCount[0] = count |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7096 | presentModes := pPresentModes[0:count] |
| 7097 | |
| 7098 | for i in (0 .. count) { |
| 7099 | presentMode := ? |
| 7100 | presentModes[i] = presentMode |
| 7101 | } |
| 7102 | |
| 7103 | return ? |
| 7104 | } |
| 7105 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7106 | @extension("VK_KHR_swapchain") // 2 |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7107 | cmd VkResult vkCreateSwapchainKHR( |
| 7108 | VkDevice device, |
| 7109 | const VkSwapchainCreateInfoKHR* pCreateInfo, |
Jesse Hall | 0e74f00 | 2015-11-30 11:37:59 -0800 | [diff] [blame] | 7110 | const VkAllocationCallbacks* pAllocator, |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7111 | VkSwapchainKHR* pSwapchain) { |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7112 | assert(pCreateInfo.sType == VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR) |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7113 | deviceObject := GetDevice(device) |
| 7114 | |
| 7115 | swapchain := ? |
| 7116 | pSwapchain[0] = swapchain |
| 7117 | State.Swapchains[swapchain] = new!SwapchainObject(device: device) |
| 7118 | |
| 7119 | return ? |
| 7120 | } |
| 7121 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7122 | @extension("VK_KHR_swapchain") // 2 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7123 | cmd void vkDestroySwapchainKHR( |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7124 | VkDevice device, |
Jesse Hall | 0e74f00 | 2015-11-30 11:37:59 -0800 | [diff] [blame] | 7125 | VkSwapchainKHR swapchain, |
| 7126 | const VkAllocationCallbacks* pAllocator) { |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7127 | deviceObject := GetDevice(device) |
| 7128 | swapchainObject := GetSwapchain(swapchain) |
| 7129 | assert(swapchainObject.device == device) |
| 7130 | |
| 7131 | State.Swapchains[swapchain] = null |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7132 | } |
| 7133 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7134 | @extension("VK_KHR_swapchain") // 2 |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7135 | cmd VkResult vkGetSwapchainImagesKHR( |
| 7136 | VkDevice device, |
| 7137 | VkSwapchainKHR swapchain, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 7138 | u32* pSwapchainImageCount, |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7139 | VkImage* pSwapchainImages) { |
| 7140 | deviceObject := GetDevice(device) |
| 7141 | |
| 7142 | count := as!u32(?) |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 7143 | pSwapchainImageCount[0] = count |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7144 | swapchainImages := pSwapchainImages[0:count] |
| 7145 | |
| 7146 | for i in (0 .. count) { |
| 7147 | swapchainImage := ? |
| 7148 | swapchainImages[i] = swapchainImage |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7149 | State.Images[swapchainImage] = new!ImageObject(device: device) |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7150 | } |
| 7151 | |
| 7152 | return ? |
| 7153 | } |
| 7154 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7155 | @extension("VK_KHR_swapchain") // 2 |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7156 | cmd VkResult vkAcquireNextImageKHR( |
| 7157 | VkDevice device, |
| 7158 | VkSwapchainKHR swapchain, |
| 7159 | u64 timeout, |
| 7160 | VkSemaphore semaphore, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7161 | VkFence fence, |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7162 | u32* pImageIndex) { |
| 7163 | deviceObject := GetDevice(device) |
| 7164 | swapchainObject := GetSwapchain(swapchain) |
| 7165 | |
| 7166 | imageIndex := ? |
| 7167 | pImageIndex[0] = imageIndex |
| 7168 | |
| 7169 | return ? |
| 7170 | } |
| 7171 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7172 | @extension("VK_KHR_swapchain") // 2 |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7173 | cmd VkResult vkQueuePresentKHR( |
| 7174 | VkQueue queue, |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 7175 | const VkPresentInfoKHR* pPresentInfo) { |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 7176 | queueObject := GetQueue(queue) |
| 7177 | |
| 7178 | presentInfo := ? |
| 7179 | pPresentInfo[0] = presentInfo |
| 7180 | |
| 7181 | return ? |
| 7182 | } |
| 7183 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7184 | @extension("VK_KHR_display") // 3 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7185 | cmd VkResult vkGetPhysicalDeviceDisplayPropertiesKHR( |
| 7186 | VkPhysicalDevice physicalDevice, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 7187 | u32* pPropertyCount, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7188 | VkDisplayPropertiesKHR* pProperties) { |
| 7189 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 7190 | return ? |
| 7191 | } |
| 7192 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7193 | @extension("VK_KHR_display") // 3 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7194 | cmd VkResult vkGetPhysicalDeviceDisplayPlanePropertiesKHR( |
| 7195 | VkPhysicalDevice physicalDevice, |
| 7196 | u32* pPropertyCount, |
| 7197 | VkDisplayPlanePropertiesKHR* pProperties) { |
| 7198 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 7199 | return ? |
| 7200 | } |
| 7201 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7202 | @extension("VK_KHR_display") // 3 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7203 | cmd VkResult vkGetDisplayPlaneSupportedDisplaysKHR( |
| 7204 | VkPhysicalDevice physicalDevice, |
Jesse Hall | 3dd678a | 2016-01-08 21:52:01 -0800 | [diff] [blame] | 7205 | u32 planeIndex, |
Jesse Hall | f4ab2b1 | 2015-11-30 16:04:55 -0800 | [diff] [blame] | 7206 | u32* pDisplayCount, |
| 7207 | VkDisplayKHR* pDisplays) { |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7208 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 7209 | return ? |
| 7210 | } |
| 7211 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7212 | @extension("VK_KHR_display") // 3 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7213 | cmd VkResult vkGetDisplayModePropertiesKHR( |
| 7214 | VkPhysicalDevice physicalDevice, |
| 7215 | VkDisplayKHR display, |
Jesse Hall | 03b6fe1 | 2015-11-24 12:44:21 -0800 | [diff] [blame] | 7216 | u32* pPropertyCount, |
| 7217 | VkDisplayModePropertiesKHR* pProperties) { |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7218 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 7219 | return ? |
| 7220 | } |
| 7221 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7222 | @extension("VK_KHR_display") // 3 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7223 | cmd VkResult vkCreateDisplayModeKHR( |
| 7224 | VkPhysicalDevice physicalDevice, |
| 7225 | VkDisplayKHR display, |
| 7226 | const VkDisplayModeCreateInfoKHR* pCreateInfo, |
Jesse Hall | 0e74f00 | 2015-11-30 11:37:59 -0800 | [diff] [blame] | 7227 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7228 | VkDisplayModeKHR* pMode) { |
| 7229 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 7230 | return ? |
| 7231 | } |
| 7232 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7233 | @extension("VK_KHR_display") // 3 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7234 | cmd VkResult vkGetDisplayPlaneCapabilitiesKHR( |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7235 | VkPhysicalDevice physicalDevice, |
Jesse Hall | 9ba8bc8 | 2015-11-30 16:22:16 -0800 | [diff] [blame] | 7236 | VkDisplayModeKHR mode, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7237 | u32 planeIndex, |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7238 | VkDisplayPlaneCapabilitiesKHR* pCapabilities) { |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7239 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 7240 | return ? |
| 7241 | } |
| 7242 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7243 | @extension("VK_KHR_display") // 3 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7244 | cmd VkResult vkCreateDisplayPlaneSurfaceKHR( |
| 7245 | VkInstance instance, |
| 7246 | const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, |
Jesse Hall | 0e74f00 | 2015-11-30 11:37:59 -0800 | [diff] [blame] | 7247 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7248 | VkSurfaceKHR* pSurface) { |
| 7249 | return ? |
| 7250 | } |
| 7251 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7252 | @extension("VK_KHR_display_swapchain") // 4 |
Jesse Hall | 9ba8bc8 | 2015-11-30 16:22:16 -0800 | [diff] [blame] | 7253 | cmd VkResult vkCreateSharedSwapchainsKHR( |
| 7254 | VkDevice device, |
| 7255 | u32 swapchainCount, |
| 7256 | const VkSwapchainCreateInfoKHR* pCreateInfos, |
| 7257 | const VkAllocationCallbacks* pAllocator, |
| 7258 | VkSwapchainKHR* pSwapchains) { |
| 7259 | return ? |
| 7260 | } |
| 7261 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7262 | @extension("VK_KHR_xlib_surface") // 5 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7263 | cmd VkResult vkCreateXlibSurfaceKHR( |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7264 | VkInstance instance, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 7265 | const VkXlibSurfaceCreateInfoKHR* pCreateInfo, |
Jesse Hall | 0e74f00 | 2015-11-30 11:37:59 -0800 | [diff] [blame] | 7266 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7267 | VkSurfaceKHR* pSurface) { |
| 7268 | instanceObject := GetInstance(instance) |
| 7269 | return ? |
| 7270 | } |
| 7271 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7272 | @extension("VK_KHR_xlib_surface") // 5 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7273 | cmd VkBool32 vkGetPhysicalDeviceXlibPresentationSupportKHR( |
| 7274 | VkPhysicalDevice physicalDevice, |
| 7275 | u32 queueFamilyIndex, |
| 7276 | platform.Display* dpy, |
Jesse Hall | 65ab552 | 2015-11-30 00:07:16 -0800 | [diff] [blame] | 7277 | platform.VisualID visualID) { |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7278 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 7279 | return ? |
| 7280 | } |
| 7281 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7282 | @extension("VK_KHR_xcb_surface") // 6 |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 7283 | cmd VkResult vkCreateXcbSurfaceKHR( |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7284 | VkInstance instance, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 7285 | const VkXcbSurfaceCreateInfoKHR* pCreateInfo, |
Jesse Hall | 0e74f00 | 2015-11-30 11:37:59 -0800 | [diff] [blame] | 7286 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7287 | VkSurfaceKHR* pSurface) { |
| 7288 | instanceObject := GetInstance(instance) |
| 7289 | return ? |
| 7290 | } |
| 7291 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7292 | @extension("VK_KHR_xcb_surface") // 6 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7293 | cmd VkBool32 vkGetPhysicalDeviceXcbPresentationSupportKHR( |
| 7294 | VkPhysicalDevice physicalDevice, |
| 7295 | u32 queueFamilyIndex, |
| 7296 | platform.xcb_connection_t* connection, |
| 7297 | platform.xcb_visualid_t visual_id) { |
| 7298 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 7299 | return ? |
| 7300 | } |
| 7301 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7302 | @extension("VK_KHR_wayland_surface") // 7 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7303 | cmd VkResult vkCreateWaylandSurfaceKHR( |
| 7304 | VkInstance instance, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 7305 | const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, |
Jesse Hall | 0e74f00 | 2015-11-30 11:37:59 -0800 | [diff] [blame] | 7306 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7307 | VkSurfaceKHR* pSurface) { |
| 7308 | instanceObject := GetInstance(instance) |
| 7309 | return ? |
| 7310 | } |
| 7311 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7312 | @extension("VK_KHR_wayland_surface") // 7 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7313 | cmd VkBool32 vkGetPhysicalDeviceWaylandPresentationSupportKHR( |
| 7314 | VkPhysicalDevice physicalDevice, |
| 7315 | u32 queueFamilyIndex, |
| 7316 | platform.wl_display* display) { |
| 7317 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 7318 | return ? |
| 7319 | } |
| 7320 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7321 | @extension("VK_KHR_mir_surface") // 8 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7322 | cmd VkResult vkCreateMirSurfaceKHR( |
| 7323 | VkInstance instance, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 7324 | const VkMirSurfaceCreateInfoKHR* pCreateInfo, |
Jesse Hall | 0e74f00 | 2015-11-30 11:37:59 -0800 | [diff] [blame] | 7325 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7326 | VkSurfaceKHR* pSurface) { |
| 7327 | instanceObject := GetInstance(instance) |
| 7328 | return ? |
| 7329 | } |
| 7330 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7331 | @extension("VK_KHR_mir_surface") // 8 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7332 | cmd VkBool32 vkGetPhysicalDeviceMirPresentationSupportKHR( |
| 7333 | VkPhysicalDevice physicalDevice, |
| 7334 | u32 queueFamilyIndex, |
| 7335 | platform.MirConnection* connection) { |
| 7336 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
| 7337 | return ? |
| 7338 | } |
| 7339 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7340 | @extension("VK_KHR_android_surface") // 9 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7341 | cmd VkResult vkCreateAndroidSurfaceKHR( |
| 7342 | VkInstance instance, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 7343 | const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, |
Jesse Hall | 0e74f00 | 2015-11-30 11:37:59 -0800 | [diff] [blame] | 7344 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7345 | VkSurfaceKHR* pSurface) { |
| 7346 | instanceObject := GetInstance(instance) |
| 7347 | return ? |
| 7348 | } |
| 7349 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7350 | @extension("VK_KHR_win32_surface") // 10 |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7351 | cmd VkResult vkCreateWin32SurfaceKHR( |
| 7352 | VkInstance instance, |
Jesse Hall | f9fa9a5 | 2016-01-08 16:08:51 -0800 | [diff] [blame] | 7353 | const VkWin32SurfaceCreateInfoKHR* pCreateInfo, |
Jesse Hall | 0e74f00 | 2015-11-30 11:37:59 -0800 | [diff] [blame] | 7354 | const VkAllocationCallbacks* pAllocator, |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 7355 | VkSurfaceKHR* pSurface) { |
| 7356 | instanceObject := GetInstance(instance) |
| 7357 | return ? |
| 7358 | } |
| 7359 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7360 | @extension("VK_KHR_win32_surface") // 10 |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7361 | cmd VkResult vkGetPhysicalDeviceWin32PresentationSupportKHR( |
| 7362 | VkPhysicalDevice physicalDevice, |
| 7363 | u32 queueFamilyIndex) { |
Jesse Hall | e2948d8 | 2016-02-25 04:19:32 -0800 | [diff] [blame] | 7364 | physicalDeviceObject := GetPhysicalDevice(physicalDevice) |
Jesse Hall | a642925 | 2015-11-29 18:59:42 -0800 | [diff] [blame] | 7365 | return ? |
| 7366 | } |
| 7367 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7368 | @extension("VK_ANDROID_native_buffer") // 11 |
Jesse Hall | d1abd74 | 2017-02-09 21:45:51 -0800 | [diff] [blame] | 7369 | @optional |
Chia-I Wu | b262ddc | 2016-03-22 07:38:20 +0800 | [diff] [blame] | 7370 | cmd VkResult vkGetSwapchainGrallocUsageANDROID( |
| 7371 | VkDevice device, |
| 7372 | VkFormat format, |
| 7373 | VkImageUsageFlags imageUsage, |
Jesse Hall | d1abd74 | 2017-02-09 21:45:51 -0800 | [diff] [blame] | 7374 | s32* grallocUsage) { |
Chia-I Wu | b262ddc | 2016-03-22 07:38:20 +0800 | [diff] [blame] | 7375 | return ? |
| 7376 | } |
| 7377 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7378 | @extension("VK_ANDROID_native_buffer") // 11 |
Jesse Hall | d1abd74 | 2017-02-09 21:45:51 -0800 | [diff] [blame] | 7379 | @optional |
Chris Forbes | 8e4438b | 2016-12-07 16:26:49 +1300 | [diff] [blame] | 7380 | cmd VkResult vkGetSwapchainGrallocUsage2ANDROID( |
| 7381 | VkDevice device, |
| 7382 | VkFormat format, |
| 7383 | VkImageUsageFlags imageUsage, |
| 7384 | VkSwapchainImageUsageFlagsANDROID swapchainImageUsage, |
Jesse Hall | d1abd74 | 2017-02-09 21:45:51 -0800 | [diff] [blame] | 7385 | u64* grallocConsumerUsage, |
| 7386 | u64* grallocProducerUsage) { |
Chris Forbes | 8e4438b | 2016-12-07 16:26:49 +1300 | [diff] [blame] | 7387 | return ? |
| 7388 | } |
| 7389 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7390 | @extension("VK_ANDROID_native_buffer") // 11 |
Chia-I Wu | b262ddc | 2016-03-22 07:38:20 +0800 | [diff] [blame] | 7391 | cmd VkResult vkAcquireImageANDROID( |
| 7392 | VkDevice device, |
| 7393 | VkImage image, |
| 7394 | int nativeFenceFd, |
| 7395 | VkSemaphore semaphore, |
| 7396 | VkFence fence) { |
| 7397 | return ? |
| 7398 | } |
| 7399 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7400 | @extension("VK_ANDROID_native_buffer") // 11 |
Chia-I Wu | b262ddc | 2016-03-22 07:38:20 +0800 | [diff] [blame] | 7401 | cmd VkResult vkQueueSignalReleaseImageANDROID( |
| 7402 | VkQueue queue, |
| 7403 | u32 waitSemaphoreCount, |
| 7404 | const VkSemaphore* pWaitSemaphores, |
| 7405 | VkImage image, |
| 7406 | int* pNativeFenceFd) { |
| 7407 | return ? |
| 7408 | } |
| 7409 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7410 | @extension("VK_EXT_debug_report") // 12 |
| 7411 | @external type void* PFN_vkDebugReportCallbackEXT |
| 7412 | @extension("VK_EXT_debug_report") // 12 |
| 7413 | @pfn cmd VkBool32 vkDebugReportCallbackEXT( |
| 7414 | VkDebugReportFlagsEXT flags, |
| 7415 | VkDebugReportObjectTypeEXT objectType, |
| 7416 | u64 object, |
| 7417 | platform.size_t location, |
| 7418 | s32 messageCode, |
| 7419 | const char* pLayerPrefix, |
| 7420 | const char* pMessage, |
| 7421 | void* pUserData) { |
| 7422 | return ? |
| 7423 | } |
| 7424 | |
| 7425 | @extension("VK_EXT_debug_report") // 12 |
| 7426 | cmd VkResult vkCreateDebugReportCallbackEXT( |
| 7427 | VkInstance instance, |
| 7428 | const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, |
| 7429 | const VkAllocationCallbacks* pAllocator, |
| 7430 | VkDebugReportCallbackEXT* pCallback) { |
| 7431 | return ? |
| 7432 | } |
| 7433 | |
| 7434 | @extension("VK_EXT_debug_report") // 12 |
| 7435 | cmd void vkDestroyDebugReportCallbackEXT( |
| 7436 | VkInstance instance, |
| 7437 | VkDebugReportCallbackEXT callback, |
| 7438 | const VkAllocationCallbacks* pAllocator) { |
| 7439 | } |
| 7440 | |
| 7441 | @extension("VK_EXT_debug_report") // 12 |
| 7442 | cmd void vkDebugReportMessageEXT( |
| 7443 | VkInstance instance, |
| 7444 | VkDebugReportFlagsEXT flags, |
| 7445 | VkDebugReportObjectTypeEXT objectType, |
| 7446 | u64 object, |
| 7447 | platform.size_t location, |
| 7448 | s32 messageCode, |
| 7449 | const char* pLayerPrefix, |
| 7450 | const char* pMessage) { |
| 7451 | } |
| 7452 | |
| 7453 | @extension("VK_EXT_debug_marker") // 23 |
| 7454 | cmd VkResult vkDebugMarkerSetObjectTagEXT( |
| 7455 | VkDevice device, |
| 7456 | VkDebugMarkerObjectTagInfoEXT* pTagInfo) { |
| 7457 | return ? |
| 7458 | } |
| 7459 | |
| 7460 | @extension("VK_EXT_debug_marker") // 23 |
| 7461 | cmd VkResult vkDebugMarkerSetObjectNameEXT( |
| 7462 | VkDevice device, |
| 7463 | VkDebugMarkerObjectNameInfoEXT* pNameInfo) { |
| 7464 | return ? |
| 7465 | } |
| 7466 | |
| 7467 | @extension("VK_EXT_debug_marker") // 23 |
| 7468 | cmd void vkCmdDebugMarkerBeginEXT( |
| 7469 | VkCommandBuffer commandBuffer, |
| 7470 | VkDebugMarkerMarkerInfoEXT* pMarkerInfo) { |
| 7471 | } |
| 7472 | |
| 7473 | @extension("VK_EXT_debug_marker") // 23 |
| 7474 | cmd void vkCmdDebugMarkerEndEXT( |
| 7475 | VkCommandBuffer commandBuffer) { |
| 7476 | } |
| 7477 | |
| 7478 | @extension("VK_EXT_debug_marker") // 23 |
| 7479 | cmd void vkCmdDebugMarkerInsertEXT( |
| 7480 | VkCommandBuffer commandBuffer, |
| 7481 | VkDebugMarkerMarkerInfoEXT* pMarkerInfo) { |
| 7482 | } |
| 7483 | |
| 7484 | @extension("VK_AMD_draw_indirect_count") // 34 |
| 7485 | cmd void vkCmdDrawIndirectCountAMD( |
| 7486 | VkCommandBuffer commandBuffer, |
| 7487 | VkBuffer buffer, |
| 7488 | VkDeviceSize offset, |
| 7489 | VkBuffer countBuffer, |
| 7490 | VkDeviceSize countBufferOffset, |
| 7491 | u32 maxDrawCount, |
| 7492 | u32 stride) { |
| 7493 | } |
| 7494 | |
| 7495 | @extension("VK_AMD_draw_indirect_count") // 34 |
| 7496 | cmd void vkCmdDrawIndexedIndirectCountAMD( |
| 7497 | VkCommandBuffer commandBuffer, |
| 7498 | VkBuffer buffer, |
| 7499 | VkDeviceSize offset, |
| 7500 | VkBuffer countBuffer, |
| 7501 | VkDeviceSize countBufferOffset, |
| 7502 | u32 maxDrawCount, |
| 7503 | u32 stride) { |
| 7504 | } |
| 7505 | |
| 7506 | @extension("VK_NV_external_memory_capabilities") // 56 |
| 7507 | cmd VkResult vkGetPhysicalDeviceExternalImageFormatPropertiesNV( |
| 7508 | VkPhysicalDevice physicalDevice, |
| 7509 | VkFormat format, |
| 7510 | VkImageType type, |
| 7511 | VkImageTiling tiling, |
| 7512 | VkImageUsageFlags usage, |
| 7513 | VkImageCreateFlags flags, |
| 7514 | VkExternalMemoryHandleTypeFlagsNV externalHandleType, |
| 7515 | VkExternalImageFormatPropertiesNV* pExternalImageFormatProperties) { |
| 7516 | return ? |
| 7517 | } |
| 7518 | |
| 7519 | @extension("VK_NV_external_memory_win32") // 58 |
| 7520 | cmd VkResult vkGetMemoryWin32HandleNV( |
| 7521 | VkDevice device, |
| 7522 | VkDeviceMemory memory, |
| 7523 | VkExternalMemoryHandleTypeFlagsNV handleType, |
| 7524 | platform.HANDLE* pHandle) { |
| 7525 | return ? |
| 7526 | } |
| 7527 | |
| 7528 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
| 7529 | cmd void vkGetPhysicalDeviceFeatures2KHR( |
| 7530 | VkPhysicalDevice physicalDevice, |
| 7531 | VkPhysicalDeviceFeatures2KHR* pFeatures) { |
| 7532 | } |
| 7533 | |
| 7534 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
| 7535 | cmd void vkGetPhysicalDeviceProperties2KHR( |
| 7536 | VkPhysicalDevice physicalDevice, |
| 7537 | VkPhysicalDeviceProperties2KHR* pProperties) { |
| 7538 | } |
| 7539 | |
| 7540 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
| 7541 | cmd void vkGetPhysicalDeviceFormatProperties2KHR( |
| 7542 | VkPhysicalDevice physicalDevice, |
| 7543 | VkFormat format, |
| 7544 | VkFormatProperties2KHR* pFormatProperties) { |
| 7545 | } |
| 7546 | |
| 7547 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
| 7548 | cmd VkResult vkGetPhysicalDeviceImageFormatProperties2KHR( |
| 7549 | VkPhysicalDevice physicalDevice, |
| 7550 | const VkPhysicalDeviceImageFormatInfo2KHR* pImageFormatInfo, |
| 7551 | VkImageFormatProperties2KHR* pImageFormatProperties) { |
| 7552 | return ? |
| 7553 | } |
| 7554 | |
| 7555 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
| 7556 | cmd void vkGetPhysicalDeviceQueueFamilyProperties2KHR( |
| 7557 | VkPhysicalDevice physicalDevice, |
| 7558 | u32* pQueueFamilyPropertyCount, |
| 7559 | VkQueueFamilyProperties2KHR* pQueueFamilyProperties) { |
| 7560 | } |
| 7561 | |
| 7562 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
| 7563 | cmd void vkGetPhysicalDeviceMemoryProperties2KHR( |
| 7564 | VkPhysicalDevice physicalDevice, |
| 7565 | VkPhysicalDeviceMemoryProperties2KHR* pMemoryProperties) { |
| 7566 | } |
| 7567 | |
| 7568 | @extension("VK_KHR_get_physical_device_properties2") // 60 |
| 7569 | cmd void vkGetPhysicalDeviceSparseImageFormatProperties2KHR( |
| 7570 | VkPhysicalDevice physicalDevice, |
| 7571 | const VkPhysicalDeviceSparseImageFormatInfo2KHR* pFormatInfo, |
| 7572 | u32* pPropertyCount, |
| 7573 | VkSparseImageFormatProperties2KHR* pProperties) { |
| 7574 | } |
| 7575 | |
| 7576 | @extension("VK_KHX_device_group") // 61 |
| 7577 | cmd void vkGetDeviceGroupPeerMemoryFeaturesKHX( |
| 7578 | VkDevice device, |
| 7579 | u32 heapIndex, |
| 7580 | u32 localDeviceIndex, |
| 7581 | u32 remoteDeviceIndex, |
| 7582 | VkPeerMemoryFeatureFlagsKHX* pPeerMemoryFeatures) { |
| 7583 | } |
| 7584 | |
| 7585 | @extension("VK_KHX_device_group") // 61 |
| 7586 | cmd VkResult vkBindBufferMemory2KHX( |
| 7587 | VkDevice device, |
| 7588 | u32 bindInfoCount, |
| 7589 | const VkBindBufferMemoryInfoKHX* pBindInfos) { |
| 7590 | return ? |
| 7591 | } |
| 7592 | |
| 7593 | @extension("VK_KHX_device_group") // 61 |
| 7594 | cmd VkResult vkBindImageMemory2KHX( |
| 7595 | VkDevice device, |
| 7596 | u32 bindInfoCount, |
| 7597 | const VkBindImageMemoryInfoKHX* pBindInfos) { |
| 7598 | return ? |
| 7599 | } |
| 7600 | |
| 7601 | @extension("VK_KHX_device_group") // 61 |
| 7602 | cmd void vkCmdSetDeviceMaskKHX( |
| 7603 | VkCommandBuffer commandBuffer, |
| 7604 | u32 deviceMask) { |
| 7605 | } |
| 7606 | |
| 7607 | @extension("VK_KHX_device_group") // 61 |
| 7608 | cmd VkResult vkGetDeviceGroupPresentCapabilitiesKHX( |
| 7609 | VkDevice device, |
| 7610 | VkDeviceGroupPresentCapabilitiesKHX* pDeviceGroupPresentCapabilities) { |
| 7611 | return ? |
| 7612 | } |
| 7613 | |
| 7614 | @extension("VK_KHX_device_group") // 61 |
| 7615 | cmd VkResult vkGetDeviceGroupSurfacePresentModesKHX( |
| 7616 | VkDevice device, |
| 7617 | VkSurfaceKHR surface, |
| 7618 | VkDeviceGroupPresentModeFlagsKHX* pModes) { |
| 7619 | return ? |
| 7620 | } |
| 7621 | |
| 7622 | @extension("VK_KHX_device_group") // 61 |
| 7623 | cmd VkResult vkAcquireNextImage2KHX( |
| 7624 | VkDevice device, |
| 7625 | const VkAcquireNextImageInfoKHX* pAcquireInfo, |
| 7626 | u32* pImageIndex) { |
| 7627 | return ? |
| 7628 | } |
| 7629 | |
| 7630 | @extension("VK_KHX_device_group") // 61 |
| 7631 | cmd void vkCmdDispatchBaseKHX( |
| 7632 | VkCommandBuffer commandBuffer, |
| 7633 | u32 baseGroupX, |
| 7634 | u32 baseGroupY, |
| 7635 | u32 baseGroupZ, |
| 7636 | u32 groupCountX, |
| 7637 | u32 groupCountY, |
| 7638 | u32 groupCountZ) { |
| 7639 | } |
| 7640 | |
| 7641 | @extension("VK_KHX_device_group") // 61 |
| 7642 | cmd VkResult vkGetPhysicalDevicePresentRectanglesKHX( |
| 7643 | VkPhysicalDevice physicalDevice, |
| 7644 | VkSurfaceKHR surface, |
| 7645 | u32* pRectCount, |
| 7646 | VkRect2D* pRects) { |
| 7647 | return ? |
| 7648 | } |
| 7649 | |
| 7650 | @extension("VK_NN_vi_surface") // 63 |
| 7651 | cmd VkResult vkCreateViSurfaceNN( |
| 7652 | VkInstance instance, |
| 7653 | const VkViSurfaceCreateInfoNN* pCreateInfo, |
| 7654 | const VkAllocationCallbacks* pAllocator, |
| 7655 | VkSurfaceKHR* pSurface) { |
| 7656 | return ? |
| 7657 | } |
| 7658 | |
| 7659 | @extension("VK_KHR_maintenance1") // 70 |
| 7660 | cmd void vkTrimCommandPoolKHR( |
| 7661 | VkDevice device, |
| 7662 | VkCommandPool commandPool, |
| 7663 | VkCommandPoolTrimFlagsKHR flags) { |
| 7664 | } |
| 7665 | |
| 7666 | @extension("VK_KHX_device_group_creation") // 71 |
| 7667 | cmd VkResult vkEnumeratePhysicalDeviceGroupsKHX( |
| 7668 | VkInstance instance, |
| 7669 | u32* pPhysicalDeviceGroupCount, |
| 7670 | VkPhysicalDeviceGroupPropertiesKHX* pPhysicalDeviceGroupProperties) { |
| 7671 | return ? |
| 7672 | } |
| 7673 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7674 | @extension("VK_KHR_external_memory_capabilities") // 72 |
| 7675 | cmd void vkGetPhysicalDeviceExternalBufferPropertiesKHR( |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7676 | VkPhysicalDevice physicalDevice, |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7677 | const VkPhysicalDeviceExternalBufferInfoKHR* pExternalBufferInfo, |
| 7678 | VkExternalBufferPropertiesKHR* pExternalBufferProperties) { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7679 | } |
| 7680 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7681 | @extension("VK_KHR_external_memory_win32") // 74 |
| 7682 | cmd VkResult vkGetMemoryWin32HandleKHR( |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7683 | VkDevice device, |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7684 | const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7685 | platform.HANDLE* pHandle) { |
| 7686 | return ? |
| 7687 | } |
| 7688 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7689 | @extension("VK_KHR_external_memory_win32") // 74 |
| 7690 | cmd VkResult vkGetMemoryWin32HandlePropertiesKHR( |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7691 | VkDevice device, |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7692 | VkExternalMemoryHandleTypeFlagBitsKHR handleType, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7693 | platform.HANDLE handle, |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7694 | VkMemoryWin32HandlePropertiesKHR* pMemoryWin32HandleProperties) { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7695 | return ? |
| 7696 | } |
| 7697 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7698 | @extension("VK_KHR_external_memory_fd") // 75 |
| 7699 | cmd VkResult vkGetMemoryFdKHR( |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7700 | VkDevice device, |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7701 | const VkMemoryGetFdInfoKHR* pGetFdInfo, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7702 | s32* pFd) { |
| 7703 | return ? |
| 7704 | } |
| 7705 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7706 | @extension("VK_KHR_external_memory_fd") // 75 |
| 7707 | cmd VkResult vkGetMemoryFdPropertiesKHR( |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7708 | VkDevice device, |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7709 | VkExternalMemoryHandleTypeFlagBitsKHR handleType, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7710 | s32 fd, |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7711 | VkMemoryFdPropertiesKHR* pMemoryFdProperties) { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7712 | return ? |
| 7713 | } |
| 7714 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7715 | @extension("VK_KHR_external_semaphore_capabilities") // 77 |
| 7716 | cmd void vkGetPhysicalDeviceExternalSemaphorePropertiesKHR( |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7717 | VkPhysicalDevice physicalDevice, |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7718 | const VkPhysicalDeviceExternalSemaphoreInfoKHR* pExternalSemaphoreInfo, |
| 7719 | VkExternalSemaphorePropertiesKHR* pExternalSemaphoreProperties) { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7720 | } |
| 7721 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7722 | @extension("VK_KHR_external_semaphore_win32") // 79 |
| 7723 | cmd VkResult vkImportSemaphoreWin32HandleKHR( |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7724 | VkDevice device, |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7725 | const VkImportSemaphoreWin32HandleInfoKHR* pImportSemaphoreWin32HandleInfo) { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7726 | return ? |
| 7727 | } |
| 7728 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7729 | @extension("VK_KHR_external_semaphore_win32") // 79 |
| 7730 | cmd VkResult vkGetSemaphoreWin32HandleKHR( |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7731 | VkDevice device, |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7732 | const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7733 | platform.HANDLE* pHandle) { |
| 7734 | return ? |
| 7735 | } |
| 7736 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7737 | @extension("VK_KHR_external_semaphore_fd") // 80 |
| 7738 | cmd VkResult vkImportSemaphoreFdKHR( |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7739 | VkDevice device, |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7740 | const VkImportSemaphoreFdInfoKHR* pImportSemaphoreFdInfo) { |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7741 | return ? |
| 7742 | } |
| 7743 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7744 | @extension("VK_KHR_external_semaphore_fd") // 80 |
| 7745 | cmd VkResult vkGetSemaphoreFdKHR( |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7746 | VkDevice device, |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7747 | const VkSemaphoreGetFdInfoKHR* pGetFdInfo, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7748 | s32* pFd) { |
| 7749 | return ? |
| 7750 | } |
| 7751 | |
| 7752 | @extension("VK_KHR_push_descriptor") // 81 |
| 7753 | cmd void vkCmdPushDescriptorSetKHR( |
| 7754 | VkCommandBuffer commandBuffer, |
| 7755 | VkPipelineBindPoint pipelineBindPoint, |
| 7756 | VkPipelineLayout layout, |
| 7757 | u32 set, |
| 7758 | u32 descriptorWriteCount, |
| 7759 | const VkWriteDescriptorSet* pDescriptorWrites) { |
| 7760 | } |
| 7761 | |
| 7762 | @extension("VK_KHR_descriptor_update_template") // 86 |
| 7763 | cmd VkResult vkCreateDescriptorUpdateTemplateKHR( |
| 7764 | VkDevice device, |
| 7765 | const VkDescriptorUpdateTemplateCreateInfoKHR* pCreateInfo, |
| 7766 | const VkAllocationCallbacks* pAllocator, |
| 7767 | VkDescriptorUpdateTemplateKHR* pDescriptorUpdateTemplate) { |
| 7768 | return ? |
| 7769 | } |
| 7770 | |
| 7771 | @extension("VK_KHR_descriptor_update_template") // 86 |
| 7772 | cmd void vkDestroyDescriptorUpdateTemplateKHR( |
| 7773 | VkDevice device, |
| 7774 | VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate, |
| 7775 | const VkAllocationCallbacks* pAllocator) { |
| 7776 | } |
| 7777 | |
| 7778 | @extension("VK_KHR_descriptor_update_template") // 86 |
| 7779 | cmd void vkUpdateDescriptorSetWithTemplateKHR( |
| 7780 | VkDevice device, |
| 7781 | VkDescriptorSet descriptorSet, |
| 7782 | VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate, |
| 7783 | const void* pData) { |
| 7784 | } |
| 7785 | |
| 7786 | @extension("VK_KHR_descriptor_update_template") // 86 |
| 7787 | cmd void vkCmdPushDescriptorSetWithTemplateKHR( |
| 7788 | VkCommandBuffer commandBuffer, |
| 7789 | VkDescriptorUpdateTemplateKHR descriptorUpdateTemplate, |
| 7790 | VkPipelineLayout layout, |
| 7791 | u32 set, |
| 7792 | const void* pData) { |
| 7793 | } |
| 7794 | |
| 7795 | @extension("VK_NVX_device_generated_commands") // 87 |
| 7796 | cmd void vkCmdProcessCommandsNVX( |
| 7797 | VkCommandBuffer commandBuffer, |
| 7798 | const VkCmdProcessCommandsInfoNVX* pProcessCommandsInfo) { |
| 7799 | } |
| 7800 | |
| 7801 | @extension("VK_NVX_device_generated_commands") // 87 |
| 7802 | cmd void vkCmdReserveSpaceForCommandsNVX( |
| 7803 | VkCommandBuffer commandBuffer, |
| 7804 | const VkCmdReserveSpaceForCommandsInfoNVX* pReserveSpaceInfo) { |
| 7805 | } |
| 7806 | |
| 7807 | @extension("VK_NVX_device_generated_commands") // 87 |
| 7808 | cmd VkResult vkCreateIndirectCommandsLayoutNVX( |
| 7809 | VkDevice device, |
| 7810 | const VkIndirectCommandsLayoutCreateInfoNVX* pCreateInfo, |
| 7811 | const VkAllocationCallbacks* pAllocator, |
| 7812 | VkIndirectCommandsLayoutNVX* pIndirectCommandsLayout) { |
| 7813 | return ? |
| 7814 | } |
| 7815 | |
| 7816 | @extension("VK_NVX_device_generated_commands") // 87 |
| 7817 | cmd void vkDestroyIndirectCommandsLayoutNVX( |
| 7818 | VkDevice device, |
| 7819 | VkIndirectCommandsLayoutNVX indirectCommandsLayout, |
| 7820 | const VkAllocationCallbacks* pAllocator) { |
| 7821 | } |
| 7822 | |
| 7823 | @extension("VK_NVX_device_generated_commands") // 87 |
| 7824 | cmd VkResult vkCreateObjectTableNVX( |
| 7825 | VkDevice device, |
| 7826 | const VkObjectTableCreateInfoNVX* pCreateInfo, |
| 7827 | const VkAllocationCallbacks* pAllocator, |
| 7828 | VkObjectTableNVX* pObjectTable) { |
| 7829 | return ? |
| 7830 | } |
| 7831 | |
| 7832 | @extension("VK_NVX_device_generated_commands") // 87 |
| 7833 | cmd void vkDestroyObjectTableNVX( |
| 7834 | VkDevice device, |
| 7835 | VkObjectTableNVX objectTable, |
| 7836 | const VkAllocationCallbacks* pAllocator) { |
| 7837 | } |
| 7838 | |
| 7839 | @extension("VK_NVX_device_generated_commands") // 87 |
| 7840 | cmd VkResult vkRegisterObjectsNVX( |
| 7841 | VkDevice device, |
| 7842 | VkObjectTableNVX objectTable, |
| 7843 | u32 objectCount, |
| 7844 | const VkObjectTableEntryNVX* const* ppObjectTableEntries, |
| 7845 | const u32* pObjectIndices) { |
| 7846 | return ? |
| 7847 | } |
| 7848 | |
| 7849 | @extension("VK_NVX_device_generated_commands") // 87 |
| 7850 | cmd VkResult vkUnregisterObjectsNVX( |
| 7851 | VkDevice device, |
| 7852 | VkObjectTableNVX objectTable, |
| 7853 | u32 objectCount, |
| 7854 | const VkObjectEntryTypeNVX* pObjectEntryTypes, |
| 7855 | const u32* pObjectIndices) { |
| 7856 | return ? |
| 7857 | } |
| 7858 | |
| 7859 | @extension("VK_NVX_device_generated_commands") // 87 |
| 7860 | cmd void vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX( |
| 7861 | VkPhysicalDevice physicalDevice, |
| 7862 | VkDeviceGeneratedCommandsFeaturesNVX* pFeatures, |
| 7863 | VkDeviceGeneratedCommandsLimitsNVX* pLimits) { |
| 7864 | } |
| 7865 | |
| 7866 | @extension("VK_NV_clip_space_w_scaling") // 88 |
| 7867 | cmd void vkCmdSetViewportWScalingNV( |
| 7868 | VkCommandBuffer commandBuffer, |
| 7869 | u32 firstViewport, |
| 7870 | u32 viewportCount, |
| 7871 | const VkViewportWScalingNV* pViewportWScalings) { |
| 7872 | } |
| 7873 | |
| 7874 | @extension("VK_EXT_direct_mode_display") // 89 |
| 7875 | cmd VkResult vkReleaseDisplayEXT( |
| 7876 | VkPhysicalDevice physicalDevice, |
| 7877 | VkDisplayKHR display) { |
| 7878 | return ? |
| 7879 | } |
| 7880 | |
| 7881 | @extension("VK_EXT_acquire_xlib_display") // 90 |
| 7882 | cmd VkResult vkAcquireXlibDisplayEXT( |
| 7883 | VkPhysicalDevice physicalDevice, |
| 7884 | platform.Display* dpy, |
| 7885 | VkDisplayKHR display) { |
| 7886 | return ? |
| 7887 | } |
| 7888 | |
| 7889 | @extension("VK_EXT_acquire_xlib_display") // 90 |
| 7890 | cmd VkResult vkGetRandROutputDisplayEXT( |
| 7891 | VkPhysicalDevice physicalDevice, |
| 7892 | platform.Display* dpy, |
| 7893 | platform.RROutput rrOutput, |
| 7894 | VkDisplayKHR* pDisplay) { |
| 7895 | return ? |
| 7896 | } |
| 7897 | |
| 7898 | @extension("VK_EXT_display_surface_counter") // 91 |
| 7899 | cmd VkResult vkGetPhysicalDeviceSurfaceCapabilities2EXT( |
| 7900 | VkPhysicalDevice physicalDevice, |
| 7901 | VkSurfaceKHR surface, |
| 7902 | VkSurfaceCapabilities2EXT* pSurfaceCapabilities) { |
| 7903 | return ? |
| 7904 | } |
| 7905 | |
| 7906 | @extension("VK_EXT_display_control") // 92 |
| 7907 | cmd VkResult vkDisplayPowerControlEXT( |
| 7908 | VkDevice device, |
| 7909 | VkDisplayKHR display, |
| 7910 | const VkDisplayPowerInfoEXT* pDisplayPowerInfo) { |
| 7911 | return ? |
| 7912 | } |
| 7913 | |
| 7914 | @extension("VK_EXT_display_control") // 92 |
| 7915 | cmd VkResult vkRegisterDeviceEventEXT( |
| 7916 | VkDevice device, |
| 7917 | const VkDeviceEventInfoEXT* pDeviceEventInfo, |
| 7918 | const VkAllocationCallbacks* pAllocator, |
| 7919 | VkFence* pFence) { |
| 7920 | return ? |
| 7921 | } |
| 7922 | |
| 7923 | @extension("VK_EXT_display_control") // 92 |
| 7924 | cmd VkResult vkRegisterDisplayEventEXT( |
| 7925 | VkDevice device, |
| 7926 | VkDisplayKHR display, |
| 7927 | const VkDisplayEventInfoEXT* pDisplayEventInfo, |
| 7928 | const VkAllocationCallbacks* pAllocator, |
| 7929 | VkFence* pFence) { |
| 7930 | return ? |
| 7931 | } |
| 7932 | |
| 7933 | @extension("VK_EXT_display_control") // 92 |
| 7934 | cmd VkResult vkGetSwapchainCounterEXT( |
| 7935 | VkDevice device, |
| 7936 | VkSwapchainKHR swapchain, |
| 7937 | VkSurfaceCounterFlagBitsEXT counter, |
| 7938 | u64* pCounterValue) { |
| 7939 | return ? |
| 7940 | } |
| 7941 | |
| 7942 | @extension("VK_GOOGLE_display_timing") // 93 |
Ian Elliott | 4c8bb2a | 2016-12-29 11:07:26 -0700 | [diff] [blame] | 7943 | cmd VkResult vkGetRefreshCycleDurationGOOGLE( |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 7944 | VkDevice device, |
| 7945 | VkSwapchainKHR swapchain, |
| 7946 | VkRefreshCycleDurationGOOGLE* pDisplayTimingProperties) { |
Ian Elliott | 4c8bb2a | 2016-12-29 11:07:26 -0700 | [diff] [blame] | 7947 | deviceObject := GetDevice(device) |
| 7948 | swapchainObject := GetSwapchain(swapchain) |
| 7949 | |
| 7950 | displayTimingProperties := ? |
| 7951 | pDisplayTimingProperties[0] = displayTimingProperties |
| 7952 | |
| 7953 | return ? |
| 7954 | } |
| 7955 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7956 | @extension("VK_GOOGLE_display_timing") // 93 |
Ian Elliott | 4c8bb2a | 2016-12-29 11:07:26 -0700 | [diff] [blame] | 7957 | cmd VkResult vkGetPastPresentationTimingGOOGLE( |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 7958 | VkDevice device, |
| 7959 | VkSwapchainKHR swapchain, |
| 7960 | u32* pPresentationTimingCount, |
| 7961 | VkPastPresentationTimingGOOGLE* pPresentationTimings) { |
Ian Elliott | 4c8bb2a | 2016-12-29 11:07:26 -0700 | [diff] [blame] | 7962 | return ? |
| 7963 | } |
| 7964 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7965 | @extension("VK_EXT_discard_rectangles") // 100 |
| 7966 | cmd void vkCmdSetDiscardRectangleEXT( |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 7967 | VkCommandBuffer commandBuffer, |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7968 | u32 firstDiscardRectangle, |
| 7969 | u32 discardRectangleCount, |
| 7970 | const VkRect2D* pDiscardRectangles) { |
Jesse Hall | 2676338 | 2016-05-20 07:13:52 -0700 | [diff] [blame] | 7971 | } |
| 7972 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7973 | @extension("VK_EXT_hdr_metadata") // 106 |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 7974 | cmd void vkSetHdrMetadataEXT( |
Jesse Hall | fdc8ab3 | 2017-03-10 21:01:57 -0800 | [diff] [blame] | 7975 | VkDevice device, |
| 7976 | u32 swapchainCount, |
| 7977 | const VkSwapchainKHR* pSwapchains, |
| 7978 | const VkHdrMetadataEXT* pMetadata) { |
Jesse Hall | 889cd9a | 2017-02-25 22:12:23 -0800 | [diff] [blame] | 7979 | } |
| 7980 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 7981 | @extension("VK_KHR_shared_presentable_image") // 112 |
Chris Forbes | 2e12cb8 | 2017-01-18 11:45:17 +1300 | [diff] [blame] | 7982 | cmd VkResult vkGetSwapchainStatusKHR( |
| 7983 | VkDevice device, |
| 7984 | VkSwapchainKHR swapchain) { |
| 7985 | return ? |
| 7986 | } |
| 7987 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 7988 | @extension("VK_KHR_external_fence_capabilities") // 113 |
| 7989 | cmd void vkGetPhysicalDeviceExternalFencePropertiesKHR( |
| 7990 | VkPhysicalDevice physicalDevice, |
| 7991 | const VkPhysicalDeviceExternalFenceInfoKHR* pExternalFenceInfo, |
| 7992 | VkExternalFencePropertiesKHR* pExternalFenceProperties) { |
| 7993 | } |
| 7994 | |
| 7995 | @extension("VK_KHR_external_fence_win32") // 115 |
| 7996 | cmd VkResult vkImportFenceWin32HandleKHR( |
| 7997 | VkDevice device, |
| 7998 | const VkImportFenceWin32HandleInfoKHR* pImportFenceWin32HandleInfo) { |
| 7999 | return ? |
| 8000 | } |
| 8001 | |
| 8002 | @extension("VK_KHR_external_fence_win32") // 115 |
| 8003 | cmd VkResult vkGetFenceWin32HandleKHR( |
| 8004 | VkDevice device, |
| 8005 | const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo, |
| 8006 | platform.HANDLE* pHandle) { |
| 8007 | return ? |
| 8008 | } |
| 8009 | |
| 8010 | @extension("VK_KHR_external_fence_fd") // 116 |
| 8011 | cmd VkResult vkImportFenceFdKHR( |
| 8012 | VkDevice device, |
| 8013 | const VkImportFenceFdInfoKHR* pImportFenceFdInfo) { |
| 8014 | return ? |
| 8015 | } |
| 8016 | |
| 8017 | @extension("VK_KHR_external_fence_fd") // 116 |
| 8018 | cmd VkResult vkGetFenceFdKHR( |
| 8019 | VkDevice device, |
| 8020 | const VkFenceGetFdInfoKHR* pGetFdInfo, |
| 8021 | int* pFd) { |
| 8022 | return ? |
| 8023 | } |
| 8024 | |
Jesse Hall | 05556b1 | 2017-05-18 17:40:25 -0700 | [diff] [blame] | 8025 | @extension("VK_KHR_get_surface_capabilities2") // 120 |
Chris Forbes | e2d3ee1 | 2017-03-16 16:10:15 +1300 | [diff] [blame] | 8026 | cmd VkResult vkGetPhysicalDeviceSurfaceCapabilities2KHR( |
| 8027 | VkPhysicalDevice physicalDevice, |
| 8028 | const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo, |
| 8029 | VkSurfaceCapabilities2KHR* pSurfaceCapabilities) { |
| 8030 | return ? |
| 8031 | } |
| 8032 | |
Jesse Hall | 05556b1 | 2017-05-18 17:40:25 -0700 | [diff] [blame] | 8033 | @extension("VK_KHR_get_surface_capabilities2") // 120 |
Chris Forbes | e2d3ee1 | 2017-03-16 16:10:15 +1300 | [diff] [blame] | 8034 | cmd VkResult vkGetPhysicalDeviceSurfaceFormats2KHR( |
| 8035 | VkPhysicalDevice physicalDevice, |
| 8036 | const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo, |
| 8037 | u32* pSurfaceFormatCount, |
| 8038 | VkSurfaceFormat2KHR* pSurfaceFormats) { |
| 8039 | return ? |
| 8040 | } |
| 8041 | |
Jesse Hall | ad25084 | 2017-03-10 18:35:38 -0800 | [diff] [blame] | 8042 | @extension("VK_MVK_ios_surface") // 123 |
| 8043 | cmd VkResult vkCreateIOSSurfaceMVK( |
| 8044 | VkInstance instance, |
| 8045 | const VkIOSSurfaceCreateInfoMVK* pCreateInfo, |
| 8046 | const VkAllocationCallbacks* pAllocator, |
| 8047 | VkSurfaceKHR* pSurface) { |
| 8048 | return ? |
| 8049 | } |
| 8050 | |
| 8051 | @extension("VK_MVK_macos_surface") // 124 |
| 8052 | cmd VkResult vkCreateMacOSSurfaceMVK( |
| 8053 | VkInstance instance, |
| 8054 | const VkMacOSSurfaceCreateInfoMVK* pCreateInfo, |
| 8055 | const VkAllocationCallbacks* pAllocator, |
| 8056 | VkSurfaceKHR* pSurface) { |
| 8057 | return ? |
| 8058 | } |
| 8059 | |
Jesse Hall | 9492f99 | 2017-08-28 12:10:06 -0700 | [diff] [blame^] | 8060 | @extension("VK_KHR_get_memory_requirements2") // 147 |
| 8061 | cmd void vkGetImageMemoryRequirements2KHR( |
| 8062 | VkDevice device, |
| 8063 | const VkImageMemoryRequirementsInfo2KHR* pInfo, |
| 8064 | VkMemoryRequirements2KHR* pMemoryRequirements) { |
| 8065 | } |
| 8066 | |
| 8067 | @extension("VK_KHR_get_memory_requirements2") // 147 |
| 8068 | cmd void vkGetBufferMemoryRequirements2KHR( |
| 8069 | VkDevice device, |
| 8070 | const VkBufferMemoryRequirementsInfo2KHR* pInfo, |
| 8071 | VkMemoryRequirements2KHR* pMemoryRequirements) { |
| 8072 | } |
| 8073 | |
| 8074 | @extension("VK_KHR_get_memory_requirements2") // 147 |
| 8075 | cmd void vkGetImageSparseMemoryRequirements2KHR( |
| 8076 | VkDevice device, |
| 8077 | const VkImageSparseMemoryRequirementsInfo2KHR* pInfo, |
| 8078 | u32* pSparseMemoryRequirementCount, |
| 8079 | VkSparseImageMemoryRequirements2KHR* pSparseMemoryRequirements) { |
| 8080 | } |
| 8081 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8082 | //////////////// |
| 8083 | // Validation // |
| 8084 | //////////////// |
| 8085 | |
| 8086 | extern void validate(string layerName, bool condition, string message) |
| 8087 | |
| 8088 | |
| 8089 | ///////////////////////////// |
| 8090 | // Internal State Tracking // |
| 8091 | ///////////////////////////// |
| 8092 | |
| 8093 | StateObject State |
| 8094 | |
| 8095 | @internal class StateObject { |
| 8096 | // Dispatchable objects. |
| 8097 | map!(VkInstance, ref!InstanceObject) Instances |
| 8098 | map!(VkPhysicalDevice, ref!PhysicalDeviceObject) PhysicalDevices |
| 8099 | map!(VkDevice, ref!DeviceObject) Devices |
| 8100 | map!(VkQueue, ref!QueueObject) Queues |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 8101 | map!(VkCommandBuffer, ref!CommandBufferObject) CommandBuffers |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8102 | |
| 8103 | // Non-dispatchable objects. |
| 8104 | map!(VkDeviceMemory, ref!DeviceMemoryObject) DeviceMemories |
| 8105 | map!(VkBuffer, ref!BufferObject) Buffers |
| 8106 | map!(VkBufferView, ref!BufferViewObject) BufferViews |
| 8107 | map!(VkImage, ref!ImageObject) Images |
| 8108 | map!(VkImageView, ref!ImageViewObject) ImageViews |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8109 | map!(VkShaderModule, ref!ShaderModuleObject) ShaderModules |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8110 | map!(VkPipeline, ref!PipelineObject) Pipelines |
| 8111 | map!(VkPipelineLayout, ref!PipelineLayoutObject) PipelineLayouts |
| 8112 | map!(VkSampler, ref!SamplerObject) Samplers |
| 8113 | map!(VkDescriptorSet, ref!DescriptorSetObject) DescriptorSets |
| 8114 | map!(VkDescriptorSetLayout, ref!DescriptorSetLayoutObject) DescriptorSetLayouts |
| 8115 | map!(VkDescriptorPool, ref!DescriptorPoolObject) DescriptorPools |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8116 | map!(VkFence, ref!FenceObject) Fences |
| 8117 | map!(VkSemaphore, ref!SemaphoreObject) Semaphores |
| 8118 | map!(VkEvent, ref!EventObject) Events |
| 8119 | map!(VkQueryPool, ref!QueryPoolObject) QueryPools |
| 8120 | map!(VkFramebuffer, ref!FramebufferObject) Framebuffers |
| 8121 | map!(VkRenderPass, ref!RenderPassObject) RenderPasses |
| 8122 | map!(VkPipelineCache, ref!PipelineCacheObject) PipelineCaches |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 8123 | map!(VkCommandPool, ref!CommandPoolObject) CommandPools |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 8124 | map!(VkSurfaceKHR, ref!SurfaceObject) Surfaces |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 8125 | map!(VkSwapchainKHR, ref!SwapchainObject) Swapchains |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8126 | } |
| 8127 | |
| 8128 | @internal class InstanceObject { |
| 8129 | } |
| 8130 | |
| 8131 | @internal class PhysicalDeviceObject { |
| 8132 | VkInstance instance |
| 8133 | } |
| 8134 | |
| 8135 | @internal class DeviceObject { |
| 8136 | VkPhysicalDevice physicalDevice |
| 8137 | } |
| 8138 | |
| 8139 | @internal class QueueObject { |
| 8140 | VkDevice device |
| 8141 | VkQueueFlags flags |
| 8142 | } |
| 8143 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 8144 | @internal class CommandBufferObject { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8145 | VkDevice device |
| 8146 | map!(u64, VkDeviceMemory) boundObjects |
| 8147 | VkQueueFlags queueFlags |
| 8148 | } |
| 8149 | |
| 8150 | @internal class DeviceMemoryObject { |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 8151 | VkDevice device |
| 8152 | VkDeviceSize allocationSize |
| 8153 | map!(u64, VkDeviceSize) boundObjects |
| 8154 | map!(VkCommandBuffer, VkCommandBuffer) boundCommandBuffers |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8155 | } |
| 8156 | |
| 8157 | @internal class BufferObject { |
| 8158 | VkDevice device |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 8159 | VkDeviceMemory memory |
| 8160 | VkDeviceSize memoryOffset |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8161 | } |
| 8162 | |
| 8163 | @internal class BufferViewObject { |
| 8164 | VkDevice device |
| 8165 | VkBuffer buffer |
| 8166 | } |
| 8167 | |
| 8168 | @internal class ImageObject { |
| 8169 | VkDevice device |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 8170 | VkDeviceMemory memory |
| 8171 | VkDeviceSize memoryOffset |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8172 | } |
| 8173 | |
| 8174 | @internal class ImageViewObject { |
| 8175 | VkDevice device |
| 8176 | VkImage image |
| 8177 | } |
| 8178 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8179 | @internal class ShaderObject { |
| 8180 | VkDevice device |
| 8181 | } |
| 8182 | |
| 8183 | @internal class ShaderModuleObject { |
| 8184 | VkDevice device |
| 8185 | } |
| 8186 | |
| 8187 | @internal class PipelineObject { |
| 8188 | VkDevice device |
| 8189 | } |
| 8190 | |
| 8191 | @internal class PipelineLayoutObject { |
| 8192 | VkDevice device |
| 8193 | } |
| 8194 | |
| 8195 | @internal class SamplerObject { |
| 8196 | VkDevice device |
| 8197 | } |
| 8198 | |
| 8199 | @internal class DescriptorSetObject { |
| 8200 | VkDevice device |
| 8201 | } |
| 8202 | |
| 8203 | @internal class DescriptorSetLayoutObject { |
| 8204 | VkDevice device |
| 8205 | } |
| 8206 | |
| 8207 | @internal class DescriptorPoolObject { |
| 8208 | VkDevice device |
| 8209 | } |
| 8210 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8211 | @internal class FenceObject { |
| 8212 | VkDevice device |
| 8213 | bool signaled |
| 8214 | } |
| 8215 | |
| 8216 | @internal class SemaphoreObject { |
| 8217 | VkDevice device |
| 8218 | } |
| 8219 | |
| 8220 | @internal class EventObject { |
| 8221 | VkDevice device |
| 8222 | } |
| 8223 | |
| 8224 | @internal class QueryPoolObject { |
| 8225 | VkDevice device |
| 8226 | } |
| 8227 | |
| 8228 | @internal class FramebufferObject { |
| 8229 | VkDevice device |
| 8230 | } |
| 8231 | |
| 8232 | @internal class RenderPassObject { |
| 8233 | VkDevice device |
| 8234 | } |
| 8235 | |
| 8236 | @internal class PipelineCacheObject { |
| 8237 | VkDevice device |
| 8238 | } |
| 8239 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 8240 | @internal class CommandPoolObject { |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8241 | VkDevice device |
| 8242 | } |
| 8243 | |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 8244 | @internal class SurfaceObject { |
| 8245 | VkInstance instance |
| 8246 | } |
| 8247 | |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 8248 | @internal class SwapchainObject { |
| 8249 | VkDevice device |
| 8250 | } |
| 8251 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8252 | macro ref!InstanceObject GetInstance(VkInstance instance) { |
| 8253 | assert(instance in State.Instances) |
| 8254 | return State.Instances[instance] |
| 8255 | } |
| 8256 | |
| 8257 | macro ref!PhysicalDeviceObject GetPhysicalDevice(VkPhysicalDevice physicalDevice) { |
| 8258 | assert(physicalDevice in State.PhysicalDevices) |
| 8259 | return State.PhysicalDevices[physicalDevice] |
| 8260 | } |
| 8261 | |
| 8262 | macro ref!DeviceObject GetDevice(VkDevice device) { |
| 8263 | assert(device in State.Devices) |
| 8264 | return State.Devices[device] |
| 8265 | } |
| 8266 | |
| 8267 | macro ref!QueueObject GetQueue(VkQueue queue) { |
| 8268 | assert(queue in State.Queues) |
| 8269 | return State.Queues[queue] |
| 8270 | } |
| 8271 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 8272 | macro ref!CommandBufferObject GetCommandBuffer(VkCommandBuffer commandBuffer) { |
| 8273 | assert(commandBuffer in State.CommandBuffers) |
| 8274 | return State.CommandBuffers[commandBuffer] |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8275 | } |
| 8276 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 8277 | macro ref!DeviceMemoryObject GetDeviceMemory(VkDeviceMemory memory) { |
| 8278 | assert(memory in State.DeviceMemories) |
| 8279 | return State.DeviceMemories[memory] |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8280 | } |
| 8281 | |
| 8282 | macro ref!BufferObject GetBuffer(VkBuffer buffer) { |
| 8283 | assert(buffer in State.Buffers) |
| 8284 | return State.Buffers[buffer] |
| 8285 | } |
| 8286 | |
| 8287 | macro ref!BufferViewObject GetBufferView(VkBufferView bufferView) { |
| 8288 | assert(bufferView in State.BufferViews) |
| 8289 | return State.BufferViews[bufferView] |
| 8290 | } |
| 8291 | |
| 8292 | macro ref!ImageObject GetImage(VkImage image) { |
| 8293 | assert(image in State.Images) |
| 8294 | return State.Images[image] |
| 8295 | } |
| 8296 | |
| 8297 | macro ref!ImageViewObject GetImageView(VkImageView imageView) { |
| 8298 | assert(imageView in State.ImageViews) |
| 8299 | return State.ImageViews[imageView] |
| 8300 | } |
| 8301 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8302 | macro ref!ShaderModuleObject GetShaderModule(VkShaderModule shaderModule) { |
| 8303 | assert(shaderModule in State.ShaderModules) |
| 8304 | return State.ShaderModules[shaderModule] |
| 8305 | } |
| 8306 | |
| 8307 | macro ref!PipelineObject GetPipeline(VkPipeline pipeline) { |
| 8308 | assert(pipeline in State.Pipelines) |
| 8309 | return State.Pipelines[pipeline] |
| 8310 | } |
| 8311 | |
| 8312 | macro ref!PipelineLayoutObject GetPipelineLayout(VkPipelineLayout pipelineLayout) { |
| 8313 | assert(pipelineLayout in State.PipelineLayouts) |
| 8314 | return State.PipelineLayouts[pipelineLayout] |
| 8315 | } |
| 8316 | |
| 8317 | macro ref!SamplerObject GetSampler(VkSampler sampler) { |
| 8318 | assert(sampler in State.Samplers) |
| 8319 | return State.Samplers[sampler] |
| 8320 | } |
| 8321 | |
| 8322 | macro ref!DescriptorSetObject GetDescriptorSet(VkDescriptorSet descriptorSet) { |
| 8323 | assert(descriptorSet in State.DescriptorSets) |
| 8324 | return State.DescriptorSets[descriptorSet] |
| 8325 | } |
| 8326 | |
| 8327 | macro ref!DescriptorSetLayoutObject GetDescriptorSetLayout(VkDescriptorSetLayout descriptorSetLayout) { |
| 8328 | assert(descriptorSetLayout in State.DescriptorSetLayouts) |
| 8329 | return State.DescriptorSetLayouts[descriptorSetLayout] |
| 8330 | } |
| 8331 | |
| 8332 | macro ref!DescriptorPoolObject GetDescriptorPool(VkDescriptorPool descriptorPool) { |
| 8333 | assert(descriptorPool in State.DescriptorPools) |
| 8334 | return State.DescriptorPools[descriptorPool] |
| 8335 | } |
| 8336 | |
Jesse Hall | d27f6aa | 2015-08-15 17:58:48 -0700 | [diff] [blame] | 8337 | macro ref!FenceObject GetFence(VkFence fence) { |
| 8338 | assert(fence in State.Fences) |
| 8339 | return State.Fences[fence] |
| 8340 | } |
| 8341 | |
| 8342 | macro ref!SemaphoreObject GetSemaphore(VkSemaphore semaphore) { |
| 8343 | assert(semaphore in State.Semaphores) |
| 8344 | return State.Semaphores[semaphore] |
| 8345 | } |
| 8346 | |
| 8347 | macro ref!EventObject GetEvent(VkEvent event) { |
| 8348 | assert(event in State.Events) |
| 8349 | return State.Events[event] |
| 8350 | } |
| 8351 | |
| 8352 | macro ref!QueryPoolObject GetQueryPool(VkQueryPool queryPool) { |
| 8353 | assert(queryPool in State.QueryPools) |
| 8354 | return State.QueryPools[queryPool] |
| 8355 | } |
| 8356 | |
| 8357 | macro ref!FramebufferObject GetFramebuffer(VkFramebuffer framebuffer) { |
| 8358 | assert(framebuffer in State.Framebuffers) |
| 8359 | return State.Framebuffers[framebuffer] |
| 8360 | } |
| 8361 | |
| 8362 | macro ref!RenderPassObject GetRenderPass(VkRenderPass renderPass) { |
| 8363 | assert(renderPass in State.RenderPasses) |
| 8364 | return State.RenderPasses[renderPass] |
| 8365 | } |
| 8366 | |
| 8367 | macro ref!PipelineCacheObject GetPipelineCache(VkPipelineCache pipelineCache) { |
| 8368 | assert(pipelineCache in State.PipelineCaches) |
| 8369 | return State.PipelineCaches[pipelineCache] |
| 8370 | } |
| 8371 | |
Jesse Hall | 3fbc856 | 2015-11-29 22:10:52 -0800 | [diff] [blame] | 8372 | macro ref!CommandPoolObject GetCommandPool(VkCommandPool commandPool) { |
| 8373 | assert(commandPool in State.CommandPools) |
| 8374 | return State.CommandPools[commandPool] |
Jesse Hall | f09c6b1 | 2015-08-15 19:54:28 -0700 | [diff] [blame] | 8375 | } |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 8376 | |
Jesse Hall | 1356b0d | 2015-11-23 17:24:58 -0800 | [diff] [blame] | 8377 | macro ref!SurfaceObject GetSurface(VkSurfaceKHR surface) { |
| 8378 | assert(surface in State.Surfaces) |
| 8379 | return State.Surfaces[surface] |
| 8380 | } |
| 8381 | |
Michael Lentine | 88594d7 | 2015-11-12 12:49:45 -0800 | [diff] [blame] | 8382 | macro ref!SwapchainObject GetSwapchain(VkSwapchainKHR swapchain) { |
| 8383 | assert(swapchain in State.Swapchains) |
| 8384 | return State.Swapchains[swapchain] |
| 8385 | } |
Jesse Hall | d8bade0 | 2015-11-24 10:24:18 -0800 | [diff] [blame] | 8386 | |
| 8387 | macro VkQueueFlags AddQueueFlag(VkQueueFlags flags, VkQueueFlagBits bit) { |
| 8388 | return as!VkQueueFlags(as!u32(flags) | as!u32(bit)) |
| 8389 | } |