Debian Codegraph @

subprojects/Vulkan-Headers-1.4.346/include/vulkan/vulkan_raii.hpp

raw symbols SCIP
1 // Copyright 2015-2026 The Khronos Group Inc.
2 //
3 // SPDX-License-Identifier: Apache-2.0 OR MIT
4 //
5
6 // This header is generated from the Khronos Vulkan XML API Registry.
7
8 #ifndef VULKAN_RAII_HPP
9 #define VULKAN_RAII_HPP
10
11 #if !defined( VULKAN_HPP_CXX_MODULE )
12 # include <memory> // std::unique_ptr
13 # include <utility> // std::forward
14 # include <vulkan/vulkan.hpp>
15 #endif
16
17 #if !defined( VULKAN_HPP_DISABLE_ENHANCED_MODE )
18 VULKAN_HPP_EXPORT namespace VULKAN_HPP_NAMESPACE
19 {
20 namespace VULKAN_HPP_RAII_NAMESPACE
21 {
22 namespace detail
23 {
24 using PFN_dummy = void ( * )();
25
26 class ContextDispatcher : public ::VULKAN_HPP_NAMESPACE::detail::DispatchLoaderBase
27 {
28 public:
29 ContextDispatcher( PFN_vkGetInstanceProcAddr getProcAddr )
30 : vkGetInstanceProcAddr( getProcAddr )
31 //=== VK_VERSION_1_0 ===
32 , vkCreateInstance( PFN_vkCreateInstance( getProcAddr( NULL, "vkCreateInstance" ) ) )
33 , vkEnumerateInstanceExtensionProperties(
34 PFN_vkEnumerateInstanceExtensionProperties( getProcAddr( NULL, "vkEnumerateInstanceExtensionProperties" ) ) )
35 , vkEnumerateInstanceLayerProperties( PFN_vkEnumerateInstanceLayerProperties( getProcAddr( NULL, "vkEnumerateInstanceLayerProperties" ) ) )
36 //=== VK_VERSION_1_1 ===
37 , vkEnumerateInstanceVersion( PFN_vkEnumerateInstanceVersion( getProcAddr( NULL, "vkEnumerateInstanceVersion" ) ) )
38 {
39 }
40
41 public:
42 PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = 0;
43
44 //=== VK_VERSION_1_0 ===
45 PFN_vkCreateInstance vkCreateInstance = 0;
46 PFN_vkEnumerateInstanceExtensionProperties vkEnumerateInstanceExtensionProperties = 0;
47 PFN_vkEnumerateInstanceLayerProperties vkEnumerateInstanceLayerProperties = 0;
48
49 //=== VK_VERSION_1_1 ===
50 PFN_vkEnumerateInstanceVersion vkEnumerateInstanceVersion = 0;
51 };
52
53 class InstanceDispatcher : public ::VULKAN_HPP_NAMESPACE::detail::DispatchLoaderBase
54 {
55 public:
56 InstanceDispatcher( PFN_vkGetInstanceProcAddr getProcAddr, VkInstance instance ) : vkGetInstanceProcAddr( getProcAddr )
57 {
58 //=== VK_VERSION_1_0 ===
59 vkDestroyInstance = PFN_vkDestroyInstance( vkGetInstanceProcAddr( instance, "vkDestroyInstance" ) );
60 vkEnumeratePhysicalDevices = PFN_vkEnumeratePhysicalDevices( vkGetInstanceProcAddr( instance, "vkEnumeratePhysicalDevices" ) );
61 vkGetPhysicalDeviceFeatures = PFN_vkGetPhysicalDeviceFeatures( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFeatures" ) );
62 vkGetPhysicalDeviceFormatProperties =
63 PFN_vkGetPhysicalDeviceFormatProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFormatProperties" ) );
64 vkGetPhysicalDeviceImageFormatProperties =
65 PFN_vkGetPhysicalDeviceImageFormatProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceImageFormatProperties" ) );
66 vkGetPhysicalDeviceProperties = PFN_vkGetPhysicalDeviceProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceProperties" ) );
67 vkGetPhysicalDeviceQueueFamilyProperties =
68 PFN_vkGetPhysicalDeviceQueueFamilyProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceQueueFamilyProperties" ) );
69 vkGetPhysicalDeviceMemoryProperties =
70 PFN_vkGetPhysicalDeviceMemoryProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceMemoryProperties" ) );
71 vkCreateDevice = PFN_vkCreateDevice( vkGetInstanceProcAddr( instance, "vkCreateDevice" ) );
72 vkEnumerateDeviceExtensionProperties =
73 PFN_vkEnumerateDeviceExtensionProperties( vkGetInstanceProcAddr( instance, "vkEnumerateDeviceExtensionProperties" ) );
74 vkEnumerateDeviceLayerProperties = PFN_vkEnumerateDeviceLayerProperties( vkGetInstanceProcAddr( instance, "vkEnumerateDeviceLayerProperties" ) );
75 vkGetPhysicalDeviceSparseImageFormatProperties =
76 PFN_vkGetPhysicalDeviceSparseImageFormatProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSparseImageFormatProperties" ) );
77
78 //=== VK_VERSION_1_1 ===
79 vkEnumeratePhysicalDeviceGroups = PFN_vkEnumeratePhysicalDeviceGroups( vkGetInstanceProcAddr( instance, "vkEnumeratePhysicalDeviceGroups" ) );
80 vkGetPhysicalDeviceFeatures2 = PFN_vkGetPhysicalDeviceFeatures2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFeatures2" ) );
81 vkGetPhysicalDeviceProperties2 = PFN_vkGetPhysicalDeviceProperties2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceProperties2" ) );
82 vkGetPhysicalDeviceFormatProperties2 =
83 PFN_vkGetPhysicalDeviceFormatProperties2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFormatProperties2" ) );
84 vkGetPhysicalDeviceImageFormatProperties2 =
85 PFN_vkGetPhysicalDeviceImageFormatProperties2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceImageFormatProperties2" ) );
86 vkGetPhysicalDeviceQueueFamilyProperties2 =
87 PFN_vkGetPhysicalDeviceQueueFamilyProperties2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceQueueFamilyProperties2" ) );
88 vkGetPhysicalDeviceMemoryProperties2 =
89 PFN_vkGetPhysicalDeviceMemoryProperties2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceMemoryProperties2" ) );
90 vkGetPhysicalDeviceSparseImageFormatProperties2 =
91 PFN_vkGetPhysicalDeviceSparseImageFormatProperties2( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSparseImageFormatProperties2" ) );
92 vkGetPhysicalDeviceExternalBufferProperties =
93 PFN_vkGetPhysicalDeviceExternalBufferProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalBufferProperties" ) );
94 vkGetPhysicalDeviceExternalFenceProperties =
95 PFN_vkGetPhysicalDeviceExternalFenceProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalFenceProperties" ) );
96 vkGetPhysicalDeviceExternalSemaphoreProperties =
97 PFN_vkGetPhysicalDeviceExternalSemaphoreProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalSemaphoreProperties" ) );
98
99 //=== VK_VERSION_1_3 ===
100 vkGetPhysicalDeviceToolProperties = PFN_vkGetPhysicalDeviceToolProperties( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceToolProperties" ) );
101
102 //=== VK_KHR_surface ===
103 vkDestroySurfaceKHR = PFN_vkDestroySurfaceKHR( vkGetInstanceProcAddr( instance, "vkDestroySurfaceKHR" ) );
104 vkGetPhysicalDeviceSurfaceSupportKHR =
105 PFN_vkGetPhysicalDeviceSurfaceSupportKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfaceSupportKHR" ) );
106 vkGetPhysicalDeviceSurfaceCapabilitiesKHR =
107 PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfaceCapabilitiesKHR" ) );
108 vkGetPhysicalDeviceSurfaceFormatsKHR =
109 PFN_vkGetPhysicalDeviceSurfaceFormatsKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfaceFormatsKHR" ) );
110 vkGetPhysicalDeviceSurfacePresentModesKHR =
111 PFN_vkGetPhysicalDeviceSurfacePresentModesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfacePresentModesKHR" ) );
112
113 //=== VK_KHR_swapchain ===
114 vkGetPhysicalDevicePresentRectanglesKHR =
115 PFN_vkGetPhysicalDevicePresentRectanglesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDevicePresentRectanglesKHR" ) );
116
117 //=== VK_KHR_display ===
118 vkGetPhysicalDeviceDisplayPropertiesKHR =
119 PFN_vkGetPhysicalDeviceDisplayPropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceDisplayPropertiesKHR" ) );
120 vkGetPhysicalDeviceDisplayPlanePropertiesKHR =
121 PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceDisplayPlanePropertiesKHR" ) );
122 vkGetDisplayPlaneSupportedDisplaysKHR =
123 PFN_vkGetDisplayPlaneSupportedDisplaysKHR( vkGetInstanceProcAddr( instance, "vkGetDisplayPlaneSupportedDisplaysKHR" ) );
124 vkGetDisplayModePropertiesKHR = PFN_vkGetDisplayModePropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetDisplayModePropertiesKHR" ) );
125 vkCreateDisplayModeKHR = PFN_vkCreateDisplayModeKHR( vkGetInstanceProcAddr( instance, "vkCreateDisplayModeKHR" ) );
126 vkGetDisplayPlaneCapabilitiesKHR = PFN_vkGetDisplayPlaneCapabilitiesKHR( vkGetInstanceProcAddr( instance, "vkGetDisplayPlaneCapabilitiesKHR" ) );
127 vkCreateDisplayPlaneSurfaceKHR = PFN_vkCreateDisplayPlaneSurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateDisplayPlaneSurfaceKHR" ) );
128
129 # if defined( VK_USE_PLATFORM_XLIB_KHR )
130 //=== VK_KHR_xlib_surface ===
131 vkCreateXlibSurfaceKHR = PFN_vkCreateXlibSurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateXlibSurfaceKHR" ) );
132 vkGetPhysicalDeviceXlibPresentationSupportKHR =
133 PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceXlibPresentationSupportKHR" ) );
134 # endif /*VK_USE_PLATFORM_XLIB_KHR*/
135
136 # if defined( VK_USE_PLATFORM_XCB_KHR )
137 //=== VK_KHR_xcb_surface ===
138 vkCreateXcbSurfaceKHR = PFN_vkCreateXcbSurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateXcbSurfaceKHR" ) );
139 vkGetPhysicalDeviceXcbPresentationSupportKHR =
140 PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceXcbPresentationSupportKHR" ) );
141 # endif /*VK_USE_PLATFORM_XCB_KHR*/
142
143 # if defined( VK_USE_PLATFORM_WAYLAND_KHR )
144 //=== VK_KHR_wayland_surface ===
145 vkCreateWaylandSurfaceKHR = PFN_vkCreateWaylandSurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateWaylandSurfaceKHR" ) );
146 vkGetPhysicalDeviceWaylandPresentationSupportKHR =
147 PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceWaylandPresentationSupportKHR" ) );
148 # endif /*VK_USE_PLATFORM_WAYLAND_KHR*/
149
150 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
151 //=== VK_KHR_android_surface ===
152 vkCreateAndroidSurfaceKHR = PFN_vkCreateAndroidSurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateAndroidSurfaceKHR" ) );
153 # endif /*VK_USE_PLATFORM_ANDROID_KHR*/
154
155 # if defined( VK_USE_PLATFORM_WIN32_KHR )
156 //=== VK_KHR_win32_surface ===
157 vkCreateWin32SurfaceKHR = PFN_vkCreateWin32SurfaceKHR( vkGetInstanceProcAddr( instance, "vkCreateWin32SurfaceKHR" ) );
158 vkGetPhysicalDeviceWin32PresentationSupportKHR =
159 PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceWin32PresentationSupportKHR" ) );
160 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
161
162 //=== VK_EXT_debug_report ===
163 vkCreateDebugReportCallbackEXT = PFN_vkCreateDebugReportCallbackEXT( vkGetInstanceProcAddr( instance, "vkCreateDebugReportCallbackEXT" ) );
164 vkDestroyDebugReportCallbackEXT = PFN_vkDestroyDebugReportCallbackEXT( vkGetInstanceProcAddr( instance, "vkDestroyDebugReportCallbackEXT" ) );
165 vkDebugReportMessageEXT = PFN_vkDebugReportMessageEXT( vkGetInstanceProcAddr( instance, "vkDebugReportMessageEXT" ) );
166
167 //=== VK_KHR_video_queue ===
168 vkGetPhysicalDeviceVideoCapabilitiesKHR =
169 PFN_vkGetPhysicalDeviceVideoCapabilitiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceVideoCapabilitiesKHR" ) );
170 vkGetPhysicalDeviceVideoFormatPropertiesKHR =
171 PFN_vkGetPhysicalDeviceVideoFormatPropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceVideoFormatPropertiesKHR" ) );
172
173 # if defined( VK_USE_PLATFORM_GGP )
174 //=== VK_GGP_stream_descriptor_surface ===
175 vkCreateStreamDescriptorSurfaceGGP =
176 PFN_vkCreateStreamDescriptorSurfaceGGP( vkGetInstanceProcAddr( instance, "vkCreateStreamDescriptorSurfaceGGP" ) );
177 # endif /*VK_USE_PLATFORM_GGP*/
178
179 //=== VK_NV_external_memory_capabilities ===
180 vkGetPhysicalDeviceExternalImageFormatPropertiesNV =
181 PFN_vkGetPhysicalDeviceExternalImageFormatPropertiesNV( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalImageFormatPropertiesNV" ) );
182
183 //=== VK_KHR_get_physical_device_properties2 ===
184 vkGetPhysicalDeviceFeatures2KHR = PFN_vkGetPhysicalDeviceFeatures2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFeatures2KHR" ) );
185 if ( !vkGetPhysicalDeviceFeatures2 )
186 vkGetPhysicalDeviceFeatures2 = vkGetPhysicalDeviceFeatures2KHR;
187 vkGetPhysicalDeviceProperties2KHR = PFN_vkGetPhysicalDeviceProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceProperties2KHR" ) );
188 if ( !vkGetPhysicalDeviceProperties2 )
189 vkGetPhysicalDeviceProperties2 = vkGetPhysicalDeviceProperties2KHR;
190 vkGetPhysicalDeviceFormatProperties2KHR =
191 PFN_vkGetPhysicalDeviceFormatProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFormatProperties2KHR" ) );
192 if ( !vkGetPhysicalDeviceFormatProperties2 )
193 vkGetPhysicalDeviceFormatProperties2 = vkGetPhysicalDeviceFormatProperties2KHR;
194 vkGetPhysicalDeviceImageFormatProperties2KHR =
195 PFN_vkGetPhysicalDeviceImageFormatProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceImageFormatProperties2KHR" ) );
196 if ( !vkGetPhysicalDeviceImageFormatProperties2 )
197 vkGetPhysicalDeviceImageFormatProperties2 = vkGetPhysicalDeviceImageFormatProperties2KHR;
198 vkGetPhysicalDeviceQueueFamilyProperties2KHR =
199 PFN_vkGetPhysicalDeviceQueueFamilyProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceQueueFamilyProperties2KHR" ) );
200 if ( !vkGetPhysicalDeviceQueueFamilyProperties2 )
201 vkGetPhysicalDeviceQueueFamilyProperties2 = vkGetPhysicalDeviceQueueFamilyProperties2KHR;
202 vkGetPhysicalDeviceMemoryProperties2KHR =
203 PFN_vkGetPhysicalDeviceMemoryProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceMemoryProperties2KHR" ) );
204 if ( !vkGetPhysicalDeviceMemoryProperties2 )
205 vkGetPhysicalDeviceMemoryProperties2 = vkGetPhysicalDeviceMemoryProperties2KHR;
206 vkGetPhysicalDeviceSparseImageFormatProperties2KHR =
207 PFN_vkGetPhysicalDeviceSparseImageFormatProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSparseImageFormatProperties2KHR" ) );
208 if ( !vkGetPhysicalDeviceSparseImageFormatProperties2 )
209 vkGetPhysicalDeviceSparseImageFormatProperties2 = vkGetPhysicalDeviceSparseImageFormatProperties2KHR;
210
211 # if defined( VK_USE_PLATFORM_VI_NN )
212 //=== VK_NN_vi_surface ===
213 vkCreateViSurfaceNN = PFN_vkCreateViSurfaceNN( vkGetInstanceProcAddr( instance, "vkCreateViSurfaceNN" ) );
214 # endif /*VK_USE_PLATFORM_VI_NN*/
215
216 //=== VK_KHR_device_group_creation ===
217 vkEnumeratePhysicalDeviceGroupsKHR =
218 PFN_vkEnumeratePhysicalDeviceGroupsKHR( vkGetInstanceProcAddr( instance, "vkEnumeratePhysicalDeviceGroupsKHR" ) );
219 if ( !vkEnumeratePhysicalDeviceGroups )
220 vkEnumeratePhysicalDeviceGroups = vkEnumeratePhysicalDeviceGroupsKHR;
221
222 //=== VK_KHR_external_memory_capabilities ===
223 vkGetPhysicalDeviceExternalBufferPropertiesKHR =
224 PFN_vkGetPhysicalDeviceExternalBufferPropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalBufferPropertiesKHR" ) );
225 if ( !vkGetPhysicalDeviceExternalBufferProperties )
226 vkGetPhysicalDeviceExternalBufferProperties = vkGetPhysicalDeviceExternalBufferPropertiesKHR;
227
228 //=== VK_KHR_external_semaphore_capabilities ===
229 vkGetPhysicalDeviceExternalSemaphorePropertiesKHR =
230 PFN_vkGetPhysicalDeviceExternalSemaphorePropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalSemaphorePropertiesKHR" ) );
231 if ( !vkGetPhysicalDeviceExternalSemaphoreProperties )
232 vkGetPhysicalDeviceExternalSemaphoreProperties = vkGetPhysicalDeviceExternalSemaphorePropertiesKHR;
233
234 //=== VK_EXT_direct_mode_display ===
235 vkReleaseDisplayEXT = PFN_vkReleaseDisplayEXT( vkGetInstanceProcAddr( instance, "vkReleaseDisplayEXT" ) );
236
237 # if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT )
238 //=== VK_EXT_acquire_xlib_display ===
239 vkAcquireXlibDisplayEXT = PFN_vkAcquireXlibDisplayEXT( vkGetInstanceProcAddr( instance, "vkAcquireXlibDisplayEXT" ) );
240 vkGetRandROutputDisplayEXT = PFN_vkGetRandROutputDisplayEXT( vkGetInstanceProcAddr( instance, "vkGetRandROutputDisplayEXT" ) );
241 # endif /*VK_USE_PLATFORM_XLIB_XRANDR_EXT*/
242
243 //=== VK_EXT_display_surface_counter ===
244 vkGetPhysicalDeviceSurfaceCapabilities2EXT =
245 PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfaceCapabilities2EXT" ) );
246
247 //=== VK_KHR_external_fence_capabilities ===
248 vkGetPhysicalDeviceExternalFencePropertiesKHR =
249 PFN_vkGetPhysicalDeviceExternalFencePropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalFencePropertiesKHR" ) );
250 if ( !vkGetPhysicalDeviceExternalFenceProperties )
251 vkGetPhysicalDeviceExternalFenceProperties = vkGetPhysicalDeviceExternalFencePropertiesKHR;
252
253 //=== VK_KHR_performance_query ===
254 vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR = PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(
255 vkGetInstanceProcAddr( instance, "vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR" ) );
256 vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR = PFN_vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR(
257 vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR" ) );
258
259 //=== VK_KHR_get_surface_capabilities2 ===
260 vkGetPhysicalDeviceSurfaceCapabilities2KHR =
261 PFN_vkGetPhysicalDeviceSurfaceCapabilities2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfaceCapabilities2KHR" ) );
262 vkGetPhysicalDeviceSurfaceFormats2KHR =
263 PFN_vkGetPhysicalDeviceSurfaceFormats2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfaceFormats2KHR" ) );
264
265 //=== VK_KHR_get_display_properties2 ===
266 vkGetPhysicalDeviceDisplayProperties2KHR =
267 PFN_vkGetPhysicalDeviceDisplayProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceDisplayProperties2KHR" ) );
268 vkGetPhysicalDeviceDisplayPlaneProperties2KHR =
269 PFN_vkGetPhysicalDeviceDisplayPlaneProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceDisplayPlaneProperties2KHR" ) );
270 vkGetDisplayModeProperties2KHR = PFN_vkGetDisplayModeProperties2KHR( vkGetInstanceProcAddr( instance, "vkGetDisplayModeProperties2KHR" ) );
271 vkGetDisplayPlaneCapabilities2KHR = PFN_vkGetDisplayPlaneCapabilities2KHR( vkGetInstanceProcAddr( instance, "vkGetDisplayPlaneCapabilities2KHR" ) );
272
273 # if defined( VK_USE_PLATFORM_IOS_MVK )
274 //=== VK_MVK_ios_surface ===
275 vkCreateIOSSurfaceMVK = PFN_vkCreateIOSSurfaceMVK( vkGetInstanceProcAddr( instance, "vkCreateIOSSurfaceMVK" ) );
276 # endif /*VK_USE_PLATFORM_IOS_MVK*/
277
278 # if defined( VK_USE_PLATFORM_MACOS_MVK )
279 //=== VK_MVK_macos_surface ===
280 vkCreateMacOSSurfaceMVK = PFN_vkCreateMacOSSurfaceMVK( vkGetInstanceProcAddr( instance, "vkCreateMacOSSurfaceMVK" ) );
281 # endif /*VK_USE_PLATFORM_MACOS_MVK*/
282
283 //=== VK_EXT_debug_utils ===
284 vkCreateDebugUtilsMessengerEXT = PFN_vkCreateDebugUtilsMessengerEXT( vkGetInstanceProcAddr( instance, "vkCreateDebugUtilsMessengerEXT" ) );
285 vkDestroyDebugUtilsMessengerEXT = PFN_vkDestroyDebugUtilsMessengerEXT( vkGetInstanceProcAddr( instance, "vkDestroyDebugUtilsMessengerEXT" ) );
286 vkSubmitDebugUtilsMessageEXT = PFN_vkSubmitDebugUtilsMessageEXT( vkGetInstanceProcAddr( instance, "vkSubmitDebugUtilsMessageEXT" ) );
287
288 //=== VK_EXT_descriptor_heap ===
289 vkGetPhysicalDeviceDescriptorSizeEXT =
290 PFN_vkGetPhysicalDeviceDescriptorSizeEXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceDescriptorSizeEXT" ) );
291
292 //=== VK_EXT_sample_locations ===
293 vkGetPhysicalDeviceMultisamplePropertiesEXT =
294 PFN_vkGetPhysicalDeviceMultisamplePropertiesEXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceMultisamplePropertiesEXT" ) );
295
296 //=== VK_EXT_calibrated_timestamps ===
297 vkGetPhysicalDeviceCalibrateableTimeDomainsEXT =
298 PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceCalibrateableTimeDomainsEXT" ) );
299 if ( !vkGetPhysicalDeviceCalibrateableTimeDomainsKHR )
300 vkGetPhysicalDeviceCalibrateableTimeDomainsKHR = vkGetPhysicalDeviceCalibrateableTimeDomainsEXT;
301
302 # if defined( VK_USE_PLATFORM_FUCHSIA )
303 //=== VK_FUCHSIA_imagepipe_surface ===
304 vkCreateImagePipeSurfaceFUCHSIA = PFN_vkCreateImagePipeSurfaceFUCHSIA( vkGetInstanceProcAddr( instance, "vkCreateImagePipeSurfaceFUCHSIA" ) );
305 # endif /*VK_USE_PLATFORM_FUCHSIA*/
306
307 # if defined( VK_USE_PLATFORM_METAL_EXT )
308 //=== VK_EXT_metal_surface ===
309 vkCreateMetalSurfaceEXT = PFN_vkCreateMetalSurfaceEXT( vkGetInstanceProcAddr( instance, "vkCreateMetalSurfaceEXT" ) );
310 # endif /*VK_USE_PLATFORM_METAL_EXT*/
311
312 //=== VK_KHR_fragment_shading_rate ===
313 vkGetPhysicalDeviceFragmentShadingRatesKHR =
314 PFN_vkGetPhysicalDeviceFragmentShadingRatesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceFragmentShadingRatesKHR" ) );
315
316 //=== VK_EXT_tooling_info ===
317 vkGetPhysicalDeviceToolPropertiesEXT =
318 PFN_vkGetPhysicalDeviceToolPropertiesEXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceToolPropertiesEXT" ) );
319 if ( !vkGetPhysicalDeviceToolProperties )
320 vkGetPhysicalDeviceToolProperties = vkGetPhysicalDeviceToolPropertiesEXT;
321
322 //=== VK_NV_cooperative_matrix ===
323 vkGetPhysicalDeviceCooperativeMatrixPropertiesNV =
324 PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceCooperativeMatrixPropertiesNV" ) );
325
326 //=== VK_NV_coverage_reduction_mode ===
327 vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV = PFN_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
328 vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV" ) );
329
330 # if defined( VK_USE_PLATFORM_WIN32_KHR )
331 //=== VK_EXT_full_screen_exclusive ===
332 vkGetPhysicalDeviceSurfacePresentModes2EXT =
333 PFN_vkGetPhysicalDeviceSurfacePresentModes2EXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceSurfacePresentModes2EXT" ) );
334 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
335
336 //=== VK_EXT_headless_surface ===
337 vkCreateHeadlessSurfaceEXT = PFN_vkCreateHeadlessSurfaceEXT( vkGetInstanceProcAddr( instance, "vkCreateHeadlessSurfaceEXT" ) );
338
339 //=== VK_EXT_acquire_drm_display ===
340 vkAcquireDrmDisplayEXT = PFN_vkAcquireDrmDisplayEXT( vkGetInstanceProcAddr( instance, "vkAcquireDrmDisplayEXT" ) );
341 vkGetDrmDisplayEXT = PFN_vkGetDrmDisplayEXT( vkGetInstanceProcAddr( instance, "vkGetDrmDisplayEXT" ) );
342
343 //=== VK_KHR_video_encode_queue ===
344 vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR = PFN_vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR(
345 vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR" ) );
346
347 # if defined( VK_USE_PLATFORM_WIN32_KHR )
348 //=== VK_NV_acquire_winrt_display ===
349 vkAcquireWinrtDisplayNV = PFN_vkAcquireWinrtDisplayNV( vkGetInstanceProcAddr( instance, "vkAcquireWinrtDisplayNV" ) );
350 vkGetWinrtDisplayNV = PFN_vkGetWinrtDisplayNV( vkGetInstanceProcAddr( instance, "vkGetWinrtDisplayNV" ) );
351 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
352
353 # if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
354 //=== VK_EXT_directfb_surface ===
355 vkCreateDirectFBSurfaceEXT = PFN_vkCreateDirectFBSurfaceEXT( vkGetInstanceProcAddr( instance, "vkCreateDirectFBSurfaceEXT" ) );
356 vkGetPhysicalDeviceDirectFBPresentationSupportEXT =
357 PFN_vkGetPhysicalDeviceDirectFBPresentationSupportEXT( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceDirectFBPresentationSupportEXT" ) );
358 # endif /*VK_USE_PLATFORM_DIRECTFB_EXT*/
359
360 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
361 //=== VK_QNX_screen_surface ===
362 vkCreateScreenSurfaceQNX = PFN_vkCreateScreenSurfaceQNX( vkGetInstanceProcAddr( instance, "vkCreateScreenSurfaceQNX" ) );
363 vkGetPhysicalDeviceScreenPresentationSupportQNX =
364 PFN_vkGetPhysicalDeviceScreenPresentationSupportQNX( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceScreenPresentationSupportQNX" ) );
365 # endif /*VK_USE_PLATFORM_SCREEN_QNX*/
366
367 //=== VK_ARM_tensors ===
368 vkGetPhysicalDeviceExternalTensorPropertiesARM =
369 PFN_vkGetPhysicalDeviceExternalTensorPropertiesARM( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceExternalTensorPropertiesARM" ) );
370
371 //=== VK_NV_optical_flow ===
372 vkGetPhysicalDeviceOpticalFlowImageFormatsNV =
373 PFN_vkGetPhysicalDeviceOpticalFlowImageFormatsNV( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceOpticalFlowImageFormatsNV" ) );
374
375 //=== VK_NV_cooperative_vector ===
376 vkGetPhysicalDeviceCooperativeVectorPropertiesNV =
377 PFN_vkGetPhysicalDeviceCooperativeVectorPropertiesNV( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceCooperativeVectorPropertiesNV" ) );
378
379 //=== VK_KHR_cooperative_matrix ===
380 vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR =
381 PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR" ) );
382
383 //=== VK_ARM_data_graph ===
384 vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM = PFN_vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM(
385 vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM" ) );
386 vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM = PFN_vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM(
387 vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM" ) );
388
389 //=== VK_KHR_calibrated_timestamps ===
390 vkGetPhysicalDeviceCalibrateableTimeDomainsKHR =
391 PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceCalibrateableTimeDomainsKHR" ) );
392
393 # if defined( VK_USE_PLATFORM_OHOS )
394 //=== VK_OHOS_surface ===
395 vkCreateSurfaceOHOS = PFN_vkCreateSurfaceOHOS( vkGetInstanceProcAddr( instance, "vkCreateSurfaceOHOS" ) );
396 # endif /*VK_USE_PLATFORM_OHOS*/
397
398 //=== VK_NV_cooperative_matrix2 ===
399 vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV = PFN_vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV(
400 vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV" ) );
401
402 //=== VK_ARM_performance_counters_by_region ===
403 vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM = PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM(
404 vkGetInstanceProcAddr( instance, "vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM" ) );
405
406 //=== VK_ARM_shader_instrumentation ===
407 vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM = PFN_vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM(
408 vkGetInstanceProcAddr( instance, "vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM" ) );
409
410 # if defined( VK_USE_PLATFORM_UBM_SEC )
411 //=== VK_SEC_ubm_surface ===
412 vkCreateUbmSurfaceSEC = PFN_vkCreateUbmSurfaceSEC( vkGetInstanceProcAddr( instance, "vkCreateUbmSurfaceSEC" ) );
413 vkGetPhysicalDeviceUbmPresentationSupportSEC =
414 PFN_vkGetPhysicalDeviceUbmPresentationSupportSEC( vkGetInstanceProcAddr( instance, "vkGetPhysicalDeviceUbmPresentationSupportSEC" ) );
415 # endif /*VK_USE_PLATFORM_UBM_SEC*/
416
417 vkGetDeviceProcAddr = PFN_vkGetDeviceProcAddr( vkGetInstanceProcAddr( instance, "vkGetDeviceProcAddr" ) );
418 }
419
420 public:
421 //=== VK_VERSION_1_0 ===
422 PFN_vkDestroyInstance vkDestroyInstance = 0;
423 PFN_vkEnumeratePhysicalDevices vkEnumeratePhysicalDevices = 0;
424 PFN_vkGetPhysicalDeviceFeatures vkGetPhysicalDeviceFeatures = 0;
425 PFN_vkGetPhysicalDeviceFormatProperties vkGetPhysicalDeviceFormatProperties = 0;
426 PFN_vkGetPhysicalDeviceImageFormatProperties vkGetPhysicalDeviceImageFormatProperties = 0;
427 PFN_vkGetPhysicalDeviceProperties vkGetPhysicalDeviceProperties = 0;
428 PFN_vkGetPhysicalDeviceQueueFamilyProperties vkGetPhysicalDeviceQueueFamilyProperties = 0;
429 PFN_vkGetPhysicalDeviceMemoryProperties vkGetPhysicalDeviceMemoryProperties = 0;
430 PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr = 0;
431 PFN_vkCreateDevice vkCreateDevice = 0;
432 PFN_vkEnumerateDeviceExtensionProperties vkEnumerateDeviceExtensionProperties = 0;
433 PFN_vkEnumerateDeviceLayerProperties vkEnumerateDeviceLayerProperties = 0;
434 PFN_vkGetPhysicalDeviceSparseImageFormatProperties vkGetPhysicalDeviceSparseImageFormatProperties = 0;
435
436 //=== VK_VERSION_1_1 ===
437 PFN_vkEnumeratePhysicalDeviceGroups vkEnumeratePhysicalDeviceGroups = 0;
438 PFN_vkGetPhysicalDeviceFeatures2 vkGetPhysicalDeviceFeatures2 = 0;
439 PFN_vkGetPhysicalDeviceProperties2 vkGetPhysicalDeviceProperties2 = 0;
440 PFN_vkGetPhysicalDeviceFormatProperties2 vkGetPhysicalDeviceFormatProperties2 = 0;
441 PFN_vkGetPhysicalDeviceImageFormatProperties2 vkGetPhysicalDeviceImageFormatProperties2 = 0;
442 PFN_vkGetPhysicalDeviceQueueFamilyProperties2 vkGetPhysicalDeviceQueueFamilyProperties2 = 0;
443 PFN_vkGetPhysicalDeviceMemoryProperties2 vkGetPhysicalDeviceMemoryProperties2 = 0;
444 PFN_vkGetPhysicalDeviceSparseImageFormatProperties2 vkGetPhysicalDeviceSparseImageFormatProperties2 = 0;
445 PFN_vkGetPhysicalDeviceExternalBufferProperties vkGetPhysicalDeviceExternalBufferProperties = 0;
446 PFN_vkGetPhysicalDeviceExternalFenceProperties vkGetPhysicalDeviceExternalFenceProperties = 0;
447 PFN_vkGetPhysicalDeviceExternalSemaphoreProperties vkGetPhysicalDeviceExternalSemaphoreProperties = 0;
448
449 //=== VK_VERSION_1_3 ===
450 PFN_vkGetPhysicalDeviceToolProperties vkGetPhysicalDeviceToolProperties = 0;
451
452 //=== VK_KHR_surface ===
453 PFN_vkDestroySurfaceKHR vkDestroySurfaceKHR = 0;
454 PFN_vkGetPhysicalDeviceSurfaceSupportKHR vkGetPhysicalDeviceSurfaceSupportKHR = 0;
455 PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR vkGetPhysicalDeviceSurfaceCapabilitiesKHR = 0;
456 PFN_vkGetPhysicalDeviceSurfaceFormatsKHR vkGetPhysicalDeviceSurfaceFormatsKHR = 0;
457 PFN_vkGetPhysicalDeviceSurfacePresentModesKHR vkGetPhysicalDeviceSurfacePresentModesKHR = 0;
458
459 //=== VK_KHR_swapchain ===
460 PFN_vkGetPhysicalDevicePresentRectanglesKHR vkGetPhysicalDevicePresentRectanglesKHR = 0;
461
462 //=== VK_KHR_display ===
463 PFN_vkGetPhysicalDeviceDisplayPropertiesKHR vkGetPhysicalDeviceDisplayPropertiesKHR = 0;
464 PFN_vkGetPhysicalDeviceDisplayPlanePropertiesKHR vkGetPhysicalDeviceDisplayPlanePropertiesKHR = 0;
465 PFN_vkGetDisplayPlaneSupportedDisplaysKHR vkGetDisplayPlaneSupportedDisplaysKHR = 0;
466 PFN_vkGetDisplayModePropertiesKHR vkGetDisplayModePropertiesKHR = 0;
467 PFN_vkCreateDisplayModeKHR vkCreateDisplayModeKHR = 0;
468 PFN_vkGetDisplayPlaneCapabilitiesKHR vkGetDisplayPlaneCapabilitiesKHR = 0;
469 PFN_vkCreateDisplayPlaneSurfaceKHR vkCreateDisplayPlaneSurfaceKHR = 0;
470
471 # if defined( VK_USE_PLATFORM_XLIB_KHR )
472 //=== VK_KHR_xlib_surface ===
473 PFN_vkCreateXlibSurfaceKHR vkCreateXlibSurfaceKHR = 0;
474 PFN_vkGetPhysicalDeviceXlibPresentationSupportKHR vkGetPhysicalDeviceXlibPresentationSupportKHR = 0;
475 # else
476 PFN_dummy vkCreateXlibSurfaceKHR_placeholder = 0;
477 PFN_dummy vkGetPhysicalDeviceXlibPresentationSupportKHR_placeholder = 0;
478 # endif /*VK_USE_PLATFORM_XLIB_KHR*/
479
480 # if defined( VK_USE_PLATFORM_XCB_KHR )
481 //=== VK_KHR_xcb_surface ===
482 PFN_vkCreateXcbSurfaceKHR vkCreateXcbSurfaceKHR = 0;
483 PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR vkGetPhysicalDeviceXcbPresentationSupportKHR = 0;
484 # else
485 PFN_dummy vkCreateXcbSurfaceKHR_placeholder = 0;
486 PFN_dummy vkGetPhysicalDeviceXcbPresentationSupportKHR_placeholder = 0;
487 # endif /*VK_USE_PLATFORM_XCB_KHR*/
488
489 # if defined( VK_USE_PLATFORM_WAYLAND_KHR )
490 //=== VK_KHR_wayland_surface ===
491 PFN_vkCreateWaylandSurfaceKHR vkCreateWaylandSurfaceKHR = 0;
492 PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR vkGetPhysicalDeviceWaylandPresentationSupportKHR = 0;
493 # else
494 PFN_dummy vkCreateWaylandSurfaceKHR_placeholder = 0;
495 PFN_dummy vkGetPhysicalDeviceWaylandPresentationSupportKHR_placeholder = 0;
496 # endif /*VK_USE_PLATFORM_WAYLAND_KHR*/
497
498 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
499 //=== VK_KHR_android_surface ===
500 PFN_vkCreateAndroidSurfaceKHR vkCreateAndroidSurfaceKHR = 0;
501 # else
502 PFN_dummy vkCreateAndroidSurfaceKHR_placeholder = 0;
503 # endif /*VK_USE_PLATFORM_ANDROID_KHR*/
504
505 # if defined( VK_USE_PLATFORM_WIN32_KHR )
506 //=== VK_KHR_win32_surface ===
507 PFN_vkCreateWin32SurfaceKHR vkCreateWin32SurfaceKHR = 0;
508 PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR vkGetPhysicalDeviceWin32PresentationSupportKHR = 0;
509 # else
510 PFN_dummy vkCreateWin32SurfaceKHR_placeholder = 0;
511 PFN_dummy vkGetPhysicalDeviceWin32PresentationSupportKHR_placeholder = 0;
512 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
513
514 //=== VK_EXT_debug_report ===
515 PFN_vkCreateDebugReportCallbackEXT vkCreateDebugReportCallbackEXT = 0;
516 PFN_vkDestroyDebugReportCallbackEXT vkDestroyDebugReportCallbackEXT = 0;
517 PFN_vkDebugReportMessageEXT vkDebugReportMessageEXT = 0;
518
519 //=== VK_KHR_video_queue ===
520 PFN_vkGetPhysicalDeviceVideoCapabilitiesKHR vkGetPhysicalDeviceVideoCapabilitiesKHR = 0;
521 PFN_vkGetPhysicalDeviceVideoFormatPropertiesKHR vkGetPhysicalDeviceVideoFormatPropertiesKHR = 0;
522
523 # if defined( VK_USE_PLATFORM_GGP )
524 //=== VK_GGP_stream_descriptor_surface ===
525 PFN_vkCreateStreamDescriptorSurfaceGGP vkCreateStreamDescriptorSurfaceGGP = 0;
526 # else
527 PFN_dummy vkCreateStreamDescriptorSurfaceGGP_placeholder = 0;
528 # endif /*VK_USE_PLATFORM_GGP*/
529
530 //=== VK_NV_external_memory_capabilities ===
531 PFN_vkGetPhysicalDeviceExternalImageFormatPropertiesNV vkGetPhysicalDeviceExternalImageFormatPropertiesNV = 0;
532
533 //=== VK_KHR_get_physical_device_properties2 ===
534 PFN_vkGetPhysicalDeviceFeatures2KHR vkGetPhysicalDeviceFeatures2KHR = 0;
535 PFN_vkGetPhysicalDeviceProperties2KHR vkGetPhysicalDeviceProperties2KHR = 0;
536 PFN_vkGetPhysicalDeviceFormatProperties2KHR vkGetPhysicalDeviceFormatProperties2KHR = 0;
537 PFN_vkGetPhysicalDeviceImageFormatProperties2KHR vkGetPhysicalDeviceImageFormatProperties2KHR = 0;
538 PFN_vkGetPhysicalDeviceQueueFamilyProperties2KHR vkGetPhysicalDeviceQueueFamilyProperties2KHR = 0;
539 PFN_vkGetPhysicalDeviceMemoryProperties2KHR vkGetPhysicalDeviceMemoryProperties2KHR = 0;
540 PFN_vkGetPhysicalDeviceSparseImageFormatProperties2KHR vkGetPhysicalDeviceSparseImageFormatProperties2KHR = 0;
541
542 # if defined( VK_USE_PLATFORM_VI_NN )
543 //=== VK_NN_vi_surface ===
544 PFN_vkCreateViSurfaceNN vkCreateViSurfaceNN = 0;
545 # else
546 PFN_dummy vkCreateViSurfaceNN_placeholder = 0;
547 # endif /*VK_USE_PLATFORM_VI_NN*/
548
549 //=== VK_KHR_device_group_creation ===
550 PFN_vkEnumeratePhysicalDeviceGroupsKHR vkEnumeratePhysicalDeviceGroupsKHR = 0;
551
552 //=== VK_KHR_external_memory_capabilities ===
553 PFN_vkGetPhysicalDeviceExternalBufferPropertiesKHR vkGetPhysicalDeviceExternalBufferPropertiesKHR = 0;
554
555 //=== VK_KHR_external_semaphore_capabilities ===
556 PFN_vkGetPhysicalDeviceExternalSemaphorePropertiesKHR vkGetPhysicalDeviceExternalSemaphorePropertiesKHR = 0;
557
558 //=== VK_EXT_direct_mode_display ===
559 PFN_vkReleaseDisplayEXT vkReleaseDisplayEXT = 0;
560
561 # if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT )
562 //=== VK_EXT_acquire_xlib_display ===
563 PFN_vkAcquireXlibDisplayEXT vkAcquireXlibDisplayEXT = 0;
564 PFN_vkGetRandROutputDisplayEXT vkGetRandROutputDisplayEXT = 0;
565 # else
566 PFN_dummy vkAcquireXlibDisplayEXT_placeholder = 0;
567 PFN_dummy vkGetRandROutputDisplayEXT_placeholder = 0;
568 # endif /*VK_USE_PLATFORM_XLIB_XRANDR_EXT*/
569
570 //=== VK_EXT_display_surface_counter ===
571 PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT vkGetPhysicalDeviceSurfaceCapabilities2EXT = 0;
572
573 //=== VK_KHR_external_fence_capabilities ===
574 PFN_vkGetPhysicalDeviceExternalFencePropertiesKHR vkGetPhysicalDeviceExternalFencePropertiesKHR = 0;
575
576 //=== VK_KHR_performance_query ===
577 PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR = 0;
578 PFN_vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR = 0;
579
580 //=== VK_KHR_get_surface_capabilities2 ===
581 PFN_vkGetPhysicalDeviceSurfaceCapabilities2KHR vkGetPhysicalDeviceSurfaceCapabilities2KHR = 0;
582 PFN_vkGetPhysicalDeviceSurfaceFormats2KHR vkGetPhysicalDeviceSurfaceFormats2KHR = 0;
583
584 //=== VK_KHR_get_display_properties2 ===
585 PFN_vkGetPhysicalDeviceDisplayProperties2KHR vkGetPhysicalDeviceDisplayProperties2KHR = 0;
586 PFN_vkGetPhysicalDeviceDisplayPlaneProperties2KHR vkGetPhysicalDeviceDisplayPlaneProperties2KHR = 0;
587 PFN_vkGetDisplayModeProperties2KHR vkGetDisplayModeProperties2KHR = 0;
588 PFN_vkGetDisplayPlaneCapabilities2KHR vkGetDisplayPlaneCapabilities2KHR = 0;
589
590 # if defined( VK_USE_PLATFORM_IOS_MVK )
591 //=== VK_MVK_ios_surface ===
592 PFN_vkCreateIOSSurfaceMVK vkCreateIOSSurfaceMVK = 0;
593 # else
594 PFN_dummy vkCreateIOSSurfaceMVK_placeholder = 0;
595 # endif /*VK_USE_PLATFORM_IOS_MVK*/
596
597 # if defined( VK_USE_PLATFORM_MACOS_MVK )
598 //=== VK_MVK_macos_surface ===
599 PFN_vkCreateMacOSSurfaceMVK vkCreateMacOSSurfaceMVK = 0;
600 # else
601 PFN_dummy vkCreateMacOSSurfaceMVK_placeholder = 0;
602 # endif /*VK_USE_PLATFORM_MACOS_MVK*/
603
604 //=== VK_EXT_debug_utils ===
605 PFN_vkCreateDebugUtilsMessengerEXT vkCreateDebugUtilsMessengerEXT = 0;
606 PFN_vkDestroyDebugUtilsMessengerEXT vkDestroyDebugUtilsMessengerEXT = 0;
607 PFN_vkSubmitDebugUtilsMessageEXT vkSubmitDebugUtilsMessageEXT = 0;
608
609 //=== VK_EXT_descriptor_heap ===
610 PFN_vkGetPhysicalDeviceDescriptorSizeEXT vkGetPhysicalDeviceDescriptorSizeEXT = 0;
611
612 //=== VK_EXT_sample_locations ===
613 PFN_vkGetPhysicalDeviceMultisamplePropertiesEXT vkGetPhysicalDeviceMultisamplePropertiesEXT = 0;
614
615 //=== VK_EXT_calibrated_timestamps ===
616 PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT vkGetPhysicalDeviceCalibrateableTimeDomainsEXT = 0;
617
618 # if defined( VK_USE_PLATFORM_FUCHSIA )
619 //=== VK_FUCHSIA_imagepipe_surface ===
620 PFN_vkCreateImagePipeSurfaceFUCHSIA vkCreateImagePipeSurfaceFUCHSIA = 0;
621 # else
622 PFN_dummy vkCreateImagePipeSurfaceFUCHSIA_placeholder = 0;
623 # endif /*VK_USE_PLATFORM_FUCHSIA*/
624
625 # if defined( VK_USE_PLATFORM_METAL_EXT )
626 //=== VK_EXT_metal_surface ===
627 PFN_vkCreateMetalSurfaceEXT vkCreateMetalSurfaceEXT = 0;
628 # else
629 PFN_dummy vkCreateMetalSurfaceEXT_placeholder = 0;
630 # endif /*VK_USE_PLATFORM_METAL_EXT*/
631
632 //=== VK_KHR_fragment_shading_rate ===
633 PFN_vkGetPhysicalDeviceFragmentShadingRatesKHR vkGetPhysicalDeviceFragmentShadingRatesKHR = 0;
634
635 //=== VK_EXT_tooling_info ===
636 PFN_vkGetPhysicalDeviceToolPropertiesEXT vkGetPhysicalDeviceToolPropertiesEXT = 0;
637
638 //=== VK_NV_cooperative_matrix ===
639 PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV vkGetPhysicalDeviceCooperativeMatrixPropertiesNV = 0;
640
641 //=== VK_NV_coverage_reduction_mode ===
642 PFN_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV = 0;
643
644 # if defined( VK_USE_PLATFORM_WIN32_KHR )
645 //=== VK_EXT_full_screen_exclusive ===
646 PFN_vkGetPhysicalDeviceSurfacePresentModes2EXT vkGetPhysicalDeviceSurfacePresentModes2EXT = 0;
647 # else
648 PFN_dummy vkGetPhysicalDeviceSurfacePresentModes2EXT_placeholder = 0;
649 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
650
651 //=== VK_EXT_headless_surface ===
652 PFN_vkCreateHeadlessSurfaceEXT vkCreateHeadlessSurfaceEXT = 0;
653
654 //=== VK_EXT_acquire_drm_display ===
655 PFN_vkAcquireDrmDisplayEXT vkAcquireDrmDisplayEXT = 0;
656 PFN_vkGetDrmDisplayEXT vkGetDrmDisplayEXT = 0;
657
658 //=== VK_KHR_video_encode_queue ===
659 PFN_vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR = 0;
660
661 # if defined( VK_USE_PLATFORM_WIN32_KHR )
662 //=== VK_NV_acquire_winrt_display ===
663 PFN_vkAcquireWinrtDisplayNV vkAcquireWinrtDisplayNV = 0;
664 PFN_vkGetWinrtDisplayNV vkGetWinrtDisplayNV = 0;
665 # else
666 PFN_dummy vkAcquireWinrtDisplayNV_placeholder = 0;
667 PFN_dummy vkGetWinrtDisplayNV_placeholder = 0;
668 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
669
670 # if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
671 //=== VK_EXT_directfb_surface ===
672 PFN_vkCreateDirectFBSurfaceEXT vkCreateDirectFBSurfaceEXT = 0;
673 PFN_vkGetPhysicalDeviceDirectFBPresentationSupportEXT vkGetPhysicalDeviceDirectFBPresentationSupportEXT = 0;
674 # else
675 PFN_dummy vkCreateDirectFBSurfaceEXT_placeholder = 0;
676 PFN_dummy vkGetPhysicalDeviceDirectFBPresentationSupportEXT_placeholder = 0;
677 # endif /*VK_USE_PLATFORM_DIRECTFB_EXT*/
678
679 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
680 //=== VK_QNX_screen_surface ===
681 PFN_vkCreateScreenSurfaceQNX vkCreateScreenSurfaceQNX = 0;
682 PFN_vkGetPhysicalDeviceScreenPresentationSupportQNX vkGetPhysicalDeviceScreenPresentationSupportQNX = 0;
683 # else
684 PFN_dummy vkCreateScreenSurfaceQNX_placeholder = 0;
685 PFN_dummy vkGetPhysicalDeviceScreenPresentationSupportQNX_placeholder = 0;
686 # endif /*VK_USE_PLATFORM_SCREEN_QNX*/
687
688 //=== VK_ARM_tensors ===
689 PFN_vkGetPhysicalDeviceExternalTensorPropertiesARM vkGetPhysicalDeviceExternalTensorPropertiesARM = 0;
690
691 //=== VK_NV_optical_flow ===
692 PFN_vkGetPhysicalDeviceOpticalFlowImageFormatsNV vkGetPhysicalDeviceOpticalFlowImageFormatsNV = 0;
693
694 //=== VK_NV_cooperative_vector ===
695 PFN_vkGetPhysicalDeviceCooperativeVectorPropertiesNV vkGetPhysicalDeviceCooperativeVectorPropertiesNV = 0;
696
697 //=== VK_KHR_cooperative_matrix ===
698 PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR = 0;
699
700 //=== VK_ARM_data_graph ===
701 PFN_vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM = 0;
702 PFN_vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM = 0;
703
704 //=== VK_KHR_calibrated_timestamps ===
705 PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsKHR vkGetPhysicalDeviceCalibrateableTimeDomainsKHR = 0;
706
707 # if defined( VK_USE_PLATFORM_OHOS )
708 //=== VK_OHOS_surface ===
709 PFN_vkCreateSurfaceOHOS vkCreateSurfaceOHOS = 0;
710 # else
711 PFN_dummy vkCreateSurfaceOHOS_placeholder = 0;
712 # endif /*VK_USE_PLATFORM_OHOS*/
713
714 //=== VK_NV_cooperative_matrix2 ===
715 PFN_vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV = 0;
716
717 //=== VK_ARM_performance_counters_by_region ===
718 PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM = 0;
719
720 //=== VK_ARM_shader_instrumentation ===
721 PFN_vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM = 0;
722
723 # if defined( VK_USE_PLATFORM_UBM_SEC )
724 //=== VK_SEC_ubm_surface ===
725 PFN_vkCreateUbmSurfaceSEC vkCreateUbmSurfaceSEC = 0;
726 PFN_vkGetPhysicalDeviceUbmPresentationSupportSEC vkGetPhysicalDeviceUbmPresentationSupportSEC = 0;
727 # else
728 PFN_dummy vkCreateUbmSurfaceSEC_placeholder = 0;
729 PFN_dummy vkGetPhysicalDeviceUbmPresentationSupportSEC_placeholder = 0;
730 # endif /*VK_USE_PLATFORM_UBM_SEC*/
731
732 PFN_vkGetDeviceProcAddr vkGetDeviceProcAddr = 0;
733 };
734
735 class DeviceDispatcher : public ::VULKAN_HPP_NAMESPACE::detail::DispatchLoaderBase
736 {
737 public:
738 DeviceDispatcher( PFN_vkGetDeviceProcAddr getProcAddr, VkDevice device ) : vkGetDeviceProcAddr( getProcAddr )
739 {
740 //=== VK_VERSION_1_0 ===
741 vkGetDeviceProcAddr = PFN_vkGetDeviceProcAddr( vkGetDeviceProcAddr( device, "vkGetDeviceProcAddr" ) );
742 vkDestroyDevice = PFN_vkDestroyDevice( vkGetDeviceProcAddr( device, "vkDestroyDevice" ) );
743 vkGetDeviceQueue = PFN_vkGetDeviceQueue( vkGetDeviceProcAddr( device, "vkGetDeviceQueue" ) );
744 vkQueueSubmit = PFN_vkQueueSubmit( vkGetDeviceProcAddr( device, "vkQueueSubmit" ) );
745 vkQueueWaitIdle = PFN_vkQueueWaitIdle( vkGetDeviceProcAddr( device, "vkQueueWaitIdle" ) );
746 vkDeviceWaitIdle = PFN_vkDeviceWaitIdle( vkGetDeviceProcAddr( device, "vkDeviceWaitIdle" ) );
747 vkAllocateMemory = PFN_vkAllocateMemory( vkGetDeviceProcAddr( device, "vkAllocateMemory" ) );
748 vkFreeMemory = PFN_vkFreeMemory( vkGetDeviceProcAddr( device, "vkFreeMemory" ) );
749 vkMapMemory = PFN_vkMapMemory( vkGetDeviceProcAddr( device, "vkMapMemory" ) );
750 vkUnmapMemory = PFN_vkUnmapMemory( vkGetDeviceProcAddr( device, "vkUnmapMemory" ) );
751 vkFlushMappedMemoryRanges = PFN_vkFlushMappedMemoryRanges( vkGetDeviceProcAddr( device, "vkFlushMappedMemoryRanges" ) );
752 vkInvalidateMappedMemoryRanges = PFN_vkInvalidateMappedMemoryRanges( vkGetDeviceProcAddr( device, "vkInvalidateMappedMemoryRanges" ) );
753 vkGetDeviceMemoryCommitment = PFN_vkGetDeviceMemoryCommitment( vkGetDeviceProcAddr( device, "vkGetDeviceMemoryCommitment" ) );
754 vkBindBufferMemory = PFN_vkBindBufferMemory( vkGetDeviceProcAddr( device, "vkBindBufferMemory" ) );
755 vkBindImageMemory = PFN_vkBindImageMemory( vkGetDeviceProcAddr( device, "vkBindImageMemory" ) );
756 vkGetBufferMemoryRequirements = PFN_vkGetBufferMemoryRequirements( vkGetDeviceProcAddr( device, "vkGetBufferMemoryRequirements" ) );
757 vkGetImageMemoryRequirements = PFN_vkGetImageMemoryRequirements( vkGetDeviceProcAddr( device, "vkGetImageMemoryRequirements" ) );
758 vkGetImageSparseMemoryRequirements = PFN_vkGetImageSparseMemoryRequirements( vkGetDeviceProcAddr( device, "vkGetImageSparseMemoryRequirements" ) );
759 vkQueueBindSparse = PFN_vkQueueBindSparse( vkGetDeviceProcAddr( device, "vkQueueBindSparse" ) );
760 vkCreateFence = PFN_vkCreateFence( vkGetDeviceProcAddr( device, "vkCreateFence" ) );
761 vkDestroyFence = PFN_vkDestroyFence( vkGetDeviceProcAddr( device, "vkDestroyFence" ) );
762 vkResetFences = PFN_vkResetFences( vkGetDeviceProcAddr( device, "vkResetFences" ) );
763 vkGetFenceStatus = PFN_vkGetFenceStatus( vkGetDeviceProcAddr( device, "vkGetFenceStatus" ) );
764 vkWaitForFences = PFN_vkWaitForFences( vkGetDeviceProcAddr( device, "vkWaitForFences" ) );
765 vkCreateSemaphore = PFN_vkCreateSemaphore( vkGetDeviceProcAddr( device, "vkCreateSemaphore" ) );
766 vkDestroySemaphore = PFN_vkDestroySemaphore( vkGetDeviceProcAddr( device, "vkDestroySemaphore" ) );
767 vkCreateQueryPool = PFN_vkCreateQueryPool( vkGetDeviceProcAddr( device, "vkCreateQueryPool" ) );
768 vkDestroyQueryPool = PFN_vkDestroyQueryPool( vkGetDeviceProcAddr( device, "vkDestroyQueryPool" ) );
769 vkGetQueryPoolResults = PFN_vkGetQueryPoolResults( vkGetDeviceProcAddr( device, "vkGetQueryPoolResults" ) );
770 vkCreateBuffer = PFN_vkCreateBuffer( vkGetDeviceProcAddr( device, "vkCreateBuffer" ) );
771 vkDestroyBuffer = PFN_vkDestroyBuffer( vkGetDeviceProcAddr( device, "vkDestroyBuffer" ) );
772 vkCreateImage = PFN_vkCreateImage( vkGetDeviceProcAddr( device, "vkCreateImage" ) );
773 vkDestroyImage = PFN_vkDestroyImage( vkGetDeviceProcAddr( device, "vkDestroyImage" ) );
774 vkGetImageSubresourceLayout = PFN_vkGetImageSubresourceLayout( vkGetDeviceProcAddr( device, "vkGetImageSubresourceLayout" ) );
775 vkCreateImageView = PFN_vkCreateImageView( vkGetDeviceProcAddr( device, "vkCreateImageView" ) );
776 vkDestroyImageView = PFN_vkDestroyImageView( vkGetDeviceProcAddr( device, "vkDestroyImageView" ) );
777 vkCreateCommandPool = PFN_vkCreateCommandPool( vkGetDeviceProcAddr( device, "vkCreateCommandPool" ) );
778 vkDestroyCommandPool = PFN_vkDestroyCommandPool( vkGetDeviceProcAddr( device, "vkDestroyCommandPool" ) );
779 vkResetCommandPool = PFN_vkResetCommandPool( vkGetDeviceProcAddr( device, "vkResetCommandPool" ) );
780 vkAllocateCommandBuffers = PFN_vkAllocateCommandBuffers( vkGetDeviceProcAddr( device, "vkAllocateCommandBuffers" ) );
781 vkFreeCommandBuffers = PFN_vkFreeCommandBuffers( vkGetDeviceProcAddr( device, "vkFreeCommandBuffers" ) );
782 vkBeginCommandBuffer = PFN_vkBeginCommandBuffer( vkGetDeviceProcAddr( device, "vkBeginCommandBuffer" ) );
783 vkEndCommandBuffer = PFN_vkEndCommandBuffer( vkGetDeviceProcAddr( device, "vkEndCommandBuffer" ) );
784 vkResetCommandBuffer = PFN_vkResetCommandBuffer( vkGetDeviceProcAddr( device, "vkResetCommandBuffer" ) );
785 vkCmdCopyBuffer = PFN_vkCmdCopyBuffer( vkGetDeviceProcAddr( device, "vkCmdCopyBuffer" ) );
786 vkCmdCopyImage = PFN_vkCmdCopyImage( vkGetDeviceProcAddr( device, "vkCmdCopyImage" ) );
787 vkCmdCopyBufferToImage = PFN_vkCmdCopyBufferToImage( vkGetDeviceProcAddr( device, "vkCmdCopyBufferToImage" ) );
788 vkCmdCopyImageToBuffer = PFN_vkCmdCopyImageToBuffer( vkGetDeviceProcAddr( device, "vkCmdCopyImageToBuffer" ) );
789 vkCmdUpdateBuffer = PFN_vkCmdUpdateBuffer( vkGetDeviceProcAddr( device, "vkCmdUpdateBuffer" ) );
790 vkCmdFillBuffer = PFN_vkCmdFillBuffer( vkGetDeviceProcAddr( device, "vkCmdFillBuffer" ) );
791 vkCmdPipelineBarrier = PFN_vkCmdPipelineBarrier( vkGetDeviceProcAddr( device, "vkCmdPipelineBarrier" ) );
792 vkCmdBeginQuery = PFN_vkCmdBeginQuery( vkGetDeviceProcAddr( device, "vkCmdBeginQuery" ) );
793 vkCmdEndQuery = PFN_vkCmdEndQuery( vkGetDeviceProcAddr( device, "vkCmdEndQuery" ) );
794 vkCmdResetQueryPool = PFN_vkCmdResetQueryPool( vkGetDeviceProcAddr( device, "vkCmdResetQueryPool" ) );
795 vkCmdWriteTimestamp = PFN_vkCmdWriteTimestamp( vkGetDeviceProcAddr( device, "vkCmdWriteTimestamp" ) );
796 vkCmdCopyQueryPoolResults = PFN_vkCmdCopyQueryPoolResults( vkGetDeviceProcAddr( device, "vkCmdCopyQueryPoolResults" ) );
797 vkCmdExecuteCommands = PFN_vkCmdExecuteCommands( vkGetDeviceProcAddr( device, "vkCmdExecuteCommands" ) );
798 vkCreateEvent = PFN_vkCreateEvent( vkGetDeviceProcAddr( device, "vkCreateEvent" ) );
799 vkDestroyEvent = PFN_vkDestroyEvent( vkGetDeviceProcAddr( device, "vkDestroyEvent" ) );
800 vkGetEventStatus = PFN_vkGetEventStatus( vkGetDeviceProcAddr( device, "vkGetEventStatus" ) );
801 vkSetEvent = PFN_vkSetEvent( vkGetDeviceProcAddr( device, "vkSetEvent" ) );
802 vkResetEvent = PFN_vkResetEvent( vkGetDeviceProcAddr( device, "vkResetEvent" ) );
803 vkCreateBufferView = PFN_vkCreateBufferView( vkGetDeviceProcAddr( device, "vkCreateBufferView" ) );
804 vkDestroyBufferView = PFN_vkDestroyBufferView( vkGetDeviceProcAddr( device, "vkDestroyBufferView" ) );
805 vkCreateShaderModule = PFN_vkCreateShaderModule( vkGetDeviceProcAddr( device, "vkCreateShaderModule" ) );
806 vkDestroyShaderModule = PFN_vkDestroyShaderModule( vkGetDeviceProcAddr( device, "vkDestroyShaderModule" ) );
807 vkCreatePipelineCache = PFN_vkCreatePipelineCache( vkGetDeviceProcAddr( device, "vkCreatePipelineCache" ) );
808 vkDestroyPipelineCache = PFN_vkDestroyPipelineCache( vkGetDeviceProcAddr( device, "vkDestroyPipelineCache" ) );
809 vkGetPipelineCacheData = PFN_vkGetPipelineCacheData( vkGetDeviceProcAddr( device, "vkGetPipelineCacheData" ) );
810 vkMergePipelineCaches = PFN_vkMergePipelineCaches( vkGetDeviceProcAddr( device, "vkMergePipelineCaches" ) );
811 vkCreateComputePipelines = PFN_vkCreateComputePipelines( vkGetDeviceProcAddr( device, "vkCreateComputePipelines" ) );
812 vkDestroyPipeline = PFN_vkDestroyPipeline( vkGetDeviceProcAddr( device, "vkDestroyPipeline" ) );
813 vkCreatePipelineLayout = PFN_vkCreatePipelineLayout( vkGetDeviceProcAddr( device, "vkCreatePipelineLayout" ) );
814 vkDestroyPipelineLayout = PFN_vkDestroyPipelineLayout( vkGetDeviceProcAddr( device, "vkDestroyPipelineLayout" ) );
815 vkCreateSampler = PFN_vkCreateSampler( vkGetDeviceProcAddr( device, "vkCreateSampler" ) );
816 vkDestroySampler = PFN_vkDestroySampler( vkGetDeviceProcAddr( device, "vkDestroySampler" ) );
817 vkCreateDescriptorSetLayout = PFN_vkCreateDescriptorSetLayout( vkGetDeviceProcAddr( device, "vkCreateDescriptorSetLayout" ) );
818 vkDestroyDescriptorSetLayout = PFN_vkDestroyDescriptorSetLayout( vkGetDeviceProcAddr( device, "vkDestroyDescriptorSetLayout" ) );
819 vkCreateDescriptorPool = PFN_vkCreateDescriptorPool( vkGetDeviceProcAddr( device, "vkCreateDescriptorPool" ) );
820 vkDestroyDescriptorPool = PFN_vkDestroyDescriptorPool( vkGetDeviceProcAddr( device, "vkDestroyDescriptorPool" ) );
821 vkResetDescriptorPool = PFN_vkResetDescriptorPool( vkGetDeviceProcAddr( device, "vkResetDescriptorPool" ) );
822 vkAllocateDescriptorSets = PFN_vkAllocateDescriptorSets( vkGetDeviceProcAddr( device, "vkAllocateDescriptorSets" ) );
823 vkFreeDescriptorSets = PFN_vkFreeDescriptorSets( vkGetDeviceProcAddr( device, "vkFreeDescriptorSets" ) );
824 vkUpdateDescriptorSets = PFN_vkUpdateDescriptorSets( vkGetDeviceProcAddr( device, "vkUpdateDescriptorSets" ) );
825 vkCmdBindPipeline = PFN_vkCmdBindPipeline( vkGetDeviceProcAddr( device, "vkCmdBindPipeline" ) );
826 vkCmdBindDescriptorSets = PFN_vkCmdBindDescriptorSets( vkGetDeviceProcAddr( device, "vkCmdBindDescriptorSets" ) );
827 vkCmdClearColorImage = PFN_vkCmdClearColorImage( vkGetDeviceProcAddr( device, "vkCmdClearColorImage" ) );
828 vkCmdDispatch = PFN_vkCmdDispatch( vkGetDeviceProcAddr( device, "vkCmdDispatch" ) );
829 vkCmdDispatchIndirect = PFN_vkCmdDispatchIndirect( vkGetDeviceProcAddr( device, "vkCmdDispatchIndirect" ) );
830 vkCmdSetEvent = PFN_vkCmdSetEvent( vkGetDeviceProcAddr( device, "vkCmdSetEvent" ) );
831 vkCmdResetEvent = PFN_vkCmdResetEvent( vkGetDeviceProcAddr( device, "vkCmdResetEvent" ) );
832 vkCmdWaitEvents = PFN_vkCmdWaitEvents( vkGetDeviceProcAddr( device, "vkCmdWaitEvents" ) );
833 vkCmdPushConstants = PFN_vkCmdPushConstants( vkGetDeviceProcAddr( device, "vkCmdPushConstants" ) );
834 vkCreateGraphicsPipelines = PFN_vkCreateGraphicsPipelines( vkGetDeviceProcAddr( device, "vkCreateGraphicsPipelines" ) );
835 vkCreateFramebuffer = PFN_vkCreateFramebuffer( vkGetDeviceProcAddr( device, "vkCreateFramebuffer" ) );
836 vkDestroyFramebuffer = PFN_vkDestroyFramebuffer( vkGetDeviceProcAddr( device, "vkDestroyFramebuffer" ) );
837 vkCreateRenderPass = PFN_vkCreateRenderPass( vkGetDeviceProcAddr( device, "vkCreateRenderPass" ) );
838 vkDestroyRenderPass = PFN_vkDestroyRenderPass( vkGetDeviceProcAddr( device, "vkDestroyRenderPass" ) );
839 vkGetRenderAreaGranularity = PFN_vkGetRenderAreaGranularity( vkGetDeviceProcAddr( device, "vkGetRenderAreaGranularity" ) );
840 vkCmdSetViewport = PFN_vkCmdSetViewport( vkGetDeviceProcAddr( device, "vkCmdSetViewport" ) );
841 vkCmdSetScissor = PFN_vkCmdSetScissor( vkGetDeviceProcAddr( device, "vkCmdSetScissor" ) );
842 vkCmdSetLineWidth = PFN_vkCmdSetLineWidth( vkGetDeviceProcAddr( device, "vkCmdSetLineWidth" ) );
843 vkCmdSetDepthBias = PFN_vkCmdSetDepthBias( vkGetDeviceProcAddr( device, "vkCmdSetDepthBias" ) );
844 vkCmdSetBlendConstants = PFN_vkCmdSetBlendConstants( vkGetDeviceProcAddr( device, "vkCmdSetBlendConstants" ) );
845 vkCmdSetDepthBounds = PFN_vkCmdSetDepthBounds( vkGetDeviceProcAddr( device, "vkCmdSetDepthBounds" ) );
846 vkCmdSetStencilCompareMask = PFN_vkCmdSetStencilCompareMask( vkGetDeviceProcAddr( device, "vkCmdSetStencilCompareMask" ) );
847 vkCmdSetStencilWriteMask = PFN_vkCmdSetStencilWriteMask( vkGetDeviceProcAddr( device, "vkCmdSetStencilWriteMask" ) );
848 vkCmdSetStencilReference = PFN_vkCmdSetStencilReference( vkGetDeviceProcAddr( device, "vkCmdSetStencilReference" ) );
849 vkCmdBindIndexBuffer = PFN_vkCmdBindIndexBuffer( vkGetDeviceProcAddr( device, "vkCmdBindIndexBuffer" ) );
850 vkCmdBindVertexBuffers = PFN_vkCmdBindVertexBuffers( vkGetDeviceProcAddr( device, "vkCmdBindVertexBuffers" ) );
851 vkCmdDraw = PFN_vkCmdDraw( vkGetDeviceProcAddr( device, "vkCmdDraw" ) );
852 vkCmdDrawIndexed = PFN_vkCmdDrawIndexed( vkGetDeviceProcAddr( device, "vkCmdDrawIndexed" ) );
853 vkCmdDrawIndirect = PFN_vkCmdDrawIndirect( vkGetDeviceProcAddr( device, "vkCmdDrawIndirect" ) );
854 vkCmdDrawIndexedIndirect = PFN_vkCmdDrawIndexedIndirect( vkGetDeviceProcAddr( device, "vkCmdDrawIndexedIndirect" ) );
855 vkCmdBlitImage = PFN_vkCmdBlitImage( vkGetDeviceProcAddr( device, "vkCmdBlitImage" ) );
856 vkCmdClearDepthStencilImage = PFN_vkCmdClearDepthStencilImage( vkGetDeviceProcAddr( device, "vkCmdClearDepthStencilImage" ) );
857 vkCmdClearAttachments = PFN_vkCmdClearAttachments( vkGetDeviceProcAddr( device, "vkCmdClearAttachments" ) );
858 vkCmdResolveImage = PFN_vkCmdResolveImage( vkGetDeviceProcAddr( device, "vkCmdResolveImage" ) );
859 vkCmdBeginRenderPass = PFN_vkCmdBeginRenderPass( vkGetDeviceProcAddr( device, "vkCmdBeginRenderPass" ) );
860 vkCmdNextSubpass = PFN_vkCmdNextSubpass( vkGetDeviceProcAddr( device, "vkCmdNextSubpass" ) );
861 vkCmdEndRenderPass = PFN_vkCmdEndRenderPass( vkGetDeviceProcAddr( device, "vkCmdEndRenderPass" ) );
862
863 //=== VK_VERSION_1_1 ===
864 vkBindBufferMemory2 = PFN_vkBindBufferMemory2( vkGetDeviceProcAddr( device, "vkBindBufferMemory2" ) );
865 vkBindImageMemory2 = PFN_vkBindImageMemory2( vkGetDeviceProcAddr( device, "vkBindImageMemory2" ) );
866 vkGetDeviceGroupPeerMemoryFeatures = PFN_vkGetDeviceGroupPeerMemoryFeatures( vkGetDeviceProcAddr( device, "vkGetDeviceGroupPeerMemoryFeatures" ) );
867 vkCmdSetDeviceMask = PFN_vkCmdSetDeviceMask( vkGetDeviceProcAddr( device, "vkCmdSetDeviceMask" ) );
868 vkGetImageMemoryRequirements2 = PFN_vkGetImageMemoryRequirements2( vkGetDeviceProcAddr( device, "vkGetImageMemoryRequirements2" ) );
869 vkGetBufferMemoryRequirements2 = PFN_vkGetBufferMemoryRequirements2( vkGetDeviceProcAddr( device, "vkGetBufferMemoryRequirements2" ) );
870 vkGetImageSparseMemoryRequirements2 = PFN_vkGetImageSparseMemoryRequirements2( vkGetDeviceProcAddr( device, "vkGetImageSparseMemoryRequirements2" ) );
871 vkTrimCommandPool = PFN_vkTrimCommandPool( vkGetDeviceProcAddr( device, "vkTrimCommandPool" ) );
872 vkGetDeviceQueue2 = PFN_vkGetDeviceQueue2( vkGetDeviceProcAddr( device, "vkGetDeviceQueue2" ) );
873 vkCmdDispatchBase = PFN_vkCmdDispatchBase( vkGetDeviceProcAddr( device, "vkCmdDispatchBase" ) );
874 vkCreateDescriptorUpdateTemplate = PFN_vkCreateDescriptorUpdateTemplate( vkGetDeviceProcAddr( device, "vkCreateDescriptorUpdateTemplate" ) );
875 vkDestroyDescriptorUpdateTemplate = PFN_vkDestroyDescriptorUpdateTemplate( vkGetDeviceProcAddr( device, "vkDestroyDescriptorUpdateTemplate" ) );
876 vkUpdateDescriptorSetWithTemplate = PFN_vkUpdateDescriptorSetWithTemplate( vkGetDeviceProcAddr( device, "vkUpdateDescriptorSetWithTemplate" ) );
877 vkGetDescriptorSetLayoutSupport = PFN_vkGetDescriptorSetLayoutSupport( vkGetDeviceProcAddr( device, "vkGetDescriptorSetLayoutSupport" ) );
878 vkCreateSamplerYcbcrConversion = PFN_vkCreateSamplerYcbcrConversion( vkGetDeviceProcAddr( device, "vkCreateSamplerYcbcrConversion" ) );
879 vkDestroySamplerYcbcrConversion = PFN_vkDestroySamplerYcbcrConversion( vkGetDeviceProcAddr( device, "vkDestroySamplerYcbcrConversion" ) );
880
881 //=== VK_VERSION_1_2 ===
882 vkResetQueryPool = PFN_vkResetQueryPool( vkGetDeviceProcAddr( device, "vkResetQueryPool" ) );
883 vkGetSemaphoreCounterValue = PFN_vkGetSemaphoreCounterValue( vkGetDeviceProcAddr( device, "vkGetSemaphoreCounterValue" ) );
884 vkWaitSemaphores = PFN_vkWaitSemaphores( vkGetDeviceProcAddr( device, "vkWaitSemaphores" ) );
885 vkSignalSemaphore = PFN_vkSignalSemaphore( vkGetDeviceProcAddr( device, "vkSignalSemaphore" ) );
886 vkGetBufferDeviceAddress = PFN_vkGetBufferDeviceAddress( vkGetDeviceProcAddr( device, "vkGetBufferDeviceAddress" ) );
887 vkGetBufferOpaqueCaptureAddress = PFN_vkGetBufferOpaqueCaptureAddress( vkGetDeviceProcAddr( device, "vkGetBufferOpaqueCaptureAddress" ) );
888 vkGetDeviceMemoryOpaqueCaptureAddress =
889 PFN_vkGetDeviceMemoryOpaqueCaptureAddress( vkGetDeviceProcAddr( device, "vkGetDeviceMemoryOpaqueCaptureAddress" ) );
890 vkCmdDrawIndirectCount = PFN_vkCmdDrawIndirectCount( vkGetDeviceProcAddr( device, "vkCmdDrawIndirectCount" ) );
891 vkCmdDrawIndexedIndirectCount = PFN_vkCmdDrawIndexedIndirectCount( vkGetDeviceProcAddr( device, "vkCmdDrawIndexedIndirectCount" ) );
892 vkCreateRenderPass2 = PFN_vkCreateRenderPass2( vkGetDeviceProcAddr( device, "vkCreateRenderPass2" ) );
893 vkCmdBeginRenderPass2 = PFN_vkCmdBeginRenderPass2( vkGetDeviceProcAddr( device, "vkCmdBeginRenderPass2" ) );
894 vkCmdNextSubpass2 = PFN_vkCmdNextSubpass2( vkGetDeviceProcAddr( device, "vkCmdNextSubpass2" ) );
895 vkCmdEndRenderPass2 = PFN_vkCmdEndRenderPass2( vkGetDeviceProcAddr( device, "vkCmdEndRenderPass2" ) );
896
897 //=== VK_VERSION_1_3 ===
898 vkCreatePrivateDataSlot = PFN_vkCreatePrivateDataSlot( vkGetDeviceProcAddr( device, "vkCreatePrivateDataSlot" ) );
899 vkDestroyPrivateDataSlot = PFN_vkDestroyPrivateDataSlot( vkGetDeviceProcAddr( device, "vkDestroyPrivateDataSlot" ) );
900 vkSetPrivateData = PFN_vkSetPrivateData( vkGetDeviceProcAddr( device, "vkSetPrivateData" ) );
901 vkGetPrivateData = PFN_vkGetPrivateData( vkGetDeviceProcAddr( device, "vkGetPrivateData" ) );
902 vkCmdPipelineBarrier2 = PFN_vkCmdPipelineBarrier2( vkGetDeviceProcAddr( device, "vkCmdPipelineBarrier2" ) );
903 vkCmdWriteTimestamp2 = PFN_vkCmdWriteTimestamp2( vkGetDeviceProcAddr( device, "vkCmdWriteTimestamp2" ) );
904 vkQueueSubmit2 = PFN_vkQueueSubmit2( vkGetDeviceProcAddr( device, "vkQueueSubmit2" ) );
905 vkCmdCopyBuffer2 = PFN_vkCmdCopyBuffer2( vkGetDeviceProcAddr( device, "vkCmdCopyBuffer2" ) );
906 vkCmdCopyImage2 = PFN_vkCmdCopyImage2( vkGetDeviceProcAddr( device, "vkCmdCopyImage2" ) );
907 vkCmdCopyBufferToImage2 = PFN_vkCmdCopyBufferToImage2( vkGetDeviceProcAddr( device, "vkCmdCopyBufferToImage2" ) );
908 vkCmdCopyImageToBuffer2 = PFN_vkCmdCopyImageToBuffer2( vkGetDeviceProcAddr( device, "vkCmdCopyImageToBuffer2" ) );
909 vkGetDeviceBufferMemoryRequirements = PFN_vkGetDeviceBufferMemoryRequirements( vkGetDeviceProcAddr( device, "vkGetDeviceBufferMemoryRequirements" ) );
910 vkGetDeviceImageMemoryRequirements = PFN_vkGetDeviceImageMemoryRequirements( vkGetDeviceProcAddr( device, "vkGetDeviceImageMemoryRequirements" ) );
911 vkGetDeviceImageSparseMemoryRequirements =
912 PFN_vkGetDeviceImageSparseMemoryRequirements( vkGetDeviceProcAddr( device, "vkGetDeviceImageSparseMemoryRequirements" ) );
913 vkCmdSetEvent2 = PFN_vkCmdSetEvent2( vkGetDeviceProcAddr( device, "vkCmdSetEvent2" ) );
914 vkCmdResetEvent2 = PFN_vkCmdResetEvent2( vkGetDeviceProcAddr( device, "vkCmdResetEvent2" ) );
915 vkCmdWaitEvents2 = PFN_vkCmdWaitEvents2( vkGetDeviceProcAddr( device, "vkCmdWaitEvents2" ) );
916 vkCmdBlitImage2 = PFN_vkCmdBlitImage2( vkGetDeviceProcAddr( device, "vkCmdBlitImage2" ) );
917 vkCmdResolveImage2 = PFN_vkCmdResolveImage2( vkGetDeviceProcAddr( device, "vkCmdResolveImage2" ) );
918 vkCmdBeginRendering = PFN_vkCmdBeginRendering( vkGetDeviceProcAddr( device, "vkCmdBeginRendering" ) );
919 vkCmdEndRendering = PFN_vkCmdEndRendering( vkGetDeviceProcAddr( device, "vkCmdEndRendering" ) );
920 vkCmdSetCullMode = PFN_vkCmdSetCullMode( vkGetDeviceProcAddr( device, "vkCmdSetCullMode" ) );
921 vkCmdSetFrontFace = PFN_vkCmdSetFrontFace( vkGetDeviceProcAddr( device, "vkCmdSetFrontFace" ) );
922 vkCmdSetPrimitiveTopology = PFN_vkCmdSetPrimitiveTopology( vkGetDeviceProcAddr( device, "vkCmdSetPrimitiveTopology" ) );
923 vkCmdSetViewportWithCount = PFN_vkCmdSetViewportWithCount( vkGetDeviceProcAddr( device, "vkCmdSetViewportWithCount" ) );
924 vkCmdSetScissorWithCount = PFN_vkCmdSetScissorWithCount( vkGetDeviceProcAddr( device, "vkCmdSetScissorWithCount" ) );
925 vkCmdBindVertexBuffers2 = PFN_vkCmdBindVertexBuffers2( vkGetDeviceProcAddr( device, "vkCmdBindVertexBuffers2" ) );
926 vkCmdSetDepthTestEnable = PFN_vkCmdSetDepthTestEnable( vkGetDeviceProcAddr( device, "vkCmdSetDepthTestEnable" ) );
927 vkCmdSetDepthWriteEnable = PFN_vkCmdSetDepthWriteEnable( vkGetDeviceProcAddr( device, "vkCmdSetDepthWriteEnable" ) );
928 vkCmdSetDepthCompareOp = PFN_vkCmdSetDepthCompareOp( vkGetDeviceProcAddr( device, "vkCmdSetDepthCompareOp" ) );
929 vkCmdSetDepthBoundsTestEnable = PFN_vkCmdSetDepthBoundsTestEnable( vkGetDeviceProcAddr( device, "vkCmdSetDepthBoundsTestEnable" ) );
930 vkCmdSetStencilTestEnable = PFN_vkCmdSetStencilTestEnable( vkGetDeviceProcAddr( device, "vkCmdSetStencilTestEnable" ) );
931 vkCmdSetStencilOp = PFN_vkCmdSetStencilOp( vkGetDeviceProcAddr( device, "vkCmdSetStencilOp" ) );
932 vkCmdSetRasterizerDiscardEnable = PFN_vkCmdSetRasterizerDiscardEnable( vkGetDeviceProcAddr( device, "vkCmdSetRasterizerDiscardEnable" ) );
933 vkCmdSetDepthBiasEnable = PFN_vkCmdSetDepthBiasEnable( vkGetDeviceProcAddr( device, "vkCmdSetDepthBiasEnable" ) );
934 vkCmdSetPrimitiveRestartEnable = PFN_vkCmdSetPrimitiveRestartEnable( vkGetDeviceProcAddr( device, "vkCmdSetPrimitiveRestartEnable" ) );
935
936 //=== VK_VERSION_1_4 ===
937 vkMapMemory2 = PFN_vkMapMemory2( vkGetDeviceProcAddr( device, "vkMapMemory2" ) );
938 vkUnmapMemory2 = PFN_vkUnmapMemory2( vkGetDeviceProcAddr( device, "vkUnmapMemory2" ) );
939 vkGetDeviceImageSubresourceLayout = PFN_vkGetDeviceImageSubresourceLayout( vkGetDeviceProcAddr( device, "vkGetDeviceImageSubresourceLayout" ) );
940 vkGetImageSubresourceLayout2 = PFN_vkGetImageSubresourceLayout2( vkGetDeviceProcAddr( device, "vkGetImageSubresourceLayout2" ) );
941 vkCopyMemoryToImage = PFN_vkCopyMemoryToImage( vkGetDeviceProcAddr( device, "vkCopyMemoryToImage" ) );
942 vkCopyImageToMemory = PFN_vkCopyImageToMemory( vkGetDeviceProcAddr( device, "vkCopyImageToMemory" ) );
943 vkCopyImageToImage = PFN_vkCopyImageToImage( vkGetDeviceProcAddr( device, "vkCopyImageToImage" ) );
944 vkTransitionImageLayout = PFN_vkTransitionImageLayout( vkGetDeviceProcAddr( device, "vkTransitionImageLayout" ) );
945 vkCmdPushDescriptorSet = PFN_vkCmdPushDescriptorSet( vkGetDeviceProcAddr( device, "vkCmdPushDescriptorSet" ) );
946 vkCmdPushDescriptorSetWithTemplate = PFN_vkCmdPushDescriptorSetWithTemplate( vkGetDeviceProcAddr( device, "vkCmdPushDescriptorSetWithTemplate" ) );
947 vkCmdBindDescriptorSets2 = PFN_vkCmdBindDescriptorSets2( vkGetDeviceProcAddr( device, "vkCmdBindDescriptorSets2" ) );
948 vkCmdPushConstants2 = PFN_vkCmdPushConstants2( vkGetDeviceProcAddr( device, "vkCmdPushConstants2" ) );
949 vkCmdPushDescriptorSet2 = PFN_vkCmdPushDescriptorSet2( vkGetDeviceProcAddr( device, "vkCmdPushDescriptorSet2" ) );
950 vkCmdPushDescriptorSetWithTemplate2 = PFN_vkCmdPushDescriptorSetWithTemplate2( vkGetDeviceProcAddr( device, "vkCmdPushDescriptorSetWithTemplate2" ) );
951 vkCmdSetLineStipple = PFN_vkCmdSetLineStipple( vkGetDeviceProcAddr( device, "vkCmdSetLineStipple" ) );
952 vkCmdBindIndexBuffer2 = PFN_vkCmdBindIndexBuffer2( vkGetDeviceProcAddr( device, "vkCmdBindIndexBuffer2" ) );
953 vkGetRenderingAreaGranularity = PFN_vkGetRenderingAreaGranularity( vkGetDeviceProcAddr( device, "vkGetRenderingAreaGranularity" ) );
954 vkCmdSetRenderingAttachmentLocations =
955 PFN_vkCmdSetRenderingAttachmentLocations( vkGetDeviceProcAddr( device, "vkCmdSetRenderingAttachmentLocations" ) );
956 vkCmdSetRenderingInputAttachmentIndices =
957 PFN_vkCmdSetRenderingInputAttachmentIndices( vkGetDeviceProcAddr( device, "vkCmdSetRenderingInputAttachmentIndices" ) );
958
959 //=== VK_KHR_swapchain ===
960 vkCreateSwapchainKHR = PFN_vkCreateSwapchainKHR( vkGetDeviceProcAddr( device, "vkCreateSwapchainKHR" ) );
961 vkDestroySwapchainKHR = PFN_vkDestroySwapchainKHR( vkGetDeviceProcAddr( device, "vkDestroySwapchainKHR" ) );
962 vkGetSwapchainImagesKHR = PFN_vkGetSwapchainImagesKHR( vkGetDeviceProcAddr( device, "vkGetSwapchainImagesKHR" ) );
963 vkAcquireNextImageKHR = PFN_vkAcquireNextImageKHR( vkGetDeviceProcAddr( device, "vkAcquireNextImageKHR" ) );
964 vkQueuePresentKHR = PFN_vkQueuePresentKHR( vkGetDeviceProcAddr( device, "vkQueuePresentKHR" ) );
965 vkGetDeviceGroupPresentCapabilitiesKHR =
966 PFN_vkGetDeviceGroupPresentCapabilitiesKHR( vkGetDeviceProcAddr( device, "vkGetDeviceGroupPresentCapabilitiesKHR" ) );
967 vkGetDeviceGroupSurfacePresentModesKHR =
968 PFN_vkGetDeviceGroupSurfacePresentModesKHR( vkGetDeviceProcAddr( device, "vkGetDeviceGroupSurfacePresentModesKHR" ) );
969 vkAcquireNextImage2KHR = PFN_vkAcquireNextImage2KHR( vkGetDeviceProcAddr( device, "vkAcquireNextImage2KHR" ) );
970
971 //=== VK_KHR_display_swapchain ===
972 vkCreateSharedSwapchainsKHR = PFN_vkCreateSharedSwapchainsKHR( vkGetDeviceProcAddr( device, "vkCreateSharedSwapchainsKHR" ) );
973
974 //=== VK_EXT_debug_marker ===
975 vkDebugMarkerSetObjectTagEXT = PFN_vkDebugMarkerSetObjectTagEXT( vkGetDeviceProcAddr( device, "vkDebugMarkerSetObjectTagEXT" ) );
976 vkDebugMarkerSetObjectNameEXT = PFN_vkDebugMarkerSetObjectNameEXT( vkGetDeviceProcAddr( device, "vkDebugMarkerSetObjectNameEXT" ) );
977 vkCmdDebugMarkerBeginEXT = PFN_vkCmdDebugMarkerBeginEXT( vkGetDeviceProcAddr( device, "vkCmdDebugMarkerBeginEXT" ) );
978 vkCmdDebugMarkerEndEXT = PFN_vkCmdDebugMarkerEndEXT( vkGetDeviceProcAddr( device, "vkCmdDebugMarkerEndEXT" ) );
979 vkCmdDebugMarkerInsertEXT = PFN_vkCmdDebugMarkerInsertEXT( vkGetDeviceProcAddr( device, "vkCmdDebugMarkerInsertEXT" ) );
980
981 //=== VK_KHR_video_queue ===
982 vkCreateVideoSessionKHR = PFN_vkCreateVideoSessionKHR( vkGetDeviceProcAddr( device, "vkCreateVideoSessionKHR" ) );
983 vkDestroyVideoSessionKHR = PFN_vkDestroyVideoSessionKHR( vkGetDeviceProcAddr( device, "vkDestroyVideoSessionKHR" ) );
984 vkGetVideoSessionMemoryRequirementsKHR =
985 PFN_vkGetVideoSessionMemoryRequirementsKHR( vkGetDeviceProcAddr( device, "vkGetVideoSessionMemoryRequirementsKHR" ) );
986 vkBindVideoSessionMemoryKHR = PFN_vkBindVideoSessionMemoryKHR( vkGetDeviceProcAddr( device, "vkBindVideoSessionMemoryKHR" ) );
987 vkCreateVideoSessionParametersKHR = PFN_vkCreateVideoSessionParametersKHR( vkGetDeviceProcAddr( device, "vkCreateVideoSessionParametersKHR" ) );
988 vkUpdateVideoSessionParametersKHR = PFN_vkUpdateVideoSessionParametersKHR( vkGetDeviceProcAddr( device, "vkUpdateVideoSessionParametersKHR" ) );
989 vkDestroyVideoSessionParametersKHR = PFN_vkDestroyVideoSessionParametersKHR( vkGetDeviceProcAddr( device, "vkDestroyVideoSessionParametersKHR" ) );
990 vkCmdBeginVideoCodingKHR = PFN_vkCmdBeginVideoCodingKHR( vkGetDeviceProcAddr( device, "vkCmdBeginVideoCodingKHR" ) );
991 vkCmdEndVideoCodingKHR = PFN_vkCmdEndVideoCodingKHR( vkGetDeviceProcAddr( device, "vkCmdEndVideoCodingKHR" ) );
992 vkCmdControlVideoCodingKHR = PFN_vkCmdControlVideoCodingKHR( vkGetDeviceProcAddr( device, "vkCmdControlVideoCodingKHR" ) );
993
994 //=== VK_KHR_video_decode_queue ===
995 vkCmdDecodeVideoKHR = PFN_vkCmdDecodeVideoKHR( vkGetDeviceProcAddr( device, "vkCmdDecodeVideoKHR" ) );
996
997 //=== VK_EXT_transform_feedback ===
998 vkCmdBindTransformFeedbackBuffersEXT =
999 PFN_vkCmdBindTransformFeedbackBuffersEXT( vkGetDeviceProcAddr( device, "vkCmdBindTransformFeedbackBuffersEXT" ) );
1000 vkCmdBeginTransformFeedbackEXT = PFN_vkCmdBeginTransformFeedbackEXT( vkGetDeviceProcAddr( device, "vkCmdBeginTransformFeedbackEXT" ) );
1001 vkCmdEndTransformFeedbackEXT = PFN_vkCmdEndTransformFeedbackEXT( vkGetDeviceProcAddr( device, "vkCmdEndTransformFeedbackEXT" ) );
1002 vkCmdBeginQueryIndexedEXT = PFN_vkCmdBeginQueryIndexedEXT( vkGetDeviceProcAddr( device, "vkCmdBeginQueryIndexedEXT" ) );
1003 vkCmdEndQueryIndexedEXT = PFN_vkCmdEndQueryIndexedEXT( vkGetDeviceProcAddr( device, "vkCmdEndQueryIndexedEXT" ) );
1004 vkCmdDrawIndirectByteCountEXT = PFN_vkCmdDrawIndirectByteCountEXT( vkGetDeviceProcAddr( device, "vkCmdDrawIndirectByteCountEXT" ) );
1005
1006 //=== VK_NVX_binary_import ===
1007 vkCreateCuModuleNVX = PFN_vkCreateCuModuleNVX( vkGetDeviceProcAddr( device, "vkCreateCuModuleNVX" ) );
1008 vkCreateCuFunctionNVX = PFN_vkCreateCuFunctionNVX( vkGetDeviceProcAddr( device, "vkCreateCuFunctionNVX" ) );
1009 vkDestroyCuModuleNVX = PFN_vkDestroyCuModuleNVX( vkGetDeviceProcAddr( device, "vkDestroyCuModuleNVX" ) );
1010 vkDestroyCuFunctionNVX = PFN_vkDestroyCuFunctionNVX( vkGetDeviceProcAddr( device, "vkDestroyCuFunctionNVX" ) );
1011 vkCmdCuLaunchKernelNVX = PFN_vkCmdCuLaunchKernelNVX( vkGetDeviceProcAddr( device, "vkCmdCuLaunchKernelNVX" ) );
1012
1013 //=== VK_NVX_image_view_handle ===
1014 vkGetImageViewHandleNVX = PFN_vkGetImageViewHandleNVX( vkGetDeviceProcAddr( device, "vkGetImageViewHandleNVX" ) );
1015 vkGetImageViewHandle64NVX = PFN_vkGetImageViewHandle64NVX( vkGetDeviceProcAddr( device, "vkGetImageViewHandle64NVX" ) );
1016 vkGetImageViewAddressNVX = PFN_vkGetImageViewAddressNVX( vkGetDeviceProcAddr( device, "vkGetImageViewAddressNVX" ) );
1017 vkGetDeviceCombinedImageSamplerIndexNVX =
1018 PFN_vkGetDeviceCombinedImageSamplerIndexNVX( vkGetDeviceProcAddr( device, "vkGetDeviceCombinedImageSamplerIndexNVX" ) );
1019
1020 //=== VK_AMD_draw_indirect_count ===
1021 vkCmdDrawIndirectCountAMD = PFN_vkCmdDrawIndirectCountAMD( vkGetDeviceProcAddr( device, "vkCmdDrawIndirectCountAMD" ) );
1022 if ( !vkCmdDrawIndirectCount )
1023 vkCmdDrawIndirectCount = vkCmdDrawIndirectCountAMD;
1024 vkCmdDrawIndexedIndirectCountAMD = PFN_vkCmdDrawIndexedIndirectCountAMD( vkGetDeviceProcAddr( device, "vkCmdDrawIndexedIndirectCountAMD" ) );
1025 if ( !vkCmdDrawIndexedIndirectCount )
1026 vkCmdDrawIndexedIndirectCount = vkCmdDrawIndexedIndirectCountAMD;
1027
1028 //=== VK_AMD_shader_info ===
1029 vkGetShaderInfoAMD = PFN_vkGetShaderInfoAMD( vkGetDeviceProcAddr( device, "vkGetShaderInfoAMD" ) );
1030
1031 //=== VK_KHR_dynamic_rendering ===
1032 vkCmdBeginRenderingKHR = PFN_vkCmdBeginRenderingKHR( vkGetDeviceProcAddr( device, "vkCmdBeginRenderingKHR" ) );
1033 if ( !vkCmdBeginRendering )
1034 vkCmdBeginRendering = vkCmdBeginRenderingKHR;
1035 vkCmdEndRenderingKHR = PFN_vkCmdEndRenderingKHR( vkGetDeviceProcAddr( device, "vkCmdEndRenderingKHR" ) );
1036 if ( !vkCmdEndRendering )
1037 vkCmdEndRendering = vkCmdEndRenderingKHR;
1038
1039 # if defined( VK_USE_PLATFORM_WIN32_KHR )
1040 //=== VK_NV_external_memory_win32 ===
1041 vkGetMemoryWin32HandleNV = PFN_vkGetMemoryWin32HandleNV( vkGetDeviceProcAddr( device, "vkGetMemoryWin32HandleNV" ) );
1042 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
1043
1044 //=== VK_KHR_device_group ===
1045 vkGetDeviceGroupPeerMemoryFeaturesKHR =
1046 PFN_vkGetDeviceGroupPeerMemoryFeaturesKHR( vkGetDeviceProcAddr( device, "vkGetDeviceGroupPeerMemoryFeaturesKHR" ) );
1047 if ( !vkGetDeviceGroupPeerMemoryFeatures )
1048 vkGetDeviceGroupPeerMemoryFeatures = vkGetDeviceGroupPeerMemoryFeaturesKHR;
1049 vkCmdSetDeviceMaskKHR = PFN_vkCmdSetDeviceMaskKHR( vkGetDeviceProcAddr( device, "vkCmdSetDeviceMaskKHR" ) );
1050 if ( !vkCmdSetDeviceMask )
1051 vkCmdSetDeviceMask = vkCmdSetDeviceMaskKHR;
1052 vkCmdDispatchBaseKHR = PFN_vkCmdDispatchBaseKHR( vkGetDeviceProcAddr( device, "vkCmdDispatchBaseKHR" ) );
1053 if ( !vkCmdDispatchBase )
1054 vkCmdDispatchBase = vkCmdDispatchBaseKHR;
1055
1056 //=== VK_KHR_maintenance1 ===
1057 vkTrimCommandPoolKHR = PFN_vkTrimCommandPoolKHR( vkGetDeviceProcAddr( device, "vkTrimCommandPoolKHR" ) );
1058 if ( !vkTrimCommandPool )
1059 vkTrimCommandPool = vkTrimCommandPoolKHR;
1060
1061 # if defined( VK_USE_PLATFORM_WIN32_KHR )
1062 //=== VK_KHR_external_memory_win32 ===
1063 vkGetMemoryWin32HandleKHR = PFN_vkGetMemoryWin32HandleKHR( vkGetDeviceProcAddr( device, "vkGetMemoryWin32HandleKHR" ) );
1064 vkGetMemoryWin32HandlePropertiesKHR = PFN_vkGetMemoryWin32HandlePropertiesKHR( vkGetDeviceProcAddr( device, "vkGetMemoryWin32HandlePropertiesKHR" ) );
1065 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
1066
1067 //=== VK_KHR_external_memory_fd ===
1068 vkGetMemoryFdKHR = PFN_vkGetMemoryFdKHR( vkGetDeviceProcAddr( device, "vkGetMemoryFdKHR" ) );
1069 vkGetMemoryFdPropertiesKHR = PFN_vkGetMemoryFdPropertiesKHR( vkGetDeviceProcAddr( device, "vkGetMemoryFdPropertiesKHR" ) );
1070
1071 # if defined( VK_USE_PLATFORM_WIN32_KHR )
1072 //=== VK_KHR_external_semaphore_win32 ===
1073 vkImportSemaphoreWin32HandleKHR = PFN_vkImportSemaphoreWin32HandleKHR( vkGetDeviceProcAddr( device, "vkImportSemaphoreWin32HandleKHR" ) );
1074 vkGetSemaphoreWin32HandleKHR = PFN_vkGetSemaphoreWin32HandleKHR( vkGetDeviceProcAddr( device, "vkGetSemaphoreWin32HandleKHR" ) );
1075 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
1076
1077 //=== VK_KHR_external_semaphore_fd ===
1078 vkImportSemaphoreFdKHR = PFN_vkImportSemaphoreFdKHR( vkGetDeviceProcAddr( device, "vkImportSemaphoreFdKHR" ) );
1079 vkGetSemaphoreFdKHR = PFN_vkGetSemaphoreFdKHR( vkGetDeviceProcAddr( device, "vkGetSemaphoreFdKHR" ) );
1080
1081 //=== VK_KHR_push_descriptor ===
1082 vkCmdPushDescriptorSetKHR = PFN_vkCmdPushDescriptorSetKHR( vkGetDeviceProcAddr( device, "vkCmdPushDescriptorSetKHR" ) );
1083 if ( !vkCmdPushDescriptorSet )
1084 vkCmdPushDescriptorSet = vkCmdPushDescriptorSetKHR;
1085 vkCmdPushDescriptorSetWithTemplateKHR =
1086 PFN_vkCmdPushDescriptorSetWithTemplateKHR( vkGetDeviceProcAddr( device, "vkCmdPushDescriptorSetWithTemplateKHR" ) );
1087 if ( !vkCmdPushDescriptorSetWithTemplate )
1088 vkCmdPushDescriptorSetWithTemplate = vkCmdPushDescriptorSetWithTemplateKHR;
1089
1090 //=== VK_EXT_conditional_rendering ===
1091 vkCmdBeginConditionalRenderingEXT = PFN_vkCmdBeginConditionalRenderingEXT( vkGetDeviceProcAddr( device, "vkCmdBeginConditionalRenderingEXT" ) );
1092 vkCmdEndConditionalRenderingEXT = PFN_vkCmdEndConditionalRenderingEXT( vkGetDeviceProcAddr( device, "vkCmdEndConditionalRenderingEXT" ) );
1093
1094 //=== VK_KHR_descriptor_update_template ===
1095 vkCreateDescriptorUpdateTemplateKHR = PFN_vkCreateDescriptorUpdateTemplateKHR( vkGetDeviceProcAddr( device, "vkCreateDescriptorUpdateTemplateKHR" ) );
1096 if ( !vkCreateDescriptorUpdateTemplate )
1097 vkCreateDescriptorUpdateTemplate = vkCreateDescriptorUpdateTemplateKHR;
1098 vkDestroyDescriptorUpdateTemplateKHR =
1099 PFN_vkDestroyDescriptorUpdateTemplateKHR( vkGetDeviceProcAddr( device, "vkDestroyDescriptorUpdateTemplateKHR" ) );
1100 if ( !vkDestroyDescriptorUpdateTemplate )
1101 vkDestroyDescriptorUpdateTemplate = vkDestroyDescriptorUpdateTemplateKHR;
1102 vkUpdateDescriptorSetWithTemplateKHR =
1103 PFN_vkUpdateDescriptorSetWithTemplateKHR( vkGetDeviceProcAddr( device, "vkUpdateDescriptorSetWithTemplateKHR" ) );
1104 if ( !vkUpdateDescriptorSetWithTemplate )
1105 vkUpdateDescriptorSetWithTemplate = vkUpdateDescriptorSetWithTemplateKHR;
1106
1107 //=== VK_NV_clip_space_w_scaling ===
1108 vkCmdSetViewportWScalingNV = PFN_vkCmdSetViewportWScalingNV( vkGetDeviceProcAddr( device, "vkCmdSetViewportWScalingNV" ) );
1109
1110 //=== VK_EXT_display_control ===
1111 vkDisplayPowerControlEXT = PFN_vkDisplayPowerControlEXT( vkGetDeviceProcAddr( device, "vkDisplayPowerControlEXT" ) );
1112 vkRegisterDeviceEventEXT = PFN_vkRegisterDeviceEventEXT( vkGetDeviceProcAddr( device, "vkRegisterDeviceEventEXT" ) );
1113 vkRegisterDisplayEventEXT = PFN_vkRegisterDisplayEventEXT( vkGetDeviceProcAddr( device, "vkRegisterDisplayEventEXT" ) );
1114 vkGetSwapchainCounterEXT = PFN_vkGetSwapchainCounterEXT( vkGetDeviceProcAddr( device, "vkGetSwapchainCounterEXT" ) );
1115
1116 //=== VK_GOOGLE_display_timing ===
1117 vkGetRefreshCycleDurationGOOGLE = PFN_vkGetRefreshCycleDurationGOOGLE( vkGetDeviceProcAddr( device, "vkGetRefreshCycleDurationGOOGLE" ) );
1118 vkGetPastPresentationTimingGOOGLE = PFN_vkGetPastPresentationTimingGOOGLE( vkGetDeviceProcAddr( device, "vkGetPastPresentationTimingGOOGLE" ) );
1119
1120 //=== VK_EXT_discard_rectangles ===
1121 vkCmdSetDiscardRectangleEXT = PFN_vkCmdSetDiscardRectangleEXT( vkGetDeviceProcAddr( device, "vkCmdSetDiscardRectangleEXT" ) );
1122 vkCmdSetDiscardRectangleEnableEXT = PFN_vkCmdSetDiscardRectangleEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetDiscardRectangleEnableEXT" ) );
1123 vkCmdSetDiscardRectangleModeEXT = PFN_vkCmdSetDiscardRectangleModeEXT( vkGetDeviceProcAddr( device, "vkCmdSetDiscardRectangleModeEXT" ) );
1124
1125 //=== VK_EXT_hdr_metadata ===
1126 vkSetHdrMetadataEXT = PFN_vkSetHdrMetadataEXT( vkGetDeviceProcAddr( device, "vkSetHdrMetadataEXT" ) );
1127
1128 //=== VK_KHR_create_renderpass2 ===
1129 vkCreateRenderPass2KHR = PFN_vkCreateRenderPass2KHR( vkGetDeviceProcAddr( device, "vkCreateRenderPass2KHR" ) );
1130 if ( !vkCreateRenderPass2 )
1131 vkCreateRenderPass2 = vkCreateRenderPass2KHR;
1132 vkCmdBeginRenderPass2KHR = PFN_vkCmdBeginRenderPass2KHR( vkGetDeviceProcAddr( device, "vkCmdBeginRenderPass2KHR" ) );
1133 if ( !vkCmdBeginRenderPass2 )
1134 vkCmdBeginRenderPass2 = vkCmdBeginRenderPass2KHR;
1135 vkCmdNextSubpass2KHR = PFN_vkCmdNextSubpass2KHR( vkGetDeviceProcAddr( device, "vkCmdNextSubpass2KHR" ) );
1136 if ( !vkCmdNextSubpass2 )
1137 vkCmdNextSubpass2 = vkCmdNextSubpass2KHR;
1138 vkCmdEndRenderPass2KHR = PFN_vkCmdEndRenderPass2KHR( vkGetDeviceProcAddr( device, "vkCmdEndRenderPass2KHR" ) );
1139 if ( !vkCmdEndRenderPass2 )
1140 vkCmdEndRenderPass2 = vkCmdEndRenderPass2KHR;
1141
1142 //=== VK_KHR_shared_presentable_image ===
1143 vkGetSwapchainStatusKHR = PFN_vkGetSwapchainStatusKHR( vkGetDeviceProcAddr( device, "vkGetSwapchainStatusKHR" ) );
1144
1145 # if defined( VK_USE_PLATFORM_WIN32_KHR )
1146 //=== VK_KHR_external_fence_win32 ===
1147 vkImportFenceWin32HandleKHR = PFN_vkImportFenceWin32HandleKHR( vkGetDeviceProcAddr( device, "vkImportFenceWin32HandleKHR" ) );
1148 vkGetFenceWin32HandleKHR = PFN_vkGetFenceWin32HandleKHR( vkGetDeviceProcAddr( device, "vkGetFenceWin32HandleKHR" ) );
1149 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
1150
1151 //=== VK_KHR_external_fence_fd ===
1152 vkImportFenceFdKHR = PFN_vkImportFenceFdKHR( vkGetDeviceProcAddr( device, "vkImportFenceFdKHR" ) );
1153 vkGetFenceFdKHR = PFN_vkGetFenceFdKHR( vkGetDeviceProcAddr( device, "vkGetFenceFdKHR" ) );
1154
1155 //=== VK_KHR_performance_query ===
1156 vkAcquireProfilingLockKHR = PFN_vkAcquireProfilingLockKHR( vkGetDeviceProcAddr( device, "vkAcquireProfilingLockKHR" ) );
1157 vkReleaseProfilingLockKHR = PFN_vkReleaseProfilingLockKHR( vkGetDeviceProcAddr( device, "vkReleaseProfilingLockKHR" ) );
1158
1159 //=== VK_EXT_debug_utils ===
1160 vkSetDebugUtilsObjectNameEXT = PFN_vkSetDebugUtilsObjectNameEXT( vkGetDeviceProcAddr( device, "vkSetDebugUtilsObjectNameEXT" ) );
1161 vkSetDebugUtilsObjectTagEXT = PFN_vkSetDebugUtilsObjectTagEXT( vkGetDeviceProcAddr( device, "vkSetDebugUtilsObjectTagEXT" ) );
1162 vkQueueBeginDebugUtilsLabelEXT = PFN_vkQueueBeginDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkQueueBeginDebugUtilsLabelEXT" ) );
1163 vkQueueEndDebugUtilsLabelEXT = PFN_vkQueueEndDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkQueueEndDebugUtilsLabelEXT" ) );
1164 vkQueueInsertDebugUtilsLabelEXT = PFN_vkQueueInsertDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkQueueInsertDebugUtilsLabelEXT" ) );
1165 vkCmdBeginDebugUtilsLabelEXT = PFN_vkCmdBeginDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkCmdBeginDebugUtilsLabelEXT" ) );
1166 vkCmdEndDebugUtilsLabelEXT = PFN_vkCmdEndDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkCmdEndDebugUtilsLabelEXT" ) );
1167 vkCmdInsertDebugUtilsLabelEXT = PFN_vkCmdInsertDebugUtilsLabelEXT( vkGetDeviceProcAddr( device, "vkCmdInsertDebugUtilsLabelEXT" ) );
1168
1169 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
1170 //=== VK_ANDROID_external_memory_android_hardware_buffer ===
1171 vkGetAndroidHardwareBufferPropertiesANDROID =
1172 PFN_vkGetAndroidHardwareBufferPropertiesANDROID( vkGetDeviceProcAddr( device, "vkGetAndroidHardwareBufferPropertiesANDROID" ) );
1173 vkGetMemoryAndroidHardwareBufferANDROID =
1174 PFN_vkGetMemoryAndroidHardwareBufferANDROID( vkGetDeviceProcAddr( device, "vkGetMemoryAndroidHardwareBufferANDROID" ) );
1175 # endif /*VK_USE_PLATFORM_ANDROID_KHR*/
1176
1177 # if defined( VK_ENABLE_BETA_EXTENSIONS )
1178 //=== VK_AMDX_shader_enqueue ===
1179 vkCreateExecutionGraphPipelinesAMDX = PFN_vkCreateExecutionGraphPipelinesAMDX( vkGetDeviceProcAddr( device, "vkCreateExecutionGraphPipelinesAMDX" ) );
1180 vkGetExecutionGraphPipelineScratchSizeAMDX =
1181 PFN_vkGetExecutionGraphPipelineScratchSizeAMDX( vkGetDeviceProcAddr( device, "vkGetExecutionGraphPipelineScratchSizeAMDX" ) );
1182 vkGetExecutionGraphPipelineNodeIndexAMDX =
1183 PFN_vkGetExecutionGraphPipelineNodeIndexAMDX( vkGetDeviceProcAddr( device, "vkGetExecutionGraphPipelineNodeIndexAMDX" ) );
1184 vkCmdInitializeGraphScratchMemoryAMDX =
1185 PFN_vkCmdInitializeGraphScratchMemoryAMDX( vkGetDeviceProcAddr( device, "vkCmdInitializeGraphScratchMemoryAMDX" ) );
1186 vkCmdDispatchGraphAMDX = PFN_vkCmdDispatchGraphAMDX( vkGetDeviceProcAddr( device, "vkCmdDispatchGraphAMDX" ) );
1187 vkCmdDispatchGraphIndirectAMDX = PFN_vkCmdDispatchGraphIndirectAMDX( vkGetDeviceProcAddr( device, "vkCmdDispatchGraphIndirectAMDX" ) );
1188 vkCmdDispatchGraphIndirectCountAMDX = PFN_vkCmdDispatchGraphIndirectCountAMDX( vkGetDeviceProcAddr( device, "vkCmdDispatchGraphIndirectCountAMDX" ) );
1189 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
1190
1191 //=== VK_EXT_descriptor_heap ===
1192 vkWriteSamplerDescriptorsEXT = PFN_vkWriteSamplerDescriptorsEXT( vkGetDeviceProcAddr( device, "vkWriteSamplerDescriptorsEXT" ) );
1193 vkWriteResourceDescriptorsEXT = PFN_vkWriteResourceDescriptorsEXT( vkGetDeviceProcAddr( device, "vkWriteResourceDescriptorsEXT" ) );
1194 vkCmdBindSamplerHeapEXT = PFN_vkCmdBindSamplerHeapEXT( vkGetDeviceProcAddr( device, "vkCmdBindSamplerHeapEXT" ) );
1195 vkCmdBindResourceHeapEXT = PFN_vkCmdBindResourceHeapEXT( vkGetDeviceProcAddr( device, "vkCmdBindResourceHeapEXT" ) );
1196 vkCmdPushDataEXT = PFN_vkCmdPushDataEXT( vkGetDeviceProcAddr( device, "vkCmdPushDataEXT" ) );
1197 vkGetImageOpaqueCaptureDataEXT = PFN_vkGetImageOpaqueCaptureDataEXT( vkGetDeviceProcAddr( device, "vkGetImageOpaqueCaptureDataEXT" ) );
1198 vkRegisterCustomBorderColorEXT = PFN_vkRegisterCustomBorderColorEXT( vkGetDeviceProcAddr( device, "vkRegisterCustomBorderColorEXT" ) );
1199 vkUnregisterCustomBorderColorEXT = PFN_vkUnregisterCustomBorderColorEXT( vkGetDeviceProcAddr( device, "vkUnregisterCustomBorderColorEXT" ) );
1200 vkGetTensorOpaqueCaptureDataARM = PFN_vkGetTensorOpaqueCaptureDataARM( vkGetDeviceProcAddr( device, "vkGetTensorOpaqueCaptureDataARM" ) );
1201
1202 //=== VK_EXT_sample_locations ===
1203 vkCmdSetSampleLocationsEXT = PFN_vkCmdSetSampleLocationsEXT( vkGetDeviceProcAddr( device, "vkCmdSetSampleLocationsEXT" ) );
1204
1205 //=== VK_KHR_get_memory_requirements2 ===
1206 vkGetImageMemoryRequirements2KHR = PFN_vkGetImageMemoryRequirements2KHR( vkGetDeviceProcAddr( device, "vkGetImageMemoryRequirements2KHR" ) );
1207 if ( !vkGetImageMemoryRequirements2 )
1208 vkGetImageMemoryRequirements2 = vkGetImageMemoryRequirements2KHR;
1209 vkGetBufferMemoryRequirements2KHR = PFN_vkGetBufferMemoryRequirements2KHR( vkGetDeviceProcAddr( device, "vkGetBufferMemoryRequirements2KHR" ) );
1210 if ( !vkGetBufferMemoryRequirements2 )
1211 vkGetBufferMemoryRequirements2 = vkGetBufferMemoryRequirements2KHR;
1212 vkGetImageSparseMemoryRequirements2KHR =
1213 PFN_vkGetImageSparseMemoryRequirements2KHR( vkGetDeviceProcAddr( device, "vkGetImageSparseMemoryRequirements2KHR" ) );
1214 if ( !vkGetImageSparseMemoryRequirements2 )
1215 vkGetImageSparseMemoryRequirements2 = vkGetImageSparseMemoryRequirements2KHR;
1216
1217 //=== VK_KHR_acceleration_structure ===
1218 vkCreateAccelerationStructureKHR = PFN_vkCreateAccelerationStructureKHR( vkGetDeviceProcAddr( device, "vkCreateAccelerationStructureKHR" ) );
1219 vkDestroyAccelerationStructureKHR = PFN_vkDestroyAccelerationStructureKHR( vkGetDeviceProcAddr( device, "vkDestroyAccelerationStructureKHR" ) );
1220 vkCmdBuildAccelerationStructuresKHR = PFN_vkCmdBuildAccelerationStructuresKHR( vkGetDeviceProcAddr( device, "vkCmdBuildAccelerationStructuresKHR" ) );
1221 vkCmdBuildAccelerationStructuresIndirectKHR =
1222 PFN_vkCmdBuildAccelerationStructuresIndirectKHR( vkGetDeviceProcAddr( device, "vkCmdBuildAccelerationStructuresIndirectKHR" ) );
1223 vkBuildAccelerationStructuresKHR = PFN_vkBuildAccelerationStructuresKHR( vkGetDeviceProcAddr( device, "vkBuildAccelerationStructuresKHR" ) );
1224 vkCopyAccelerationStructureKHR = PFN_vkCopyAccelerationStructureKHR( vkGetDeviceProcAddr( device, "vkCopyAccelerationStructureKHR" ) );
1225 vkCopyAccelerationStructureToMemoryKHR =
1226 PFN_vkCopyAccelerationStructureToMemoryKHR( vkGetDeviceProcAddr( device, "vkCopyAccelerationStructureToMemoryKHR" ) );
1227 vkCopyMemoryToAccelerationStructureKHR =
1228 PFN_vkCopyMemoryToAccelerationStructureKHR( vkGetDeviceProcAddr( device, "vkCopyMemoryToAccelerationStructureKHR" ) );
1229 vkWriteAccelerationStructuresPropertiesKHR =
1230 PFN_vkWriteAccelerationStructuresPropertiesKHR( vkGetDeviceProcAddr( device, "vkWriteAccelerationStructuresPropertiesKHR" ) );
1231 vkCmdCopyAccelerationStructureKHR = PFN_vkCmdCopyAccelerationStructureKHR( vkGetDeviceProcAddr( device, "vkCmdCopyAccelerationStructureKHR" ) );
1232 vkCmdCopyAccelerationStructureToMemoryKHR =
1233 PFN_vkCmdCopyAccelerationStructureToMemoryKHR( vkGetDeviceProcAddr( device, "vkCmdCopyAccelerationStructureToMemoryKHR" ) );
1234 vkCmdCopyMemoryToAccelerationStructureKHR =
1235 PFN_vkCmdCopyMemoryToAccelerationStructureKHR( vkGetDeviceProcAddr( device, "vkCmdCopyMemoryToAccelerationStructureKHR" ) );
1236 vkGetAccelerationStructureDeviceAddressKHR =
1237 PFN_vkGetAccelerationStructureDeviceAddressKHR( vkGetDeviceProcAddr( device, "vkGetAccelerationStructureDeviceAddressKHR" ) );
1238 vkCmdWriteAccelerationStructuresPropertiesKHR =
1239 PFN_vkCmdWriteAccelerationStructuresPropertiesKHR( vkGetDeviceProcAddr( device, "vkCmdWriteAccelerationStructuresPropertiesKHR" ) );
1240 vkGetDeviceAccelerationStructureCompatibilityKHR =
1241 PFN_vkGetDeviceAccelerationStructureCompatibilityKHR( vkGetDeviceProcAddr( device, "vkGetDeviceAccelerationStructureCompatibilityKHR" ) );
1242 vkGetAccelerationStructureBuildSizesKHR =
1243 PFN_vkGetAccelerationStructureBuildSizesKHR( vkGetDeviceProcAddr( device, "vkGetAccelerationStructureBuildSizesKHR" ) );
1244
1245 //=== VK_KHR_ray_tracing_pipeline ===
1246 vkCmdTraceRaysKHR = PFN_vkCmdTraceRaysKHR( vkGetDeviceProcAddr( device, "vkCmdTraceRaysKHR" ) );
1247 vkCreateRayTracingPipelinesKHR = PFN_vkCreateRayTracingPipelinesKHR( vkGetDeviceProcAddr( device, "vkCreateRayTracingPipelinesKHR" ) );
1248 vkGetRayTracingShaderGroupHandlesKHR =
1249 PFN_vkGetRayTracingShaderGroupHandlesKHR( vkGetDeviceProcAddr( device, "vkGetRayTracingShaderGroupHandlesKHR" ) );
1250 vkGetRayTracingCaptureReplayShaderGroupHandlesKHR =
1251 PFN_vkGetRayTracingCaptureReplayShaderGroupHandlesKHR( vkGetDeviceProcAddr( device, "vkGetRayTracingCaptureReplayShaderGroupHandlesKHR" ) );
1252 vkCmdTraceRaysIndirectKHR = PFN_vkCmdTraceRaysIndirectKHR( vkGetDeviceProcAddr( device, "vkCmdTraceRaysIndirectKHR" ) );
1253 vkGetRayTracingShaderGroupStackSizeKHR =
1254 PFN_vkGetRayTracingShaderGroupStackSizeKHR( vkGetDeviceProcAddr( device, "vkGetRayTracingShaderGroupStackSizeKHR" ) );
1255 vkCmdSetRayTracingPipelineStackSizeKHR =
1256 PFN_vkCmdSetRayTracingPipelineStackSizeKHR( vkGetDeviceProcAddr( device, "vkCmdSetRayTracingPipelineStackSizeKHR" ) );
1257
1258 //=== VK_KHR_sampler_ycbcr_conversion ===
1259 vkCreateSamplerYcbcrConversionKHR = PFN_vkCreateSamplerYcbcrConversionKHR( vkGetDeviceProcAddr( device, "vkCreateSamplerYcbcrConversionKHR" ) );
1260 if ( !vkCreateSamplerYcbcrConversion )
1261 vkCreateSamplerYcbcrConversion = vkCreateSamplerYcbcrConversionKHR;
1262 vkDestroySamplerYcbcrConversionKHR = PFN_vkDestroySamplerYcbcrConversionKHR( vkGetDeviceProcAddr( device, "vkDestroySamplerYcbcrConversionKHR" ) );
1263 if ( !vkDestroySamplerYcbcrConversion )
1264 vkDestroySamplerYcbcrConversion = vkDestroySamplerYcbcrConversionKHR;
1265
1266 //=== VK_KHR_bind_memory2 ===
1267 vkBindBufferMemory2KHR = PFN_vkBindBufferMemory2KHR( vkGetDeviceProcAddr( device, "vkBindBufferMemory2KHR" ) );
1268 if ( !vkBindBufferMemory2 )
1269 vkBindBufferMemory2 = vkBindBufferMemory2KHR;
1270 vkBindImageMemory2KHR = PFN_vkBindImageMemory2KHR( vkGetDeviceProcAddr( device, "vkBindImageMemory2KHR" ) );
1271 if ( !vkBindImageMemory2 )
1272 vkBindImageMemory2 = vkBindImageMemory2KHR;
1273
1274 //=== VK_EXT_image_drm_format_modifier ===
1275 vkGetImageDrmFormatModifierPropertiesEXT =
1276 PFN_vkGetImageDrmFormatModifierPropertiesEXT( vkGetDeviceProcAddr( device, "vkGetImageDrmFormatModifierPropertiesEXT" ) );
1277
1278 //=== VK_EXT_validation_cache ===
1279 vkCreateValidationCacheEXT = PFN_vkCreateValidationCacheEXT( vkGetDeviceProcAddr( device, "vkCreateValidationCacheEXT" ) );
1280 vkDestroyValidationCacheEXT = PFN_vkDestroyValidationCacheEXT( vkGetDeviceProcAddr( device, "vkDestroyValidationCacheEXT" ) );
1281 vkMergeValidationCachesEXT = PFN_vkMergeValidationCachesEXT( vkGetDeviceProcAddr( device, "vkMergeValidationCachesEXT" ) );
1282 vkGetValidationCacheDataEXT = PFN_vkGetValidationCacheDataEXT( vkGetDeviceProcAddr( device, "vkGetValidationCacheDataEXT" ) );
1283
1284 //=== VK_NV_shading_rate_image ===
1285 vkCmdBindShadingRateImageNV = PFN_vkCmdBindShadingRateImageNV( vkGetDeviceProcAddr( device, "vkCmdBindShadingRateImageNV" ) );
1286 vkCmdSetViewportShadingRatePaletteNV =
1287 PFN_vkCmdSetViewportShadingRatePaletteNV( vkGetDeviceProcAddr( device, "vkCmdSetViewportShadingRatePaletteNV" ) );
1288 vkCmdSetCoarseSampleOrderNV = PFN_vkCmdSetCoarseSampleOrderNV( vkGetDeviceProcAddr( device, "vkCmdSetCoarseSampleOrderNV" ) );
1289
1290 //=== VK_NV_ray_tracing ===
1291 vkCreateAccelerationStructureNV = PFN_vkCreateAccelerationStructureNV( vkGetDeviceProcAddr( device, "vkCreateAccelerationStructureNV" ) );
1292 vkDestroyAccelerationStructureNV = PFN_vkDestroyAccelerationStructureNV( vkGetDeviceProcAddr( device, "vkDestroyAccelerationStructureNV" ) );
1293 vkGetAccelerationStructureMemoryRequirementsNV =
1294 PFN_vkGetAccelerationStructureMemoryRequirementsNV( vkGetDeviceProcAddr( device, "vkGetAccelerationStructureMemoryRequirementsNV" ) );
1295 vkBindAccelerationStructureMemoryNV = PFN_vkBindAccelerationStructureMemoryNV( vkGetDeviceProcAddr( device, "vkBindAccelerationStructureMemoryNV" ) );
1296 vkCmdBuildAccelerationStructureNV = PFN_vkCmdBuildAccelerationStructureNV( vkGetDeviceProcAddr( device, "vkCmdBuildAccelerationStructureNV" ) );
1297 vkCmdCopyAccelerationStructureNV = PFN_vkCmdCopyAccelerationStructureNV( vkGetDeviceProcAddr( device, "vkCmdCopyAccelerationStructureNV" ) );
1298 vkCmdTraceRaysNV = PFN_vkCmdTraceRaysNV( vkGetDeviceProcAddr( device, "vkCmdTraceRaysNV" ) );
1299 vkCreateRayTracingPipelinesNV = PFN_vkCreateRayTracingPipelinesNV( vkGetDeviceProcAddr( device, "vkCreateRayTracingPipelinesNV" ) );
1300 vkGetRayTracingShaderGroupHandlesNV = PFN_vkGetRayTracingShaderGroupHandlesNV( vkGetDeviceProcAddr( device, "vkGetRayTracingShaderGroupHandlesNV" ) );
1301 if ( !vkGetRayTracingShaderGroupHandlesKHR )
1302 vkGetRayTracingShaderGroupHandlesKHR = vkGetRayTracingShaderGroupHandlesNV;
1303 vkGetAccelerationStructureHandleNV = PFN_vkGetAccelerationStructureHandleNV( vkGetDeviceProcAddr( device, "vkGetAccelerationStructureHandleNV" ) );
1304 vkCmdWriteAccelerationStructuresPropertiesNV =
1305 PFN_vkCmdWriteAccelerationStructuresPropertiesNV( vkGetDeviceProcAddr( device, "vkCmdWriteAccelerationStructuresPropertiesNV" ) );
1306 vkCompileDeferredNV = PFN_vkCompileDeferredNV( vkGetDeviceProcAddr( device, "vkCompileDeferredNV" ) );
1307
1308 //=== VK_KHR_maintenance3 ===
1309 vkGetDescriptorSetLayoutSupportKHR = PFN_vkGetDescriptorSetLayoutSupportKHR( vkGetDeviceProcAddr( device, "vkGetDescriptorSetLayoutSupportKHR" ) );
1310 if ( !vkGetDescriptorSetLayoutSupport )
1311 vkGetDescriptorSetLayoutSupport = vkGetDescriptorSetLayoutSupportKHR;
1312
1313 //=== VK_KHR_draw_indirect_count ===
1314 vkCmdDrawIndirectCountKHR = PFN_vkCmdDrawIndirectCountKHR( vkGetDeviceProcAddr( device, "vkCmdDrawIndirectCountKHR" ) );
1315 if ( !vkCmdDrawIndirectCount )
1316 vkCmdDrawIndirectCount = vkCmdDrawIndirectCountKHR;
1317 vkCmdDrawIndexedIndirectCountKHR = PFN_vkCmdDrawIndexedIndirectCountKHR( vkGetDeviceProcAddr( device, "vkCmdDrawIndexedIndirectCountKHR" ) );
1318 if ( !vkCmdDrawIndexedIndirectCount )
1319 vkCmdDrawIndexedIndirectCount = vkCmdDrawIndexedIndirectCountKHR;
1320
1321 //=== VK_EXT_external_memory_host ===
1322 vkGetMemoryHostPointerPropertiesEXT = PFN_vkGetMemoryHostPointerPropertiesEXT( vkGetDeviceProcAddr( device, "vkGetMemoryHostPointerPropertiesEXT" ) );
1323
1324 //=== VK_AMD_buffer_marker ===
1325 vkCmdWriteBufferMarkerAMD = PFN_vkCmdWriteBufferMarkerAMD( vkGetDeviceProcAddr( device, "vkCmdWriteBufferMarkerAMD" ) );
1326 vkCmdWriteBufferMarker2AMD = PFN_vkCmdWriteBufferMarker2AMD( vkGetDeviceProcAddr( device, "vkCmdWriteBufferMarker2AMD" ) );
1327
1328 //=== VK_EXT_calibrated_timestamps ===
1329 vkGetCalibratedTimestampsEXT = PFN_vkGetCalibratedTimestampsEXT( vkGetDeviceProcAddr( device, "vkGetCalibratedTimestampsEXT" ) );
1330 if ( !vkGetCalibratedTimestampsKHR )
1331 vkGetCalibratedTimestampsKHR = vkGetCalibratedTimestampsEXT;
1332
1333 //=== VK_NV_mesh_shader ===
1334 vkCmdDrawMeshTasksNV = PFN_vkCmdDrawMeshTasksNV( vkGetDeviceProcAddr( device, "vkCmdDrawMeshTasksNV" ) );
1335 vkCmdDrawMeshTasksIndirectNV = PFN_vkCmdDrawMeshTasksIndirectNV( vkGetDeviceProcAddr( device, "vkCmdDrawMeshTasksIndirectNV" ) );
1336 vkCmdDrawMeshTasksIndirectCountNV = PFN_vkCmdDrawMeshTasksIndirectCountNV( vkGetDeviceProcAddr( device, "vkCmdDrawMeshTasksIndirectCountNV" ) );
1337
1338 //=== VK_NV_scissor_exclusive ===
1339 vkCmdSetExclusiveScissorEnableNV = PFN_vkCmdSetExclusiveScissorEnableNV( vkGetDeviceProcAddr( device, "vkCmdSetExclusiveScissorEnableNV" ) );
1340 vkCmdSetExclusiveScissorNV = PFN_vkCmdSetExclusiveScissorNV( vkGetDeviceProcAddr( device, "vkCmdSetExclusiveScissorNV" ) );
1341
1342 //=== VK_NV_device_diagnostic_checkpoints ===
1343 vkCmdSetCheckpointNV = PFN_vkCmdSetCheckpointNV( vkGetDeviceProcAddr( device, "vkCmdSetCheckpointNV" ) );
1344 vkGetQueueCheckpointDataNV = PFN_vkGetQueueCheckpointDataNV( vkGetDeviceProcAddr( device, "vkGetQueueCheckpointDataNV" ) );
1345 vkGetQueueCheckpointData2NV = PFN_vkGetQueueCheckpointData2NV( vkGetDeviceProcAddr( device, "vkGetQueueCheckpointData2NV" ) );
1346
1347 //=== VK_KHR_timeline_semaphore ===
1348 vkGetSemaphoreCounterValueKHR = PFN_vkGetSemaphoreCounterValueKHR( vkGetDeviceProcAddr( device, "vkGetSemaphoreCounterValueKHR" ) );
1349 if ( !vkGetSemaphoreCounterValue )
1350 vkGetSemaphoreCounterValue = vkGetSemaphoreCounterValueKHR;
1351 vkWaitSemaphoresKHR = PFN_vkWaitSemaphoresKHR( vkGetDeviceProcAddr( device, "vkWaitSemaphoresKHR" ) );
1352 if ( !vkWaitSemaphores )
1353 vkWaitSemaphores = vkWaitSemaphoresKHR;
1354 vkSignalSemaphoreKHR = PFN_vkSignalSemaphoreKHR( vkGetDeviceProcAddr( device, "vkSignalSemaphoreKHR" ) );
1355 if ( !vkSignalSemaphore )
1356 vkSignalSemaphore = vkSignalSemaphoreKHR;
1357
1358 //=== VK_EXT_present_timing ===
1359 vkSetSwapchainPresentTimingQueueSizeEXT =
1360 PFN_vkSetSwapchainPresentTimingQueueSizeEXT( vkGetDeviceProcAddr( device, "vkSetSwapchainPresentTimingQueueSizeEXT" ) );
1361 vkGetSwapchainTimingPropertiesEXT = PFN_vkGetSwapchainTimingPropertiesEXT( vkGetDeviceProcAddr( device, "vkGetSwapchainTimingPropertiesEXT" ) );
1362 vkGetSwapchainTimeDomainPropertiesEXT =
1363 PFN_vkGetSwapchainTimeDomainPropertiesEXT( vkGetDeviceProcAddr( device, "vkGetSwapchainTimeDomainPropertiesEXT" ) );
1364 vkGetPastPresentationTimingEXT = PFN_vkGetPastPresentationTimingEXT( vkGetDeviceProcAddr( device, "vkGetPastPresentationTimingEXT" ) );
1365
1366 //=== VK_INTEL_performance_query ===
1367 vkInitializePerformanceApiINTEL = PFN_vkInitializePerformanceApiINTEL( vkGetDeviceProcAddr( device, "vkInitializePerformanceApiINTEL" ) );
1368 vkUninitializePerformanceApiINTEL = PFN_vkUninitializePerformanceApiINTEL( vkGetDeviceProcAddr( device, "vkUninitializePerformanceApiINTEL" ) );
1369 vkCmdSetPerformanceMarkerINTEL = PFN_vkCmdSetPerformanceMarkerINTEL( vkGetDeviceProcAddr( device, "vkCmdSetPerformanceMarkerINTEL" ) );
1370 vkCmdSetPerformanceStreamMarkerINTEL =
1371 PFN_vkCmdSetPerformanceStreamMarkerINTEL( vkGetDeviceProcAddr( device, "vkCmdSetPerformanceStreamMarkerINTEL" ) );
1372 vkCmdSetPerformanceOverrideINTEL = PFN_vkCmdSetPerformanceOverrideINTEL( vkGetDeviceProcAddr( device, "vkCmdSetPerformanceOverrideINTEL" ) );
1373 vkAcquirePerformanceConfigurationINTEL =
1374 PFN_vkAcquirePerformanceConfigurationINTEL( vkGetDeviceProcAddr( device, "vkAcquirePerformanceConfigurationINTEL" ) );
1375 vkReleasePerformanceConfigurationINTEL =
1376 PFN_vkReleasePerformanceConfigurationINTEL( vkGetDeviceProcAddr( device, "vkReleasePerformanceConfigurationINTEL" ) );
1377 vkQueueSetPerformanceConfigurationINTEL =
1378 PFN_vkQueueSetPerformanceConfigurationINTEL( vkGetDeviceProcAddr( device, "vkQueueSetPerformanceConfigurationINTEL" ) );
1379 vkGetPerformanceParameterINTEL = PFN_vkGetPerformanceParameterINTEL( vkGetDeviceProcAddr( device, "vkGetPerformanceParameterINTEL" ) );
1380
1381 //=== VK_AMD_display_native_hdr ===
1382 vkSetLocalDimmingAMD = PFN_vkSetLocalDimmingAMD( vkGetDeviceProcAddr( device, "vkSetLocalDimmingAMD" ) );
1383
1384 //=== VK_KHR_fragment_shading_rate ===
1385 vkCmdSetFragmentShadingRateKHR = PFN_vkCmdSetFragmentShadingRateKHR( vkGetDeviceProcAddr( device, "vkCmdSetFragmentShadingRateKHR" ) );
1386
1387 //=== VK_KHR_dynamic_rendering_local_read ===
1388 vkCmdSetRenderingAttachmentLocationsKHR =
1389 PFN_vkCmdSetRenderingAttachmentLocationsKHR( vkGetDeviceProcAddr( device, "vkCmdSetRenderingAttachmentLocationsKHR" ) );
1390 if ( !vkCmdSetRenderingAttachmentLocations )
1391 vkCmdSetRenderingAttachmentLocations = vkCmdSetRenderingAttachmentLocationsKHR;
1392 vkCmdSetRenderingInputAttachmentIndicesKHR =
1393 PFN_vkCmdSetRenderingInputAttachmentIndicesKHR( vkGetDeviceProcAddr( device, "vkCmdSetRenderingInputAttachmentIndicesKHR" ) );
1394 if ( !vkCmdSetRenderingInputAttachmentIndices )
1395 vkCmdSetRenderingInputAttachmentIndices = vkCmdSetRenderingInputAttachmentIndicesKHR;
1396
1397 //=== VK_EXT_buffer_device_address ===
1398 vkGetBufferDeviceAddressEXT = PFN_vkGetBufferDeviceAddressEXT( vkGetDeviceProcAddr( device, "vkGetBufferDeviceAddressEXT" ) );
1399 if ( !vkGetBufferDeviceAddress )
1400 vkGetBufferDeviceAddress = vkGetBufferDeviceAddressEXT;
1401
1402 //=== VK_KHR_present_wait ===
1403 vkWaitForPresentKHR = PFN_vkWaitForPresentKHR( vkGetDeviceProcAddr( device, "vkWaitForPresentKHR" ) );
1404
1405 # if defined( VK_USE_PLATFORM_WIN32_KHR )
1406 //=== VK_EXT_full_screen_exclusive ===
1407 vkAcquireFullScreenExclusiveModeEXT = PFN_vkAcquireFullScreenExclusiveModeEXT( vkGetDeviceProcAddr( device, "vkAcquireFullScreenExclusiveModeEXT" ) );
1408 vkReleaseFullScreenExclusiveModeEXT = PFN_vkReleaseFullScreenExclusiveModeEXT( vkGetDeviceProcAddr( device, "vkReleaseFullScreenExclusiveModeEXT" ) );
1409 vkGetDeviceGroupSurfacePresentModes2EXT =
1410 PFN_vkGetDeviceGroupSurfacePresentModes2EXT( vkGetDeviceProcAddr( device, "vkGetDeviceGroupSurfacePresentModes2EXT" ) );
1411 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
1412
1413 //=== VK_KHR_buffer_device_address ===
1414 vkGetBufferDeviceAddressKHR = PFN_vkGetBufferDeviceAddressKHR( vkGetDeviceProcAddr( device, "vkGetBufferDeviceAddressKHR" ) );
1415 if ( !vkGetBufferDeviceAddress )
1416 vkGetBufferDeviceAddress = vkGetBufferDeviceAddressKHR;
1417 vkGetBufferOpaqueCaptureAddressKHR = PFN_vkGetBufferOpaqueCaptureAddressKHR( vkGetDeviceProcAddr( device, "vkGetBufferOpaqueCaptureAddressKHR" ) );
1418 if ( !vkGetBufferOpaqueCaptureAddress )
1419 vkGetBufferOpaqueCaptureAddress = vkGetBufferOpaqueCaptureAddressKHR;
1420 vkGetDeviceMemoryOpaqueCaptureAddressKHR =
1421 PFN_vkGetDeviceMemoryOpaqueCaptureAddressKHR( vkGetDeviceProcAddr( device, "vkGetDeviceMemoryOpaqueCaptureAddressKHR" ) );
1422 if ( !vkGetDeviceMemoryOpaqueCaptureAddress )
1423 vkGetDeviceMemoryOpaqueCaptureAddress = vkGetDeviceMemoryOpaqueCaptureAddressKHR;
1424
1425 //=== VK_EXT_line_rasterization ===
1426 vkCmdSetLineStippleEXT = PFN_vkCmdSetLineStippleEXT( vkGetDeviceProcAddr( device, "vkCmdSetLineStippleEXT" ) );
1427 if ( !vkCmdSetLineStipple )
1428 vkCmdSetLineStipple = vkCmdSetLineStippleEXT;
1429
1430 //=== VK_EXT_host_query_reset ===
1431 vkResetQueryPoolEXT = PFN_vkResetQueryPoolEXT( vkGetDeviceProcAddr( device, "vkResetQueryPoolEXT" ) );
1432 if ( !vkResetQueryPool )
1433 vkResetQueryPool = vkResetQueryPoolEXT;
1434
1435 //=== VK_EXT_extended_dynamic_state ===
1436 vkCmdSetCullModeEXT = PFN_vkCmdSetCullModeEXT( vkGetDeviceProcAddr( device, "vkCmdSetCullModeEXT" ) );
1437 if ( !vkCmdSetCullMode )
1438 vkCmdSetCullMode = vkCmdSetCullModeEXT;
1439 vkCmdSetFrontFaceEXT = PFN_vkCmdSetFrontFaceEXT( vkGetDeviceProcAddr( device, "vkCmdSetFrontFaceEXT" ) );
1440 if ( !vkCmdSetFrontFace )
1441 vkCmdSetFrontFace = vkCmdSetFrontFaceEXT;
1442 vkCmdSetPrimitiveTopologyEXT = PFN_vkCmdSetPrimitiveTopologyEXT( vkGetDeviceProcAddr( device, "vkCmdSetPrimitiveTopologyEXT" ) );
1443 if ( !vkCmdSetPrimitiveTopology )
1444 vkCmdSetPrimitiveTopology = vkCmdSetPrimitiveTopologyEXT;
1445 vkCmdSetViewportWithCountEXT = PFN_vkCmdSetViewportWithCountEXT( vkGetDeviceProcAddr( device, "vkCmdSetViewportWithCountEXT" ) );
1446 if ( !vkCmdSetViewportWithCount )
1447 vkCmdSetViewportWithCount = vkCmdSetViewportWithCountEXT;
1448 vkCmdSetScissorWithCountEXT = PFN_vkCmdSetScissorWithCountEXT( vkGetDeviceProcAddr( device, "vkCmdSetScissorWithCountEXT" ) );
1449 if ( !vkCmdSetScissorWithCount )
1450 vkCmdSetScissorWithCount = vkCmdSetScissorWithCountEXT;
1451 vkCmdBindVertexBuffers2EXT = PFN_vkCmdBindVertexBuffers2EXT( vkGetDeviceProcAddr( device, "vkCmdBindVertexBuffers2EXT" ) );
1452 if ( !vkCmdBindVertexBuffers2 )
1453 vkCmdBindVertexBuffers2 = vkCmdBindVertexBuffers2EXT;
1454 vkCmdSetDepthTestEnableEXT = PFN_vkCmdSetDepthTestEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthTestEnableEXT" ) );
1455 if ( !vkCmdSetDepthTestEnable )
1456 vkCmdSetDepthTestEnable = vkCmdSetDepthTestEnableEXT;
1457 vkCmdSetDepthWriteEnableEXT = PFN_vkCmdSetDepthWriteEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthWriteEnableEXT" ) );
1458 if ( !vkCmdSetDepthWriteEnable )
1459 vkCmdSetDepthWriteEnable = vkCmdSetDepthWriteEnableEXT;
1460 vkCmdSetDepthCompareOpEXT = PFN_vkCmdSetDepthCompareOpEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthCompareOpEXT" ) );
1461 if ( !vkCmdSetDepthCompareOp )
1462 vkCmdSetDepthCompareOp = vkCmdSetDepthCompareOpEXT;
1463 vkCmdSetDepthBoundsTestEnableEXT = PFN_vkCmdSetDepthBoundsTestEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthBoundsTestEnableEXT" ) );
1464 if ( !vkCmdSetDepthBoundsTestEnable )
1465 vkCmdSetDepthBoundsTestEnable = vkCmdSetDepthBoundsTestEnableEXT;
1466 vkCmdSetStencilTestEnableEXT = PFN_vkCmdSetStencilTestEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetStencilTestEnableEXT" ) );
1467 if ( !vkCmdSetStencilTestEnable )
1468 vkCmdSetStencilTestEnable = vkCmdSetStencilTestEnableEXT;
1469 vkCmdSetStencilOpEXT = PFN_vkCmdSetStencilOpEXT( vkGetDeviceProcAddr( device, "vkCmdSetStencilOpEXT" ) );
1470 if ( !vkCmdSetStencilOp )
1471 vkCmdSetStencilOp = vkCmdSetStencilOpEXT;
1472
1473 //=== VK_KHR_deferred_host_operations ===
1474 vkCreateDeferredOperationKHR = PFN_vkCreateDeferredOperationKHR( vkGetDeviceProcAddr( device, "vkCreateDeferredOperationKHR" ) );
1475 vkDestroyDeferredOperationKHR = PFN_vkDestroyDeferredOperationKHR( vkGetDeviceProcAddr( device, "vkDestroyDeferredOperationKHR" ) );
1476 vkGetDeferredOperationMaxConcurrencyKHR =
1477 PFN_vkGetDeferredOperationMaxConcurrencyKHR( vkGetDeviceProcAddr( device, "vkGetDeferredOperationMaxConcurrencyKHR" ) );
1478 vkGetDeferredOperationResultKHR = PFN_vkGetDeferredOperationResultKHR( vkGetDeviceProcAddr( device, "vkGetDeferredOperationResultKHR" ) );
1479 vkDeferredOperationJoinKHR = PFN_vkDeferredOperationJoinKHR( vkGetDeviceProcAddr( device, "vkDeferredOperationJoinKHR" ) );
1480
1481 //=== VK_KHR_pipeline_executable_properties ===
1482 vkGetPipelineExecutablePropertiesKHR =
1483 PFN_vkGetPipelineExecutablePropertiesKHR( vkGetDeviceProcAddr( device, "vkGetPipelineExecutablePropertiesKHR" ) );
1484 vkGetPipelineExecutableStatisticsKHR =
1485 PFN_vkGetPipelineExecutableStatisticsKHR( vkGetDeviceProcAddr( device, "vkGetPipelineExecutableStatisticsKHR" ) );
1486 vkGetPipelineExecutableInternalRepresentationsKHR =
1487 PFN_vkGetPipelineExecutableInternalRepresentationsKHR( vkGetDeviceProcAddr( device, "vkGetPipelineExecutableInternalRepresentationsKHR" ) );
1488
1489 //=== VK_EXT_host_image_copy ===
1490 vkCopyMemoryToImageEXT = PFN_vkCopyMemoryToImageEXT( vkGetDeviceProcAddr( device, "vkCopyMemoryToImageEXT" ) );
1491 if ( !vkCopyMemoryToImage )
1492 vkCopyMemoryToImage = vkCopyMemoryToImageEXT;
1493 vkCopyImageToMemoryEXT = PFN_vkCopyImageToMemoryEXT( vkGetDeviceProcAddr( device, "vkCopyImageToMemoryEXT" ) );
1494 if ( !vkCopyImageToMemory )
1495 vkCopyImageToMemory = vkCopyImageToMemoryEXT;
1496 vkCopyImageToImageEXT = PFN_vkCopyImageToImageEXT( vkGetDeviceProcAddr( device, "vkCopyImageToImageEXT" ) );
1497 if ( !vkCopyImageToImage )
1498 vkCopyImageToImage = vkCopyImageToImageEXT;
1499 vkTransitionImageLayoutEXT = PFN_vkTransitionImageLayoutEXT( vkGetDeviceProcAddr( device, "vkTransitionImageLayoutEXT" ) );
1500 if ( !vkTransitionImageLayout )
1501 vkTransitionImageLayout = vkTransitionImageLayoutEXT;
1502 vkGetImageSubresourceLayout2EXT = PFN_vkGetImageSubresourceLayout2EXT( vkGetDeviceProcAddr( device, "vkGetImageSubresourceLayout2EXT" ) );
1503 if ( !vkGetImageSubresourceLayout2 )
1504 vkGetImageSubresourceLayout2 = vkGetImageSubresourceLayout2EXT;
1505
1506 //=== VK_KHR_map_memory2 ===
1507 vkMapMemory2KHR = PFN_vkMapMemory2KHR( vkGetDeviceProcAddr( device, "vkMapMemory2KHR" ) );
1508 if ( !vkMapMemory2 )
1509 vkMapMemory2 = vkMapMemory2KHR;
1510 vkUnmapMemory2KHR = PFN_vkUnmapMemory2KHR( vkGetDeviceProcAddr( device, "vkUnmapMemory2KHR" ) );
1511 if ( !vkUnmapMemory2 )
1512 vkUnmapMemory2 = vkUnmapMemory2KHR;
1513
1514 //=== VK_EXT_swapchain_maintenance1 ===
1515 vkReleaseSwapchainImagesEXT = PFN_vkReleaseSwapchainImagesEXT( vkGetDeviceProcAddr( device, "vkReleaseSwapchainImagesEXT" ) );
1516 if ( !vkReleaseSwapchainImagesKHR )
1517 vkReleaseSwapchainImagesKHR = vkReleaseSwapchainImagesEXT;
1518
1519 //=== VK_NV_device_generated_commands ===
1520 vkGetGeneratedCommandsMemoryRequirementsNV =
1521 PFN_vkGetGeneratedCommandsMemoryRequirementsNV( vkGetDeviceProcAddr( device, "vkGetGeneratedCommandsMemoryRequirementsNV" ) );
1522 vkCmdPreprocessGeneratedCommandsNV = PFN_vkCmdPreprocessGeneratedCommandsNV( vkGetDeviceProcAddr( device, "vkCmdPreprocessGeneratedCommandsNV" ) );
1523 vkCmdExecuteGeneratedCommandsNV = PFN_vkCmdExecuteGeneratedCommandsNV( vkGetDeviceProcAddr( device, "vkCmdExecuteGeneratedCommandsNV" ) );
1524 vkCmdBindPipelineShaderGroupNV = PFN_vkCmdBindPipelineShaderGroupNV( vkGetDeviceProcAddr( device, "vkCmdBindPipelineShaderGroupNV" ) );
1525 vkCreateIndirectCommandsLayoutNV = PFN_vkCreateIndirectCommandsLayoutNV( vkGetDeviceProcAddr( device, "vkCreateIndirectCommandsLayoutNV" ) );
1526 vkDestroyIndirectCommandsLayoutNV = PFN_vkDestroyIndirectCommandsLayoutNV( vkGetDeviceProcAddr( device, "vkDestroyIndirectCommandsLayoutNV" ) );
1527
1528 //=== VK_EXT_depth_bias_control ===
1529 vkCmdSetDepthBias2EXT = PFN_vkCmdSetDepthBias2EXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthBias2EXT" ) );
1530
1531 //=== VK_EXT_private_data ===
1532 vkCreatePrivateDataSlotEXT = PFN_vkCreatePrivateDataSlotEXT( vkGetDeviceProcAddr( device, "vkCreatePrivateDataSlotEXT" ) );
1533 if ( !vkCreatePrivateDataSlot )
1534 vkCreatePrivateDataSlot = vkCreatePrivateDataSlotEXT;
1535 vkDestroyPrivateDataSlotEXT = PFN_vkDestroyPrivateDataSlotEXT( vkGetDeviceProcAddr( device, "vkDestroyPrivateDataSlotEXT" ) );
1536 if ( !vkDestroyPrivateDataSlot )
1537 vkDestroyPrivateDataSlot = vkDestroyPrivateDataSlotEXT;
1538 vkSetPrivateDataEXT = PFN_vkSetPrivateDataEXT( vkGetDeviceProcAddr( device, "vkSetPrivateDataEXT" ) );
1539 if ( !vkSetPrivateData )
1540 vkSetPrivateData = vkSetPrivateDataEXT;
1541 vkGetPrivateDataEXT = PFN_vkGetPrivateDataEXT( vkGetDeviceProcAddr( device, "vkGetPrivateDataEXT" ) );
1542 if ( !vkGetPrivateData )
1543 vkGetPrivateData = vkGetPrivateDataEXT;
1544
1545 //=== VK_KHR_video_encode_queue ===
1546 vkGetEncodedVideoSessionParametersKHR =
1547 PFN_vkGetEncodedVideoSessionParametersKHR( vkGetDeviceProcAddr( device, "vkGetEncodedVideoSessionParametersKHR" ) );
1548 vkCmdEncodeVideoKHR = PFN_vkCmdEncodeVideoKHR( vkGetDeviceProcAddr( device, "vkCmdEncodeVideoKHR" ) );
1549
1550 # if defined( VK_ENABLE_BETA_EXTENSIONS )
1551 //=== VK_NV_cuda_kernel_launch ===
1552 vkCreateCudaModuleNV = PFN_vkCreateCudaModuleNV( vkGetDeviceProcAddr( device, "vkCreateCudaModuleNV" ) );
1553 vkGetCudaModuleCacheNV = PFN_vkGetCudaModuleCacheNV( vkGetDeviceProcAddr( device, "vkGetCudaModuleCacheNV" ) );
1554 vkCreateCudaFunctionNV = PFN_vkCreateCudaFunctionNV( vkGetDeviceProcAddr( device, "vkCreateCudaFunctionNV" ) );
1555 vkDestroyCudaModuleNV = PFN_vkDestroyCudaModuleNV( vkGetDeviceProcAddr( device, "vkDestroyCudaModuleNV" ) );
1556 vkDestroyCudaFunctionNV = PFN_vkDestroyCudaFunctionNV( vkGetDeviceProcAddr( device, "vkDestroyCudaFunctionNV" ) );
1557 vkCmdCudaLaunchKernelNV = PFN_vkCmdCudaLaunchKernelNV( vkGetDeviceProcAddr( device, "vkCmdCudaLaunchKernelNV" ) );
1558 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
1559
1560 //=== VK_QCOM_tile_shading ===
1561 vkCmdDispatchTileQCOM = PFN_vkCmdDispatchTileQCOM( vkGetDeviceProcAddr( device, "vkCmdDispatchTileQCOM" ) );
1562 vkCmdBeginPerTileExecutionQCOM = PFN_vkCmdBeginPerTileExecutionQCOM( vkGetDeviceProcAddr( device, "vkCmdBeginPerTileExecutionQCOM" ) );
1563 vkCmdEndPerTileExecutionQCOM = PFN_vkCmdEndPerTileExecutionQCOM( vkGetDeviceProcAddr( device, "vkCmdEndPerTileExecutionQCOM" ) );
1564
1565 # if defined( VK_USE_PLATFORM_METAL_EXT )
1566 //=== VK_EXT_metal_objects ===
1567 vkExportMetalObjectsEXT = PFN_vkExportMetalObjectsEXT( vkGetDeviceProcAddr( device, "vkExportMetalObjectsEXT" ) );
1568 # endif /*VK_USE_PLATFORM_METAL_EXT*/
1569
1570 //=== VK_KHR_synchronization2 ===
1571 vkCmdSetEvent2KHR = PFN_vkCmdSetEvent2KHR( vkGetDeviceProcAddr( device, "vkCmdSetEvent2KHR" ) );
1572 if ( !vkCmdSetEvent2 )
1573 vkCmdSetEvent2 = vkCmdSetEvent2KHR;
1574 vkCmdResetEvent2KHR = PFN_vkCmdResetEvent2KHR( vkGetDeviceProcAddr( device, "vkCmdResetEvent2KHR" ) );
1575 if ( !vkCmdResetEvent2 )
1576 vkCmdResetEvent2 = vkCmdResetEvent2KHR;
1577 vkCmdWaitEvents2KHR = PFN_vkCmdWaitEvents2KHR( vkGetDeviceProcAddr( device, "vkCmdWaitEvents2KHR" ) );
1578 if ( !vkCmdWaitEvents2 )
1579 vkCmdWaitEvents2 = vkCmdWaitEvents2KHR;
1580 vkCmdPipelineBarrier2KHR = PFN_vkCmdPipelineBarrier2KHR( vkGetDeviceProcAddr( device, "vkCmdPipelineBarrier2KHR" ) );
1581 if ( !vkCmdPipelineBarrier2 )
1582 vkCmdPipelineBarrier2 = vkCmdPipelineBarrier2KHR;
1583 vkCmdWriteTimestamp2KHR = PFN_vkCmdWriteTimestamp2KHR( vkGetDeviceProcAddr( device, "vkCmdWriteTimestamp2KHR" ) );
1584 if ( !vkCmdWriteTimestamp2 )
1585 vkCmdWriteTimestamp2 = vkCmdWriteTimestamp2KHR;
1586 vkQueueSubmit2KHR = PFN_vkQueueSubmit2KHR( vkGetDeviceProcAddr( device, "vkQueueSubmit2KHR" ) );
1587 if ( !vkQueueSubmit2 )
1588 vkQueueSubmit2 = vkQueueSubmit2KHR;
1589
1590 //=== VK_EXT_descriptor_buffer ===
1591 vkGetDescriptorSetLayoutSizeEXT = PFN_vkGetDescriptorSetLayoutSizeEXT( vkGetDeviceProcAddr( device, "vkGetDescriptorSetLayoutSizeEXT" ) );
1592 vkGetDescriptorSetLayoutBindingOffsetEXT =
1593 PFN_vkGetDescriptorSetLayoutBindingOffsetEXT( vkGetDeviceProcAddr( device, "vkGetDescriptorSetLayoutBindingOffsetEXT" ) );
1594 vkGetDescriptorEXT = PFN_vkGetDescriptorEXT( vkGetDeviceProcAddr( device, "vkGetDescriptorEXT" ) );
1595 vkCmdBindDescriptorBuffersEXT = PFN_vkCmdBindDescriptorBuffersEXT( vkGetDeviceProcAddr( device, "vkCmdBindDescriptorBuffersEXT" ) );
1596 vkCmdSetDescriptorBufferOffsetsEXT = PFN_vkCmdSetDescriptorBufferOffsetsEXT( vkGetDeviceProcAddr( device, "vkCmdSetDescriptorBufferOffsetsEXT" ) );
1597 vkCmdBindDescriptorBufferEmbeddedSamplersEXT =
1598 PFN_vkCmdBindDescriptorBufferEmbeddedSamplersEXT( vkGetDeviceProcAddr( device, "vkCmdBindDescriptorBufferEmbeddedSamplersEXT" ) );
1599 vkGetBufferOpaqueCaptureDescriptorDataEXT =
1600 PFN_vkGetBufferOpaqueCaptureDescriptorDataEXT( vkGetDeviceProcAddr( device, "vkGetBufferOpaqueCaptureDescriptorDataEXT" ) );
1601 vkGetImageOpaqueCaptureDescriptorDataEXT =
1602 PFN_vkGetImageOpaqueCaptureDescriptorDataEXT( vkGetDeviceProcAddr( device, "vkGetImageOpaqueCaptureDescriptorDataEXT" ) );
1603 vkGetImageViewOpaqueCaptureDescriptorDataEXT =
1604 PFN_vkGetImageViewOpaqueCaptureDescriptorDataEXT( vkGetDeviceProcAddr( device, "vkGetImageViewOpaqueCaptureDescriptorDataEXT" ) );
1605 vkGetSamplerOpaqueCaptureDescriptorDataEXT =
1606 PFN_vkGetSamplerOpaqueCaptureDescriptorDataEXT( vkGetDeviceProcAddr( device, "vkGetSamplerOpaqueCaptureDescriptorDataEXT" ) );
1607 vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT = PFN_vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT(
1608 vkGetDeviceProcAddr( device, "vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT" ) );
1609
1610 //=== VK_KHR_device_address_commands ===
1611 vkCmdBindIndexBuffer3KHR = PFN_vkCmdBindIndexBuffer3KHR( vkGetDeviceProcAddr( device, "vkCmdBindIndexBuffer3KHR" ) );
1612 vkCmdBindVertexBuffers3KHR = PFN_vkCmdBindVertexBuffers3KHR( vkGetDeviceProcAddr( device, "vkCmdBindVertexBuffers3KHR" ) );
1613 vkCmdDrawIndirect2KHR = PFN_vkCmdDrawIndirect2KHR( vkGetDeviceProcAddr( device, "vkCmdDrawIndirect2KHR" ) );
1614 vkCmdDrawIndexedIndirect2KHR = PFN_vkCmdDrawIndexedIndirect2KHR( vkGetDeviceProcAddr( device, "vkCmdDrawIndexedIndirect2KHR" ) );
1615 vkCmdDispatchIndirect2KHR = PFN_vkCmdDispatchIndirect2KHR( vkGetDeviceProcAddr( device, "vkCmdDispatchIndirect2KHR" ) );
1616 vkCmdCopyMemoryKHR = PFN_vkCmdCopyMemoryKHR( vkGetDeviceProcAddr( device, "vkCmdCopyMemoryKHR" ) );
1617 vkCmdCopyMemoryToImageKHR = PFN_vkCmdCopyMemoryToImageKHR( vkGetDeviceProcAddr( device, "vkCmdCopyMemoryToImageKHR" ) );
1618 vkCmdCopyImageToMemoryKHR = PFN_vkCmdCopyImageToMemoryKHR( vkGetDeviceProcAddr( device, "vkCmdCopyImageToMemoryKHR" ) );
1619 vkCmdUpdateMemoryKHR = PFN_vkCmdUpdateMemoryKHR( vkGetDeviceProcAddr( device, "vkCmdUpdateMemoryKHR" ) );
1620 vkCmdFillMemoryKHR = PFN_vkCmdFillMemoryKHR( vkGetDeviceProcAddr( device, "vkCmdFillMemoryKHR" ) );
1621 vkCmdCopyQueryPoolResultsToMemoryKHR =
1622 PFN_vkCmdCopyQueryPoolResultsToMemoryKHR( vkGetDeviceProcAddr( device, "vkCmdCopyQueryPoolResultsToMemoryKHR" ) );
1623 vkCmdDrawIndirectCount2KHR = PFN_vkCmdDrawIndirectCount2KHR( vkGetDeviceProcAddr( device, "vkCmdDrawIndirectCount2KHR" ) );
1624 vkCmdDrawIndexedIndirectCount2KHR = PFN_vkCmdDrawIndexedIndirectCount2KHR( vkGetDeviceProcAddr( device, "vkCmdDrawIndexedIndirectCount2KHR" ) );
1625 vkCmdBeginConditionalRendering2EXT = PFN_vkCmdBeginConditionalRendering2EXT( vkGetDeviceProcAddr( device, "vkCmdBeginConditionalRendering2EXT" ) );
1626 vkCmdBindTransformFeedbackBuffers2EXT =
1627 PFN_vkCmdBindTransformFeedbackBuffers2EXT( vkGetDeviceProcAddr( device, "vkCmdBindTransformFeedbackBuffers2EXT" ) );
1628 vkCmdBeginTransformFeedback2EXT = PFN_vkCmdBeginTransformFeedback2EXT( vkGetDeviceProcAddr( device, "vkCmdBeginTransformFeedback2EXT" ) );
1629 vkCmdEndTransformFeedback2EXT = PFN_vkCmdEndTransformFeedback2EXT( vkGetDeviceProcAddr( device, "vkCmdEndTransformFeedback2EXT" ) );
1630 vkCmdDrawIndirectByteCount2EXT = PFN_vkCmdDrawIndirectByteCount2EXT( vkGetDeviceProcAddr( device, "vkCmdDrawIndirectByteCount2EXT" ) );
1631 vkCmdDrawMeshTasksIndirect2EXT = PFN_vkCmdDrawMeshTasksIndirect2EXT( vkGetDeviceProcAddr( device, "vkCmdDrawMeshTasksIndirect2EXT" ) );
1632 vkCmdDrawMeshTasksIndirectCount2EXT = PFN_vkCmdDrawMeshTasksIndirectCount2EXT( vkGetDeviceProcAddr( device, "vkCmdDrawMeshTasksIndirectCount2EXT" ) );
1633 vkCmdWriteMarkerToMemoryAMD = PFN_vkCmdWriteMarkerToMemoryAMD( vkGetDeviceProcAddr( device, "vkCmdWriteMarkerToMemoryAMD" ) );
1634 vkCreateAccelerationStructure2KHR = PFN_vkCreateAccelerationStructure2KHR( vkGetDeviceProcAddr( device, "vkCreateAccelerationStructure2KHR" ) );
1635
1636 //=== VK_NV_fragment_shading_rate_enums ===
1637 vkCmdSetFragmentShadingRateEnumNV = PFN_vkCmdSetFragmentShadingRateEnumNV( vkGetDeviceProcAddr( device, "vkCmdSetFragmentShadingRateEnumNV" ) );
1638
1639 //=== VK_EXT_mesh_shader ===
1640 vkCmdDrawMeshTasksEXT = PFN_vkCmdDrawMeshTasksEXT( vkGetDeviceProcAddr( device, "vkCmdDrawMeshTasksEXT" ) );
1641 vkCmdDrawMeshTasksIndirectEXT = PFN_vkCmdDrawMeshTasksIndirectEXT( vkGetDeviceProcAddr( device, "vkCmdDrawMeshTasksIndirectEXT" ) );
1642 vkCmdDrawMeshTasksIndirectCountEXT = PFN_vkCmdDrawMeshTasksIndirectCountEXT( vkGetDeviceProcAddr( device, "vkCmdDrawMeshTasksIndirectCountEXT" ) );
1643
1644 //=== VK_KHR_copy_commands2 ===
1645 vkCmdCopyBuffer2KHR = PFN_vkCmdCopyBuffer2KHR( vkGetDeviceProcAddr( device, "vkCmdCopyBuffer2KHR" ) );
1646 if ( !vkCmdCopyBuffer2 )
1647 vkCmdCopyBuffer2 = vkCmdCopyBuffer2KHR;
1648 vkCmdCopyImage2KHR = PFN_vkCmdCopyImage2KHR( vkGetDeviceProcAddr( device, "vkCmdCopyImage2KHR" ) );
1649 if ( !vkCmdCopyImage2 )
1650 vkCmdCopyImage2 = vkCmdCopyImage2KHR;
1651 vkCmdCopyBufferToImage2KHR = PFN_vkCmdCopyBufferToImage2KHR( vkGetDeviceProcAddr( device, "vkCmdCopyBufferToImage2KHR" ) );
1652 if ( !vkCmdCopyBufferToImage2 )
1653 vkCmdCopyBufferToImage2 = vkCmdCopyBufferToImage2KHR;
1654 vkCmdCopyImageToBuffer2KHR = PFN_vkCmdCopyImageToBuffer2KHR( vkGetDeviceProcAddr( device, "vkCmdCopyImageToBuffer2KHR" ) );
1655 if ( !vkCmdCopyImageToBuffer2 )
1656 vkCmdCopyImageToBuffer2 = vkCmdCopyImageToBuffer2KHR;
1657 vkCmdBlitImage2KHR = PFN_vkCmdBlitImage2KHR( vkGetDeviceProcAddr( device, "vkCmdBlitImage2KHR" ) );
1658 if ( !vkCmdBlitImage2 )
1659 vkCmdBlitImage2 = vkCmdBlitImage2KHR;
1660 vkCmdResolveImage2KHR = PFN_vkCmdResolveImage2KHR( vkGetDeviceProcAddr( device, "vkCmdResolveImage2KHR" ) );
1661 if ( !vkCmdResolveImage2 )
1662 vkCmdResolveImage2 = vkCmdResolveImage2KHR;
1663
1664 //=== VK_EXT_device_fault ===
1665 vkGetDeviceFaultInfoEXT = PFN_vkGetDeviceFaultInfoEXT( vkGetDeviceProcAddr( device, "vkGetDeviceFaultInfoEXT" ) );
1666
1667 //=== VK_EXT_vertex_input_dynamic_state ===
1668 vkCmdSetVertexInputEXT = PFN_vkCmdSetVertexInputEXT( vkGetDeviceProcAddr( device, "vkCmdSetVertexInputEXT" ) );
1669
1670 # if defined( VK_USE_PLATFORM_FUCHSIA )
1671 //=== VK_FUCHSIA_external_memory ===
1672 vkGetMemoryZirconHandleFUCHSIA = PFN_vkGetMemoryZirconHandleFUCHSIA( vkGetDeviceProcAddr( device, "vkGetMemoryZirconHandleFUCHSIA" ) );
1673 vkGetMemoryZirconHandlePropertiesFUCHSIA =
1674 PFN_vkGetMemoryZirconHandlePropertiesFUCHSIA( vkGetDeviceProcAddr( device, "vkGetMemoryZirconHandlePropertiesFUCHSIA" ) );
1675 # endif /*VK_USE_PLATFORM_FUCHSIA*/
1676
1677 # if defined( VK_USE_PLATFORM_FUCHSIA )
1678 //=== VK_FUCHSIA_external_semaphore ===
1679 vkImportSemaphoreZirconHandleFUCHSIA =
1680 PFN_vkImportSemaphoreZirconHandleFUCHSIA( vkGetDeviceProcAddr( device, "vkImportSemaphoreZirconHandleFUCHSIA" ) );
1681 vkGetSemaphoreZirconHandleFUCHSIA = PFN_vkGetSemaphoreZirconHandleFUCHSIA( vkGetDeviceProcAddr( device, "vkGetSemaphoreZirconHandleFUCHSIA" ) );
1682 # endif /*VK_USE_PLATFORM_FUCHSIA*/
1683
1684 # if defined( VK_USE_PLATFORM_FUCHSIA )
1685 //=== VK_FUCHSIA_buffer_collection ===
1686 vkCreateBufferCollectionFUCHSIA = PFN_vkCreateBufferCollectionFUCHSIA( vkGetDeviceProcAddr( device, "vkCreateBufferCollectionFUCHSIA" ) );
1687 vkSetBufferCollectionImageConstraintsFUCHSIA =
1688 PFN_vkSetBufferCollectionImageConstraintsFUCHSIA( vkGetDeviceProcAddr( device, "vkSetBufferCollectionImageConstraintsFUCHSIA" ) );
1689 vkSetBufferCollectionBufferConstraintsFUCHSIA =
1690 PFN_vkSetBufferCollectionBufferConstraintsFUCHSIA( vkGetDeviceProcAddr( device, "vkSetBufferCollectionBufferConstraintsFUCHSIA" ) );
1691 vkDestroyBufferCollectionFUCHSIA = PFN_vkDestroyBufferCollectionFUCHSIA( vkGetDeviceProcAddr( device, "vkDestroyBufferCollectionFUCHSIA" ) );
1692 vkGetBufferCollectionPropertiesFUCHSIA =
1693 PFN_vkGetBufferCollectionPropertiesFUCHSIA( vkGetDeviceProcAddr( device, "vkGetBufferCollectionPropertiesFUCHSIA" ) );
1694 # endif /*VK_USE_PLATFORM_FUCHSIA*/
1695
1696 //=== VK_HUAWEI_subpass_shading ===
1697 vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI =
1698 PFN_vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI( vkGetDeviceProcAddr( device, "vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI" ) );
1699 vkCmdSubpassShadingHUAWEI = PFN_vkCmdSubpassShadingHUAWEI( vkGetDeviceProcAddr( device, "vkCmdSubpassShadingHUAWEI" ) );
1700
1701 //=== VK_HUAWEI_invocation_mask ===
1702 vkCmdBindInvocationMaskHUAWEI = PFN_vkCmdBindInvocationMaskHUAWEI( vkGetDeviceProcAddr( device, "vkCmdBindInvocationMaskHUAWEI" ) );
1703
1704 //=== VK_NV_external_memory_rdma ===
1705 vkGetMemoryRemoteAddressNV = PFN_vkGetMemoryRemoteAddressNV( vkGetDeviceProcAddr( device, "vkGetMemoryRemoteAddressNV" ) );
1706
1707 //=== VK_EXT_pipeline_properties ===
1708 vkGetPipelinePropertiesEXT = PFN_vkGetPipelinePropertiesEXT( vkGetDeviceProcAddr( device, "vkGetPipelinePropertiesEXT" ) );
1709
1710 //=== VK_EXT_extended_dynamic_state2 ===
1711 vkCmdSetPatchControlPointsEXT = PFN_vkCmdSetPatchControlPointsEXT( vkGetDeviceProcAddr( device, "vkCmdSetPatchControlPointsEXT" ) );
1712 vkCmdSetRasterizerDiscardEnableEXT = PFN_vkCmdSetRasterizerDiscardEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetRasterizerDiscardEnableEXT" ) );
1713 if ( !vkCmdSetRasterizerDiscardEnable )
1714 vkCmdSetRasterizerDiscardEnable = vkCmdSetRasterizerDiscardEnableEXT;
1715 vkCmdSetDepthBiasEnableEXT = PFN_vkCmdSetDepthBiasEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthBiasEnableEXT" ) );
1716 if ( !vkCmdSetDepthBiasEnable )
1717 vkCmdSetDepthBiasEnable = vkCmdSetDepthBiasEnableEXT;
1718 vkCmdSetLogicOpEXT = PFN_vkCmdSetLogicOpEXT( vkGetDeviceProcAddr( device, "vkCmdSetLogicOpEXT" ) );
1719 vkCmdSetPrimitiveRestartEnableEXT = PFN_vkCmdSetPrimitiveRestartEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetPrimitiveRestartEnableEXT" ) );
1720 if ( !vkCmdSetPrimitiveRestartEnable )
1721 vkCmdSetPrimitiveRestartEnable = vkCmdSetPrimitiveRestartEnableEXT;
1722
1723 //=== VK_EXT_color_write_enable ===
1724 vkCmdSetColorWriteEnableEXT = PFN_vkCmdSetColorWriteEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetColorWriteEnableEXT" ) );
1725
1726 //=== VK_KHR_ray_tracing_maintenance1 ===
1727 vkCmdTraceRaysIndirect2KHR = PFN_vkCmdTraceRaysIndirect2KHR( vkGetDeviceProcAddr( device, "vkCmdTraceRaysIndirect2KHR" ) );
1728
1729 //=== VK_EXT_multi_draw ===
1730 vkCmdDrawMultiEXT = PFN_vkCmdDrawMultiEXT( vkGetDeviceProcAddr( device, "vkCmdDrawMultiEXT" ) );
1731 vkCmdDrawMultiIndexedEXT = PFN_vkCmdDrawMultiIndexedEXT( vkGetDeviceProcAddr( device, "vkCmdDrawMultiIndexedEXT" ) );
1732
1733 //=== VK_EXT_opacity_micromap ===
1734 vkCreateMicromapEXT = PFN_vkCreateMicromapEXT( vkGetDeviceProcAddr( device, "vkCreateMicromapEXT" ) );
1735 vkDestroyMicromapEXT = PFN_vkDestroyMicromapEXT( vkGetDeviceProcAddr( device, "vkDestroyMicromapEXT" ) );
1736 vkCmdBuildMicromapsEXT = PFN_vkCmdBuildMicromapsEXT( vkGetDeviceProcAddr( device, "vkCmdBuildMicromapsEXT" ) );
1737 vkBuildMicromapsEXT = PFN_vkBuildMicromapsEXT( vkGetDeviceProcAddr( device, "vkBuildMicromapsEXT" ) );
1738 vkCopyMicromapEXT = PFN_vkCopyMicromapEXT( vkGetDeviceProcAddr( device, "vkCopyMicromapEXT" ) );
1739 vkCopyMicromapToMemoryEXT = PFN_vkCopyMicromapToMemoryEXT( vkGetDeviceProcAddr( device, "vkCopyMicromapToMemoryEXT" ) );
1740 vkCopyMemoryToMicromapEXT = PFN_vkCopyMemoryToMicromapEXT( vkGetDeviceProcAddr( device, "vkCopyMemoryToMicromapEXT" ) );
1741 vkWriteMicromapsPropertiesEXT = PFN_vkWriteMicromapsPropertiesEXT( vkGetDeviceProcAddr( device, "vkWriteMicromapsPropertiesEXT" ) );
1742 vkCmdCopyMicromapEXT = PFN_vkCmdCopyMicromapEXT( vkGetDeviceProcAddr( device, "vkCmdCopyMicromapEXT" ) );
1743 vkCmdCopyMicromapToMemoryEXT = PFN_vkCmdCopyMicromapToMemoryEXT( vkGetDeviceProcAddr( device, "vkCmdCopyMicromapToMemoryEXT" ) );
1744 vkCmdCopyMemoryToMicromapEXT = PFN_vkCmdCopyMemoryToMicromapEXT( vkGetDeviceProcAddr( device, "vkCmdCopyMemoryToMicromapEXT" ) );
1745 vkCmdWriteMicromapsPropertiesEXT = PFN_vkCmdWriteMicromapsPropertiesEXT( vkGetDeviceProcAddr( device, "vkCmdWriteMicromapsPropertiesEXT" ) );
1746 vkGetDeviceMicromapCompatibilityEXT = PFN_vkGetDeviceMicromapCompatibilityEXT( vkGetDeviceProcAddr( device, "vkGetDeviceMicromapCompatibilityEXT" ) );
1747 vkGetMicromapBuildSizesEXT = PFN_vkGetMicromapBuildSizesEXT( vkGetDeviceProcAddr( device, "vkGetMicromapBuildSizesEXT" ) );
1748
1749 //=== VK_HUAWEI_cluster_culling_shader ===
1750 vkCmdDrawClusterHUAWEI = PFN_vkCmdDrawClusterHUAWEI( vkGetDeviceProcAddr( device, "vkCmdDrawClusterHUAWEI" ) );
1751 vkCmdDrawClusterIndirectHUAWEI = PFN_vkCmdDrawClusterIndirectHUAWEI( vkGetDeviceProcAddr( device, "vkCmdDrawClusterIndirectHUAWEI" ) );
1752
1753 //=== VK_EXT_pageable_device_local_memory ===
1754 vkSetDeviceMemoryPriorityEXT = PFN_vkSetDeviceMemoryPriorityEXT( vkGetDeviceProcAddr( device, "vkSetDeviceMemoryPriorityEXT" ) );
1755
1756 //=== VK_KHR_maintenance4 ===
1757 vkGetDeviceBufferMemoryRequirementsKHR =
1758 PFN_vkGetDeviceBufferMemoryRequirementsKHR( vkGetDeviceProcAddr( device, "vkGetDeviceBufferMemoryRequirementsKHR" ) );
1759 if ( !vkGetDeviceBufferMemoryRequirements )
1760 vkGetDeviceBufferMemoryRequirements = vkGetDeviceBufferMemoryRequirementsKHR;
1761 vkGetDeviceImageMemoryRequirementsKHR =
1762 PFN_vkGetDeviceImageMemoryRequirementsKHR( vkGetDeviceProcAddr( device, "vkGetDeviceImageMemoryRequirementsKHR" ) );
1763 if ( !vkGetDeviceImageMemoryRequirements )
1764 vkGetDeviceImageMemoryRequirements = vkGetDeviceImageMemoryRequirementsKHR;
1765 vkGetDeviceImageSparseMemoryRequirementsKHR =
1766 PFN_vkGetDeviceImageSparseMemoryRequirementsKHR( vkGetDeviceProcAddr( device, "vkGetDeviceImageSparseMemoryRequirementsKHR" ) );
1767 if ( !vkGetDeviceImageSparseMemoryRequirements )
1768 vkGetDeviceImageSparseMemoryRequirements = vkGetDeviceImageSparseMemoryRequirementsKHR;
1769
1770 //=== VK_VALVE_descriptor_set_host_mapping ===
1771 vkGetDescriptorSetLayoutHostMappingInfoVALVE =
1772 PFN_vkGetDescriptorSetLayoutHostMappingInfoVALVE( vkGetDeviceProcAddr( device, "vkGetDescriptorSetLayoutHostMappingInfoVALVE" ) );
1773 vkGetDescriptorSetHostMappingVALVE = PFN_vkGetDescriptorSetHostMappingVALVE( vkGetDeviceProcAddr( device, "vkGetDescriptorSetHostMappingVALVE" ) );
1774
1775 //=== VK_NV_copy_memory_indirect ===
1776 vkCmdCopyMemoryIndirectNV = PFN_vkCmdCopyMemoryIndirectNV( vkGetDeviceProcAddr( device, "vkCmdCopyMemoryIndirectNV" ) );
1777 vkCmdCopyMemoryToImageIndirectNV = PFN_vkCmdCopyMemoryToImageIndirectNV( vkGetDeviceProcAddr( device, "vkCmdCopyMemoryToImageIndirectNV" ) );
1778
1779 //=== VK_NV_memory_decompression ===
1780 vkCmdDecompressMemoryNV = PFN_vkCmdDecompressMemoryNV( vkGetDeviceProcAddr( device, "vkCmdDecompressMemoryNV" ) );
1781 vkCmdDecompressMemoryIndirectCountNV =
1782 PFN_vkCmdDecompressMemoryIndirectCountNV( vkGetDeviceProcAddr( device, "vkCmdDecompressMemoryIndirectCountNV" ) );
1783
1784 //=== VK_NV_device_generated_commands_compute ===
1785 vkGetPipelineIndirectMemoryRequirementsNV =
1786 PFN_vkGetPipelineIndirectMemoryRequirementsNV( vkGetDeviceProcAddr( device, "vkGetPipelineIndirectMemoryRequirementsNV" ) );
1787 vkCmdUpdatePipelineIndirectBufferNV = PFN_vkCmdUpdatePipelineIndirectBufferNV( vkGetDeviceProcAddr( device, "vkCmdUpdatePipelineIndirectBufferNV" ) );
1788 vkGetPipelineIndirectDeviceAddressNV =
1789 PFN_vkGetPipelineIndirectDeviceAddressNV( vkGetDeviceProcAddr( device, "vkGetPipelineIndirectDeviceAddressNV" ) );
1790
1791 # if defined( VK_USE_PLATFORM_OHOS )
1792 //=== VK_OHOS_external_memory ===
1793 vkGetNativeBufferPropertiesOHOS = PFN_vkGetNativeBufferPropertiesOHOS( vkGetDeviceProcAddr( device, "vkGetNativeBufferPropertiesOHOS" ) );
1794 vkGetMemoryNativeBufferOHOS = PFN_vkGetMemoryNativeBufferOHOS( vkGetDeviceProcAddr( device, "vkGetMemoryNativeBufferOHOS" ) );
1795 # endif /*VK_USE_PLATFORM_OHOS*/
1796
1797 //=== VK_EXT_extended_dynamic_state3 ===
1798 vkCmdSetDepthClampEnableEXT = PFN_vkCmdSetDepthClampEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthClampEnableEXT" ) );
1799 vkCmdSetPolygonModeEXT = PFN_vkCmdSetPolygonModeEXT( vkGetDeviceProcAddr( device, "vkCmdSetPolygonModeEXT" ) );
1800 vkCmdSetRasterizationSamplesEXT = PFN_vkCmdSetRasterizationSamplesEXT( vkGetDeviceProcAddr( device, "vkCmdSetRasterizationSamplesEXT" ) );
1801 vkCmdSetSampleMaskEXT = PFN_vkCmdSetSampleMaskEXT( vkGetDeviceProcAddr( device, "vkCmdSetSampleMaskEXT" ) );
1802 vkCmdSetAlphaToCoverageEnableEXT = PFN_vkCmdSetAlphaToCoverageEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetAlphaToCoverageEnableEXT" ) );
1803 vkCmdSetAlphaToOneEnableEXT = PFN_vkCmdSetAlphaToOneEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetAlphaToOneEnableEXT" ) );
1804 vkCmdSetLogicOpEnableEXT = PFN_vkCmdSetLogicOpEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetLogicOpEnableEXT" ) );
1805 vkCmdSetColorBlendEnableEXT = PFN_vkCmdSetColorBlendEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetColorBlendEnableEXT" ) );
1806 vkCmdSetColorBlendEquationEXT = PFN_vkCmdSetColorBlendEquationEXT( vkGetDeviceProcAddr( device, "vkCmdSetColorBlendEquationEXT" ) );
1807 vkCmdSetColorWriteMaskEXT = PFN_vkCmdSetColorWriteMaskEXT( vkGetDeviceProcAddr( device, "vkCmdSetColorWriteMaskEXT" ) );
1808 vkCmdSetTessellationDomainOriginEXT = PFN_vkCmdSetTessellationDomainOriginEXT( vkGetDeviceProcAddr( device, "vkCmdSetTessellationDomainOriginEXT" ) );
1809 vkCmdSetRasterizationStreamEXT = PFN_vkCmdSetRasterizationStreamEXT( vkGetDeviceProcAddr( device, "vkCmdSetRasterizationStreamEXT" ) );
1810 vkCmdSetConservativeRasterizationModeEXT =
1811 PFN_vkCmdSetConservativeRasterizationModeEXT( vkGetDeviceProcAddr( device, "vkCmdSetConservativeRasterizationModeEXT" ) );
1812 vkCmdSetExtraPrimitiveOverestimationSizeEXT =
1813 PFN_vkCmdSetExtraPrimitiveOverestimationSizeEXT( vkGetDeviceProcAddr( device, "vkCmdSetExtraPrimitiveOverestimationSizeEXT" ) );
1814 vkCmdSetDepthClipEnableEXT = PFN_vkCmdSetDepthClipEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthClipEnableEXT" ) );
1815 vkCmdSetSampleLocationsEnableEXT = PFN_vkCmdSetSampleLocationsEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetSampleLocationsEnableEXT" ) );
1816 vkCmdSetColorBlendAdvancedEXT = PFN_vkCmdSetColorBlendAdvancedEXT( vkGetDeviceProcAddr( device, "vkCmdSetColorBlendAdvancedEXT" ) );
1817 vkCmdSetProvokingVertexModeEXT = PFN_vkCmdSetProvokingVertexModeEXT( vkGetDeviceProcAddr( device, "vkCmdSetProvokingVertexModeEXT" ) );
1818 vkCmdSetLineRasterizationModeEXT = PFN_vkCmdSetLineRasterizationModeEXT( vkGetDeviceProcAddr( device, "vkCmdSetLineRasterizationModeEXT" ) );
1819 vkCmdSetLineStippleEnableEXT = PFN_vkCmdSetLineStippleEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetLineStippleEnableEXT" ) );
1820 vkCmdSetDepthClipNegativeOneToOneEXT =
1821 PFN_vkCmdSetDepthClipNegativeOneToOneEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthClipNegativeOneToOneEXT" ) );
1822 vkCmdSetViewportWScalingEnableNV = PFN_vkCmdSetViewportWScalingEnableNV( vkGetDeviceProcAddr( device, "vkCmdSetViewportWScalingEnableNV" ) );
1823 vkCmdSetViewportSwizzleNV = PFN_vkCmdSetViewportSwizzleNV( vkGetDeviceProcAddr( device, "vkCmdSetViewportSwizzleNV" ) );
1824 vkCmdSetCoverageToColorEnableNV = PFN_vkCmdSetCoverageToColorEnableNV( vkGetDeviceProcAddr( device, "vkCmdSetCoverageToColorEnableNV" ) );
1825 vkCmdSetCoverageToColorLocationNV = PFN_vkCmdSetCoverageToColorLocationNV( vkGetDeviceProcAddr( device, "vkCmdSetCoverageToColorLocationNV" ) );
1826 vkCmdSetCoverageModulationModeNV = PFN_vkCmdSetCoverageModulationModeNV( vkGetDeviceProcAddr( device, "vkCmdSetCoverageModulationModeNV" ) );
1827 vkCmdSetCoverageModulationTableEnableNV =
1828 PFN_vkCmdSetCoverageModulationTableEnableNV( vkGetDeviceProcAddr( device, "vkCmdSetCoverageModulationTableEnableNV" ) );
1829 vkCmdSetCoverageModulationTableNV = PFN_vkCmdSetCoverageModulationTableNV( vkGetDeviceProcAddr( device, "vkCmdSetCoverageModulationTableNV" ) );
1830 vkCmdSetShadingRateImageEnableNV = PFN_vkCmdSetShadingRateImageEnableNV( vkGetDeviceProcAddr( device, "vkCmdSetShadingRateImageEnableNV" ) );
1831 vkCmdSetRepresentativeFragmentTestEnableNV =
1832 PFN_vkCmdSetRepresentativeFragmentTestEnableNV( vkGetDeviceProcAddr( device, "vkCmdSetRepresentativeFragmentTestEnableNV" ) );
1833 vkCmdSetCoverageReductionModeNV = PFN_vkCmdSetCoverageReductionModeNV( vkGetDeviceProcAddr( device, "vkCmdSetCoverageReductionModeNV" ) );
1834
1835 //=== VK_ARM_tensors ===
1836 vkCreateTensorARM = PFN_vkCreateTensorARM( vkGetDeviceProcAddr( device, "vkCreateTensorARM" ) );
1837 vkDestroyTensorARM = PFN_vkDestroyTensorARM( vkGetDeviceProcAddr( device, "vkDestroyTensorARM" ) );
1838 vkCreateTensorViewARM = PFN_vkCreateTensorViewARM( vkGetDeviceProcAddr( device, "vkCreateTensorViewARM" ) );
1839 vkDestroyTensorViewARM = PFN_vkDestroyTensorViewARM( vkGetDeviceProcAddr( device, "vkDestroyTensorViewARM" ) );
1840 vkGetTensorMemoryRequirementsARM = PFN_vkGetTensorMemoryRequirementsARM( vkGetDeviceProcAddr( device, "vkGetTensorMemoryRequirementsARM" ) );
1841 vkBindTensorMemoryARM = PFN_vkBindTensorMemoryARM( vkGetDeviceProcAddr( device, "vkBindTensorMemoryARM" ) );
1842 vkGetDeviceTensorMemoryRequirementsARM =
1843 PFN_vkGetDeviceTensorMemoryRequirementsARM( vkGetDeviceProcAddr( device, "vkGetDeviceTensorMemoryRequirementsARM" ) );
1844 vkCmdCopyTensorARM = PFN_vkCmdCopyTensorARM( vkGetDeviceProcAddr( device, "vkCmdCopyTensorARM" ) );
1845 vkGetTensorOpaqueCaptureDescriptorDataARM =
1846 PFN_vkGetTensorOpaqueCaptureDescriptorDataARM( vkGetDeviceProcAddr( device, "vkGetTensorOpaqueCaptureDescriptorDataARM" ) );
1847 vkGetTensorViewOpaqueCaptureDescriptorDataARM =
1848 PFN_vkGetTensorViewOpaqueCaptureDescriptorDataARM( vkGetDeviceProcAddr( device, "vkGetTensorViewOpaqueCaptureDescriptorDataARM" ) );
1849
1850 //=== VK_EXT_shader_module_identifier ===
1851 vkGetShaderModuleIdentifierEXT = PFN_vkGetShaderModuleIdentifierEXT( vkGetDeviceProcAddr( device, "vkGetShaderModuleIdentifierEXT" ) );
1852 vkGetShaderModuleCreateInfoIdentifierEXT =
1853 PFN_vkGetShaderModuleCreateInfoIdentifierEXT( vkGetDeviceProcAddr( device, "vkGetShaderModuleCreateInfoIdentifierEXT" ) );
1854
1855 //=== VK_NV_optical_flow ===
1856 vkCreateOpticalFlowSessionNV = PFN_vkCreateOpticalFlowSessionNV( vkGetDeviceProcAddr( device, "vkCreateOpticalFlowSessionNV" ) );
1857 vkDestroyOpticalFlowSessionNV = PFN_vkDestroyOpticalFlowSessionNV( vkGetDeviceProcAddr( device, "vkDestroyOpticalFlowSessionNV" ) );
1858 vkBindOpticalFlowSessionImageNV = PFN_vkBindOpticalFlowSessionImageNV( vkGetDeviceProcAddr( device, "vkBindOpticalFlowSessionImageNV" ) );
1859 vkCmdOpticalFlowExecuteNV = PFN_vkCmdOpticalFlowExecuteNV( vkGetDeviceProcAddr( device, "vkCmdOpticalFlowExecuteNV" ) );
1860
1861 //=== VK_KHR_maintenance5 ===
1862 vkCmdBindIndexBuffer2KHR = PFN_vkCmdBindIndexBuffer2KHR( vkGetDeviceProcAddr( device, "vkCmdBindIndexBuffer2KHR" ) );
1863 if ( !vkCmdBindIndexBuffer2 )
1864 vkCmdBindIndexBuffer2 = vkCmdBindIndexBuffer2KHR;
1865 vkGetRenderingAreaGranularityKHR = PFN_vkGetRenderingAreaGranularityKHR( vkGetDeviceProcAddr( device, "vkGetRenderingAreaGranularityKHR" ) );
1866 if ( !vkGetRenderingAreaGranularity )
1867 vkGetRenderingAreaGranularity = vkGetRenderingAreaGranularityKHR;
1868 vkGetDeviceImageSubresourceLayoutKHR =
1869 PFN_vkGetDeviceImageSubresourceLayoutKHR( vkGetDeviceProcAddr( device, "vkGetDeviceImageSubresourceLayoutKHR" ) );
1870 if ( !vkGetDeviceImageSubresourceLayout )
1871 vkGetDeviceImageSubresourceLayout = vkGetDeviceImageSubresourceLayoutKHR;
1872 vkGetImageSubresourceLayout2KHR = PFN_vkGetImageSubresourceLayout2KHR( vkGetDeviceProcAddr( device, "vkGetImageSubresourceLayout2KHR" ) );
1873 if ( !vkGetImageSubresourceLayout2 )
1874 vkGetImageSubresourceLayout2 = vkGetImageSubresourceLayout2KHR;
1875
1876 //=== VK_AMD_anti_lag ===
1877 vkAntiLagUpdateAMD = PFN_vkAntiLagUpdateAMD( vkGetDeviceProcAddr( device, "vkAntiLagUpdateAMD" ) );
1878
1879 //=== VK_KHR_present_wait2 ===
1880 vkWaitForPresent2KHR = PFN_vkWaitForPresent2KHR( vkGetDeviceProcAddr( device, "vkWaitForPresent2KHR" ) );
1881
1882 //=== VK_EXT_shader_object ===
1883 vkCreateShadersEXT = PFN_vkCreateShadersEXT( vkGetDeviceProcAddr( device, "vkCreateShadersEXT" ) );
1884 vkDestroyShaderEXT = PFN_vkDestroyShaderEXT( vkGetDeviceProcAddr( device, "vkDestroyShaderEXT" ) );
1885 vkGetShaderBinaryDataEXT = PFN_vkGetShaderBinaryDataEXT( vkGetDeviceProcAddr( device, "vkGetShaderBinaryDataEXT" ) );
1886 vkCmdBindShadersEXT = PFN_vkCmdBindShadersEXT( vkGetDeviceProcAddr( device, "vkCmdBindShadersEXT" ) );
1887 vkCmdSetDepthClampRangeEXT = PFN_vkCmdSetDepthClampRangeEXT( vkGetDeviceProcAddr( device, "vkCmdSetDepthClampRangeEXT" ) );
1888
1889 //=== VK_KHR_pipeline_binary ===
1890 vkCreatePipelineBinariesKHR = PFN_vkCreatePipelineBinariesKHR( vkGetDeviceProcAddr( device, "vkCreatePipelineBinariesKHR" ) );
1891 vkDestroyPipelineBinaryKHR = PFN_vkDestroyPipelineBinaryKHR( vkGetDeviceProcAddr( device, "vkDestroyPipelineBinaryKHR" ) );
1892 vkGetPipelineKeyKHR = PFN_vkGetPipelineKeyKHR( vkGetDeviceProcAddr( device, "vkGetPipelineKeyKHR" ) );
1893 vkGetPipelineBinaryDataKHR = PFN_vkGetPipelineBinaryDataKHR( vkGetDeviceProcAddr( device, "vkGetPipelineBinaryDataKHR" ) );
1894 vkReleaseCapturedPipelineDataKHR = PFN_vkReleaseCapturedPipelineDataKHR( vkGetDeviceProcAddr( device, "vkReleaseCapturedPipelineDataKHR" ) );
1895
1896 //=== VK_QCOM_tile_properties ===
1897 vkGetFramebufferTilePropertiesQCOM = PFN_vkGetFramebufferTilePropertiesQCOM( vkGetDeviceProcAddr( device, "vkGetFramebufferTilePropertiesQCOM" ) );
1898 vkGetDynamicRenderingTilePropertiesQCOM =
1899 PFN_vkGetDynamicRenderingTilePropertiesQCOM( vkGetDeviceProcAddr( device, "vkGetDynamicRenderingTilePropertiesQCOM" ) );
1900
1901 //=== VK_KHR_swapchain_maintenance1 ===
1902 vkReleaseSwapchainImagesKHR = PFN_vkReleaseSwapchainImagesKHR( vkGetDeviceProcAddr( device, "vkReleaseSwapchainImagesKHR" ) );
1903
1904 //=== VK_NV_cooperative_vector ===
1905 vkConvertCooperativeVectorMatrixNV = PFN_vkConvertCooperativeVectorMatrixNV( vkGetDeviceProcAddr( device, "vkConvertCooperativeVectorMatrixNV" ) );
1906 vkCmdConvertCooperativeVectorMatrixNV =
1907 PFN_vkCmdConvertCooperativeVectorMatrixNV( vkGetDeviceProcAddr( device, "vkCmdConvertCooperativeVectorMatrixNV" ) );
1908
1909 //=== VK_NV_low_latency2 ===
1910 vkSetLatencySleepModeNV = PFN_vkSetLatencySleepModeNV( vkGetDeviceProcAddr( device, "vkSetLatencySleepModeNV" ) );
1911 vkLatencySleepNV = PFN_vkLatencySleepNV( vkGetDeviceProcAddr( device, "vkLatencySleepNV" ) );
1912 vkSetLatencyMarkerNV = PFN_vkSetLatencyMarkerNV( vkGetDeviceProcAddr( device, "vkSetLatencyMarkerNV" ) );
1913 vkGetLatencyTimingsNV = PFN_vkGetLatencyTimingsNV( vkGetDeviceProcAddr( device, "vkGetLatencyTimingsNV" ) );
1914 vkQueueNotifyOutOfBandNV = PFN_vkQueueNotifyOutOfBandNV( vkGetDeviceProcAddr( device, "vkQueueNotifyOutOfBandNV" ) );
1915
1916 //=== VK_ARM_data_graph ===
1917 vkCreateDataGraphPipelinesARM = PFN_vkCreateDataGraphPipelinesARM( vkGetDeviceProcAddr( device, "vkCreateDataGraphPipelinesARM" ) );
1918 vkCreateDataGraphPipelineSessionARM = PFN_vkCreateDataGraphPipelineSessionARM( vkGetDeviceProcAddr( device, "vkCreateDataGraphPipelineSessionARM" ) );
1919 vkGetDataGraphPipelineSessionBindPointRequirementsARM =
1920 PFN_vkGetDataGraphPipelineSessionBindPointRequirementsARM( vkGetDeviceProcAddr( device, "vkGetDataGraphPipelineSessionBindPointRequirementsARM" ) );
1921 vkGetDataGraphPipelineSessionMemoryRequirementsARM =
1922 PFN_vkGetDataGraphPipelineSessionMemoryRequirementsARM( vkGetDeviceProcAddr( device, "vkGetDataGraphPipelineSessionMemoryRequirementsARM" ) );
1923 vkBindDataGraphPipelineSessionMemoryARM =
1924 PFN_vkBindDataGraphPipelineSessionMemoryARM( vkGetDeviceProcAddr( device, "vkBindDataGraphPipelineSessionMemoryARM" ) );
1925 vkDestroyDataGraphPipelineSessionARM =
1926 PFN_vkDestroyDataGraphPipelineSessionARM( vkGetDeviceProcAddr( device, "vkDestroyDataGraphPipelineSessionARM" ) );
1927 vkCmdDispatchDataGraphARM = PFN_vkCmdDispatchDataGraphARM( vkGetDeviceProcAddr( device, "vkCmdDispatchDataGraphARM" ) );
1928 vkGetDataGraphPipelineAvailablePropertiesARM =
1929 PFN_vkGetDataGraphPipelineAvailablePropertiesARM( vkGetDeviceProcAddr( device, "vkGetDataGraphPipelineAvailablePropertiesARM" ) );
1930 vkGetDataGraphPipelinePropertiesARM = PFN_vkGetDataGraphPipelinePropertiesARM( vkGetDeviceProcAddr( device, "vkGetDataGraphPipelinePropertiesARM" ) );
1931
1932 //=== VK_EXT_attachment_feedback_loop_dynamic_state ===
1933 vkCmdSetAttachmentFeedbackLoopEnableEXT =
1934 PFN_vkCmdSetAttachmentFeedbackLoopEnableEXT( vkGetDeviceProcAddr( device, "vkCmdSetAttachmentFeedbackLoopEnableEXT" ) );
1935
1936 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
1937 //=== VK_QNX_external_memory_screen_buffer ===
1938 vkGetScreenBufferPropertiesQNX = PFN_vkGetScreenBufferPropertiesQNX( vkGetDeviceProcAddr( device, "vkGetScreenBufferPropertiesQNX" ) );
1939 # endif /*VK_USE_PLATFORM_SCREEN_QNX*/
1940
1941 //=== VK_KHR_line_rasterization ===
1942 vkCmdSetLineStippleKHR = PFN_vkCmdSetLineStippleKHR( vkGetDeviceProcAddr( device, "vkCmdSetLineStippleKHR" ) );
1943 if ( !vkCmdSetLineStipple )
1944 vkCmdSetLineStipple = vkCmdSetLineStippleKHR;
1945
1946 //=== VK_KHR_calibrated_timestamps ===
1947 vkGetCalibratedTimestampsKHR = PFN_vkGetCalibratedTimestampsKHR( vkGetDeviceProcAddr( device, "vkGetCalibratedTimestampsKHR" ) );
1948
1949 //=== VK_KHR_maintenance6 ===
1950 vkCmdBindDescriptorSets2KHR = PFN_vkCmdBindDescriptorSets2KHR( vkGetDeviceProcAddr( device, "vkCmdBindDescriptorSets2KHR" ) );
1951 if ( !vkCmdBindDescriptorSets2 )
1952 vkCmdBindDescriptorSets2 = vkCmdBindDescriptorSets2KHR;
1953 vkCmdPushConstants2KHR = PFN_vkCmdPushConstants2KHR( vkGetDeviceProcAddr( device, "vkCmdPushConstants2KHR" ) );
1954 if ( !vkCmdPushConstants2 )
1955 vkCmdPushConstants2 = vkCmdPushConstants2KHR;
1956 vkCmdPushDescriptorSet2KHR = PFN_vkCmdPushDescriptorSet2KHR( vkGetDeviceProcAddr( device, "vkCmdPushDescriptorSet2KHR" ) );
1957 if ( !vkCmdPushDescriptorSet2 )
1958 vkCmdPushDescriptorSet2 = vkCmdPushDescriptorSet2KHR;
1959 vkCmdPushDescriptorSetWithTemplate2KHR =
1960 PFN_vkCmdPushDescriptorSetWithTemplate2KHR( vkGetDeviceProcAddr( device, "vkCmdPushDescriptorSetWithTemplate2KHR" ) );
1961 if ( !vkCmdPushDescriptorSetWithTemplate2 )
1962 vkCmdPushDescriptorSetWithTemplate2 = vkCmdPushDescriptorSetWithTemplate2KHR;
1963 vkCmdSetDescriptorBufferOffsets2EXT = PFN_vkCmdSetDescriptorBufferOffsets2EXT( vkGetDeviceProcAddr( device, "vkCmdSetDescriptorBufferOffsets2EXT" ) );
1964 vkCmdBindDescriptorBufferEmbeddedSamplers2EXT =
1965 PFN_vkCmdBindDescriptorBufferEmbeddedSamplers2EXT( vkGetDeviceProcAddr( device, "vkCmdBindDescriptorBufferEmbeddedSamplers2EXT" ) );
1966
1967 //=== VK_QCOM_tile_memory_heap ===
1968 vkCmdBindTileMemoryQCOM = PFN_vkCmdBindTileMemoryQCOM( vkGetDeviceProcAddr( device, "vkCmdBindTileMemoryQCOM" ) );
1969
1970 //=== VK_KHR_copy_memory_indirect ===
1971 vkCmdCopyMemoryIndirectKHR = PFN_vkCmdCopyMemoryIndirectKHR( vkGetDeviceProcAddr( device, "vkCmdCopyMemoryIndirectKHR" ) );
1972 vkCmdCopyMemoryToImageIndirectKHR = PFN_vkCmdCopyMemoryToImageIndirectKHR( vkGetDeviceProcAddr( device, "vkCmdCopyMemoryToImageIndirectKHR" ) );
1973
1974 //=== VK_EXT_memory_decompression ===
1975 vkCmdDecompressMemoryEXT = PFN_vkCmdDecompressMemoryEXT( vkGetDeviceProcAddr( device, "vkCmdDecompressMemoryEXT" ) );
1976 vkCmdDecompressMemoryIndirectCountEXT =
1977 PFN_vkCmdDecompressMemoryIndirectCountEXT( vkGetDeviceProcAddr( device, "vkCmdDecompressMemoryIndirectCountEXT" ) );
1978
1979 //=== VK_NV_external_compute_queue ===
1980 vkCreateExternalComputeQueueNV = PFN_vkCreateExternalComputeQueueNV( vkGetDeviceProcAddr( device, "vkCreateExternalComputeQueueNV" ) );
1981 vkDestroyExternalComputeQueueNV = PFN_vkDestroyExternalComputeQueueNV( vkGetDeviceProcAddr( device, "vkDestroyExternalComputeQueueNV" ) );
1982 vkGetExternalComputeQueueDataNV = PFN_vkGetExternalComputeQueueDataNV( vkGetDeviceProcAddr( device, "vkGetExternalComputeQueueDataNV" ) );
1983
1984 //=== VK_NV_cluster_acceleration_structure ===
1985 vkGetClusterAccelerationStructureBuildSizesNV =
1986 PFN_vkGetClusterAccelerationStructureBuildSizesNV( vkGetDeviceProcAddr( device, "vkGetClusterAccelerationStructureBuildSizesNV" ) );
1987 vkCmdBuildClusterAccelerationStructureIndirectNV =
1988 PFN_vkCmdBuildClusterAccelerationStructureIndirectNV( vkGetDeviceProcAddr( device, "vkCmdBuildClusterAccelerationStructureIndirectNV" ) );
1989
1990 //=== VK_NV_partitioned_acceleration_structure ===
1991 vkGetPartitionedAccelerationStructuresBuildSizesNV =
1992 PFN_vkGetPartitionedAccelerationStructuresBuildSizesNV( vkGetDeviceProcAddr( device, "vkGetPartitionedAccelerationStructuresBuildSizesNV" ) );
1993 vkCmdBuildPartitionedAccelerationStructuresNV =
1994 PFN_vkCmdBuildPartitionedAccelerationStructuresNV( vkGetDeviceProcAddr( device, "vkCmdBuildPartitionedAccelerationStructuresNV" ) );
1995
1996 //=== VK_EXT_device_generated_commands ===
1997 vkGetGeneratedCommandsMemoryRequirementsEXT =
1998 PFN_vkGetGeneratedCommandsMemoryRequirementsEXT( vkGetDeviceProcAddr( device, "vkGetGeneratedCommandsMemoryRequirementsEXT" ) );
1999 vkCmdPreprocessGeneratedCommandsEXT = PFN_vkCmdPreprocessGeneratedCommandsEXT( vkGetDeviceProcAddr( device, "vkCmdPreprocessGeneratedCommandsEXT" ) );
2000 vkCmdExecuteGeneratedCommandsEXT = PFN_vkCmdExecuteGeneratedCommandsEXT( vkGetDeviceProcAddr( device, "vkCmdExecuteGeneratedCommandsEXT" ) );
2001 vkCreateIndirectCommandsLayoutEXT = PFN_vkCreateIndirectCommandsLayoutEXT( vkGetDeviceProcAddr( device, "vkCreateIndirectCommandsLayoutEXT" ) );
2002 vkDestroyIndirectCommandsLayoutEXT = PFN_vkDestroyIndirectCommandsLayoutEXT( vkGetDeviceProcAddr( device, "vkDestroyIndirectCommandsLayoutEXT" ) );
2003 vkCreateIndirectExecutionSetEXT = PFN_vkCreateIndirectExecutionSetEXT( vkGetDeviceProcAddr( device, "vkCreateIndirectExecutionSetEXT" ) );
2004 vkDestroyIndirectExecutionSetEXT = PFN_vkDestroyIndirectExecutionSetEXT( vkGetDeviceProcAddr( device, "vkDestroyIndirectExecutionSetEXT" ) );
2005 vkUpdateIndirectExecutionSetPipelineEXT =
2006 PFN_vkUpdateIndirectExecutionSetPipelineEXT( vkGetDeviceProcAddr( device, "vkUpdateIndirectExecutionSetPipelineEXT" ) );
2007 vkUpdateIndirectExecutionSetShaderEXT =
2008 PFN_vkUpdateIndirectExecutionSetShaderEXT( vkGetDeviceProcAddr( device, "vkUpdateIndirectExecutionSetShaderEXT" ) );
2009
2010 # if defined( VK_USE_PLATFORM_METAL_EXT )
2011 //=== VK_EXT_external_memory_metal ===
2012 vkGetMemoryMetalHandleEXT = PFN_vkGetMemoryMetalHandleEXT( vkGetDeviceProcAddr( device, "vkGetMemoryMetalHandleEXT" ) );
2013 vkGetMemoryMetalHandlePropertiesEXT = PFN_vkGetMemoryMetalHandlePropertiesEXT( vkGetDeviceProcAddr( device, "vkGetMemoryMetalHandlePropertiesEXT" ) );
2014 # endif /*VK_USE_PLATFORM_METAL_EXT*/
2015
2016 //=== VK_ARM_shader_instrumentation ===
2017 vkCreateShaderInstrumentationARM = PFN_vkCreateShaderInstrumentationARM( vkGetDeviceProcAddr( device, "vkCreateShaderInstrumentationARM" ) );
2018 vkDestroyShaderInstrumentationARM = PFN_vkDestroyShaderInstrumentationARM( vkGetDeviceProcAddr( device, "vkDestroyShaderInstrumentationARM" ) );
2019 vkCmdBeginShaderInstrumentationARM = PFN_vkCmdBeginShaderInstrumentationARM( vkGetDeviceProcAddr( device, "vkCmdBeginShaderInstrumentationARM" ) );
2020 vkCmdEndShaderInstrumentationARM = PFN_vkCmdEndShaderInstrumentationARM( vkGetDeviceProcAddr( device, "vkCmdEndShaderInstrumentationARM" ) );
2021 vkGetShaderInstrumentationValuesARM = PFN_vkGetShaderInstrumentationValuesARM( vkGetDeviceProcAddr( device, "vkGetShaderInstrumentationValuesARM" ) );
2022 vkClearShaderInstrumentationMetricsARM =
2023 PFN_vkClearShaderInstrumentationMetricsARM( vkGetDeviceProcAddr( device, "vkClearShaderInstrumentationMetricsARM" ) );
2024
2025 //=== VK_EXT_fragment_density_map_offset ===
2026 vkCmdEndRendering2EXT = PFN_vkCmdEndRendering2EXT( vkGetDeviceProcAddr( device, "vkCmdEndRendering2EXT" ) );
2027 if ( !vkCmdEndRendering2KHR )
2028 vkCmdEndRendering2KHR = vkCmdEndRendering2EXT;
2029
2030 //=== VK_EXT_custom_resolve ===
2031 vkCmdBeginCustomResolveEXT = PFN_vkCmdBeginCustomResolveEXT( vkGetDeviceProcAddr( device, "vkCmdBeginCustomResolveEXT" ) );
2032
2033 //=== VK_KHR_maintenance10 ===
2034 vkCmdEndRendering2KHR = PFN_vkCmdEndRendering2KHR( vkGetDeviceProcAddr( device, "vkCmdEndRendering2KHR" ) );
2035
2036 //=== VK_NV_compute_occupancy_priority ===
2037 vkCmdSetComputeOccupancyPriorityNV = PFN_vkCmdSetComputeOccupancyPriorityNV( vkGetDeviceProcAddr( device, "vkCmdSetComputeOccupancyPriorityNV" ) );
2038 }
2039
2040 public:
2041 //=== VK_VERSION_1_0 ===
2042 PFN_vkGetDeviceProcAddr vkGetDeviceProcAddr = 0;
2043 PFN_vkDestroyDevice vkDestroyDevice = 0;
2044 PFN_vkGetDeviceQueue vkGetDeviceQueue = 0;
2045 PFN_vkQueueSubmit vkQueueSubmit = 0;
2046 PFN_vkQueueWaitIdle vkQueueWaitIdle = 0;
2047 PFN_vkDeviceWaitIdle vkDeviceWaitIdle = 0;
2048 PFN_vkAllocateMemory vkAllocateMemory = 0;
2049 PFN_vkFreeMemory vkFreeMemory = 0;
2050 PFN_vkMapMemory vkMapMemory = 0;
2051 PFN_vkUnmapMemory vkUnmapMemory = 0;
2052 PFN_vkFlushMappedMemoryRanges vkFlushMappedMemoryRanges = 0;
2053 PFN_vkInvalidateMappedMemoryRanges vkInvalidateMappedMemoryRanges = 0;
2054 PFN_vkGetDeviceMemoryCommitment vkGetDeviceMemoryCommitment = 0;
2055 PFN_vkBindBufferMemory vkBindBufferMemory = 0;
2056 PFN_vkBindImageMemory vkBindImageMemory = 0;
2057 PFN_vkGetBufferMemoryRequirements vkGetBufferMemoryRequirements = 0;
2058 PFN_vkGetImageMemoryRequirements vkGetImageMemoryRequirements = 0;
2059 PFN_vkGetImageSparseMemoryRequirements vkGetImageSparseMemoryRequirements = 0;
2060 PFN_vkQueueBindSparse vkQueueBindSparse = 0;
2061 PFN_vkCreateFence vkCreateFence = 0;
2062 PFN_vkDestroyFence vkDestroyFence = 0;
2063 PFN_vkResetFences vkResetFences = 0;
2064 PFN_vkGetFenceStatus vkGetFenceStatus = 0;
2065 PFN_vkWaitForFences vkWaitForFences = 0;
2066 PFN_vkCreateSemaphore vkCreateSemaphore = 0;
2067 PFN_vkDestroySemaphore vkDestroySemaphore = 0;
2068 PFN_vkCreateQueryPool vkCreateQueryPool = 0;
2069 PFN_vkDestroyQueryPool vkDestroyQueryPool = 0;
2070 PFN_vkGetQueryPoolResults vkGetQueryPoolResults = 0;
2071 PFN_vkCreateBuffer vkCreateBuffer = 0;
2072 PFN_vkDestroyBuffer vkDestroyBuffer = 0;
2073 PFN_vkCreateImage vkCreateImage = 0;
2074 PFN_vkDestroyImage vkDestroyImage = 0;
2075 PFN_vkGetImageSubresourceLayout vkGetImageSubresourceLayout = 0;
2076 PFN_vkCreateImageView vkCreateImageView = 0;
2077 PFN_vkDestroyImageView vkDestroyImageView = 0;
2078 PFN_vkCreateCommandPool vkCreateCommandPool = 0;
2079 PFN_vkDestroyCommandPool vkDestroyCommandPool = 0;
2080 PFN_vkResetCommandPool vkResetCommandPool = 0;
2081 PFN_vkAllocateCommandBuffers vkAllocateCommandBuffers = 0;
2082 PFN_vkFreeCommandBuffers vkFreeCommandBuffers = 0;
2083 PFN_vkBeginCommandBuffer vkBeginCommandBuffer = 0;
2084 PFN_vkEndCommandBuffer vkEndCommandBuffer = 0;
2085 PFN_vkResetCommandBuffer vkResetCommandBuffer = 0;
2086 PFN_vkCmdCopyBuffer vkCmdCopyBuffer = 0;
2087 PFN_vkCmdCopyImage vkCmdCopyImage = 0;
2088 PFN_vkCmdCopyBufferToImage vkCmdCopyBufferToImage = 0;
2089 PFN_vkCmdCopyImageToBuffer vkCmdCopyImageToBuffer = 0;
2090 PFN_vkCmdUpdateBuffer vkCmdUpdateBuffer = 0;
2091 PFN_vkCmdFillBuffer vkCmdFillBuffer = 0;
2092 PFN_vkCmdPipelineBarrier vkCmdPipelineBarrier = 0;
2093 PFN_vkCmdBeginQuery vkCmdBeginQuery = 0;
2094 PFN_vkCmdEndQuery vkCmdEndQuery = 0;
2095 PFN_vkCmdResetQueryPool vkCmdResetQueryPool = 0;
2096 PFN_vkCmdWriteTimestamp vkCmdWriteTimestamp = 0;
2097 PFN_vkCmdCopyQueryPoolResults vkCmdCopyQueryPoolResults = 0;
2098 PFN_vkCmdExecuteCommands vkCmdExecuteCommands = 0;
2099 PFN_vkCreateEvent vkCreateEvent = 0;
2100 PFN_vkDestroyEvent vkDestroyEvent = 0;
2101 PFN_vkGetEventStatus vkGetEventStatus = 0;
2102 PFN_vkSetEvent vkSetEvent = 0;
2103 PFN_vkResetEvent vkResetEvent = 0;
2104 PFN_vkCreateBufferView vkCreateBufferView = 0;
2105 PFN_vkDestroyBufferView vkDestroyBufferView = 0;
2106 PFN_vkCreateShaderModule vkCreateShaderModule = 0;
2107 PFN_vkDestroyShaderModule vkDestroyShaderModule = 0;
2108 PFN_vkCreatePipelineCache vkCreatePipelineCache = 0;
2109 PFN_vkDestroyPipelineCache vkDestroyPipelineCache = 0;
2110 PFN_vkGetPipelineCacheData vkGetPipelineCacheData = 0;
2111 PFN_vkMergePipelineCaches vkMergePipelineCaches = 0;
2112 PFN_vkCreateComputePipelines vkCreateComputePipelines = 0;
2113 PFN_vkDestroyPipeline vkDestroyPipeline = 0;
2114 PFN_vkCreatePipelineLayout vkCreatePipelineLayout = 0;
2115 PFN_vkDestroyPipelineLayout vkDestroyPipelineLayout = 0;
2116 PFN_vkCreateSampler vkCreateSampler = 0;
2117 PFN_vkDestroySampler vkDestroySampler = 0;
2118 PFN_vkCreateDescriptorSetLayout vkCreateDescriptorSetLayout = 0;
2119 PFN_vkDestroyDescriptorSetLayout vkDestroyDescriptorSetLayout = 0;
2120 PFN_vkCreateDescriptorPool vkCreateDescriptorPool = 0;
2121 PFN_vkDestroyDescriptorPool vkDestroyDescriptorPool = 0;
2122 PFN_vkResetDescriptorPool vkResetDescriptorPool = 0;
2123 PFN_vkAllocateDescriptorSets vkAllocateDescriptorSets = 0;
2124 PFN_vkFreeDescriptorSets vkFreeDescriptorSets = 0;
2125 PFN_vkUpdateDescriptorSets vkUpdateDescriptorSets = 0;
2126 PFN_vkCmdBindPipeline vkCmdBindPipeline = 0;
2127 PFN_vkCmdBindDescriptorSets vkCmdBindDescriptorSets = 0;
2128 PFN_vkCmdClearColorImage vkCmdClearColorImage = 0;
2129 PFN_vkCmdDispatch vkCmdDispatch = 0;
2130 PFN_vkCmdDispatchIndirect vkCmdDispatchIndirect = 0;
2131 PFN_vkCmdSetEvent vkCmdSetEvent = 0;
2132 PFN_vkCmdResetEvent vkCmdResetEvent = 0;
2133 PFN_vkCmdWaitEvents vkCmdWaitEvents = 0;
2134 PFN_vkCmdPushConstants vkCmdPushConstants = 0;
2135 PFN_vkCreateGraphicsPipelines vkCreateGraphicsPipelines = 0;
2136 PFN_vkCreateFramebuffer vkCreateFramebuffer = 0;
2137 PFN_vkDestroyFramebuffer vkDestroyFramebuffer = 0;
2138 PFN_vkCreateRenderPass vkCreateRenderPass = 0;
2139 PFN_vkDestroyRenderPass vkDestroyRenderPass = 0;
2140 PFN_vkGetRenderAreaGranularity vkGetRenderAreaGranularity = 0;
2141 PFN_vkCmdSetViewport vkCmdSetViewport = 0;
2142 PFN_vkCmdSetScissor vkCmdSetScissor = 0;
2143 PFN_vkCmdSetLineWidth vkCmdSetLineWidth = 0;
2144 PFN_vkCmdSetDepthBias vkCmdSetDepthBias = 0;
2145 PFN_vkCmdSetBlendConstants vkCmdSetBlendConstants = 0;
2146 PFN_vkCmdSetDepthBounds vkCmdSetDepthBounds = 0;
2147 PFN_vkCmdSetStencilCompareMask vkCmdSetStencilCompareMask = 0;
2148 PFN_vkCmdSetStencilWriteMask vkCmdSetStencilWriteMask = 0;
2149 PFN_vkCmdSetStencilReference vkCmdSetStencilReference = 0;
2150 PFN_vkCmdBindIndexBuffer vkCmdBindIndexBuffer = 0;
2151 PFN_vkCmdBindVertexBuffers vkCmdBindVertexBuffers = 0;
2152 PFN_vkCmdDraw vkCmdDraw = 0;
2153 PFN_vkCmdDrawIndexed vkCmdDrawIndexed = 0;
2154 PFN_vkCmdDrawIndirect vkCmdDrawIndirect = 0;
2155 PFN_vkCmdDrawIndexedIndirect vkCmdDrawIndexedIndirect = 0;
2156 PFN_vkCmdBlitImage vkCmdBlitImage = 0;
2157 PFN_vkCmdClearDepthStencilImage vkCmdClearDepthStencilImage = 0;
2158 PFN_vkCmdClearAttachments vkCmdClearAttachments = 0;
2159 PFN_vkCmdResolveImage vkCmdResolveImage = 0;
2160 PFN_vkCmdBeginRenderPass vkCmdBeginRenderPass = 0;
2161 PFN_vkCmdNextSubpass vkCmdNextSubpass = 0;
2162 PFN_vkCmdEndRenderPass vkCmdEndRenderPass = 0;
2163
2164 //=== VK_VERSION_1_1 ===
2165 PFN_vkBindBufferMemory2 vkBindBufferMemory2 = 0;
2166 PFN_vkBindImageMemory2 vkBindImageMemory2 = 0;
2167 PFN_vkGetDeviceGroupPeerMemoryFeatures vkGetDeviceGroupPeerMemoryFeatures = 0;
2168 PFN_vkCmdSetDeviceMask vkCmdSetDeviceMask = 0;
2169 PFN_vkGetImageMemoryRequirements2 vkGetImageMemoryRequirements2 = 0;
2170 PFN_vkGetBufferMemoryRequirements2 vkGetBufferMemoryRequirements2 = 0;
2171 PFN_vkGetImageSparseMemoryRequirements2 vkGetImageSparseMemoryRequirements2 = 0;
2172 PFN_vkTrimCommandPool vkTrimCommandPool = 0;
2173 PFN_vkGetDeviceQueue2 vkGetDeviceQueue2 = 0;
2174 PFN_vkCmdDispatchBase vkCmdDispatchBase = 0;
2175 PFN_vkCreateDescriptorUpdateTemplate vkCreateDescriptorUpdateTemplate = 0;
2176 PFN_vkDestroyDescriptorUpdateTemplate vkDestroyDescriptorUpdateTemplate = 0;
2177 PFN_vkUpdateDescriptorSetWithTemplate vkUpdateDescriptorSetWithTemplate = 0;
2178 PFN_vkGetDescriptorSetLayoutSupport vkGetDescriptorSetLayoutSupport = 0;
2179 PFN_vkCreateSamplerYcbcrConversion vkCreateSamplerYcbcrConversion = 0;
2180 PFN_vkDestroySamplerYcbcrConversion vkDestroySamplerYcbcrConversion = 0;
2181
2182 //=== VK_VERSION_1_2 ===
2183 PFN_vkResetQueryPool vkResetQueryPool = 0;
2184 PFN_vkGetSemaphoreCounterValue vkGetSemaphoreCounterValue = 0;
2185 PFN_vkWaitSemaphores vkWaitSemaphores = 0;
2186 PFN_vkSignalSemaphore vkSignalSemaphore = 0;
2187 PFN_vkGetBufferDeviceAddress vkGetBufferDeviceAddress = 0;
2188 PFN_vkGetBufferOpaqueCaptureAddress vkGetBufferOpaqueCaptureAddress = 0;
2189 PFN_vkGetDeviceMemoryOpaqueCaptureAddress vkGetDeviceMemoryOpaqueCaptureAddress = 0;
2190 PFN_vkCmdDrawIndirectCount vkCmdDrawIndirectCount = 0;
2191 PFN_vkCmdDrawIndexedIndirectCount vkCmdDrawIndexedIndirectCount = 0;
2192 PFN_vkCreateRenderPass2 vkCreateRenderPass2 = 0;
2193 PFN_vkCmdBeginRenderPass2 vkCmdBeginRenderPass2 = 0;
2194 PFN_vkCmdNextSubpass2 vkCmdNextSubpass2 = 0;
2195 PFN_vkCmdEndRenderPass2 vkCmdEndRenderPass2 = 0;
2196
2197 //=== VK_VERSION_1_3 ===
2198 PFN_vkCreatePrivateDataSlot vkCreatePrivateDataSlot = 0;
2199 PFN_vkDestroyPrivateDataSlot vkDestroyPrivateDataSlot = 0;
2200 PFN_vkSetPrivateData vkSetPrivateData = 0;
2201 PFN_vkGetPrivateData vkGetPrivateData = 0;
2202 PFN_vkCmdPipelineBarrier2 vkCmdPipelineBarrier2 = 0;
2203 PFN_vkCmdWriteTimestamp2 vkCmdWriteTimestamp2 = 0;
2204 PFN_vkQueueSubmit2 vkQueueSubmit2 = 0;
2205 PFN_vkCmdCopyBuffer2 vkCmdCopyBuffer2 = 0;
2206 PFN_vkCmdCopyImage2 vkCmdCopyImage2 = 0;
2207 PFN_vkCmdCopyBufferToImage2 vkCmdCopyBufferToImage2 = 0;
2208 PFN_vkCmdCopyImageToBuffer2 vkCmdCopyImageToBuffer2 = 0;
2209 PFN_vkGetDeviceBufferMemoryRequirements vkGetDeviceBufferMemoryRequirements = 0;
2210 PFN_vkGetDeviceImageMemoryRequirements vkGetDeviceImageMemoryRequirements = 0;
2211 PFN_vkGetDeviceImageSparseMemoryRequirements vkGetDeviceImageSparseMemoryRequirements = 0;
2212 PFN_vkCmdSetEvent2 vkCmdSetEvent2 = 0;
2213 PFN_vkCmdResetEvent2 vkCmdResetEvent2 = 0;
2214 PFN_vkCmdWaitEvents2 vkCmdWaitEvents2 = 0;
2215 PFN_vkCmdBlitImage2 vkCmdBlitImage2 = 0;
2216 PFN_vkCmdResolveImage2 vkCmdResolveImage2 = 0;
2217 PFN_vkCmdBeginRendering vkCmdBeginRendering = 0;
2218 PFN_vkCmdEndRendering vkCmdEndRendering = 0;
2219 PFN_vkCmdSetCullMode vkCmdSetCullMode = 0;
2220 PFN_vkCmdSetFrontFace vkCmdSetFrontFace = 0;
2221 PFN_vkCmdSetPrimitiveTopology vkCmdSetPrimitiveTopology = 0;
2222 PFN_vkCmdSetViewportWithCount vkCmdSetViewportWithCount = 0;
2223 PFN_vkCmdSetScissorWithCount vkCmdSetScissorWithCount = 0;
2224 PFN_vkCmdBindVertexBuffers2 vkCmdBindVertexBuffers2 = 0;
2225 PFN_vkCmdSetDepthTestEnable vkCmdSetDepthTestEnable = 0;
2226 PFN_vkCmdSetDepthWriteEnable vkCmdSetDepthWriteEnable = 0;
2227 PFN_vkCmdSetDepthCompareOp vkCmdSetDepthCompareOp = 0;
2228 PFN_vkCmdSetDepthBoundsTestEnable vkCmdSetDepthBoundsTestEnable = 0;
2229 PFN_vkCmdSetStencilTestEnable vkCmdSetStencilTestEnable = 0;
2230 PFN_vkCmdSetStencilOp vkCmdSetStencilOp = 0;
2231 PFN_vkCmdSetRasterizerDiscardEnable vkCmdSetRasterizerDiscardEnable = 0;
2232 PFN_vkCmdSetDepthBiasEnable vkCmdSetDepthBiasEnable = 0;
2233 PFN_vkCmdSetPrimitiveRestartEnable vkCmdSetPrimitiveRestartEnable = 0;
2234
2235 //=== VK_VERSION_1_4 ===
2236 PFN_vkMapMemory2 vkMapMemory2 = 0;
2237 PFN_vkUnmapMemory2 vkUnmapMemory2 = 0;
2238 PFN_vkGetDeviceImageSubresourceLayout vkGetDeviceImageSubresourceLayout = 0;
2239 PFN_vkGetImageSubresourceLayout2 vkGetImageSubresourceLayout2 = 0;
2240 PFN_vkCopyMemoryToImage vkCopyMemoryToImage = 0;
2241 PFN_vkCopyImageToMemory vkCopyImageToMemory = 0;
2242 PFN_vkCopyImageToImage vkCopyImageToImage = 0;
2243 PFN_vkTransitionImageLayout vkTransitionImageLayout = 0;
2244 PFN_vkCmdPushDescriptorSet vkCmdPushDescriptorSet = 0;
2245 PFN_vkCmdPushDescriptorSetWithTemplate vkCmdPushDescriptorSetWithTemplate = 0;
2246 PFN_vkCmdBindDescriptorSets2 vkCmdBindDescriptorSets2 = 0;
2247 PFN_vkCmdPushConstants2 vkCmdPushConstants2 = 0;
2248 PFN_vkCmdPushDescriptorSet2 vkCmdPushDescriptorSet2 = 0;
2249 PFN_vkCmdPushDescriptorSetWithTemplate2 vkCmdPushDescriptorSetWithTemplate2 = 0;
2250 PFN_vkCmdSetLineStipple vkCmdSetLineStipple = 0;
2251 PFN_vkCmdBindIndexBuffer2 vkCmdBindIndexBuffer2 = 0;
2252 PFN_vkGetRenderingAreaGranularity vkGetRenderingAreaGranularity = 0;
2253 PFN_vkCmdSetRenderingAttachmentLocations vkCmdSetRenderingAttachmentLocations = 0;
2254 PFN_vkCmdSetRenderingInputAttachmentIndices vkCmdSetRenderingInputAttachmentIndices = 0;
2255
2256 //=== VK_KHR_swapchain ===
2257 PFN_vkCreateSwapchainKHR vkCreateSwapchainKHR = 0;
2258 PFN_vkDestroySwapchainKHR vkDestroySwapchainKHR = 0;
2259 PFN_vkGetSwapchainImagesKHR vkGetSwapchainImagesKHR = 0;
2260 PFN_vkAcquireNextImageKHR vkAcquireNextImageKHR = 0;
2261 PFN_vkQueuePresentKHR vkQueuePresentKHR = 0;
2262 PFN_vkGetDeviceGroupPresentCapabilitiesKHR vkGetDeviceGroupPresentCapabilitiesKHR = 0;
2263 PFN_vkGetDeviceGroupSurfacePresentModesKHR vkGetDeviceGroupSurfacePresentModesKHR = 0;
2264 PFN_vkAcquireNextImage2KHR vkAcquireNextImage2KHR = 0;
2265
2266 //=== VK_KHR_display_swapchain ===
2267 PFN_vkCreateSharedSwapchainsKHR vkCreateSharedSwapchainsKHR = 0;
2268
2269 //=== VK_EXT_debug_marker ===
2270 PFN_vkDebugMarkerSetObjectTagEXT vkDebugMarkerSetObjectTagEXT = 0;
2271 PFN_vkDebugMarkerSetObjectNameEXT vkDebugMarkerSetObjectNameEXT = 0;
2272 PFN_vkCmdDebugMarkerBeginEXT vkCmdDebugMarkerBeginEXT = 0;
2273 PFN_vkCmdDebugMarkerEndEXT vkCmdDebugMarkerEndEXT = 0;
2274 PFN_vkCmdDebugMarkerInsertEXT vkCmdDebugMarkerInsertEXT = 0;
2275
2276 //=== VK_KHR_video_queue ===
2277 PFN_vkCreateVideoSessionKHR vkCreateVideoSessionKHR = 0;
2278 PFN_vkDestroyVideoSessionKHR vkDestroyVideoSessionKHR = 0;
2279 PFN_vkGetVideoSessionMemoryRequirementsKHR vkGetVideoSessionMemoryRequirementsKHR = 0;
2280 PFN_vkBindVideoSessionMemoryKHR vkBindVideoSessionMemoryKHR = 0;
2281 PFN_vkCreateVideoSessionParametersKHR vkCreateVideoSessionParametersKHR = 0;
2282 PFN_vkUpdateVideoSessionParametersKHR vkUpdateVideoSessionParametersKHR = 0;
2283 PFN_vkDestroyVideoSessionParametersKHR vkDestroyVideoSessionParametersKHR = 0;
2284 PFN_vkCmdBeginVideoCodingKHR vkCmdBeginVideoCodingKHR = 0;
2285 PFN_vkCmdEndVideoCodingKHR vkCmdEndVideoCodingKHR = 0;
2286 PFN_vkCmdControlVideoCodingKHR vkCmdControlVideoCodingKHR = 0;
2287
2288 //=== VK_KHR_video_decode_queue ===
2289 PFN_vkCmdDecodeVideoKHR vkCmdDecodeVideoKHR = 0;
2290
2291 //=== VK_EXT_transform_feedback ===
2292 PFN_vkCmdBindTransformFeedbackBuffersEXT vkCmdBindTransformFeedbackBuffersEXT = 0;
2293 PFN_vkCmdBeginTransformFeedbackEXT vkCmdBeginTransformFeedbackEXT = 0;
2294 PFN_vkCmdEndTransformFeedbackEXT vkCmdEndTransformFeedbackEXT = 0;
2295 PFN_vkCmdBeginQueryIndexedEXT vkCmdBeginQueryIndexedEXT = 0;
2296 PFN_vkCmdEndQueryIndexedEXT vkCmdEndQueryIndexedEXT = 0;
2297 PFN_vkCmdDrawIndirectByteCountEXT vkCmdDrawIndirectByteCountEXT = 0;
2298
2299 //=== VK_NVX_binary_import ===
2300 PFN_vkCreateCuModuleNVX vkCreateCuModuleNVX = 0;
2301 PFN_vkCreateCuFunctionNVX vkCreateCuFunctionNVX = 0;
2302 PFN_vkDestroyCuModuleNVX vkDestroyCuModuleNVX = 0;
2303 PFN_vkDestroyCuFunctionNVX vkDestroyCuFunctionNVX = 0;
2304 PFN_vkCmdCuLaunchKernelNVX vkCmdCuLaunchKernelNVX = 0;
2305
2306 //=== VK_NVX_image_view_handle ===
2307 PFN_vkGetImageViewHandleNVX vkGetImageViewHandleNVX = 0;
2308 PFN_vkGetImageViewHandle64NVX vkGetImageViewHandle64NVX = 0;
2309 PFN_vkGetImageViewAddressNVX vkGetImageViewAddressNVX = 0;
2310 PFN_vkGetDeviceCombinedImageSamplerIndexNVX vkGetDeviceCombinedImageSamplerIndexNVX = 0;
2311
2312 //=== VK_AMD_draw_indirect_count ===
2313 PFN_vkCmdDrawIndirectCountAMD vkCmdDrawIndirectCountAMD = 0;
2314 PFN_vkCmdDrawIndexedIndirectCountAMD vkCmdDrawIndexedIndirectCountAMD = 0;
2315
2316 //=== VK_AMD_shader_info ===
2317 PFN_vkGetShaderInfoAMD vkGetShaderInfoAMD = 0;
2318
2319 //=== VK_KHR_dynamic_rendering ===
2320 PFN_vkCmdBeginRenderingKHR vkCmdBeginRenderingKHR = 0;
2321 PFN_vkCmdEndRenderingKHR vkCmdEndRenderingKHR = 0;
2322
2323 # if defined( VK_USE_PLATFORM_WIN32_KHR )
2324 //=== VK_NV_external_memory_win32 ===
2325 PFN_vkGetMemoryWin32HandleNV vkGetMemoryWin32HandleNV = 0;
2326 # else
2327 PFN_dummy vkGetMemoryWin32HandleNV_placeholder = 0;
2328 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
2329
2330 //=== VK_KHR_device_group ===
2331 PFN_vkGetDeviceGroupPeerMemoryFeaturesKHR vkGetDeviceGroupPeerMemoryFeaturesKHR = 0;
2332 PFN_vkCmdSetDeviceMaskKHR vkCmdSetDeviceMaskKHR = 0;
2333 PFN_vkCmdDispatchBaseKHR vkCmdDispatchBaseKHR = 0;
2334
2335 //=== VK_KHR_maintenance1 ===
2336 PFN_vkTrimCommandPoolKHR vkTrimCommandPoolKHR = 0;
2337
2338 # if defined( VK_USE_PLATFORM_WIN32_KHR )
2339 //=== VK_KHR_external_memory_win32 ===
2340 PFN_vkGetMemoryWin32HandleKHR vkGetMemoryWin32HandleKHR = 0;
2341 PFN_vkGetMemoryWin32HandlePropertiesKHR vkGetMemoryWin32HandlePropertiesKHR = 0;
2342 # else
2343 PFN_dummy vkGetMemoryWin32HandleKHR_placeholder = 0;
2344 PFN_dummy vkGetMemoryWin32HandlePropertiesKHR_placeholder = 0;
2345 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
2346
2347 //=== VK_KHR_external_memory_fd ===
2348 PFN_vkGetMemoryFdKHR vkGetMemoryFdKHR = 0;
2349 PFN_vkGetMemoryFdPropertiesKHR vkGetMemoryFdPropertiesKHR = 0;
2350
2351 # if defined( VK_USE_PLATFORM_WIN32_KHR )
2352 //=== VK_KHR_external_semaphore_win32 ===
2353 PFN_vkImportSemaphoreWin32HandleKHR vkImportSemaphoreWin32HandleKHR = 0;
2354 PFN_vkGetSemaphoreWin32HandleKHR vkGetSemaphoreWin32HandleKHR = 0;
2355 # else
2356 PFN_dummy vkImportSemaphoreWin32HandleKHR_placeholder = 0;
2357 PFN_dummy vkGetSemaphoreWin32HandleKHR_placeholder = 0;
2358 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
2359
2360 //=== VK_KHR_external_semaphore_fd ===
2361 PFN_vkImportSemaphoreFdKHR vkImportSemaphoreFdKHR = 0;
2362 PFN_vkGetSemaphoreFdKHR vkGetSemaphoreFdKHR = 0;
2363
2364 //=== VK_KHR_push_descriptor ===
2365 PFN_vkCmdPushDescriptorSetKHR vkCmdPushDescriptorSetKHR = 0;
2366 PFN_vkCmdPushDescriptorSetWithTemplateKHR vkCmdPushDescriptorSetWithTemplateKHR = 0;
2367
2368 //=== VK_EXT_conditional_rendering ===
2369 PFN_vkCmdBeginConditionalRenderingEXT vkCmdBeginConditionalRenderingEXT = 0;
2370 PFN_vkCmdEndConditionalRenderingEXT vkCmdEndConditionalRenderingEXT = 0;
2371
2372 //=== VK_KHR_descriptor_update_template ===
2373 PFN_vkCreateDescriptorUpdateTemplateKHR vkCreateDescriptorUpdateTemplateKHR = 0;
2374 PFN_vkDestroyDescriptorUpdateTemplateKHR vkDestroyDescriptorUpdateTemplateKHR = 0;
2375 PFN_vkUpdateDescriptorSetWithTemplateKHR vkUpdateDescriptorSetWithTemplateKHR = 0;
2376
2377 //=== VK_NV_clip_space_w_scaling ===
2378 PFN_vkCmdSetViewportWScalingNV vkCmdSetViewportWScalingNV = 0;
2379
2380 //=== VK_EXT_display_control ===
2381 PFN_vkDisplayPowerControlEXT vkDisplayPowerControlEXT = 0;
2382 PFN_vkRegisterDeviceEventEXT vkRegisterDeviceEventEXT = 0;
2383 PFN_vkRegisterDisplayEventEXT vkRegisterDisplayEventEXT = 0;
2384 PFN_vkGetSwapchainCounterEXT vkGetSwapchainCounterEXT = 0;
2385
2386 //=== VK_GOOGLE_display_timing ===
2387 PFN_vkGetRefreshCycleDurationGOOGLE vkGetRefreshCycleDurationGOOGLE = 0;
2388 PFN_vkGetPastPresentationTimingGOOGLE vkGetPastPresentationTimingGOOGLE = 0;
2389
2390 //=== VK_EXT_discard_rectangles ===
2391 PFN_vkCmdSetDiscardRectangleEXT vkCmdSetDiscardRectangleEXT = 0;
2392 PFN_vkCmdSetDiscardRectangleEnableEXT vkCmdSetDiscardRectangleEnableEXT = 0;
2393 PFN_vkCmdSetDiscardRectangleModeEXT vkCmdSetDiscardRectangleModeEXT = 0;
2394
2395 //=== VK_EXT_hdr_metadata ===
2396 PFN_vkSetHdrMetadataEXT vkSetHdrMetadataEXT = 0;
2397
2398 //=== VK_KHR_create_renderpass2 ===
2399 PFN_vkCreateRenderPass2KHR vkCreateRenderPass2KHR = 0;
2400 PFN_vkCmdBeginRenderPass2KHR vkCmdBeginRenderPass2KHR = 0;
2401 PFN_vkCmdNextSubpass2KHR vkCmdNextSubpass2KHR = 0;
2402 PFN_vkCmdEndRenderPass2KHR vkCmdEndRenderPass2KHR = 0;
2403
2404 //=== VK_KHR_shared_presentable_image ===
2405 PFN_vkGetSwapchainStatusKHR vkGetSwapchainStatusKHR = 0;
2406
2407 # if defined( VK_USE_PLATFORM_WIN32_KHR )
2408 //=== VK_KHR_external_fence_win32 ===
2409 PFN_vkImportFenceWin32HandleKHR vkImportFenceWin32HandleKHR = 0;
2410 PFN_vkGetFenceWin32HandleKHR vkGetFenceWin32HandleKHR = 0;
2411 # else
2412 PFN_dummy vkImportFenceWin32HandleKHR_placeholder = 0;
2413 PFN_dummy vkGetFenceWin32HandleKHR_placeholder = 0;
2414 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
2415
2416 //=== VK_KHR_external_fence_fd ===
2417 PFN_vkImportFenceFdKHR vkImportFenceFdKHR = 0;
2418 PFN_vkGetFenceFdKHR vkGetFenceFdKHR = 0;
2419
2420 //=== VK_KHR_performance_query ===
2421 PFN_vkAcquireProfilingLockKHR vkAcquireProfilingLockKHR = 0;
2422 PFN_vkReleaseProfilingLockKHR vkReleaseProfilingLockKHR = 0;
2423
2424 //=== VK_EXT_debug_utils ===
2425 PFN_vkSetDebugUtilsObjectNameEXT vkSetDebugUtilsObjectNameEXT = 0;
2426 PFN_vkSetDebugUtilsObjectTagEXT vkSetDebugUtilsObjectTagEXT = 0;
2427 PFN_vkQueueBeginDebugUtilsLabelEXT vkQueueBeginDebugUtilsLabelEXT = 0;
2428 PFN_vkQueueEndDebugUtilsLabelEXT vkQueueEndDebugUtilsLabelEXT = 0;
2429 PFN_vkQueueInsertDebugUtilsLabelEXT vkQueueInsertDebugUtilsLabelEXT = 0;
2430 PFN_vkCmdBeginDebugUtilsLabelEXT vkCmdBeginDebugUtilsLabelEXT = 0;
2431 PFN_vkCmdEndDebugUtilsLabelEXT vkCmdEndDebugUtilsLabelEXT = 0;
2432 PFN_vkCmdInsertDebugUtilsLabelEXT vkCmdInsertDebugUtilsLabelEXT = 0;
2433
2434 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
2435 //=== VK_ANDROID_external_memory_android_hardware_buffer ===
2436 PFN_vkGetAndroidHardwareBufferPropertiesANDROID vkGetAndroidHardwareBufferPropertiesANDROID = 0;
2437 PFN_vkGetMemoryAndroidHardwareBufferANDROID vkGetMemoryAndroidHardwareBufferANDROID = 0;
2438 # else
2439 PFN_dummy vkGetAndroidHardwareBufferPropertiesANDROID_placeholder = 0;
2440 PFN_dummy vkGetMemoryAndroidHardwareBufferANDROID_placeholder = 0;
2441 # endif /*VK_USE_PLATFORM_ANDROID_KHR*/
2442
2443 # if defined( VK_ENABLE_BETA_EXTENSIONS )
2444 //=== VK_AMDX_shader_enqueue ===
2445 PFN_vkCreateExecutionGraphPipelinesAMDX vkCreateExecutionGraphPipelinesAMDX = 0;
2446 PFN_vkGetExecutionGraphPipelineScratchSizeAMDX vkGetExecutionGraphPipelineScratchSizeAMDX = 0;
2447 PFN_vkGetExecutionGraphPipelineNodeIndexAMDX vkGetExecutionGraphPipelineNodeIndexAMDX = 0;
2448 PFN_vkCmdInitializeGraphScratchMemoryAMDX vkCmdInitializeGraphScratchMemoryAMDX = 0;
2449 PFN_vkCmdDispatchGraphAMDX vkCmdDispatchGraphAMDX = 0;
2450 PFN_vkCmdDispatchGraphIndirectAMDX vkCmdDispatchGraphIndirectAMDX = 0;
2451 PFN_vkCmdDispatchGraphIndirectCountAMDX vkCmdDispatchGraphIndirectCountAMDX = 0;
2452 # else
2453 PFN_dummy vkCreateExecutionGraphPipelinesAMDX_placeholder = 0;
2454 PFN_dummy vkGetExecutionGraphPipelineScratchSizeAMDX_placeholder = 0;
2455 PFN_dummy vkGetExecutionGraphPipelineNodeIndexAMDX_placeholder = 0;
2456 PFN_dummy vkCmdInitializeGraphScratchMemoryAMDX_placeholder = 0;
2457 PFN_dummy vkCmdDispatchGraphAMDX_placeholder = 0;
2458 PFN_dummy vkCmdDispatchGraphIndirectAMDX_placeholder = 0;
2459 PFN_dummy vkCmdDispatchGraphIndirectCountAMDX_placeholder = 0;
2460 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
2461
2462 //=== VK_EXT_descriptor_heap ===
2463 PFN_vkWriteSamplerDescriptorsEXT vkWriteSamplerDescriptorsEXT = 0;
2464 PFN_vkWriteResourceDescriptorsEXT vkWriteResourceDescriptorsEXT = 0;
2465 PFN_vkCmdBindSamplerHeapEXT vkCmdBindSamplerHeapEXT = 0;
2466 PFN_vkCmdBindResourceHeapEXT vkCmdBindResourceHeapEXT = 0;
2467 PFN_vkCmdPushDataEXT vkCmdPushDataEXT = 0;
2468 PFN_vkGetImageOpaqueCaptureDataEXT vkGetImageOpaqueCaptureDataEXT = 0;
2469 PFN_vkRegisterCustomBorderColorEXT vkRegisterCustomBorderColorEXT = 0;
2470 PFN_vkUnregisterCustomBorderColorEXT vkUnregisterCustomBorderColorEXT = 0;
2471 PFN_vkGetTensorOpaqueCaptureDataARM vkGetTensorOpaqueCaptureDataARM = 0;
2472
2473 //=== VK_EXT_sample_locations ===
2474 PFN_vkCmdSetSampleLocationsEXT vkCmdSetSampleLocationsEXT = 0;
2475
2476 //=== VK_KHR_get_memory_requirements2 ===
2477 PFN_vkGetImageMemoryRequirements2KHR vkGetImageMemoryRequirements2KHR = 0;
2478 PFN_vkGetBufferMemoryRequirements2KHR vkGetBufferMemoryRequirements2KHR = 0;
2479 PFN_vkGetImageSparseMemoryRequirements2KHR vkGetImageSparseMemoryRequirements2KHR = 0;
2480
2481 //=== VK_KHR_acceleration_structure ===
2482 PFN_vkCreateAccelerationStructureKHR vkCreateAccelerationStructureKHR = 0;
2483 PFN_vkDestroyAccelerationStructureKHR vkDestroyAccelerationStructureKHR = 0;
2484 PFN_vkCmdBuildAccelerationStructuresKHR vkCmdBuildAccelerationStructuresKHR = 0;
2485 PFN_vkCmdBuildAccelerationStructuresIndirectKHR vkCmdBuildAccelerationStructuresIndirectKHR = 0;
2486 PFN_vkBuildAccelerationStructuresKHR vkBuildAccelerationStructuresKHR = 0;
2487 PFN_vkCopyAccelerationStructureKHR vkCopyAccelerationStructureKHR = 0;
2488 PFN_vkCopyAccelerationStructureToMemoryKHR vkCopyAccelerationStructureToMemoryKHR = 0;
2489 PFN_vkCopyMemoryToAccelerationStructureKHR vkCopyMemoryToAccelerationStructureKHR = 0;
2490 PFN_vkWriteAccelerationStructuresPropertiesKHR vkWriteAccelerationStructuresPropertiesKHR = 0;
2491 PFN_vkCmdCopyAccelerationStructureKHR vkCmdCopyAccelerationStructureKHR = 0;
2492 PFN_vkCmdCopyAccelerationStructureToMemoryKHR vkCmdCopyAccelerationStructureToMemoryKHR = 0;
2493 PFN_vkCmdCopyMemoryToAccelerationStructureKHR vkCmdCopyMemoryToAccelerationStructureKHR = 0;
2494 PFN_vkGetAccelerationStructureDeviceAddressKHR vkGetAccelerationStructureDeviceAddressKHR = 0;
2495 PFN_vkCmdWriteAccelerationStructuresPropertiesKHR vkCmdWriteAccelerationStructuresPropertiesKHR = 0;
2496 PFN_vkGetDeviceAccelerationStructureCompatibilityKHR vkGetDeviceAccelerationStructureCompatibilityKHR = 0;
2497 PFN_vkGetAccelerationStructureBuildSizesKHR vkGetAccelerationStructureBuildSizesKHR = 0;
2498
2499 //=== VK_KHR_ray_tracing_pipeline ===
2500 PFN_vkCmdTraceRaysKHR vkCmdTraceRaysKHR = 0;
2501 PFN_vkCreateRayTracingPipelinesKHR vkCreateRayTracingPipelinesKHR = 0;
2502 PFN_vkGetRayTracingShaderGroupHandlesKHR vkGetRayTracingShaderGroupHandlesKHR = 0;
2503 PFN_vkGetRayTracingCaptureReplayShaderGroupHandlesKHR vkGetRayTracingCaptureReplayShaderGroupHandlesKHR = 0;
2504 PFN_vkCmdTraceRaysIndirectKHR vkCmdTraceRaysIndirectKHR = 0;
2505 PFN_vkGetRayTracingShaderGroupStackSizeKHR vkGetRayTracingShaderGroupStackSizeKHR = 0;
2506 PFN_vkCmdSetRayTracingPipelineStackSizeKHR vkCmdSetRayTracingPipelineStackSizeKHR = 0;
2507
2508 //=== VK_KHR_sampler_ycbcr_conversion ===
2509 PFN_vkCreateSamplerYcbcrConversionKHR vkCreateSamplerYcbcrConversionKHR = 0;
2510 PFN_vkDestroySamplerYcbcrConversionKHR vkDestroySamplerYcbcrConversionKHR = 0;
2511
2512 //=== VK_KHR_bind_memory2 ===
2513 PFN_vkBindBufferMemory2KHR vkBindBufferMemory2KHR = 0;
2514 PFN_vkBindImageMemory2KHR vkBindImageMemory2KHR = 0;
2515
2516 //=== VK_EXT_image_drm_format_modifier ===
2517 PFN_vkGetImageDrmFormatModifierPropertiesEXT vkGetImageDrmFormatModifierPropertiesEXT = 0;
2518
2519 //=== VK_EXT_validation_cache ===
2520 PFN_vkCreateValidationCacheEXT vkCreateValidationCacheEXT = 0;
2521 PFN_vkDestroyValidationCacheEXT vkDestroyValidationCacheEXT = 0;
2522 PFN_vkMergeValidationCachesEXT vkMergeValidationCachesEXT = 0;
2523 PFN_vkGetValidationCacheDataEXT vkGetValidationCacheDataEXT = 0;
2524
2525 //=== VK_NV_shading_rate_image ===
2526 PFN_vkCmdBindShadingRateImageNV vkCmdBindShadingRateImageNV = 0;
2527 PFN_vkCmdSetViewportShadingRatePaletteNV vkCmdSetViewportShadingRatePaletteNV = 0;
2528 PFN_vkCmdSetCoarseSampleOrderNV vkCmdSetCoarseSampleOrderNV = 0;
2529
2530 //=== VK_NV_ray_tracing ===
2531 PFN_vkCreateAccelerationStructureNV vkCreateAccelerationStructureNV = 0;
2532 PFN_vkDestroyAccelerationStructureNV vkDestroyAccelerationStructureNV = 0;
2533 PFN_vkGetAccelerationStructureMemoryRequirementsNV vkGetAccelerationStructureMemoryRequirementsNV = 0;
2534 PFN_vkBindAccelerationStructureMemoryNV vkBindAccelerationStructureMemoryNV = 0;
2535 PFN_vkCmdBuildAccelerationStructureNV vkCmdBuildAccelerationStructureNV = 0;
2536 PFN_vkCmdCopyAccelerationStructureNV vkCmdCopyAccelerationStructureNV = 0;
2537 PFN_vkCmdTraceRaysNV vkCmdTraceRaysNV = 0;
2538 PFN_vkCreateRayTracingPipelinesNV vkCreateRayTracingPipelinesNV = 0;
2539 PFN_vkGetRayTracingShaderGroupHandlesNV vkGetRayTracingShaderGroupHandlesNV = 0;
2540 PFN_vkGetAccelerationStructureHandleNV vkGetAccelerationStructureHandleNV = 0;
2541 PFN_vkCmdWriteAccelerationStructuresPropertiesNV vkCmdWriteAccelerationStructuresPropertiesNV = 0;
2542 PFN_vkCompileDeferredNV vkCompileDeferredNV = 0;
2543
2544 //=== VK_KHR_maintenance3 ===
2545 PFN_vkGetDescriptorSetLayoutSupportKHR vkGetDescriptorSetLayoutSupportKHR = 0;
2546
2547 //=== VK_KHR_draw_indirect_count ===
2548 PFN_vkCmdDrawIndirectCountKHR vkCmdDrawIndirectCountKHR = 0;
2549 PFN_vkCmdDrawIndexedIndirectCountKHR vkCmdDrawIndexedIndirectCountKHR = 0;
2550
2551 //=== VK_EXT_external_memory_host ===
2552 PFN_vkGetMemoryHostPointerPropertiesEXT vkGetMemoryHostPointerPropertiesEXT = 0;
2553
2554 //=== VK_AMD_buffer_marker ===
2555 PFN_vkCmdWriteBufferMarkerAMD vkCmdWriteBufferMarkerAMD = 0;
2556 PFN_vkCmdWriteBufferMarker2AMD vkCmdWriteBufferMarker2AMD = 0;
2557
2558 //=== VK_EXT_calibrated_timestamps ===
2559 PFN_vkGetCalibratedTimestampsEXT vkGetCalibratedTimestampsEXT = 0;
2560
2561 //=== VK_NV_mesh_shader ===
2562 PFN_vkCmdDrawMeshTasksNV vkCmdDrawMeshTasksNV = 0;
2563 PFN_vkCmdDrawMeshTasksIndirectNV vkCmdDrawMeshTasksIndirectNV = 0;
2564 PFN_vkCmdDrawMeshTasksIndirectCountNV vkCmdDrawMeshTasksIndirectCountNV = 0;
2565
2566 //=== VK_NV_scissor_exclusive ===
2567 PFN_vkCmdSetExclusiveScissorEnableNV vkCmdSetExclusiveScissorEnableNV = 0;
2568 PFN_vkCmdSetExclusiveScissorNV vkCmdSetExclusiveScissorNV = 0;
2569
2570 //=== VK_NV_device_diagnostic_checkpoints ===
2571 PFN_vkCmdSetCheckpointNV vkCmdSetCheckpointNV = 0;
2572 PFN_vkGetQueueCheckpointDataNV vkGetQueueCheckpointDataNV = 0;
2573 PFN_vkGetQueueCheckpointData2NV vkGetQueueCheckpointData2NV = 0;
2574
2575 //=== VK_KHR_timeline_semaphore ===
2576 PFN_vkGetSemaphoreCounterValueKHR vkGetSemaphoreCounterValueKHR = 0;
2577 PFN_vkWaitSemaphoresKHR vkWaitSemaphoresKHR = 0;
2578 PFN_vkSignalSemaphoreKHR vkSignalSemaphoreKHR = 0;
2579
2580 //=== VK_EXT_present_timing ===
2581 PFN_vkSetSwapchainPresentTimingQueueSizeEXT vkSetSwapchainPresentTimingQueueSizeEXT = 0;
2582 PFN_vkGetSwapchainTimingPropertiesEXT vkGetSwapchainTimingPropertiesEXT = 0;
2583 PFN_vkGetSwapchainTimeDomainPropertiesEXT vkGetSwapchainTimeDomainPropertiesEXT = 0;
2584 PFN_vkGetPastPresentationTimingEXT vkGetPastPresentationTimingEXT = 0;
2585
2586 //=== VK_INTEL_performance_query ===
2587 PFN_vkInitializePerformanceApiINTEL vkInitializePerformanceApiINTEL = 0;
2588 PFN_vkUninitializePerformanceApiINTEL vkUninitializePerformanceApiINTEL = 0;
2589 PFN_vkCmdSetPerformanceMarkerINTEL vkCmdSetPerformanceMarkerINTEL = 0;
2590 PFN_vkCmdSetPerformanceStreamMarkerINTEL vkCmdSetPerformanceStreamMarkerINTEL = 0;
2591 PFN_vkCmdSetPerformanceOverrideINTEL vkCmdSetPerformanceOverrideINTEL = 0;
2592 PFN_vkAcquirePerformanceConfigurationINTEL vkAcquirePerformanceConfigurationINTEL = 0;
2593 PFN_vkReleasePerformanceConfigurationINTEL vkReleasePerformanceConfigurationINTEL = 0;
2594 PFN_vkQueueSetPerformanceConfigurationINTEL vkQueueSetPerformanceConfigurationINTEL = 0;
2595 PFN_vkGetPerformanceParameterINTEL vkGetPerformanceParameterINTEL = 0;
2596
2597 //=== VK_AMD_display_native_hdr ===
2598 PFN_vkSetLocalDimmingAMD vkSetLocalDimmingAMD = 0;
2599
2600 //=== VK_KHR_fragment_shading_rate ===
2601 PFN_vkCmdSetFragmentShadingRateKHR vkCmdSetFragmentShadingRateKHR = 0;
2602
2603 //=== VK_KHR_dynamic_rendering_local_read ===
2604 PFN_vkCmdSetRenderingAttachmentLocationsKHR vkCmdSetRenderingAttachmentLocationsKHR = 0;
2605 PFN_vkCmdSetRenderingInputAttachmentIndicesKHR vkCmdSetRenderingInputAttachmentIndicesKHR = 0;
2606
2607 //=== VK_EXT_buffer_device_address ===
2608 PFN_vkGetBufferDeviceAddressEXT vkGetBufferDeviceAddressEXT = 0;
2609
2610 //=== VK_KHR_present_wait ===
2611 PFN_vkWaitForPresentKHR vkWaitForPresentKHR = 0;
2612
2613 # if defined( VK_USE_PLATFORM_WIN32_KHR )
2614 //=== VK_EXT_full_screen_exclusive ===
2615 PFN_vkAcquireFullScreenExclusiveModeEXT vkAcquireFullScreenExclusiveModeEXT = 0;
2616 PFN_vkReleaseFullScreenExclusiveModeEXT vkReleaseFullScreenExclusiveModeEXT = 0;
2617 PFN_vkGetDeviceGroupSurfacePresentModes2EXT vkGetDeviceGroupSurfacePresentModes2EXT = 0;
2618 # else
2619 PFN_dummy vkAcquireFullScreenExclusiveModeEXT_placeholder = 0;
2620 PFN_dummy vkReleaseFullScreenExclusiveModeEXT_placeholder = 0;
2621 PFN_dummy vkGetDeviceGroupSurfacePresentModes2EXT_placeholder = 0;
2622 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
2623
2624 //=== VK_KHR_buffer_device_address ===
2625 PFN_vkGetBufferDeviceAddressKHR vkGetBufferDeviceAddressKHR = 0;
2626 PFN_vkGetBufferOpaqueCaptureAddressKHR vkGetBufferOpaqueCaptureAddressKHR = 0;
2627 PFN_vkGetDeviceMemoryOpaqueCaptureAddressKHR vkGetDeviceMemoryOpaqueCaptureAddressKHR = 0;
2628
2629 //=== VK_EXT_line_rasterization ===
2630 PFN_vkCmdSetLineStippleEXT vkCmdSetLineStippleEXT = 0;
2631
2632 //=== VK_EXT_host_query_reset ===
2633 PFN_vkResetQueryPoolEXT vkResetQueryPoolEXT = 0;
2634
2635 //=== VK_EXT_extended_dynamic_state ===
2636 PFN_vkCmdSetCullModeEXT vkCmdSetCullModeEXT = 0;
2637 PFN_vkCmdSetFrontFaceEXT vkCmdSetFrontFaceEXT = 0;
2638 PFN_vkCmdSetPrimitiveTopologyEXT vkCmdSetPrimitiveTopologyEXT = 0;
2639 PFN_vkCmdSetViewportWithCountEXT vkCmdSetViewportWithCountEXT = 0;
2640 PFN_vkCmdSetScissorWithCountEXT vkCmdSetScissorWithCountEXT = 0;
2641 PFN_vkCmdBindVertexBuffers2EXT vkCmdBindVertexBuffers2EXT = 0;
2642 PFN_vkCmdSetDepthTestEnableEXT vkCmdSetDepthTestEnableEXT = 0;
2643 PFN_vkCmdSetDepthWriteEnableEXT vkCmdSetDepthWriteEnableEXT = 0;
2644 PFN_vkCmdSetDepthCompareOpEXT vkCmdSetDepthCompareOpEXT = 0;
2645 PFN_vkCmdSetDepthBoundsTestEnableEXT vkCmdSetDepthBoundsTestEnableEXT = 0;
2646 PFN_vkCmdSetStencilTestEnableEXT vkCmdSetStencilTestEnableEXT = 0;
2647 PFN_vkCmdSetStencilOpEXT vkCmdSetStencilOpEXT = 0;
2648
2649 //=== VK_KHR_deferred_host_operations ===
2650 PFN_vkCreateDeferredOperationKHR vkCreateDeferredOperationKHR = 0;
2651 PFN_vkDestroyDeferredOperationKHR vkDestroyDeferredOperationKHR = 0;
2652 PFN_vkGetDeferredOperationMaxConcurrencyKHR vkGetDeferredOperationMaxConcurrencyKHR = 0;
2653 PFN_vkGetDeferredOperationResultKHR vkGetDeferredOperationResultKHR = 0;
2654 PFN_vkDeferredOperationJoinKHR vkDeferredOperationJoinKHR = 0;
2655
2656 //=== VK_KHR_pipeline_executable_properties ===
2657 PFN_vkGetPipelineExecutablePropertiesKHR vkGetPipelineExecutablePropertiesKHR = 0;
2658 PFN_vkGetPipelineExecutableStatisticsKHR vkGetPipelineExecutableStatisticsKHR = 0;
2659 PFN_vkGetPipelineExecutableInternalRepresentationsKHR vkGetPipelineExecutableInternalRepresentationsKHR = 0;
2660
2661 //=== VK_EXT_host_image_copy ===
2662 PFN_vkCopyMemoryToImageEXT vkCopyMemoryToImageEXT = 0;
2663 PFN_vkCopyImageToMemoryEXT vkCopyImageToMemoryEXT = 0;
2664 PFN_vkCopyImageToImageEXT vkCopyImageToImageEXT = 0;
2665 PFN_vkTransitionImageLayoutEXT vkTransitionImageLayoutEXT = 0;
2666 PFN_vkGetImageSubresourceLayout2EXT vkGetImageSubresourceLayout2EXT = 0;
2667
2668 //=== VK_KHR_map_memory2 ===
2669 PFN_vkMapMemory2KHR vkMapMemory2KHR = 0;
2670 PFN_vkUnmapMemory2KHR vkUnmapMemory2KHR = 0;
2671
2672 //=== VK_EXT_swapchain_maintenance1 ===
2673 PFN_vkReleaseSwapchainImagesEXT vkReleaseSwapchainImagesEXT = 0;
2674
2675 //=== VK_NV_device_generated_commands ===
2676 PFN_vkGetGeneratedCommandsMemoryRequirementsNV vkGetGeneratedCommandsMemoryRequirementsNV = 0;
2677 PFN_vkCmdPreprocessGeneratedCommandsNV vkCmdPreprocessGeneratedCommandsNV = 0;
2678 PFN_vkCmdExecuteGeneratedCommandsNV vkCmdExecuteGeneratedCommandsNV = 0;
2679 PFN_vkCmdBindPipelineShaderGroupNV vkCmdBindPipelineShaderGroupNV = 0;
2680 PFN_vkCreateIndirectCommandsLayoutNV vkCreateIndirectCommandsLayoutNV = 0;
2681 PFN_vkDestroyIndirectCommandsLayoutNV vkDestroyIndirectCommandsLayoutNV = 0;
2682
2683 //=== VK_EXT_depth_bias_control ===
2684 PFN_vkCmdSetDepthBias2EXT vkCmdSetDepthBias2EXT = 0;
2685
2686 //=== VK_EXT_private_data ===
2687 PFN_vkCreatePrivateDataSlotEXT vkCreatePrivateDataSlotEXT = 0;
2688 PFN_vkDestroyPrivateDataSlotEXT vkDestroyPrivateDataSlotEXT = 0;
2689 PFN_vkSetPrivateDataEXT vkSetPrivateDataEXT = 0;
2690 PFN_vkGetPrivateDataEXT vkGetPrivateDataEXT = 0;
2691
2692 //=== VK_KHR_video_encode_queue ===
2693 PFN_vkGetEncodedVideoSessionParametersKHR vkGetEncodedVideoSessionParametersKHR = 0;
2694 PFN_vkCmdEncodeVideoKHR vkCmdEncodeVideoKHR = 0;
2695
2696 # if defined( VK_ENABLE_BETA_EXTENSIONS )
2697 //=== VK_NV_cuda_kernel_launch ===
2698 PFN_vkCreateCudaModuleNV vkCreateCudaModuleNV = 0;
2699 PFN_vkGetCudaModuleCacheNV vkGetCudaModuleCacheNV = 0;
2700 PFN_vkCreateCudaFunctionNV vkCreateCudaFunctionNV = 0;
2701 PFN_vkDestroyCudaModuleNV vkDestroyCudaModuleNV = 0;
2702 PFN_vkDestroyCudaFunctionNV vkDestroyCudaFunctionNV = 0;
2703 PFN_vkCmdCudaLaunchKernelNV vkCmdCudaLaunchKernelNV = 0;
2704 # else
2705 PFN_dummy vkCreateCudaModuleNV_placeholder = 0;
2706 PFN_dummy vkGetCudaModuleCacheNV_placeholder = 0;
2707 PFN_dummy vkCreateCudaFunctionNV_placeholder = 0;
2708 PFN_dummy vkDestroyCudaModuleNV_placeholder = 0;
2709 PFN_dummy vkDestroyCudaFunctionNV_placeholder = 0;
2710 PFN_dummy vkCmdCudaLaunchKernelNV_placeholder = 0;
2711 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
2712
2713 //=== VK_QCOM_tile_shading ===
2714 PFN_vkCmdDispatchTileQCOM vkCmdDispatchTileQCOM = 0;
2715 PFN_vkCmdBeginPerTileExecutionQCOM vkCmdBeginPerTileExecutionQCOM = 0;
2716 PFN_vkCmdEndPerTileExecutionQCOM vkCmdEndPerTileExecutionQCOM = 0;
2717
2718 # if defined( VK_USE_PLATFORM_METAL_EXT )
2719 //=== VK_EXT_metal_objects ===
2720 PFN_vkExportMetalObjectsEXT vkExportMetalObjectsEXT = 0;
2721 # else
2722 PFN_dummy vkExportMetalObjectsEXT_placeholder = 0;
2723 # endif /*VK_USE_PLATFORM_METAL_EXT*/
2724
2725 //=== VK_KHR_synchronization2 ===
2726 PFN_vkCmdSetEvent2KHR vkCmdSetEvent2KHR = 0;
2727 PFN_vkCmdResetEvent2KHR vkCmdResetEvent2KHR = 0;
2728 PFN_vkCmdWaitEvents2KHR vkCmdWaitEvents2KHR = 0;
2729 PFN_vkCmdPipelineBarrier2KHR vkCmdPipelineBarrier2KHR = 0;
2730 PFN_vkCmdWriteTimestamp2KHR vkCmdWriteTimestamp2KHR = 0;
2731 PFN_vkQueueSubmit2KHR vkQueueSubmit2KHR = 0;
2732
2733 //=== VK_EXT_descriptor_buffer ===
2734 PFN_vkGetDescriptorSetLayoutSizeEXT vkGetDescriptorSetLayoutSizeEXT = 0;
2735 PFN_vkGetDescriptorSetLayoutBindingOffsetEXT vkGetDescriptorSetLayoutBindingOffsetEXT = 0;
2736 PFN_vkGetDescriptorEXT vkGetDescriptorEXT = 0;
2737 PFN_vkCmdBindDescriptorBuffersEXT vkCmdBindDescriptorBuffersEXT = 0;
2738 PFN_vkCmdSetDescriptorBufferOffsetsEXT vkCmdSetDescriptorBufferOffsetsEXT = 0;
2739 PFN_vkCmdBindDescriptorBufferEmbeddedSamplersEXT vkCmdBindDescriptorBufferEmbeddedSamplersEXT = 0;
2740 PFN_vkGetBufferOpaqueCaptureDescriptorDataEXT vkGetBufferOpaqueCaptureDescriptorDataEXT = 0;
2741 PFN_vkGetImageOpaqueCaptureDescriptorDataEXT vkGetImageOpaqueCaptureDescriptorDataEXT = 0;
2742 PFN_vkGetImageViewOpaqueCaptureDescriptorDataEXT vkGetImageViewOpaqueCaptureDescriptorDataEXT = 0;
2743 PFN_vkGetSamplerOpaqueCaptureDescriptorDataEXT vkGetSamplerOpaqueCaptureDescriptorDataEXT = 0;
2744 PFN_vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT = 0;
2745
2746 //=== VK_KHR_device_address_commands ===
2747 PFN_vkCmdBindIndexBuffer3KHR vkCmdBindIndexBuffer3KHR = 0;
2748 PFN_vkCmdBindVertexBuffers3KHR vkCmdBindVertexBuffers3KHR = 0;
2749 PFN_vkCmdDrawIndirect2KHR vkCmdDrawIndirect2KHR = 0;
2750 PFN_vkCmdDrawIndexedIndirect2KHR vkCmdDrawIndexedIndirect2KHR = 0;
2751 PFN_vkCmdDispatchIndirect2KHR vkCmdDispatchIndirect2KHR = 0;
2752 PFN_vkCmdCopyMemoryKHR vkCmdCopyMemoryKHR = 0;
2753 PFN_vkCmdCopyMemoryToImageKHR vkCmdCopyMemoryToImageKHR = 0;
2754 PFN_vkCmdCopyImageToMemoryKHR vkCmdCopyImageToMemoryKHR = 0;
2755 PFN_vkCmdUpdateMemoryKHR vkCmdUpdateMemoryKHR = 0;
2756 PFN_vkCmdFillMemoryKHR vkCmdFillMemoryKHR = 0;
2757 PFN_vkCmdCopyQueryPoolResultsToMemoryKHR vkCmdCopyQueryPoolResultsToMemoryKHR = 0;
2758 PFN_vkCmdDrawIndirectCount2KHR vkCmdDrawIndirectCount2KHR = 0;
2759 PFN_vkCmdDrawIndexedIndirectCount2KHR vkCmdDrawIndexedIndirectCount2KHR = 0;
2760 PFN_vkCmdBeginConditionalRendering2EXT vkCmdBeginConditionalRendering2EXT = 0;
2761 PFN_vkCmdBindTransformFeedbackBuffers2EXT vkCmdBindTransformFeedbackBuffers2EXT = 0;
2762 PFN_vkCmdBeginTransformFeedback2EXT vkCmdBeginTransformFeedback2EXT = 0;
2763 PFN_vkCmdEndTransformFeedback2EXT vkCmdEndTransformFeedback2EXT = 0;
2764 PFN_vkCmdDrawIndirectByteCount2EXT vkCmdDrawIndirectByteCount2EXT = 0;
2765 PFN_vkCmdDrawMeshTasksIndirect2EXT vkCmdDrawMeshTasksIndirect2EXT = 0;
2766 PFN_vkCmdDrawMeshTasksIndirectCount2EXT vkCmdDrawMeshTasksIndirectCount2EXT = 0;
2767 PFN_vkCmdWriteMarkerToMemoryAMD vkCmdWriteMarkerToMemoryAMD = 0;
2768 PFN_vkCreateAccelerationStructure2KHR vkCreateAccelerationStructure2KHR = 0;
2769
2770 //=== VK_NV_fragment_shading_rate_enums ===
2771 PFN_vkCmdSetFragmentShadingRateEnumNV vkCmdSetFragmentShadingRateEnumNV = 0;
2772
2773 //=== VK_EXT_mesh_shader ===
2774 PFN_vkCmdDrawMeshTasksEXT vkCmdDrawMeshTasksEXT = 0;
2775 PFN_vkCmdDrawMeshTasksIndirectEXT vkCmdDrawMeshTasksIndirectEXT = 0;
2776 PFN_vkCmdDrawMeshTasksIndirectCountEXT vkCmdDrawMeshTasksIndirectCountEXT = 0;
2777
2778 //=== VK_KHR_copy_commands2 ===
2779 PFN_vkCmdCopyBuffer2KHR vkCmdCopyBuffer2KHR = 0;
2780 PFN_vkCmdCopyImage2KHR vkCmdCopyImage2KHR = 0;
2781 PFN_vkCmdCopyBufferToImage2KHR vkCmdCopyBufferToImage2KHR = 0;
2782 PFN_vkCmdCopyImageToBuffer2KHR vkCmdCopyImageToBuffer2KHR = 0;
2783 PFN_vkCmdBlitImage2KHR vkCmdBlitImage2KHR = 0;
2784 PFN_vkCmdResolveImage2KHR vkCmdResolveImage2KHR = 0;
2785
2786 //=== VK_EXT_device_fault ===
2787 PFN_vkGetDeviceFaultInfoEXT vkGetDeviceFaultInfoEXT = 0;
2788
2789 //=== VK_EXT_vertex_input_dynamic_state ===
2790 PFN_vkCmdSetVertexInputEXT vkCmdSetVertexInputEXT = 0;
2791
2792 # if defined( VK_USE_PLATFORM_FUCHSIA )
2793 //=== VK_FUCHSIA_external_memory ===
2794 PFN_vkGetMemoryZirconHandleFUCHSIA vkGetMemoryZirconHandleFUCHSIA = 0;
2795 PFN_vkGetMemoryZirconHandlePropertiesFUCHSIA vkGetMemoryZirconHandlePropertiesFUCHSIA = 0;
2796 # else
2797 PFN_dummy vkGetMemoryZirconHandleFUCHSIA_placeholder = 0;
2798 PFN_dummy vkGetMemoryZirconHandlePropertiesFUCHSIA_placeholder = 0;
2799 # endif /*VK_USE_PLATFORM_FUCHSIA*/
2800
2801 # if defined( VK_USE_PLATFORM_FUCHSIA )
2802 //=== VK_FUCHSIA_external_semaphore ===
2803 PFN_vkImportSemaphoreZirconHandleFUCHSIA vkImportSemaphoreZirconHandleFUCHSIA = 0;
2804 PFN_vkGetSemaphoreZirconHandleFUCHSIA vkGetSemaphoreZirconHandleFUCHSIA = 0;
2805 # else
2806 PFN_dummy vkImportSemaphoreZirconHandleFUCHSIA_placeholder = 0;
2807 PFN_dummy vkGetSemaphoreZirconHandleFUCHSIA_placeholder = 0;
2808 # endif /*VK_USE_PLATFORM_FUCHSIA*/
2809
2810 # if defined( VK_USE_PLATFORM_FUCHSIA )
2811 //=== VK_FUCHSIA_buffer_collection ===
2812 PFN_vkCreateBufferCollectionFUCHSIA vkCreateBufferCollectionFUCHSIA = 0;
2813 PFN_vkSetBufferCollectionImageConstraintsFUCHSIA vkSetBufferCollectionImageConstraintsFUCHSIA = 0;
2814 PFN_vkSetBufferCollectionBufferConstraintsFUCHSIA vkSetBufferCollectionBufferConstraintsFUCHSIA = 0;
2815 PFN_vkDestroyBufferCollectionFUCHSIA vkDestroyBufferCollectionFUCHSIA = 0;
2816 PFN_vkGetBufferCollectionPropertiesFUCHSIA vkGetBufferCollectionPropertiesFUCHSIA = 0;
2817 # else
2818 PFN_dummy vkCreateBufferCollectionFUCHSIA_placeholder = 0;
2819 PFN_dummy vkSetBufferCollectionImageConstraintsFUCHSIA_placeholder = 0;
2820 PFN_dummy vkSetBufferCollectionBufferConstraintsFUCHSIA_placeholder = 0;
2821 PFN_dummy vkDestroyBufferCollectionFUCHSIA_placeholder = 0;
2822 PFN_dummy vkGetBufferCollectionPropertiesFUCHSIA_placeholder = 0;
2823 # endif /*VK_USE_PLATFORM_FUCHSIA*/
2824
2825 //=== VK_HUAWEI_subpass_shading ===
2826 PFN_vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI = 0;
2827 PFN_vkCmdSubpassShadingHUAWEI vkCmdSubpassShadingHUAWEI = 0;
2828
2829 //=== VK_HUAWEI_invocation_mask ===
2830 PFN_vkCmdBindInvocationMaskHUAWEI vkCmdBindInvocationMaskHUAWEI = 0;
2831
2832 //=== VK_NV_external_memory_rdma ===
2833 PFN_vkGetMemoryRemoteAddressNV vkGetMemoryRemoteAddressNV = 0;
2834
2835 //=== VK_EXT_pipeline_properties ===
2836 PFN_vkGetPipelinePropertiesEXT vkGetPipelinePropertiesEXT = 0;
2837
2838 //=== VK_EXT_extended_dynamic_state2 ===
2839 PFN_vkCmdSetPatchControlPointsEXT vkCmdSetPatchControlPointsEXT = 0;
2840 PFN_vkCmdSetRasterizerDiscardEnableEXT vkCmdSetRasterizerDiscardEnableEXT = 0;
2841 PFN_vkCmdSetDepthBiasEnableEXT vkCmdSetDepthBiasEnableEXT = 0;
2842 PFN_vkCmdSetLogicOpEXT vkCmdSetLogicOpEXT = 0;
2843 PFN_vkCmdSetPrimitiveRestartEnableEXT vkCmdSetPrimitiveRestartEnableEXT = 0;
2844
2845 //=== VK_EXT_color_write_enable ===
2846 PFN_vkCmdSetColorWriteEnableEXT vkCmdSetColorWriteEnableEXT = 0;
2847
2848 //=== VK_KHR_ray_tracing_maintenance1 ===
2849 PFN_vkCmdTraceRaysIndirect2KHR vkCmdTraceRaysIndirect2KHR = 0;
2850
2851 //=== VK_EXT_multi_draw ===
2852 PFN_vkCmdDrawMultiEXT vkCmdDrawMultiEXT = 0;
2853 PFN_vkCmdDrawMultiIndexedEXT vkCmdDrawMultiIndexedEXT = 0;
2854
2855 //=== VK_EXT_opacity_micromap ===
2856 PFN_vkCreateMicromapEXT vkCreateMicromapEXT = 0;
2857 PFN_vkDestroyMicromapEXT vkDestroyMicromapEXT = 0;
2858 PFN_vkCmdBuildMicromapsEXT vkCmdBuildMicromapsEXT = 0;
2859 PFN_vkBuildMicromapsEXT vkBuildMicromapsEXT = 0;
2860 PFN_vkCopyMicromapEXT vkCopyMicromapEXT = 0;
2861 PFN_vkCopyMicromapToMemoryEXT vkCopyMicromapToMemoryEXT = 0;
2862 PFN_vkCopyMemoryToMicromapEXT vkCopyMemoryToMicromapEXT = 0;
2863 PFN_vkWriteMicromapsPropertiesEXT vkWriteMicromapsPropertiesEXT = 0;
2864 PFN_vkCmdCopyMicromapEXT vkCmdCopyMicromapEXT = 0;
2865 PFN_vkCmdCopyMicromapToMemoryEXT vkCmdCopyMicromapToMemoryEXT = 0;
2866 PFN_vkCmdCopyMemoryToMicromapEXT vkCmdCopyMemoryToMicromapEXT = 0;
2867 PFN_vkCmdWriteMicromapsPropertiesEXT vkCmdWriteMicromapsPropertiesEXT = 0;
2868 PFN_vkGetDeviceMicromapCompatibilityEXT vkGetDeviceMicromapCompatibilityEXT = 0;
2869 PFN_vkGetMicromapBuildSizesEXT vkGetMicromapBuildSizesEXT = 0;
2870
2871 //=== VK_HUAWEI_cluster_culling_shader ===
2872 PFN_vkCmdDrawClusterHUAWEI vkCmdDrawClusterHUAWEI = 0;
2873 PFN_vkCmdDrawClusterIndirectHUAWEI vkCmdDrawClusterIndirectHUAWEI = 0;
2874
2875 //=== VK_EXT_pageable_device_local_memory ===
2876 PFN_vkSetDeviceMemoryPriorityEXT vkSetDeviceMemoryPriorityEXT = 0;
2877
2878 //=== VK_KHR_maintenance4 ===
2879 PFN_vkGetDeviceBufferMemoryRequirementsKHR vkGetDeviceBufferMemoryRequirementsKHR = 0;
2880 PFN_vkGetDeviceImageMemoryRequirementsKHR vkGetDeviceImageMemoryRequirementsKHR = 0;
2881 PFN_vkGetDeviceImageSparseMemoryRequirementsKHR vkGetDeviceImageSparseMemoryRequirementsKHR = 0;
2882
2883 //=== VK_VALVE_descriptor_set_host_mapping ===
2884 PFN_vkGetDescriptorSetLayoutHostMappingInfoVALVE vkGetDescriptorSetLayoutHostMappingInfoVALVE = 0;
2885 PFN_vkGetDescriptorSetHostMappingVALVE vkGetDescriptorSetHostMappingVALVE = 0;
2886
2887 //=== VK_NV_copy_memory_indirect ===
2888 PFN_vkCmdCopyMemoryIndirectNV vkCmdCopyMemoryIndirectNV = 0;
2889 PFN_vkCmdCopyMemoryToImageIndirectNV vkCmdCopyMemoryToImageIndirectNV = 0;
2890
2891 //=== VK_NV_memory_decompression ===
2892 PFN_vkCmdDecompressMemoryNV vkCmdDecompressMemoryNV = 0;
2893 PFN_vkCmdDecompressMemoryIndirectCountNV vkCmdDecompressMemoryIndirectCountNV = 0;
2894
2895 //=== VK_NV_device_generated_commands_compute ===
2896 PFN_vkGetPipelineIndirectMemoryRequirementsNV vkGetPipelineIndirectMemoryRequirementsNV = 0;
2897 PFN_vkCmdUpdatePipelineIndirectBufferNV vkCmdUpdatePipelineIndirectBufferNV = 0;
2898 PFN_vkGetPipelineIndirectDeviceAddressNV vkGetPipelineIndirectDeviceAddressNV = 0;
2899
2900 # if defined( VK_USE_PLATFORM_OHOS )
2901 //=== VK_OHOS_external_memory ===
2902 PFN_vkGetNativeBufferPropertiesOHOS vkGetNativeBufferPropertiesOHOS = 0;
2903 PFN_vkGetMemoryNativeBufferOHOS vkGetMemoryNativeBufferOHOS = 0;
2904 # else
2905 PFN_dummy vkGetNativeBufferPropertiesOHOS_placeholder = 0;
2906 PFN_dummy vkGetMemoryNativeBufferOHOS_placeholder = 0;
2907 # endif /*VK_USE_PLATFORM_OHOS*/
2908
2909 //=== VK_EXT_extended_dynamic_state3 ===
2910 PFN_vkCmdSetDepthClampEnableEXT vkCmdSetDepthClampEnableEXT = 0;
2911 PFN_vkCmdSetPolygonModeEXT vkCmdSetPolygonModeEXT = 0;
2912 PFN_vkCmdSetRasterizationSamplesEXT vkCmdSetRasterizationSamplesEXT = 0;
2913 PFN_vkCmdSetSampleMaskEXT vkCmdSetSampleMaskEXT = 0;
2914 PFN_vkCmdSetAlphaToCoverageEnableEXT vkCmdSetAlphaToCoverageEnableEXT = 0;
2915 PFN_vkCmdSetAlphaToOneEnableEXT vkCmdSetAlphaToOneEnableEXT = 0;
2916 PFN_vkCmdSetLogicOpEnableEXT vkCmdSetLogicOpEnableEXT = 0;
2917 PFN_vkCmdSetColorBlendEnableEXT vkCmdSetColorBlendEnableEXT = 0;
2918 PFN_vkCmdSetColorBlendEquationEXT vkCmdSetColorBlendEquationEXT = 0;
2919 PFN_vkCmdSetColorWriteMaskEXT vkCmdSetColorWriteMaskEXT = 0;
2920 PFN_vkCmdSetTessellationDomainOriginEXT vkCmdSetTessellationDomainOriginEXT = 0;
2921 PFN_vkCmdSetRasterizationStreamEXT vkCmdSetRasterizationStreamEXT = 0;
2922 PFN_vkCmdSetConservativeRasterizationModeEXT vkCmdSetConservativeRasterizationModeEXT = 0;
2923 PFN_vkCmdSetExtraPrimitiveOverestimationSizeEXT vkCmdSetExtraPrimitiveOverestimationSizeEXT = 0;
2924 PFN_vkCmdSetDepthClipEnableEXT vkCmdSetDepthClipEnableEXT = 0;
2925 PFN_vkCmdSetSampleLocationsEnableEXT vkCmdSetSampleLocationsEnableEXT = 0;
2926 PFN_vkCmdSetColorBlendAdvancedEXT vkCmdSetColorBlendAdvancedEXT = 0;
2927 PFN_vkCmdSetProvokingVertexModeEXT vkCmdSetProvokingVertexModeEXT = 0;
2928 PFN_vkCmdSetLineRasterizationModeEXT vkCmdSetLineRasterizationModeEXT = 0;
2929 PFN_vkCmdSetLineStippleEnableEXT vkCmdSetLineStippleEnableEXT = 0;
2930 PFN_vkCmdSetDepthClipNegativeOneToOneEXT vkCmdSetDepthClipNegativeOneToOneEXT = 0;
2931 PFN_vkCmdSetViewportWScalingEnableNV vkCmdSetViewportWScalingEnableNV = 0;
2932 PFN_vkCmdSetViewportSwizzleNV vkCmdSetViewportSwizzleNV = 0;
2933 PFN_vkCmdSetCoverageToColorEnableNV vkCmdSetCoverageToColorEnableNV = 0;
2934 PFN_vkCmdSetCoverageToColorLocationNV vkCmdSetCoverageToColorLocationNV = 0;
2935 PFN_vkCmdSetCoverageModulationModeNV vkCmdSetCoverageModulationModeNV = 0;
2936 PFN_vkCmdSetCoverageModulationTableEnableNV vkCmdSetCoverageModulationTableEnableNV = 0;
2937 PFN_vkCmdSetCoverageModulationTableNV vkCmdSetCoverageModulationTableNV = 0;
2938 PFN_vkCmdSetShadingRateImageEnableNV vkCmdSetShadingRateImageEnableNV = 0;
2939 PFN_vkCmdSetRepresentativeFragmentTestEnableNV vkCmdSetRepresentativeFragmentTestEnableNV = 0;
2940 PFN_vkCmdSetCoverageReductionModeNV vkCmdSetCoverageReductionModeNV = 0;
2941
2942 //=== VK_ARM_tensors ===
2943 PFN_vkCreateTensorARM vkCreateTensorARM = 0;
2944 PFN_vkDestroyTensorARM vkDestroyTensorARM = 0;
2945 PFN_vkCreateTensorViewARM vkCreateTensorViewARM = 0;
2946 PFN_vkDestroyTensorViewARM vkDestroyTensorViewARM = 0;
2947 PFN_vkGetTensorMemoryRequirementsARM vkGetTensorMemoryRequirementsARM = 0;
2948 PFN_vkBindTensorMemoryARM vkBindTensorMemoryARM = 0;
2949 PFN_vkGetDeviceTensorMemoryRequirementsARM vkGetDeviceTensorMemoryRequirementsARM = 0;
2950 PFN_vkCmdCopyTensorARM vkCmdCopyTensorARM = 0;
2951 PFN_vkGetTensorOpaqueCaptureDescriptorDataARM vkGetTensorOpaqueCaptureDescriptorDataARM = 0;
2952 PFN_vkGetTensorViewOpaqueCaptureDescriptorDataARM vkGetTensorViewOpaqueCaptureDescriptorDataARM = 0;
2953
2954 //=== VK_EXT_shader_module_identifier ===
2955 PFN_vkGetShaderModuleIdentifierEXT vkGetShaderModuleIdentifierEXT = 0;
2956 PFN_vkGetShaderModuleCreateInfoIdentifierEXT vkGetShaderModuleCreateInfoIdentifierEXT = 0;
2957
2958 //=== VK_NV_optical_flow ===
2959 PFN_vkCreateOpticalFlowSessionNV vkCreateOpticalFlowSessionNV = 0;
2960 PFN_vkDestroyOpticalFlowSessionNV vkDestroyOpticalFlowSessionNV = 0;
2961 PFN_vkBindOpticalFlowSessionImageNV vkBindOpticalFlowSessionImageNV = 0;
2962 PFN_vkCmdOpticalFlowExecuteNV vkCmdOpticalFlowExecuteNV = 0;
2963
2964 //=== VK_KHR_maintenance5 ===
2965 PFN_vkCmdBindIndexBuffer2KHR vkCmdBindIndexBuffer2KHR = 0;
2966 PFN_vkGetRenderingAreaGranularityKHR vkGetRenderingAreaGranularityKHR = 0;
2967 PFN_vkGetDeviceImageSubresourceLayoutKHR vkGetDeviceImageSubresourceLayoutKHR = 0;
2968 PFN_vkGetImageSubresourceLayout2KHR vkGetImageSubresourceLayout2KHR = 0;
2969
2970 //=== VK_AMD_anti_lag ===
2971 PFN_vkAntiLagUpdateAMD vkAntiLagUpdateAMD = 0;
2972
2973 //=== VK_KHR_present_wait2 ===
2974 PFN_vkWaitForPresent2KHR vkWaitForPresent2KHR = 0;
2975
2976 //=== VK_EXT_shader_object ===
2977 PFN_vkCreateShadersEXT vkCreateShadersEXT = 0;
2978 PFN_vkDestroyShaderEXT vkDestroyShaderEXT = 0;
2979 PFN_vkGetShaderBinaryDataEXT vkGetShaderBinaryDataEXT = 0;
2980 PFN_vkCmdBindShadersEXT vkCmdBindShadersEXT = 0;
2981 PFN_vkCmdSetDepthClampRangeEXT vkCmdSetDepthClampRangeEXT = 0;
2982
2983 //=== VK_KHR_pipeline_binary ===
2984 PFN_vkCreatePipelineBinariesKHR vkCreatePipelineBinariesKHR = 0;
2985 PFN_vkDestroyPipelineBinaryKHR vkDestroyPipelineBinaryKHR = 0;
2986 PFN_vkGetPipelineKeyKHR vkGetPipelineKeyKHR = 0;
2987 PFN_vkGetPipelineBinaryDataKHR vkGetPipelineBinaryDataKHR = 0;
2988 PFN_vkReleaseCapturedPipelineDataKHR vkReleaseCapturedPipelineDataKHR = 0;
2989
2990 //=== VK_QCOM_tile_properties ===
2991 PFN_vkGetFramebufferTilePropertiesQCOM vkGetFramebufferTilePropertiesQCOM = 0;
2992 PFN_vkGetDynamicRenderingTilePropertiesQCOM vkGetDynamicRenderingTilePropertiesQCOM = 0;
2993
2994 //=== VK_KHR_swapchain_maintenance1 ===
2995 PFN_vkReleaseSwapchainImagesKHR vkReleaseSwapchainImagesKHR = 0;
2996
2997 //=== VK_NV_cooperative_vector ===
2998 PFN_vkConvertCooperativeVectorMatrixNV vkConvertCooperativeVectorMatrixNV = 0;
2999 PFN_vkCmdConvertCooperativeVectorMatrixNV vkCmdConvertCooperativeVectorMatrixNV = 0;
3000
3001 //=== VK_NV_low_latency2 ===
3002 PFN_vkSetLatencySleepModeNV vkSetLatencySleepModeNV = 0;
3003 PFN_vkLatencySleepNV vkLatencySleepNV = 0;
3004 PFN_vkSetLatencyMarkerNV vkSetLatencyMarkerNV = 0;
3005 PFN_vkGetLatencyTimingsNV vkGetLatencyTimingsNV = 0;
3006 PFN_vkQueueNotifyOutOfBandNV vkQueueNotifyOutOfBandNV = 0;
3007
3008 //=== VK_ARM_data_graph ===
3009 PFN_vkCreateDataGraphPipelinesARM vkCreateDataGraphPipelinesARM = 0;
3010 PFN_vkCreateDataGraphPipelineSessionARM vkCreateDataGraphPipelineSessionARM = 0;
3011 PFN_vkGetDataGraphPipelineSessionBindPointRequirementsARM vkGetDataGraphPipelineSessionBindPointRequirementsARM = 0;
3012 PFN_vkGetDataGraphPipelineSessionMemoryRequirementsARM vkGetDataGraphPipelineSessionMemoryRequirementsARM = 0;
3013 PFN_vkBindDataGraphPipelineSessionMemoryARM vkBindDataGraphPipelineSessionMemoryARM = 0;
3014 PFN_vkDestroyDataGraphPipelineSessionARM vkDestroyDataGraphPipelineSessionARM = 0;
3015 PFN_vkCmdDispatchDataGraphARM vkCmdDispatchDataGraphARM = 0;
3016 PFN_vkGetDataGraphPipelineAvailablePropertiesARM vkGetDataGraphPipelineAvailablePropertiesARM = 0;
3017 PFN_vkGetDataGraphPipelinePropertiesARM vkGetDataGraphPipelinePropertiesARM = 0;
3018
3019 //=== VK_EXT_attachment_feedback_loop_dynamic_state ===
3020 PFN_vkCmdSetAttachmentFeedbackLoopEnableEXT vkCmdSetAttachmentFeedbackLoopEnableEXT = 0;
3021
3022 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
3023 //=== VK_QNX_external_memory_screen_buffer ===
3024 PFN_vkGetScreenBufferPropertiesQNX vkGetScreenBufferPropertiesQNX = 0;
3025 # else
3026 PFN_dummy vkGetScreenBufferPropertiesQNX_placeholder = 0;
3027 # endif /*VK_USE_PLATFORM_SCREEN_QNX*/
3028
3029 //=== VK_KHR_line_rasterization ===
3030 PFN_vkCmdSetLineStippleKHR vkCmdSetLineStippleKHR = 0;
3031
3032 //=== VK_KHR_calibrated_timestamps ===
3033 PFN_vkGetCalibratedTimestampsKHR vkGetCalibratedTimestampsKHR = 0;
3034
3035 //=== VK_KHR_maintenance6 ===
3036 PFN_vkCmdBindDescriptorSets2KHR vkCmdBindDescriptorSets2KHR = 0;
3037 PFN_vkCmdPushConstants2KHR vkCmdPushConstants2KHR = 0;
3038 PFN_vkCmdPushDescriptorSet2KHR vkCmdPushDescriptorSet2KHR = 0;
3039 PFN_vkCmdPushDescriptorSetWithTemplate2KHR vkCmdPushDescriptorSetWithTemplate2KHR = 0;
3040 PFN_vkCmdSetDescriptorBufferOffsets2EXT vkCmdSetDescriptorBufferOffsets2EXT = 0;
3041 PFN_vkCmdBindDescriptorBufferEmbeddedSamplers2EXT vkCmdBindDescriptorBufferEmbeddedSamplers2EXT = 0;
3042
3043 //=== VK_QCOM_tile_memory_heap ===
3044 PFN_vkCmdBindTileMemoryQCOM vkCmdBindTileMemoryQCOM = 0;
3045
3046 //=== VK_KHR_copy_memory_indirect ===
3047 PFN_vkCmdCopyMemoryIndirectKHR vkCmdCopyMemoryIndirectKHR = 0;
3048 PFN_vkCmdCopyMemoryToImageIndirectKHR vkCmdCopyMemoryToImageIndirectKHR = 0;
3049
3050 //=== VK_EXT_memory_decompression ===
3051 PFN_vkCmdDecompressMemoryEXT vkCmdDecompressMemoryEXT = 0;
3052 PFN_vkCmdDecompressMemoryIndirectCountEXT vkCmdDecompressMemoryIndirectCountEXT = 0;
3053
3054 //=== VK_NV_external_compute_queue ===
3055 PFN_vkCreateExternalComputeQueueNV vkCreateExternalComputeQueueNV = 0;
3056 PFN_vkDestroyExternalComputeQueueNV vkDestroyExternalComputeQueueNV = 0;
3057 PFN_vkGetExternalComputeQueueDataNV vkGetExternalComputeQueueDataNV = 0;
3058
3059 //=== VK_NV_cluster_acceleration_structure ===
3060 PFN_vkGetClusterAccelerationStructureBuildSizesNV vkGetClusterAccelerationStructureBuildSizesNV = 0;
3061 PFN_vkCmdBuildClusterAccelerationStructureIndirectNV vkCmdBuildClusterAccelerationStructureIndirectNV = 0;
3062
3063 //=== VK_NV_partitioned_acceleration_structure ===
3064 PFN_vkGetPartitionedAccelerationStructuresBuildSizesNV vkGetPartitionedAccelerationStructuresBuildSizesNV = 0;
3065 PFN_vkCmdBuildPartitionedAccelerationStructuresNV vkCmdBuildPartitionedAccelerationStructuresNV = 0;
3066
3067 //=== VK_EXT_device_generated_commands ===
3068 PFN_vkGetGeneratedCommandsMemoryRequirementsEXT vkGetGeneratedCommandsMemoryRequirementsEXT = 0;
3069 PFN_vkCmdPreprocessGeneratedCommandsEXT vkCmdPreprocessGeneratedCommandsEXT = 0;
3070 PFN_vkCmdExecuteGeneratedCommandsEXT vkCmdExecuteGeneratedCommandsEXT = 0;
3071 PFN_vkCreateIndirectCommandsLayoutEXT vkCreateIndirectCommandsLayoutEXT = 0;
3072 PFN_vkDestroyIndirectCommandsLayoutEXT vkDestroyIndirectCommandsLayoutEXT = 0;
3073 PFN_vkCreateIndirectExecutionSetEXT vkCreateIndirectExecutionSetEXT = 0;
3074 PFN_vkDestroyIndirectExecutionSetEXT vkDestroyIndirectExecutionSetEXT = 0;
3075 PFN_vkUpdateIndirectExecutionSetPipelineEXT vkUpdateIndirectExecutionSetPipelineEXT = 0;
3076 PFN_vkUpdateIndirectExecutionSetShaderEXT vkUpdateIndirectExecutionSetShaderEXT = 0;
3077
3078 # if defined( VK_USE_PLATFORM_METAL_EXT )
3079 //=== VK_EXT_external_memory_metal ===
3080 PFN_vkGetMemoryMetalHandleEXT vkGetMemoryMetalHandleEXT = 0;
3081 PFN_vkGetMemoryMetalHandlePropertiesEXT vkGetMemoryMetalHandlePropertiesEXT = 0;
3082 # else
3083 PFN_dummy vkGetMemoryMetalHandleEXT_placeholder = 0;
3084 PFN_dummy vkGetMemoryMetalHandlePropertiesEXT_placeholder = 0;
3085 # endif /*VK_USE_PLATFORM_METAL_EXT*/
3086
3087 //=== VK_ARM_shader_instrumentation ===
3088 PFN_vkCreateShaderInstrumentationARM vkCreateShaderInstrumentationARM = 0;
3089 PFN_vkDestroyShaderInstrumentationARM vkDestroyShaderInstrumentationARM = 0;
3090 PFN_vkCmdBeginShaderInstrumentationARM vkCmdBeginShaderInstrumentationARM = 0;
3091 PFN_vkCmdEndShaderInstrumentationARM vkCmdEndShaderInstrumentationARM = 0;
3092 PFN_vkGetShaderInstrumentationValuesARM vkGetShaderInstrumentationValuesARM = 0;
3093 PFN_vkClearShaderInstrumentationMetricsARM vkClearShaderInstrumentationMetricsARM = 0;
3094
3095 //=== VK_EXT_fragment_density_map_offset ===
3096 PFN_vkCmdEndRendering2EXT vkCmdEndRendering2EXT = 0;
3097
3098 //=== VK_EXT_custom_resolve ===
3099 PFN_vkCmdBeginCustomResolveEXT vkCmdBeginCustomResolveEXT = 0;
3100
3101 //=== VK_KHR_maintenance10 ===
3102 PFN_vkCmdEndRendering2KHR vkCmdEndRendering2KHR = 0;
3103
3104 //=== VK_NV_compute_occupancy_priority ===
3105 PFN_vkCmdSetComputeOccupancyPriorityNV vkCmdSetComputeOccupancyPriorityNV = 0;
3106 };
3107
3108 } // namespace detail
3109
3110 //========================================
3111 //=== RAII HANDLE forward declarations ===
3112 //========================================
3113
3114 //=== VK_VERSION_1_0 ===
3115 class Instance;
3116 class PhysicalDevice;
3117 class Device;
3118 class Queue;
3119 class DeviceMemory;
3120 class Fence;
3121 class Semaphore;
3122 class QueryPool;
3123 class Buffer;
3124 class Image;
3125 class ImageView;
3126 class CommandPool;
3127 class CommandBuffer;
3128 class Event;
3129 class BufferView;
3130 class ShaderModule;
3131 class PipelineCache;
3132 class Pipeline;
3133 class PipelineLayout;
3134 class Sampler;
3135 class DescriptorPool;
3136 class DescriptorSet;
3137 class DescriptorSetLayout;
3138 class Framebuffer;
3139 class RenderPass;
3140
3141 //=== VK_VERSION_1_1 ===
3142 class DescriptorUpdateTemplate;
3143 class SamplerYcbcrConversion;
3144
3145 //=== VK_VERSION_1_3 ===
3146 class PrivateDataSlot;
3147
3148 //=== VK_KHR_surface ===
3149 class SurfaceKHR;
3150
3151 //=== VK_KHR_swapchain ===
3152 class SwapchainKHR;
3153
3154 //=== VK_KHR_display ===
3155 class DisplayKHR;
3156 class DisplayModeKHR;
3157
3158 //=== VK_EXT_debug_report ===
3159 class DebugReportCallbackEXT;
3160
3161 //=== VK_KHR_video_queue ===
3162 class VideoSessionKHR;
3163 class VideoSessionParametersKHR;
3164
3165 //=== VK_NVX_binary_import ===
3166 class CuModuleNVX;
3167 class CuFunctionNVX;
3168
3169 //=== VK_KHR_descriptor_update_template ===
3170 using DescriptorUpdateTemplateKHR = DescriptorUpdateTemplate;
3171
3172 //=== VK_EXT_debug_utils ===
3173 class DebugUtilsMessengerEXT;
3174
3175 //=== VK_EXT_descriptor_heap ===
3176 class TensorARM;
3177
3178 //=== VK_KHR_acceleration_structure ===
3179 class AccelerationStructureKHR;
3180
3181 //=== VK_KHR_sampler_ycbcr_conversion ===
3182 using SamplerYcbcrConversionKHR = SamplerYcbcrConversion;
3183
3184 //=== VK_EXT_validation_cache ===
3185 class ValidationCacheEXT;
3186
3187 //=== VK_NV_ray_tracing ===
3188 class AccelerationStructureNV;
3189
3190 //=== VK_INTEL_performance_query ===
3191 class PerformanceConfigurationINTEL;
3192
3193 //=== VK_KHR_deferred_host_operations ===
3194 class DeferredOperationKHR;
3195
3196 //=== VK_NV_device_generated_commands ===
3197 class IndirectCommandsLayoutNV;
3198
3199 //=== VK_EXT_private_data ===
3200 using PrivateDataSlotEXT = PrivateDataSlot;
3201
3202 # if defined( VK_ENABLE_BETA_EXTENSIONS )
3203 //=== VK_NV_cuda_kernel_launch ===
3204 class CudaModuleNV;
3205 class CudaFunctionNV;
3206 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
3207
3208 # if defined( VK_USE_PLATFORM_FUCHSIA )
3209 //=== VK_FUCHSIA_buffer_collection ===
3210 class BufferCollectionFUCHSIA;
3211 # endif /*VK_USE_PLATFORM_FUCHSIA*/
3212
3213 //=== VK_EXT_opacity_micromap ===
3214 class MicromapEXT;
3215
3216 //=== VK_ARM_tensors ===
3217 class TensorARM;
3218 class TensorViewARM;
3219
3220 //=== VK_NV_optical_flow ===
3221 class OpticalFlowSessionNV;
3222
3223 //=== VK_EXT_shader_object ===
3224 class ShaderEXT;
3225
3226 //=== VK_KHR_pipeline_binary ===
3227 class PipelineBinaryKHR;
3228
3229 //=== VK_ARM_data_graph ===
3230 class DataGraphPipelineSessionARM;
3231
3232 //=== VK_NV_external_compute_queue ===
3233 class ExternalComputeQueueNV;
3234
3235 //=== VK_EXT_device_generated_commands ===
3236 class IndirectCommandsLayoutEXT;
3237 class IndirectExecutionSetEXT;
3238
3239 //=== VK_ARM_shader_instrumentation ===
3240 class ShaderInstrumentationARM;
3241
3242 //====================
3243 //=== RAII HANDLES ===
3244 //====================
3245
3246 template <typename Type>
3247 struct isVulkanRAIIHandleType
3248 {
3249 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = false;
3250 };
3251
3252 class Context
3253 {
3254 public:
3255 # if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
3256 Context() : m_dispatcher( new detail::ContextDispatcher( m_dynamicLoader.getProcAddress<PFN_vkGetInstanceProcAddr>( "vkGetInstanceProcAddr" ) ) )
3257 # else
3258 Context( PFN_vkGetInstanceProcAddr getInstanceProcAddr ) : m_dispatcher( new detail::ContextDispatcher( getInstanceProcAddr ) )
3259 # endif
3260 {
3261 }
3262
3263 ~Context() = default;
3264
3265 Context( Context const & ) = delete;
3266 Context( Context && rhs ) VULKAN_HPP_NOEXCEPT
3267 # if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
3268 : m_dynamicLoader( std::move( rhs.m_dynamicLoader ) )
3269 , m_dispatcher( rhs.m_dispatcher.release() )
3270 # else
3271 : m_dispatcher( rhs.m_dispatcher.release() )
3272 # endif
3273 {
3274 }
3275 Context & operator=( Context const & ) = delete;
3276
3277 Context & operator=( Context && rhs ) VULKAN_HPP_NOEXCEPT
3278 {
3279 if ( this != &rhs )
3280 {
3281 # if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
3282 m_dynamicLoader = std::move( rhs.m_dynamicLoader );
3283 # endif
3284 m_dispatcher.reset( rhs.m_dispatcher.release() );
3285 }
3286 return *this;
3287 }
3288
3289 detail::ContextDispatcher const * getDispatcher() const
3290 {
3291 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
3292 return &*m_dispatcher;
3293 }
3294
3295 void swap( Context & rhs )
3296 {
3297 # if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
3298 std::swap( m_dynamicLoader, rhs.m_dynamicLoader );
3299 # endif
3300 m_dispatcher.swap( rhs.m_dispatcher );
3301 }
3302
3303 //=== VK_VERSION_1_0 ===
3304
3305 // wrapper function for command vkCreateInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateInstance.html
3306 VULKAN_HPP_NODISCARD typename ResultValueType<Instance>::type
3307 createInstance( InstanceCreateInfo const & createInfo,
3308 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3309
3310 // wrapper function for command vkEnumerateInstanceExtensionProperties, see
3311 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceExtensionProperties.html
3312 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<ExtensionProperties>>::type
3313 enumerateInstanceExtensionProperties( Optional<std::string const> layerName VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const;
3314
3315 // wrapper function for command vkEnumerateInstanceLayerProperties, see
3316 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceLayerProperties.html
3317 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<LayerProperties>>::type enumerateInstanceLayerProperties() const;
3318
3319 //=== VK_VERSION_1_1 ===
3320
3321 // wrapper function for command vkEnumerateInstanceVersion, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceVersion.html
3322 VULKAN_HPP_NODISCARD typename ResultValueType<uint32_t>::type enumerateInstanceVersion() const;
3323
3324 private:
3325 # if VULKAN_HPP_ENABLE_DYNAMIC_LOADER_TOOL
3326 VULKAN_HPP_NAMESPACE::detail::DynamicLoader m_dynamicLoader;
3327 # endif
3328 std::unique_ptr<detail::ContextDispatcher> m_dispatcher;
3329 };
3330
3331 // wrapper class for handle VkInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkInstance.html
3332 class Instance
3333 {
3334 public:
3335 using CType = VkInstance;
3336 using CppType = VULKAN_HPP_NAMESPACE::Instance;
3337
3338 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eInstance;
3339 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eInstance;
3340
3341 public:
3342 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
3343 Instance( Context const & context, InstanceCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
3344 {
3345 *this = context.createInstance( createInfo, allocator );
3346 }
3347 # endif
3348
3349 Instance( Context const & context, VkInstance instance, Optional<AllocationCallbacks const> allocator = nullptr )
3350 : m_instance( instance ), m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
3351 {
3352 m_dispatcher.reset( new detail::InstanceDispatcher( context.getDispatcher()->vkGetInstanceProcAddr, static_cast<VkInstance>( m_instance ) ) );
3353 }
3354
3355 Instance( std::nullptr_t ) {}
3356
3357 ~Instance()
3358 {
3359 clear();
3360 }
3361
3362 Instance() = delete;
3363 Instance( Instance const & ) = delete;
3364
3365 Instance( Instance && rhs ) VULKAN_HPP_NOEXCEPT
3366 : m_instance( exchange( rhs.m_instance, {} ) )
3367 , m_allocator( exchange( rhs.m_allocator, {} ) )
3368 , m_dispatcher( rhs.m_dispatcher.release() )
3369 {
3370 }
3371
3372 Instance & operator=( Instance const & ) = delete;
3373
3374 Instance & operator=( Instance && rhs ) VULKAN_HPP_NOEXCEPT
3375 {
3376 if ( this != &rhs )
3377 {
3378 std::swap( m_instance, rhs.m_instance );
3379 std::swap( m_allocator, rhs.m_allocator );
3380 std::swap( m_dispatcher, rhs.m_dispatcher );
3381 }
3382 return *this;
3383 }
3384
3385 VULKAN_HPP_NAMESPACE::Instance const & operator*() const & VULKAN_HPP_NOEXCEPT
3386 {
3387 return m_instance;
3388 }
3389
3390 VULKAN_HPP_NAMESPACE::Instance const && operator*() const && VULKAN_HPP_NOEXCEPT
3391 {
3392 return std::move( m_instance );
3393 }
3394
3395 operator VULKAN_HPP_NAMESPACE::Instance() const VULKAN_HPP_NOEXCEPT
3396 {
3397 return m_instance;
3398 }
3399
3400 void clear() VULKAN_HPP_NOEXCEPT
3401 {
3402 if ( m_instance )
3403 {
3404 getDispatcher()->vkDestroyInstance( static_cast<VkInstance>( m_instance ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
3405 }
3406 m_instance = nullptr;
3407 m_allocator = nullptr;
3408 m_dispatcher = nullptr;
3409 }
3410
3411 VULKAN_HPP_NAMESPACE::Instance release()
3412 {
3413 m_allocator = nullptr;
3414 m_dispatcher = nullptr;
3415 return exchange( m_instance, nullptr );
3416 }
3417
3418 detail::InstanceDispatcher const * getDispatcher() const
3419 {
3420 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
3421 return &*m_dispatcher;
3422 }
3423
3424 void swap( Instance & rhs ) VULKAN_HPP_NOEXCEPT
3425 {
3426 std::swap( m_instance, rhs.m_instance );
3427 std::swap( m_allocator, rhs.m_allocator );
3428 std::swap( m_dispatcher, rhs.m_dispatcher );
3429 }
3430
3431 //=== VK_VERSION_1_0 ===
3432
3433 // wrapper function for command vkEnumeratePhysicalDevices, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDevices.html
3434 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<PhysicalDevice>>::type enumeratePhysicalDevices() const;
3435
3436 // wrapper function for command vkGetInstanceProcAddr, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetInstanceProcAddr.html
3437 VULKAN_HPP_NODISCARD PFN_VoidFunction getProcAddr( std::string const & name ) const VULKAN_HPP_NOEXCEPT;
3438
3439 //=== VK_VERSION_1_1 ===
3440
3441 // wrapper function for command vkEnumeratePhysicalDeviceGroups, see
3442 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroups.html
3443 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<PhysicalDeviceGroupProperties>>::type enumeratePhysicalDeviceGroups() const;
3444
3445 //=== VK_KHR_display ===
3446
3447 // wrapper function for command vkCreateDisplayPlaneSurfaceKHR, see
3448 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayPlaneSurfaceKHR.html
3449 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3450 createDisplayPlaneSurfaceKHR( DisplaySurfaceCreateInfoKHR const & createInfo,
3451 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3452
3453 # if defined( VK_USE_PLATFORM_XLIB_KHR )
3454 //=== VK_KHR_xlib_surface ===
3455
3456 // wrapper function for command vkCreateXlibSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXlibSurfaceKHR.html
3457 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3458 createXlibSurfaceKHR( XlibSurfaceCreateInfoKHR const & createInfo,
3459 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3460 # endif /*VK_USE_PLATFORM_XLIB_KHR*/
3461
3462 # if defined( VK_USE_PLATFORM_XCB_KHR )
3463 //=== VK_KHR_xcb_surface ===
3464
3465 // wrapper function for command vkCreateXcbSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXcbSurfaceKHR.html
3466 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3467 createXcbSurfaceKHR( XcbSurfaceCreateInfoKHR const & createInfo,
3468 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3469 # endif /*VK_USE_PLATFORM_XCB_KHR*/
3470
3471 # if defined( VK_USE_PLATFORM_WAYLAND_KHR )
3472 //=== VK_KHR_wayland_surface ===
3473
3474 // wrapper function for command vkCreateWaylandSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWaylandSurfaceKHR.html
3475 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3476 createWaylandSurfaceKHR( WaylandSurfaceCreateInfoKHR const & createInfo,
3477 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3478 # endif /*VK_USE_PLATFORM_WAYLAND_KHR*/
3479
3480 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
3481 //=== VK_KHR_android_surface ===
3482
3483 // wrapper function for command vkCreateAndroidSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAndroidSurfaceKHR.html
3484 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3485 createAndroidSurfaceKHR( AndroidSurfaceCreateInfoKHR const & createInfo,
3486 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3487 # endif /*VK_USE_PLATFORM_ANDROID_KHR*/
3488
3489 # if defined( VK_USE_PLATFORM_WIN32_KHR )
3490 //=== VK_KHR_win32_surface ===
3491
3492 // wrapper function for command vkCreateWin32SurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWin32SurfaceKHR.html
3493 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3494 createWin32SurfaceKHR( Win32SurfaceCreateInfoKHR const & createInfo,
3495 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3496 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
3497
3498 //=== VK_EXT_debug_report ===
3499
3500 // wrapper function for command vkCreateDebugReportCallbackEXT, see
3501 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugReportCallbackEXT.html
3502 VULKAN_HPP_NODISCARD typename ResultValueType<DebugReportCallbackEXT>::type
3503 createDebugReportCallbackEXT( DebugReportCallbackCreateInfoEXT const & createInfo,
3504 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3505
3506 // wrapper function for command vkDebugReportMessageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugReportMessageEXT.html
3507 void debugReportMessageEXT( DebugReportFlagsEXT flags,
3508 DebugReportObjectTypeEXT objectType,
3509 uint64_t object,
3510 size_t location,
3511 int32_t messageCode,
3512 std::string const & layerPrefix,
3513 std::string const & message ) const VULKAN_HPP_NOEXCEPT;
3514
3515 # if defined( VK_USE_PLATFORM_GGP )
3516 //=== VK_GGP_stream_descriptor_surface ===
3517
3518 // wrapper function for command vkCreateStreamDescriptorSurfaceGGP, see
3519 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateStreamDescriptorSurfaceGGP.html
3520 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3521 createStreamDescriptorSurfaceGGP( StreamDescriptorSurfaceCreateInfoGGP const & createInfo,
3522 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3523 # endif /*VK_USE_PLATFORM_GGP*/
3524
3525 # if defined( VK_USE_PLATFORM_VI_NN )
3526 //=== VK_NN_vi_surface ===
3527
3528 // wrapper function for command vkCreateViSurfaceNN, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateViSurfaceNN.html
3529 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3530 createViSurfaceNN( ViSurfaceCreateInfoNN const & createInfo,
3531 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3532 # endif /*VK_USE_PLATFORM_VI_NN*/
3533
3534 //=== VK_KHR_device_group_creation ===
3535
3536 // wrapper function for command vkEnumeratePhysicalDeviceGroupsKHR, see
3537 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroupsKHR.html
3538 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<PhysicalDeviceGroupProperties>>::type enumeratePhysicalDeviceGroupsKHR() const;
3539
3540 # if defined( VK_USE_PLATFORM_IOS_MVK )
3541 //=== VK_MVK_ios_surface ===
3542
3543 // wrapper function for command vkCreateIOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIOSSurfaceMVK.html
3544 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3545 createIOSSurfaceMVK( IOSSurfaceCreateInfoMVK const & createInfo,
3546 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3547 # endif /*VK_USE_PLATFORM_IOS_MVK*/
3548
3549 # if defined( VK_USE_PLATFORM_MACOS_MVK )
3550 //=== VK_MVK_macos_surface ===
3551
3552 // wrapper function for command vkCreateMacOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMacOSSurfaceMVK.html
3553 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3554 createMacOSSurfaceMVK( MacOSSurfaceCreateInfoMVK const & createInfo,
3555 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3556 # endif /*VK_USE_PLATFORM_MACOS_MVK*/
3557
3558 //=== VK_EXT_debug_utils ===
3559
3560 // wrapper function for command vkCreateDebugUtilsMessengerEXT, see
3561 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugUtilsMessengerEXT.html
3562 VULKAN_HPP_NODISCARD typename ResultValueType<DebugUtilsMessengerEXT>::type
3563 createDebugUtilsMessengerEXT( DebugUtilsMessengerCreateInfoEXT const & createInfo,
3564 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3565
3566 // wrapper function for command vkSubmitDebugUtilsMessageEXT, see
3567 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSubmitDebugUtilsMessageEXT.html
3568 void submitDebugUtilsMessageEXT( DebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
3569 DebugUtilsMessageTypeFlagsEXT messageTypes,
3570 DebugUtilsMessengerCallbackDataEXT const & callbackData ) const VULKAN_HPP_NOEXCEPT;
3571
3572 # if defined( VK_USE_PLATFORM_FUCHSIA )
3573 //=== VK_FUCHSIA_imagepipe_surface ===
3574
3575 // wrapper function for command vkCreateImagePipeSurfaceFUCHSIA, see
3576 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImagePipeSurfaceFUCHSIA.html
3577 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3578 createImagePipeSurfaceFUCHSIA( ImagePipeSurfaceCreateInfoFUCHSIA const & createInfo,
3579 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3580 # endif /*VK_USE_PLATFORM_FUCHSIA*/
3581
3582 # if defined( VK_USE_PLATFORM_METAL_EXT )
3583 //=== VK_EXT_metal_surface ===
3584
3585 // wrapper function for command vkCreateMetalSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMetalSurfaceEXT.html
3586 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3587 createMetalSurfaceEXT( MetalSurfaceCreateInfoEXT const & createInfo,
3588 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3589 # endif /*VK_USE_PLATFORM_METAL_EXT*/
3590
3591 //=== VK_EXT_headless_surface ===
3592
3593 // wrapper function for command vkCreateHeadlessSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateHeadlessSurfaceEXT.html
3594 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3595 createHeadlessSurfaceEXT( HeadlessSurfaceCreateInfoEXT const & createInfo,
3596 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3597
3598 # if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
3599 //=== VK_EXT_directfb_surface ===
3600
3601 // wrapper function for command vkCreateDirectFBSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDirectFBSurfaceEXT.html
3602 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3603 createDirectFBSurfaceEXT( DirectFBSurfaceCreateInfoEXT const & createInfo,
3604 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3605 # endif /*VK_USE_PLATFORM_DIRECTFB_EXT*/
3606
3607 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
3608 //=== VK_QNX_screen_surface ===
3609
3610 // wrapper function for command vkCreateScreenSurfaceQNX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateScreenSurfaceQNX.html
3611 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3612 createScreenSurfaceQNX( ScreenSurfaceCreateInfoQNX const & createInfo,
3613 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3614 # endif /*VK_USE_PLATFORM_SCREEN_QNX*/
3615
3616 # if defined( VK_USE_PLATFORM_OHOS )
3617 //=== VK_OHOS_surface ===
3618
3619 // wrapper function for command vkCreateSurfaceOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSurfaceOHOS.html
3620 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3621 createSurfaceOHOS( SurfaceCreateInfoOHOS const & createInfo,
3622 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3623 # endif /*VK_USE_PLATFORM_OHOS*/
3624
3625 # if defined( VK_USE_PLATFORM_UBM_SEC )
3626 //=== VK_SEC_ubm_surface ===
3627
3628 // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html
3629 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceKHR>::type
3630 createUbmSurfaceSEC( UbmSurfaceCreateInfoSEC const & createInfo,
3631 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3632 # endif /*VK_USE_PLATFORM_UBM_SEC*/
3633
3634 private:
3635 VULKAN_HPP_NAMESPACE::Instance m_instance = {};
3636 AllocationCallbacks const * m_allocator = {};
3637 std::unique_ptr<detail::InstanceDispatcher> m_dispatcher;
3638 };
3639
3640 template <>
3641 struct isVulkanRAIIHandleType<Instance>
3642 {
3643 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
3644 };
3645
3646 // wrapper class for handle VkPhysicalDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkPhysicalDevice.html
3647 class PhysicalDevice
3648 {
3649 public:
3650 using CType = VkPhysicalDevice;
3651 using CppType = VULKAN_HPP_NAMESPACE::PhysicalDevice;
3652
3653 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::ePhysicalDevice;
3654 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::ePhysicalDevice;
3655
3656 public:
3657 PhysicalDevice( Instance const & instance, VkPhysicalDevice physicalDevice )
3658 : m_physicalDevice( physicalDevice ), m_dispatcher( instance.getDispatcher() )
3659 {
3660 }
3661
3662 PhysicalDevice( std::nullptr_t ) {}
3663
3664 ~PhysicalDevice()
3665 {
3666 clear();
3667 }
3668
3669 PhysicalDevice() = delete;
3670
3671 PhysicalDevice( PhysicalDevice const & rhs ) : m_physicalDevice( rhs.m_physicalDevice ), m_dispatcher( rhs.m_dispatcher ) {}
3672
3673 PhysicalDevice( PhysicalDevice && rhs ) VULKAN_HPP_NOEXCEPT
3674 : m_physicalDevice( exchange( rhs.m_physicalDevice, {} ) )
3675 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
3676 {
3677 }
3678
3679 PhysicalDevice & operator=( PhysicalDevice const & rhs )
3680 {
3681 m_physicalDevice = rhs.m_physicalDevice;
3682 m_dispatcher = rhs.m_dispatcher;
3683 return *this;
3684 }
3685
3686 PhysicalDevice & operator=( PhysicalDevice && rhs ) VULKAN_HPP_NOEXCEPT
3687 {
3688 if ( this != &rhs )
3689 {
3690 std::swap( m_physicalDevice, rhs.m_physicalDevice );
3691 std::swap( m_dispatcher, rhs.m_dispatcher );
3692 }
3693 return *this;
3694 }
3695
3696 VULKAN_HPP_NAMESPACE::PhysicalDevice const & operator*() const & VULKAN_HPP_NOEXCEPT
3697 {
3698 return m_physicalDevice;
3699 }
3700
3701 VULKAN_HPP_NAMESPACE::PhysicalDevice const && operator*() const && VULKAN_HPP_NOEXCEPT
3702 {
3703 return std::move( m_physicalDevice );
3704 }
3705
3706 operator VULKAN_HPP_NAMESPACE::PhysicalDevice() const VULKAN_HPP_NOEXCEPT
3707 {
3708 return m_physicalDevice;
3709 }
3710
3711 void clear() VULKAN_HPP_NOEXCEPT
3712 {
3713 m_physicalDevice = nullptr;
3714 m_dispatcher = nullptr;
3715 }
3716
3717 VULKAN_HPP_NAMESPACE::PhysicalDevice release()
3718 {
3719 m_dispatcher = nullptr;
3720 return exchange( m_physicalDevice, nullptr );
3721 }
3722
3723 detail::InstanceDispatcher const * getDispatcher() const
3724 {
3725 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
3726 return m_dispatcher;
3727 }
3728
3729 void swap( PhysicalDevice & rhs ) VULKAN_HPP_NOEXCEPT
3730 {
3731 std::swap( m_physicalDevice, rhs.m_physicalDevice );
3732 std::swap( m_dispatcher, rhs.m_dispatcher );
3733 }
3734
3735 //=== VK_VERSION_1_0 ===
3736
3737 // wrapper function for command vkGetPhysicalDeviceFeatures, see
3738 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures.html
3739 VULKAN_HPP_NODISCARD PhysicalDeviceFeatures getFeatures() const VULKAN_HPP_NOEXCEPT;
3740
3741 // wrapper function for command vkGetPhysicalDeviceFormatProperties, see
3742 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties.html
3743 VULKAN_HPP_NODISCARD FormatProperties getFormatProperties( Format format ) const VULKAN_HPP_NOEXCEPT;
3744
3745 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties, see
3746 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties.html
3747 VULKAN_HPP_NODISCARD typename ResultValueType<ImageFormatProperties>::type getImageFormatProperties(
3748 Format format, ImageType type, ImageTiling tiling, ImageUsageFlags usage, ImageCreateFlags flags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
3749
3750 // wrapper function for command vkGetPhysicalDeviceProperties, see
3751 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties.html
3752 VULKAN_HPP_NODISCARD PhysicalDeviceProperties getProperties() const VULKAN_HPP_NOEXCEPT;
3753
3754 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties, see
3755 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties.html
3756 VULKAN_HPP_NODISCARD std::vector<QueueFamilyProperties> getQueueFamilyProperties() const;
3757
3758 // wrapper function for command vkGetPhysicalDeviceMemoryProperties, see
3759 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties.html
3760 VULKAN_HPP_NODISCARD PhysicalDeviceMemoryProperties getMemoryProperties() const VULKAN_HPP_NOEXCEPT;
3761
3762 // wrapper function for command vkCreateDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDevice.html
3763 VULKAN_HPP_NODISCARD typename ResultValueType<Device>::type
3764 createDevice( DeviceCreateInfo const & createInfo,
3765 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
3766
3767 // wrapper function for command vkEnumerateDeviceExtensionProperties, see
3768 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceExtensionProperties.html
3769 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<ExtensionProperties>>::type
3770 enumerateDeviceExtensionProperties( Optional<std::string const> layerName VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const;
3771
3772 // wrapper function for command vkEnumerateDeviceLayerProperties, see
3773 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceLayerProperties.html
3774 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<LayerProperties>>::type enumerateDeviceLayerProperties() const;
3775
3776 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties, see
3777 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties.html
3778 VULKAN_HPP_NODISCARD std::vector<SparseImageFormatProperties>
3779 getSparseImageFormatProperties( Format format, ImageType type, SampleCountFlagBits samples, ImageUsageFlags usage, ImageTiling tiling ) const;
3780
3781 //=== VK_VERSION_1_1 ===
3782
3783 // wrapper function for command vkGetPhysicalDeviceFeatures2, see
3784 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2.html
3785 VULKAN_HPP_NODISCARD PhysicalDeviceFeatures2 getFeatures2() const VULKAN_HPP_NOEXCEPT;
3786
3787 // wrapper function for command vkGetPhysicalDeviceFeatures2, see
3788 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2.html
3789 template <typename X, typename Y, typename... Z>
3790 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getFeatures2() const VULKAN_HPP_NOEXCEPT;
3791
3792 // wrapper function for command vkGetPhysicalDeviceProperties2, see
3793 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html
3794 void getProperties2( PhysicalDeviceProperties2 * pProperties ) const VULKAN_HPP_NOEXCEPT;
3795
3796 // wrapper function for command vkGetPhysicalDeviceProperties2, see
3797 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html
3798 VULKAN_HPP_NODISCARD PhysicalDeviceProperties2 getProperties2() const VULKAN_HPP_NOEXCEPT;
3799
3800 // wrapper function for command vkGetPhysicalDeviceProperties2, see
3801 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html
3802 template <typename X, typename Y, typename... Z>
3803 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getProperties2() const VULKAN_HPP_NOEXCEPT;
3804
3805 // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see
3806 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html
3807 void getFormatProperties2( Format format, FormatProperties2 * pFormatProperties ) const VULKAN_HPP_NOEXCEPT;
3808
3809 // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see
3810 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html
3811 VULKAN_HPP_NODISCARD FormatProperties2 getFormatProperties2( Format format ) const VULKAN_HPP_NOEXCEPT;
3812
3813 // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see
3814 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html
3815 template <typename X, typename Y, typename... Z>
3816 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getFormatProperties2( Format format ) const VULKAN_HPP_NOEXCEPT;
3817
3818 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see
3819 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html
3820 VULKAN_HPP_NODISCARD typename ResultValueType<ImageFormatProperties2>::type
3821 getImageFormatProperties2( PhysicalDeviceImageFormatInfo2 const & imageFormatInfo ) const;
3822
3823 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see
3824 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html
3825 template <typename X, typename Y, typename... Z>
3826 VULKAN_HPP_NODISCARD typename ResultValueType<StructureChain<X, Y, Z...>>::type
3827 getImageFormatProperties2( PhysicalDeviceImageFormatInfo2 const & imageFormatInfo ) const;
3828
3829 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
3830 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
3831 VULKAN_HPP_NODISCARD std::vector<QueueFamilyProperties2> getQueueFamilyProperties2() const;
3832
3833 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
3834 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
3835 template <typename StructureChain>
3836 VULKAN_HPP_NODISCARD std::vector<StructureChain> getQueueFamilyProperties2() const;
3837
3838 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2, see
3839 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2.html
3840 VULKAN_HPP_NODISCARD PhysicalDeviceMemoryProperties2 getMemoryProperties2() const VULKAN_HPP_NOEXCEPT;
3841
3842 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2, see
3843 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2.html
3844 template <typename X, typename Y, typename... Z>
3845 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getMemoryProperties2() const VULKAN_HPP_NOEXCEPT;
3846
3847 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2, see
3848 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2.html
3849 VULKAN_HPP_NODISCARD std::vector<SparseImageFormatProperties2>
3850 getSparseImageFormatProperties2( PhysicalDeviceSparseImageFormatInfo2 const & formatInfo ) const;
3851
3852 // wrapper function for command vkGetPhysicalDeviceExternalBufferProperties, see
3853 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalBufferProperties.html
3854 VULKAN_HPP_NODISCARD ExternalBufferProperties
3855 getExternalBufferProperties( PhysicalDeviceExternalBufferInfo const & externalBufferInfo ) const VULKAN_HPP_NOEXCEPT;
3856
3857 // wrapper function for command vkGetPhysicalDeviceExternalFenceProperties, see
3858 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalFenceProperties.html
3859 VULKAN_HPP_NODISCARD ExternalFenceProperties
3860 getExternalFenceProperties( PhysicalDeviceExternalFenceInfo const & externalFenceInfo ) const VULKAN_HPP_NOEXCEPT;
3861
3862 // wrapper function for command vkGetPhysicalDeviceExternalSemaphoreProperties, see
3863 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalSemaphoreProperties.html
3864 VULKAN_HPP_NODISCARD ExternalSemaphoreProperties
3865 getExternalSemaphoreProperties( PhysicalDeviceExternalSemaphoreInfo const & externalSemaphoreInfo ) const VULKAN_HPP_NOEXCEPT;
3866
3867 //=== VK_VERSION_1_3 ===
3868
3869 // wrapper function for command vkGetPhysicalDeviceToolProperties, see
3870 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolProperties.html
3871 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<PhysicalDeviceToolProperties>>::type getToolProperties() const;
3872
3873 //=== VK_KHR_surface ===
3874
3875 // wrapper function for command vkGetPhysicalDeviceSurfaceSupportKHR, see
3876 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceSupportKHR.html
3877 VULKAN_HPP_NODISCARD typename ResultValueType<Bool32>::type getSurfaceSupportKHR( uint32_t queueFamilyIndex,
3878 VULKAN_HPP_NAMESPACE::SurfaceKHR surface ) const;
3879
3880 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilitiesKHR, see
3881 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilitiesKHR.html
3882 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceCapabilitiesKHR>::type getSurfaceCapabilitiesKHR( VULKAN_HPP_NAMESPACE::SurfaceKHR surface ) const;
3883
3884 // wrapper function for command vkGetPhysicalDeviceSurfaceFormatsKHR, see
3885 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormatsKHR.html
3886 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<SurfaceFormatKHR>>::type
3887 getSurfaceFormatsKHR( VULKAN_HPP_NAMESPACE::SurfaceKHR surface VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
3888
3889 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModesKHR, see
3890 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModesKHR.html
3891 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<PresentModeKHR>>::type
3892 getSurfacePresentModesKHR( VULKAN_HPP_NAMESPACE::SurfaceKHR surface VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
3893
3894 //=== VK_KHR_swapchain ===
3895
3896 // wrapper function for command vkGetPhysicalDevicePresentRectanglesKHR, see
3897 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDevicePresentRectanglesKHR.html
3898 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<Rect2D>>::type getPresentRectanglesKHR( VULKAN_HPP_NAMESPACE::SurfaceKHR surface ) const;
3899
3900 //=== VK_KHR_display ===
3901
3902 // wrapper function for command vkGetPhysicalDeviceDisplayPropertiesKHR, see
3903 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPropertiesKHR.html
3904 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DisplayPropertiesKHR>>::type getDisplayPropertiesKHR() const;
3905
3906 // wrapper function for command vkGetPhysicalDeviceDisplayPlanePropertiesKHR, see
3907 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlanePropertiesKHR.html
3908 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DisplayPlanePropertiesKHR>>::type getDisplayPlanePropertiesKHR() const;
3909
3910 // wrapper function for command vkGetDisplayPlaneSupportedDisplaysKHR, see
3911 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneSupportedDisplaysKHR.html
3912 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DisplayKHR>>::type getDisplayPlaneSupportedDisplaysKHR( uint32_t planeIndex ) const;
3913
3914 # if defined( VK_USE_PLATFORM_XLIB_KHR )
3915 //=== VK_KHR_xlib_surface ===
3916
3917 // wrapper function for command vkGetPhysicalDeviceXlibPresentationSupportKHR, see
3918 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceXlibPresentationSupportKHR.html
3919 VULKAN_HPP_NODISCARD Bool32 getXlibPresentationSupportKHR( uint32_t queueFamilyIndex, Display & dpy, VisualID visualID ) const VULKAN_HPP_NOEXCEPT;
3920 # endif /*VK_USE_PLATFORM_XLIB_KHR*/
3921
3922 # if defined( VK_USE_PLATFORM_XCB_KHR )
3923 //=== VK_KHR_xcb_surface ===
3924
3925 // wrapper function for command vkGetPhysicalDeviceXcbPresentationSupportKHR, see
3926 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceXcbPresentationSupportKHR.html
3927 VULKAN_HPP_NODISCARD Bool32 getXcbPresentationSupportKHR( uint32_t queueFamilyIndex,
3928 xcb_connection_t & connection,
3929 xcb_visualid_t visual_id ) const VULKAN_HPP_NOEXCEPT;
3930 # endif /*VK_USE_PLATFORM_XCB_KHR*/
3931
3932 # if defined( VK_USE_PLATFORM_WAYLAND_KHR )
3933 //=== VK_KHR_wayland_surface ===
3934
3935 // wrapper function for command vkGetPhysicalDeviceWaylandPresentationSupportKHR, see
3936 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceWaylandPresentationSupportKHR.html
3937 VULKAN_HPP_NODISCARD Bool32 getWaylandPresentationSupportKHR( uint32_t queueFamilyIndex, struct wl_display & display ) const VULKAN_HPP_NOEXCEPT;
3938 # endif /*VK_USE_PLATFORM_WAYLAND_KHR*/
3939
3940 # if defined( VK_USE_PLATFORM_WIN32_KHR )
3941 //=== VK_KHR_win32_surface ===
3942
3943 // wrapper function for command vkGetPhysicalDeviceWin32PresentationSupportKHR, see
3944 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceWin32PresentationSupportKHR.html
3945 VULKAN_HPP_NODISCARD Bool32 getWin32PresentationSupportKHR( uint32_t queueFamilyIndex ) const VULKAN_HPP_NOEXCEPT;
3946 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
3947
3948 //=== VK_KHR_video_queue ===
3949
3950 // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see
3951 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html
3952 VULKAN_HPP_NODISCARD typename ResultValueType<VideoCapabilitiesKHR>::type getVideoCapabilitiesKHR( VideoProfileInfoKHR const & videoProfile ) const;
3953
3954 // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see
3955 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html
3956 template <typename X, typename Y, typename... Z>
3957 VULKAN_HPP_NODISCARD typename ResultValueType<StructureChain<X, Y, Z...>>::type getVideoCapabilitiesKHR( VideoProfileInfoKHR const & videoProfile ) const;
3958
3959 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
3960 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
3961 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<VideoFormatPropertiesKHR>>::type
3962 getVideoFormatPropertiesKHR( PhysicalDeviceVideoFormatInfoKHR const & videoFormatInfo ) const;
3963
3964 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
3965 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
3966 template <typename StructureChain>
3967 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<StructureChain>>::type
3968 getVideoFormatPropertiesKHR( PhysicalDeviceVideoFormatInfoKHR const & videoFormatInfo ) const;
3969
3970 //=== VK_NV_external_memory_capabilities ===
3971
3972 // wrapper function for command vkGetPhysicalDeviceExternalImageFormatPropertiesNV, see
3973 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalImageFormatPropertiesNV.html
3974 VULKAN_HPP_NODISCARD typename ResultValueType<ExternalImageFormatPropertiesNV>::type
3975 getExternalImageFormatPropertiesNV( Format format,
3976 ImageType type,
3977 ImageTiling tiling,
3978 ImageUsageFlags usage,
3979 ImageCreateFlags flags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ),
3980 ExternalMemoryHandleTypeFlagsNV externalHandleType VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
3981
3982 //=== VK_KHR_get_physical_device_properties2 ===
3983
3984 // wrapper function for command vkGetPhysicalDeviceFeatures2KHR, see
3985 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2KHR.html
3986 VULKAN_HPP_NODISCARD PhysicalDeviceFeatures2 getFeatures2KHR() const VULKAN_HPP_NOEXCEPT;
3987
3988 // wrapper function for command vkGetPhysicalDeviceFeatures2KHR, see
3989 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2KHR.html
3990 template <typename X, typename Y, typename... Z>
3991 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getFeatures2KHR() const VULKAN_HPP_NOEXCEPT;
3992
3993 // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see
3994 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html
3995 void getProperties2KHR( PhysicalDeviceProperties2 * pProperties ) const VULKAN_HPP_NOEXCEPT;
3996
3997 // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see
3998 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html
3999 VULKAN_HPP_NODISCARD PhysicalDeviceProperties2 getProperties2KHR() const VULKAN_HPP_NOEXCEPT;
4000
4001 // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see
4002 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html
4003 template <typename X, typename Y, typename... Z>
4004 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getProperties2KHR() const VULKAN_HPP_NOEXCEPT;
4005
4006 // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see
4007 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html
4008 void getFormatProperties2KHR( Format format, FormatProperties2 * pFormatProperties ) const VULKAN_HPP_NOEXCEPT;
4009
4010 // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see
4011 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html
4012 VULKAN_HPP_NODISCARD FormatProperties2 getFormatProperties2KHR( Format format ) const VULKAN_HPP_NOEXCEPT;
4013
4014 // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see
4015 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html
4016 template <typename X, typename Y, typename... Z>
4017 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getFormatProperties2KHR( Format format ) const VULKAN_HPP_NOEXCEPT;
4018
4019 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see
4020 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html
4021 VULKAN_HPP_NODISCARD typename ResultValueType<ImageFormatProperties2>::type
4022 getImageFormatProperties2KHR( PhysicalDeviceImageFormatInfo2 const & imageFormatInfo ) const;
4023
4024 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see
4025 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html
4026 template <typename X, typename Y, typename... Z>
4027 VULKAN_HPP_NODISCARD typename ResultValueType<StructureChain<X, Y, Z...>>::type
4028 getImageFormatProperties2KHR( PhysicalDeviceImageFormatInfo2 const & imageFormatInfo ) const;
4029
4030 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
4031 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
4032 VULKAN_HPP_NODISCARD std::vector<QueueFamilyProperties2> getQueueFamilyProperties2KHR() const;
4033
4034 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
4035 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
4036 template <typename StructureChain>
4037 VULKAN_HPP_NODISCARD std::vector<StructureChain> getQueueFamilyProperties2KHR() const;
4038
4039 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2KHR, see
4040 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2KHR.html
4041 VULKAN_HPP_NODISCARD PhysicalDeviceMemoryProperties2 getMemoryProperties2KHR() const VULKAN_HPP_NOEXCEPT;
4042
4043 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2KHR, see
4044 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2KHR.html
4045 template <typename X, typename Y, typename... Z>
4046 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getMemoryProperties2KHR() const VULKAN_HPP_NOEXCEPT;
4047
4048 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2KHR, see
4049 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2KHR.html
4050 VULKAN_HPP_NODISCARD std::vector<SparseImageFormatProperties2>
4051 getSparseImageFormatProperties2KHR( PhysicalDeviceSparseImageFormatInfo2 const & formatInfo ) const;
4052
4053 //=== VK_KHR_external_memory_capabilities ===
4054
4055 // wrapper function for command vkGetPhysicalDeviceExternalBufferPropertiesKHR, see
4056 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalBufferPropertiesKHR.html
4057 VULKAN_HPP_NODISCARD ExternalBufferProperties
4058 getExternalBufferPropertiesKHR( PhysicalDeviceExternalBufferInfo const & externalBufferInfo ) const VULKAN_HPP_NOEXCEPT;
4059
4060 //=== VK_KHR_external_semaphore_capabilities ===
4061
4062 // wrapper function for command vkGetPhysicalDeviceExternalSemaphorePropertiesKHR, see
4063 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalSemaphorePropertiesKHR.html
4064 VULKAN_HPP_NODISCARD ExternalSemaphoreProperties
4065 getExternalSemaphorePropertiesKHR( PhysicalDeviceExternalSemaphoreInfo const & externalSemaphoreInfo ) const VULKAN_HPP_NOEXCEPT;
4066
4067 # if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT )
4068 //=== VK_EXT_acquire_xlib_display ===
4069
4070 // wrapper function for command vkAcquireXlibDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireXlibDisplayEXT.html
4071 typename ResultValueType<void>::type acquireXlibDisplayEXT( Display & dpy, VULKAN_HPP_NAMESPACE::DisplayKHR display ) const;
4072
4073 // wrapper function for command vkGetRandROutputDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRandROutputDisplayEXT.html
4074 VULKAN_HPP_NODISCARD typename ResultValueType<DisplayKHR>::type
4075 getRandROutputDisplayEXT( Display & dpy, RROutput rrOutput ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4076 # endif /*VK_USE_PLATFORM_XLIB_XRANDR_EXT*/
4077
4078 //=== VK_EXT_display_surface_counter ===
4079
4080 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2EXT, see
4081 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2EXT.html
4082 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceCapabilities2EXT>::type getSurfaceCapabilities2EXT( VULKAN_HPP_NAMESPACE::SurfaceKHR surface ) const;
4083
4084 //=== VK_KHR_external_fence_capabilities ===
4085
4086 // wrapper function for command vkGetPhysicalDeviceExternalFencePropertiesKHR, see
4087 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalFencePropertiesKHR.html
4088 VULKAN_HPP_NODISCARD ExternalFenceProperties
4089 getExternalFencePropertiesKHR( PhysicalDeviceExternalFenceInfo const & externalFenceInfo ) const VULKAN_HPP_NOEXCEPT;
4090
4091 //=== VK_KHR_performance_query ===
4092
4093 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR, see
4094 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR.html
4095 VULKAN_HPP_NODISCARD typename ResultValueType<std::pair<std::vector<PerformanceCounterKHR>, std::vector<PerformanceCounterDescriptionKHR>>>::type
4096 enumerateQueueFamilyPerformanceQueryCountersKHR( uint32_t queueFamilyIndex ) const;
4097
4098 // wrapper function for command vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR, see
4099 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR.html
4100 VULKAN_HPP_NODISCARD uint32_t
4101 getQueueFamilyPerformanceQueryPassesKHR( QueryPoolPerformanceCreateInfoKHR const & performanceQueryCreateInfo ) const VULKAN_HPP_NOEXCEPT;
4102
4103 //=== VK_KHR_get_surface_capabilities2 ===
4104
4105 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2KHR, see
4106 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html
4107 VULKAN_HPP_NODISCARD Result getSurfaceCapabilities2KHR( PhysicalDeviceSurfaceInfo2KHR const * pSurfaceInfo,
4108 SurfaceCapabilities2KHR * pSurfaceCapabilities ) const VULKAN_HPP_NOEXCEPT;
4109
4110 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2KHR, see
4111 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html
4112 VULKAN_HPP_NODISCARD typename ResultValueType<SurfaceCapabilities2KHR>::type
4113 getSurfaceCapabilities2KHR( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo ) const;
4114
4115 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2KHR, see
4116 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html
4117 template <typename X, typename Y, typename... Z>
4118 VULKAN_HPP_NODISCARD typename ResultValueType<StructureChain<X, Y, Z...>>::type
4119 getSurfaceCapabilities2KHR( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo ) const;
4120
4121 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
4122 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
4123 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<SurfaceFormat2KHR>>::type
4124 getSurfaceFormats2KHR( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo ) const;
4125
4126 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
4127 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
4128 template <typename StructureChain>
4129 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<StructureChain>>::type
4130 getSurfaceFormats2KHR( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo ) const;
4131
4132 //=== VK_KHR_get_display_properties2 ===
4133
4134 // wrapper function for command vkGetPhysicalDeviceDisplayProperties2KHR, see
4135 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayProperties2KHR.html
4136 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DisplayProperties2KHR>>::type getDisplayProperties2KHR() const;
4137
4138 // wrapper function for command vkGetPhysicalDeviceDisplayPlaneProperties2KHR, see
4139 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlaneProperties2KHR.html
4140 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DisplayPlaneProperties2KHR>>::type getDisplayPlaneProperties2KHR() const;
4141
4142 // wrapper function for command vkGetDisplayPlaneCapabilities2KHR, see
4143 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneCapabilities2KHR.html
4144 VULKAN_HPP_NODISCARD typename ResultValueType<DisplayPlaneCapabilities2KHR>::type
4145 getDisplayPlaneCapabilities2KHR( DisplayPlaneInfo2KHR const & displayPlaneInfo ) const;
4146
4147 //=== VK_EXT_descriptor_heap ===
4148
4149 // wrapper function for command vkGetPhysicalDeviceDescriptorSizeEXT, see
4150 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDescriptorSizeEXT.html
4151 VULKAN_HPP_NODISCARD DeviceSize getDescriptorSizeEXT( DescriptorType descriptorType ) const VULKAN_HPP_NOEXCEPT;
4152
4153 //=== VK_EXT_sample_locations ===
4154
4155 // wrapper function for command vkGetPhysicalDeviceMultisamplePropertiesEXT, see
4156 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMultisamplePropertiesEXT.html
4157 VULKAN_HPP_NODISCARD MultisamplePropertiesEXT getMultisamplePropertiesEXT( SampleCountFlagBits samples ) const VULKAN_HPP_NOEXCEPT;
4158
4159 //=== VK_EXT_calibrated_timestamps ===
4160
4161 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsEXT, see
4162 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsEXT.html
4163 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<TimeDomainKHR>>::type getCalibrateableTimeDomainsEXT() const;
4164
4165 //=== VK_KHR_fragment_shading_rate ===
4166
4167 // wrapper function for command vkGetPhysicalDeviceFragmentShadingRatesKHR, see
4168 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFragmentShadingRatesKHR.html
4169 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<PhysicalDeviceFragmentShadingRateKHR>>::type getFragmentShadingRatesKHR() const;
4170
4171 //=== VK_EXT_tooling_info ===
4172
4173 // wrapper function for command vkGetPhysicalDeviceToolPropertiesEXT, see
4174 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolPropertiesEXT.html
4175 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<PhysicalDeviceToolProperties>>::type getToolPropertiesEXT() const;
4176
4177 //=== VK_NV_cooperative_matrix ===
4178
4179 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesNV, see
4180 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesNV.html
4181 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<CooperativeMatrixPropertiesNV>>::type getCooperativeMatrixPropertiesNV() const;
4182
4183 //=== VK_NV_coverage_reduction_mode ===
4184
4185 // wrapper function for command vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV, see
4186 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV.html
4187 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<FramebufferMixedSamplesCombinationNV>>::type
4188 getSupportedFramebufferMixedSamplesCombinationsNV() const;
4189
4190 # if defined( VK_USE_PLATFORM_WIN32_KHR )
4191 //=== VK_EXT_full_screen_exclusive ===
4192
4193 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModes2EXT, see
4194 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModes2EXT.html
4195 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<PresentModeKHR>>::type
4196 getSurfacePresentModes2EXT( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo ) const;
4197 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
4198
4199 //=== VK_EXT_acquire_drm_display ===
4200
4201 // wrapper function for command vkAcquireDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireDrmDisplayEXT.html
4202 typename ResultValueType<void>::type acquireDrmDisplayEXT( int32_t drmFd, VULKAN_HPP_NAMESPACE::DisplayKHR display ) const;
4203
4204 // wrapper function for command vkGetDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDrmDisplayEXT.html
4205 VULKAN_HPP_NODISCARD typename ResultValueType<DisplayKHR>::type getDrmDisplayEXT( int32_t drmFd,
4206 uint32_t connectorId ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4207
4208 //=== VK_KHR_video_encode_queue ===
4209
4210 // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see
4211 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html
4212 VULKAN_HPP_NODISCARD typename ResultValueType<VideoEncodeQualityLevelPropertiesKHR>::type
4213 getVideoEncodeQualityLevelPropertiesKHR( PhysicalDeviceVideoEncodeQualityLevelInfoKHR const & qualityLevelInfo ) const;
4214
4215 // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see
4216 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html
4217 template <typename X, typename Y, typename... Z>
4218 VULKAN_HPP_NODISCARD typename ResultValueType<StructureChain<X, Y, Z...>>::type
4219 getVideoEncodeQualityLevelPropertiesKHR( PhysicalDeviceVideoEncodeQualityLevelInfoKHR const & qualityLevelInfo ) const;
4220
4221 # if defined( VK_USE_PLATFORM_WIN32_KHR )
4222 //=== VK_NV_acquire_winrt_display ===
4223
4224 // wrapper function for command vkGetWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetWinrtDisplayNV.html
4225 VULKAN_HPP_NODISCARD typename ResultValueType<DisplayKHR>::type
4226 getWinrtDisplayNV( uint32_t deviceRelativeId ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4227 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
4228
4229 # if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
4230 //=== VK_EXT_directfb_surface ===
4231
4232 // wrapper function for command vkGetPhysicalDeviceDirectFBPresentationSupportEXT, see
4233 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDirectFBPresentationSupportEXT.html
4234 VULKAN_HPP_NODISCARD Bool32 getDirectFBPresentationSupportEXT( uint32_t queueFamilyIndex, IDirectFB & dfb ) const VULKAN_HPP_NOEXCEPT;
4235 # endif /*VK_USE_PLATFORM_DIRECTFB_EXT*/
4236
4237 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
4238 //=== VK_QNX_screen_surface ===
4239
4240 // wrapper function for command vkGetPhysicalDeviceScreenPresentationSupportQNX, see
4241 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceScreenPresentationSupportQNX.html
4242 VULKAN_HPP_NODISCARD Bool32 getScreenPresentationSupportQNX( uint32_t queueFamilyIndex, struct _screen_window & window ) const VULKAN_HPP_NOEXCEPT;
4243 # endif /*VK_USE_PLATFORM_SCREEN_QNX*/
4244
4245 //=== VK_ARM_tensors ===
4246
4247 // wrapper function for command vkGetPhysicalDeviceExternalTensorPropertiesARM, see
4248 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalTensorPropertiesARM.html
4249 VULKAN_HPP_NODISCARD ExternalTensorPropertiesARM
4250 getExternalTensorPropertiesARM( PhysicalDeviceExternalTensorInfoARM const & externalTensorInfo ) const VULKAN_HPP_NOEXCEPT;
4251
4252 //=== VK_NV_optical_flow ===
4253
4254 // wrapper function for command vkGetPhysicalDeviceOpticalFlowImageFormatsNV, see
4255 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceOpticalFlowImageFormatsNV.html
4256 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<OpticalFlowImageFormatPropertiesNV>>::type
4257 getOpticalFlowImageFormatsNV( OpticalFlowImageFormatInfoNV const & opticalFlowImageFormatInfo ) const;
4258
4259 //=== VK_NV_cooperative_vector ===
4260
4261 // wrapper function for command vkGetPhysicalDeviceCooperativeVectorPropertiesNV, see
4262 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeVectorPropertiesNV.html
4263 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<CooperativeVectorPropertiesNV>>::type getCooperativeVectorPropertiesNV() const;
4264
4265 //=== VK_KHR_cooperative_matrix ===
4266
4267 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR, see
4268 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR.html
4269 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<CooperativeMatrixPropertiesKHR>>::type getCooperativeMatrixPropertiesKHR() const;
4270
4271 //=== VK_ARM_data_graph ===
4272
4273 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM, see
4274 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM.html
4275 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<QueueFamilyDataGraphPropertiesARM>>::type
4276 getQueueFamilyDataGraphPropertiesARM( uint32_t queueFamilyIndex ) const;
4277
4278 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM, see
4279 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM.html
4280 VULKAN_HPP_NODISCARD QueueFamilyDataGraphProcessingEnginePropertiesARM getQueueFamilyDataGraphProcessingEnginePropertiesARM(
4281 PhysicalDeviceQueueFamilyDataGraphProcessingEngineInfoARM const & queueFamilyDataGraphProcessingEngineInfo ) const VULKAN_HPP_NOEXCEPT;
4282
4283 //=== VK_KHR_calibrated_timestamps ===
4284
4285 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsKHR, see
4286 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsKHR.html
4287 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<TimeDomainKHR>>::type getCalibrateableTimeDomainsKHR() const;
4288
4289 //=== VK_NV_cooperative_matrix2 ===
4290
4291 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV, see
4292 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV.html
4293 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<CooperativeMatrixFlexibleDimensionsPropertiesNV>>::type
4294 getCooperativeMatrixFlexibleDimensionsPropertiesNV() const;
4295
4296 //=== VK_ARM_performance_counters_by_region ===
4297
4298 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM, see
4299 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM.html
4300 VULKAN_HPP_NODISCARD typename ResultValueType<std::pair<std::vector<PerformanceCounterARM>, std::vector<PerformanceCounterDescriptionARM>>>::type
4301 enumerateQueueFamilyPerformanceCountersByRegionARM( uint32_t queueFamilyIndex ) const;
4302
4303 //=== VK_ARM_shader_instrumentation ===
4304
4305 // wrapper function for command vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM, see
4306 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM.html
4307 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<ShaderInstrumentationMetricDescriptionARM>>::type
4308 enumerateShaderInstrumentationMetricsARM() const;
4309
4310 # if defined( VK_USE_PLATFORM_UBM_SEC )
4311 //=== VK_SEC_ubm_surface ===
4312
4313 // wrapper function for command vkGetPhysicalDeviceUbmPresentationSupportSEC, see
4314 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceUbmPresentationSupportSEC.html
4315 VULKAN_HPP_NODISCARD std::pair<Bool32, struct ubm_device> getUbmPresentationSupportSEC( uint32_t queueFamilyIndex ) const VULKAN_HPP_NOEXCEPT;
4316 # endif /*VK_USE_PLATFORM_UBM_SEC*/
4317
4318 private:
4319 VULKAN_HPP_NAMESPACE::PhysicalDevice m_physicalDevice = {};
4320 detail::InstanceDispatcher const * m_dispatcher = nullptr;
4321 };
4322
4323 template <>
4324 struct isVulkanRAIIHandleType<PhysicalDevice>
4325 {
4326 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
4327 };
4328
4329 class PhysicalDevices : public std::vector<PhysicalDevice>
4330 {
4331 public:
4332 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
4333 PhysicalDevices( Instance const & instance )
4334 {
4335 *this = instance.enumeratePhysicalDevices();
4336 }
4337 # endif
4338
4339 PhysicalDevices( std::nullptr_t ) {}
4340
4341 PhysicalDevices() = delete;
4342 PhysicalDevices( PhysicalDevices const & ) = delete;
4343 PhysicalDevices( PhysicalDevices && rhs ) = default;
4344 PhysicalDevices & operator=( PhysicalDevices const & ) = delete;
4345 PhysicalDevices & operator=( PhysicalDevices && rhs ) = default;
4346
4347 PhysicalDevices( std::vector<PhysicalDevice> && rhs )
4348 {
4349 std::swap( *this, rhs );
4350 }
4351 };
4352
4353 // wrapper class for handle VkDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkDevice.html
4354 class Device
4355 {
4356 public:
4357 using CType = VkDevice;
4358 using CppType = VULKAN_HPP_NAMESPACE::Device;
4359
4360 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eDevice;
4361 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eDevice;
4362
4363 public:
4364 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
4365 Device( PhysicalDevice const & physicalDevice, DeviceCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
4366 {
4367 *this = physicalDevice.createDevice( createInfo, allocator );
4368 }
4369 # endif
4370
4371 Device( PhysicalDevice const & physicalDevice, VkDevice device, Optional<AllocationCallbacks const> allocator = nullptr )
4372 : m_device( device ), m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
4373 {
4374 m_dispatcher.reset( new detail::DeviceDispatcher( physicalDevice.getDispatcher()->vkGetDeviceProcAddr, static_cast<VkDevice>( m_device ) ) );
4375 }
4376
4377 Device( std::nullptr_t ) {}
4378
4379 ~Device()
4380 {
4381 clear();
4382 }
4383
4384 Device() = delete;
4385 Device( Device const & ) = delete;
4386
4387 Device( Device && rhs ) VULKAN_HPP_NOEXCEPT
4388 : m_device( exchange( rhs.m_device, {} ) )
4389 , m_allocator( exchange( rhs.m_allocator, {} ) )
4390 , m_dispatcher( rhs.m_dispatcher.release() )
4391 {
4392 }
4393
4394 Device & operator=( Device const & ) = delete;
4395
4396 Device & operator=( Device && rhs ) VULKAN_HPP_NOEXCEPT
4397 {
4398 if ( this != &rhs )
4399 {
4400 std::swap( m_device, rhs.m_device );
4401 std::swap( m_allocator, rhs.m_allocator );
4402 std::swap( m_dispatcher, rhs.m_dispatcher );
4403 }
4404 return *this;
4405 }
4406
4407 VULKAN_HPP_NAMESPACE::Device const & operator*() const & VULKAN_HPP_NOEXCEPT
4408 {
4409 return m_device;
4410 }
4411
4412 VULKAN_HPP_NAMESPACE::Device const && operator*() const && VULKAN_HPP_NOEXCEPT
4413 {
4414 return std::move( m_device );
4415 }
4416
4417 operator VULKAN_HPP_NAMESPACE::Device() const VULKAN_HPP_NOEXCEPT
4418 {
4419 return m_device;
4420 }
4421
4422 void clear() VULKAN_HPP_NOEXCEPT
4423 {
4424 if ( m_device )
4425 {
4426 getDispatcher()->vkDestroyDevice( static_cast<VkDevice>( m_device ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
4427 }
4428 m_device = nullptr;
4429 m_allocator = nullptr;
4430 m_dispatcher = nullptr;
4431 }
4432
4433 VULKAN_HPP_NAMESPACE::Device release()
4434 {
4435 m_allocator = nullptr;
4436 m_dispatcher = nullptr;
4437 return exchange( m_device, nullptr );
4438 }
4439
4440 detail::DeviceDispatcher const * getDispatcher() const
4441 {
4442 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
4443 return &*m_dispatcher;
4444 }
4445
4446 void swap( Device & rhs ) VULKAN_HPP_NOEXCEPT
4447 {
4448 std::swap( m_device, rhs.m_device );
4449 std::swap( m_allocator, rhs.m_allocator );
4450 std::swap( m_dispatcher, rhs.m_dispatcher );
4451 }
4452
4453 //=== VK_VERSION_1_0 ===
4454
4455 // wrapper function for command vkGetDeviceProcAddr, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceProcAddr.html
4456 VULKAN_HPP_NODISCARD PFN_VoidFunction getProcAddr( std::string const & name ) const VULKAN_HPP_NOEXCEPT;
4457
4458 // wrapper function for command vkGetDeviceQueue, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceQueue.html
4459 VULKAN_HPP_NODISCARD Queue getQueue( uint32_t queueFamilyIndex, uint32_t queueIndex ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4460
4461 // wrapper function for command vkDeviceWaitIdle, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeviceWaitIdle.html
4462 typename ResultValueType<void>::type waitIdle() const;
4463
4464 // wrapper function for command vkAllocateMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateMemory.html
4465 VULKAN_HPP_NODISCARD typename ResultValueType<DeviceMemory>::type
4466 allocateMemory( MemoryAllocateInfo const & allocateInfo,
4467 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4468
4469 // wrapper function for command vkFlushMappedMemoryRanges, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFlushMappedMemoryRanges.html
4470 typename ResultValueType<void>::type flushMappedMemoryRanges( ArrayProxy<MappedMemoryRange const> const & memoryRanges ) const;
4471
4472 // wrapper function for command vkInvalidateMappedMemoryRanges, see
4473 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkInvalidateMappedMemoryRanges.html
4474 typename ResultValueType<void>::type invalidateMappedMemoryRanges( ArrayProxy<MappedMemoryRange const> const & memoryRanges ) const;
4475
4476 // wrapper function for command vkCreateFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFence.html
4477 VULKAN_HPP_NODISCARD typename ResultValueType<Fence>::type
4478 createFence( FenceCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4479
4480 // wrapper function for command vkResetFences, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetFences.html
4481 typename ResultValueType<void>::type resetFences( ArrayProxy<VULKAN_HPP_NAMESPACE::Fence const> const & fences ) const;
4482
4483 // wrapper function for command vkWaitForFences, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForFences.html
4484 VULKAN_HPP_NODISCARD Result waitForFences( ArrayProxy<VULKAN_HPP_NAMESPACE::Fence const> const & fences, Bool32 waitAll, uint64_t timeout ) const;
4485
4486 // wrapper function for command vkCreateSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSemaphore.html
4487 VULKAN_HPP_NODISCARD typename ResultValueType<Semaphore>::type
4488 createSemaphore( SemaphoreCreateInfo const & createInfo,
4489 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4490
4491 // wrapper function for command vkCreateQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateQueryPool.html
4492 VULKAN_HPP_NODISCARD typename ResultValueType<QueryPool>::type
4493 createQueryPool( QueryPoolCreateInfo const & createInfo,
4494 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4495
4496 // wrapper function for command vkCreateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBuffer.html
4497 VULKAN_HPP_NODISCARD typename ResultValueType<Buffer>::type
4498 createBuffer( BufferCreateInfo const & createInfo,
4499 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4500
4501 // wrapper function for command vkCreateImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImage.html
4502 VULKAN_HPP_NODISCARD typename ResultValueType<Image>::type
4503 createImage( ImageCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4504
4505 // wrapper function for command vkCreateImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImageView.html
4506 VULKAN_HPP_NODISCARD typename ResultValueType<ImageView>::type
4507 createImageView( ImageViewCreateInfo const & createInfo,
4508 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4509
4510 // wrapper function for command vkCreateCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCommandPool.html
4511 VULKAN_HPP_NODISCARD typename ResultValueType<CommandPool>::type
4512 createCommandPool( CommandPoolCreateInfo const & createInfo,
4513 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4514
4515 // wrapper function for command vkAllocateCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateCommandBuffers.html
4516 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<CommandBuffer>>::type
4517 allocateCommandBuffers( CommandBufferAllocateInfo const & allocateInfo ) const;
4518
4519 // wrapper function for command vkCreateEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateEvent.html
4520 VULKAN_HPP_NODISCARD typename ResultValueType<Event>::type
4521 createEvent( EventCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4522
4523 // wrapper function for command vkCreateBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferView.html
4524 VULKAN_HPP_NODISCARD typename ResultValueType<BufferView>::type
4525 createBufferView( BufferViewCreateInfo const & createInfo,
4526 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4527
4528 // wrapper function for command vkCreateShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderModule.html
4529 VULKAN_HPP_NODISCARD typename ResultValueType<ShaderModule>::type
4530 createShaderModule( ShaderModuleCreateInfo const & createInfo,
4531 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4532
4533 // wrapper function for command vkCreatePipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineCache.html
4534 VULKAN_HPP_NODISCARD typename ResultValueType<PipelineCache>::type
4535 createPipelineCache( PipelineCacheCreateInfo const & createInfo,
4536 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4537
4538 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
4539 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<Pipeline>>::type
4540 createComputePipelines( Optional<PipelineCache const> const & pipelineCache,
4541 ArrayProxy<ComputePipelineCreateInfo> const & createInfos,
4542 Optional<AllocationCallbacks const> allocator = nullptr ) const;
4543
4544 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
4545 VULKAN_HPP_NODISCARD typename ResultValueType<Pipeline>::type
4546 createComputePipeline( Optional<PipelineCache const> const & pipelineCache,
4547 ComputePipelineCreateInfo const & createInfo,
4548 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4549
4550 // wrapper function for command vkCreatePipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineLayout.html
4551 VULKAN_HPP_NODISCARD typename ResultValueType<PipelineLayout>::type
4552 createPipelineLayout( PipelineLayoutCreateInfo const & createInfo,
4553 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4554
4555 // wrapper function for command vkCreateSampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSampler.html
4556 VULKAN_HPP_NODISCARD typename ResultValueType<Sampler>::type
4557 createSampler( SamplerCreateInfo const & createInfo,
4558 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4559
4560 // wrapper function for command vkCreateDescriptorSetLayout, see
4561 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorSetLayout.html
4562 VULKAN_HPP_NODISCARD typename ResultValueType<DescriptorSetLayout>::type
4563 createDescriptorSetLayout( DescriptorSetLayoutCreateInfo const & createInfo,
4564 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4565
4566 // wrapper function for command vkCreateDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorPool.html
4567 VULKAN_HPP_NODISCARD typename ResultValueType<DescriptorPool>::type
4568 createDescriptorPool( DescriptorPoolCreateInfo const & createInfo,
4569 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4570
4571 // wrapper function for command vkAllocateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateDescriptorSets.html
4572 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DescriptorSet>>::type
4573 allocateDescriptorSets( DescriptorSetAllocateInfo const & allocateInfo ) const;
4574
4575 // wrapper function for command vkUpdateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSets.html
4576 void updateDescriptorSets( ArrayProxy<WriteDescriptorSet const> const & descriptorWrites,
4577 ArrayProxy<CopyDescriptorSet const> const & descriptorCopies ) const VULKAN_HPP_NOEXCEPT;
4578
4579 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
4580 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<Pipeline>>::type
4581 createGraphicsPipelines( Optional<PipelineCache const> const & pipelineCache,
4582 ArrayProxy<GraphicsPipelineCreateInfo> const & createInfos,
4583 Optional<AllocationCallbacks const> allocator = nullptr ) const;
4584
4585 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
4586 VULKAN_HPP_NODISCARD typename ResultValueType<Pipeline>::type
4587 createGraphicsPipeline( Optional<PipelineCache const> const & pipelineCache,
4588 GraphicsPipelineCreateInfo const & createInfo,
4589 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4590
4591 // wrapper function for command vkCreateFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFramebuffer.html
4592 VULKAN_HPP_NODISCARD typename ResultValueType<Framebuffer>::type
4593 createFramebuffer( FramebufferCreateInfo const & createInfo,
4594 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4595
4596 // wrapper function for command vkCreateRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass.html
4597 VULKAN_HPP_NODISCARD typename ResultValueType<RenderPass>::type
4598 createRenderPass( RenderPassCreateInfo const & createInfo,
4599 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4600
4601 //=== VK_VERSION_1_1 ===
4602
4603 // wrapper function for command vkBindBufferMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory2.html
4604 typename ResultValueType<void>::type bindBufferMemory2( ArrayProxy<BindBufferMemoryInfo const> const & bindInfos ) const;
4605
4606 // wrapper function for command vkBindImageMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory2.html
4607 typename ResultValueType<void>::type bindImageMemory2( ArrayProxy<BindImageMemoryInfo const> const & bindInfos ) const;
4608
4609 // wrapper function for command vkGetDeviceGroupPeerMemoryFeatures, see
4610 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPeerMemoryFeatures.html
4611 VULKAN_HPP_NODISCARD PeerMemoryFeatureFlags getGroupPeerMemoryFeatures( uint32_t heapIndex,
4612 uint32_t localDeviceIndex,
4613 uint32_t remoteDeviceIndex ) const VULKAN_HPP_NOEXCEPT;
4614
4615 // wrapper function for command vkGetImageMemoryRequirements2, see
4616 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2.html
4617 VULKAN_HPP_NODISCARD MemoryRequirements2 getImageMemoryRequirements2( ImageMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT;
4618
4619 // wrapper function for command vkGetImageMemoryRequirements2, see
4620 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2.html
4621 template <typename X, typename Y, typename... Z>
4622 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getImageMemoryRequirements2( ImageMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT;
4623
4624 // wrapper function for command vkGetBufferMemoryRequirements2, see
4625 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2.html
4626 VULKAN_HPP_NODISCARD MemoryRequirements2 getBufferMemoryRequirements2( BufferMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT;
4627
4628 // wrapper function for command vkGetBufferMemoryRequirements2, see
4629 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2.html
4630 template <typename X, typename Y, typename... Z>
4631 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getBufferMemoryRequirements2( BufferMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT;
4632
4633 // wrapper function for command vkGetImageSparseMemoryRequirements2, see
4634 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2.html
4635 VULKAN_HPP_NODISCARD std::vector<SparseImageMemoryRequirements2>
4636 getImageSparseMemoryRequirements2( ImageSparseMemoryRequirementsInfo2 const & info ) const;
4637
4638 // wrapper function for command vkGetDeviceQueue2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceQueue2.html
4639 VULKAN_HPP_NODISCARD Queue getQueue2( DeviceQueueInfo2 const & queueInfo ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4640
4641 // wrapper function for command vkCreateDescriptorUpdateTemplate, see
4642 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplate.html
4643 VULKAN_HPP_NODISCARD typename ResultValueType<DescriptorUpdateTemplate>::type
4644 createDescriptorUpdateTemplate( DescriptorUpdateTemplateCreateInfo const & createInfo,
4645 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4646
4647 // wrapper function for command vkGetDescriptorSetLayoutSupport, see
4648 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupport.html
4649 VULKAN_HPP_NODISCARD DescriptorSetLayoutSupport
4650 getDescriptorSetLayoutSupport( DescriptorSetLayoutCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT;
4651
4652 // wrapper function for command vkGetDescriptorSetLayoutSupport, see
4653 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupport.html
4654 template <typename X, typename Y, typename... Z>
4655 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...>
4656 getDescriptorSetLayoutSupport( DescriptorSetLayoutCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT;
4657
4658 // wrapper function for command vkCreateSamplerYcbcrConversion, see
4659 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversion.html
4660 VULKAN_HPP_NODISCARD typename ResultValueType<SamplerYcbcrConversion>::type
4661 createSamplerYcbcrConversion( SamplerYcbcrConversionCreateInfo const & createInfo,
4662 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4663
4664 //=== VK_VERSION_1_2 ===
4665
4666 // wrapper function for command vkWaitSemaphores, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitSemaphores.html
4667 VULKAN_HPP_NODISCARD Result waitSemaphores( SemaphoreWaitInfo const & waitInfo, uint64_t timeout ) const;
4668
4669 // wrapper function for command vkSignalSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSignalSemaphore.html
4670 typename ResultValueType<void>::type signalSemaphore( SemaphoreSignalInfo const & signalInfo ) const;
4671
4672 // wrapper function for command vkGetBufferDeviceAddress, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddress.html
4673 VULKAN_HPP_NODISCARD DeviceAddress getBufferAddress( BufferDeviceAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT;
4674
4675 // wrapper function for command vkGetBufferOpaqueCaptureAddress, see
4676 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureAddress.html
4677 VULKAN_HPP_NODISCARD uint64_t getBufferOpaqueCaptureAddress( BufferDeviceAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT;
4678
4679 // wrapper function for command vkGetDeviceMemoryOpaqueCaptureAddress, see
4680 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryOpaqueCaptureAddress.html
4681 VULKAN_HPP_NODISCARD uint64_t getMemoryOpaqueCaptureAddress( DeviceMemoryOpaqueCaptureAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT;
4682
4683 // wrapper function for command vkCreateRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2.html
4684 VULKAN_HPP_NODISCARD typename ResultValueType<RenderPass>::type
4685 createRenderPass2( RenderPassCreateInfo2 const & createInfo,
4686 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4687
4688 //=== VK_VERSION_1_3 ===
4689
4690 // wrapper function for command vkCreatePrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlot.html
4691 VULKAN_HPP_NODISCARD typename ResultValueType<PrivateDataSlot>::type
4692 createPrivateDataSlot( PrivateDataSlotCreateInfo const & createInfo,
4693 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4694
4695 // wrapper function for command vkSetPrivateData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetPrivateData.html
4696 typename ResultValueType<void>::type
4697 setPrivateData( ObjectType objectType, uint64_t objectHandle, VULKAN_HPP_NAMESPACE::PrivateDataSlot privateDataSlot, uint64_t data ) const;
4698
4699 // wrapper function for command vkGetPrivateData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPrivateData.html
4700 VULKAN_HPP_NODISCARD uint64_t getPrivateData( ObjectType objectType,
4701 uint64_t objectHandle,
4702 VULKAN_HPP_NAMESPACE::PrivateDataSlot privateDataSlot ) const VULKAN_HPP_NOEXCEPT;
4703
4704 // wrapper function for command vkGetDeviceBufferMemoryRequirements, see
4705 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirements.html
4706 VULKAN_HPP_NODISCARD MemoryRequirements2 getBufferMemoryRequirements( DeviceBufferMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT;
4707
4708 // wrapper function for command vkGetDeviceBufferMemoryRequirements, see
4709 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirements.html
4710 template <typename X, typename Y, typename... Z>
4711 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getBufferMemoryRequirements( DeviceBufferMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT;
4712
4713 // wrapper function for command vkGetDeviceImageMemoryRequirements, see
4714 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirements.html
4715 VULKAN_HPP_NODISCARD MemoryRequirements2 getImageMemoryRequirements( DeviceImageMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT;
4716
4717 // wrapper function for command vkGetDeviceImageMemoryRequirements, see
4718 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirements.html
4719 template <typename X, typename Y, typename... Z>
4720 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getImageMemoryRequirements( DeviceImageMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT;
4721
4722 // wrapper function for command vkGetDeviceImageSparseMemoryRequirements, see
4723 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirements.html
4724 VULKAN_HPP_NODISCARD std::vector<SparseImageMemoryRequirements2> getImageSparseMemoryRequirements( DeviceImageMemoryRequirements const & info ) const;
4725
4726 //=== VK_VERSION_1_4 ===
4727
4728 // wrapper function for command vkMapMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory2.html
4729 VULKAN_HPP_NODISCARD typename ResultValueType<void *>::type mapMemory2( MemoryMapInfo const & memoryMapInfo ) const;
4730
4731 // wrapper function for command vkUnmapMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory2.html
4732 typename ResultValueType<void>::type unmapMemory2( MemoryUnmapInfo const & memoryUnmapInfo ) const;
4733
4734 // wrapper function for command vkGetDeviceImageSubresourceLayout, see
4735 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayout.html
4736 VULKAN_HPP_NODISCARD SubresourceLayout2 getImageSubresourceLayout( DeviceImageSubresourceInfo const & info ) const VULKAN_HPP_NOEXCEPT;
4737
4738 // wrapper function for command vkGetDeviceImageSubresourceLayout, see
4739 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayout.html
4740 template <typename X, typename Y, typename... Z>
4741 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getImageSubresourceLayout( DeviceImageSubresourceInfo const & info ) const VULKAN_HPP_NOEXCEPT;
4742
4743 // wrapper function for command vkCopyMemoryToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImage.html
4744 typename ResultValueType<void>::type copyMemoryToImage( CopyMemoryToImageInfo const & copyMemoryToImageInfo ) const;
4745
4746 // wrapper function for command vkCopyImageToMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToMemory.html
4747 typename ResultValueType<void>::type copyImageToMemory( CopyImageToMemoryInfo const & copyImageToMemoryInfo ) const;
4748
4749 // wrapper function for command vkCopyImageToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToImage.html
4750 typename ResultValueType<void>::type copyImageToImage( CopyImageToImageInfo const & copyImageToImageInfo ) const;
4751
4752 // wrapper function for command vkTransitionImageLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTransitionImageLayout.html
4753 typename ResultValueType<void>::type transitionImageLayout( ArrayProxy<HostImageLayoutTransitionInfo const> const & transitions ) const;
4754
4755 // wrapper function for command vkGetRenderingAreaGranularity, see
4756 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderingAreaGranularity.html
4757 VULKAN_HPP_NODISCARD Extent2D getRenderingAreaGranularity( RenderingAreaInfo const & renderingAreaInfo ) const VULKAN_HPP_NOEXCEPT;
4758
4759 //=== VK_KHR_swapchain ===
4760
4761 // wrapper function for command vkCreateSwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSwapchainKHR.html
4762 VULKAN_HPP_NODISCARD typename ResultValueType<SwapchainKHR>::type
4763 createSwapchainKHR( SwapchainCreateInfoKHR const & createInfo,
4764 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4765
4766 // wrapper function for command vkGetDeviceGroupPresentCapabilitiesKHR, see
4767 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPresentCapabilitiesKHR.html
4768 VULKAN_HPP_NODISCARD typename ResultValueType<DeviceGroupPresentCapabilitiesKHR>::type getGroupPresentCapabilitiesKHR() const;
4769
4770 // wrapper function for command vkGetDeviceGroupSurfacePresentModesKHR, see
4771 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupSurfacePresentModesKHR.html
4772 VULKAN_HPP_NODISCARD typename ResultValueType<DeviceGroupPresentModeFlagsKHR>::type
4773 getGroupSurfacePresentModesKHR( VULKAN_HPP_NAMESPACE::SurfaceKHR surface ) const;
4774
4775 // wrapper function for command vkAcquireNextImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireNextImage2KHR.html
4776 VULKAN_HPP_NODISCARD ResultValue<uint32_t> acquireNextImage2KHR( AcquireNextImageInfoKHR const & acquireInfo ) const;
4777
4778 //=== VK_KHR_display_swapchain ===
4779
4780 // wrapper function for command vkCreateSharedSwapchainsKHR, see
4781 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
4782 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<SwapchainKHR>>::type
4783 createSharedSwapchainsKHR( ArrayProxy<SwapchainCreateInfoKHR> const & createInfos, Optional<AllocationCallbacks const> allocator = nullptr ) const;
4784
4785 // wrapper function for command vkCreateSharedSwapchainsKHR, see
4786 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
4787 VULKAN_HPP_NODISCARD typename ResultValueType<SwapchainKHR>::type
4788 createSharedSwapchainKHR( SwapchainCreateInfoKHR const & createInfo,
4789 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4790
4791 //=== VK_EXT_debug_marker ===
4792
4793 // wrapper function for command vkDebugMarkerSetObjectTagEXT, see
4794 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugMarkerSetObjectTagEXT.html
4795 typename ResultValueType<void>::type debugMarkerSetObjectTagEXT( DebugMarkerObjectTagInfoEXT const & tagInfo ) const;
4796
4797 // wrapper function for command vkDebugMarkerSetObjectNameEXT, see
4798 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugMarkerSetObjectNameEXT.html
4799 typename ResultValueType<void>::type debugMarkerSetObjectNameEXT( DebugMarkerObjectNameInfoEXT const & nameInfo ) const;
4800
4801 //=== VK_KHR_video_queue ===
4802
4803 // wrapper function for command vkCreateVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionKHR.html
4804 VULKAN_HPP_NODISCARD typename ResultValueType<VideoSessionKHR>::type
4805 createVideoSessionKHR( VideoSessionCreateInfoKHR const & createInfo,
4806 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4807
4808 // wrapper function for command vkCreateVideoSessionParametersKHR, see
4809 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionParametersKHR.html
4810 VULKAN_HPP_NODISCARD typename ResultValueType<VideoSessionParametersKHR>::type
4811 createVideoSessionParametersKHR( VideoSessionParametersCreateInfoKHR const & createInfo,
4812 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4813
4814 //=== VK_NVX_binary_import ===
4815
4816 // wrapper function for command vkCreateCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuModuleNVX.html
4817 VULKAN_HPP_NODISCARD typename ResultValueType<CuModuleNVX>::type
4818 createCuModuleNVX( CuModuleCreateInfoNVX const & createInfo,
4819 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4820
4821 // wrapper function for command vkCreateCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuFunctionNVX.html
4822 VULKAN_HPP_NODISCARD typename ResultValueType<CuFunctionNVX>::type
4823 createCuFunctionNVX( CuFunctionCreateInfoNVX const & createInfo,
4824 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4825
4826 //=== VK_NVX_image_view_handle ===
4827
4828 // wrapper function for command vkGetImageViewHandleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewHandleNVX.html
4829 VULKAN_HPP_NODISCARD uint32_t getImageViewHandleNVX( ImageViewHandleInfoNVX const & info ) const VULKAN_HPP_NOEXCEPT;
4830
4831 // wrapper function for command vkGetImageViewHandle64NVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewHandle64NVX.html
4832 VULKAN_HPP_NODISCARD uint64_t getImageViewHandle64NVX( ImageViewHandleInfoNVX const & info ) const VULKAN_HPP_NOEXCEPT;
4833
4834 // wrapper function for command vkGetDeviceCombinedImageSamplerIndexNVX, see
4835 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceCombinedImageSamplerIndexNVX.html
4836 VULKAN_HPP_NODISCARD uint64_t getCombinedImageSamplerIndexNVX( uint64_t imageViewIndex, uint64_t samplerIndex ) const VULKAN_HPP_NOEXCEPT;
4837
4838 //=== VK_KHR_device_group ===
4839
4840 // wrapper function for command vkGetDeviceGroupPeerMemoryFeaturesKHR, see
4841 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPeerMemoryFeaturesKHR.html
4842 VULKAN_HPP_NODISCARD PeerMemoryFeatureFlags getGroupPeerMemoryFeaturesKHR( uint32_t heapIndex,
4843 uint32_t localDeviceIndex,
4844 uint32_t remoteDeviceIndex ) const VULKAN_HPP_NOEXCEPT;
4845
4846 # if defined( VK_USE_PLATFORM_WIN32_KHR )
4847 //=== VK_KHR_external_memory_win32 ===
4848
4849 // wrapper function for command vkGetMemoryWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandleKHR.html
4850 VULKAN_HPP_NODISCARD typename ResultValueType<HANDLE>::type getMemoryWin32HandleKHR( MemoryGetWin32HandleInfoKHR const & getWin32HandleInfo ) const;
4851
4852 // wrapper function for command vkGetMemoryWin32HandlePropertiesKHR, see
4853 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandlePropertiesKHR.html
4854 VULKAN_HPP_NODISCARD typename ResultValueType<MemoryWin32HandlePropertiesKHR>::type
4855 getMemoryWin32HandlePropertiesKHR( ExternalMemoryHandleTypeFlagBits handleType, HANDLE handle ) const;
4856 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
4857
4858 //=== VK_KHR_external_memory_fd ===
4859
4860 // wrapper function for command vkGetMemoryFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryFdKHR.html
4861 VULKAN_HPP_NODISCARD typename ResultValueType<int>::type getMemoryFdKHR( MemoryGetFdInfoKHR const & getFdInfo ) const;
4862
4863 // wrapper function for command vkGetMemoryFdPropertiesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryFdPropertiesKHR.html
4864 VULKAN_HPP_NODISCARD typename ResultValueType<MemoryFdPropertiesKHR>::type getMemoryFdPropertiesKHR( ExternalMemoryHandleTypeFlagBits handleType,
4865 int fd ) const;
4866
4867 # if defined( VK_USE_PLATFORM_WIN32_KHR )
4868 //=== VK_KHR_external_semaphore_win32 ===
4869
4870 // wrapper function for command vkImportSemaphoreWin32HandleKHR, see
4871 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreWin32HandleKHR.html
4872 typename ResultValueType<void>::type importSemaphoreWin32HandleKHR( ImportSemaphoreWin32HandleInfoKHR const & importSemaphoreWin32HandleInfo ) const;
4873
4874 // wrapper function for command vkGetSemaphoreWin32HandleKHR, see
4875 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreWin32HandleKHR.html
4876 VULKAN_HPP_NODISCARD typename ResultValueType<HANDLE>::type getSemaphoreWin32HandleKHR( SemaphoreGetWin32HandleInfoKHR const & getWin32HandleInfo ) const;
4877 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
4878
4879 //=== VK_KHR_external_semaphore_fd ===
4880
4881 // wrapper function for command vkImportSemaphoreFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreFdKHR.html
4882 typename ResultValueType<void>::type importSemaphoreFdKHR( ImportSemaphoreFdInfoKHR const & importSemaphoreFdInfo ) const;
4883
4884 // wrapper function for command vkGetSemaphoreFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreFdKHR.html
4885 VULKAN_HPP_NODISCARD typename ResultValueType<int>::type getSemaphoreFdKHR( SemaphoreGetFdInfoKHR const & getFdInfo ) const;
4886
4887 //=== VK_KHR_descriptor_update_template ===
4888
4889 // wrapper function for command vkCreateDescriptorUpdateTemplateKHR, see
4890 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplateKHR.html
4891 VULKAN_HPP_NODISCARD typename ResultValueType<DescriptorUpdateTemplate>::type
4892 createDescriptorUpdateTemplateKHR( DescriptorUpdateTemplateCreateInfo const & createInfo,
4893 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4894
4895 // wrapper function for command vkDestroyDescriptorUpdateTemplateKHR, see
4896 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplateKHR.html
4897 void
4898 destroyDescriptorUpdateTemplateKHR( VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate descriptorUpdateTemplate VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ),
4899 Optional<AllocationCallbacks const> allocator VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
4900
4901 //=== VK_EXT_display_control ===
4902
4903 // wrapper function for command vkDisplayPowerControlEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDisplayPowerControlEXT.html
4904 typename ResultValueType<void>::type displayPowerControlEXT( VULKAN_HPP_NAMESPACE::DisplayKHR display,
4905 DisplayPowerInfoEXT const & displayPowerInfo ) const;
4906
4907 // wrapper function for command vkRegisterDeviceEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDeviceEventEXT.html
4908 VULKAN_HPP_NODISCARD typename ResultValueType<Fence>::type
4909 registerEventEXT( DeviceEventInfoEXT const & deviceEventInfo,
4910 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4911
4912 // wrapper function for command vkRegisterDisplayEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDisplayEventEXT.html
4913 VULKAN_HPP_NODISCARD typename ResultValueType<Fence>::type
4914 registerDisplayEventEXT( DisplayKHR const & display,
4915 DisplayEventInfoEXT const & displayEventInfo,
4916 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4917
4918 //=== VK_EXT_hdr_metadata ===
4919
4920 // wrapper function for command vkSetHdrMetadataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetHdrMetadataEXT.html
4921 void setHdrMetadataEXT( ArrayProxy<VULKAN_HPP_NAMESPACE::SwapchainKHR const> const & swapchains,
4922 ArrayProxy<HdrMetadataEXT const> const & metadata ) const;
4923
4924 //=== VK_KHR_create_renderpass2 ===
4925
4926 // wrapper function for command vkCreateRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2KHR.html
4927 VULKAN_HPP_NODISCARD typename ResultValueType<RenderPass>::type
4928 createRenderPass2KHR( RenderPassCreateInfo2 const & createInfo,
4929 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
4930
4931 # if defined( VK_USE_PLATFORM_WIN32_KHR )
4932 //=== VK_KHR_external_fence_win32 ===
4933
4934 // wrapper function for command vkImportFenceWin32HandleKHR, see
4935 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportFenceWin32HandleKHR.html
4936 typename ResultValueType<void>::type importFenceWin32HandleKHR( ImportFenceWin32HandleInfoKHR const & importFenceWin32HandleInfo ) const;
4937
4938 // wrapper function for command vkGetFenceWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceWin32HandleKHR.html
4939 VULKAN_HPP_NODISCARD typename ResultValueType<HANDLE>::type getFenceWin32HandleKHR( FenceGetWin32HandleInfoKHR const & getWin32HandleInfo ) const;
4940 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
4941
4942 //=== VK_KHR_external_fence_fd ===
4943
4944 // wrapper function for command vkImportFenceFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportFenceFdKHR.html
4945 typename ResultValueType<void>::type importFenceFdKHR( ImportFenceFdInfoKHR const & importFenceFdInfo ) const;
4946
4947 // wrapper function for command vkGetFenceFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceFdKHR.html
4948 VULKAN_HPP_NODISCARD typename ResultValueType<int>::type getFenceFdKHR( FenceGetFdInfoKHR const & getFdInfo ) const;
4949
4950 //=== VK_KHR_performance_query ===
4951
4952 // wrapper function for command vkAcquireProfilingLockKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireProfilingLockKHR.html
4953 typename ResultValueType<void>::type acquireProfilingLockKHR( AcquireProfilingLockInfoKHR const & info ) const;
4954
4955 // wrapper function for command vkReleaseProfilingLockKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseProfilingLockKHR.html
4956 void releaseProfilingLockKHR() const VULKAN_HPP_NOEXCEPT;
4957
4958 //=== VK_EXT_debug_utils ===
4959
4960 // wrapper function for command vkSetDebugUtilsObjectNameEXT, see
4961 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectNameEXT.html
4962 typename ResultValueType<void>::type setDebugUtilsObjectNameEXT( DebugUtilsObjectNameInfoEXT const & nameInfo ) const;
4963
4964 // wrapper function for command vkSetDebugUtilsObjectNameEXT, see
4965 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectNameEXT.html
4966 template <typename HandleType>
4967 typename ResultValueType<void>::type setDebugUtilsObjectNameEXT( HandleType const & handle, std::string const & name ) const;
4968
4969 // wrapper function for command vkSetDebugUtilsObjectTagEXT, see
4970 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectTagEXT.html
4971 typename ResultValueType<void>::type setDebugUtilsObjectTagEXT( DebugUtilsObjectTagInfoEXT const & tagInfo ) const;
4972
4973 // wrapper function for command vkSetDebugUtilsObjectTagEXT, see
4974 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectTagEXT.html
4975 template <typename HandleType, typename TagType>
4976 typename ResultValueType<void>::type setDebugUtilsObjectTagEXT( HandleType const & handle, uint64_t name, TagType const & tag ) const;
4977
4978 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
4979 //=== VK_ANDROID_external_memory_android_hardware_buffer ===
4980
4981 // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see
4982 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html
4983 VULKAN_HPP_NODISCARD typename ResultValueType<AndroidHardwareBufferPropertiesANDROID>::type
4984 getAndroidHardwareBufferPropertiesANDROID( struct AHardwareBuffer const & buffer ) const;
4985
4986 // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see
4987 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html
4988 template <typename X, typename Y, typename... Z>
4989 VULKAN_HPP_NODISCARD typename ResultValueType<StructureChain<X, Y, Z...>>::type
4990 getAndroidHardwareBufferPropertiesANDROID( struct AHardwareBuffer const & buffer ) const;
4991
4992 // wrapper function for command vkGetMemoryAndroidHardwareBufferANDROID, see
4993 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryAndroidHardwareBufferANDROID.html
4994 VULKAN_HPP_NODISCARD typename ResultValueType<struct AHardwareBuffer *>::type
4995 getMemoryAndroidHardwareBufferANDROID( MemoryGetAndroidHardwareBufferInfoANDROID const & info ) const;
4996 # endif /*VK_USE_PLATFORM_ANDROID_KHR*/
4997
4998 # if defined( VK_ENABLE_BETA_EXTENSIONS )
4999 //=== VK_AMDX_shader_enqueue ===
5000
5001 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
5002 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
5003 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<Pipeline>>::type
5004 createExecutionGraphPipelinesAMDX( Optional<PipelineCache const> const & pipelineCache,
5005 ArrayProxy<ExecutionGraphPipelineCreateInfoAMDX> const & createInfos,
5006 Optional<AllocationCallbacks const> allocator = nullptr ) const;
5007
5008 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
5009 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
5010 VULKAN_HPP_NODISCARD typename ResultValueType<Pipeline>::type
5011 createExecutionGraphPipelineAMDX( Optional<PipelineCache const> const & pipelineCache,
5012 ExecutionGraphPipelineCreateInfoAMDX const & createInfo,
5013 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5014 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
5015
5016 //=== VK_EXT_descriptor_heap ===
5017
5018 // wrapper function for command vkWriteSamplerDescriptorsEXT, see
5019 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteSamplerDescriptorsEXT.html
5020 typename ResultValueType<void>::type writeSamplerDescriptorsEXT( ArrayProxy<SamplerCreateInfo const> const & samplers,
5021 ArrayProxy<HostAddressRangeEXT const> const & descriptors ) const;
5022
5023 // wrapper function for command vkWriteResourceDescriptorsEXT, see
5024 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteResourceDescriptorsEXT.html
5025 typename ResultValueType<void>::type writeResourceDescriptorsEXT( ArrayProxy<ResourceDescriptorInfoEXT const> const & resources,
5026 ArrayProxy<HostAddressRangeEXT const> const & descriptors ) const;
5027
5028 // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see
5029 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html
5030 VULKAN_HPP_NODISCARD Result getImageOpaqueCaptureDataEXT( uint32_t imageCount,
5031 VULKAN_HPP_NAMESPACE::Image const * pImages,
5032 HostAddressRangeEXT * pDatas ) const VULKAN_HPP_NOEXCEPT;
5033
5034 // wrapper function for command vkRegisterCustomBorderColorEXT, see
5035 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterCustomBorderColorEXT.html
5036 VULKAN_HPP_NODISCARD typename ResultValueType<uint32_t>::type registerCustomBorderColorEXT( SamplerCustomBorderColorCreateInfoEXT const & borderColor,
5037 Bool32 requestIndex ) const;
5038
5039 // wrapper function for command vkUnregisterCustomBorderColorEXT, see
5040 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnregisterCustomBorderColorEXT.html
5041 void unregisterCustomBorderColorEXT( uint32_t index ) const VULKAN_HPP_NOEXCEPT;
5042
5043 // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see
5044 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html
5045 VULKAN_HPP_NODISCARD Result getTensorOpaqueCaptureDataARM( uint32_t tensorCount,
5046 VULKAN_HPP_NAMESPACE::TensorARM const * pTensors,
5047 HostAddressRangeEXT * pDatas ) const VULKAN_HPP_NOEXCEPT;
5048
5049 //=== VK_KHR_get_memory_requirements2 ===
5050
5051 // wrapper function for command vkGetImageMemoryRequirements2KHR, see
5052 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2KHR.html
5053 VULKAN_HPP_NODISCARD MemoryRequirements2 getImageMemoryRequirements2KHR( ImageMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT;
5054
5055 // wrapper function for command vkGetImageMemoryRequirements2KHR, see
5056 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2KHR.html
5057 template <typename X, typename Y, typename... Z>
5058 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getImageMemoryRequirements2KHR( ImageMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT;
5059
5060 // wrapper function for command vkGetBufferMemoryRequirements2KHR, see
5061 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2KHR.html
5062 VULKAN_HPP_NODISCARD MemoryRequirements2 getBufferMemoryRequirements2KHR( BufferMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT;
5063
5064 // wrapper function for command vkGetBufferMemoryRequirements2KHR, see
5065 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2KHR.html
5066 template <typename X, typename Y, typename... Z>
5067 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getBufferMemoryRequirements2KHR( BufferMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT;
5068
5069 // wrapper function for command vkGetImageSparseMemoryRequirements2KHR, see
5070 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2KHR.html
5071 VULKAN_HPP_NODISCARD std::vector<SparseImageMemoryRequirements2>
5072 getImageSparseMemoryRequirements2KHR( ImageSparseMemoryRequirementsInfo2 const & info ) const;
5073
5074 //=== VK_KHR_acceleration_structure ===
5075
5076 // wrapper function for command vkCreateAccelerationStructureKHR, see
5077 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureKHR.html
5078 VULKAN_HPP_NODISCARD typename ResultValueType<AccelerationStructureKHR>::type
5079 createAccelerationStructureKHR( AccelerationStructureCreateInfoKHR const & createInfo,
5080 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5081
5082 // wrapper function for command vkBuildAccelerationStructuresKHR, see
5083 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBuildAccelerationStructuresKHR.html
5084 VULKAN_HPP_NODISCARD Result
5085 buildAccelerationStructuresKHR( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
5086 ArrayProxy<AccelerationStructureBuildGeometryInfoKHR const> const & infos,
5087 ArrayProxy<AccelerationStructureBuildRangeInfoKHR const * const> const & pBuildRangeInfos ) const;
5088
5089 // wrapper function for command vkCopyAccelerationStructureKHR, see
5090 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyAccelerationStructureKHR.html
5091 VULKAN_HPP_NODISCARD Result copyAccelerationStructureKHR( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
5092 CopyAccelerationStructureInfoKHR const & info ) const;
5093
5094 // wrapper function for command vkCopyAccelerationStructureToMemoryKHR, see
5095 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyAccelerationStructureToMemoryKHR.html
5096 VULKAN_HPP_NODISCARD Result copyAccelerationStructureToMemoryKHR( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
5097 CopyAccelerationStructureToMemoryInfoKHR const & info ) const;
5098
5099 // wrapper function for command vkCopyMemoryToAccelerationStructureKHR, see
5100 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToAccelerationStructureKHR.html
5101 VULKAN_HPP_NODISCARD Result copyMemoryToAccelerationStructureKHR( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
5102 CopyMemoryToAccelerationStructureInfoKHR const & info ) const;
5103
5104 // wrapper function for command vkWriteAccelerationStructuresPropertiesKHR, see
5105 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteAccelerationStructuresPropertiesKHR.html
5106 VULKAN_HPP_NODISCARD Result writeAccelerationStructuresPropertiesKHR( uint32_t accelerationStructureCount,
5107 VULKAN_HPP_NAMESPACE::AccelerationStructureKHR const * pAccelerationStructures,
5108 QueryType queryType,
5109 size_t dataSize,
5110 void * pData,
5111 size_t stride ) const VULKAN_HPP_NOEXCEPT;
5112
5113 // wrapper function for command vkWriteAccelerationStructuresPropertiesKHR, see
5114 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteAccelerationStructuresPropertiesKHR.html
5115 template <typename DataType>
5116 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DataType>>::type
5117 writeAccelerationStructuresPropertiesKHR( ArrayProxy<VULKAN_HPP_NAMESPACE::AccelerationStructureKHR const> const & accelerationStructures,
5118 QueryType queryType,
5119 size_t dataSize,
5120 size_t stride ) const;
5121
5122 // wrapper function for command vkWriteAccelerationStructuresPropertiesKHR, see
5123 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteAccelerationStructuresPropertiesKHR.html
5124 template <typename DataType>
5125 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type writeAccelerationStructuresPropertyKHR(
5126 ArrayProxy<VULKAN_HPP_NAMESPACE::AccelerationStructureKHR const> const & accelerationStructures, QueryType queryType, size_t stride ) const;
5127
5128 // wrapper function for command vkGetAccelerationStructureDeviceAddressKHR, see
5129 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureDeviceAddressKHR.html
5130 VULKAN_HPP_NODISCARD DeviceAddress getAccelerationStructureAddressKHR( AccelerationStructureDeviceAddressInfoKHR const & info ) const VULKAN_HPP_NOEXCEPT;
5131
5132 // wrapper function for command vkGetDeviceAccelerationStructureCompatibilityKHR, see
5133 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceAccelerationStructureCompatibilityKHR.html
5134 VULKAN_HPP_NODISCARD AccelerationStructureCompatibilityKHR
5135 getAccelerationStructureCompatibilityKHR( AccelerationStructureVersionInfoKHR const & versionInfo ) const VULKAN_HPP_NOEXCEPT;
5136
5137 // wrapper function for command vkGetAccelerationStructureBuildSizesKHR, see
5138 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureBuildSizesKHR.html
5139 VULKAN_HPP_NODISCARD AccelerationStructureBuildSizesInfoKHR
5140 getAccelerationStructureBuildSizesKHR( AccelerationStructureBuildTypeKHR buildType,
5141 AccelerationStructureBuildGeometryInfoKHR const & buildInfo,
5142 ArrayProxy<uint32_t const> const & maxPrimitiveCounts VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const;
5143
5144 //=== VK_KHR_ray_tracing_pipeline ===
5145
5146 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
5147 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
5148 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<Pipeline>>::type
5149 createRayTracingPipelinesKHR( Optional<DeferredOperationKHR const> const & deferredOperation,
5150 Optional<PipelineCache const> const & pipelineCache,
5151 ArrayProxy<RayTracingPipelineCreateInfoKHR> const & createInfos,
5152 Optional<AllocationCallbacks const> allocator = nullptr ) const;
5153
5154 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
5155 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
5156 VULKAN_HPP_NODISCARD typename ResultValueType<Pipeline>::type
5157 createRayTracingPipelineKHR( Optional<DeferredOperationKHR const> const & deferredOperation,
5158 Optional<PipelineCache const> const & pipelineCache,
5159 RayTracingPipelineCreateInfoKHR const & createInfo,
5160 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5161
5162 //=== VK_KHR_sampler_ycbcr_conversion ===
5163
5164 // wrapper function for command vkCreateSamplerYcbcrConversionKHR, see
5165 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversionKHR.html
5166 VULKAN_HPP_NODISCARD typename ResultValueType<SamplerYcbcrConversion>::type
5167 createSamplerYcbcrConversionKHR( SamplerYcbcrConversionCreateInfo const & createInfo,
5168 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5169
5170 // wrapper function for command vkDestroySamplerYcbcrConversionKHR, see
5171 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversionKHR.html
5172 void destroySamplerYcbcrConversionKHR( VULKAN_HPP_NAMESPACE::SamplerYcbcrConversion ycbcrConversion VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ),
5173 Optional<AllocationCallbacks const> allocator VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
5174
5175 //=== VK_KHR_bind_memory2 ===
5176
5177 // wrapper function for command vkBindBufferMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory2KHR.html
5178 typename ResultValueType<void>::type bindBufferMemory2KHR( ArrayProxy<BindBufferMemoryInfo const> const & bindInfos ) const;
5179
5180 // wrapper function for command vkBindImageMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory2KHR.html
5181 typename ResultValueType<void>::type bindImageMemory2KHR( ArrayProxy<BindImageMemoryInfo const> const & bindInfos ) const;
5182
5183 //=== VK_EXT_validation_cache ===
5184
5185 // wrapper function for command vkCreateValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateValidationCacheEXT.html
5186 VULKAN_HPP_NODISCARD typename ResultValueType<ValidationCacheEXT>::type
5187 createValidationCacheEXT( ValidationCacheCreateInfoEXT const & createInfo,
5188 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5189
5190 //=== VK_NV_ray_tracing ===
5191
5192 // wrapper function for command vkCreateAccelerationStructureNV, see
5193 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureNV.html
5194 VULKAN_HPP_NODISCARD typename ResultValueType<AccelerationStructureNV>::type
5195 createAccelerationStructureNV( AccelerationStructureCreateInfoNV const & createInfo,
5196 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5197
5198 // wrapper function for command vkGetAccelerationStructureMemoryRequirementsNV, see
5199 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureMemoryRequirementsNV.html
5200 VULKAN_HPP_NODISCARD MemoryRequirements2KHR
5201 getAccelerationStructureMemoryRequirementsNV( AccelerationStructureMemoryRequirementsInfoNV const & info ) const VULKAN_HPP_NOEXCEPT;
5202
5203 // wrapper function for command vkGetAccelerationStructureMemoryRequirementsNV, see
5204 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureMemoryRequirementsNV.html
5205 template <typename X, typename Y, typename... Z>
5206 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...>
5207 getAccelerationStructureMemoryRequirementsNV( AccelerationStructureMemoryRequirementsInfoNV const & info ) const VULKAN_HPP_NOEXCEPT;
5208
5209 // wrapper function for command vkBindAccelerationStructureMemoryNV, see
5210 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindAccelerationStructureMemoryNV.html
5211 typename ResultValueType<void>::type bindAccelerationStructureMemoryNV( ArrayProxy<BindAccelerationStructureMemoryInfoNV const> const & bindInfos ) const;
5212
5213 // wrapper function for command vkCreateRayTracingPipelinesNV, see
5214 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
5215 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<Pipeline>>::type
5216 createRayTracingPipelinesNV( Optional<PipelineCache const> const & pipelineCache,
5217 ArrayProxy<RayTracingPipelineCreateInfoNV> const & createInfos,
5218 Optional<AllocationCallbacks const> allocator = nullptr ) const;
5219
5220 // wrapper function for command vkCreateRayTracingPipelinesNV, see
5221 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
5222 VULKAN_HPP_NODISCARD typename ResultValueType<Pipeline>::type
5223 createRayTracingPipelineNV( Optional<PipelineCache const> const & pipelineCache,
5224 RayTracingPipelineCreateInfoNV const & createInfo,
5225 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5226
5227 //=== VK_KHR_maintenance3 ===
5228
5229 // wrapper function for command vkGetDescriptorSetLayoutSupportKHR, see
5230 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupportKHR.html
5231 VULKAN_HPP_NODISCARD DescriptorSetLayoutSupport
5232 getDescriptorSetLayoutSupportKHR( DescriptorSetLayoutCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT;
5233
5234 // wrapper function for command vkGetDescriptorSetLayoutSupportKHR, see
5235 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupportKHR.html
5236 template <typename X, typename Y, typename... Z>
5237 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...>
5238 getDescriptorSetLayoutSupportKHR( DescriptorSetLayoutCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT;
5239
5240 //=== VK_EXT_external_memory_host ===
5241
5242 // wrapper function for command vkGetMemoryHostPointerPropertiesEXT, see
5243 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryHostPointerPropertiesEXT.html
5244 VULKAN_HPP_NODISCARD typename ResultValueType<MemoryHostPointerPropertiesEXT>::type
5245 getMemoryHostPointerPropertiesEXT( ExternalMemoryHandleTypeFlagBits handleType, void const * pHostPointer ) const;
5246
5247 //=== VK_EXT_calibrated_timestamps ===
5248
5249 // wrapper function for command vkGetCalibratedTimestampsEXT, see
5250 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsEXT.html
5251 VULKAN_HPP_NODISCARD typename ResultValueType<std::pair<std::vector<uint64_t>, uint64_t>>::type
5252 getCalibratedTimestampsEXT( ArrayProxy<CalibratedTimestampInfoKHR const> const & timestampInfos ) const;
5253
5254 // wrapper function for command vkGetCalibratedTimestampsEXT, see
5255 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsEXT.html
5256 VULKAN_HPP_NODISCARD typename ResultValueType<std::pair<uint64_t, uint64_t>>::type
5257 getCalibratedTimestampEXT( CalibratedTimestampInfoKHR const & timestampInfo ) const;
5258
5259 //=== VK_KHR_timeline_semaphore ===
5260
5261 // wrapper function for command vkWaitSemaphoresKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitSemaphoresKHR.html
5262 VULKAN_HPP_NODISCARD Result waitSemaphoresKHR( SemaphoreWaitInfo const & waitInfo, uint64_t timeout ) const;
5263
5264 // wrapper function for command vkSignalSemaphoreKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSignalSemaphoreKHR.html
5265 typename ResultValueType<void>::type signalSemaphoreKHR( SemaphoreSignalInfo const & signalInfo ) const;
5266
5267 //=== VK_EXT_present_timing ===
5268
5269 // wrapper function for command vkGetPastPresentationTimingEXT, see
5270 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPastPresentationTimingEXT.html
5271 VULKAN_HPP_NODISCARD Result
5272 getPastPresentationTimingEXT( PastPresentationTimingInfoEXT const * pPastPresentationTimingInfo,
5273 PastPresentationTimingPropertiesEXT * pPastPresentationTimingProperties ) const VULKAN_HPP_NOEXCEPT;
5274
5275 //=== VK_INTEL_performance_query ===
5276
5277 // wrapper function for command vkInitializePerformanceApiINTEL, see
5278 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkInitializePerformanceApiINTEL.html
5279 typename ResultValueType<void>::type initializePerformanceApiINTEL( InitializePerformanceApiInfoINTEL const & initializeInfo ) const;
5280
5281 // wrapper function for command vkUninitializePerformanceApiINTEL, see
5282 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUninitializePerformanceApiINTEL.html
5283 void uninitializePerformanceApiINTEL() const VULKAN_HPP_NOEXCEPT;
5284
5285 // wrapper function for command vkAcquirePerformanceConfigurationINTEL, see
5286 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquirePerformanceConfigurationINTEL.html
5287 VULKAN_HPP_NODISCARD typename ResultValueType<PerformanceConfigurationINTEL>::type
5288 acquirePerformanceConfigurationINTEL( PerformanceConfigurationAcquireInfoINTEL const & acquireInfo ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5289
5290 // wrapper function for command vkGetPerformanceParameterINTEL, see
5291 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPerformanceParameterINTEL.html
5292 VULKAN_HPP_NODISCARD typename ResultValueType<PerformanceValueINTEL>::type getPerformanceParameterINTEL( PerformanceParameterTypeINTEL parameter ) const;
5293
5294 //=== VK_EXT_buffer_device_address ===
5295
5296 // wrapper function for command vkGetBufferDeviceAddressEXT, see
5297 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddressEXT.html
5298 VULKAN_HPP_NODISCARD DeviceAddress getBufferAddressEXT( BufferDeviceAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT;
5299
5300 # if defined( VK_USE_PLATFORM_WIN32_KHR )
5301 //=== VK_EXT_full_screen_exclusive ===
5302
5303 // wrapper function for command vkGetDeviceGroupSurfacePresentModes2EXT, see
5304 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupSurfacePresentModes2EXT.html
5305 VULKAN_HPP_NODISCARD typename ResultValueType<DeviceGroupPresentModeFlagsKHR>::type
5306 getGroupSurfacePresentModes2EXT( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo ) const;
5307 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
5308
5309 //=== VK_KHR_buffer_device_address ===
5310
5311 // wrapper function for command vkGetBufferDeviceAddressKHR, see
5312 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddressKHR.html
5313 VULKAN_HPP_NODISCARD DeviceAddress getBufferAddressKHR( BufferDeviceAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT;
5314
5315 // wrapper function for command vkGetBufferOpaqueCaptureAddressKHR, see
5316 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureAddressKHR.html
5317 VULKAN_HPP_NODISCARD uint64_t getBufferOpaqueCaptureAddressKHR( BufferDeviceAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT;
5318
5319 // wrapper function for command vkGetDeviceMemoryOpaqueCaptureAddressKHR, see
5320 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryOpaqueCaptureAddressKHR.html
5321 VULKAN_HPP_NODISCARD uint64_t getMemoryOpaqueCaptureAddressKHR( DeviceMemoryOpaqueCaptureAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT;
5322
5323 //=== VK_KHR_deferred_host_operations ===
5324
5325 // wrapper function for command vkCreateDeferredOperationKHR, see
5326 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDeferredOperationKHR.html
5327 VULKAN_HPP_NODISCARD typename ResultValueType<DeferredOperationKHR>::type
5328 createDeferredOperationKHR( Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5329
5330 //=== VK_KHR_pipeline_executable_properties ===
5331
5332 // wrapper function for command vkGetPipelineExecutablePropertiesKHR, see
5333 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutablePropertiesKHR.html
5334 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<PipelineExecutablePropertiesKHR>>::type
5335 getPipelineExecutablePropertiesKHR( PipelineInfoKHR const & pipelineInfo ) const;
5336
5337 // wrapper function for command vkGetPipelineExecutableStatisticsKHR, see
5338 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableStatisticsKHR.html
5339 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<PipelineExecutableStatisticKHR>>::type
5340 getPipelineExecutableStatisticsKHR( PipelineExecutableInfoKHR const & executableInfo ) const;
5341
5342 // wrapper function for command vkGetPipelineExecutableInternalRepresentationsKHR, see
5343 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html
5344 VULKAN_HPP_NODISCARD Result
5345 getPipelineExecutableInternalRepresentationsKHR( PipelineExecutableInfoKHR const * pExecutableInfo,
5346 uint32_t * pInternalRepresentationCount,
5347 PipelineExecutableInternalRepresentationKHR * pInternalRepresentations ) const VULKAN_HPP_NOEXCEPT;
5348
5349 //=== VK_EXT_host_image_copy ===
5350
5351 // wrapper function for command vkCopyMemoryToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImageEXT.html
5352 typename ResultValueType<void>::type copyMemoryToImageEXT( CopyMemoryToImageInfo const & copyMemoryToImageInfo ) const;
5353
5354 // wrapper function for command vkCopyImageToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToMemoryEXT.html
5355 typename ResultValueType<void>::type copyImageToMemoryEXT( CopyImageToMemoryInfo const & copyImageToMemoryInfo ) const;
5356
5357 // wrapper function for command vkCopyImageToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToImageEXT.html
5358 typename ResultValueType<void>::type copyImageToImageEXT( CopyImageToImageInfo const & copyImageToImageInfo ) const;
5359
5360 // wrapper function for command vkTransitionImageLayoutEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTransitionImageLayoutEXT.html
5361 typename ResultValueType<void>::type transitionImageLayoutEXT( ArrayProxy<HostImageLayoutTransitionInfo const> const & transitions ) const;
5362
5363 //=== VK_KHR_map_memory2 ===
5364
5365 // wrapper function for command vkMapMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory2KHR.html
5366 VULKAN_HPP_NODISCARD typename ResultValueType<void *>::type mapMemory2KHR( MemoryMapInfo const & memoryMapInfo ) const;
5367
5368 // wrapper function for command vkUnmapMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory2KHR.html
5369 typename ResultValueType<void>::type unmapMemory2KHR( MemoryUnmapInfo const & memoryUnmapInfo ) const;
5370
5371 //=== VK_EXT_swapchain_maintenance1 ===
5372
5373 // wrapper function for command vkReleaseSwapchainImagesEXT, see
5374 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseSwapchainImagesEXT.html
5375 typename ResultValueType<void>::type releaseSwapchainImagesEXT( ReleaseSwapchainImagesInfoKHR const & releaseInfo ) const;
5376
5377 //=== VK_NV_device_generated_commands ===
5378
5379 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsNV, see
5380 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsNV.html
5381 VULKAN_HPP_NODISCARD MemoryRequirements2
5382 getGeneratedCommandsMemoryRequirementsNV( GeneratedCommandsMemoryRequirementsInfoNV const & info ) const VULKAN_HPP_NOEXCEPT;
5383
5384 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsNV, see
5385 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsNV.html
5386 template <typename X, typename Y, typename... Z>
5387 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...>
5388 getGeneratedCommandsMemoryRequirementsNV( GeneratedCommandsMemoryRequirementsInfoNV const & info ) const VULKAN_HPP_NOEXCEPT;
5389
5390 // wrapper function for command vkCreateIndirectCommandsLayoutNV, see
5391 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutNV.html
5392 VULKAN_HPP_NODISCARD typename ResultValueType<IndirectCommandsLayoutNV>::type
5393 createIndirectCommandsLayoutNV( IndirectCommandsLayoutCreateInfoNV const & createInfo,
5394 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5395
5396 //=== VK_EXT_private_data ===
5397
5398 // wrapper function for command vkCreatePrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlotEXT.html
5399 VULKAN_HPP_NODISCARD typename ResultValueType<PrivateDataSlot>::type
5400 createPrivateDataSlotEXT( PrivateDataSlotCreateInfo const & createInfo,
5401 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5402
5403 // wrapper function for command vkDestroyPrivateDataSlotEXT, see
5404 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlotEXT.html
5405 void destroyPrivateDataSlotEXT( VULKAN_HPP_NAMESPACE::PrivateDataSlot privateDataSlot VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ),
5406 Optional<AllocationCallbacks const> allocator VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
5407
5408 // wrapper function for command vkSetPrivateDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetPrivateDataEXT.html
5409 typename ResultValueType<void>::type
5410 setPrivateDataEXT( ObjectType objectType, uint64_t objectHandle, VULKAN_HPP_NAMESPACE::PrivateDataSlot privateDataSlot, uint64_t data ) const;
5411
5412 // wrapper function for command vkGetPrivateDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPrivateDataEXT.html
5413 VULKAN_HPP_NODISCARD uint64_t getPrivateDataEXT( ObjectType objectType,
5414 uint64_t objectHandle,
5415 VULKAN_HPP_NAMESPACE::PrivateDataSlot privateDataSlot ) const VULKAN_HPP_NOEXCEPT;
5416
5417 //=== VK_KHR_video_encode_queue ===
5418
5419 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
5420 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
5421 VULKAN_HPP_NODISCARD typename ResultValueType<std::pair<VideoEncodeSessionParametersFeedbackInfoKHR, std::vector<uint8_t>>>::type
5422 getEncodedVideoSessionParametersKHR( VideoEncodeSessionParametersGetInfoKHR const & videoSessionParametersInfo ) const;
5423
5424 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
5425 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
5426 template <typename X, typename Y, typename... Z>
5427 VULKAN_HPP_NODISCARD typename ResultValueType<std::pair<StructureChain<X, Y, Z...>, std::vector<uint8_t>>>::type
5428 getEncodedVideoSessionParametersKHR( VideoEncodeSessionParametersGetInfoKHR const & videoSessionParametersInfo ) const;
5429
5430 # if defined( VK_ENABLE_BETA_EXTENSIONS )
5431 //=== VK_NV_cuda_kernel_launch ===
5432
5433 // wrapper function for command vkCreateCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaModuleNV.html
5434 VULKAN_HPP_NODISCARD typename ResultValueType<CudaModuleNV>::type
5435 createCudaModuleNV( CudaModuleCreateInfoNV const & createInfo,
5436 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5437
5438 // wrapper function for command vkCreateCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaFunctionNV.html
5439 VULKAN_HPP_NODISCARD typename ResultValueType<CudaFunctionNV>::type
5440 createCudaFunctionNV( CudaFunctionCreateInfoNV const & createInfo,
5441 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5442 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
5443
5444 # if defined( VK_USE_PLATFORM_METAL_EXT )
5445 //=== VK_EXT_metal_objects ===
5446
5447 // wrapper function for command vkExportMetalObjectsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkExportMetalObjectsEXT.html
5448 void exportMetalObjectsEXT( ExportMetalObjectsInfoEXT & metalObjectsInfo ) const VULKAN_HPP_NOEXCEPT;
5449 # endif /*VK_USE_PLATFORM_METAL_EXT*/
5450
5451 //=== VK_EXT_descriptor_buffer ===
5452
5453 // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html
5454 void getDescriptorEXT( DescriptorGetInfoEXT const * pDescriptorInfo, size_t dataSize, void * pDescriptor ) const VULKAN_HPP_NOEXCEPT;
5455
5456 // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html
5457 void getDescriptorEXT( DescriptorGetInfoEXT const & descriptorInfo, size_t dataSize, void * pDescriptor ) const VULKAN_HPP_NOEXCEPT;
5458
5459 // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html
5460 template <typename DescriptorType>
5461 VULKAN_HPP_NODISCARD DescriptorType getDescriptorEXT( DescriptorGetInfoEXT const & descriptorInfo ) const VULKAN_HPP_NOEXCEPT;
5462
5463 // wrapper function for command vkGetBufferOpaqueCaptureDescriptorDataEXT, see
5464 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureDescriptorDataEXT.html
5465 template <typename DataType>
5466 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type
5467 getBufferOpaqueCaptureDescriptorDataEXT( BufferCaptureDescriptorDataInfoEXT const & info ) const;
5468
5469 // wrapper function for command vkGetImageOpaqueCaptureDescriptorDataEXT, see
5470 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDescriptorDataEXT.html
5471 template <typename DataType>
5472 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type
5473 getImageOpaqueCaptureDescriptorDataEXT( ImageCaptureDescriptorDataInfoEXT const & info ) const;
5474
5475 // wrapper function for command vkGetImageViewOpaqueCaptureDescriptorDataEXT, see
5476 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewOpaqueCaptureDescriptorDataEXT.html
5477 template <typename DataType>
5478 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type
5479 getImageViewOpaqueCaptureDescriptorDataEXT( ImageViewCaptureDescriptorDataInfoEXT const & info ) const;
5480
5481 // wrapper function for command vkGetSamplerOpaqueCaptureDescriptorDataEXT, see
5482 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSamplerOpaqueCaptureDescriptorDataEXT.html
5483 template <typename DataType>
5484 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type
5485 getSamplerOpaqueCaptureDescriptorDataEXT( SamplerCaptureDescriptorDataInfoEXT const & info ) const;
5486
5487 // wrapper function for command vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT, see
5488 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT.html
5489 template <typename DataType>
5490 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type
5491 getAccelerationStructureOpaqueCaptureDescriptorDataEXT( AccelerationStructureCaptureDescriptorDataInfoEXT const & info ) const;
5492
5493 //=== VK_KHR_device_address_commands ===
5494
5495 // wrapper function for command vkCreateAccelerationStructure2KHR, see
5496 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructure2KHR.html
5497 VULKAN_HPP_NODISCARD typename ResultValueType<AccelerationStructureKHR>::type
5498 createAccelerationStructure2KHR( AccelerationStructureCreateInfo2KHR const & createInfo,
5499 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5500
5501 //=== VK_EXT_device_fault ===
5502
5503 // wrapper function for command vkGetDeviceFaultInfoEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceFaultInfoEXT.html
5504 VULKAN_HPP_NODISCARD Result getFaultInfoEXT( DeviceFaultCountsEXT * pFaultCounts, DeviceFaultInfoEXT * pFaultInfo ) const VULKAN_HPP_NOEXCEPT;
5505
5506 # if defined( VK_USE_PLATFORM_FUCHSIA )
5507 //=== VK_FUCHSIA_external_memory ===
5508
5509 // wrapper function for command vkGetMemoryZirconHandleFUCHSIA, see
5510 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryZirconHandleFUCHSIA.html
5511 VULKAN_HPP_NODISCARD typename ResultValueType<zx_handle_t>::type
5512 getMemoryZirconHandleFUCHSIA( MemoryGetZirconHandleInfoFUCHSIA const & getZirconHandleInfo ) const;
5513
5514 // wrapper function for command vkGetMemoryZirconHandlePropertiesFUCHSIA, see
5515 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryZirconHandlePropertiesFUCHSIA.html
5516 VULKAN_HPP_NODISCARD typename ResultValueType<MemoryZirconHandlePropertiesFUCHSIA>::type
5517 getMemoryZirconHandlePropertiesFUCHSIA( ExternalMemoryHandleTypeFlagBits handleType, zx_handle_t zirconHandle ) const;
5518 # endif /*VK_USE_PLATFORM_FUCHSIA*/
5519
5520 # if defined( VK_USE_PLATFORM_FUCHSIA )
5521 //=== VK_FUCHSIA_external_semaphore ===
5522
5523 // wrapper function for command vkImportSemaphoreZirconHandleFUCHSIA, see
5524 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreZirconHandleFUCHSIA.html
5525 typename ResultValueType<void>::type
5526 importSemaphoreZirconHandleFUCHSIA( ImportSemaphoreZirconHandleInfoFUCHSIA const & importSemaphoreZirconHandleInfo ) const;
5527
5528 // wrapper function for command vkGetSemaphoreZirconHandleFUCHSIA, see
5529 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreZirconHandleFUCHSIA.html
5530 VULKAN_HPP_NODISCARD typename ResultValueType<zx_handle_t>::type
5531 getSemaphoreZirconHandleFUCHSIA( SemaphoreGetZirconHandleInfoFUCHSIA const & getZirconHandleInfo ) const;
5532 # endif /*VK_USE_PLATFORM_FUCHSIA*/
5533
5534 # if defined( VK_USE_PLATFORM_FUCHSIA )
5535 //=== VK_FUCHSIA_buffer_collection ===
5536
5537 // wrapper function for command vkCreateBufferCollectionFUCHSIA, see
5538 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferCollectionFUCHSIA.html
5539 VULKAN_HPP_NODISCARD typename ResultValueType<BufferCollectionFUCHSIA>::type
5540 createBufferCollectionFUCHSIA( BufferCollectionCreateInfoFUCHSIA const & createInfo,
5541 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5542 # endif /*VK_USE_PLATFORM_FUCHSIA*/
5543
5544 //=== VK_NV_external_memory_rdma ===
5545
5546 // wrapper function for command vkGetMemoryRemoteAddressNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryRemoteAddressNV.html
5547 VULKAN_HPP_NODISCARD typename ResultValueType<RemoteAddressNV>::type
5548 getMemoryRemoteAddressNV( MemoryGetRemoteAddressInfoNV const & memoryGetRemoteAddressInfo ) const;
5549
5550 //=== VK_EXT_pipeline_properties ===
5551
5552 // wrapper function for command vkGetPipelinePropertiesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelinePropertiesEXT.html
5553 VULKAN_HPP_NODISCARD typename ResultValueType<BaseOutStructure>::type getPipelinePropertiesEXT( PipelineInfoEXT const & pipelineInfo ) const;
5554
5555 //=== VK_EXT_opacity_micromap ===
5556
5557 // wrapper function for command vkCreateMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMicromapEXT.html
5558 VULKAN_HPP_NODISCARD typename ResultValueType<MicromapEXT>::type
5559 createMicromapEXT( MicromapCreateInfoEXT const & createInfo,
5560 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5561
5562 // wrapper function for command vkBuildMicromapsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBuildMicromapsEXT.html
5563 VULKAN_HPP_NODISCARD Result buildMicromapsEXT( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
5564 ArrayProxy<MicromapBuildInfoEXT const> const & infos ) const;
5565
5566 // wrapper function for command vkCopyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMicromapEXT.html
5567 VULKAN_HPP_NODISCARD Result copyMicromapEXT( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation, CopyMicromapInfoEXT const & info ) const;
5568
5569 // wrapper function for command vkCopyMicromapToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMicromapToMemoryEXT.html
5570 VULKAN_HPP_NODISCARD Result copyMicromapToMemoryEXT( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
5571 CopyMicromapToMemoryInfoEXT const & info ) const;
5572
5573 // wrapper function for command vkCopyMemoryToMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToMicromapEXT.html
5574 VULKAN_HPP_NODISCARD Result copyMemoryToMicromapEXT( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
5575 CopyMemoryToMicromapInfoEXT const & info ) const;
5576
5577 // wrapper function for command vkWriteMicromapsPropertiesEXT, see
5578 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteMicromapsPropertiesEXT.html
5579 VULKAN_HPP_NODISCARD Result writeMicromapsPropertiesEXT( uint32_t micromapCount,
5580 VULKAN_HPP_NAMESPACE::MicromapEXT const * pMicromaps,
5581 QueryType queryType,
5582 size_t dataSize,
5583 void * pData,
5584 size_t stride ) const VULKAN_HPP_NOEXCEPT;
5585
5586 // wrapper function for command vkWriteMicromapsPropertiesEXT, see
5587 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteMicromapsPropertiesEXT.html
5588 template <typename DataType>
5589 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DataType>>::type writeMicromapsPropertiesEXT(
5590 ArrayProxy<VULKAN_HPP_NAMESPACE::MicromapEXT const> const & micromaps, QueryType queryType, size_t dataSize, size_t stride ) const;
5591
5592 // wrapper function for command vkWriteMicromapsPropertiesEXT, see
5593 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteMicromapsPropertiesEXT.html
5594 template <typename DataType>
5595 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type
5596 writeMicromapsPropertyEXT( ArrayProxy<VULKAN_HPP_NAMESPACE::MicromapEXT const> const & micromaps, QueryType queryType, size_t stride ) const;
5597
5598 // wrapper function for command vkGetDeviceMicromapCompatibilityEXT, see
5599 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMicromapCompatibilityEXT.html
5600 VULKAN_HPP_NODISCARD AccelerationStructureCompatibilityKHR
5601 getMicromapCompatibilityEXT( MicromapVersionInfoEXT const & versionInfo ) const VULKAN_HPP_NOEXCEPT;
5602
5603 // wrapper function for command vkGetMicromapBuildSizesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMicromapBuildSizesEXT.html
5604 VULKAN_HPP_NODISCARD MicromapBuildSizesInfoEXT getMicromapBuildSizesEXT( AccelerationStructureBuildTypeKHR buildType,
5605 MicromapBuildInfoEXT const & buildInfo ) const VULKAN_HPP_NOEXCEPT;
5606
5607 //=== VK_KHR_maintenance4 ===
5608
5609 // wrapper function for command vkGetDeviceBufferMemoryRequirementsKHR, see
5610 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirementsKHR.html
5611 VULKAN_HPP_NODISCARD MemoryRequirements2 getBufferMemoryRequirementsKHR( DeviceBufferMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT;
5612
5613 // wrapper function for command vkGetDeviceBufferMemoryRequirementsKHR, see
5614 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirementsKHR.html
5615 template <typename X, typename Y, typename... Z>
5616 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getBufferMemoryRequirementsKHR( DeviceBufferMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT;
5617
5618 // wrapper function for command vkGetDeviceImageMemoryRequirementsKHR, see
5619 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirementsKHR.html
5620 VULKAN_HPP_NODISCARD MemoryRequirements2 getImageMemoryRequirementsKHR( DeviceImageMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT;
5621
5622 // wrapper function for command vkGetDeviceImageMemoryRequirementsKHR, see
5623 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirementsKHR.html
5624 template <typename X, typename Y, typename... Z>
5625 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getImageMemoryRequirementsKHR( DeviceImageMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT;
5626
5627 // wrapper function for command vkGetDeviceImageSparseMemoryRequirementsKHR, see
5628 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirementsKHR.html
5629 VULKAN_HPP_NODISCARD std::vector<SparseImageMemoryRequirements2> getImageSparseMemoryRequirementsKHR( DeviceImageMemoryRequirements const & info ) const;
5630
5631 //=== VK_VALVE_descriptor_set_host_mapping ===
5632
5633 // wrapper function for command vkGetDescriptorSetLayoutHostMappingInfoVALVE, see
5634 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutHostMappingInfoVALVE.html
5635 VULKAN_HPP_NODISCARD DescriptorSetLayoutHostMappingInfoVALVE
5636 getDescriptorSetLayoutHostMappingInfoVALVE( DescriptorSetBindingReferenceVALVE const & bindingReference ) const VULKAN_HPP_NOEXCEPT;
5637
5638 //=== VK_NV_device_generated_commands_compute ===
5639
5640 // wrapper function for command vkGetPipelineIndirectMemoryRequirementsNV, see
5641 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectMemoryRequirementsNV.html
5642 VULKAN_HPP_NODISCARD MemoryRequirements2
5643 getPipelineIndirectMemoryRequirementsNV( ComputePipelineCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT;
5644
5645 // wrapper function for command vkGetPipelineIndirectMemoryRequirementsNV, see
5646 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectMemoryRequirementsNV.html
5647 template <typename X, typename Y, typename... Z>
5648 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...>
5649 getPipelineIndirectMemoryRequirementsNV( ComputePipelineCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT;
5650
5651 // wrapper function for command vkGetPipelineIndirectDeviceAddressNV, see
5652 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectDeviceAddressNV.html
5653 VULKAN_HPP_NODISCARD DeviceAddress getPipelineIndirectAddressNV( PipelineIndirectDeviceAddressInfoNV const & info ) const VULKAN_HPP_NOEXCEPT;
5654
5655 # if defined( VK_USE_PLATFORM_OHOS )
5656 //=== VK_OHOS_external_memory ===
5657
5658 // wrapper function for command vkGetNativeBufferPropertiesOHOS, see
5659 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html
5660 VULKAN_HPP_NODISCARD typename ResultValueType<NativeBufferPropertiesOHOS>::type
5661 getNativeBufferPropertiesOHOS( struct OH_NativeBuffer const & buffer ) const;
5662
5663 // wrapper function for command vkGetNativeBufferPropertiesOHOS, see
5664 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html
5665 template <typename X, typename Y, typename... Z>
5666 VULKAN_HPP_NODISCARD typename ResultValueType<StructureChain<X, Y, Z...>>::type
5667 getNativeBufferPropertiesOHOS( struct OH_NativeBuffer const & buffer ) const;
5668
5669 // wrapper function for command vkGetMemoryNativeBufferOHOS, see
5670 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryNativeBufferOHOS.html
5671 VULKAN_HPP_NODISCARD typename ResultValueType<struct OH_NativeBuffer *>::type
5672 getMemoryNativeBufferOHOS( MemoryGetNativeBufferInfoOHOS const & info ) const;
5673 # endif /*VK_USE_PLATFORM_OHOS*/
5674
5675 //=== VK_ARM_tensors ===
5676
5677 // wrapper function for command vkCreateTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorARM.html
5678 VULKAN_HPP_NODISCARD typename ResultValueType<TensorARM>::type
5679 createTensorARM( TensorCreateInfoARM const & createInfo,
5680 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5681
5682 // wrapper function for command vkCreateTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorViewARM.html
5683 VULKAN_HPP_NODISCARD typename ResultValueType<TensorViewARM>::type
5684 createTensorViewARM( TensorViewCreateInfoARM const & createInfo,
5685 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5686
5687 // wrapper function for command vkGetTensorMemoryRequirementsARM, see
5688 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorMemoryRequirementsARM.html
5689 VULKAN_HPP_NODISCARD MemoryRequirements2 getTensorMemoryRequirementsARM( TensorMemoryRequirementsInfoARM const & info ) const VULKAN_HPP_NOEXCEPT;
5690
5691 // wrapper function for command vkGetTensorMemoryRequirementsARM, see
5692 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorMemoryRequirementsARM.html
5693 template <typename X, typename Y, typename... Z>
5694 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getTensorMemoryRequirementsARM( TensorMemoryRequirementsInfoARM const & info ) const VULKAN_HPP_NOEXCEPT;
5695
5696 // wrapper function for command vkBindTensorMemoryARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindTensorMemoryARM.html
5697 typename ResultValueType<void>::type bindTensorMemoryARM( ArrayProxy<BindTensorMemoryInfoARM const> const & bindInfos ) const;
5698
5699 // wrapper function for command vkGetDeviceTensorMemoryRequirementsARM, see
5700 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceTensorMemoryRequirementsARM.html
5701 VULKAN_HPP_NODISCARD MemoryRequirements2 getTensorMemoryRequirementsARM( DeviceTensorMemoryRequirementsARM const & info ) const VULKAN_HPP_NOEXCEPT;
5702
5703 // wrapper function for command vkGetDeviceTensorMemoryRequirementsARM, see
5704 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceTensorMemoryRequirementsARM.html
5705 template <typename X, typename Y, typename... Z>
5706 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...>
5707 getTensorMemoryRequirementsARM( DeviceTensorMemoryRequirementsARM const & info ) const VULKAN_HPP_NOEXCEPT;
5708
5709 // wrapper function for command vkGetTensorOpaqueCaptureDescriptorDataARM, see
5710 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDescriptorDataARM.html
5711 template <typename DataType>
5712 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type
5713 getTensorOpaqueCaptureDescriptorDataARM( TensorCaptureDescriptorDataInfoARM const & info ) const;
5714
5715 // wrapper function for command vkGetTensorViewOpaqueCaptureDescriptorDataARM, see
5716 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorViewOpaqueCaptureDescriptorDataARM.html
5717 template <typename DataType>
5718 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type
5719 getTensorViewOpaqueCaptureDescriptorDataARM( TensorViewCaptureDescriptorDataInfoARM const & info ) const;
5720
5721 //=== VK_EXT_shader_module_identifier ===
5722
5723 // wrapper function for command vkGetShaderModuleCreateInfoIdentifierEXT, see
5724 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderModuleCreateInfoIdentifierEXT.html
5725 VULKAN_HPP_NODISCARD ShaderModuleIdentifierEXT
5726 getShaderModuleCreateInfoIdentifierEXT( ShaderModuleCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT;
5727
5728 //=== VK_NV_optical_flow ===
5729
5730 // wrapper function for command vkCreateOpticalFlowSessionNV, see
5731 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateOpticalFlowSessionNV.html
5732 VULKAN_HPP_NODISCARD typename ResultValueType<OpticalFlowSessionNV>::type
5733 createOpticalFlowSessionNV( OpticalFlowSessionCreateInfoNV const & createInfo,
5734 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5735
5736 //=== VK_KHR_maintenance5 ===
5737
5738 // wrapper function for command vkGetRenderingAreaGranularityKHR, see
5739 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderingAreaGranularityKHR.html
5740 VULKAN_HPP_NODISCARD Extent2D getRenderingAreaGranularityKHR( RenderingAreaInfo const & renderingAreaInfo ) const VULKAN_HPP_NOEXCEPT;
5741
5742 // wrapper function for command vkGetDeviceImageSubresourceLayoutKHR, see
5743 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayoutKHR.html
5744 VULKAN_HPP_NODISCARD SubresourceLayout2 getImageSubresourceLayoutKHR( DeviceImageSubresourceInfo const & info ) const VULKAN_HPP_NOEXCEPT;
5745
5746 // wrapper function for command vkGetDeviceImageSubresourceLayoutKHR, see
5747 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayoutKHR.html
5748 template <typename X, typename Y, typename... Z>
5749 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getImageSubresourceLayoutKHR( DeviceImageSubresourceInfo const & info ) const VULKAN_HPP_NOEXCEPT;
5750
5751 //=== VK_AMD_anti_lag ===
5752
5753 // wrapper function for command vkAntiLagUpdateAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAntiLagUpdateAMD.html
5754 void antiLagUpdateAMD( AntiLagDataAMD const & data ) const VULKAN_HPP_NOEXCEPT;
5755
5756 //=== VK_EXT_shader_object ===
5757
5758 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
5759 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<ShaderEXT>>::type
5760 createShadersEXT( ArrayProxy<ShaderCreateInfoEXT> const & createInfos, Optional<AllocationCallbacks const> allocator = nullptr ) const;
5761
5762 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
5763 VULKAN_HPP_NODISCARD typename ResultValueType<ShaderEXT>::type
5764 createShaderEXT( ShaderCreateInfoEXT const & createInfo,
5765 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5766
5767 //=== VK_KHR_pipeline_binary ===
5768
5769 // wrapper function for command vkCreatePipelineBinariesKHR, see
5770 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html
5771 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<PipelineBinaryKHR>>::type
5772 createPipelineBinariesKHR( PipelineBinaryCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr ) const;
5773
5774 // wrapper function for command vkGetPipelineKeyKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineKeyKHR.html
5775 VULKAN_HPP_NODISCARD typename ResultValueType<PipelineBinaryKeyKHR>::type
5776 getPipelineKeyKHR( Optional<PipelineCreateInfoKHR const> pipelineCreateInfo VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const;
5777
5778 // wrapper function for command vkGetPipelineBinaryDataKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineBinaryDataKHR.html
5779 VULKAN_HPP_NODISCARD typename ResultValueType<std::pair<PipelineBinaryKeyKHR, std::vector<uint8_t>>>::type
5780 getPipelineBinaryDataKHR( PipelineBinaryDataInfoKHR const & info ) const;
5781
5782 // wrapper function for command vkReleaseCapturedPipelineDataKHR, see
5783 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseCapturedPipelineDataKHR.html
5784 typename ResultValueType<void>::type
5785 releaseCapturedPipelineDataKHR( ReleaseCapturedPipelineDataInfoKHR const & info,
5786 Optional<AllocationCallbacks const> allocator VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const;
5787
5788 //=== VK_QCOM_tile_properties ===
5789
5790 // wrapper function for command vkGetDynamicRenderingTilePropertiesQCOM, see
5791 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDynamicRenderingTilePropertiesQCOM.html
5792 VULKAN_HPP_NODISCARD typename ResultValueType<TilePropertiesQCOM>::type
5793 getDynamicRenderingTilePropertiesQCOM( RenderingInfo const & renderingInfo ) const;
5794
5795 //=== VK_KHR_swapchain_maintenance1 ===
5796
5797 // wrapper function for command vkReleaseSwapchainImagesKHR, see
5798 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseSwapchainImagesKHR.html
5799 typename ResultValueType<void>::type releaseSwapchainImagesKHR( ReleaseSwapchainImagesInfoKHR const & releaseInfo ) const;
5800
5801 //=== VK_NV_cooperative_vector ===
5802
5803 // wrapper function for command vkConvertCooperativeVectorMatrixNV, see
5804 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkConvertCooperativeVectorMatrixNV.html
5805 VULKAN_HPP_NODISCARD Result convertCooperativeVectorMatrixNV( ConvertCooperativeVectorMatrixInfoNV const & info ) const;
5806
5807 //=== VK_ARM_data_graph ===
5808
5809 // wrapper function for command vkCreateDataGraphPipelinesARM, see
5810 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
5811 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<Pipeline>>::type
5812 createDataGraphPipelinesARM( Optional<DeferredOperationKHR const> const & deferredOperation,
5813 Optional<PipelineCache const> const & pipelineCache,
5814 ArrayProxy<DataGraphPipelineCreateInfoARM> const & createInfos,
5815 Optional<AllocationCallbacks const> allocator = nullptr ) const;
5816
5817 // wrapper function for command vkCreateDataGraphPipelinesARM, see
5818 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
5819 VULKAN_HPP_NODISCARD typename ResultValueType<Pipeline>::type
5820 createDataGraphPipelineARM( Optional<DeferredOperationKHR const> const & deferredOperation,
5821 Optional<PipelineCache const> const & pipelineCache,
5822 DataGraphPipelineCreateInfoARM const & createInfo,
5823 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5824
5825 // wrapper function for command vkCreateDataGraphPipelineSessionARM, see
5826 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelineSessionARM.html
5827 VULKAN_HPP_NODISCARD typename ResultValueType<DataGraphPipelineSessionARM>::type
5828 createDataGraphPipelineSessionARM( DataGraphPipelineSessionCreateInfoARM const & createInfo,
5829 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5830
5831 // wrapper function for command vkGetDataGraphPipelineSessionBindPointRequirementsARM, see
5832 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionBindPointRequirementsARM.html
5833 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DataGraphPipelineSessionBindPointRequirementARM>>::type
5834 getDataGraphPipelineSessionBindPointRequirementsARM( DataGraphPipelineSessionBindPointRequirementsInfoARM const & info ) const;
5835
5836 // wrapper function for command vkGetDataGraphPipelineSessionMemoryRequirementsARM, see
5837 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionMemoryRequirementsARM.html
5838 VULKAN_HPP_NODISCARD MemoryRequirements2
5839 getDataGraphPipelineSessionMemoryRequirementsARM( DataGraphPipelineSessionMemoryRequirementsInfoARM const & info ) const VULKAN_HPP_NOEXCEPT;
5840
5841 // wrapper function for command vkGetDataGraphPipelineSessionMemoryRequirementsARM, see
5842 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionMemoryRequirementsARM.html
5843 template <typename X, typename Y, typename... Z>
5844 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...>
5845 getDataGraphPipelineSessionMemoryRequirementsARM( DataGraphPipelineSessionMemoryRequirementsInfoARM const & info ) const VULKAN_HPP_NOEXCEPT;
5846
5847 // wrapper function for command vkBindDataGraphPipelineSessionMemoryARM, see
5848 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindDataGraphPipelineSessionMemoryARM.html
5849 typename ResultValueType<void>::type
5850 bindDataGraphPipelineSessionMemoryARM( ArrayProxy<BindDataGraphPipelineSessionMemoryInfoARM const> const & bindInfos ) const;
5851
5852 // wrapper function for command vkGetDataGraphPipelineAvailablePropertiesARM, see
5853 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineAvailablePropertiesARM.html
5854 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DataGraphPipelinePropertyARM>>::type
5855 getDataGraphPipelineAvailablePropertiesARM( DataGraphPipelineInfoARM const & pipelineInfo ) const;
5856
5857 // wrapper function for command vkGetDataGraphPipelinePropertiesARM, see
5858 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelinePropertiesARM.html
5859 VULKAN_HPP_NODISCARD Result getDataGraphPipelinePropertiesARM( DataGraphPipelineInfoARM const * pPipelineInfo,
5860 uint32_t propertiesCount,
5861 DataGraphPipelinePropertyQueryResultARM * pProperties ) const VULKAN_HPP_NOEXCEPT;
5862
5863 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
5864 //=== VK_QNX_external_memory_screen_buffer ===
5865
5866 // wrapper function for command vkGetScreenBufferPropertiesQNX, see
5867 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html
5868 VULKAN_HPP_NODISCARD typename ResultValueType<ScreenBufferPropertiesQNX>::type getScreenBufferPropertiesQNX( struct _screen_buffer const & buffer ) const;
5869
5870 // wrapper function for command vkGetScreenBufferPropertiesQNX, see
5871 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html
5872 template <typename X, typename Y, typename... Z>
5873 VULKAN_HPP_NODISCARD typename ResultValueType<StructureChain<X, Y, Z...>>::type
5874 getScreenBufferPropertiesQNX( struct _screen_buffer const & buffer ) const;
5875 # endif /*VK_USE_PLATFORM_SCREEN_QNX*/
5876
5877 //=== VK_KHR_calibrated_timestamps ===
5878
5879 // wrapper function for command vkGetCalibratedTimestampsKHR, see
5880 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsKHR.html
5881 VULKAN_HPP_NODISCARD typename ResultValueType<std::pair<std::vector<uint64_t>, uint64_t>>::type
5882 getCalibratedTimestampsKHR( ArrayProxy<CalibratedTimestampInfoKHR const> const & timestampInfos ) const;
5883
5884 // wrapper function for command vkGetCalibratedTimestampsKHR, see
5885 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsKHR.html
5886 VULKAN_HPP_NODISCARD typename ResultValueType<std::pair<uint64_t, uint64_t>>::type
5887 getCalibratedTimestampKHR( CalibratedTimestampInfoKHR const & timestampInfo ) const;
5888
5889 //=== VK_NV_external_compute_queue ===
5890
5891 // wrapper function for command vkCreateExternalComputeQueueNV, see
5892 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExternalComputeQueueNV.html
5893 VULKAN_HPP_NODISCARD typename ResultValueType<ExternalComputeQueueNV>::type
5894 createExternalComputeQueueNV( ExternalComputeQueueCreateInfoNV const & createInfo,
5895 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5896
5897 //=== VK_NV_cluster_acceleration_structure ===
5898
5899 // wrapper function for command vkGetClusterAccelerationStructureBuildSizesNV, see
5900 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetClusterAccelerationStructureBuildSizesNV.html
5901 VULKAN_HPP_NODISCARD AccelerationStructureBuildSizesInfoKHR
5902 getClusterAccelerationStructureBuildSizesNV( ClusterAccelerationStructureInputInfoNV const & info ) const VULKAN_HPP_NOEXCEPT;
5903
5904 //=== VK_NV_partitioned_acceleration_structure ===
5905
5906 // wrapper function for command vkGetPartitionedAccelerationStructuresBuildSizesNV, see
5907 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPartitionedAccelerationStructuresBuildSizesNV.html
5908 VULKAN_HPP_NODISCARD AccelerationStructureBuildSizesInfoKHR
5909 getPartitionedAccelerationStructuresBuildSizesNV( PartitionedAccelerationStructureInstancesInputNV const & info ) const VULKAN_HPP_NOEXCEPT;
5910
5911 //=== VK_EXT_device_generated_commands ===
5912
5913 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsEXT, see
5914 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsEXT.html
5915 VULKAN_HPP_NODISCARD MemoryRequirements2
5916 getGeneratedCommandsMemoryRequirementsEXT( GeneratedCommandsMemoryRequirementsInfoEXT const & info ) const VULKAN_HPP_NOEXCEPT;
5917
5918 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsEXT, see
5919 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsEXT.html
5920 template <typename X, typename Y, typename... Z>
5921 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...>
5922 getGeneratedCommandsMemoryRequirementsEXT( GeneratedCommandsMemoryRequirementsInfoEXT const & info ) const VULKAN_HPP_NOEXCEPT;
5923
5924 // wrapper function for command vkCreateIndirectCommandsLayoutEXT, see
5925 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutEXT.html
5926 VULKAN_HPP_NODISCARD typename ResultValueType<IndirectCommandsLayoutEXT>::type
5927 createIndirectCommandsLayoutEXT( IndirectCommandsLayoutCreateInfoEXT const & createInfo,
5928 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5929
5930 // wrapper function for command vkCreateIndirectExecutionSetEXT, see
5931 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectExecutionSetEXT.html
5932 VULKAN_HPP_NODISCARD typename ResultValueType<IndirectExecutionSetEXT>::type
5933 createIndirectExecutionSetEXT( IndirectExecutionSetCreateInfoEXT const & createInfo,
5934 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5935
5936 # if defined( VK_USE_PLATFORM_METAL_EXT )
5937 //=== VK_EXT_external_memory_metal ===
5938
5939 // wrapper function for command vkGetMemoryMetalHandleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryMetalHandleEXT.html
5940 VULKAN_HPP_NODISCARD typename ResultValueType<void *>::type getMemoryMetalHandleEXT( MemoryGetMetalHandleInfoEXT const & getMetalHandleInfo ) const;
5941
5942 // wrapper function for command vkGetMemoryMetalHandlePropertiesEXT, see
5943 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryMetalHandlePropertiesEXT.html
5944 template <typename HandleType>
5945 VULKAN_HPP_NODISCARD typename ResultValueType<MemoryMetalHandlePropertiesEXT>::type
5946 getMemoryMetalHandlePropertiesEXT( ExternalMemoryHandleTypeFlagBits handleType, HandleType const & handle ) const;
5947 # endif /*VK_USE_PLATFORM_METAL_EXT*/
5948
5949 //=== VK_ARM_shader_instrumentation ===
5950
5951 // wrapper function for command vkCreateShaderInstrumentationARM, see
5952 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderInstrumentationARM.html
5953 VULKAN_HPP_NODISCARD typename ResultValueType<ShaderInstrumentationARM>::type
5954 createShaderInstrumentationARM( ShaderInstrumentationCreateInfoARM const & createInfo,
5955 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
5956
5957 private:
5958 VULKAN_HPP_NAMESPACE::Device m_device = {};
5959 AllocationCallbacks const * m_allocator = {};
5960 std::unique_ptr<detail::DeviceDispatcher> m_dispatcher;
5961 };
5962
5963 template <>
5964 struct isVulkanRAIIHandleType<Device>
5965 {
5966 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
5967 };
5968
5969 // wrapper class for handle VkAccelerationStructureKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkAccelerationStructureKHR.html
5970 class AccelerationStructureKHR
5971 {
5972 public:
5973 using CType = VkAccelerationStructureKHR;
5974 using CppType = VULKAN_HPP_NAMESPACE::AccelerationStructureKHR;
5975
5976 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eAccelerationStructureKHR;
5977 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eAccelerationStructureKHR;
5978
5979 public:
5980 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
5981 AccelerationStructureKHR( Device const & device,
5982 AccelerationStructureCreateInfo2KHR const & createInfo,
5983 Optional<AllocationCallbacks const> allocator = nullptr )
5984 {
5985 *this = device.createAccelerationStructure2KHR( createInfo, allocator );
5986 }
5987 # endif
5988
5989 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
5990 AccelerationStructureKHR( Device const & device,
5991 AccelerationStructureCreateInfoKHR const & createInfo,
5992 Optional<AllocationCallbacks const> allocator = nullptr )
5993 {
5994 *this = device.createAccelerationStructureKHR( createInfo, allocator );
5995 }
5996 # endif
5997
5998 AccelerationStructureKHR( Device const & device,
5999 VkAccelerationStructureKHR accelerationStructure,
6000 Optional<AllocationCallbacks const> allocator = nullptr )
6001 : m_device( device )
6002 , m_accelerationStructureKHR( accelerationStructure )
6003 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
6004 , m_dispatcher( device.getDispatcher() )
6005 {
6006 }
6007
6008 AccelerationStructureKHR( std::nullptr_t ) {}
6009
6010 ~AccelerationStructureKHR()
6011 {
6012 clear();
6013 }
6014
6015 AccelerationStructureKHR() = delete;
6016 AccelerationStructureKHR( AccelerationStructureKHR const & ) = delete;
6017
6018 AccelerationStructureKHR( AccelerationStructureKHR && rhs ) VULKAN_HPP_NOEXCEPT
6019 : m_device( exchange( rhs.m_device, {} ) )
6020 , m_accelerationStructureKHR( exchange( rhs.m_accelerationStructureKHR, {} ) )
6021 , m_allocator( exchange( rhs.m_allocator, {} ) )
6022 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
6023 {
6024 }
6025
6026 AccelerationStructureKHR & operator=( AccelerationStructureKHR const & ) = delete;
6027
6028 AccelerationStructureKHR & operator=( AccelerationStructureKHR && rhs ) VULKAN_HPP_NOEXCEPT
6029 {
6030 if ( this != &rhs )
6031 {
6032 std::swap( m_device, rhs.m_device );
6033 std::swap( m_accelerationStructureKHR, rhs.m_accelerationStructureKHR );
6034 std::swap( m_allocator, rhs.m_allocator );
6035 std::swap( m_dispatcher, rhs.m_dispatcher );
6036 }
6037 return *this;
6038 }
6039
6040 VULKAN_HPP_NAMESPACE::AccelerationStructureKHR const & operator*() const & VULKAN_HPP_NOEXCEPT
6041 {
6042 return m_accelerationStructureKHR;
6043 }
6044
6045 VULKAN_HPP_NAMESPACE::AccelerationStructureKHR const && operator*() const && VULKAN_HPP_NOEXCEPT
6046 {
6047 return std::move( m_accelerationStructureKHR );
6048 }
6049
6050 operator VULKAN_HPP_NAMESPACE::AccelerationStructureKHR() const VULKAN_HPP_NOEXCEPT
6051 {
6052 return m_accelerationStructureKHR;
6053 }
6054
6055 void clear() VULKAN_HPP_NOEXCEPT
6056 {
6057 if ( m_accelerationStructureKHR )
6058 {
6059 getDispatcher()->vkDestroyAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
6060 static_cast<VkAccelerationStructureKHR>( m_accelerationStructureKHR ),
6061 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
6062 }
6063 m_device = nullptr;
6064 m_accelerationStructureKHR = nullptr;
6065 m_allocator = nullptr;
6066 m_dispatcher = nullptr;
6067 }
6068
6069 VULKAN_HPP_NAMESPACE::AccelerationStructureKHR release()
6070 {
6071 m_device = nullptr;
6072 m_allocator = nullptr;
6073 m_dispatcher = nullptr;
6074 return exchange( m_accelerationStructureKHR, nullptr );
6075 }
6076
6077 VULKAN_HPP_NAMESPACE::Device getDevice() const
6078 {
6079 return m_device;
6080 }
6081
6082 detail::DeviceDispatcher const * getDispatcher() const
6083 {
6084 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
6085 return m_dispatcher;
6086 }
6087
6088 void swap( AccelerationStructureKHR & rhs ) VULKAN_HPP_NOEXCEPT
6089 {
6090 std::swap( m_device, rhs.m_device );
6091 std::swap( m_accelerationStructureKHR, rhs.m_accelerationStructureKHR );
6092 std::swap( m_allocator, rhs.m_allocator );
6093 std::swap( m_dispatcher, rhs.m_dispatcher );
6094 }
6095
6096 private:
6097 VULKAN_HPP_NAMESPACE::Device m_device = {};
6098 VULKAN_HPP_NAMESPACE::AccelerationStructureKHR m_accelerationStructureKHR = {};
6099 AllocationCallbacks const * m_allocator = {};
6100 detail::DeviceDispatcher const * m_dispatcher = nullptr;
6101 };
6102
6103 template <>
6104 struct isVulkanRAIIHandleType<AccelerationStructureKHR>
6105 {
6106 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
6107 };
6108
6109 // wrapper class for handle VkAccelerationStructureNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkAccelerationStructureNV.html
6110 class AccelerationStructureNV
6111 {
6112 public:
6113 using CType = VkAccelerationStructureNV;
6114 using CppType = VULKAN_HPP_NAMESPACE::AccelerationStructureNV;
6115
6116 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eAccelerationStructureNV;
6117 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eAccelerationStructureNV;
6118
6119 public:
6120 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
6121 AccelerationStructureNV( Device const & device,
6122 AccelerationStructureCreateInfoNV const & createInfo,
6123 Optional<AllocationCallbacks const> allocator = nullptr )
6124 {
6125 *this = device.createAccelerationStructureNV( createInfo, allocator );
6126 }
6127 # endif
6128
6129 AccelerationStructureNV( Device const & device, VkAccelerationStructureNV accelerationStructure, Optional<AllocationCallbacks const> allocator = nullptr )
6130 : m_device( device )
6131 , m_accelerationStructureNV( accelerationStructure )
6132 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
6133 , m_dispatcher( device.getDispatcher() )
6134 {
6135 }
6136
6137 AccelerationStructureNV( std::nullptr_t ) {}
6138
6139 ~AccelerationStructureNV()
6140 {
6141 clear();
6142 }
6143
6144 AccelerationStructureNV() = delete;
6145 AccelerationStructureNV( AccelerationStructureNV const & ) = delete;
6146
6147 AccelerationStructureNV( AccelerationStructureNV && rhs ) VULKAN_HPP_NOEXCEPT
6148 : m_device( exchange( rhs.m_device, {} ) )
6149 , m_accelerationStructureNV( exchange( rhs.m_accelerationStructureNV, {} ) )
6150 , m_allocator( exchange( rhs.m_allocator, {} ) )
6151 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
6152 {
6153 }
6154
6155 AccelerationStructureNV & operator=( AccelerationStructureNV const & ) = delete;
6156
6157 AccelerationStructureNV & operator=( AccelerationStructureNV && rhs ) VULKAN_HPP_NOEXCEPT
6158 {
6159 if ( this != &rhs )
6160 {
6161 std::swap( m_device, rhs.m_device );
6162 std::swap( m_accelerationStructureNV, rhs.m_accelerationStructureNV );
6163 std::swap( m_allocator, rhs.m_allocator );
6164 std::swap( m_dispatcher, rhs.m_dispatcher );
6165 }
6166 return *this;
6167 }
6168
6169 VULKAN_HPP_NAMESPACE::AccelerationStructureNV const & operator*() const & VULKAN_HPP_NOEXCEPT
6170 {
6171 return m_accelerationStructureNV;
6172 }
6173
6174 VULKAN_HPP_NAMESPACE::AccelerationStructureNV const && operator*() const && VULKAN_HPP_NOEXCEPT
6175 {
6176 return std::move( m_accelerationStructureNV );
6177 }
6178
6179 operator VULKAN_HPP_NAMESPACE::AccelerationStructureNV() const VULKAN_HPP_NOEXCEPT
6180 {
6181 return m_accelerationStructureNV;
6182 }
6183
6184 void clear() VULKAN_HPP_NOEXCEPT
6185 {
6186 if ( m_accelerationStructureNV )
6187 {
6188 getDispatcher()->vkDestroyAccelerationStructureNV( static_cast<VkDevice>( m_device ),
6189 static_cast<VkAccelerationStructureNV>( m_accelerationStructureNV ),
6190 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
6191 }
6192 m_device = nullptr;
6193 m_accelerationStructureNV = nullptr;
6194 m_allocator = nullptr;
6195 m_dispatcher = nullptr;
6196 }
6197
6198 VULKAN_HPP_NAMESPACE::AccelerationStructureNV release()
6199 {
6200 m_device = nullptr;
6201 m_allocator = nullptr;
6202 m_dispatcher = nullptr;
6203 return exchange( m_accelerationStructureNV, nullptr );
6204 }
6205
6206 VULKAN_HPP_NAMESPACE::Device getDevice() const
6207 {
6208 return m_device;
6209 }
6210
6211 detail::DeviceDispatcher const * getDispatcher() const
6212 {
6213 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
6214 return m_dispatcher;
6215 }
6216
6217 void swap( AccelerationStructureNV & rhs ) VULKAN_HPP_NOEXCEPT
6218 {
6219 std::swap( m_device, rhs.m_device );
6220 std::swap( m_accelerationStructureNV, rhs.m_accelerationStructureNV );
6221 std::swap( m_allocator, rhs.m_allocator );
6222 std::swap( m_dispatcher, rhs.m_dispatcher );
6223 }
6224
6225 //=== VK_NV_ray_tracing ===
6226
6227 // wrapper function for command vkGetAccelerationStructureHandleNV, see
6228 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureHandleNV.html
6229 VULKAN_HPP_NODISCARD Result getHandle( size_t dataSize, void * pData ) const VULKAN_HPP_NOEXCEPT;
6230
6231 // wrapper function for command vkGetAccelerationStructureHandleNV, see
6232 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureHandleNV.html
6233 template <typename DataType>
6234 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DataType>>::type getHandle( size_t dataSize ) const;
6235
6236 // wrapper function for command vkGetAccelerationStructureHandleNV, see
6237 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureHandleNV.html
6238 template <typename DataType>
6239 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type getHandle() const;
6240
6241 private:
6242 VULKAN_HPP_NAMESPACE::Device m_device = {};
6243 VULKAN_HPP_NAMESPACE::AccelerationStructureNV m_accelerationStructureNV = {};
6244 AllocationCallbacks const * m_allocator = {};
6245 detail::DeviceDispatcher const * m_dispatcher = nullptr;
6246 };
6247
6248 template <>
6249 struct isVulkanRAIIHandleType<AccelerationStructureNV>
6250 {
6251 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
6252 };
6253
6254 // wrapper class for handle VkBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkBuffer.html
6255 class Buffer
6256 {
6257 public:
6258 using CType = VkBuffer;
6259 using CppType = VULKAN_HPP_NAMESPACE::Buffer;
6260
6261 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eBuffer;
6262 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eBuffer;
6263
6264 public:
6265 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
6266 Buffer( Device const & device, BufferCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
6267 {
6268 *this = device.createBuffer( createInfo, allocator );
6269 }
6270 # endif
6271
6272 Buffer( Device const & device, VkBuffer buffer, Optional<AllocationCallbacks const> allocator = nullptr )
6273 : m_device( device ), m_buffer( buffer ), m_allocator( static_cast<const AllocationCallbacks *>( allocator ) ), m_dispatcher( device.getDispatcher() )
6274 {
6275 }
6276
6277 Buffer( std::nullptr_t ) {}
6278
6279 ~Buffer()
6280 {
6281 clear();
6282 }
6283
6284 Buffer() = delete;
6285 Buffer( Buffer const & ) = delete;
6286
6287 Buffer( Buffer && rhs ) VULKAN_HPP_NOEXCEPT
6288 : m_device( exchange( rhs.m_device, {} ) )
6289 , m_buffer( exchange( rhs.m_buffer, {} ) )
6290 , m_allocator( exchange( rhs.m_allocator, {} ) )
6291 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
6292 {
6293 }
6294
6295 Buffer & operator=( Buffer const & ) = delete;
6296
6297 Buffer & operator=( Buffer && rhs ) VULKAN_HPP_NOEXCEPT
6298 {
6299 if ( this != &rhs )
6300 {
6301 std::swap( m_device, rhs.m_device );
6302 std::swap( m_buffer, rhs.m_buffer );
6303 std::swap( m_allocator, rhs.m_allocator );
6304 std::swap( m_dispatcher, rhs.m_dispatcher );
6305 }
6306 return *this;
6307 }
6308
6309 VULKAN_HPP_NAMESPACE::Buffer const & operator*() const & VULKAN_HPP_NOEXCEPT
6310 {
6311 return m_buffer;
6312 }
6313
6314 VULKAN_HPP_NAMESPACE::Buffer const && operator*() const && VULKAN_HPP_NOEXCEPT
6315 {
6316 return std::move( m_buffer );
6317 }
6318
6319 operator VULKAN_HPP_NAMESPACE::Buffer() const VULKAN_HPP_NOEXCEPT
6320 {
6321 return m_buffer;
6322 }
6323
6324 void clear() VULKAN_HPP_NOEXCEPT
6325 {
6326 if ( m_buffer )
6327 {
6328 getDispatcher()->vkDestroyBuffer(
6329 static_cast<VkDevice>( m_device ), static_cast<VkBuffer>( m_buffer ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
6330 }
6331 m_device = nullptr;
6332 m_buffer = nullptr;
6333 m_allocator = nullptr;
6334 m_dispatcher = nullptr;
6335 }
6336
6337 VULKAN_HPP_NAMESPACE::Buffer release()
6338 {
6339 m_device = nullptr;
6340 m_allocator = nullptr;
6341 m_dispatcher = nullptr;
6342 return exchange( m_buffer, nullptr );
6343 }
6344
6345 VULKAN_HPP_NAMESPACE::Device getDevice() const
6346 {
6347 return m_device;
6348 }
6349
6350 detail::DeviceDispatcher const * getDispatcher() const
6351 {
6352 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
6353 return m_dispatcher;
6354 }
6355
6356 void swap( Buffer & rhs ) VULKAN_HPP_NOEXCEPT
6357 {
6358 std::swap( m_device, rhs.m_device );
6359 std::swap( m_buffer, rhs.m_buffer );
6360 std::swap( m_allocator, rhs.m_allocator );
6361 std::swap( m_dispatcher, rhs.m_dispatcher );
6362 }
6363
6364 //=== VK_VERSION_1_0 ===
6365
6366 // wrapper function for command vkBindBufferMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory.html
6367 typename ResultValueType<void>::type bindMemory( VULKAN_HPP_NAMESPACE::DeviceMemory memory, DeviceSize memoryOffset ) const;
6368
6369 // wrapper function for command vkGetBufferMemoryRequirements, see
6370 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements.html
6371 VULKAN_HPP_NODISCARD MemoryRequirements getMemoryRequirements() const VULKAN_HPP_NOEXCEPT;
6372
6373 protected:
6374 Buffer( VULKAN_HPP_NAMESPACE::Device device,
6375 VULKAN_HPP_NAMESPACE::Buffer buffer,
6376 AllocationCallbacks const * allocator,
6377 detail::DeviceDispatcher const * dispatcher ) VULKAN_HPP_NOEXCEPT
6378 : m_device( exchange( device, {} ) )
6379 , m_buffer( exchange( buffer, {} ) )
6380 , m_allocator( exchange( allocator, {} ) )
6381 , m_dispatcher( exchange( dispatcher, nullptr ) )
6382 {
6383 }
6384
6385 private:
6386 VULKAN_HPP_NAMESPACE::Device m_device = {};
6387 VULKAN_HPP_NAMESPACE::Buffer m_buffer = {};
6388 AllocationCallbacks const * m_allocator = {};
6389 detail::DeviceDispatcher const * m_dispatcher = nullptr;
6390 };
6391
6392 template <>
6393 struct isVulkanRAIIHandleType<Buffer>
6394 {
6395 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
6396 };
6397
6398 // wrapper class for handle VkBufferCollectionFUCHSIA, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkBufferCollectionFUCHSIA.html
6399 # if defined( VK_USE_PLATFORM_FUCHSIA )
6400 class BufferCollectionFUCHSIA
6401 {
6402 public:
6403 using CType = VkBufferCollectionFUCHSIA;
6404 using CppType = VULKAN_HPP_NAMESPACE::BufferCollectionFUCHSIA;
6405
6406 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eBufferCollectionFUCHSIA;
6407 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eBufferCollectionFUCHSIA;
6408
6409 public:
6410 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
6411 BufferCollectionFUCHSIA( Device const & device,
6412 BufferCollectionCreateInfoFUCHSIA const & createInfo,
6413 Optional<AllocationCallbacks const> allocator = nullptr )
6414 {
6415 *this = device.createBufferCollectionFUCHSIA( createInfo, allocator );
6416 }
6417 # endif
6418
6419 BufferCollectionFUCHSIA( Device const & device, VkBufferCollectionFUCHSIA collection, Optional<AllocationCallbacks const> allocator = nullptr )
6420 : m_device( device )
6421 , m_bufferCollectionFUCHSIA( collection )
6422 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
6423 , m_dispatcher( device.getDispatcher() )
6424 {
6425 }
6426
6427 BufferCollectionFUCHSIA( std::nullptr_t ) {}
6428
6429 ~BufferCollectionFUCHSIA()
6430 {
6431 clear();
6432 }
6433
6434 BufferCollectionFUCHSIA() = delete;
6435 BufferCollectionFUCHSIA( BufferCollectionFUCHSIA const & ) = delete;
6436
6437 BufferCollectionFUCHSIA( BufferCollectionFUCHSIA && rhs ) VULKAN_HPP_NOEXCEPT
6438 : m_device( exchange( rhs.m_device, {} ) )
6439 , m_bufferCollectionFUCHSIA( exchange( rhs.m_bufferCollectionFUCHSIA, {} ) )
6440 , m_allocator( exchange( rhs.m_allocator, {} ) )
6441 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
6442 {
6443 }
6444
6445 BufferCollectionFUCHSIA & operator=( BufferCollectionFUCHSIA const & ) = delete;
6446
6447 BufferCollectionFUCHSIA & operator=( BufferCollectionFUCHSIA && rhs ) VULKAN_HPP_NOEXCEPT
6448 {
6449 if ( this != &rhs )
6450 {
6451 std::swap( m_device, rhs.m_device );
6452 std::swap( m_bufferCollectionFUCHSIA, rhs.m_bufferCollectionFUCHSIA );
6453 std::swap( m_allocator, rhs.m_allocator );
6454 std::swap( m_dispatcher, rhs.m_dispatcher );
6455 }
6456 return *this;
6457 }
6458
6459 VULKAN_HPP_NAMESPACE::BufferCollectionFUCHSIA const & operator*() const & VULKAN_HPP_NOEXCEPT
6460 {
6461 return m_bufferCollectionFUCHSIA;
6462 }
6463
6464 VULKAN_HPP_NAMESPACE::BufferCollectionFUCHSIA const && operator*() const && VULKAN_HPP_NOEXCEPT
6465 {
6466 return std::move( m_bufferCollectionFUCHSIA );
6467 }
6468
6469 operator VULKAN_HPP_NAMESPACE::BufferCollectionFUCHSIA() const VULKAN_HPP_NOEXCEPT
6470 {
6471 return m_bufferCollectionFUCHSIA;
6472 }
6473
6474 void clear() VULKAN_HPP_NOEXCEPT
6475 {
6476 if ( m_bufferCollectionFUCHSIA )
6477 {
6478 getDispatcher()->vkDestroyBufferCollectionFUCHSIA( static_cast<VkDevice>( m_device ),
6479 static_cast<VkBufferCollectionFUCHSIA>( m_bufferCollectionFUCHSIA ),
6480 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
6481 }
6482 m_device = nullptr;
6483 m_bufferCollectionFUCHSIA = nullptr;
6484 m_allocator = nullptr;
6485 m_dispatcher = nullptr;
6486 }
6487
6488 VULKAN_HPP_NAMESPACE::BufferCollectionFUCHSIA release()
6489 {
6490 m_device = nullptr;
6491 m_allocator = nullptr;
6492 m_dispatcher = nullptr;
6493 return exchange( m_bufferCollectionFUCHSIA, nullptr );
6494 }
6495
6496 VULKAN_HPP_NAMESPACE::Device getDevice() const
6497 {
6498 return m_device;
6499 }
6500
6501 detail::DeviceDispatcher const * getDispatcher() const
6502 {
6503 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
6504 return m_dispatcher;
6505 }
6506
6507 void swap( BufferCollectionFUCHSIA & rhs ) VULKAN_HPP_NOEXCEPT
6508 {
6509 std::swap( m_device, rhs.m_device );
6510 std::swap( m_bufferCollectionFUCHSIA, rhs.m_bufferCollectionFUCHSIA );
6511 std::swap( m_allocator, rhs.m_allocator );
6512 std::swap( m_dispatcher, rhs.m_dispatcher );
6513 }
6514
6515 //=== VK_FUCHSIA_buffer_collection ===
6516
6517 // wrapper function for command vkSetBufferCollectionImageConstraintsFUCHSIA, see
6518 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetBufferCollectionImageConstraintsFUCHSIA.html
6519 typename ResultValueType<void>::type setImageConstraints( ImageConstraintsInfoFUCHSIA const & imageConstraintsInfo ) const;
6520
6521 // wrapper function for command vkSetBufferCollectionBufferConstraintsFUCHSIA, see
6522 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetBufferCollectionBufferConstraintsFUCHSIA.html
6523 typename ResultValueType<void>::type setBufferConstraints( BufferConstraintsInfoFUCHSIA const & bufferConstraintsInfo ) const;
6524
6525 // wrapper function for command vkGetBufferCollectionPropertiesFUCHSIA, see
6526 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferCollectionPropertiesFUCHSIA.html
6527 VULKAN_HPP_NODISCARD typename ResultValueType<BufferCollectionPropertiesFUCHSIA>::type getProperties() const;
6528
6529 private:
6530 VULKAN_HPP_NAMESPACE::Device m_device = {};
6531 VULKAN_HPP_NAMESPACE::BufferCollectionFUCHSIA m_bufferCollectionFUCHSIA = {};
6532 AllocationCallbacks const * m_allocator = {};
6533 detail::DeviceDispatcher const * m_dispatcher = nullptr;
6534 };
6535
6536 template <>
6537 struct isVulkanRAIIHandleType<BufferCollectionFUCHSIA>
6538 {
6539 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
6540 };
6541
6542 # endif /*VK_USE_PLATFORM_FUCHSIA*/
6543
6544 // wrapper class for handle VkBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkBufferView.html
6545 class BufferView
6546 {
6547 public:
6548 using CType = VkBufferView;
6549 using CppType = VULKAN_HPP_NAMESPACE::BufferView;
6550
6551 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eBufferView;
6552 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eBufferView;
6553
6554 public:
6555 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
6556 BufferView( Device const & device, BufferViewCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
6557 {
6558 *this = device.createBufferView( createInfo, allocator );
6559 }
6560 # endif
6561
6562 BufferView( Device const & device, VkBufferView bufferView, Optional<AllocationCallbacks const> allocator = nullptr )
6563 : m_device( device )
6564 , m_bufferView( bufferView )
6565 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
6566 , m_dispatcher( device.getDispatcher() )
6567 {
6568 }
6569
6570 BufferView( std::nullptr_t ) {}
6571
6572 ~BufferView()
6573 {
6574 clear();
6575 }
6576
6577 BufferView() = delete;
6578 BufferView( BufferView const & ) = delete;
6579
6580 BufferView( BufferView && rhs ) VULKAN_HPP_NOEXCEPT
6581 : m_device( exchange( rhs.m_device, {} ) )
6582 , m_bufferView( exchange( rhs.m_bufferView, {} ) )
6583 , m_allocator( exchange( rhs.m_allocator, {} ) )
6584 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
6585 {
6586 }
6587
6588 BufferView & operator=( BufferView const & ) = delete;
6589
6590 BufferView & operator=( BufferView && rhs ) VULKAN_HPP_NOEXCEPT
6591 {
6592 if ( this != &rhs )
6593 {
6594 std::swap( m_device, rhs.m_device );
6595 std::swap( m_bufferView, rhs.m_bufferView );
6596 std::swap( m_allocator, rhs.m_allocator );
6597 std::swap( m_dispatcher, rhs.m_dispatcher );
6598 }
6599 return *this;
6600 }
6601
6602 VULKAN_HPP_NAMESPACE::BufferView const & operator*() const & VULKAN_HPP_NOEXCEPT
6603 {
6604 return m_bufferView;
6605 }
6606
6607 VULKAN_HPP_NAMESPACE::BufferView const && operator*() const && VULKAN_HPP_NOEXCEPT
6608 {
6609 return std::move( m_bufferView );
6610 }
6611
6612 operator VULKAN_HPP_NAMESPACE::BufferView() const VULKAN_HPP_NOEXCEPT
6613 {
6614 return m_bufferView;
6615 }
6616
6617 void clear() VULKAN_HPP_NOEXCEPT
6618 {
6619 if ( m_bufferView )
6620 {
6621 getDispatcher()->vkDestroyBufferView(
6622 static_cast<VkDevice>( m_device ), static_cast<VkBufferView>( m_bufferView ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
6623 }
6624 m_device = nullptr;
6625 m_bufferView = nullptr;
6626 m_allocator = nullptr;
6627 m_dispatcher = nullptr;
6628 }
6629
6630 VULKAN_HPP_NAMESPACE::BufferView release()
6631 {
6632 m_device = nullptr;
6633 m_allocator = nullptr;
6634 m_dispatcher = nullptr;
6635 return exchange( m_bufferView, nullptr );
6636 }
6637
6638 VULKAN_HPP_NAMESPACE::Device getDevice() const
6639 {
6640 return m_device;
6641 }
6642
6643 detail::DeviceDispatcher const * getDispatcher() const
6644 {
6645 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
6646 return m_dispatcher;
6647 }
6648
6649 void swap( BufferView & rhs ) VULKAN_HPP_NOEXCEPT
6650 {
6651 std::swap( m_device, rhs.m_device );
6652 std::swap( m_bufferView, rhs.m_bufferView );
6653 std::swap( m_allocator, rhs.m_allocator );
6654 std::swap( m_dispatcher, rhs.m_dispatcher );
6655 }
6656
6657 private:
6658 VULKAN_HPP_NAMESPACE::Device m_device = {};
6659 VULKAN_HPP_NAMESPACE::BufferView m_bufferView = {};
6660 AllocationCallbacks const * m_allocator = {};
6661 detail::DeviceDispatcher const * m_dispatcher = nullptr;
6662 };
6663
6664 template <>
6665 struct isVulkanRAIIHandleType<BufferView>
6666 {
6667 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
6668 };
6669
6670 // wrapper class for handle VkCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkCommandPool.html
6671 class CommandPool
6672 {
6673 public:
6674 using CType = VkCommandPool;
6675 using CppType = VULKAN_HPP_NAMESPACE::CommandPool;
6676
6677 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eCommandPool;
6678 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eCommandPool;
6679
6680 public:
6681 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
6682 CommandPool( Device const & device, CommandPoolCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
6683 {
6684 *this = device.createCommandPool( createInfo, allocator );
6685 }
6686 # endif
6687
6688 CommandPool( Device const & device, VkCommandPool commandPool, Optional<AllocationCallbacks const> allocator = nullptr )
6689 : m_device( device )
6690 , m_commandPool( commandPool )
6691 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
6692 , m_dispatcher( device.getDispatcher() )
6693 {
6694 }
6695
6696 CommandPool( std::nullptr_t ) {}
6697
6698 ~CommandPool()
6699 {
6700 clear();
6701 }
6702
6703 CommandPool() = delete;
6704 CommandPool( CommandPool const & ) = delete;
6705
6706 CommandPool( CommandPool && rhs ) VULKAN_HPP_NOEXCEPT
6707 : m_device( exchange( rhs.m_device, {} ) )
6708 , m_commandPool( exchange( rhs.m_commandPool, {} ) )
6709 , m_allocator( exchange( rhs.m_allocator, {} ) )
6710 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
6711 {
6712 }
6713
6714 CommandPool & operator=( CommandPool const & ) = delete;
6715
6716 CommandPool & operator=( CommandPool && rhs ) VULKAN_HPP_NOEXCEPT
6717 {
6718 if ( this != &rhs )
6719 {
6720 std::swap( m_device, rhs.m_device );
6721 std::swap( m_commandPool, rhs.m_commandPool );
6722 std::swap( m_allocator, rhs.m_allocator );
6723 std::swap( m_dispatcher, rhs.m_dispatcher );
6724 }
6725 return *this;
6726 }
6727
6728 VULKAN_HPP_NAMESPACE::CommandPool const & operator*() const & VULKAN_HPP_NOEXCEPT
6729 {
6730 return m_commandPool;
6731 }
6732
6733 VULKAN_HPP_NAMESPACE::CommandPool const && operator*() const && VULKAN_HPP_NOEXCEPT
6734 {
6735 return std::move( m_commandPool );
6736 }
6737
6738 operator VULKAN_HPP_NAMESPACE::CommandPool() const VULKAN_HPP_NOEXCEPT
6739 {
6740 return m_commandPool;
6741 }
6742
6743 void clear() VULKAN_HPP_NOEXCEPT
6744 {
6745 if ( m_commandPool )
6746 {
6747 getDispatcher()->vkDestroyCommandPool(
6748 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( m_commandPool ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
6749 }
6750 m_device = nullptr;
6751 m_commandPool = nullptr;
6752 m_allocator = nullptr;
6753 m_dispatcher = nullptr;
6754 }
6755
6756 VULKAN_HPP_NAMESPACE::CommandPool release()
6757 {
6758 m_device = nullptr;
6759 m_allocator = nullptr;
6760 m_dispatcher = nullptr;
6761 return exchange( m_commandPool, nullptr );
6762 }
6763
6764 VULKAN_HPP_NAMESPACE::Device getDevice() const
6765 {
6766 return m_device;
6767 }
6768
6769 detail::DeviceDispatcher const * getDispatcher() const
6770 {
6771 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
6772 return m_dispatcher;
6773 }
6774
6775 void swap( CommandPool & rhs ) VULKAN_HPP_NOEXCEPT
6776 {
6777 std::swap( m_device, rhs.m_device );
6778 std::swap( m_commandPool, rhs.m_commandPool );
6779 std::swap( m_allocator, rhs.m_allocator );
6780 std::swap( m_dispatcher, rhs.m_dispatcher );
6781 }
6782
6783 //=== VK_VERSION_1_0 ===
6784
6785 // wrapper function for command vkResetCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetCommandPool.html
6786 typename ResultValueType<void>::type reset( CommandPoolResetFlags flags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
6787
6788 //=== VK_VERSION_1_1 ===
6789
6790 // wrapper function for command vkTrimCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTrimCommandPool.html
6791 void trim( CommandPoolTrimFlags flags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const VULKAN_HPP_NOEXCEPT;
6792
6793 //=== VK_KHR_maintenance1 ===
6794
6795 // wrapper function for command vkTrimCommandPoolKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTrimCommandPoolKHR.html
6796 void trimKHR( CommandPoolTrimFlags flags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const VULKAN_HPP_NOEXCEPT;
6797
6798 private:
6799 VULKAN_HPP_NAMESPACE::Device m_device = {};
6800 VULKAN_HPP_NAMESPACE::CommandPool m_commandPool = {};
6801 AllocationCallbacks const * m_allocator = {};
6802 detail::DeviceDispatcher const * m_dispatcher = nullptr;
6803 };
6804
6805 template <>
6806 struct isVulkanRAIIHandleType<CommandPool>
6807 {
6808 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
6809 };
6810
6811 // wrapper class for handle VkCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkCommandBuffer.html
6812 class CommandBuffer
6813 {
6814 public:
6815 using CType = VkCommandBuffer;
6816 using CppType = VULKAN_HPP_NAMESPACE::CommandBuffer;
6817
6818 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eCommandBuffer;
6819 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eCommandBuffer;
6820
6821 public:
6822 CommandBuffer( Device const & device, VkCommandBuffer commandBuffer, VkCommandPool commandPool )
6823 : m_device( device ), m_commandPool( commandPool ), m_commandBuffer( commandBuffer ), m_dispatcher( device.getDispatcher() )
6824 {
6825 }
6826
6827 CommandBuffer( std::nullptr_t ) {}
6828
6829 ~CommandBuffer()
6830 {
6831 clear();
6832 }
6833
6834 CommandBuffer() = delete;
6835 CommandBuffer( CommandBuffer const & ) = delete;
6836
6837 CommandBuffer( CommandBuffer && rhs ) VULKAN_HPP_NOEXCEPT
6838 : m_device( exchange( rhs.m_device, {} ) )
6839 , m_commandPool( exchange( rhs.m_commandPool, {} ) )
6840 , m_commandBuffer( exchange( rhs.m_commandBuffer, {} ) )
6841 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
6842 {
6843 }
6844
6845 CommandBuffer & operator=( CommandBuffer const & ) = delete;
6846
6847 CommandBuffer & operator=( CommandBuffer && rhs ) VULKAN_HPP_NOEXCEPT
6848 {
6849 if ( this != &rhs )
6850 {
6851 std::swap( m_device, rhs.m_device );
6852 std::swap( m_commandPool, rhs.m_commandPool );
6853 std::swap( m_commandBuffer, rhs.m_commandBuffer );
6854 std::swap( m_dispatcher, rhs.m_dispatcher );
6855 }
6856 return *this;
6857 }
6858
6859 VULKAN_HPP_NAMESPACE::CommandBuffer const & operator*() const & VULKAN_HPP_NOEXCEPT
6860 {
6861 return m_commandBuffer;
6862 }
6863
6864 VULKAN_HPP_NAMESPACE::CommandBuffer const && operator*() const && VULKAN_HPP_NOEXCEPT
6865 {
6866 return std::move( m_commandBuffer );
6867 }
6868
6869 operator VULKAN_HPP_NAMESPACE::CommandBuffer() const VULKAN_HPP_NOEXCEPT
6870 {
6871 return m_commandBuffer;
6872 }
6873
6874 void clear() VULKAN_HPP_NOEXCEPT
6875 {
6876 if ( m_commandBuffer )
6877 {
6878 getDispatcher()->vkFreeCommandBuffers(
6879 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( m_commandPool ), 1, reinterpret_cast<VkCommandBuffer const *>( &m_commandBuffer ) );
6880 }
6881 m_device = nullptr;
6882 m_commandPool = nullptr;
6883 m_commandBuffer = nullptr;
6884 m_dispatcher = nullptr;
6885 }
6886
6887 VULKAN_HPP_NAMESPACE::CommandBuffer release()
6888 {
6889 m_device = nullptr;
6890 m_commandPool = nullptr;
6891 m_dispatcher = nullptr;
6892 return exchange( m_commandBuffer, nullptr );
6893 }
6894
6895 VULKAN_HPP_NAMESPACE::Device getDevice() const
6896 {
6897 return m_device;
6898 }
6899
6900 detail::DeviceDispatcher const * getDispatcher() const
6901 {
6902 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
6903 return m_dispatcher;
6904 }
6905
6906 void swap( CommandBuffer & rhs ) VULKAN_HPP_NOEXCEPT
6907 {
6908 std::swap( m_device, rhs.m_device );
6909 std::swap( m_commandPool, rhs.m_commandPool );
6910 std::swap( m_commandBuffer, rhs.m_commandBuffer );
6911 std::swap( m_dispatcher, rhs.m_dispatcher );
6912 }
6913
6914 //=== VK_VERSION_1_0 ===
6915
6916 // wrapper function for command vkBeginCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBeginCommandBuffer.html
6917 typename ResultValueType<void>::type begin( CommandBufferBeginInfo const & beginInfo ) const;
6918
6919 // wrapper function for command vkEndCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEndCommandBuffer.html
6920 typename ResultValueType<void>::type end() const;
6921
6922 // wrapper function for command vkResetCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetCommandBuffer.html
6923 typename ResultValueType<void>::type reset( CommandBufferResetFlags flags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
6924
6925 // wrapper function for command vkCmdCopyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer.html
6926 void copyBuffer( VULKAN_HPP_NAMESPACE::Buffer srcBuffer,
6927 VULKAN_HPP_NAMESPACE::Buffer dstBuffer,
6928 ArrayProxy<BufferCopy const> const & regions ) const VULKAN_HPP_NOEXCEPT;
6929
6930 // wrapper function for command vkCmdCopyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage.html
6931 void copyImage( VULKAN_HPP_NAMESPACE::Image srcImage,
6932 ImageLayout srcImageLayout,
6933 VULKAN_HPP_NAMESPACE::Image dstImage,
6934 ImageLayout dstImageLayout,
6935 ArrayProxy<ImageCopy const> const & regions ) const VULKAN_HPP_NOEXCEPT;
6936
6937 // wrapper function for command vkCmdCopyBufferToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage.html
6938 void copyBufferToImage( VULKAN_HPP_NAMESPACE::Buffer srcBuffer,
6939 VULKAN_HPP_NAMESPACE::Image dstImage,
6940 ImageLayout dstImageLayout,
6941 ArrayProxy<BufferImageCopy const> const & regions ) const VULKAN_HPP_NOEXCEPT;
6942
6943 // wrapper function for command vkCmdCopyImageToBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer.html
6944 void copyImageToBuffer( VULKAN_HPP_NAMESPACE::Image srcImage,
6945 ImageLayout srcImageLayout,
6946 VULKAN_HPP_NAMESPACE::Buffer dstBuffer,
6947 ArrayProxy<BufferImageCopy const> const & regions ) const VULKAN_HPP_NOEXCEPT;
6948
6949 // wrapper function for command vkCmdUpdateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateBuffer.html
6950 void updateBuffer( VULKAN_HPP_NAMESPACE::Buffer dstBuffer, DeviceSize dstOffset, DeviceSize dataSize, void const * pData ) const VULKAN_HPP_NOEXCEPT;
6951
6952 // wrapper function for command vkCmdUpdateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateBuffer.html
6953 template <typename DataType>
6954 void updateBuffer( VULKAN_HPP_NAMESPACE::Buffer dstBuffer, DeviceSize dstOffset, ArrayProxy<DataType const> const & data ) const VULKAN_HPP_NOEXCEPT;
6955
6956 // wrapper function for command vkCmdFillBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdFillBuffer.html
6957 void fillBuffer( VULKAN_HPP_NAMESPACE::Buffer dstBuffer, DeviceSize dstOffset, DeviceSize size, uint32_t data ) const VULKAN_HPP_NOEXCEPT;
6958
6959 // wrapper function for command vkCmdPipelineBarrier, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier.html
6960 void pipelineBarrier( PipelineStageFlags srcStageMask,
6961 PipelineStageFlags dstStageMask,
6962 DependencyFlags dependencyFlags,
6963 ArrayProxy<MemoryBarrier const> const & memoryBarriers,
6964 ArrayProxy<BufferMemoryBarrier const> const & bufferMemoryBarriers,
6965 ArrayProxy<ImageMemoryBarrier const> const & imageMemoryBarriers ) const VULKAN_HPP_NOEXCEPT;
6966
6967 // wrapper function for command vkCmdBeginQuery, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginQuery.html
6968 void beginQuery( VULKAN_HPP_NAMESPACE::QueryPool queryPool,
6969 uint32_t query,
6970 QueryControlFlags flags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const VULKAN_HPP_NOEXCEPT;
6971
6972 // wrapper function for command vkCmdEndQuery, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndQuery.html
6973 void endQuery( VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t query ) const VULKAN_HPP_NOEXCEPT;
6974
6975 // wrapper function for command vkCmdResetQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetQueryPool.html
6976 void resetQueryPool( VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount ) const VULKAN_HPP_NOEXCEPT;
6977
6978 // wrapper function for command vkCmdWriteTimestamp, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteTimestamp.html
6979 void writeTimestamp( PipelineStageFlagBits pipelineStage, VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t query ) const VULKAN_HPP_NOEXCEPT;
6980
6981 // wrapper function for command vkCmdCopyQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyQueryPoolResults.html
6982 void copyQueryPoolResults( VULKAN_HPP_NAMESPACE::QueryPool queryPool,
6983 uint32_t firstQuery,
6984 uint32_t queryCount,
6985 VULKAN_HPP_NAMESPACE::Buffer dstBuffer,
6986 DeviceSize dstOffset,
6987 DeviceSize stride,
6988 QueryResultFlags flags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const VULKAN_HPP_NOEXCEPT;
6989
6990 // wrapper function for command vkCmdExecuteCommands, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteCommands.html
6991 void executeCommands( ArrayProxy<VULKAN_HPP_NAMESPACE::CommandBuffer const> const & commandBuffers ) const VULKAN_HPP_NOEXCEPT;
6992
6993 // wrapper function for command vkCmdBindPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindPipeline.html
6994 void bindPipeline( PipelineBindPoint pipelineBindPoint, VULKAN_HPP_NAMESPACE::Pipeline pipeline ) const VULKAN_HPP_NOEXCEPT;
6995
6996 // wrapper function for command vkCmdBindDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets.html
6997 void bindDescriptorSets( PipelineBindPoint pipelineBindPoint,
6998 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
6999 uint32_t firstSet,
7000 ArrayProxy<VULKAN_HPP_NAMESPACE::DescriptorSet const> const & descriptorSets,
7001 ArrayProxy<uint32_t const> const & dynamicOffsets ) const VULKAN_HPP_NOEXCEPT;
7002
7003 // wrapper function for command vkCmdClearColorImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearColorImage.html
7004 void clearColorImage( VULKAN_HPP_NAMESPACE::Image image,
7005 ImageLayout imageLayout,
7006 ClearColorValue const & color,
7007 ArrayProxy<ImageSubresourceRange const> const & ranges ) const VULKAN_HPP_NOEXCEPT;
7008
7009 // wrapper function for command vkCmdDispatch, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatch.html
7010 void dispatch( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT;
7011
7012 // wrapper function for command vkCmdDispatchIndirect, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchIndirect.html
7013 void dispatchIndirect( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset ) const VULKAN_HPP_NOEXCEPT;
7014
7015 // wrapper function for command vkCmdSetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent.html
7016 void setEvent( VULKAN_HPP_NAMESPACE::Event event, PipelineStageFlags stageMask VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const VULKAN_HPP_NOEXCEPT;
7017
7018 // wrapper function for command vkCmdResetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetEvent.html
7019 void resetEvent( VULKAN_HPP_NAMESPACE::Event event, PipelineStageFlags stageMask VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const VULKAN_HPP_NOEXCEPT;
7020
7021 // wrapper function for command vkCmdWaitEvents, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents.html
7022 void waitEvents( ArrayProxy<VULKAN_HPP_NAMESPACE::Event const> const & events,
7023 PipelineStageFlags srcStageMask,
7024 PipelineStageFlags dstStageMask,
7025 ArrayProxy<MemoryBarrier const> const & memoryBarriers,
7026 ArrayProxy<BufferMemoryBarrier const> const & bufferMemoryBarriers,
7027 ArrayProxy<ImageMemoryBarrier const> const & imageMemoryBarriers ) const VULKAN_HPP_NOEXCEPT;
7028
7029 // wrapper function for command vkCmdPushConstants, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants.html
7030 void pushConstants( VULKAN_HPP_NAMESPACE::PipelineLayout layout, ShaderStageFlags stageFlags, uint32_t offset, uint32_t size, void const * pValues ) const
7031 VULKAN_HPP_NOEXCEPT;
7032
7033 // wrapper function for command vkCmdPushConstants, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants.html
7034 template <typename ValuesType>
7035 void pushConstants( VULKAN_HPP_NAMESPACE::PipelineLayout layout,
7036 ShaderStageFlags stageFlags,
7037 uint32_t offset,
7038 ArrayProxy<ValuesType const> const & values ) const VULKAN_HPP_NOEXCEPT;
7039
7040 // wrapper function for command vkCmdSetViewport, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewport.html
7041 void setViewport( uint32_t firstViewport, ArrayProxy<Viewport const> const & viewports ) const VULKAN_HPP_NOEXCEPT;
7042
7043 // wrapper function for command vkCmdSetScissor, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissor.html
7044 void setScissor( uint32_t firstScissor, ArrayProxy<Rect2D const> const & scissors ) const VULKAN_HPP_NOEXCEPT;
7045
7046 // wrapper function for command vkCmdSetLineWidth, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineWidth.html
7047 void setLineWidth( float lineWidth ) const VULKAN_HPP_NOEXCEPT;
7048
7049 // wrapper function for command vkCmdSetDepthBias, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBias.html
7050 void setDepthBias( float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor ) const VULKAN_HPP_NOEXCEPT;
7051
7052 // wrapper function for command vkCmdSetBlendConstants, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetBlendConstants.html
7053 void setBlendConstants( float const blendConstants[4] ) const VULKAN_HPP_NOEXCEPT;
7054
7055 // wrapper function for command vkCmdSetDepthBounds, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBounds.html
7056 void setDepthBounds( float minDepthBounds, float maxDepthBounds ) const VULKAN_HPP_NOEXCEPT;
7057
7058 // wrapper function for command vkCmdSetStencilCompareMask, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilCompareMask.html
7059 void setStencilCompareMask( StencilFaceFlags faceMask, uint32_t compareMask ) const VULKAN_HPP_NOEXCEPT;
7060
7061 // wrapper function for command vkCmdSetStencilWriteMask, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilWriteMask.html
7062 void setStencilWriteMask( StencilFaceFlags faceMask, uint32_t writeMask ) const VULKAN_HPP_NOEXCEPT;
7063
7064 // wrapper function for command vkCmdSetStencilReference, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilReference.html
7065 void setStencilReference( StencilFaceFlags faceMask, uint32_t reference ) const VULKAN_HPP_NOEXCEPT;
7066
7067 // wrapper function for command vkCmdBindIndexBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer.html
7068 void bindIndexBuffer( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset, IndexType indexType ) const VULKAN_HPP_NOEXCEPT;
7069
7070 // wrapper function for command vkCmdBindVertexBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers.html
7071 void bindVertexBuffers( uint32_t firstBinding,
7072 ArrayProxy<VULKAN_HPP_NAMESPACE::Buffer const> const & buffers,
7073 ArrayProxy<DeviceSize const> const & offsets ) const;
7074
7075 // wrapper function for command vkCmdDraw, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDraw.html
7076 void draw( uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance ) const VULKAN_HPP_NOEXCEPT;
7077
7078 // wrapper function for command vkCmdDrawIndexed, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexed.html
7079 void
7080 drawIndexed( uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance ) const VULKAN_HPP_NOEXCEPT;
7081
7082 // wrapper function for command vkCmdDrawIndirect, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirect.html
7083 void drawIndirect( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
7084
7085 // wrapper function for command vkCmdDrawIndexedIndirect, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirect.html
7086 void drawIndexedIndirect( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
7087
7088 // wrapper function for command vkCmdBlitImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage.html
7089 void blitImage( VULKAN_HPP_NAMESPACE::Image srcImage,
7090 ImageLayout srcImageLayout,
7091 VULKAN_HPP_NAMESPACE::Image dstImage,
7092 ImageLayout dstImageLayout,
7093 ArrayProxy<ImageBlit const> const & regions,
7094 Filter filter ) const VULKAN_HPP_NOEXCEPT;
7095
7096 // wrapper function for command vkCmdClearDepthStencilImage, see
7097 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearDepthStencilImage.html
7098 void clearDepthStencilImage( VULKAN_HPP_NAMESPACE::Image image,
7099 ImageLayout imageLayout,
7100 ClearDepthStencilValue const & depthStencil,
7101 ArrayProxy<ImageSubresourceRange const> const & ranges ) const VULKAN_HPP_NOEXCEPT;
7102
7103 // wrapper function for command vkCmdClearAttachments, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearAttachments.html
7104 void clearAttachments( ArrayProxy<ClearAttachment const> const & attachments, ArrayProxy<ClearRect const> const & rects ) const VULKAN_HPP_NOEXCEPT;
7105
7106 // wrapper function for command vkCmdResolveImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage.html
7107 void resolveImage( VULKAN_HPP_NAMESPACE::Image srcImage,
7108 ImageLayout srcImageLayout,
7109 VULKAN_HPP_NAMESPACE::Image dstImage,
7110 ImageLayout dstImageLayout,
7111 ArrayProxy<ImageResolve const> const & regions ) const VULKAN_HPP_NOEXCEPT;
7112
7113 // wrapper function for command vkCmdBeginRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass.html
7114 void beginRenderPass( RenderPassBeginInfo const & renderPassBegin, SubpassContents contents ) const VULKAN_HPP_NOEXCEPT;
7115
7116 // wrapper function for command vkCmdNextSubpass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass.html
7117 void nextSubpass( SubpassContents contents ) const VULKAN_HPP_NOEXCEPT;
7118
7119 // wrapper function for command vkCmdEndRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass.html
7120 void endRenderPass() const VULKAN_HPP_NOEXCEPT;
7121
7122 //=== VK_VERSION_1_1 ===
7123
7124 // wrapper function for command vkCmdSetDeviceMask, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDeviceMask.html
7125 void setDeviceMask( uint32_t deviceMask ) const VULKAN_HPP_NOEXCEPT;
7126
7127 // wrapper function for command vkCmdDispatchBase, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchBase.html
7128 void dispatchBase( uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ ) const
7129 VULKAN_HPP_NOEXCEPT;
7130
7131 //=== VK_VERSION_1_2 ===
7132
7133 // wrapper function for command vkCmdDrawIndirectCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCount.html
7134 void drawIndirectCount( VULKAN_HPP_NAMESPACE::Buffer buffer,
7135 DeviceSize offset,
7136 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
7137 DeviceSize countBufferOffset,
7138 uint32_t maxDrawCount,
7139 uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
7140
7141 // wrapper function for command vkCmdDrawIndexedIndirectCount, see
7142 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCount.html
7143 void drawIndexedIndirectCount( VULKAN_HPP_NAMESPACE::Buffer buffer,
7144 DeviceSize offset,
7145 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
7146 DeviceSize countBufferOffset,
7147 uint32_t maxDrawCount,
7148 uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
7149
7150 // wrapper function for command vkCmdBeginRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass2.html
7151 void beginRenderPass2( RenderPassBeginInfo const & renderPassBegin, SubpassBeginInfo const & subpassBeginInfo ) const VULKAN_HPP_NOEXCEPT;
7152
7153 // wrapper function for command vkCmdNextSubpass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass2.html
7154 void nextSubpass2( SubpassBeginInfo const & subpassBeginInfo, SubpassEndInfo const & subpassEndInfo ) const VULKAN_HPP_NOEXCEPT;
7155
7156 // wrapper function for command vkCmdEndRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass2.html
7157 void endRenderPass2( SubpassEndInfo const & subpassEndInfo ) const VULKAN_HPP_NOEXCEPT;
7158
7159 //=== VK_VERSION_1_3 ===
7160
7161 // wrapper function for command vkCmdPipelineBarrier2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier2.html
7162 void pipelineBarrier2( DependencyInfo const & dependencyInfo ) const VULKAN_HPP_NOEXCEPT;
7163
7164 // wrapper function for command vkCmdWriteTimestamp2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteTimestamp2.html
7165 void writeTimestamp2( PipelineStageFlags2 stage, VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t query ) const VULKAN_HPP_NOEXCEPT;
7166
7167 // wrapper function for command vkCmdCopyBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer2.html
7168 void copyBuffer2( CopyBufferInfo2 const & copyBufferInfo ) const VULKAN_HPP_NOEXCEPT;
7169
7170 // wrapper function for command vkCmdCopyImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage2.html
7171 void copyImage2( CopyImageInfo2 const & copyImageInfo ) const VULKAN_HPP_NOEXCEPT;
7172
7173 // wrapper function for command vkCmdCopyBufferToImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage2.html
7174 void copyBufferToImage2( CopyBufferToImageInfo2 const & copyBufferToImageInfo ) const VULKAN_HPP_NOEXCEPT;
7175
7176 // wrapper function for command vkCmdCopyImageToBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer2.html
7177 void copyImageToBuffer2( CopyImageToBufferInfo2 const & copyImageToBufferInfo ) const VULKAN_HPP_NOEXCEPT;
7178
7179 // wrapper function for command vkCmdSetEvent2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent2.html
7180 void setEvent2( VULKAN_HPP_NAMESPACE::Event event, DependencyInfo const & dependencyInfo ) const VULKAN_HPP_NOEXCEPT;
7181
7182 // wrapper function for command vkCmdResetEvent2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetEvent2.html
7183 void resetEvent2( VULKAN_HPP_NAMESPACE::Event event, PipelineStageFlags2 stageMask VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const VULKAN_HPP_NOEXCEPT;
7184
7185 // wrapper function for command vkCmdWaitEvents2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents2.html
7186 void waitEvents2( ArrayProxy<VULKAN_HPP_NAMESPACE::Event const> const & events, ArrayProxy<DependencyInfo const> const & dependencyInfos ) const;
7187
7188 // wrapper function for command vkCmdBlitImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage2.html
7189 void blitImage2( BlitImageInfo2 const & blitImageInfo ) const VULKAN_HPP_NOEXCEPT;
7190
7191 // wrapper function for command vkCmdResolveImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage2.html
7192 void resolveImage2( ResolveImageInfo2 const & resolveImageInfo ) const VULKAN_HPP_NOEXCEPT;
7193
7194 // wrapper function for command vkCmdBeginRendering, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRendering.html
7195 void beginRendering( RenderingInfo const & renderingInfo ) const VULKAN_HPP_NOEXCEPT;
7196
7197 // wrapper function for command vkCmdEndRendering, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering.html
7198 void endRendering() const VULKAN_HPP_NOEXCEPT;
7199
7200 // wrapper function for command vkCmdSetCullMode, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCullMode.html
7201 void setCullMode( CullModeFlags cullMode VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const VULKAN_HPP_NOEXCEPT;
7202
7203 // wrapper function for command vkCmdSetFrontFace, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFrontFace.html
7204 void setFrontFace( FrontFace frontFace ) const VULKAN_HPP_NOEXCEPT;
7205
7206 // wrapper function for command vkCmdSetPrimitiveTopology, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveTopology.html
7207 void setPrimitiveTopology( PrimitiveTopology primitiveTopology ) const VULKAN_HPP_NOEXCEPT;
7208
7209 // wrapper function for command vkCmdSetViewportWithCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWithCount.html
7210 void setViewportWithCount( ArrayProxy<Viewport const> const & viewports ) const VULKAN_HPP_NOEXCEPT;
7211
7212 // wrapper function for command vkCmdSetScissorWithCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissorWithCount.html
7213 void setScissorWithCount( ArrayProxy<Rect2D const> const & scissors ) const VULKAN_HPP_NOEXCEPT;
7214
7215 // wrapper function for command vkCmdBindVertexBuffers2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers2.html
7216 void bindVertexBuffers2( uint32_t firstBinding,
7217 ArrayProxy<VULKAN_HPP_NAMESPACE::Buffer const> const & buffers,
7218 ArrayProxy<DeviceSize const> const & offsets,
7219 ArrayProxy<DeviceSize const> const & sizes VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ),
7220 ArrayProxy<DeviceSize const> const & strides VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const;
7221
7222 // wrapper function for command vkCmdSetDepthTestEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthTestEnable.html
7223 void setDepthTestEnable( Bool32 depthTestEnable ) const VULKAN_HPP_NOEXCEPT;
7224
7225 // wrapper function for command vkCmdSetDepthWriteEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthWriteEnable.html
7226 void setDepthWriteEnable( Bool32 depthWriteEnable ) const VULKAN_HPP_NOEXCEPT;
7227
7228 // wrapper function for command vkCmdSetDepthCompareOp, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthCompareOp.html
7229 void setDepthCompareOp( CompareOp depthCompareOp ) const VULKAN_HPP_NOEXCEPT;
7230
7231 // wrapper function for command vkCmdSetDepthBoundsTestEnable, see
7232 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBoundsTestEnable.html
7233 void setDepthBoundsTestEnable( Bool32 depthBoundsTestEnable ) const VULKAN_HPP_NOEXCEPT;
7234
7235 // wrapper function for command vkCmdSetStencilTestEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilTestEnable.html
7236 void setStencilTestEnable( Bool32 stencilTestEnable ) const VULKAN_HPP_NOEXCEPT;
7237
7238 // wrapper function for command vkCmdSetStencilOp, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilOp.html
7239 void setStencilOp( StencilFaceFlags faceMask, StencilOp failOp, StencilOp passOp, StencilOp depthFailOp, CompareOp compareOp ) const VULKAN_HPP_NOEXCEPT;
7240
7241 // wrapper function for command vkCmdSetRasterizerDiscardEnable, see
7242 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizerDiscardEnable.html
7243 void setRasterizerDiscardEnable( Bool32 rasterizerDiscardEnable ) const VULKAN_HPP_NOEXCEPT;
7244
7245 // wrapper function for command vkCmdSetDepthBiasEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBiasEnable.html
7246 void setDepthBiasEnable( Bool32 depthBiasEnable ) const VULKAN_HPP_NOEXCEPT;
7247
7248 // wrapper function for command vkCmdSetPrimitiveRestartEnable, see
7249 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveRestartEnable.html
7250 void setPrimitiveRestartEnable( Bool32 primitiveRestartEnable ) const VULKAN_HPP_NOEXCEPT;
7251
7252 //=== VK_VERSION_1_4 ===
7253
7254 // wrapper function for command vkCmdPushDescriptorSet, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet.html
7255 void pushDescriptorSet( PipelineBindPoint pipelineBindPoint,
7256 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
7257 uint32_t set,
7258 ArrayProxy<WriteDescriptorSet const> const & descriptorWrites ) const VULKAN_HPP_NOEXCEPT;
7259
7260 // wrapper function for command vkCmdPushDescriptorSetWithTemplate, see
7261 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate.html
7262 template <typename DataType>
7263 void pushDescriptorSetWithTemplate( VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate descriptorUpdateTemplate,
7264 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
7265 uint32_t set,
7266 DataType const & data ) const VULKAN_HPP_NOEXCEPT;
7267
7268 // wrapper function for command vkCmdBindDescriptorSets2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets2.html
7269 void bindDescriptorSets2( BindDescriptorSetsInfo const & bindDescriptorSetsInfo ) const VULKAN_HPP_NOEXCEPT;
7270
7271 // wrapper function for command vkCmdPushConstants2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants2.html
7272 void pushConstants2( PushConstantsInfo const & pushConstantsInfo ) const VULKAN_HPP_NOEXCEPT;
7273
7274 // wrapper function for command vkCmdPushDescriptorSet2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet2.html
7275 void pushDescriptorSet2( PushDescriptorSetInfo const & pushDescriptorSetInfo ) const VULKAN_HPP_NOEXCEPT;
7276
7277 // wrapper function for command vkCmdPushDescriptorSetWithTemplate2, see
7278 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate2.html
7279 void pushDescriptorSetWithTemplate2( PushDescriptorSetWithTemplateInfo const & pushDescriptorSetWithTemplateInfo ) const VULKAN_HPP_NOEXCEPT;
7280
7281 // wrapper function for command vkCmdSetLineStipple, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStipple.html
7282 void setLineStipple( uint32_t lineStippleFactor, uint16_t lineStipplePattern ) const VULKAN_HPP_NOEXCEPT;
7283
7284 // wrapper function for command vkCmdBindIndexBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer2.html
7285 void bindIndexBuffer2( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset, DeviceSize size, IndexType indexType ) const VULKAN_HPP_NOEXCEPT;
7286
7287 // wrapper function for command vkCmdSetRenderingAttachmentLocations, see
7288 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingAttachmentLocations.html
7289 void setRenderingAttachmentLocations( RenderingAttachmentLocationInfo const & locationInfo ) const VULKAN_HPP_NOEXCEPT;
7290
7291 // wrapper function for command vkCmdSetRenderingInputAttachmentIndices, see
7292 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingInputAttachmentIndices.html
7293 void setRenderingInputAttachmentIndices( RenderingInputAttachmentIndexInfo const & inputAttachmentIndexInfo ) const VULKAN_HPP_NOEXCEPT;
7294
7295 //=== VK_EXT_debug_marker ===
7296
7297 // wrapper function for command vkCmdDebugMarkerBeginEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerBeginEXT.html
7298 void debugMarkerBeginEXT( DebugMarkerMarkerInfoEXT const & markerInfo ) const VULKAN_HPP_NOEXCEPT;
7299
7300 // wrapper function for command vkCmdDebugMarkerEndEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerEndEXT.html
7301 void debugMarkerEndEXT() const VULKAN_HPP_NOEXCEPT;
7302
7303 // wrapper function for command vkCmdDebugMarkerInsertEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerInsertEXT.html
7304 void debugMarkerInsertEXT( DebugMarkerMarkerInfoEXT const & markerInfo ) const VULKAN_HPP_NOEXCEPT;
7305
7306 //=== VK_KHR_video_queue ===
7307
7308 // wrapper function for command vkCmdBeginVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginVideoCodingKHR.html
7309 void beginVideoCodingKHR( VideoBeginCodingInfoKHR const & beginInfo ) const VULKAN_HPP_NOEXCEPT;
7310
7311 // wrapper function for command vkCmdEndVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndVideoCodingKHR.html
7312 void endVideoCodingKHR( VideoEndCodingInfoKHR const & endCodingInfo ) const VULKAN_HPP_NOEXCEPT;
7313
7314 // wrapper function for command vkCmdControlVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdControlVideoCodingKHR.html
7315 void controlVideoCodingKHR( VideoCodingControlInfoKHR const & codingControlInfo ) const VULKAN_HPP_NOEXCEPT;
7316
7317 //=== VK_KHR_video_decode_queue ===
7318
7319 // wrapper function for command vkCmdDecodeVideoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecodeVideoKHR.html
7320 void decodeVideoKHR( VideoDecodeInfoKHR const & decodeInfo ) const VULKAN_HPP_NOEXCEPT;
7321
7322 //=== VK_EXT_transform_feedback ===
7323
7324 // wrapper function for command vkCmdBindTransformFeedbackBuffersEXT, see
7325 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTransformFeedbackBuffersEXT.html
7326 void bindTransformFeedbackBuffersEXT( uint32_t firstBinding,
7327 ArrayProxy<VULKAN_HPP_NAMESPACE::Buffer const> const & buffers,
7328 ArrayProxy<DeviceSize const> const & offsets,
7329 ArrayProxy<DeviceSize const> const & sizes VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const;
7330
7331 // wrapper function for command vkCmdBeginTransformFeedbackEXT, see
7332 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginTransformFeedbackEXT.html
7333 void beginTransformFeedbackEXT( uint32_t firstCounterBuffer,
7334 ArrayProxy<VULKAN_HPP_NAMESPACE::Buffer const> const & counterBuffers,
7335 ArrayProxy<DeviceSize const> const & counterBufferOffsets VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const;
7336
7337 // wrapper function for command vkCmdEndTransformFeedbackEXT, see
7338 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndTransformFeedbackEXT.html
7339 void endTransformFeedbackEXT( uint32_t firstCounterBuffer,
7340 ArrayProxy<VULKAN_HPP_NAMESPACE::Buffer const> const & counterBuffers,
7341 ArrayProxy<DeviceSize const> const & counterBufferOffsets VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const;
7342
7343 // wrapper function for command vkCmdBeginQueryIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginQueryIndexedEXT.html
7344 void beginQueryIndexedEXT( VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t query, QueryControlFlags flags, uint32_t index ) const VULKAN_HPP_NOEXCEPT;
7345
7346 // wrapper function for command vkCmdEndQueryIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndQueryIndexedEXT.html
7347 void endQueryIndexedEXT( VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t query, uint32_t index ) const VULKAN_HPP_NOEXCEPT;
7348
7349 // wrapper function for command vkCmdDrawIndirectByteCountEXT, see
7350 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectByteCountEXT.html
7351 void drawIndirectByteCountEXT( uint32_t instanceCount,
7352 uint32_t firstInstance,
7353 VULKAN_HPP_NAMESPACE::Buffer counterBuffer,
7354 DeviceSize counterBufferOffset,
7355 uint32_t counterOffset,
7356 uint32_t vertexStride ) const VULKAN_HPP_NOEXCEPT;
7357
7358 //=== VK_NVX_binary_import ===
7359
7360 // wrapper function for command vkCmdCuLaunchKernelNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCuLaunchKernelNVX.html
7361 void cuLaunchKernelNVX( CuLaunchInfoNVX const & launchInfo ) const VULKAN_HPP_NOEXCEPT;
7362
7363 //=== VK_AMD_draw_indirect_count ===
7364
7365 // wrapper function for command vkCmdDrawIndirectCountAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCountAMD.html
7366 void drawIndirectCountAMD( VULKAN_HPP_NAMESPACE::Buffer buffer,
7367 DeviceSize offset,
7368 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
7369 DeviceSize countBufferOffset,
7370 uint32_t maxDrawCount,
7371 uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
7372
7373 // wrapper function for command vkCmdDrawIndexedIndirectCountAMD, see
7374 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCountAMD.html
7375 void drawIndexedIndirectCountAMD( VULKAN_HPP_NAMESPACE::Buffer buffer,
7376 DeviceSize offset,
7377 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
7378 DeviceSize countBufferOffset,
7379 uint32_t maxDrawCount,
7380 uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
7381
7382 //=== VK_KHR_dynamic_rendering ===
7383
7384 // wrapper function for command vkCmdBeginRenderingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderingKHR.html
7385 void beginRenderingKHR( RenderingInfo const & renderingInfo ) const VULKAN_HPP_NOEXCEPT;
7386
7387 // wrapper function for command vkCmdEndRenderingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderingKHR.html
7388 void endRenderingKHR() const VULKAN_HPP_NOEXCEPT;
7389
7390 //=== VK_KHR_device_group ===
7391
7392 // wrapper function for command vkCmdSetDeviceMaskKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDeviceMaskKHR.html
7393 void setDeviceMaskKHR( uint32_t deviceMask ) const VULKAN_HPP_NOEXCEPT;
7394
7395 // wrapper function for command vkCmdDispatchBaseKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchBaseKHR.html
7396 void dispatchBaseKHR( uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ )
7397 const VULKAN_HPP_NOEXCEPT;
7398
7399 //=== VK_KHR_push_descriptor ===
7400
7401 // wrapper function for command vkCmdPushDescriptorSetKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetKHR.html
7402 void pushDescriptorSetKHR( PipelineBindPoint pipelineBindPoint,
7403 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
7404 uint32_t set,
7405 ArrayProxy<WriteDescriptorSet const> const & descriptorWrites ) const VULKAN_HPP_NOEXCEPT;
7406
7407 // wrapper function for command vkCmdPushDescriptorSetWithTemplateKHR, see
7408 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplateKHR.html
7409 template <typename DataType>
7410 void pushDescriptorSetWithTemplateKHR( VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate descriptorUpdateTemplate,
7411 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
7412 uint32_t set,
7413 DataType const & data ) const VULKAN_HPP_NOEXCEPT;
7414
7415 //=== VK_EXT_conditional_rendering ===
7416
7417 // wrapper function for command vkCmdBeginConditionalRenderingEXT, see
7418 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginConditionalRenderingEXT.html
7419 void beginConditionalRenderingEXT( ConditionalRenderingBeginInfoEXT const & conditionalRenderingBegin ) const VULKAN_HPP_NOEXCEPT;
7420
7421 // wrapper function for command vkCmdEndConditionalRenderingEXT, see
7422 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndConditionalRenderingEXT.html
7423 void endConditionalRenderingEXT() const VULKAN_HPP_NOEXCEPT;
7424
7425 //=== VK_NV_clip_space_w_scaling ===
7426
7427 // wrapper function for command vkCmdSetViewportWScalingNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWScalingNV.html
7428 void setViewportWScalingNV( uint32_t firstViewport, ArrayProxy<ViewportWScalingNV const> const & viewportWScalings ) const VULKAN_HPP_NOEXCEPT;
7429
7430 //=== VK_EXT_discard_rectangles ===
7431
7432 // wrapper function for command vkCmdSetDiscardRectangleEXT, see
7433 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleEXT.html
7434 void setDiscardRectangleEXT( uint32_t firstDiscardRectangle, ArrayProxy<Rect2D const> const & discardRectangles ) const VULKAN_HPP_NOEXCEPT;
7435
7436 // wrapper function for command vkCmdSetDiscardRectangleEnableEXT, see
7437 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleEnableEXT.html
7438 void setDiscardRectangleEnableEXT( Bool32 discardRectangleEnable ) const VULKAN_HPP_NOEXCEPT;
7439
7440 // wrapper function for command vkCmdSetDiscardRectangleModeEXT, see
7441 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleModeEXT.html
7442 void setDiscardRectangleModeEXT( DiscardRectangleModeEXT discardRectangleMode ) const VULKAN_HPP_NOEXCEPT;
7443
7444 //=== VK_KHR_create_renderpass2 ===
7445
7446 // wrapper function for command vkCmdBeginRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass2KHR.html
7447 void beginRenderPass2KHR( RenderPassBeginInfo const & renderPassBegin, SubpassBeginInfo const & subpassBeginInfo ) const VULKAN_HPP_NOEXCEPT;
7448
7449 // wrapper function for command vkCmdNextSubpass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass2KHR.html
7450 void nextSubpass2KHR( SubpassBeginInfo const & subpassBeginInfo, SubpassEndInfo const & subpassEndInfo ) const VULKAN_HPP_NOEXCEPT;
7451
7452 // wrapper function for command vkCmdEndRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass2KHR.html
7453 void endRenderPass2KHR( SubpassEndInfo const & subpassEndInfo ) const VULKAN_HPP_NOEXCEPT;
7454
7455 //=== VK_EXT_debug_utils ===
7456
7457 // wrapper function for command vkCmdBeginDebugUtilsLabelEXT, see
7458 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginDebugUtilsLabelEXT.html
7459 void beginDebugUtilsLabelEXT( DebugUtilsLabelEXT const & labelInfo ) const VULKAN_HPP_NOEXCEPT;
7460
7461 // wrapper function for command vkCmdEndDebugUtilsLabelEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndDebugUtilsLabelEXT.html
7462 void endDebugUtilsLabelEXT() const VULKAN_HPP_NOEXCEPT;
7463
7464 // wrapper function for command vkCmdInsertDebugUtilsLabelEXT, see
7465 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdInsertDebugUtilsLabelEXT.html
7466 void insertDebugUtilsLabelEXT( DebugUtilsLabelEXT const & labelInfo ) const VULKAN_HPP_NOEXCEPT;
7467
7468 # if defined( VK_ENABLE_BETA_EXTENSIONS )
7469 //=== VK_AMDX_shader_enqueue ===
7470
7471 // wrapper function for command vkCmdInitializeGraphScratchMemoryAMDX, see
7472 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdInitializeGraphScratchMemoryAMDX.html
7473 void initializeGraphScratchMemoryAMDX( VULKAN_HPP_NAMESPACE::Pipeline executionGraph,
7474 DeviceAddress scratch,
7475 DeviceSize scratchSize ) const VULKAN_HPP_NOEXCEPT;
7476
7477 // wrapper function for command vkCmdDispatchGraphAMDX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphAMDX.html
7478 void dispatchGraphAMDX( DeviceAddress scratch, DeviceSize scratchSize, DispatchGraphCountInfoAMDX const & countInfo ) const VULKAN_HPP_NOEXCEPT;
7479
7480 // wrapper function for command vkCmdDispatchGraphIndirectAMDX, see
7481 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphIndirectAMDX.html
7482 void dispatchGraphIndirectAMDX( DeviceAddress scratch, DeviceSize scratchSize, DispatchGraphCountInfoAMDX const & countInfo ) const VULKAN_HPP_NOEXCEPT;
7483
7484 // wrapper function for command vkCmdDispatchGraphIndirectCountAMDX, see
7485 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphIndirectCountAMDX.html
7486 void dispatchGraphIndirectCountAMDX( DeviceAddress scratch, DeviceSize scratchSize, DeviceAddress countInfo ) const VULKAN_HPP_NOEXCEPT;
7487 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
7488
7489 //=== VK_EXT_descriptor_heap ===
7490
7491 // wrapper function for command vkCmdBindSamplerHeapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindSamplerHeapEXT.html
7492 void bindSamplerHeapEXT( BindHeapInfoEXT const & bindInfo ) const VULKAN_HPP_NOEXCEPT;
7493
7494 // wrapper function for command vkCmdBindResourceHeapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindResourceHeapEXT.html
7495 void bindResourceHeapEXT( BindHeapInfoEXT const & bindInfo ) const VULKAN_HPP_NOEXCEPT;
7496
7497 // wrapper function for command vkCmdPushDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDataEXT.html
7498 void pushDataEXT( PushDataInfoEXT const & pushDataInfo ) const VULKAN_HPP_NOEXCEPT;
7499
7500 //=== VK_EXT_sample_locations ===
7501
7502 // wrapper function for command vkCmdSetSampleLocationsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleLocationsEXT.html
7503 void setSampleLocationsEXT( SampleLocationsInfoEXT const & sampleLocationsInfo ) const VULKAN_HPP_NOEXCEPT;
7504
7505 //=== VK_KHR_acceleration_structure ===
7506
7507 // wrapper function for command vkCmdBuildAccelerationStructuresKHR, see
7508 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructuresKHR.html
7509 void buildAccelerationStructuresKHR( ArrayProxy<AccelerationStructureBuildGeometryInfoKHR const> const & infos,
7510 ArrayProxy<AccelerationStructureBuildRangeInfoKHR const * const> const & pBuildRangeInfos ) const;
7511
7512 // wrapper function for command vkCmdBuildAccelerationStructuresIndirectKHR, see
7513 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructuresIndirectKHR.html
7514 void buildAccelerationStructuresIndirectKHR( ArrayProxy<AccelerationStructureBuildGeometryInfoKHR const> const & infos,
7515 ArrayProxy<DeviceAddress const> const & indirectDeviceAddresses,
7516 ArrayProxy<uint32_t const> const & indirectStrides,
7517 ArrayProxy<uint32_t const * const> const & pMaxPrimitiveCounts ) const;
7518
7519 // wrapper function for command vkCmdCopyAccelerationStructureKHR, see
7520 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureKHR.html
7521 void copyAccelerationStructureKHR( CopyAccelerationStructureInfoKHR const & info ) const VULKAN_HPP_NOEXCEPT;
7522
7523 // wrapper function for command vkCmdCopyAccelerationStructureToMemoryKHR, see
7524 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureToMemoryKHR.html
7525 void copyAccelerationStructureToMemoryKHR( CopyAccelerationStructureToMemoryInfoKHR const & info ) const VULKAN_HPP_NOEXCEPT;
7526
7527 // wrapper function for command vkCmdCopyMemoryToAccelerationStructureKHR, see
7528 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToAccelerationStructureKHR.html
7529 void copyMemoryToAccelerationStructureKHR( CopyMemoryToAccelerationStructureInfoKHR const & info ) const VULKAN_HPP_NOEXCEPT;
7530
7531 // wrapper function for command vkCmdWriteAccelerationStructuresPropertiesKHR, see
7532 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteAccelerationStructuresPropertiesKHR.html
7533 void writeAccelerationStructuresPropertiesKHR( ArrayProxy<VULKAN_HPP_NAMESPACE::AccelerationStructureKHR const> const & accelerationStructures,
7534 QueryType queryType,
7535 VULKAN_HPP_NAMESPACE::QueryPool queryPool,
7536 uint32_t firstQuery ) const VULKAN_HPP_NOEXCEPT;
7537
7538 //=== VK_KHR_ray_tracing_pipeline ===
7539
7540 // wrapper function for command vkCmdTraceRaysKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysKHR.html
7541 void traceRaysKHR( StridedDeviceAddressRegionKHR const & raygenShaderBindingTable,
7542 StridedDeviceAddressRegionKHR const & missShaderBindingTable,
7543 StridedDeviceAddressRegionKHR const & hitShaderBindingTable,
7544 StridedDeviceAddressRegionKHR const & callableShaderBindingTable,
7545 uint32_t width,
7546 uint32_t height,
7547 uint32_t depth ) const VULKAN_HPP_NOEXCEPT;
7548
7549 // wrapper function for command vkCmdTraceRaysIndirectKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysIndirectKHR.html
7550 void traceRaysIndirectKHR( StridedDeviceAddressRegionKHR const & raygenShaderBindingTable,
7551 StridedDeviceAddressRegionKHR const & missShaderBindingTable,
7552 StridedDeviceAddressRegionKHR const & hitShaderBindingTable,
7553 StridedDeviceAddressRegionKHR const & callableShaderBindingTable,
7554 DeviceAddress indirectDeviceAddress ) const VULKAN_HPP_NOEXCEPT;
7555
7556 // wrapper function for command vkCmdSetRayTracingPipelineStackSizeKHR, see
7557 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRayTracingPipelineStackSizeKHR.html
7558 void setRayTracingPipelineStackSizeKHR( uint32_t pipelineStackSize ) const VULKAN_HPP_NOEXCEPT;
7559
7560 //=== VK_NV_shading_rate_image ===
7561
7562 // wrapper function for command vkCmdBindShadingRateImageNV, see
7563 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindShadingRateImageNV.html
7564 void bindShadingRateImageNV( VULKAN_HPP_NAMESPACE::ImageView imageView, ImageLayout imageLayout ) const VULKAN_HPP_NOEXCEPT;
7565
7566 // wrapper function for command vkCmdSetViewportShadingRatePaletteNV, see
7567 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportShadingRatePaletteNV.html
7568 void setViewportShadingRatePaletteNV( uint32_t firstViewport,
7569 ArrayProxy<ShadingRatePaletteNV const> const & shadingRatePalettes ) const VULKAN_HPP_NOEXCEPT;
7570
7571 // wrapper function for command vkCmdSetCoarseSampleOrderNV, see
7572 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoarseSampleOrderNV.html
7573 void setCoarseSampleOrderNV( CoarseSampleOrderTypeNV sampleOrderType,
7574 ArrayProxy<CoarseSampleOrderCustomNV const> const & customSampleOrders ) const VULKAN_HPP_NOEXCEPT;
7575
7576 //=== VK_NV_ray_tracing ===
7577
7578 // wrapper function for command vkCmdBuildAccelerationStructureNV, see
7579 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructureNV.html
7580 void buildAccelerationStructureNV( AccelerationStructureInfoNV const & info,
7581 VULKAN_HPP_NAMESPACE::Buffer instanceData,
7582 DeviceSize instanceOffset,
7583 Bool32 update,
7584 VULKAN_HPP_NAMESPACE::AccelerationStructureNV dst,
7585 VULKAN_HPP_NAMESPACE::AccelerationStructureNV src,
7586 VULKAN_HPP_NAMESPACE::Buffer scratch,
7587 DeviceSize scratchOffset ) const VULKAN_HPP_NOEXCEPT;
7588
7589 // wrapper function for command vkCmdCopyAccelerationStructureNV, see
7590 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureNV.html
7591 void copyAccelerationStructureNV( VULKAN_HPP_NAMESPACE::AccelerationStructureNV dst,
7592 VULKAN_HPP_NAMESPACE::AccelerationStructureNV src,
7593 CopyAccelerationStructureModeKHR mode ) const VULKAN_HPP_NOEXCEPT;
7594
7595 // wrapper function for command vkCmdTraceRaysNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysNV.html
7596 void traceRaysNV( VULKAN_HPP_NAMESPACE::Buffer raygenShaderBindingTableBuffer,
7597 DeviceSize raygenShaderBindingOffset,
7598 VULKAN_HPP_NAMESPACE::Buffer missShaderBindingTableBuffer,
7599 DeviceSize missShaderBindingOffset,
7600 DeviceSize missShaderBindingStride,
7601 VULKAN_HPP_NAMESPACE::Buffer hitShaderBindingTableBuffer,
7602 DeviceSize hitShaderBindingOffset,
7603 DeviceSize hitShaderBindingStride,
7604 VULKAN_HPP_NAMESPACE::Buffer callableShaderBindingTableBuffer,
7605 DeviceSize callableShaderBindingOffset,
7606 DeviceSize callableShaderBindingStride,
7607 uint32_t width,
7608 uint32_t height,
7609 uint32_t depth ) const VULKAN_HPP_NOEXCEPT;
7610
7611 // wrapper function for command vkCmdWriteAccelerationStructuresPropertiesNV, see
7612 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteAccelerationStructuresPropertiesNV.html
7613 void writeAccelerationStructuresPropertiesNV( ArrayProxy<VULKAN_HPP_NAMESPACE::AccelerationStructureNV const> const & accelerationStructures,
7614 QueryType queryType,
7615 VULKAN_HPP_NAMESPACE::QueryPool queryPool,
7616 uint32_t firstQuery ) const VULKAN_HPP_NOEXCEPT;
7617
7618 //=== VK_KHR_draw_indirect_count ===
7619
7620 // wrapper function for command vkCmdDrawIndirectCountKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCountKHR.html
7621 void drawIndirectCountKHR( VULKAN_HPP_NAMESPACE::Buffer buffer,
7622 DeviceSize offset,
7623 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
7624 DeviceSize countBufferOffset,
7625 uint32_t maxDrawCount,
7626 uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
7627
7628 // wrapper function for command vkCmdDrawIndexedIndirectCountKHR, see
7629 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCountKHR.html
7630 void drawIndexedIndirectCountKHR( VULKAN_HPP_NAMESPACE::Buffer buffer,
7631 DeviceSize offset,
7632 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
7633 DeviceSize countBufferOffset,
7634 uint32_t maxDrawCount,
7635 uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
7636
7637 //=== VK_AMD_buffer_marker ===
7638
7639 // wrapper function for command vkCmdWriteBufferMarkerAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteBufferMarkerAMD.html
7640 void writeBufferMarkerAMD( PipelineStageFlagBits pipelineStage,
7641 VULKAN_HPP_NAMESPACE::Buffer dstBuffer,
7642 DeviceSize dstOffset,
7643 uint32_t marker ) const VULKAN_HPP_NOEXCEPT;
7644
7645 // wrapper function for command vkCmdWriteBufferMarker2AMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteBufferMarker2AMD.html
7646 void writeBufferMarker2AMD( PipelineStageFlags2 stage,
7647 VULKAN_HPP_NAMESPACE::Buffer dstBuffer,
7648 DeviceSize dstOffset,
7649 uint32_t marker ) const VULKAN_HPP_NOEXCEPT;
7650
7651 //=== VK_NV_mesh_shader ===
7652
7653 // wrapper function for command vkCmdDrawMeshTasksNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksNV.html
7654 void drawMeshTasksNV( uint32_t taskCount, uint32_t firstTask ) const VULKAN_HPP_NOEXCEPT;
7655
7656 // wrapper function for command vkCmdDrawMeshTasksIndirectNV, see
7657 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectNV.html
7658 void drawMeshTasksIndirectNV( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
7659
7660 // wrapper function for command vkCmdDrawMeshTasksIndirectCountNV, see
7661 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectCountNV.html
7662 void drawMeshTasksIndirectCountNV( VULKAN_HPP_NAMESPACE::Buffer buffer,
7663 DeviceSize offset,
7664 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
7665 DeviceSize countBufferOffset,
7666 uint32_t maxDrawCount,
7667 uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
7668
7669 //=== VK_NV_scissor_exclusive ===
7670
7671 // wrapper function for command vkCmdSetExclusiveScissorEnableNV, see
7672 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExclusiveScissorEnableNV.html
7673 void setExclusiveScissorEnableNV( uint32_t firstExclusiveScissor, ArrayProxy<Bool32 const> const & exclusiveScissorEnables ) const VULKAN_HPP_NOEXCEPT;
7674
7675 // wrapper function for command vkCmdSetExclusiveScissorNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExclusiveScissorNV.html
7676 void setExclusiveScissorNV( uint32_t firstExclusiveScissor, ArrayProxy<Rect2D const> const & exclusiveScissors ) const VULKAN_HPP_NOEXCEPT;
7677
7678 //=== VK_NV_device_diagnostic_checkpoints ===
7679
7680 // wrapper function for command vkCmdSetCheckpointNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCheckpointNV.html
7681 template <typename CheckpointMarkerType>
7682 void setCheckpointNV( CheckpointMarkerType const & checkpointMarker ) const VULKAN_HPP_NOEXCEPT;
7683
7684 //=== VK_INTEL_performance_query ===
7685
7686 // wrapper function for command vkCmdSetPerformanceMarkerINTEL, see
7687 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceMarkerINTEL.html
7688 typename ResultValueType<void>::type setPerformanceMarkerINTEL( PerformanceMarkerInfoINTEL const & markerInfo ) const;
7689
7690 // wrapper function for command vkCmdSetPerformanceStreamMarkerINTEL, see
7691 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceStreamMarkerINTEL.html
7692 typename ResultValueType<void>::type setPerformanceStreamMarkerINTEL( PerformanceStreamMarkerInfoINTEL const & markerInfo ) const;
7693
7694 // wrapper function for command vkCmdSetPerformanceOverrideINTEL, see
7695 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceOverrideINTEL.html
7696 typename ResultValueType<void>::type setPerformanceOverrideINTEL( PerformanceOverrideInfoINTEL const & overrideInfo ) const;
7697
7698 //=== VK_KHR_fragment_shading_rate ===
7699
7700 // wrapper function for command vkCmdSetFragmentShadingRateKHR, see
7701 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFragmentShadingRateKHR.html
7702 void setFragmentShadingRateKHR( Extent2D const & fragmentSize, FragmentShadingRateCombinerOpKHR const combinerOps[2] ) const VULKAN_HPP_NOEXCEPT;
7703
7704 //=== VK_KHR_dynamic_rendering_local_read ===
7705
7706 // wrapper function for command vkCmdSetRenderingAttachmentLocationsKHR, see
7707 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingAttachmentLocationsKHR.html
7708 void setRenderingAttachmentLocationsKHR( RenderingAttachmentLocationInfo const & locationInfo ) const VULKAN_HPP_NOEXCEPT;
7709
7710 // wrapper function for command vkCmdSetRenderingInputAttachmentIndicesKHR, see
7711 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingInputAttachmentIndicesKHR.html
7712 void setRenderingInputAttachmentIndicesKHR( RenderingInputAttachmentIndexInfo const & inputAttachmentIndexInfo ) const VULKAN_HPP_NOEXCEPT;
7713
7714 //=== VK_EXT_line_rasterization ===
7715
7716 // wrapper function for command vkCmdSetLineStippleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStippleEXT.html
7717 void setLineStippleEXT( uint32_t lineStippleFactor, uint16_t lineStipplePattern ) const VULKAN_HPP_NOEXCEPT;
7718
7719 //=== VK_EXT_extended_dynamic_state ===
7720
7721 // wrapper function for command vkCmdSetCullModeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCullModeEXT.html
7722 void setCullModeEXT( CullModeFlags cullMode VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const VULKAN_HPP_NOEXCEPT;
7723
7724 // wrapper function for command vkCmdSetFrontFaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFrontFaceEXT.html
7725 void setFrontFaceEXT( FrontFace frontFace ) const VULKAN_HPP_NOEXCEPT;
7726
7727 // wrapper function for command vkCmdSetPrimitiveTopologyEXT, see
7728 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveTopologyEXT.html
7729 void setPrimitiveTopologyEXT( PrimitiveTopology primitiveTopology ) const VULKAN_HPP_NOEXCEPT;
7730
7731 // wrapper function for command vkCmdSetViewportWithCountEXT, see
7732 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWithCountEXT.html
7733 void setViewportWithCountEXT( ArrayProxy<Viewport const> const & viewports ) const VULKAN_HPP_NOEXCEPT;
7734
7735 // wrapper function for command vkCmdSetScissorWithCountEXT, see
7736 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissorWithCountEXT.html
7737 void setScissorWithCountEXT( ArrayProxy<Rect2D const> const & scissors ) const VULKAN_HPP_NOEXCEPT;
7738
7739 // wrapper function for command vkCmdBindVertexBuffers2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers2EXT.html
7740 void bindVertexBuffers2EXT( uint32_t firstBinding,
7741 ArrayProxy<VULKAN_HPP_NAMESPACE::Buffer const> const & buffers,
7742 ArrayProxy<DeviceSize const> const & offsets,
7743 ArrayProxy<DeviceSize const> const & sizes VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ),
7744 ArrayProxy<DeviceSize const> const & strides VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const;
7745
7746 // wrapper function for command vkCmdSetDepthTestEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthTestEnableEXT.html
7747 void setDepthTestEnableEXT( Bool32 depthTestEnable ) const VULKAN_HPP_NOEXCEPT;
7748
7749 // wrapper function for command vkCmdSetDepthWriteEnableEXT, see
7750 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthWriteEnableEXT.html
7751 void setDepthWriteEnableEXT( Bool32 depthWriteEnable ) const VULKAN_HPP_NOEXCEPT;
7752
7753 // wrapper function for command vkCmdSetDepthCompareOpEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthCompareOpEXT.html
7754 void setDepthCompareOpEXT( CompareOp depthCompareOp ) const VULKAN_HPP_NOEXCEPT;
7755
7756 // wrapper function for command vkCmdSetDepthBoundsTestEnableEXT, see
7757 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBoundsTestEnableEXT.html
7758 void setDepthBoundsTestEnableEXT( Bool32 depthBoundsTestEnable ) const VULKAN_HPP_NOEXCEPT;
7759
7760 // wrapper function for command vkCmdSetStencilTestEnableEXT, see
7761 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilTestEnableEXT.html
7762 void setStencilTestEnableEXT( Bool32 stencilTestEnable ) const VULKAN_HPP_NOEXCEPT;
7763
7764 // wrapper function for command vkCmdSetStencilOpEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilOpEXT.html
7765 void
7766 setStencilOpEXT( StencilFaceFlags faceMask, StencilOp failOp, StencilOp passOp, StencilOp depthFailOp, CompareOp compareOp ) const VULKAN_HPP_NOEXCEPT;
7767
7768 //=== VK_NV_device_generated_commands ===
7769
7770 // wrapper function for command vkCmdPreprocessGeneratedCommandsNV, see
7771 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPreprocessGeneratedCommandsNV.html
7772 void preprocessGeneratedCommandsNV( GeneratedCommandsInfoNV const & generatedCommandsInfo ) const VULKAN_HPP_NOEXCEPT;
7773
7774 // wrapper function for command vkCmdExecuteGeneratedCommandsNV, see
7775 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteGeneratedCommandsNV.html
7776 void executeGeneratedCommandsNV( Bool32 isPreprocessed, GeneratedCommandsInfoNV const & generatedCommandsInfo ) const VULKAN_HPP_NOEXCEPT;
7777
7778 // wrapper function for command vkCmdBindPipelineShaderGroupNV, see
7779 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindPipelineShaderGroupNV.html
7780 void bindPipelineShaderGroupNV( PipelineBindPoint pipelineBindPoint,
7781 VULKAN_HPP_NAMESPACE::Pipeline pipeline,
7782 uint32_t groupIndex ) const VULKAN_HPP_NOEXCEPT;
7783
7784 //=== VK_EXT_depth_bias_control ===
7785
7786 // wrapper function for command vkCmdSetDepthBias2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBias2EXT.html
7787 void setDepthBias2EXT( DepthBiasInfoEXT const & depthBiasInfo ) const VULKAN_HPP_NOEXCEPT;
7788
7789 //=== VK_KHR_video_encode_queue ===
7790
7791 // wrapper function for command vkCmdEncodeVideoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEncodeVideoKHR.html
7792 void encodeVideoKHR( VideoEncodeInfoKHR const & encodeInfo ) const VULKAN_HPP_NOEXCEPT;
7793
7794 # if defined( VK_ENABLE_BETA_EXTENSIONS )
7795 //=== VK_NV_cuda_kernel_launch ===
7796
7797 // wrapper function for command vkCmdCudaLaunchKernelNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCudaLaunchKernelNV.html
7798 void cudaLaunchKernelNV( CudaLaunchInfoNV const & launchInfo ) const VULKAN_HPP_NOEXCEPT;
7799 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
7800
7801 //=== VK_QCOM_tile_shading ===
7802
7803 // wrapper function for command vkCmdDispatchTileQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchTileQCOM.html
7804 void dispatchTileQCOM( DispatchTileInfoQCOM const & dispatchTileInfo ) const VULKAN_HPP_NOEXCEPT;
7805
7806 // wrapper function for command vkCmdBeginPerTileExecutionQCOM, see
7807 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginPerTileExecutionQCOM.html
7808 void beginPerTileExecutionQCOM( PerTileBeginInfoQCOM const & perTileBeginInfo ) const VULKAN_HPP_NOEXCEPT;
7809
7810 // wrapper function for command vkCmdEndPerTileExecutionQCOM, see
7811 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndPerTileExecutionQCOM.html
7812 void endPerTileExecutionQCOM( PerTileEndInfoQCOM const & perTileEndInfo ) const VULKAN_HPP_NOEXCEPT;
7813
7814 //=== VK_KHR_synchronization2 ===
7815
7816 // wrapper function for command vkCmdSetEvent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent2KHR.html
7817 void setEvent2KHR( VULKAN_HPP_NAMESPACE::Event event, DependencyInfo const & dependencyInfo ) const VULKAN_HPP_NOEXCEPT;
7818
7819 // wrapper function for command vkCmdResetEvent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetEvent2KHR.html
7820 void resetEvent2KHR( VULKAN_HPP_NAMESPACE::Event event, PipelineStageFlags2 stageMask VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const VULKAN_HPP_NOEXCEPT;
7821
7822 // wrapper function for command vkCmdWaitEvents2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents2KHR.html
7823 void waitEvents2KHR( ArrayProxy<VULKAN_HPP_NAMESPACE::Event const> const & events, ArrayProxy<DependencyInfo const> const & dependencyInfos ) const;
7824
7825 // wrapper function for command vkCmdPipelineBarrier2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier2KHR.html
7826 void pipelineBarrier2KHR( DependencyInfo const & dependencyInfo ) const VULKAN_HPP_NOEXCEPT;
7827
7828 // wrapper function for command vkCmdWriteTimestamp2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteTimestamp2KHR.html
7829 void writeTimestamp2KHR( PipelineStageFlags2 stage, VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t query ) const VULKAN_HPP_NOEXCEPT;
7830
7831 //=== VK_EXT_descriptor_buffer ===
7832
7833 // wrapper function for command vkCmdBindDescriptorBuffersEXT, see
7834 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBuffersEXT.html
7835 void bindDescriptorBuffersEXT( ArrayProxy<DescriptorBufferBindingInfoEXT const> const & bindingInfos ) const VULKAN_HPP_NOEXCEPT;
7836
7837 // wrapper function for command vkCmdSetDescriptorBufferOffsetsEXT, see
7838 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDescriptorBufferOffsetsEXT.html
7839 void setDescriptorBufferOffsetsEXT( PipelineBindPoint pipelineBindPoint,
7840 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
7841 uint32_t firstSet,
7842 ArrayProxy<uint32_t const> const & bufferIndices,
7843 ArrayProxy<DeviceSize const> const & offsets ) const;
7844
7845 // wrapper function for command vkCmdBindDescriptorBufferEmbeddedSamplersEXT, see
7846 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBufferEmbeddedSamplersEXT.html
7847 void bindDescriptorBufferEmbeddedSamplersEXT( PipelineBindPoint pipelineBindPoint,
7848 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
7849 uint32_t set ) const VULKAN_HPP_NOEXCEPT;
7850
7851 //=== VK_KHR_device_address_commands ===
7852
7853 // wrapper function for command vkCmdBindIndexBuffer3KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer3KHR.html
7854 void bindIndexBuffer3KHR( BindIndexBuffer3InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT;
7855
7856 // wrapper function for command vkCmdBindVertexBuffers3KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers3KHR.html
7857 void bindVertexBuffers3KHR( uint32_t firstBinding, ArrayProxy<BindVertexBuffer3InfoKHR const> const & bindingInfos ) const VULKAN_HPP_NOEXCEPT;
7858
7859 // wrapper function for command vkCmdDrawIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirect2KHR.html
7860 void drawIndirect2KHR( DrawIndirect2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT;
7861
7862 // wrapper function for command vkCmdDrawIndexedIndirect2KHR, see
7863 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirect2KHR.html
7864 void drawIndexedIndirect2KHR( DrawIndirect2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT;
7865
7866 // wrapper function for command vkCmdDispatchIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchIndirect2KHR.html
7867 void dispatchIndirect2KHR( DispatchIndirect2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT;
7868
7869 // wrapper function for command vkCmdCopyMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryKHR.html
7870 void copyMemoryKHR( Optional<CopyDeviceMemoryInfoKHR const> copyMemoryInfo VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
7871
7872 // wrapper function for command vkCmdCopyMemoryToImageKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageKHR.html
7873 void
7874 copyMemoryToImageKHR( Optional<CopyDeviceMemoryImageInfoKHR const> copyMemoryInfo VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
7875
7876 // wrapper function for command vkCmdCopyImageToMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToMemoryKHR.html
7877 void
7878 copyImageToMemoryKHR( Optional<CopyDeviceMemoryImageInfoKHR const> copyMemoryInfo VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
7879
7880 // wrapper function for command vkCmdUpdateMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateMemoryKHR.html
7881 void updateMemoryKHR( DeviceAddressRangeKHR const * pDstRange,
7882 AddressCommandFlagsKHR dstFlags,
7883 DeviceSize dataSize,
7884 void const * pData ) const VULKAN_HPP_NOEXCEPT;
7885
7886 // wrapper function for command vkCmdUpdateMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateMemoryKHR.html
7887 template <typename DataType>
7888 void updateMemoryKHR( DeviceAddressRangeKHR const & dstRange,
7889 AddressCommandFlagsKHR dstFlags,
7890 ArrayProxy<DataType const> const & data ) const VULKAN_HPP_NOEXCEPT;
7891
7892 // wrapper function for command vkCmdFillMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdFillMemoryKHR.html
7893 void fillMemoryKHR( DeviceAddressRangeKHR const & dstRange, AddressCommandFlagsKHR dstFlags, uint32_t data ) const VULKAN_HPP_NOEXCEPT;
7894
7895 // wrapper function for command vkCmdCopyQueryPoolResultsToMemoryKHR, see
7896 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyQueryPoolResultsToMemoryKHR.html
7897 void copyQueryPoolResultsToMemoryKHR( VULKAN_HPP_NAMESPACE::QueryPool queryPool,
7898 uint32_t firstQuery,
7899 uint32_t queryCount,
7900 StridedDeviceAddressRangeKHR const & dstRange,
7901 AddressCommandFlagsKHR dstFlags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ),
7902 QueryResultFlags queryResultFlags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const VULKAN_HPP_NOEXCEPT;
7903
7904 // wrapper function for command vkCmdDrawIndirectCount2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCount2KHR.html
7905 void drawIndirectCount2KHR( DrawIndirectCount2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT;
7906
7907 // wrapper function for command vkCmdDrawIndexedIndirectCount2KHR, see
7908 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCount2KHR.html
7909 void drawIndexedIndirectCount2KHR( DrawIndirectCount2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT;
7910
7911 // wrapper function for command vkCmdBeginConditionalRendering2EXT, see
7912 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginConditionalRendering2EXT.html
7913 void beginConditionalRendering2EXT( ConditionalRenderingBeginInfo2EXT const & conditionalRenderingBegin ) const VULKAN_HPP_NOEXCEPT;
7914
7915 // wrapper function for command vkCmdBindTransformFeedbackBuffers2EXT, see
7916 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTransformFeedbackBuffers2EXT.html
7917 void bindTransformFeedbackBuffers2EXT( uint32_t firstBinding,
7918 ArrayProxy<BindTransformFeedbackBuffer2InfoEXT const> const & bindingInfos
7919 VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
7920
7921 // wrapper function for command vkCmdBeginTransformFeedback2EXT, see
7922 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginTransformFeedback2EXT.html
7923 void beginTransformFeedback2EXT( uint32_t firstCounterRange,
7924 ArrayProxy<BindTransformFeedbackBuffer2InfoEXT const> const & counterInfos
7925 VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
7926
7927 // wrapper function for command vkCmdEndTransformFeedback2EXT, see
7928 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndTransformFeedback2EXT.html
7929 void endTransformFeedback2EXT( uint32_t firstCounterRange,
7930 ArrayProxy<BindTransformFeedbackBuffer2InfoEXT const> const & counterInfos
7931 VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
7932
7933 // wrapper function for command vkCmdDrawIndirectByteCount2EXT, see
7934 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectByteCount2EXT.html
7935 void drawIndirectByteCount2EXT( uint32_t instanceCount,
7936 uint32_t firstInstance,
7937 BindTransformFeedbackBuffer2InfoEXT const & counterInfo,
7938 uint32_t counterOffset,
7939 uint32_t vertexStride ) const VULKAN_HPP_NOEXCEPT;
7940
7941 // wrapper function for command vkCmdDrawMeshTasksIndirect2EXT, see
7942 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirect2EXT.html
7943 void drawMeshTasksIndirect2EXT( DrawIndirect2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT;
7944
7945 // wrapper function for command vkCmdDrawMeshTasksIndirectCount2EXT, see
7946 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectCount2EXT.html
7947 void drawMeshTasksIndirectCount2EXT( DrawIndirectCount2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT;
7948
7949 // wrapper function for command vkCmdWriteMarkerToMemoryAMD, see
7950 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteMarkerToMemoryAMD.html
7951 void writeMarkerToMemoryAMD( MemoryMarkerInfoAMD const & info ) const VULKAN_HPP_NOEXCEPT;
7952
7953 //=== VK_NV_fragment_shading_rate_enums ===
7954
7955 // wrapper function for command vkCmdSetFragmentShadingRateEnumNV, see
7956 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFragmentShadingRateEnumNV.html
7957 void setFragmentShadingRateEnumNV( FragmentShadingRateNV shadingRate, FragmentShadingRateCombinerOpKHR const combinerOps[2] ) const VULKAN_HPP_NOEXCEPT;
7958
7959 //=== VK_EXT_mesh_shader ===
7960
7961 // wrapper function for command vkCmdDrawMeshTasksEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksEXT.html
7962 void drawMeshTasksEXT( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT;
7963
7964 // wrapper function for command vkCmdDrawMeshTasksIndirectEXT, see
7965 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectEXT.html
7966 void drawMeshTasksIndirectEXT( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
7967
7968 // wrapper function for command vkCmdDrawMeshTasksIndirectCountEXT, see
7969 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectCountEXT.html
7970 void drawMeshTasksIndirectCountEXT( VULKAN_HPP_NAMESPACE::Buffer buffer,
7971 DeviceSize offset,
7972 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
7973 DeviceSize countBufferOffset,
7974 uint32_t maxDrawCount,
7975 uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
7976
7977 //=== VK_KHR_copy_commands2 ===
7978
7979 // wrapper function for command vkCmdCopyBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer2KHR.html
7980 void copyBuffer2KHR( CopyBufferInfo2 const & copyBufferInfo ) const VULKAN_HPP_NOEXCEPT;
7981
7982 // wrapper function for command vkCmdCopyImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage2KHR.html
7983 void copyImage2KHR( CopyImageInfo2 const & copyImageInfo ) const VULKAN_HPP_NOEXCEPT;
7984
7985 // wrapper function for command vkCmdCopyBufferToImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage2KHR.html
7986 void copyBufferToImage2KHR( CopyBufferToImageInfo2 const & copyBufferToImageInfo ) const VULKAN_HPP_NOEXCEPT;
7987
7988 // wrapper function for command vkCmdCopyImageToBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer2KHR.html
7989 void copyImageToBuffer2KHR( CopyImageToBufferInfo2 const & copyImageToBufferInfo ) const VULKAN_HPP_NOEXCEPT;
7990
7991 // wrapper function for command vkCmdBlitImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage2KHR.html
7992 void blitImage2KHR( BlitImageInfo2 const & blitImageInfo ) const VULKAN_HPP_NOEXCEPT;
7993
7994 // wrapper function for command vkCmdResolveImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage2KHR.html
7995 void resolveImage2KHR( ResolveImageInfo2 const & resolveImageInfo ) const VULKAN_HPP_NOEXCEPT;
7996
7997 //=== VK_EXT_vertex_input_dynamic_state ===
7998
7999 // wrapper function for command vkCmdSetVertexInputEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetVertexInputEXT.html
8000 void setVertexInputEXT( ArrayProxy<VertexInputBindingDescription2EXT const> const & vertexBindingDescriptions,
8001 ArrayProxy<VertexInputAttributeDescription2EXT const> const & vertexAttributeDescriptions ) const VULKAN_HPP_NOEXCEPT;
8002
8003 //=== VK_HUAWEI_subpass_shading ===
8004
8005 // wrapper function for command vkCmdSubpassShadingHUAWEI, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSubpassShadingHUAWEI.html
8006 void subpassShadingHUAWEI() const VULKAN_HPP_NOEXCEPT;
8007
8008 //=== VK_HUAWEI_invocation_mask ===
8009
8010 // wrapper function for command vkCmdBindInvocationMaskHUAWEI, see
8011 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindInvocationMaskHUAWEI.html
8012 void bindInvocationMaskHUAWEI( VULKAN_HPP_NAMESPACE::ImageView imageView, ImageLayout imageLayout ) const VULKAN_HPP_NOEXCEPT;
8013
8014 //=== VK_EXT_extended_dynamic_state2 ===
8015
8016 // wrapper function for command vkCmdSetPatchControlPointsEXT, see
8017 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPatchControlPointsEXT.html
8018 void setPatchControlPointsEXT( uint32_t patchControlPoints ) const VULKAN_HPP_NOEXCEPT;
8019
8020 // wrapper function for command vkCmdSetRasterizerDiscardEnableEXT, see
8021 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizerDiscardEnableEXT.html
8022 void setRasterizerDiscardEnableEXT( Bool32 rasterizerDiscardEnable ) const VULKAN_HPP_NOEXCEPT;
8023
8024 // wrapper function for command vkCmdSetDepthBiasEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBiasEnableEXT.html
8025 void setDepthBiasEnableEXT( Bool32 depthBiasEnable ) const VULKAN_HPP_NOEXCEPT;
8026
8027 // wrapper function for command vkCmdSetLogicOpEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLogicOpEXT.html
8028 void setLogicOpEXT( LogicOp logicOp ) const VULKAN_HPP_NOEXCEPT;
8029
8030 // wrapper function for command vkCmdSetPrimitiveRestartEnableEXT, see
8031 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveRestartEnableEXT.html
8032 void setPrimitiveRestartEnableEXT( Bool32 primitiveRestartEnable ) const VULKAN_HPP_NOEXCEPT;
8033
8034 //=== VK_EXT_color_write_enable ===
8035
8036 // wrapper function for command vkCmdSetColorWriteEnableEXT, see
8037 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorWriteEnableEXT.html
8038 void setColorWriteEnableEXT( ArrayProxy<Bool32 const> const & colorWriteEnables ) const VULKAN_HPP_NOEXCEPT;
8039
8040 //=== VK_KHR_ray_tracing_maintenance1 ===
8041
8042 // wrapper function for command vkCmdTraceRaysIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysIndirect2KHR.html
8043 void traceRaysIndirect2KHR( DeviceAddress indirectDeviceAddress ) const VULKAN_HPP_NOEXCEPT;
8044
8045 //=== VK_EXT_multi_draw ===
8046
8047 // wrapper function for command vkCmdDrawMultiEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMultiEXT.html
8048 void
8049 drawMultiEXT( StridedArrayProxy<MultiDrawInfoEXT const> const & vertexInfo, uint32_t instanceCount, uint32_t firstInstance ) const VULKAN_HPP_NOEXCEPT;
8050
8051 // wrapper function for command vkCmdDrawMultiIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMultiIndexedEXT.html
8052 void drawMultiIndexedEXT( StridedArrayProxy<MultiDrawIndexedInfoEXT const> const & indexInfo,
8053 uint32_t instanceCount,
8054 uint32_t firstInstance,
8055 Optional<int32_t const> vertexOffset VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
8056
8057 //=== VK_EXT_opacity_micromap ===
8058
8059 // wrapper function for command vkCmdBuildMicromapsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildMicromapsEXT.html
8060 void buildMicromapsEXT( ArrayProxy<MicromapBuildInfoEXT const> const & infos ) const VULKAN_HPP_NOEXCEPT;
8061
8062 // wrapper function for command vkCmdCopyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMicromapEXT.html
8063 void copyMicromapEXT( CopyMicromapInfoEXT const & info ) const VULKAN_HPP_NOEXCEPT;
8064
8065 // wrapper function for command vkCmdCopyMicromapToMemoryEXT, see
8066 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMicromapToMemoryEXT.html
8067 void copyMicromapToMemoryEXT( CopyMicromapToMemoryInfoEXT const & info ) const VULKAN_HPP_NOEXCEPT;
8068
8069 // wrapper function for command vkCmdCopyMemoryToMicromapEXT, see
8070 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToMicromapEXT.html
8071 void copyMemoryToMicromapEXT( CopyMemoryToMicromapInfoEXT const & info ) const VULKAN_HPP_NOEXCEPT;
8072
8073 // wrapper function for command vkCmdWriteMicromapsPropertiesEXT, see
8074 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteMicromapsPropertiesEXT.html
8075 void writeMicromapsPropertiesEXT( ArrayProxy<VULKAN_HPP_NAMESPACE::MicromapEXT const> const & micromaps,
8076 QueryType queryType,
8077 VULKAN_HPP_NAMESPACE::QueryPool queryPool,
8078 uint32_t firstQuery ) const VULKAN_HPP_NOEXCEPT;
8079
8080 //=== VK_HUAWEI_cluster_culling_shader ===
8081
8082 // wrapper function for command vkCmdDrawClusterHUAWEI, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawClusterHUAWEI.html
8083 void drawClusterHUAWEI( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT;
8084
8085 // wrapper function for command vkCmdDrawClusterIndirectHUAWEI, see
8086 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawClusterIndirectHUAWEI.html
8087 void drawClusterIndirectHUAWEI( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset ) const VULKAN_HPP_NOEXCEPT;
8088
8089 //=== VK_NV_copy_memory_indirect ===
8090
8091 // wrapper function for command vkCmdCopyMemoryIndirectNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryIndirectNV.html
8092 void copyMemoryIndirectNV( DeviceAddress copyBufferAddress, uint32_t copyCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
8093
8094 // wrapper function for command vkCmdCopyMemoryToImageIndirectNV, see
8095 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageIndirectNV.html
8096 void copyMemoryToImageIndirectNV( DeviceAddress copyBufferAddress,
8097 uint32_t stride,
8098 VULKAN_HPP_NAMESPACE::Image dstImage,
8099 ImageLayout dstImageLayout,
8100 ArrayProxy<ImageSubresourceLayers const> const & imageSubresources ) const VULKAN_HPP_NOEXCEPT;
8101
8102 //=== VK_NV_memory_decompression ===
8103
8104 // wrapper function for command vkCmdDecompressMemoryNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryNV.html
8105 void decompressMemoryNV( ArrayProxy<DecompressMemoryRegionNV const> const & decompressMemoryRegions ) const VULKAN_HPP_NOEXCEPT;
8106
8107 // wrapper function for command vkCmdDecompressMemoryIndirectCountNV, see
8108 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryIndirectCountNV.html
8109 void decompressMemoryIndirectCountNV( DeviceAddress indirectCommandsAddress,
8110 DeviceAddress indirectCommandsCountAddress,
8111 uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
8112
8113 //=== VK_NV_device_generated_commands_compute ===
8114
8115 // wrapper function for command vkCmdUpdatePipelineIndirectBufferNV, see
8116 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdatePipelineIndirectBufferNV.html
8117 void updatePipelineIndirectBufferNV( PipelineBindPoint pipelineBindPoint, VULKAN_HPP_NAMESPACE::Pipeline pipeline ) const VULKAN_HPP_NOEXCEPT;
8118
8119 //=== VK_EXT_extended_dynamic_state3 ===
8120
8121 // wrapper function for command vkCmdSetDepthClampEnableEXT, see
8122 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClampEnableEXT.html
8123 void setDepthClampEnableEXT( Bool32 depthClampEnable ) const VULKAN_HPP_NOEXCEPT;
8124
8125 // wrapper function for command vkCmdSetPolygonModeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPolygonModeEXT.html
8126 void setPolygonModeEXT( PolygonMode polygonMode ) const VULKAN_HPP_NOEXCEPT;
8127
8128 // wrapper function for command vkCmdSetRasterizationSamplesEXT, see
8129 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizationSamplesEXT.html
8130 void setRasterizationSamplesEXT( SampleCountFlagBits rasterizationSamples ) const VULKAN_HPP_NOEXCEPT;
8131
8132 // wrapper function for command vkCmdSetSampleMaskEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleMaskEXT.html
8133 void setSampleMaskEXT( SampleCountFlagBits samples, ArrayProxy<SampleMask const> const & sampleMask VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const;
8134
8135 // wrapper function for command vkCmdSetAlphaToCoverageEnableEXT, see
8136 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetAlphaToCoverageEnableEXT.html
8137 void setAlphaToCoverageEnableEXT( Bool32 alphaToCoverageEnable ) const VULKAN_HPP_NOEXCEPT;
8138
8139 // wrapper function for command vkCmdSetAlphaToOneEnableEXT, see
8140 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetAlphaToOneEnableEXT.html
8141 void setAlphaToOneEnableEXT( Bool32 alphaToOneEnable ) const VULKAN_HPP_NOEXCEPT;
8142
8143 // wrapper function for command vkCmdSetLogicOpEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLogicOpEnableEXT.html
8144 void setLogicOpEnableEXT( Bool32 logicOpEnable ) const VULKAN_HPP_NOEXCEPT;
8145
8146 // wrapper function for command vkCmdSetColorBlendEnableEXT, see
8147 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendEnableEXT.html
8148 void setColorBlendEnableEXT( uint32_t firstAttachment, ArrayProxy<Bool32 const> const & colorBlendEnables ) const VULKAN_HPP_NOEXCEPT;
8149
8150 // wrapper function for command vkCmdSetColorBlendEquationEXT, see
8151 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendEquationEXT.html
8152 void setColorBlendEquationEXT( uint32_t firstAttachment, ArrayProxy<ColorBlendEquationEXT const> const & colorBlendEquations ) const VULKAN_HPP_NOEXCEPT;
8153
8154 // wrapper function for command vkCmdSetColorWriteMaskEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorWriteMaskEXT.html
8155 void setColorWriteMaskEXT( uint32_t firstAttachment, ArrayProxy<ColorComponentFlags const> const & colorWriteMasks ) const VULKAN_HPP_NOEXCEPT;
8156
8157 // wrapper function for command vkCmdSetTessellationDomainOriginEXT, see
8158 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetTessellationDomainOriginEXT.html
8159 void setTessellationDomainOriginEXT( TessellationDomainOrigin domainOrigin ) const VULKAN_HPP_NOEXCEPT;
8160
8161 // wrapper function for command vkCmdSetRasterizationStreamEXT, see
8162 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizationStreamEXT.html
8163 void setRasterizationStreamEXT( uint32_t rasterizationStream ) const VULKAN_HPP_NOEXCEPT;
8164
8165 // wrapper function for command vkCmdSetConservativeRasterizationModeEXT, see
8166 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetConservativeRasterizationModeEXT.html
8167 void setConservativeRasterizationModeEXT( ConservativeRasterizationModeEXT conservativeRasterizationMode ) const VULKAN_HPP_NOEXCEPT;
8168
8169 // wrapper function for command vkCmdSetExtraPrimitiveOverestimationSizeEXT, see
8170 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExtraPrimitiveOverestimationSizeEXT.html
8171 void setExtraPrimitiveOverestimationSizeEXT( float extraPrimitiveOverestimationSize ) const VULKAN_HPP_NOEXCEPT;
8172
8173 // wrapper function for command vkCmdSetDepthClipEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClipEnableEXT.html
8174 void setDepthClipEnableEXT( Bool32 depthClipEnable ) const VULKAN_HPP_NOEXCEPT;
8175
8176 // wrapper function for command vkCmdSetSampleLocationsEnableEXT, see
8177 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleLocationsEnableEXT.html
8178 void setSampleLocationsEnableEXT( Bool32 sampleLocationsEnable ) const VULKAN_HPP_NOEXCEPT;
8179
8180 // wrapper function for command vkCmdSetColorBlendAdvancedEXT, see
8181 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendAdvancedEXT.html
8182 void setColorBlendAdvancedEXT( uint32_t firstAttachment, ArrayProxy<ColorBlendAdvancedEXT const> const & colorBlendAdvanced ) const VULKAN_HPP_NOEXCEPT;
8183
8184 // wrapper function for command vkCmdSetProvokingVertexModeEXT, see
8185 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetProvokingVertexModeEXT.html
8186 void setProvokingVertexModeEXT( ProvokingVertexModeEXT provokingVertexMode ) const VULKAN_HPP_NOEXCEPT;
8187
8188 // wrapper function for command vkCmdSetLineRasterizationModeEXT, see
8189 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineRasterizationModeEXT.html
8190 void setLineRasterizationModeEXT( LineRasterizationModeEXT lineRasterizationMode ) const VULKAN_HPP_NOEXCEPT;
8191
8192 // wrapper function for command vkCmdSetLineStippleEnableEXT, see
8193 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStippleEnableEXT.html
8194 void setLineStippleEnableEXT( Bool32 stippledLineEnable ) const VULKAN_HPP_NOEXCEPT;
8195
8196 // wrapper function for command vkCmdSetDepthClipNegativeOneToOneEXT, see
8197 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClipNegativeOneToOneEXT.html
8198 void setDepthClipNegativeOneToOneEXT( Bool32 negativeOneToOne ) const VULKAN_HPP_NOEXCEPT;
8199
8200 // wrapper function for command vkCmdSetViewportWScalingEnableNV, see
8201 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWScalingEnableNV.html
8202 void setViewportWScalingEnableNV( Bool32 viewportWScalingEnable ) const VULKAN_HPP_NOEXCEPT;
8203
8204 // wrapper function for command vkCmdSetViewportSwizzleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportSwizzleNV.html
8205 void setViewportSwizzleNV( uint32_t firstViewport, ArrayProxy<ViewportSwizzleNV const> const & viewportSwizzles ) const VULKAN_HPP_NOEXCEPT;
8206
8207 // wrapper function for command vkCmdSetCoverageToColorEnableNV, see
8208 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageToColorEnableNV.html
8209 void setCoverageToColorEnableNV( Bool32 coverageToColorEnable ) const VULKAN_HPP_NOEXCEPT;
8210
8211 // wrapper function for command vkCmdSetCoverageToColorLocationNV, see
8212 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageToColorLocationNV.html
8213 void setCoverageToColorLocationNV( uint32_t coverageToColorLocation ) const VULKAN_HPP_NOEXCEPT;
8214
8215 // wrapper function for command vkCmdSetCoverageModulationModeNV, see
8216 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationModeNV.html
8217 void setCoverageModulationModeNV( CoverageModulationModeNV coverageModulationMode ) const VULKAN_HPP_NOEXCEPT;
8218
8219 // wrapper function for command vkCmdSetCoverageModulationTableEnableNV, see
8220 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationTableEnableNV.html
8221 void setCoverageModulationTableEnableNV( Bool32 coverageModulationTableEnable ) const VULKAN_HPP_NOEXCEPT;
8222
8223 // wrapper function for command vkCmdSetCoverageModulationTableNV, see
8224 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationTableNV.html
8225 void setCoverageModulationTableNV( ArrayProxy<float const> const & coverageModulationTable ) const VULKAN_HPP_NOEXCEPT;
8226
8227 // wrapper function for command vkCmdSetShadingRateImageEnableNV, see
8228 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetShadingRateImageEnableNV.html
8229 void setShadingRateImageEnableNV( Bool32 shadingRateImageEnable ) const VULKAN_HPP_NOEXCEPT;
8230
8231 // wrapper function for command vkCmdSetRepresentativeFragmentTestEnableNV, see
8232 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRepresentativeFragmentTestEnableNV.html
8233 void setRepresentativeFragmentTestEnableNV( Bool32 representativeFragmentTestEnable ) const VULKAN_HPP_NOEXCEPT;
8234
8235 // wrapper function for command vkCmdSetCoverageReductionModeNV, see
8236 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageReductionModeNV.html
8237 void setCoverageReductionModeNV( CoverageReductionModeNV coverageReductionMode ) const VULKAN_HPP_NOEXCEPT;
8238
8239 //=== VK_ARM_tensors ===
8240
8241 // wrapper function for command vkCmdCopyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyTensorARM.html
8242 void copyTensorARM( CopyTensorInfoARM const & copyTensorInfo ) const VULKAN_HPP_NOEXCEPT;
8243
8244 //=== VK_NV_optical_flow ===
8245
8246 // wrapper function for command vkCmdOpticalFlowExecuteNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdOpticalFlowExecuteNV.html
8247 void opticalFlowExecuteNV( VULKAN_HPP_NAMESPACE::OpticalFlowSessionNV session, OpticalFlowExecuteInfoNV const & executeInfo ) const VULKAN_HPP_NOEXCEPT;
8248
8249 //=== VK_KHR_maintenance5 ===
8250
8251 // wrapper function for command vkCmdBindIndexBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer2KHR.html
8252 void bindIndexBuffer2KHR( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset, DeviceSize size, IndexType indexType ) const VULKAN_HPP_NOEXCEPT;
8253
8254 //=== VK_EXT_shader_object ===
8255
8256 // wrapper function for command vkCmdBindShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindShadersEXT.html
8257 void bindShadersEXT( ArrayProxy<ShaderStageFlagBits const> const & stages, ArrayProxy<VULKAN_HPP_NAMESPACE::ShaderEXT const> const & shaders ) const;
8258
8259 // wrapper function for command vkCmdSetDepthClampRangeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClampRangeEXT.html
8260 void setDepthClampRangeEXT( DepthClampModeEXT depthClampMode,
8261 Optional<DepthClampRangeEXT const> depthClampRange VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
8262
8263 //=== VK_NV_cooperative_vector ===
8264
8265 // wrapper function for command vkCmdConvertCooperativeVectorMatrixNV, see
8266 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdConvertCooperativeVectorMatrixNV.html
8267 void convertCooperativeVectorMatrixNV( ArrayProxy<ConvertCooperativeVectorMatrixInfoNV const> const & infos ) const VULKAN_HPP_NOEXCEPT;
8268
8269 //=== VK_ARM_data_graph ===
8270
8271 // wrapper function for command vkCmdDispatchDataGraphARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchDataGraphARM.html
8272 void dispatchDataGraphARM( VULKAN_HPP_NAMESPACE::DataGraphPipelineSessionARM session,
8273 Optional<DataGraphPipelineDispatchInfoARM const> info VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
8274
8275 //=== VK_EXT_attachment_feedback_loop_dynamic_state ===
8276
8277 // wrapper function for command vkCmdSetAttachmentFeedbackLoopEnableEXT, see
8278 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetAttachmentFeedbackLoopEnableEXT.html
8279 void setAttachmentFeedbackLoopEnableEXT( ImageAspectFlags aspectMask VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const VULKAN_HPP_NOEXCEPT;
8280
8281 //=== VK_KHR_line_rasterization ===
8282
8283 // wrapper function for command vkCmdSetLineStippleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStippleKHR.html
8284 void setLineStippleKHR( uint32_t lineStippleFactor, uint16_t lineStipplePattern ) const VULKAN_HPP_NOEXCEPT;
8285
8286 //=== VK_KHR_maintenance6 ===
8287
8288 // wrapper function for command vkCmdBindDescriptorSets2KHR, see
8289 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets2KHR.html
8290 void bindDescriptorSets2KHR( BindDescriptorSetsInfo const & bindDescriptorSetsInfo ) const VULKAN_HPP_NOEXCEPT;
8291
8292 // wrapper function for command vkCmdPushConstants2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants2KHR.html
8293 void pushConstants2KHR( PushConstantsInfo const & pushConstantsInfo ) const VULKAN_HPP_NOEXCEPT;
8294
8295 // wrapper function for command vkCmdPushDescriptorSet2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet2KHR.html
8296 void pushDescriptorSet2KHR( PushDescriptorSetInfo const & pushDescriptorSetInfo ) const VULKAN_HPP_NOEXCEPT;
8297
8298 // wrapper function for command vkCmdPushDescriptorSetWithTemplate2KHR, see
8299 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate2KHR.html
8300 void pushDescriptorSetWithTemplate2KHR( PushDescriptorSetWithTemplateInfo const & pushDescriptorSetWithTemplateInfo ) const VULKAN_HPP_NOEXCEPT;
8301
8302 // wrapper function for command vkCmdSetDescriptorBufferOffsets2EXT, see
8303 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDescriptorBufferOffsets2EXT.html
8304 void setDescriptorBufferOffsets2EXT( SetDescriptorBufferOffsetsInfoEXT const & setDescriptorBufferOffsetsInfo ) const VULKAN_HPP_NOEXCEPT;
8305
8306 // wrapper function for command vkCmdBindDescriptorBufferEmbeddedSamplers2EXT, see
8307 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBufferEmbeddedSamplers2EXT.html
8308 void bindDescriptorBufferEmbeddedSamplers2EXT( BindDescriptorBufferEmbeddedSamplersInfoEXT const & bindDescriptorBufferEmbeddedSamplersInfo ) const
8309 VULKAN_HPP_NOEXCEPT;
8310
8311 //=== VK_QCOM_tile_memory_heap ===
8312
8313 // wrapper function for command vkCmdBindTileMemoryQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTileMemoryQCOM.html
8314 void bindTileMemoryQCOM( Optional<TileMemoryBindInfoQCOM const> tileMemoryBindInfo VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
8315
8316 //=== VK_KHR_copy_memory_indirect ===
8317
8318 // wrapper function for command vkCmdCopyMemoryIndirectKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryIndirectKHR.html
8319 void copyMemoryIndirectKHR( CopyMemoryIndirectInfoKHR const & copyMemoryIndirectInfo ) const VULKAN_HPP_NOEXCEPT;
8320
8321 // wrapper function for command vkCmdCopyMemoryToImageIndirectKHR, see
8322 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageIndirectKHR.html
8323 void copyMemoryToImageIndirectKHR( CopyMemoryToImageIndirectInfoKHR const & copyMemoryToImageIndirectInfo ) const VULKAN_HPP_NOEXCEPT;
8324
8325 //=== VK_EXT_memory_decompression ===
8326
8327 // wrapper function for command vkCmdDecompressMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryEXT.html
8328 void decompressMemoryEXT( DecompressMemoryInfoEXT const & decompressMemoryInfoEXT ) const VULKAN_HPP_NOEXCEPT;
8329
8330 // wrapper function for command vkCmdDecompressMemoryIndirectCountEXT, see
8331 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryIndirectCountEXT.html
8332 void decompressMemoryIndirectCountEXT( MemoryDecompressionMethodFlagsEXT decompressionMethod,
8333 DeviceAddress indirectCommandsAddress,
8334 DeviceAddress indirectCommandsCountAddress,
8335 uint32_t maxDecompressionCount,
8336 uint32_t stride ) const VULKAN_HPP_NOEXCEPT;
8337
8338 //=== VK_NV_cluster_acceleration_structure ===
8339
8340 // wrapper function for command vkCmdBuildClusterAccelerationStructureIndirectNV, see
8341 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildClusterAccelerationStructureIndirectNV.html
8342 void buildClusterAccelerationStructureIndirectNV( ClusterAccelerationStructureCommandsInfoNV const & commandInfos ) const VULKAN_HPP_NOEXCEPT;
8343
8344 //=== VK_NV_partitioned_acceleration_structure ===
8345
8346 // wrapper function for command vkCmdBuildPartitionedAccelerationStructuresNV, see
8347 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildPartitionedAccelerationStructuresNV.html
8348 void buildPartitionedAccelerationStructuresNV( BuildPartitionedAccelerationStructureInfoNV const & buildInfo ) const VULKAN_HPP_NOEXCEPT;
8349
8350 //=== VK_EXT_device_generated_commands ===
8351
8352 // wrapper function for command vkCmdPreprocessGeneratedCommandsEXT, see
8353 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPreprocessGeneratedCommandsEXT.html
8354 void preprocessGeneratedCommandsEXT( GeneratedCommandsInfoEXT const & generatedCommandsInfo,
8355 VULKAN_HPP_NAMESPACE::CommandBuffer stateCommandBuffer ) const VULKAN_HPP_NOEXCEPT;
8356
8357 // wrapper function for command vkCmdExecuteGeneratedCommandsEXT, see
8358 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteGeneratedCommandsEXT.html
8359 void executeGeneratedCommandsEXT( Bool32 isPreprocessed, GeneratedCommandsInfoEXT const & generatedCommandsInfo ) const VULKAN_HPP_NOEXCEPT;
8360
8361 //=== VK_ARM_shader_instrumentation ===
8362
8363 // wrapper function for command vkCmdBeginShaderInstrumentationARM, see
8364 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginShaderInstrumentationARM.html
8365 void beginShaderInstrumentationARM( VULKAN_HPP_NAMESPACE::ShaderInstrumentationARM instrumentation ) const VULKAN_HPP_NOEXCEPT;
8366
8367 // wrapper function for command vkCmdEndShaderInstrumentationARM, see
8368 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndShaderInstrumentationARM.html
8369 void endShaderInstrumentationARM() const VULKAN_HPP_NOEXCEPT;
8370
8371 //=== VK_EXT_fragment_density_map_offset ===
8372
8373 // wrapper function for command vkCmdEndRendering2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering2EXT.html
8374 void endRendering2EXT( Optional<RenderingEndInfoKHR const> renderingEndInfo VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
8375
8376 //=== VK_EXT_custom_resolve ===
8377
8378 // wrapper function for command vkCmdBeginCustomResolveEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginCustomResolveEXT.html
8379 void beginCustomResolveEXT( Optional<BeginCustomResolveInfoEXT const> beginCustomResolveInfo VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const
8380 VULKAN_HPP_NOEXCEPT;
8381
8382 //=== VK_KHR_maintenance10 ===
8383
8384 // wrapper function for command vkCmdEndRendering2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering2KHR.html
8385 void endRendering2KHR( Optional<RenderingEndInfoKHR const> renderingEndInfo VULKAN_HPP_DEFAULT_ASSIGNMENT( nullptr ) ) const VULKAN_HPP_NOEXCEPT;
8386
8387 //=== VK_NV_compute_occupancy_priority ===
8388
8389 // wrapper function for command vkCmdSetComputeOccupancyPriorityNV, see
8390 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetComputeOccupancyPriorityNV.html
8391 void setComputeOccupancyPriorityNV( ComputeOccupancyPriorityParametersNV const & parameters ) const VULKAN_HPP_NOEXCEPT;
8392
8393 private:
8394 VULKAN_HPP_NAMESPACE::Device m_device = {};
8395 VULKAN_HPP_NAMESPACE::CommandPool m_commandPool = {};
8396 VULKAN_HPP_NAMESPACE::CommandBuffer m_commandBuffer = {};
8397 detail::DeviceDispatcher const * m_dispatcher = nullptr;
8398 };
8399
8400 template <>
8401 struct isVulkanRAIIHandleType<CommandBuffer>
8402 {
8403 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
8404 };
8405
8406 class CommandBuffers : public std::vector<CommandBuffer>
8407 {
8408 public:
8409 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
8410 CommandBuffers( Device const & device, CommandBufferAllocateInfo const & allocateInfo )
8411 {
8412 *this = device.allocateCommandBuffers( allocateInfo );
8413 }
8414 # endif
8415
8416 CommandBuffers( std::nullptr_t ) {}
8417
8418 CommandBuffers() = delete;
8419 CommandBuffers( CommandBuffers const & ) = delete;
8420 CommandBuffers( CommandBuffers && rhs ) = default;
8421 CommandBuffers & operator=( CommandBuffers const & ) = delete;
8422 CommandBuffers & operator=( CommandBuffers && rhs ) = default;
8423
8424 CommandBuffers( std::vector<CommandBuffer> && rhs )
8425 {
8426 std::swap( *this, rhs );
8427 }
8428 };
8429
8430 // wrapper class for handle VkCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkCuFunctionNVX.html
8431 class CuFunctionNVX
8432 {
8433 public:
8434 using CType = VkCuFunctionNVX;
8435 using CppType = VULKAN_HPP_NAMESPACE::CuFunctionNVX;
8436
8437 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eCuFunctionNVX;
8438 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eCuFunctionNVX;
8439
8440 public:
8441 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
8442 CuFunctionNVX( Device const & device, CuFunctionCreateInfoNVX const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
8443 {
8444 *this = device.createCuFunctionNVX( createInfo, allocator );
8445 }
8446 # endif
8447
8448 CuFunctionNVX( Device const & device, VkCuFunctionNVX function, Optional<AllocationCallbacks const> allocator = nullptr )
8449 : m_device( device )
8450 , m_cuFunctionNVX( function )
8451 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
8452 , m_dispatcher( device.getDispatcher() )
8453 {
8454 }
8455
8456 CuFunctionNVX( std::nullptr_t ) {}
8457
8458 ~CuFunctionNVX()
8459 {
8460 clear();
8461 }
8462
8463 CuFunctionNVX() = delete;
8464 CuFunctionNVX( CuFunctionNVX const & ) = delete;
8465
8466 CuFunctionNVX( CuFunctionNVX && rhs ) VULKAN_HPP_NOEXCEPT
8467 : m_device( exchange( rhs.m_device, {} ) )
8468 , m_cuFunctionNVX( exchange( rhs.m_cuFunctionNVX, {} ) )
8469 , m_allocator( exchange( rhs.m_allocator, {} ) )
8470 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
8471 {
8472 }
8473
8474 CuFunctionNVX & operator=( CuFunctionNVX const & ) = delete;
8475
8476 CuFunctionNVX & operator=( CuFunctionNVX && rhs ) VULKAN_HPP_NOEXCEPT
8477 {
8478 if ( this != &rhs )
8479 {
8480 std::swap( m_device, rhs.m_device );
8481 std::swap( m_cuFunctionNVX, rhs.m_cuFunctionNVX );
8482 std::swap( m_allocator, rhs.m_allocator );
8483 std::swap( m_dispatcher, rhs.m_dispatcher );
8484 }
8485 return *this;
8486 }
8487
8488 VULKAN_HPP_NAMESPACE::CuFunctionNVX const & operator*() const & VULKAN_HPP_NOEXCEPT
8489 {
8490 return m_cuFunctionNVX;
8491 }
8492
8493 VULKAN_HPP_NAMESPACE::CuFunctionNVX const && operator*() const && VULKAN_HPP_NOEXCEPT
8494 {
8495 return std::move( m_cuFunctionNVX );
8496 }
8497
8498 operator VULKAN_HPP_NAMESPACE::CuFunctionNVX() const VULKAN_HPP_NOEXCEPT
8499 {
8500 return m_cuFunctionNVX;
8501 }
8502
8503 void clear() VULKAN_HPP_NOEXCEPT
8504 {
8505 if ( m_cuFunctionNVX )
8506 {
8507 getDispatcher()->vkDestroyCuFunctionNVX( static_cast<VkDevice>( m_device ),
8508 static_cast<VkCuFunctionNVX>( m_cuFunctionNVX ),
8509 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
8510 }
8511 m_device = nullptr;
8512 m_cuFunctionNVX = nullptr;
8513 m_allocator = nullptr;
8514 m_dispatcher = nullptr;
8515 }
8516
8517 VULKAN_HPP_NAMESPACE::CuFunctionNVX release()
8518 {
8519 m_device = nullptr;
8520 m_allocator = nullptr;
8521 m_dispatcher = nullptr;
8522 return exchange( m_cuFunctionNVX, nullptr );
8523 }
8524
8525 VULKAN_HPP_NAMESPACE::Device getDevice() const
8526 {
8527 return m_device;
8528 }
8529
8530 detail::DeviceDispatcher const * getDispatcher() const
8531 {
8532 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
8533 return m_dispatcher;
8534 }
8535
8536 void swap( CuFunctionNVX & rhs ) VULKAN_HPP_NOEXCEPT
8537 {
8538 std::swap( m_device, rhs.m_device );
8539 std::swap( m_cuFunctionNVX, rhs.m_cuFunctionNVX );
8540 std::swap( m_allocator, rhs.m_allocator );
8541 std::swap( m_dispatcher, rhs.m_dispatcher );
8542 }
8543
8544 private:
8545 VULKAN_HPP_NAMESPACE::Device m_device = {};
8546 VULKAN_HPP_NAMESPACE::CuFunctionNVX m_cuFunctionNVX = {};
8547 AllocationCallbacks const * m_allocator = {};
8548 detail::DeviceDispatcher const * m_dispatcher = nullptr;
8549 };
8550
8551 template <>
8552 struct isVulkanRAIIHandleType<CuFunctionNVX>
8553 {
8554 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
8555 };
8556
8557 // wrapper class for handle VkCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkCuModuleNVX.html
8558 class CuModuleNVX
8559 {
8560 public:
8561 using CType = VkCuModuleNVX;
8562 using CppType = VULKAN_HPP_NAMESPACE::CuModuleNVX;
8563
8564 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eCuModuleNVX;
8565 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eCuModuleNVX;
8566
8567 public:
8568 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
8569 CuModuleNVX( Device const & device, CuModuleCreateInfoNVX const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
8570 {
8571 *this = device.createCuModuleNVX( createInfo, allocator );
8572 }
8573 # endif
8574
8575 CuModuleNVX( Device const & device, VkCuModuleNVX module, Optional<AllocationCallbacks const> allocator = nullptr )
8576 : m_device( device )
8577 , m_cuModuleNVX( module )
8578 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
8579 , m_dispatcher( device.getDispatcher() )
8580 {
8581 }
8582
8583 CuModuleNVX( std::nullptr_t ) {}
8584
8585 ~CuModuleNVX()
8586 {
8587 clear();
8588 }
8589
8590 CuModuleNVX() = delete;
8591 CuModuleNVX( CuModuleNVX const & ) = delete;
8592
8593 CuModuleNVX( CuModuleNVX && rhs ) VULKAN_HPP_NOEXCEPT
8594 : m_device( exchange( rhs.m_device, {} ) )
8595 , m_cuModuleNVX( exchange( rhs.m_cuModuleNVX, {} ) )
8596 , m_allocator( exchange( rhs.m_allocator, {} ) )
8597 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
8598 {
8599 }
8600
8601 CuModuleNVX & operator=( CuModuleNVX const & ) = delete;
8602
8603 CuModuleNVX & operator=( CuModuleNVX && rhs ) VULKAN_HPP_NOEXCEPT
8604 {
8605 if ( this != &rhs )
8606 {
8607 std::swap( m_device, rhs.m_device );
8608 std::swap( m_cuModuleNVX, rhs.m_cuModuleNVX );
8609 std::swap( m_allocator, rhs.m_allocator );
8610 std::swap( m_dispatcher, rhs.m_dispatcher );
8611 }
8612 return *this;
8613 }
8614
8615 VULKAN_HPP_NAMESPACE::CuModuleNVX const & operator*() const & VULKAN_HPP_NOEXCEPT
8616 {
8617 return m_cuModuleNVX;
8618 }
8619
8620 VULKAN_HPP_NAMESPACE::CuModuleNVX const && operator*() const && VULKAN_HPP_NOEXCEPT
8621 {
8622 return std::move( m_cuModuleNVX );
8623 }
8624
8625 operator VULKAN_HPP_NAMESPACE::CuModuleNVX() const VULKAN_HPP_NOEXCEPT
8626 {
8627 return m_cuModuleNVX;
8628 }
8629
8630 void clear() VULKAN_HPP_NOEXCEPT
8631 {
8632 if ( m_cuModuleNVX )
8633 {
8634 getDispatcher()->vkDestroyCuModuleNVX(
8635 static_cast<VkDevice>( m_device ), static_cast<VkCuModuleNVX>( m_cuModuleNVX ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
8636 }
8637 m_device = nullptr;
8638 m_cuModuleNVX = nullptr;
8639 m_allocator = nullptr;
8640 m_dispatcher = nullptr;
8641 }
8642
8643 VULKAN_HPP_NAMESPACE::CuModuleNVX release()
8644 {
8645 m_device = nullptr;
8646 m_allocator = nullptr;
8647 m_dispatcher = nullptr;
8648 return exchange( m_cuModuleNVX, nullptr );
8649 }
8650
8651 VULKAN_HPP_NAMESPACE::Device getDevice() const
8652 {
8653 return m_device;
8654 }
8655
8656 detail::DeviceDispatcher const * getDispatcher() const
8657 {
8658 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
8659 return m_dispatcher;
8660 }
8661
8662 void swap( CuModuleNVX & rhs ) VULKAN_HPP_NOEXCEPT
8663 {
8664 std::swap( m_device, rhs.m_device );
8665 std::swap( m_cuModuleNVX, rhs.m_cuModuleNVX );
8666 std::swap( m_allocator, rhs.m_allocator );
8667 std::swap( m_dispatcher, rhs.m_dispatcher );
8668 }
8669
8670 private:
8671 VULKAN_HPP_NAMESPACE::Device m_device = {};
8672 VULKAN_HPP_NAMESPACE::CuModuleNVX m_cuModuleNVX = {};
8673 AllocationCallbacks const * m_allocator = {};
8674 detail::DeviceDispatcher const * m_dispatcher = nullptr;
8675 };
8676
8677 template <>
8678 struct isVulkanRAIIHandleType<CuModuleNVX>
8679 {
8680 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
8681 };
8682
8683 // wrapper class for handle VkCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkCudaFunctionNV.html
8684 # if defined( VK_ENABLE_BETA_EXTENSIONS )
8685 class CudaFunctionNV
8686 {
8687 public:
8688 using CType = VkCudaFunctionNV;
8689 using CppType = VULKAN_HPP_NAMESPACE::CudaFunctionNV;
8690
8691 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eCudaFunctionNV;
8692 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eCudaFunctionNV;
8693
8694 public:
8695 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
8696 CudaFunctionNV( Device const & device, CudaFunctionCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
8697 {
8698 *this = device.createCudaFunctionNV( createInfo, allocator );
8699 }
8700 # endif
8701
8702 CudaFunctionNV( Device const & device, VkCudaFunctionNV function, Optional<AllocationCallbacks const> allocator = nullptr )
8703 : m_device( device )
8704 , m_cudaFunctionNV( function )
8705 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
8706 , m_dispatcher( device.getDispatcher() )
8707 {
8708 }
8709
8710 CudaFunctionNV( std::nullptr_t ) {}
8711
8712 ~CudaFunctionNV()
8713 {
8714 clear();
8715 }
8716
8717 CudaFunctionNV() = delete;
8718 CudaFunctionNV( CudaFunctionNV const & ) = delete;
8719
8720 CudaFunctionNV( CudaFunctionNV && rhs ) VULKAN_HPP_NOEXCEPT
8721 : m_device( exchange( rhs.m_device, {} ) )
8722 , m_cudaFunctionNV( exchange( rhs.m_cudaFunctionNV, {} ) )
8723 , m_allocator( exchange( rhs.m_allocator, {} ) )
8724 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
8725 {
8726 }
8727
8728 CudaFunctionNV & operator=( CudaFunctionNV const & ) = delete;
8729
8730 CudaFunctionNV & operator=( CudaFunctionNV && rhs ) VULKAN_HPP_NOEXCEPT
8731 {
8732 if ( this != &rhs )
8733 {
8734 std::swap( m_device, rhs.m_device );
8735 std::swap( m_cudaFunctionNV, rhs.m_cudaFunctionNV );
8736 std::swap( m_allocator, rhs.m_allocator );
8737 std::swap( m_dispatcher, rhs.m_dispatcher );
8738 }
8739 return *this;
8740 }
8741
8742 VULKAN_HPP_NAMESPACE::CudaFunctionNV const & operator*() const & VULKAN_HPP_NOEXCEPT
8743 {
8744 return m_cudaFunctionNV;
8745 }
8746
8747 VULKAN_HPP_NAMESPACE::CudaFunctionNV const && operator*() const && VULKAN_HPP_NOEXCEPT
8748 {
8749 return std::move( m_cudaFunctionNV );
8750 }
8751
8752 operator VULKAN_HPP_NAMESPACE::CudaFunctionNV() const VULKAN_HPP_NOEXCEPT
8753 {
8754 return m_cudaFunctionNV;
8755 }
8756
8757 void clear() VULKAN_HPP_NOEXCEPT
8758 {
8759 if ( m_cudaFunctionNV )
8760 {
8761 getDispatcher()->vkDestroyCudaFunctionNV( static_cast<VkDevice>( m_device ),
8762 static_cast<VkCudaFunctionNV>( m_cudaFunctionNV ),
8763 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
8764 }
8765 m_device = nullptr;
8766 m_cudaFunctionNV = nullptr;
8767 m_allocator = nullptr;
8768 m_dispatcher = nullptr;
8769 }
8770
8771 VULKAN_HPP_NAMESPACE::CudaFunctionNV release()
8772 {
8773 m_device = nullptr;
8774 m_allocator = nullptr;
8775 m_dispatcher = nullptr;
8776 return exchange( m_cudaFunctionNV, nullptr );
8777 }
8778
8779 VULKAN_HPP_NAMESPACE::Device getDevice() const
8780 {
8781 return m_device;
8782 }
8783
8784 detail::DeviceDispatcher const * getDispatcher() const
8785 {
8786 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
8787 return m_dispatcher;
8788 }
8789
8790 void swap( CudaFunctionNV & rhs ) VULKAN_HPP_NOEXCEPT
8791 {
8792 std::swap( m_device, rhs.m_device );
8793 std::swap( m_cudaFunctionNV, rhs.m_cudaFunctionNV );
8794 std::swap( m_allocator, rhs.m_allocator );
8795 std::swap( m_dispatcher, rhs.m_dispatcher );
8796 }
8797
8798 private:
8799 VULKAN_HPP_NAMESPACE::Device m_device = {};
8800 VULKAN_HPP_NAMESPACE::CudaFunctionNV m_cudaFunctionNV = {};
8801 AllocationCallbacks const * m_allocator = {};
8802 detail::DeviceDispatcher const * m_dispatcher = nullptr;
8803 };
8804
8805 template <>
8806 struct isVulkanRAIIHandleType<CudaFunctionNV>
8807 {
8808 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
8809 };
8810
8811 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
8812
8813 // wrapper class for handle VkCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkCudaModuleNV.html
8814 # if defined( VK_ENABLE_BETA_EXTENSIONS )
8815 class CudaModuleNV
8816 {
8817 public:
8818 using CType = VkCudaModuleNV;
8819 using CppType = VULKAN_HPP_NAMESPACE::CudaModuleNV;
8820
8821 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eCudaModuleNV;
8822 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eCudaModuleNV;
8823
8824 public:
8825 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
8826 CudaModuleNV( Device const & device, CudaModuleCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
8827 {
8828 *this = device.createCudaModuleNV( createInfo, allocator );
8829 }
8830 # endif
8831
8832 CudaModuleNV( Device const & device, VkCudaModuleNV module, Optional<AllocationCallbacks const> allocator = nullptr )
8833 : m_device( device )
8834 , m_cudaModuleNV( module )
8835 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
8836 , m_dispatcher( device.getDispatcher() )
8837 {
8838 }
8839
8840 CudaModuleNV( std::nullptr_t ) {}
8841
8842 ~CudaModuleNV()
8843 {
8844 clear();
8845 }
8846
8847 CudaModuleNV() = delete;
8848 CudaModuleNV( CudaModuleNV const & ) = delete;
8849
8850 CudaModuleNV( CudaModuleNV && rhs ) VULKAN_HPP_NOEXCEPT
8851 : m_device( exchange( rhs.m_device, {} ) )
8852 , m_cudaModuleNV( exchange( rhs.m_cudaModuleNV, {} ) )
8853 , m_allocator( exchange( rhs.m_allocator, {} ) )
8854 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
8855 {
8856 }
8857
8858 CudaModuleNV & operator=( CudaModuleNV const & ) = delete;
8859
8860 CudaModuleNV & operator=( CudaModuleNV && rhs ) VULKAN_HPP_NOEXCEPT
8861 {
8862 if ( this != &rhs )
8863 {
8864 std::swap( m_device, rhs.m_device );
8865 std::swap( m_cudaModuleNV, rhs.m_cudaModuleNV );
8866 std::swap( m_allocator, rhs.m_allocator );
8867 std::swap( m_dispatcher, rhs.m_dispatcher );
8868 }
8869 return *this;
8870 }
8871
8872 VULKAN_HPP_NAMESPACE::CudaModuleNV const & operator*() const & VULKAN_HPP_NOEXCEPT
8873 {
8874 return m_cudaModuleNV;
8875 }
8876
8877 VULKAN_HPP_NAMESPACE::CudaModuleNV const && operator*() const && VULKAN_HPP_NOEXCEPT
8878 {
8879 return std::move( m_cudaModuleNV );
8880 }
8881
8882 operator VULKAN_HPP_NAMESPACE::CudaModuleNV() const VULKAN_HPP_NOEXCEPT
8883 {
8884 return m_cudaModuleNV;
8885 }
8886
8887 void clear() VULKAN_HPP_NOEXCEPT
8888 {
8889 if ( m_cudaModuleNV )
8890 {
8891 getDispatcher()->vkDestroyCudaModuleNV(
8892 static_cast<VkDevice>( m_device ), static_cast<VkCudaModuleNV>( m_cudaModuleNV ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
8893 }
8894 m_device = nullptr;
8895 m_cudaModuleNV = nullptr;
8896 m_allocator = nullptr;
8897 m_dispatcher = nullptr;
8898 }
8899
8900 VULKAN_HPP_NAMESPACE::CudaModuleNV release()
8901 {
8902 m_device = nullptr;
8903 m_allocator = nullptr;
8904 m_dispatcher = nullptr;
8905 return exchange( m_cudaModuleNV, nullptr );
8906 }
8907
8908 VULKAN_HPP_NAMESPACE::Device getDevice() const
8909 {
8910 return m_device;
8911 }
8912
8913 detail::DeviceDispatcher const * getDispatcher() const
8914 {
8915 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
8916 return m_dispatcher;
8917 }
8918
8919 void swap( CudaModuleNV & rhs ) VULKAN_HPP_NOEXCEPT
8920 {
8921 std::swap( m_device, rhs.m_device );
8922 std::swap( m_cudaModuleNV, rhs.m_cudaModuleNV );
8923 std::swap( m_allocator, rhs.m_allocator );
8924 std::swap( m_dispatcher, rhs.m_dispatcher );
8925 }
8926
8927 //=== VK_NV_cuda_kernel_launch ===
8928
8929 // wrapper function for command vkGetCudaModuleCacheNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCudaModuleCacheNV.html
8930 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t>>::type getCache() const;
8931
8932 private:
8933 VULKAN_HPP_NAMESPACE::Device m_device = {};
8934 VULKAN_HPP_NAMESPACE::CudaModuleNV m_cudaModuleNV = {};
8935 AllocationCallbacks const * m_allocator = {};
8936 detail::DeviceDispatcher const * m_dispatcher = nullptr;
8937 };
8938
8939 template <>
8940 struct isVulkanRAIIHandleType<CudaModuleNV>
8941 {
8942 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
8943 };
8944
8945 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
8946
8947 // wrapper class for handle VkDataGraphPipelineSessionARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkDataGraphPipelineSessionARM.html
8948 class DataGraphPipelineSessionARM
8949 {
8950 public:
8951 using CType = VkDataGraphPipelineSessionARM;
8952 using CppType = VULKAN_HPP_NAMESPACE::DataGraphPipelineSessionARM;
8953
8954 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eDataGraphPipelineSessionARM;
8955 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
8956
8957 public:
8958 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
8959 DataGraphPipelineSessionARM( Device const & device,
8960 DataGraphPipelineSessionCreateInfoARM const & createInfo,
8961 Optional<AllocationCallbacks const> allocator = nullptr )
8962 {
8963 *this = device.createDataGraphPipelineSessionARM( createInfo, allocator );
8964 }
8965 # endif
8966
8967 DataGraphPipelineSessionARM( Device const & device, VkDataGraphPipelineSessionARM session, Optional<AllocationCallbacks const> allocator = nullptr )
8968 : m_device( device )
8969 , m_dataGraphPipelineSessionARM( session )
8970 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
8971 , m_dispatcher( device.getDispatcher() )
8972 {
8973 }
8974
8975 DataGraphPipelineSessionARM( std::nullptr_t ) {}
8976
8977 ~DataGraphPipelineSessionARM()
8978 {
8979 clear();
8980 }
8981
8982 DataGraphPipelineSessionARM() = delete;
8983 DataGraphPipelineSessionARM( DataGraphPipelineSessionARM const & ) = delete;
8984
8985 DataGraphPipelineSessionARM( DataGraphPipelineSessionARM && rhs ) VULKAN_HPP_NOEXCEPT
8986 : m_device( exchange( rhs.m_device, {} ) )
8987 , m_dataGraphPipelineSessionARM( exchange( rhs.m_dataGraphPipelineSessionARM, {} ) )
8988 , m_allocator( exchange( rhs.m_allocator, {} ) )
8989 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
8990 {
8991 }
8992
8993 DataGraphPipelineSessionARM & operator=( DataGraphPipelineSessionARM const & ) = delete;
8994
8995 DataGraphPipelineSessionARM & operator=( DataGraphPipelineSessionARM && rhs ) VULKAN_HPP_NOEXCEPT
8996 {
8997 if ( this != &rhs )
8998 {
8999 std::swap( m_device, rhs.m_device );
9000 std::swap( m_dataGraphPipelineSessionARM, rhs.m_dataGraphPipelineSessionARM );
9001 std::swap( m_allocator, rhs.m_allocator );
9002 std::swap( m_dispatcher, rhs.m_dispatcher );
9003 }
9004 return *this;
9005 }
9006
9007 VULKAN_HPP_NAMESPACE::DataGraphPipelineSessionARM const & operator*() const & VULKAN_HPP_NOEXCEPT
9008 {
9009 return m_dataGraphPipelineSessionARM;
9010 }
9011
9012 VULKAN_HPP_NAMESPACE::DataGraphPipelineSessionARM const && operator*() const && VULKAN_HPP_NOEXCEPT
9013 {
9014 return std::move( m_dataGraphPipelineSessionARM );
9015 }
9016
9017 operator VULKAN_HPP_NAMESPACE::DataGraphPipelineSessionARM() const VULKAN_HPP_NOEXCEPT
9018 {
9019 return m_dataGraphPipelineSessionARM;
9020 }
9021
9022 void clear() VULKAN_HPP_NOEXCEPT
9023 {
9024 if ( m_dataGraphPipelineSessionARM )
9025 {
9026 getDispatcher()->vkDestroyDataGraphPipelineSessionARM( static_cast<VkDevice>( m_device ),
9027 static_cast<VkDataGraphPipelineSessionARM>( m_dataGraphPipelineSessionARM ),
9028 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
9029 }
9030 m_device = nullptr;
9031 m_dataGraphPipelineSessionARM = nullptr;
9032 m_allocator = nullptr;
9033 m_dispatcher = nullptr;
9034 }
9035
9036 VULKAN_HPP_NAMESPACE::DataGraphPipelineSessionARM release()
9037 {
9038 m_device = nullptr;
9039 m_allocator = nullptr;
9040 m_dispatcher = nullptr;
9041 return exchange( m_dataGraphPipelineSessionARM, nullptr );
9042 }
9043
9044 VULKAN_HPP_NAMESPACE::Device getDevice() const
9045 {
9046 return m_device;
9047 }
9048
9049 detail::DeviceDispatcher const * getDispatcher() const
9050 {
9051 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
9052 return m_dispatcher;
9053 }
9054
9055 void swap( DataGraphPipelineSessionARM & rhs ) VULKAN_HPP_NOEXCEPT
9056 {
9057 std::swap( m_device, rhs.m_device );
9058 std::swap( m_dataGraphPipelineSessionARM, rhs.m_dataGraphPipelineSessionARM );
9059 std::swap( m_allocator, rhs.m_allocator );
9060 std::swap( m_dispatcher, rhs.m_dispatcher );
9061 }
9062
9063 private:
9064 VULKAN_HPP_NAMESPACE::Device m_device = {};
9065 VULKAN_HPP_NAMESPACE::DataGraphPipelineSessionARM m_dataGraphPipelineSessionARM = {};
9066 AllocationCallbacks const * m_allocator = {};
9067 detail::DeviceDispatcher const * m_dispatcher = nullptr;
9068 };
9069
9070 template <>
9071 struct isVulkanRAIIHandleType<DataGraphPipelineSessionARM>
9072 {
9073 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
9074 };
9075
9076 // wrapper class for handle VkDebugReportCallbackEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkDebugReportCallbackEXT.html
9077 class DebugReportCallbackEXT
9078 {
9079 public:
9080 using CType = VkDebugReportCallbackEXT;
9081 using CppType = VULKAN_HPP_NAMESPACE::DebugReportCallbackEXT;
9082
9083 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eDebugReportCallbackEXT;
9084 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eDebugReportCallbackEXT;
9085
9086 public:
9087 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
9088 DebugReportCallbackEXT( Instance const & instance,
9089 DebugReportCallbackCreateInfoEXT const & createInfo,
9090 Optional<AllocationCallbacks const> allocator = nullptr )
9091 {
9092 *this = instance.createDebugReportCallbackEXT( createInfo, allocator );
9093 }
9094 # endif
9095
9096 DebugReportCallbackEXT( Instance const & instance, VkDebugReportCallbackEXT callback, Optional<AllocationCallbacks const> allocator = nullptr )
9097 : m_instance( instance )
9098 , m_debugReportCallbackEXT( callback )
9099 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
9100 , m_dispatcher( instance.getDispatcher() )
9101 {
9102 }
9103
9104 DebugReportCallbackEXT( std::nullptr_t ) {}
9105
9106 ~DebugReportCallbackEXT()
9107 {
9108 clear();
9109 }
9110
9111 DebugReportCallbackEXT() = delete;
9112 DebugReportCallbackEXT( DebugReportCallbackEXT const & ) = delete;
9113
9114 DebugReportCallbackEXT( DebugReportCallbackEXT && rhs ) VULKAN_HPP_NOEXCEPT
9115 : m_instance( exchange( rhs.m_instance, {} ) )
9116 , m_debugReportCallbackEXT( exchange( rhs.m_debugReportCallbackEXT, {} ) )
9117 , m_allocator( exchange( rhs.m_allocator, {} ) )
9118 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
9119 {
9120 }
9121
9122 DebugReportCallbackEXT & operator=( DebugReportCallbackEXT const & ) = delete;
9123
9124 DebugReportCallbackEXT & operator=( DebugReportCallbackEXT && rhs ) VULKAN_HPP_NOEXCEPT
9125 {
9126 if ( this != &rhs )
9127 {
9128 std::swap( m_instance, rhs.m_instance );
9129 std::swap( m_debugReportCallbackEXT, rhs.m_debugReportCallbackEXT );
9130 std::swap( m_allocator, rhs.m_allocator );
9131 std::swap( m_dispatcher, rhs.m_dispatcher );
9132 }
9133 return *this;
9134 }
9135
9136 VULKAN_HPP_NAMESPACE::DebugReportCallbackEXT const & operator*() const & VULKAN_HPP_NOEXCEPT
9137 {
9138 return m_debugReportCallbackEXT;
9139 }
9140
9141 VULKAN_HPP_NAMESPACE::DebugReportCallbackEXT const && operator*() const && VULKAN_HPP_NOEXCEPT
9142 {
9143 return std::move( m_debugReportCallbackEXT );
9144 }
9145
9146 operator VULKAN_HPP_NAMESPACE::DebugReportCallbackEXT() const VULKAN_HPP_NOEXCEPT
9147 {
9148 return m_debugReportCallbackEXT;
9149 }
9150
9151 void clear() VULKAN_HPP_NOEXCEPT
9152 {
9153 if ( m_debugReportCallbackEXT )
9154 {
9155 getDispatcher()->vkDestroyDebugReportCallbackEXT( static_cast<VkInstance>( m_instance ),
9156 static_cast<VkDebugReportCallbackEXT>( m_debugReportCallbackEXT ),
9157 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
9158 }
9159 m_instance = nullptr;
9160 m_debugReportCallbackEXT = nullptr;
9161 m_allocator = nullptr;
9162 m_dispatcher = nullptr;
9163 }
9164
9165 VULKAN_HPP_NAMESPACE::DebugReportCallbackEXT release()
9166 {
9167 m_instance = nullptr;
9168 m_allocator = nullptr;
9169 m_dispatcher = nullptr;
9170 return exchange( m_debugReportCallbackEXT, nullptr );
9171 }
9172
9173 VULKAN_HPP_NAMESPACE::Instance getInstance() const
9174 {
9175 return m_instance;
9176 }
9177
9178 detail::InstanceDispatcher const * getDispatcher() const
9179 {
9180 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
9181 return m_dispatcher;
9182 }
9183
9184 void swap( DebugReportCallbackEXT & rhs ) VULKAN_HPP_NOEXCEPT
9185 {
9186 std::swap( m_instance, rhs.m_instance );
9187 std::swap( m_debugReportCallbackEXT, rhs.m_debugReportCallbackEXT );
9188 std::swap( m_allocator, rhs.m_allocator );
9189 std::swap( m_dispatcher, rhs.m_dispatcher );
9190 }
9191
9192 private:
9193 VULKAN_HPP_NAMESPACE::Instance m_instance = {};
9194 VULKAN_HPP_NAMESPACE::DebugReportCallbackEXT m_debugReportCallbackEXT = {};
9195 AllocationCallbacks const * m_allocator = {};
9196 detail::InstanceDispatcher const * m_dispatcher = nullptr;
9197 };
9198
9199 template <>
9200 struct isVulkanRAIIHandleType<DebugReportCallbackEXT>
9201 {
9202 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
9203 };
9204
9205 // wrapper class for handle VkDebugUtilsMessengerEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkDebugUtilsMessengerEXT.html
9206 class DebugUtilsMessengerEXT
9207 {
9208 public:
9209 using CType = VkDebugUtilsMessengerEXT;
9210 using CppType = VULKAN_HPP_NAMESPACE::DebugUtilsMessengerEXT;
9211
9212 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eDebugUtilsMessengerEXT;
9213 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
9214
9215 public:
9216 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
9217 DebugUtilsMessengerEXT( Instance const & instance,
9218 DebugUtilsMessengerCreateInfoEXT const & createInfo,
9219 Optional<AllocationCallbacks const> allocator = nullptr )
9220 {
9221 *this = instance.createDebugUtilsMessengerEXT( createInfo, allocator );
9222 }
9223 # endif
9224
9225 DebugUtilsMessengerEXT( Instance const & instance, VkDebugUtilsMessengerEXT messenger, Optional<AllocationCallbacks const> allocator = nullptr )
9226 : m_instance( instance )
9227 , m_debugUtilsMessengerEXT( messenger )
9228 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
9229 , m_dispatcher( instance.getDispatcher() )
9230 {
9231 }
9232
9233 DebugUtilsMessengerEXT( std::nullptr_t ) {}
9234
9235 ~DebugUtilsMessengerEXT()
9236 {
9237 clear();
9238 }
9239
9240 DebugUtilsMessengerEXT() = delete;
9241 DebugUtilsMessengerEXT( DebugUtilsMessengerEXT const & ) = delete;
9242
9243 DebugUtilsMessengerEXT( DebugUtilsMessengerEXT && rhs ) VULKAN_HPP_NOEXCEPT
9244 : m_instance( exchange( rhs.m_instance, {} ) )
9245 , m_debugUtilsMessengerEXT( exchange( rhs.m_debugUtilsMessengerEXT, {} ) )
9246 , m_allocator( exchange( rhs.m_allocator, {} ) )
9247 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
9248 {
9249 }
9250
9251 DebugUtilsMessengerEXT & operator=( DebugUtilsMessengerEXT const & ) = delete;
9252
9253 DebugUtilsMessengerEXT & operator=( DebugUtilsMessengerEXT && rhs ) VULKAN_HPP_NOEXCEPT
9254 {
9255 if ( this != &rhs )
9256 {
9257 std::swap( m_instance, rhs.m_instance );
9258 std::swap( m_debugUtilsMessengerEXT, rhs.m_debugUtilsMessengerEXT );
9259 std::swap( m_allocator, rhs.m_allocator );
9260 std::swap( m_dispatcher, rhs.m_dispatcher );
9261 }
9262 return *this;
9263 }
9264
9265 VULKAN_HPP_NAMESPACE::DebugUtilsMessengerEXT const & operator*() const & VULKAN_HPP_NOEXCEPT
9266 {
9267 return m_debugUtilsMessengerEXT;
9268 }
9269
9270 VULKAN_HPP_NAMESPACE::DebugUtilsMessengerEXT const && operator*() const && VULKAN_HPP_NOEXCEPT
9271 {
9272 return std::move( m_debugUtilsMessengerEXT );
9273 }
9274
9275 operator VULKAN_HPP_NAMESPACE::DebugUtilsMessengerEXT() const VULKAN_HPP_NOEXCEPT
9276 {
9277 return m_debugUtilsMessengerEXT;
9278 }
9279
9280 void clear() VULKAN_HPP_NOEXCEPT
9281 {
9282 if ( m_debugUtilsMessengerEXT )
9283 {
9284 getDispatcher()->vkDestroyDebugUtilsMessengerEXT( static_cast<VkInstance>( m_instance ),
9285 static_cast<VkDebugUtilsMessengerEXT>( m_debugUtilsMessengerEXT ),
9286 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
9287 }
9288 m_instance = nullptr;
9289 m_debugUtilsMessengerEXT = nullptr;
9290 m_allocator = nullptr;
9291 m_dispatcher = nullptr;
9292 }
9293
9294 VULKAN_HPP_NAMESPACE::DebugUtilsMessengerEXT release()
9295 {
9296 m_instance = nullptr;
9297 m_allocator = nullptr;
9298 m_dispatcher = nullptr;
9299 return exchange( m_debugUtilsMessengerEXT, nullptr );
9300 }
9301
9302 VULKAN_HPP_NAMESPACE::Instance getInstance() const
9303 {
9304 return m_instance;
9305 }
9306
9307 detail::InstanceDispatcher const * getDispatcher() const
9308 {
9309 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
9310 return m_dispatcher;
9311 }
9312
9313 void swap( DebugUtilsMessengerEXT & rhs ) VULKAN_HPP_NOEXCEPT
9314 {
9315 std::swap( m_instance, rhs.m_instance );
9316 std::swap( m_debugUtilsMessengerEXT, rhs.m_debugUtilsMessengerEXT );
9317 std::swap( m_allocator, rhs.m_allocator );
9318 std::swap( m_dispatcher, rhs.m_dispatcher );
9319 }
9320
9321 private:
9322 VULKAN_HPP_NAMESPACE::Instance m_instance = {};
9323 VULKAN_HPP_NAMESPACE::DebugUtilsMessengerEXT m_debugUtilsMessengerEXT = {};
9324 AllocationCallbacks const * m_allocator = {};
9325 detail::InstanceDispatcher const * m_dispatcher = nullptr;
9326 };
9327
9328 template <>
9329 struct isVulkanRAIIHandleType<DebugUtilsMessengerEXT>
9330 {
9331 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
9332 };
9333
9334 // wrapper class for handle VkDeferredOperationKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkDeferredOperationKHR.html
9335 class DeferredOperationKHR
9336 {
9337 public:
9338 using CType = VkDeferredOperationKHR;
9339 using CppType = VULKAN_HPP_NAMESPACE::DeferredOperationKHR;
9340
9341 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eDeferredOperationKHR;
9342 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
9343
9344 public:
9345 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
9346 DeferredOperationKHR( Device const & device, Optional<AllocationCallbacks const> allocator = nullptr )
9347 {
9348 *this = device.createDeferredOperationKHR( allocator );
9349 }
9350 # endif
9351
9352 DeferredOperationKHR( Device const & device, VkDeferredOperationKHR operation, Optional<AllocationCallbacks const> allocator = nullptr )
9353 : m_device( device )
9354 , m_deferredOperationKHR( operation )
9355 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
9356 , m_dispatcher( device.getDispatcher() )
9357 {
9358 }
9359
9360 DeferredOperationKHR( std::nullptr_t ) {}
9361
9362 ~DeferredOperationKHR()
9363 {
9364 clear();
9365 }
9366
9367 DeferredOperationKHR() = delete;
9368 DeferredOperationKHR( DeferredOperationKHR const & ) = delete;
9369
9370 DeferredOperationKHR( DeferredOperationKHR && rhs ) VULKAN_HPP_NOEXCEPT
9371 : m_device( exchange( rhs.m_device, {} ) )
9372 , m_deferredOperationKHR( exchange( rhs.m_deferredOperationKHR, {} ) )
9373 , m_allocator( exchange( rhs.m_allocator, {} ) )
9374 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
9375 {
9376 }
9377
9378 DeferredOperationKHR & operator=( DeferredOperationKHR const & ) = delete;
9379
9380 DeferredOperationKHR & operator=( DeferredOperationKHR && rhs ) VULKAN_HPP_NOEXCEPT
9381 {
9382 if ( this != &rhs )
9383 {
9384 std::swap( m_device, rhs.m_device );
9385 std::swap( m_deferredOperationKHR, rhs.m_deferredOperationKHR );
9386 std::swap( m_allocator, rhs.m_allocator );
9387 std::swap( m_dispatcher, rhs.m_dispatcher );
9388 }
9389 return *this;
9390 }
9391
9392 VULKAN_HPP_NAMESPACE::DeferredOperationKHR const & operator*() const & VULKAN_HPP_NOEXCEPT
9393 {
9394 return m_deferredOperationKHR;
9395 }
9396
9397 VULKAN_HPP_NAMESPACE::DeferredOperationKHR const && operator*() const && VULKAN_HPP_NOEXCEPT
9398 {
9399 return std::move( m_deferredOperationKHR );
9400 }
9401
9402 operator VULKAN_HPP_NAMESPACE::DeferredOperationKHR() const VULKAN_HPP_NOEXCEPT
9403 {
9404 return m_deferredOperationKHR;
9405 }
9406
9407 void clear() VULKAN_HPP_NOEXCEPT
9408 {
9409 if ( m_deferredOperationKHR )
9410 {
9411 getDispatcher()->vkDestroyDeferredOperationKHR( static_cast<VkDevice>( m_device ),
9412 static_cast<VkDeferredOperationKHR>( m_deferredOperationKHR ),
9413 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
9414 }
9415 m_device = nullptr;
9416 m_deferredOperationKHR = nullptr;
9417 m_allocator = nullptr;
9418 m_dispatcher = nullptr;
9419 }
9420
9421 VULKAN_HPP_NAMESPACE::DeferredOperationKHR release()
9422 {
9423 m_device = nullptr;
9424 m_allocator = nullptr;
9425 m_dispatcher = nullptr;
9426 return exchange( m_deferredOperationKHR, nullptr );
9427 }
9428
9429 VULKAN_HPP_NAMESPACE::Device getDevice() const
9430 {
9431 return m_device;
9432 }
9433
9434 detail::DeviceDispatcher const * getDispatcher() const
9435 {
9436 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
9437 return m_dispatcher;
9438 }
9439
9440 void swap( DeferredOperationKHR & rhs ) VULKAN_HPP_NOEXCEPT
9441 {
9442 std::swap( m_device, rhs.m_device );
9443 std::swap( m_deferredOperationKHR, rhs.m_deferredOperationKHR );
9444 std::swap( m_allocator, rhs.m_allocator );
9445 std::swap( m_dispatcher, rhs.m_dispatcher );
9446 }
9447
9448 //=== VK_KHR_deferred_host_operations ===
9449
9450 // wrapper function for command vkGetDeferredOperationMaxConcurrencyKHR, see
9451 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeferredOperationMaxConcurrencyKHR.html
9452 VULKAN_HPP_NODISCARD uint32_t getMaxConcurrency() const VULKAN_HPP_NOEXCEPT;
9453
9454 // wrapper function for command vkGetDeferredOperationResultKHR, see
9455 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeferredOperationResultKHR.html
9456 VULKAN_HPP_NODISCARD Result getResult() const;
9457
9458 // wrapper function for command vkDeferredOperationJoinKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeferredOperationJoinKHR.html
9459 VULKAN_HPP_NODISCARD Result join() const;
9460
9461 private:
9462 VULKAN_HPP_NAMESPACE::Device m_device = {};
9463 VULKAN_HPP_NAMESPACE::DeferredOperationKHR m_deferredOperationKHR = {};
9464 AllocationCallbacks const * m_allocator = {};
9465 detail::DeviceDispatcher const * m_dispatcher = nullptr;
9466 };
9467
9468 template <>
9469 struct isVulkanRAIIHandleType<DeferredOperationKHR>
9470 {
9471 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
9472 };
9473
9474 // wrapper class for handle VkDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkDescriptorPool.html
9475 class DescriptorPool
9476 {
9477 public:
9478 using CType = VkDescriptorPool;
9479 using CppType = VULKAN_HPP_NAMESPACE::DescriptorPool;
9480
9481 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eDescriptorPool;
9482 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eDescriptorPool;
9483
9484 public:
9485 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
9486 DescriptorPool( Device const & device, DescriptorPoolCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
9487 {
9488 *this = device.createDescriptorPool( createInfo, allocator );
9489 }
9490 # endif
9491
9492 DescriptorPool( Device const & device, VkDescriptorPool descriptorPool, Optional<AllocationCallbacks const> allocator = nullptr )
9493 : m_device( device )
9494 , m_descriptorPool( descriptorPool )
9495 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
9496 , m_dispatcher( device.getDispatcher() )
9497 {
9498 }
9499
9500 DescriptorPool( std::nullptr_t ) {}
9501
9502 ~DescriptorPool()
9503 {
9504 clear();
9505 }
9506
9507 DescriptorPool() = delete;
9508 DescriptorPool( DescriptorPool const & ) = delete;
9509
9510 DescriptorPool( DescriptorPool && rhs ) VULKAN_HPP_NOEXCEPT
9511 : m_device( exchange( rhs.m_device, {} ) )
9512 , m_descriptorPool( exchange( rhs.m_descriptorPool, {} ) )
9513 , m_allocator( exchange( rhs.m_allocator, {} ) )
9514 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
9515 {
9516 }
9517
9518 DescriptorPool & operator=( DescriptorPool const & ) = delete;
9519
9520 DescriptorPool & operator=( DescriptorPool && rhs ) VULKAN_HPP_NOEXCEPT
9521 {
9522 if ( this != &rhs )
9523 {
9524 std::swap( m_device, rhs.m_device );
9525 std::swap( m_descriptorPool, rhs.m_descriptorPool );
9526 std::swap( m_allocator, rhs.m_allocator );
9527 std::swap( m_dispatcher, rhs.m_dispatcher );
9528 }
9529 return *this;
9530 }
9531
9532 VULKAN_HPP_NAMESPACE::DescriptorPool const & operator*() const & VULKAN_HPP_NOEXCEPT
9533 {
9534 return m_descriptorPool;
9535 }
9536
9537 VULKAN_HPP_NAMESPACE::DescriptorPool const && operator*() const && VULKAN_HPP_NOEXCEPT
9538 {
9539 return std::move( m_descriptorPool );
9540 }
9541
9542 operator VULKAN_HPP_NAMESPACE::DescriptorPool() const VULKAN_HPP_NOEXCEPT
9543 {
9544 return m_descriptorPool;
9545 }
9546
9547 void clear() VULKAN_HPP_NOEXCEPT
9548 {
9549 if ( m_descriptorPool )
9550 {
9551 getDispatcher()->vkDestroyDescriptorPool( static_cast<VkDevice>( m_device ),
9552 static_cast<VkDescriptorPool>( m_descriptorPool ),
9553 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
9554 }
9555 m_device = nullptr;
9556 m_descriptorPool = nullptr;
9557 m_allocator = nullptr;
9558 m_dispatcher = nullptr;
9559 }
9560
9561 VULKAN_HPP_NAMESPACE::DescriptorPool release()
9562 {
9563 m_device = nullptr;
9564 m_allocator = nullptr;
9565 m_dispatcher = nullptr;
9566 return exchange( m_descriptorPool, nullptr );
9567 }
9568
9569 VULKAN_HPP_NAMESPACE::Device getDevice() const
9570 {
9571 return m_device;
9572 }
9573
9574 detail::DeviceDispatcher const * getDispatcher() const
9575 {
9576 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
9577 return m_dispatcher;
9578 }
9579
9580 void swap( DescriptorPool & rhs ) VULKAN_HPP_NOEXCEPT
9581 {
9582 std::swap( m_device, rhs.m_device );
9583 std::swap( m_descriptorPool, rhs.m_descriptorPool );
9584 std::swap( m_allocator, rhs.m_allocator );
9585 std::swap( m_dispatcher, rhs.m_dispatcher );
9586 }
9587
9588 //=== VK_VERSION_1_0 ===
9589
9590 // wrapper function for command vkResetDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetDescriptorPool.html
9591 typename ResultValueType<void>::type reset( DescriptorPoolResetFlags flags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
9592
9593 private:
9594 VULKAN_HPP_NAMESPACE::Device m_device = {};
9595 VULKAN_HPP_NAMESPACE::DescriptorPool m_descriptorPool = {};
9596 AllocationCallbacks const * m_allocator = {};
9597 detail::DeviceDispatcher const * m_dispatcher = nullptr;
9598 };
9599
9600 template <>
9601 struct isVulkanRAIIHandleType<DescriptorPool>
9602 {
9603 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
9604 };
9605
9606 // wrapper class for handle VkDescriptorSet, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkDescriptorSet.html
9607 class DescriptorSet
9608 {
9609 public:
9610 using CType = VkDescriptorSet;
9611 using CppType = VULKAN_HPP_NAMESPACE::DescriptorSet;
9612
9613 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eDescriptorSet;
9614 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eDescriptorSet;
9615
9616 public:
9617 DescriptorSet( Device const & device, VkDescriptorSet descriptorSet, VkDescriptorPool descriptorPool )
9618 : m_device( device ), m_descriptorPool( descriptorPool ), m_descriptorSet( descriptorSet ), m_dispatcher( device.getDispatcher() )
9619 {
9620 }
9621
9622 DescriptorSet( std::nullptr_t ) {}
9623
9624 ~DescriptorSet()
9625 {
9626 clear();
9627 }
9628
9629 DescriptorSet() = delete;
9630 DescriptorSet( DescriptorSet const & ) = delete;
9631
9632 DescriptorSet( DescriptorSet && rhs ) VULKAN_HPP_NOEXCEPT
9633 : m_device( exchange( rhs.m_device, {} ) )
9634 , m_descriptorPool( exchange( rhs.m_descriptorPool, {} ) )
9635 , m_descriptorSet( exchange( rhs.m_descriptorSet, {} ) )
9636 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
9637 {
9638 }
9639
9640 DescriptorSet & operator=( DescriptorSet const & ) = delete;
9641
9642 DescriptorSet & operator=( DescriptorSet && rhs ) VULKAN_HPP_NOEXCEPT
9643 {
9644 if ( this != &rhs )
9645 {
9646 std::swap( m_device, rhs.m_device );
9647 std::swap( m_descriptorPool, rhs.m_descriptorPool );
9648 std::swap( m_descriptorSet, rhs.m_descriptorSet );
9649 std::swap( m_dispatcher, rhs.m_dispatcher );
9650 }
9651 return *this;
9652 }
9653
9654 VULKAN_HPP_NAMESPACE::DescriptorSet const & operator*() const & VULKAN_HPP_NOEXCEPT
9655 {
9656 return m_descriptorSet;
9657 }
9658
9659 VULKAN_HPP_NAMESPACE::DescriptorSet const && operator*() const && VULKAN_HPP_NOEXCEPT
9660 {
9661 return std::move( m_descriptorSet );
9662 }
9663
9664 operator VULKAN_HPP_NAMESPACE::DescriptorSet() const VULKAN_HPP_NOEXCEPT
9665 {
9666 return m_descriptorSet;
9667 }
9668
9669 void clear() VULKAN_HPP_NOEXCEPT
9670 {
9671 if ( m_descriptorSet )
9672 {
9673 getDispatcher()->vkFreeDescriptorSets( static_cast<VkDevice>( m_device ),
9674 static_cast<VkDescriptorPool>( m_descriptorPool ),
9675 1,
9676 reinterpret_cast<VkDescriptorSet const *>( &m_descriptorSet ) );
9677 }
9678 m_device = nullptr;
9679 m_descriptorPool = nullptr;
9680 m_descriptorSet = nullptr;
9681 m_dispatcher = nullptr;
9682 }
9683
9684 VULKAN_HPP_NAMESPACE::DescriptorSet release()
9685 {
9686 m_device = nullptr;
9687 m_descriptorPool = nullptr;
9688 m_dispatcher = nullptr;
9689 return exchange( m_descriptorSet, nullptr );
9690 }
9691
9692 VULKAN_HPP_NAMESPACE::Device getDevice() const
9693 {
9694 return m_device;
9695 }
9696
9697 detail::DeviceDispatcher const * getDispatcher() const
9698 {
9699 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
9700 return m_dispatcher;
9701 }
9702
9703 void swap( DescriptorSet & rhs ) VULKAN_HPP_NOEXCEPT
9704 {
9705 std::swap( m_device, rhs.m_device );
9706 std::swap( m_descriptorPool, rhs.m_descriptorPool );
9707 std::swap( m_descriptorSet, rhs.m_descriptorSet );
9708 std::swap( m_dispatcher, rhs.m_dispatcher );
9709 }
9710
9711 //=== VK_VERSION_1_1 ===
9712
9713 // wrapper function for command vkUpdateDescriptorSetWithTemplate, see
9714 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSetWithTemplate.html
9715 template <typename DataType>
9716 void updateWithTemplate( VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate descriptorUpdateTemplate, DataType const & data ) const VULKAN_HPP_NOEXCEPT;
9717
9718 //=== VK_KHR_descriptor_update_template ===
9719
9720 // wrapper function for command vkUpdateDescriptorSetWithTemplateKHR, see
9721 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSetWithTemplateKHR.html
9722 template <typename DataType>
9723 void updateWithTemplateKHR( VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate descriptorUpdateTemplate, DataType const & data ) const VULKAN_HPP_NOEXCEPT;
9724
9725 //=== VK_VALVE_descriptor_set_host_mapping ===
9726
9727 // wrapper function for command vkGetDescriptorSetHostMappingVALVE, see
9728 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetHostMappingVALVE.html
9729 VULKAN_HPP_NODISCARD void * getHostMappingVALVE() const VULKAN_HPP_NOEXCEPT;
9730
9731 private:
9732 VULKAN_HPP_NAMESPACE::Device m_device = {};
9733 VULKAN_HPP_NAMESPACE::DescriptorPool m_descriptorPool = {};
9734 VULKAN_HPP_NAMESPACE::DescriptorSet m_descriptorSet = {};
9735 detail::DeviceDispatcher const * m_dispatcher = nullptr;
9736 };
9737
9738 template <>
9739 struct isVulkanRAIIHandleType<DescriptorSet>
9740 {
9741 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
9742 };
9743
9744 class DescriptorSets : public std::vector<DescriptorSet>
9745 {
9746 public:
9747 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
9748 DescriptorSets( Device const & device, DescriptorSetAllocateInfo const & allocateInfo )
9749 {
9750 *this = device.allocateDescriptorSets( allocateInfo );
9751 }
9752 # endif
9753
9754 DescriptorSets( std::nullptr_t ) {}
9755
9756 DescriptorSets() = delete;
9757 DescriptorSets( DescriptorSets const & ) = delete;
9758 DescriptorSets( DescriptorSets && rhs ) = default;
9759 DescriptorSets & operator=( DescriptorSets const & ) = delete;
9760 DescriptorSets & operator=( DescriptorSets && rhs ) = default;
9761
9762 DescriptorSets( std::vector<DescriptorSet> && rhs )
9763 {
9764 std::swap( *this, rhs );
9765 }
9766 };
9767
9768 // wrapper class for handle VkDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkDescriptorSetLayout.html
9769 class DescriptorSetLayout
9770 {
9771 public:
9772 using CType = VkDescriptorSetLayout;
9773 using CppType = VULKAN_HPP_NAMESPACE::DescriptorSetLayout;
9774
9775 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eDescriptorSetLayout;
9776 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eDescriptorSetLayout;
9777
9778 public:
9779 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
9780 DescriptorSetLayout( Device const & device, DescriptorSetLayoutCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
9781 {
9782 *this = device.createDescriptorSetLayout( createInfo, allocator );
9783 }
9784 # endif
9785
9786 DescriptorSetLayout( Device const & device, VkDescriptorSetLayout descriptorSetLayout, Optional<AllocationCallbacks const> allocator = nullptr )
9787 : m_device( device )
9788 , m_descriptorSetLayout( descriptorSetLayout )
9789 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
9790 , m_dispatcher( device.getDispatcher() )
9791 {
9792 }
9793
9794 DescriptorSetLayout( std::nullptr_t ) {}
9795
9796 ~DescriptorSetLayout()
9797 {
9798 clear();
9799 }
9800
9801 DescriptorSetLayout() = delete;
9802 DescriptorSetLayout( DescriptorSetLayout const & ) = delete;
9803
9804 DescriptorSetLayout( DescriptorSetLayout && rhs ) VULKAN_HPP_NOEXCEPT
9805 : m_device( exchange( rhs.m_device, {} ) )
9806 , m_descriptorSetLayout( exchange( rhs.m_descriptorSetLayout, {} ) )
9807 , m_allocator( exchange( rhs.m_allocator, {} ) )
9808 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
9809 {
9810 }
9811
9812 DescriptorSetLayout & operator=( DescriptorSetLayout const & ) = delete;
9813
9814 DescriptorSetLayout & operator=( DescriptorSetLayout && rhs ) VULKAN_HPP_NOEXCEPT
9815 {
9816 if ( this != &rhs )
9817 {
9818 std::swap( m_device, rhs.m_device );
9819 std::swap( m_descriptorSetLayout, rhs.m_descriptorSetLayout );
9820 std::swap( m_allocator, rhs.m_allocator );
9821 std::swap( m_dispatcher, rhs.m_dispatcher );
9822 }
9823 return *this;
9824 }
9825
9826 VULKAN_HPP_NAMESPACE::DescriptorSetLayout const & operator*() const & VULKAN_HPP_NOEXCEPT
9827 {
9828 return m_descriptorSetLayout;
9829 }
9830
9831 VULKAN_HPP_NAMESPACE::DescriptorSetLayout const && operator*() const && VULKAN_HPP_NOEXCEPT
9832 {
9833 return std::move( m_descriptorSetLayout );
9834 }
9835
9836 operator VULKAN_HPP_NAMESPACE::DescriptorSetLayout() const VULKAN_HPP_NOEXCEPT
9837 {
9838 return m_descriptorSetLayout;
9839 }
9840
9841 void clear() VULKAN_HPP_NOEXCEPT
9842 {
9843 if ( m_descriptorSetLayout )
9844 {
9845 getDispatcher()->vkDestroyDescriptorSetLayout( static_cast<VkDevice>( m_device ),
9846 static_cast<VkDescriptorSetLayout>( m_descriptorSetLayout ),
9847 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
9848 }
9849 m_device = nullptr;
9850 m_descriptorSetLayout = nullptr;
9851 m_allocator = nullptr;
9852 m_dispatcher = nullptr;
9853 }
9854
9855 VULKAN_HPP_NAMESPACE::DescriptorSetLayout release()
9856 {
9857 m_device = nullptr;
9858 m_allocator = nullptr;
9859 m_dispatcher = nullptr;
9860 return exchange( m_descriptorSetLayout, nullptr );
9861 }
9862
9863 VULKAN_HPP_NAMESPACE::Device getDevice() const
9864 {
9865 return m_device;
9866 }
9867
9868 detail::DeviceDispatcher const * getDispatcher() const
9869 {
9870 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
9871 return m_dispatcher;
9872 }
9873
9874 void swap( DescriptorSetLayout & rhs ) VULKAN_HPP_NOEXCEPT
9875 {
9876 std::swap( m_device, rhs.m_device );
9877 std::swap( m_descriptorSetLayout, rhs.m_descriptorSetLayout );
9878 std::swap( m_allocator, rhs.m_allocator );
9879 std::swap( m_dispatcher, rhs.m_dispatcher );
9880 }
9881
9882 //=== VK_EXT_descriptor_buffer ===
9883
9884 // wrapper function for command vkGetDescriptorSetLayoutSizeEXT, see
9885 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSizeEXT.html
9886 VULKAN_HPP_NODISCARD DeviceSize getSizeEXT() const VULKAN_HPP_NOEXCEPT;
9887
9888 // wrapper function for command vkGetDescriptorSetLayoutBindingOffsetEXT, see
9889 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutBindingOffsetEXT.html
9890 VULKAN_HPP_NODISCARD DeviceSize getBindingOffsetEXT( uint32_t binding ) const VULKAN_HPP_NOEXCEPT;
9891
9892 private:
9893 VULKAN_HPP_NAMESPACE::Device m_device = {};
9894 VULKAN_HPP_NAMESPACE::DescriptorSetLayout m_descriptorSetLayout = {};
9895 AllocationCallbacks const * m_allocator = {};
9896 detail::DeviceDispatcher const * m_dispatcher = nullptr;
9897 };
9898
9899 template <>
9900 struct isVulkanRAIIHandleType<DescriptorSetLayout>
9901 {
9902 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
9903 };
9904
9905 // wrapper class for handle VkDescriptorUpdateTemplate, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkDescriptorUpdateTemplate.html
9906 class DescriptorUpdateTemplate
9907 {
9908 public:
9909 using CType = VkDescriptorUpdateTemplate;
9910 using CppType = VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate;
9911
9912 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eDescriptorUpdateTemplate;
9913 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eDescriptorUpdateTemplate;
9914
9915 public:
9916 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
9917 DescriptorUpdateTemplate( Device const & device,
9918 DescriptorUpdateTemplateCreateInfo const & createInfo,
9919 Optional<AllocationCallbacks const> allocator = nullptr )
9920 {
9921 *this = device.createDescriptorUpdateTemplate( createInfo, allocator );
9922 }
9923 # endif
9924
9925 DescriptorUpdateTemplate( Device const & device,
9926 VkDescriptorUpdateTemplate descriptorUpdateTemplate,
9927 Optional<AllocationCallbacks const> allocator = nullptr )
9928 : m_device( device )
9929 , m_descriptorUpdateTemplate( descriptorUpdateTemplate )
9930 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
9931 , m_dispatcher( device.getDispatcher() )
9932 {
9933 }
9934
9935 DescriptorUpdateTemplate( std::nullptr_t ) {}
9936
9937 ~DescriptorUpdateTemplate()
9938 {
9939 clear();
9940 }
9941
9942 DescriptorUpdateTemplate() = delete;
9943 DescriptorUpdateTemplate( DescriptorUpdateTemplate const & ) = delete;
9944
9945 DescriptorUpdateTemplate( DescriptorUpdateTemplate && rhs ) VULKAN_HPP_NOEXCEPT
9946 : m_device( exchange( rhs.m_device, {} ) )
9947 , m_descriptorUpdateTemplate( exchange( rhs.m_descriptorUpdateTemplate, {} ) )
9948 , m_allocator( exchange( rhs.m_allocator, {} ) )
9949 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
9950 {
9951 }
9952
9953 DescriptorUpdateTemplate & operator=( DescriptorUpdateTemplate const & ) = delete;
9954
9955 DescriptorUpdateTemplate & operator=( DescriptorUpdateTemplate && rhs ) VULKAN_HPP_NOEXCEPT
9956 {
9957 if ( this != &rhs )
9958 {
9959 std::swap( m_device, rhs.m_device );
9960 std::swap( m_descriptorUpdateTemplate, rhs.m_descriptorUpdateTemplate );
9961 std::swap( m_allocator, rhs.m_allocator );
9962 std::swap( m_dispatcher, rhs.m_dispatcher );
9963 }
9964 return *this;
9965 }
9966
9967 VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate const & operator*() const & VULKAN_HPP_NOEXCEPT
9968 {
9969 return m_descriptorUpdateTemplate;
9970 }
9971
9972 VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate const && operator*() const && VULKAN_HPP_NOEXCEPT
9973 {
9974 return std::move( m_descriptorUpdateTemplate );
9975 }
9976
9977 operator VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate() const VULKAN_HPP_NOEXCEPT
9978 {
9979 return m_descriptorUpdateTemplate;
9980 }
9981
9982 void clear() VULKAN_HPP_NOEXCEPT
9983 {
9984 if ( m_descriptorUpdateTemplate )
9985 {
9986 getDispatcher()->vkDestroyDescriptorUpdateTemplate( static_cast<VkDevice>( m_device ),
9987 static_cast<VkDescriptorUpdateTemplate>( m_descriptorUpdateTemplate ),
9988 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
9989 }
9990 m_device = nullptr;
9991 m_descriptorUpdateTemplate = nullptr;
9992 m_allocator = nullptr;
9993 m_dispatcher = nullptr;
9994 }
9995
9996 VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate release()
9997 {
9998 m_device = nullptr;
9999 m_allocator = nullptr;
10000 m_dispatcher = nullptr;
10001 return exchange( m_descriptorUpdateTemplate, nullptr );
10002 }
10003
10004 VULKAN_HPP_NAMESPACE::Device getDevice() const
10005 {
10006 return m_device;
10007 }
10008
10009 detail::DeviceDispatcher const * getDispatcher() const
10010 {
10011 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
10012 return m_dispatcher;
10013 }
10014
10015 void swap( DescriptorUpdateTemplate & rhs ) VULKAN_HPP_NOEXCEPT
10016 {
10017 std::swap( m_device, rhs.m_device );
10018 std::swap( m_descriptorUpdateTemplate, rhs.m_descriptorUpdateTemplate );
10019 std::swap( m_allocator, rhs.m_allocator );
10020 std::swap( m_dispatcher, rhs.m_dispatcher );
10021 }
10022
10023 private:
10024 VULKAN_HPP_NAMESPACE::Device m_device = {};
10025 VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate m_descriptorUpdateTemplate = {};
10026 AllocationCallbacks const * m_allocator = {};
10027 detail::DeviceDispatcher const * m_dispatcher = nullptr;
10028 };
10029
10030 template <>
10031 struct isVulkanRAIIHandleType<DescriptorUpdateTemplate>
10032 {
10033 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
10034 };
10035
10036 // wrapper class for handle VkDeviceMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkDeviceMemory.html
10037 class DeviceMemory
10038 {
10039 public:
10040 using CType = VkDeviceMemory;
10041 using CppType = VULKAN_HPP_NAMESPACE::DeviceMemory;
10042
10043 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eDeviceMemory;
10044 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eDeviceMemory;
10045
10046 public:
10047 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
10048 DeviceMemory( Device const & device, MemoryAllocateInfo const & allocateInfo, Optional<AllocationCallbacks const> allocator = nullptr )
10049 {
10050 *this = device.allocateMemory( allocateInfo, allocator );
10051 }
10052 # endif
10053
10054 DeviceMemory( Device const & device, VkDeviceMemory memory, Optional<AllocationCallbacks const> allocator = nullptr )
10055 : m_device( device )
10056 , m_deviceMemory( memory )
10057 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
10058 , m_dispatcher( device.getDispatcher() )
10059 {
10060 }
10061
10062 DeviceMemory( std::nullptr_t ) {}
10063
10064 ~DeviceMemory()
10065 {
10066 clear();
10067 }
10068
10069 DeviceMemory() = delete;
10070 DeviceMemory( DeviceMemory const & ) = delete;
10071
10072 DeviceMemory( DeviceMemory && rhs ) VULKAN_HPP_NOEXCEPT
10073 : m_device( exchange( rhs.m_device, {} ) )
10074 , m_deviceMemory( exchange( rhs.m_deviceMemory, {} ) )
10075 , m_allocator( exchange( rhs.m_allocator, {} ) )
10076 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
10077 {
10078 }
10079
10080 DeviceMemory & operator=( DeviceMemory const & ) = delete;
10081
10082 DeviceMemory & operator=( DeviceMemory && rhs ) VULKAN_HPP_NOEXCEPT
10083 {
10084 if ( this != &rhs )
10085 {
10086 std::swap( m_device, rhs.m_device );
10087 std::swap( m_deviceMemory, rhs.m_deviceMemory );
10088 std::swap( m_allocator, rhs.m_allocator );
10089 std::swap( m_dispatcher, rhs.m_dispatcher );
10090 }
10091 return *this;
10092 }
10093
10094 VULKAN_HPP_NAMESPACE::DeviceMemory const & operator*() const & VULKAN_HPP_NOEXCEPT
10095 {
10096 return m_deviceMemory;
10097 }
10098
10099 VULKAN_HPP_NAMESPACE::DeviceMemory const && operator*() const && VULKAN_HPP_NOEXCEPT
10100 {
10101 return std::move( m_deviceMemory );
10102 }
10103
10104 operator VULKAN_HPP_NAMESPACE::DeviceMemory() const VULKAN_HPP_NOEXCEPT
10105 {
10106 return m_deviceMemory;
10107 }
10108
10109 void clear() VULKAN_HPP_NOEXCEPT
10110 {
10111 if ( m_deviceMemory )
10112 {
10113 getDispatcher()->vkFreeMemory(
10114 static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( m_deviceMemory ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
10115 }
10116 m_device = nullptr;
10117 m_deviceMemory = nullptr;
10118 m_allocator = nullptr;
10119 m_dispatcher = nullptr;
10120 }
10121
10122 VULKAN_HPP_NAMESPACE::DeviceMemory release()
10123 {
10124 m_device = nullptr;
10125 m_allocator = nullptr;
10126 m_dispatcher = nullptr;
10127 return exchange( m_deviceMemory, nullptr );
10128 }
10129
10130 VULKAN_HPP_NAMESPACE::Device getDevice() const
10131 {
10132 return m_device;
10133 }
10134
10135 detail::DeviceDispatcher const * getDispatcher() const
10136 {
10137 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
10138 return m_dispatcher;
10139 }
10140
10141 void swap( DeviceMemory & rhs ) VULKAN_HPP_NOEXCEPT
10142 {
10143 std::swap( m_device, rhs.m_device );
10144 std::swap( m_deviceMemory, rhs.m_deviceMemory );
10145 std::swap( m_allocator, rhs.m_allocator );
10146 std::swap( m_dispatcher, rhs.m_dispatcher );
10147 }
10148
10149 //=== VK_VERSION_1_0 ===
10150
10151 // wrapper function for command vkMapMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory.html
10152 VULKAN_HPP_NODISCARD typename ResultValueType<void *>::type
10153 mapMemory( DeviceSize offset, DeviceSize size, MemoryMapFlags flags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
10154
10155 // wrapper function for command vkUnmapMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory.html
10156 void unmapMemory() const VULKAN_HPP_NOEXCEPT;
10157
10158 // wrapper function for command vkGetDeviceMemoryCommitment, see
10159 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryCommitment.html
10160 VULKAN_HPP_NODISCARD DeviceSize getCommitment() const VULKAN_HPP_NOEXCEPT;
10161
10162 # if defined( VK_USE_PLATFORM_WIN32_KHR )
10163 //=== VK_NV_external_memory_win32 ===
10164
10165 // wrapper function for command vkGetMemoryWin32HandleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandleNV.html
10166 VULKAN_HPP_NODISCARD typename ResultValueType<HANDLE>::type getMemoryWin32HandleNV( ExternalMemoryHandleTypeFlagsNV handleType ) const;
10167 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
10168
10169 //=== VK_EXT_pageable_device_local_memory ===
10170
10171 // wrapper function for command vkSetDeviceMemoryPriorityEXT, see
10172 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDeviceMemoryPriorityEXT.html
10173 void setPriorityEXT( float priority ) const VULKAN_HPP_NOEXCEPT;
10174
10175 private:
10176 VULKAN_HPP_NAMESPACE::Device m_device = {};
10177 VULKAN_HPP_NAMESPACE::DeviceMemory m_deviceMemory = {};
10178 AllocationCallbacks const * m_allocator = {};
10179 detail::DeviceDispatcher const * m_dispatcher = nullptr;
10180 };
10181
10182 template <>
10183 struct isVulkanRAIIHandleType<DeviceMemory>
10184 {
10185 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
10186 };
10187
10188 // wrapper class for handle VkDisplayKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkDisplayKHR.html
10189 class DisplayKHR
10190 {
10191 public:
10192 using CType = VkDisplayKHR;
10193 using CppType = VULKAN_HPP_NAMESPACE::DisplayKHR;
10194
10195 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eDisplayKHR;
10196 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eDisplayKHR;
10197
10198 public:
10199 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
10200 DisplayKHR( PhysicalDevice const & physicalDevice, int32_t drmFd, uint32_t connectorId )
10201 {
10202 *this = physicalDevice.getDrmDisplayEXT( drmFd, connectorId );
10203 }
10204 # endif
10205
10206 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
10207 # if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT )
10208 DisplayKHR( PhysicalDevice const & physicalDevice, Display & dpy, RROutput rrOutput )
10209 {
10210 *this = physicalDevice.getRandROutputDisplayEXT( dpy, rrOutput );
10211 }
10212 # endif /*VK_USE_PLATFORM_XLIB_XRANDR_EXT*/
10213 # endif
10214
10215 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
10216 # if defined( VK_USE_PLATFORM_WIN32_KHR )
10217 DisplayKHR( PhysicalDevice const & physicalDevice, uint32_t deviceRelativeId )
10218 {
10219 *this = physicalDevice.getWinrtDisplayNV( deviceRelativeId );
10220 }
10221 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
10222 # endif
10223
10224 DisplayKHR( PhysicalDevice const & physicalDevice, VkDisplayKHR display )
10225 : m_physicalDevice( physicalDevice ), m_displayKHR( display ), m_dispatcher( physicalDevice.getDispatcher() )
10226 {
10227 }
10228
10229 DisplayKHR( std::nullptr_t ) {}
10230
10231 ~DisplayKHR()
10232 {
10233 clear();
10234 }
10235
10236 DisplayKHR() = delete;
10237 DisplayKHR( DisplayKHR const & ) = delete;
10238
10239 DisplayKHR( DisplayKHR && rhs ) VULKAN_HPP_NOEXCEPT
10240 : m_physicalDevice( exchange( rhs.m_physicalDevice, {} ) )
10241 , m_displayKHR( exchange( rhs.m_displayKHR, {} ) )
10242 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
10243 {
10244 }
10245
10246 DisplayKHR & operator=( DisplayKHR const & ) = delete;
10247
10248 DisplayKHR & operator=( DisplayKHR && rhs ) VULKAN_HPP_NOEXCEPT
10249 {
10250 if ( this != &rhs )
10251 {
10252 std::swap( m_physicalDevice, rhs.m_physicalDevice );
10253 std::swap( m_displayKHR, rhs.m_displayKHR );
10254 std::swap( m_dispatcher, rhs.m_dispatcher );
10255 }
10256 return *this;
10257 }
10258
10259 VULKAN_HPP_NAMESPACE::DisplayKHR const & operator*() const & VULKAN_HPP_NOEXCEPT
10260 {
10261 return m_displayKHR;
10262 }
10263
10264 VULKAN_HPP_NAMESPACE::DisplayKHR const && operator*() const && VULKAN_HPP_NOEXCEPT
10265 {
10266 return std::move( m_displayKHR );
10267 }
10268
10269 operator VULKAN_HPP_NAMESPACE::DisplayKHR() const VULKAN_HPP_NOEXCEPT
10270 {
10271 return m_displayKHR;
10272 }
10273
10274 void clear() VULKAN_HPP_NOEXCEPT
10275 {
10276 if ( m_displayKHR )
10277 {
10278 getDispatcher()->vkReleaseDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( m_displayKHR ) );
10279 }
10280 m_physicalDevice = nullptr;
10281 m_displayKHR = nullptr;
10282 m_dispatcher = nullptr;
10283 }
10284
10285 VULKAN_HPP_NAMESPACE::DisplayKHR release()
10286 {
10287 m_physicalDevice = nullptr;
10288 m_dispatcher = nullptr;
10289 return exchange( m_displayKHR, nullptr );
10290 }
10291
10292 VULKAN_HPP_NAMESPACE::PhysicalDevice getPhysicalDevice() const
10293 {
10294 return m_physicalDevice;
10295 }
10296
10297 detail::InstanceDispatcher const * getDispatcher() const
10298 {
10299 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
10300 return m_dispatcher;
10301 }
10302
10303 void swap( DisplayKHR & rhs ) VULKAN_HPP_NOEXCEPT
10304 {
10305 std::swap( m_physicalDevice, rhs.m_physicalDevice );
10306 std::swap( m_displayKHR, rhs.m_displayKHR );
10307 std::swap( m_dispatcher, rhs.m_dispatcher );
10308 }
10309
10310 //=== VK_KHR_display ===
10311
10312 // wrapper function for command vkGetDisplayModePropertiesKHR, see
10313 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModePropertiesKHR.html
10314 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DisplayModePropertiesKHR>>::type getModeProperties() const;
10315
10316 // wrapper function for command vkCreateDisplayModeKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayModeKHR.html
10317 VULKAN_HPP_NODISCARD typename ResultValueType<DisplayModeKHR>::type
10318 createMode( DisplayModeCreateInfoKHR const & createInfo,
10319 Optional<AllocationCallbacks const> allocator = nullptr ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS;
10320
10321 //=== VK_KHR_get_display_properties2 ===
10322
10323 // wrapper function for command vkGetDisplayModeProperties2KHR, see
10324 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
10325 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DisplayModeProperties2KHR>>::type getModeProperties2() const;
10326
10327 // wrapper function for command vkGetDisplayModeProperties2KHR, see
10328 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
10329 template <typename StructureChain>
10330 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<StructureChain>>::type getModeProperties2() const;
10331
10332 # if defined( VK_USE_PLATFORM_WIN32_KHR )
10333 //=== VK_NV_acquire_winrt_display ===
10334
10335 // wrapper function for command vkAcquireWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireWinrtDisplayNV.html
10336 typename ResultValueType<void>::type acquireWinrtNV() const;
10337 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
10338
10339 private:
10340 VULKAN_HPP_NAMESPACE::PhysicalDevice m_physicalDevice = {};
10341 VULKAN_HPP_NAMESPACE::DisplayKHR m_displayKHR = {};
10342 detail::InstanceDispatcher const * m_dispatcher = nullptr;
10343 };
10344
10345 template <>
10346 struct isVulkanRAIIHandleType<DisplayKHR>
10347 {
10348 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
10349 };
10350
10351 class DisplayKHRs : public std::vector<DisplayKHR>
10352 {
10353 public:
10354 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
10355 DisplayKHRs( PhysicalDevice const & physicalDevice, uint32_t planeIndex )
10356 {
10357 *this = physicalDevice.getDisplayPlaneSupportedDisplaysKHR( planeIndex );
10358 }
10359 # endif
10360
10361 DisplayKHRs( std::nullptr_t ) {}
10362
10363 DisplayKHRs() = delete;
10364 DisplayKHRs( DisplayKHRs const & ) = delete;
10365 DisplayKHRs( DisplayKHRs && rhs ) = default;
10366 DisplayKHRs & operator=( DisplayKHRs const & ) = delete;
10367 DisplayKHRs & operator=( DisplayKHRs && rhs ) = default;
10368
10369 DisplayKHRs( std::vector<DisplayKHR> && rhs )
10370 {
10371 std::swap( *this, rhs );
10372 }
10373 };
10374
10375 // wrapper class for handle VkDisplayModeKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkDisplayModeKHR.html
10376 class DisplayModeKHR
10377 {
10378 public:
10379 using CType = VkDisplayModeKHR;
10380 using CppType = VULKAN_HPP_NAMESPACE::DisplayModeKHR;
10381
10382 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eDisplayModeKHR;
10383 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eDisplayModeKHR;
10384
10385 public:
10386 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
10387 DisplayModeKHR( DisplayKHR const & display, DisplayModeCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
10388 {
10389 *this = display.createMode( createInfo, allocator );
10390 }
10391 # endif
10392
10393 DisplayModeKHR( DisplayKHR const & display, VkDisplayModeKHR displayModeKHR )
10394 : m_physicalDevice( display.getPhysicalDevice() ), m_displayModeKHR( displayModeKHR ), m_dispatcher( display.getDispatcher() )
10395 {
10396 }
10397
10398 DisplayModeKHR( std::nullptr_t ) {}
10399
10400 ~DisplayModeKHR()
10401 {
10402 clear();
10403 }
10404
10405 DisplayModeKHR() = delete;
10406
10407 DisplayModeKHR( DisplayModeKHR const & rhs ) : m_displayModeKHR( rhs.m_displayModeKHR ), m_dispatcher( rhs.m_dispatcher ) {}
10408
10409 DisplayModeKHR( DisplayModeKHR && rhs ) VULKAN_HPP_NOEXCEPT
10410 : m_physicalDevice( exchange( rhs.m_physicalDevice, {} ) )
10411 , m_displayModeKHR( exchange( rhs.m_displayModeKHR, {} ) )
10412 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
10413 {
10414 }
10415
10416 DisplayModeKHR & operator=( DisplayModeKHR const & rhs )
10417 {
10418 m_displayModeKHR = rhs.m_displayModeKHR;
10419 m_dispatcher = rhs.m_dispatcher;
10420 return *this;
10421 }
10422
10423 DisplayModeKHR & operator=( DisplayModeKHR && rhs ) VULKAN_HPP_NOEXCEPT
10424 {
10425 if ( this != &rhs )
10426 {
10427 std::swap( m_physicalDevice, rhs.m_physicalDevice );
10428 std::swap( m_displayModeKHR, rhs.m_displayModeKHR );
10429 std::swap( m_dispatcher, rhs.m_dispatcher );
10430 }
10431 return *this;
10432 }
10433
10434 VULKAN_HPP_NAMESPACE::DisplayModeKHR const & operator*() const & VULKAN_HPP_NOEXCEPT
10435 {
10436 return m_displayModeKHR;
10437 }
10438
10439 VULKAN_HPP_NAMESPACE::DisplayModeKHR const && operator*() const && VULKAN_HPP_NOEXCEPT
10440 {
10441 return std::move( m_displayModeKHR );
10442 }
10443
10444 operator VULKAN_HPP_NAMESPACE::DisplayModeKHR() const VULKAN_HPP_NOEXCEPT
10445 {
10446 return m_displayModeKHR;
10447 }
10448
10449 void clear() VULKAN_HPP_NOEXCEPT
10450 {
10451 m_physicalDevice = nullptr;
10452 m_displayModeKHR = nullptr;
10453 m_dispatcher = nullptr;
10454 }
10455
10456 VULKAN_HPP_NAMESPACE::DisplayModeKHR release()
10457 {
10458 m_physicalDevice = nullptr;
10459 m_dispatcher = nullptr;
10460 return exchange( m_displayModeKHR, nullptr );
10461 }
10462
10463 detail::InstanceDispatcher const * getDispatcher() const
10464 {
10465 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
10466 return m_dispatcher;
10467 }
10468
10469 void swap( DisplayModeKHR & rhs ) VULKAN_HPP_NOEXCEPT
10470 {
10471 std::swap( m_physicalDevice, rhs.m_physicalDevice );
10472 std::swap( m_displayModeKHR, rhs.m_displayModeKHR );
10473 std::swap( m_dispatcher, rhs.m_dispatcher );
10474 }
10475
10476 //=== VK_KHR_display ===
10477
10478 // wrapper function for command vkGetDisplayPlaneCapabilitiesKHR, see
10479 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneCapabilitiesKHR.html
10480 VULKAN_HPP_NODISCARD typename ResultValueType<DisplayPlaneCapabilitiesKHR>::type getDisplayPlaneCapabilities( uint32_t planeIndex ) const;
10481
10482 private:
10483 VULKAN_HPP_NAMESPACE::PhysicalDevice m_physicalDevice = {};
10484 VULKAN_HPP_NAMESPACE::DisplayModeKHR m_displayModeKHR = {};
10485 detail::InstanceDispatcher const * m_dispatcher = nullptr;
10486 };
10487
10488 template <>
10489 struct isVulkanRAIIHandleType<DisplayModeKHR>
10490 {
10491 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
10492 };
10493
10494 // wrapper class for handle VkEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkEvent.html
10495 class Event
10496 {
10497 public:
10498 using CType = VkEvent;
10499 using CppType = VULKAN_HPP_NAMESPACE::Event;
10500
10501 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eEvent;
10502 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eEvent;
10503
10504 public:
10505 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
10506 Event( Device const & device, EventCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
10507 {
10508 *this = device.createEvent( createInfo, allocator );
10509 }
10510 # endif
10511
10512 Event( Device const & device, VkEvent event, Optional<AllocationCallbacks const> allocator = nullptr )
10513 : m_device( device ), m_event( event ), m_allocator( static_cast<const AllocationCallbacks *>( allocator ) ), m_dispatcher( device.getDispatcher() )
10514 {
10515 }
10516
10517 Event( std::nullptr_t ) {}
10518
10519 ~Event()
10520 {
10521 clear();
10522 }
10523
10524 Event() = delete;
10525 Event( Event const & ) = delete;
10526
10527 Event( Event && rhs ) VULKAN_HPP_NOEXCEPT
10528 : m_device( exchange( rhs.m_device, {} ) )
10529 , m_event( exchange( rhs.m_event, {} ) )
10530 , m_allocator( exchange( rhs.m_allocator, {} ) )
10531 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
10532 {
10533 }
10534
10535 Event & operator=( Event const & ) = delete;
10536
10537 Event & operator=( Event && rhs ) VULKAN_HPP_NOEXCEPT
10538 {
10539 if ( this != &rhs )
10540 {
10541 std::swap( m_device, rhs.m_device );
10542 std::swap( m_event, rhs.m_event );
10543 std::swap( m_allocator, rhs.m_allocator );
10544 std::swap( m_dispatcher, rhs.m_dispatcher );
10545 }
10546 return *this;
10547 }
10548
10549 VULKAN_HPP_NAMESPACE::Event const & operator*() const & VULKAN_HPP_NOEXCEPT
10550 {
10551 return m_event;
10552 }
10553
10554 VULKAN_HPP_NAMESPACE::Event const && operator*() const && VULKAN_HPP_NOEXCEPT
10555 {
10556 return std::move( m_event );
10557 }
10558
10559 operator VULKAN_HPP_NAMESPACE::Event() const VULKAN_HPP_NOEXCEPT
10560 {
10561 return m_event;
10562 }
10563
10564 void clear() VULKAN_HPP_NOEXCEPT
10565 {
10566 if ( m_event )
10567 {
10568 getDispatcher()->vkDestroyEvent(
10569 static_cast<VkDevice>( m_device ), static_cast<VkEvent>( m_event ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
10570 }
10571 m_device = nullptr;
10572 m_event = nullptr;
10573 m_allocator = nullptr;
10574 m_dispatcher = nullptr;
10575 }
10576
10577 VULKAN_HPP_NAMESPACE::Event release()
10578 {
10579 m_device = nullptr;
10580 m_allocator = nullptr;
10581 m_dispatcher = nullptr;
10582 return exchange( m_event, nullptr );
10583 }
10584
10585 VULKAN_HPP_NAMESPACE::Device getDevice() const
10586 {
10587 return m_device;
10588 }
10589
10590 detail::DeviceDispatcher const * getDispatcher() const
10591 {
10592 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
10593 return m_dispatcher;
10594 }
10595
10596 void swap( Event & rhs ) VULKAN_HPP_NOEXCEPT
10597 {
10598 std::swap( m_device, rhs.m_device );
10599 std::swap( m_event, rhs.m_event );
10600 std::swap( m_allocator, rhs.m_allocator );
10601 std::swap( m_dispatcher, rhs.m_dispatcher );
10602 }
10603
10604 //=== VK_VERSION_1_0 ===
10605
10606 // wrapper function for command vkGetEventStatus, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEventStatus.html
10607 VULKAN_HPP_NODISCARD Result getStatus() const;
10608
10609 // wrapper function for command vkSetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetEvent.html
10610 typename ResultValueType<void>::type set() const;
10611
10612 // wrapper function for command vkResetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetEvent.html
10613 typename ResultValueType<void>::type reset() const;
10614
10615 private:
10616 VULKAN_HPP_NAMESPACE::Device m_device = {};
10617 VULKAN_HPP_NAMESPACE::Event m_event = {};
10618 AllocationCallbacks const * m_allocator = {};
10619 detail::DeviceDispatcher const * m_dispatcher = nullptr;
10620 };
10621
10622 template <>
10623 struct isVulkanRAIIHandleType<Event>
10624 {
10625 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
10626 };
10627
10628 // wrapper class for handle VkExternalComputeQueueNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkExternalComputeQueueNV.html
10629 class ExternalComputeQueueNV
10630 {
10631 public:
10632 using CType = VkExternalComputeQueueNV;
10633 using CppType = VULKAN_HPP_NAMESPACE::ExternalComputeQueueNV;
10634
10635 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eExternalComputeQueueNV;
10636 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
10637
10638 public:
10639 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
10640 ExternalComputeQueueNV( Device const & device,
10641 ExternalComputeQueueCreateInfoNV const & createInfo,
10642 Optional<AllocationCallbacks const> allocator = nullptr )
10643 {
10644 *this = device.createExternalComputeQueueNV( createInfo, allocator );
10645 }
10646 # endif
10647
10648 ExternalComputeQueueNV( Device const & device, VkExternalComputeQueueNV externalQueue, Optional<AllocationCallbacks const> allocator = nullptr )
10649 : m_device( device )
10650 , m_externalComputeQueueNV( externalQueue )
10651 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
10652 , m_dispatcher( device.getDispatcher() )
10653 {
10654 }
10655
10656 ExternalComputeQueueNV( std::nullptr_t ) {}
10657
10658 ~ExternalComputeQueueNV()
10659 {
10660 clear();
10661 }
10662
10663 ExternalComputeQueueNV() = delete;
10664 ExternalComputeQueueNV( ExternalComputeQueueNV const & ) = delete;
10665
10666 ExternalComputeQueueNV( ExternalComputeQueueNV && rhs ) VULKAN_HPP_NOEXCEPT
10667 : m_device( exchange( rhs.m_device, {} ) )
10668 , m_externalComputeQueueNV( exchange( rhs.m_externalComputeQueueNV, {} ) )
10669 , m_allocator( exchange( rhs.m_allocator, {} ) )
10670 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
10671 {
10672 }
10673
10674 ExternalComputeQueueNV & operator=( ExternalComputeQueueNV const & ) = delete;
10675
10676 ExternalComputeQueueNV & operator=( ExternalComputeQueueNV && rhs ) VULKAN_HPP_NOEXCEPT
10677 {
10678 if ( this != &rhs )
10679 {
10680 std::swap( m_device, rhs.m_device );
10681 std::swap( m_externalComputeQueueNV, rhs.m_externalComputeQueueNV );
10682 std::swap( m_allocator, rhs.m_allocator );
10683 std::swap( m_dispatcher, rhs.m_dispatcher );
10684 }
10685 return *this;
10686 }
10687
10688 VULKAN_HPP_NAMESPACE::ExternalComputeQueueNV const & operator*() const & VULKAN_HPP_NOEXCEPT
10689 {
10690 return m_externalComputeQueueNV;
10691 }
10692
10693 VULKAN_HPP_NAMESPACE::ExternalComputeQueueNV const && operator*() const && VULKAN_HPP_NOEXCEPT
10694 {
10695 return std::move( m_externalComputeQueueNV );
10696 }
10697
10698 operator VULKAN_HPP_NAMESPACE::ExternalComputeQueueNV() const VULKAN_HPP_NOEXCEPT
10699 {
10700 return m_externalComputeQueueNV;
10701 }
10702
10703 void clear() VULKAN_HPP_NOEXCEPT
10704 {
10705 if ( m_externalComputeQueueNV )
10706 {
10707 getDispatcher()->vkDestroyExternalComputeQueueNV( static_cast<VkDevice>( m_device ),
10708 static_cast<VkExternalComputeQueueNV>( m_externalComputeQueueNV ),
10709 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
10710 }
10711 m_device = nullptr;
10712 m_externalComputeQueueNV = nullptr;
10713 m_allocator = nullptr;
10714 m_dispatcher = nullptr;
10715 }
10716
10717 VULKAN_HPP_NAMESPACE::ExternalComputeQueueNV release()
10718 {
10719 m_device = nullptr;
10720 m_allocator = nullptr;
10721 m_dispatcher = nullptr;
10722 return exchange( m_externalComputeQueueNV, nullptr );
10723 }
10724
10725 VULKAN_HPP_NAMESPACE::Device getDevice() const
10726 {
10727 return m_device;
10728 }
10729
10730 detail::DeviceDispatcher const * getDispatcher() const
10731 {
10732 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
10733 return m_dispatcher;
10734 }
10735
10736 void swap( ExternalComputeQueueNV & rhs ) VULKAN_HPP_NOEXCEPT
10737 {
10738 std::swap( m_device, rhs.m_device );
10739 std::swap( m_externalComputeQueueNV, rhs.m_externalComputeQueueNV );
10740 std::swap( m_allocator, rhs.m_allocator );
10741 std::swap( m_dispatcher, rhs.m_dispatcher );
10742 }
10743
10744 //=== VK_NV_external_compute_queue ===
10745
10746 // wrapper function for command vkGetExternalComputeQueueDataNV, see
10747 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExternalComputeQueueDataNV.html
10748 template <typename DataType>
10749 VULKAN_HPP_NODISCARD std::pair<ExternalComputeQueueDataParamsNV, DataType> getData() const VULKAN_HPP_NOEXCEPT;
10750
10751 private:
10752 VULKAN_HPP_NAMESPACE::Device m_device = {};
10753 VULKAN_HPP_NAMESPACE::ExternalComputeQueueNV m_externalComputeQueueNV = {};
10754 AllocationCallbacks const * m_allocator = {};
10755 detail::DeviceDispatcher const * m_dispatcher = nullptr;
10756 };
10757
10758 template <>
10759 struct isVulkanRAIIHandleType<ExternalComputeQueueNV>
10760 {
10761 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
10762 };
10763
10764 // wrapper class for handle VkFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkFence.html
10765 class Fence
10766 {
10767 public:
10768 using CType = VkFence;
10769 using CppType = VULKAN_HPP_NAMESPACE::Fence;
10770
10771 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eFence;
10772 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eFence;
10773
10774 public:
10775 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
10776 Fence( Device const & device, FenceCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
10777 {
10778 *this = device.createFence( createInfo, allocator );
10779 }
10780 # endif
10781
10782 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
10783 Fence( Device const & device, DeviceEventInfoEXT const & deviceEventInfo, Optional<AllocationCallbacks const> allocator = nullptr )
10784 {
10785 *this = device.registerEventEXT( deviceEventInfo, allocator );
10786 }
10787 # endif
10788
10789 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
10790 Fence( Device const & device,
10791 DisplayKHR const & display,
10792 DisplayEventInfoEXT const & displayEventInfo,
10793 Optional<AllocationCallbacks const> allocator = nullptr )
10794 {
10795 *this = device.registerDisplayEventEXT( display, displayEventInfo, allocator );
10796 }
10797 # endif
10798
10799 Fence( Device const & device, VkFence fence, Optional<AllocationCallbacks const> allocator = nullptr )
10800 : m_device( device ), m_fence( fence ), m_allocator( static_cast<const AllocationCallbacks *>( allocator ) ), m_dispatcher( device.getDispatcher() )
10801 {
10802 }
10803
10804 Fence( std::nullptr_t ) {}
10805
10806 ~Fence()
10807 {
10808 clear();
10809 }
10810
10811 Fence() = delete;
10812 Fence( Fence const & ) = delete;
10813
10814 Fence( Fence && rhs ) VULKAN_HPP_NOEXCEPT
10815 : m_device( exchange( rhs.m_device, {} ) )
10816 , m_fence( exchange( rhs.m_fence, {} ) )
10817 , m_allocator( exchange( rhs.m_allocator, {} ) )
10818 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
10819 {
10820 }
10821
10822 Fence & operator=( Fence const & ) = delete;
10823
10824 Fence & operator=( Fence && rhs ) VULKAN_HPP_NOEXCEPT
10825 {
10826 if ( this != &rhs )
10827 {
10828 std::swap( m_device, rhs.m_device );
10829 std::swap( m_fence, rhs.m_fence );
10830 std::swap( m_allocator, rhs.m_allocator );
10831 std::swap( m_dispatcher, rhs.m_dispatcher );
10832 }
10833 return *this;
10834 }
10835
10836 VULKAN_HPP_NAMESPACE::Fence const & operator*() const & VULKAN_HPP_NOEXCEPT
10837 {
10838 return m_fence;
10839 }
10840
10841 VULKAN_HPP_NAMESPACE::Fence const && operator*() const && VULKAN_HPP_NOEXCEPT
10842 {
10843 return std::move( m_fence );
10844 }
10845
10846 operator VULKAN_HPP_NAMESPACE::Fence() const VULKAN_HPP_NOEXCEPT
10847 {
10848 return m_fence;
10849 }
10850
10851 void clear() VULKAN_HPP_NOEXCEPT
10852 {
10853 if ( m_fence )
10854 {
10855 getDispatcher()->vkDestroyFence(
10856 static_cast<VkDevice>( m_device ), static_cast<VkFence>( m_fence ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
10857 }
10858 m_device = nullptr;
10859 m_fence = nullptr;
10860 m_allocator = nullptr;
10861 m_dispatcher = nullptr;
10862 }
10863
10864 VULKAN_HPP_NAMESPACE::Fence release()
10865 {
10866 m_device = nullptr;
10867 m_allocator = nullptr;
10868 m_dispatcher = nullptr;
10869 return exchange( m_fence, nullptr );
10870 }
10871
10872 VULKAN_HPP_NAMESPACE::Device getDevice() const
10873 {
10874 return m_device;
10875 }
10876
10877 detail::DeviceDispatcher const * getDispatcher() const
10878 {
10879 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
10880 return m_dispatcher;
10881 }
10882
10883 void swap( Fence & rhs ) VULKAN_HPP_NOEXCEPT
10884 {
10885 std::swap( m_device, rhs.m_device );
10886 std::swap( m_fence, rhs.m_fence );
10887 std::swap( m_allocator, rhs.m_allocator );
10888 std::swap( m_dispatcher, rhs.m_dispatcher );
10889 }
10890
10891 //=== VK_VERSION_1_0 ===
10892
10893 // wrapper function for command vkGetFenceStatus, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceStatus.html
10894 VULKAN_HPP_NODISCARD Result getStatus() const;
10895
10896 private:
10897 VULKAN_HPP_NAMESPACE::Device m_device = {};
10898 VULKAN_HPP_NAMESPACE::Fence m_fence = {};
10899 AllocationCallbacks const * m_allocator = {};
10900 detail::DeviceDispatcher const * m_dispatcher = nullptr;
10901 };
10902
10903 template <>
10904 struct isVulkanRAIIHandleType<Fence>
10905 {
10906 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
10907 };
10908
10909 // wrapper class for handle VkFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkFramebuffer.html
10910 class Framebuffer
10911 {
10912 public:
10913 using CType = VkFramebuffer;
10914 using CppType = VULKAN_HPP_NAMESPACE::Framebuffer;
10915
10916 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eFramebuffer;
10917 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eFramebuffer;
10918
10919 public:
10920 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
10921 Framebuffer( Device const & device, FramebufferCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
10922 {
10923 *this = device.createFramebuffer( createInfo, allocator );
10924 }
10925 # endif
10926
10927 Framebuffer( Device const & device, VkFramebuffer framebuffer, Optional<AllocationCallbacks const> allocator = nullptr )
10928 : m_device( device )
10929 , m_framebuffer( framebuffer )
10930 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
10931 , m_dispatcher( device.getDispatcher() )
10932 {
10933 }
10934
10935 Framebuffer( std::nullptr_t ) {}
10936
10937 ~Framebuffer()
10938 {
10939 clear();
10940 }
10941
10942 Framebuffer() = delete;
10943 Framebuffer( Framebuffer const & ) = delete;
10944
10945 Framebuffer( Framebuffer && rhs ) VULKAN_HPP_NOEXCEPT
10946 : m_device( exchange( rhs.m_device, {} ) )
10947 , m_framebuffer( exchange( rhs.m_framebuffer, {} ) )
10948 , m_allocator( exchange( rhs.m_allocator, {} ) )
10949 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
10950 {
10951 }
10952
10953 Framebuffer & operator=( Framebuffer const & ) = delete;
10954
10955 Framebuffer & operator=( Framebuffer && rhs ) VULKAN_HPP_NOEXCEPT
10956 {
10957 if ( this != &rhs )
10958 {
10959 std::swap( m_device, rhs.m_device );
10960 std::swap( m_framebuffer, rhs.m_framebuffer );
10961 std::swap( m_allocator, rhs.m_allocator );
10962 std::swap( m_dispatcher, rhs.m_dispatcher );
10963 }
10964 return *this;
10965 }
10966
10967 VULKAN_HPP_NAMESPACE::Framebuffer const & operator*() const & VULKAN_HPP_NOEXCEPT
10968 {
10969 return m_framebuffer;
10970 }
10971
10972 VULKAN_HPP_NAMESPACE::Framebuffer const && operator*() const && VULKAN_HPP_NOEXCEPT
10973 {
10974 return std::move( m_framebuffer );
10975 }
10976
10977 operator VULKAN_HPP_NAMESPACE::Framebuffer() const VULKAN_HPP_NOEXCEPT
10978 {
10979 return m_framebuffer;
10980 }
10981
10982 void clear() VULKAN_HPP_NOEXCEPT
10983 {
10984 if ( m_framebuffer )
10985 {
10986 getDispatcher()->vkDestroyFramebuffer(
10987 static_cast<VkDevice>( m_device ), static_cast<VkFramebuffer>( m_framebuffer ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
10988 }
10989 m_device = nullptr;
10990 m_framebuffer = nullptr;
10991 m_allocator = nullptr;
10992 m_dispatcher = nullptr;
10993 }
10994
10995 VULKAN_HPP_NAMESPACE::Framebuffer release()
10996 {
10997 m_device = nullptr;
10998 m_allocator = nullptr;
10999 m_dispatcher = nullptr;
11000 return exchange( m_framebuffer, nullptr );
11001 }
11002
11003 VULKAN_HPP_NAMESPACE::Device getDevice() const
11004 {
11005 return m_device;
11006 }
11007
11008 detail::DeviceDispatcher const * getDispatcher() const
11009 {
11010 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
11011 return m_dispatcher;
11012 }
11013
11014 void swap( Framebuffer & rhs ) VULKAN_HPP_NOEXCEPT
11015 {
11016 std::swap( m_device, rhs.m_device );
11017 std::swap( m_framebuffer, rhs.m_framebuffer );
11018 std::swap( m_allocator, rhs.m_allocator );
11019 std::swap( m_dispatcher, rhs.m_dispatcher );
11020 }
11021
11022 //=== VK_QCOM_tile_properties ===
11023
11024 // wrapper function for command vkGetFramebufferTilePropertiesQCOM, see
11025 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFramebufferTilePropertiesQCOM.html
11026 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<TilePropertiesQCOM>>::type getTilePropertiesQCOM() const;
11027
11028 private:
11029 VULKAN_HPP_NAMESPACE::Device m_device = {};
11030 VULKAN_HPP_NAMESPACE::Framebuffer m_framebuffer = {};
11031 AllocationCallbacks const * m_allocator = {};
11032 detail::DeviceDispatcher const * m_dispatcher = nullptr;
11033 };
11034
11035 template <>
11036 struct isVulkanRAIIHandleType<Framebuffer>
11037 {
11038 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
11039 };
11040
11041 // wrapper class for handle VkImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkImage.html
11042 class Image
11043 {
11044 public:
11045 using CType = VkImage;
11046 using CppType = VULKAN_HPP_NAMESPACE::Image;
11047
11048 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eImage;
11049 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eImage;
11050
11051 public:
11052 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
11053 Image( Device const & device, ImageCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
11054 {
11055 *this = device.createImage( createInfo, allocator );
11056 }
11057 # endif
11058
11059 Image( Device const & device, VkImage image, Optional<AllocationCallbacks const> allocator = nullptr )
11060 : m_device( device ), m_image( image ), m_allocator( static_cast<const AllocationCallbacks *>( allocator ) ), m_dispatcher( device.getDispatcher() )
11061 {
11062 }
11063
11064 Image( std::nullptr_t ) {}
11065
11066 ~Image()
11067 {
11068 clear();
11069 }
11070
11071 Image() = delete;
11072 Image( Image const & ) = delete;
11073
11074 Image( Image && rhs ) VULKAN_HPP_NOEXCEPT
11075 : m_device( exchange( rhs.m_device, {} ) )
11076 , m_image( exchange( rhs.m_image, {} ) )
11077 , m_allocator( exchange( rhs.m_allocator, {} ) )
11078 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
11079 {
11080 }
11081
11082 Image & operator=( Image const & ) = delete;
11083
11084 Image & operator=( Image && rhs ) VULKAN_HPP_NOEXCEPT
11085 {
11086 if ( this != &rhs )
11087 {
11088 std::swap( m_device, rhs.m_device );
11089 std::swap( m_image, rhs.m_image );
11090 std::swap( m_allocator, rhs.m_allocator );
11091 std::swap( m_dispatcher, rhs.m_dispatcher );
11092 }
11093 return *this;
11094 }
11095
11096 VULKAN_HPP_NAMESPACE::Image const & operator*() const & VULKAN_HPP_NOEXCEPT
11097 {
11098 return m_image;
11099 }
11100
11101 VULKAN_HPP_NAMESPACE::Image const && operator*() const && VULKAN_HPP_NOEXCEPT
11102 {
11103 return std::move( m_image );
11104 }
11105
11106 operator VULKAN_HPP_NAMESPACE::Image() const VULKAN_HPP_NOEXCEPT
11107 {
11108 return m_image;
11109 }
11110
11111 void clear() VULKAN_HPP_NOEXCEPT
11112 {
11113 if ( m_image )
11114 {
11115 getDispatcher()->vkDestroyImage(
11116 static_cast<VkDevice>( m_device ), static_cast<VkImage>( m_image ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
11117 }
11118 m_device = nullptr;
11119 m_image = nullptr;
11120 m_allocator = nullptr;
11121 m_dispatcher = nullptr;
11122 }
11123
11124 VULKAN_HPP_NAMESPACE::Image release()
11125 {
11126 m_device = nullptr;
11127 m_allocator = nullptr;
11128 m_dispatcher = nullptr;
11129 return exchange( m_image, nullptr );
11130 }
11131
11132 VULKAN_HPP_NAMESPACE::Device getDevice() const
11133 {
11134 return m_device;
11135 }
11136
11137 detail::DeviceDispatcher const * getDispatcher() const
11138 {
11139 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
11140 return m_dispatcher;
11141 }
11142
11143 void swap( Image & rhs ) VULKAN_HPP_NOEXCEPT
11144 {
11145 std::swap( m_device, rhs.m_device );
11146 std::swap( m_image, rhs.m_image );
11147 std::swap( m_allocator, rhs.m_allocator );
11148 std::swap( m_dispatcher, rhs.m_dispatcher );
11149 }
11150
11151 //=== VK_VERSION_1_0 ===
11152
11153 // wrapper function for command vkBindImageMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory.html
11154 typename ResultValueType<void>::type bindMemory( VULKAN_HPP_NAMESPACE::DeviceMemory memory, DeviceSize memoryOffset ) const;
11155
11156 // wrapper function for command vkGetImageMemoryRequirements, see
11157 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements.html
11158 VULKAN_HPP_NODISCARD MemoryRequirements getMemoryRequirements() const VULKAN_HPP_NOEXCEPT;
11159
11160 // wrapper function for command vkGetImageSparseMemoryRequirements, see
11161 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements.html
11162 VULKAN_HPP_NODISCARD std::vector<SparseImageMemoryRequirements> getSparseMemoryRequirements() const;
11163
11164 // wrapper function for command vkGetImageSubresourceLayout, see
11165 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout.html
11166 VULKAN_HPP_NODISCARD SubresourceLayout getSubresourceLayout( ImageSubresource const & subresource ) const VULKAN_HPP_NOEXCEPT;
11167
11168 //=== VK_VERSION_1_4 ===
11169
11170 // wrapper function for command vkGetImageSubresourceLayout2, see
11171 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2.html
11172 VULKAN_HPP_NODISCARD SubresourceLayout2 getSubresourceLayout2( ImageSubresource2 const & subresource ) const VULKAN_HPP_NOEXCEPT;
11173
11174 // wrapper function for command vkGetImageSubresourceLayout2, see
11175 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2.html
11176 template <typename X, typename Y, typename... Z>
11177 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getSubresourceLayout2( ImageSubresource2 const & subresource ) const VULKAN_HPP_NOEXCEPT;
11178
11179 //=== VK_EXT_image_drm_format_modifier ===
11180
11181 // wrapper function for command vkGetImageDrmFormatModifierPropertiesEXT, see
11182 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageDrmFormatModifierPropertiesEXT.html
11183 VULKAN_HPP_NODISCARD typename ResultValueType<ImageDrmFormatModifierPropertiesEXT>::type getDrmFormatModifierPropertiesEXT() const;
11184
11185 //=== VK_EXT_host_image_copy ===
11186
11187 // wrapper function for command vkGetImageSubresourceLayout2EXT, see
11188 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2EXT.html
11189 VULKAN_HPP_NODISCARD SubresourceLayout2 getSubresourceLayout2EXT( ImageSubresource2 const & subresource ) const VULKAN_HPP_NOEXCEPT;
11190
11191 // wrapper function for command vkGetImageSubresourceLayout2EXT, see
11192 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2EXT.html
11193 template <typename X, typename Y, typename... Z>
11194 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getSubresourceLayout2EXT( ImageSubresource2 const & subresource ) const VULKAN_HPP_NOEXCEPT;
11195
11196 //=== VK_KHR_maintenance5 ===
11197
11198 // wrapper function for command vkGetImageSubresourceLayout2KHR, see
11199 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2KHR.html
11200 VULKAN_HPP_NODISCARD SubresourceLayout2 getSubresourceLayout2KHR( ImageSubresource2 const & subresource ) const VULKAN_HPP_NOEXCEPT;
11201
11202 // wrapper function for command vkGetImageSubresourceLayout2KHR, see
11203 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2KHR.html
11204 template <typename X, typename Y, typename... Z>
11205 VULKAN_HPP_NODISCARD StructureChain<X, Y, Z...> getSubresourceLayout2KHR( ImageSubresource2 const & subresource ) const VULKAN_HPP_NOEXCEPT;
11206
11207 protected:
11208 Image( VULKAN_HPP_NAMESPACE::Device device,
11209 VULKAN_HPP_NAMESPACE::Image image,
11210 AllocationCallbacks const * allocator,
11211 detail::DeviceDispatcher const * dispatcher ) VULKAN_HPP_NOEXCEPT
11212 : m_device( exchange( device, {} ) )
11213 , m_image( exchange( image, {} ) )
11214 , m_allocator( exchange( allocator, {} ) )
11215 , m_dispatcher( exchange( dispatcher, nullptr ) )
11216 {
11217 }
11218
11219 private:
11220 VULKAN_HPP_NAMESPACE::Device m_device = {};
11221 VULKAN_HPP_NAMESPACE::Image m_image = {};
11222 AllocationCallbacks const * m_allocator = {};
11223 detail::DeviceDispatcher const * m_dispatcher = nullptr;
11224 };
11225
11226 template <>
11227 struct isVulkanRAIIHandleType<Image>
11228 {
11229 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
11230 };
11231
11232 // wrapper class for handle VkImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkImageView.html
11233 class ImageView
11234 {
11235 public:
11236 using CType = VkImageView;
11237 using CppType = VULKAN_HPP_NAMESPACE::ImageView;
11238
11239 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eImageView;
11240 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eImageView;
11241
11242 public:
11243 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
11244 ImageView( Device const & device, ImageViewCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
11245 {
11246 *this = device.createImageView( createInfo, allocator );
11247 }
11248 # endif
11249
11250 ImageView( Device const & device, VkImageView imageView, Optional<AllocationCallbacks const> allocator = nullptr )
11251 : m_device( device )
11252 , m_imageView( imageView )
11253 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
11254 , m_dispatcher( device.getDispatcher() )
11255 {
11256 }
11257
11258 ImageView( std::nullptr_t ) {}
11259
11260 ~ImageView()
11261 {
11262 clear();
11263 }
11264
11265 ImageView() = delete;
11266 ImageView( ImageView const & ) = delete;
11267
11268 ImageView( ImageView && rhs ) VULKAN_HPP_NOEXCEPT
11269 : m_device( exchange( rhs.m_device, {} ) )
11270 , m_imageView( exchange( rhs.m_imageView, {} ) )
11271 , m_allocator( exchange( rhs.m_allocator, {} ) )
11272 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
11273 {
11274 }
11275
11276 ImageView & operator=( ImageView const & ) = delete;
11277
11278 ImageView & operator=( ImageView && rhs ) VULKAN_HPP_NOEXCEPT
11279 {
11280 if ( this != &rhs )
11281 {
11282 std::swap( m_device, rhs.m_device );
11283 std::swap( m_imageView, rhs.m_imageView );
11284 std::swap( m_allocator, rhs.m_allocator );
11285 std::swap( m_dispatcher, rhs.m_dispatcher );
11286 }
11287 return *this;
11288 }
11289
11290 VULKAN_HPP_NAMESPACE::ImageView const & operator*() const & VULKAN_HPP_NOEXCEPT
11291 {
11292 return m_imageView;
11293 }
11294
11295 VULKAN_HPP_NAMESPACE::ImageView const && operator*() const && VULKAN_HPP_NOEXCEPT
11296 {
11297 return std::move( m_imageView );
11298 }
11299
11300 operator VULKAN_HPP_NAMESPACE::ImageView() const VULKAN_HPP_NOEXCEPT
11301 {
11302 return m_imageView;
11303 }
11304
11305 void clear() VULKAN_HPP_NOEXCEPT
11306 {
11307 if ( m_imageView )
11308 {
11309 getDispatcher()->vkDestroyImageView(
11310 static_cast<VkDevice>( m_device ), static_cast<VkImageView>( m_imageView ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
11311 }
11312 m_device = nullptr;
11313 m_imageView = nullptr;
11314 m_allocator = nullptr;
11315 m_dispatcher = nullptr;
11316 }
11317
11318 VULKAN_HPP_NAMESPACE::ImageView release()
11319 {
11320 m_device = nullptr;
11321 m_allocator = nullptr;
11322 m_dispatcher = nullptr;
11323 return exchange( m_imageView, nullptr );
11324 }
11325
11326 VULKAN_HPP_NAMESPACE::Device getDevice() const
11327 {
11328 return m_device;
11329 }
11330
11331 detail::DeviceDispatcher const * getDispatcher() const
11332 {
11333 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
11334 return m_dispatcher;
11335 }
11336
11337 void swap( ImageView & rhs ) VULKAN_HPP_NOEXCEPT
11338 {
11339 std::swap( m_device, rhs.m_device );
11340 std::swap( m_imageView, rhs.m_imageView );
11341 std::swap( m_allocator, rhs.m_allocator );
11342 std::swap( m_dispatcher, rhs.m_dispatcher );
11343 }
11344
11345 //=== VK_NVX_image_view_handle ===
11346
11347 // wrapper function for command vkGetImageViewAddressNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewAddressNVX.html
11348 VULKAN_HPP_NODISCARD typename ResultValueType<ImageViewAddressPropertiesNVX>::type getAddressNVX() const;
11349
11350 private:
11351 VULKAN_HPP_NAMESPACE::Device m_device = {};
11352 VULKAN_HPP_NAMESPACE::ImageView m_imageView = {};
11353 AllocationCallbacks const * m_allocator = {};
11354 detail::DeviceDispatcher const * m_dispatcher = nullptr;
11355 };
11356
11357 template <>
11358 struct isVulkanRAIIHandleType<ImageView>
11359 {
11360 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
11361 };
11362
11363 // wrapper class for handle VkIndirectCommandsLayoutEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkIndirectCommandsLayoutEXT.html
11364 class IndirectCommandsLayoutEXT
11365 {
11366 public:
11367 using CType = VkIndirectCommandsLayoutEXT;
11368 using CppType = VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutEXT;
11369
11370 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eIndirectCommandsLayoutEXT;
11371 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
11372
11373 public:
11374 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
11375 IndirectCommandsLayoutEXT( Device const & device,
11376 IndirectCommandsLayoutCreateInfoEXT const & createInfo,
11377 Optional<AllocationCallbacks const> allocator = nullptr )
11378 {
11379 *this = device.createIndirectCommandsLayoutEXT( createInfo, allocator );
11380 }
11381 # endif
11382
11383 IndirectCommandsLayoutEXT( Device const & device,
11384 VkIndirectCommandsLayoutEXT indirectCommandsLayout,
11385 Optional<AllocationCallbacks const> allocator = nullptr )
11386 : m_device( device )
11387 , m_indirectCommandsLayoutEXT( indirectCommandsLayout )
11388 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
11389 , m_dispatcher( device.getDispatcher() )
11390 {
11391 }
11392
11393 IndirectCommandsLayoutEXT( std::nullptr_t ) {}
11394
11395 ~IndirectCommandsLayoutEXT()
11396 {
11397 clear();
11398 }
11399
11400 IndirectCommandsLayoutEXT() = delete;
11401 IndirectCommandsLayoutEXT( IndirectCommandsLayoutEXT const & ) = delete;
11402
11403 IndirectCommandsLayoutEXT( IndirectCommandsLayoutEXT && rhs ) VULKAN_HPP_NOEXCEPT
11404 : m_device( exchange( rhs.m_device, {} ) )
11405 , m_indirectCommandsLayoutEXT( exchange( rhs.m_indirectCommandsLayoutEXT, {} ) )
11406 , m_allocator( exchange( rhs.m_allocator, {} ) )
11407 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
11408 {
11409 }
11410
11411 IndirectCommandsLayoutEXT & operator=( IndirectCommandsLayoutEXT const & ) = delete;
11412
11413 IndirectCommandsLayoutEXT & operator=( IndirectCommandsLayoutEXT && rhs ) VULKAN_HPP_NOEXCEPT
11414 {
11415 if ( this != &rhs )
11416 {
11417 std::swap( m_device, rhs.m_device );
11418 std::swap( m_indirectCommandsLayoutEXT, rhs.m_indirectCommandsLayoutEXT );
11419 std::swap( m_allocator, rhs.m_allocator );
11420 std::swap( m_dispatcher, rhs.m_dispatcher );
11421 }
11422 return *this;
11423 }
11424
11425 VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutEXT const & operator*() const & VULKAN_HPP_NOEXCEPT
11426 {
11427 return m_indirectCommandsLayoutEXT;
11428 }
11429
11430 VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutEXT const && operator*() const && VULKAN_HPP_NOEXCEPT
11431 {
11432 return std::move( m_indirectCommandsLayoutEXT );
11433 }
11434
11435 operator VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutEXT() const VULKAN_HPP_NOEXCEPT
11436 {
11437 return m_indirectCommandsLayoutEXT;
11438 }
11439
11440 void clear() VULKAN_HPP_NOEXCEPT
11441 {
11442 if ( m_indirectCommandsLayoutEXT )
11443 {
11444 getDispatcher()->vkDestroyIndirectCommandsLayoutEXT( static_cast<VkDevice>( m_device ),
11445 static_cast<VkIndirectCommandsLayoutEXT>( m_indirectCommandsLayoutEXT ),
11446 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
11447 }
11448 m_device = nullptr;
11449 m_indirectCommandsLayoutEXT = nullptr;
11450 m_allocator = nullptr;
11451 m_dispatcher = nullptr;
11452 }
11453
11454 VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutEXT release()
11455 {
11456 m_device = nullptr;
11457 m_allocator = nullptr;
11458 m_dispatcher = nullptr;
11459 return exchange( m_indirectCommandsLayoutEXT, nullptr );
11460 }
11461
11462 VULKAN_HPP_NAMESPACE::Device getDevice() const
11463 {
11464 return m_device;
11465 }
11466
11467 detail::DeviceDispatcher const * getDispatcher() const
11468 {
11469 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
11470 return m_dispatcher;
11471 }
11472
11473 void swap( IndirectCommandsLayoutEXT & rhs ) VULKAN_HPP_NOEXCEPT
11474 {
11475 std::swap( m_device, rhs.m_device );
11476 std::swap( m_indirectCommandsLayoutEXT, rhs.m_indirectCommandsLayoutEXT );
11477 std::swap( m_allocator, rhs.m_allocator );
11478 std::swap( m_dispatcher, rhs.m_dispatcher );
11479 }
11480
11481 private:
11482 VULKAN_HPP_NAMESPACE::Device m_device = {};
11483 VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutEXT m_indirectCommandsLayoutEXT = {};
11484 AllocationCallbacks const * m_allocator = {};
11485 detail::DeviceDispatcher const * m_dispatcher = nullptr;
11486 };
11487
11488 template <>
11489 struct isVulkanRAIIHandleType<IndirectCommandsLayoutEXT>
11490 {
11491 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
11492 };
11493
11494 // wrapper class for handle VkIndirectCommandsLayoutNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkIndirectCommandsLayoutNV.html
11495 class IndirectCommandsLayoutNV
11496 {
11497 public:
11498 using CType = VkIndirectCommandsLayoutNV;
11499 using CppType = VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutNV;
11500
11501 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eIndirectCommandsLayoutNV;
11502 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
11503
11504 public:
11505 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
11506 IndirectCommandsLayoutNV( Device const & device,
11507 IndirectCommandsLayoutCreateInfoNV const & createInfo,
11508 Optional<AllocationCallbacks const> allocator = nullptr )
11509 {
11510 *this = device.createIndirectCommandsLayoutNV( createInfo, allocator );
11511 }
11512 # endif
11513
11514 IndirectCommandsLayoutNV( Device const & device,
11515 VkIndirectCommandsLayoutNV indirectCommandsLayout,
11516 Optional<AllocationCallbacks const> allocator = nullptr )
11517 : m_device( device )
11518 , m_indirectCommandsLayoutNV( indirectCommandsLayout )
11519 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
11520 , m_dispatcher( device.getDispatcher() )
11521 {
11522 }
11523
11524 IndirectCommandsLayoutNV( std::nullptr_t ) {}
11525
11526 ~IndirectCommandsLayoutNV()
11527 {
11528 clear();
11529 }
11530
11531 IndirectCommandsLayoutNV() = delete;
11532 IndirectCommandsLayoutNV( IndirectCommandsLayoutNV const & ) = delete;
11533
11534 IndirectCommandsLayoutNV( IndirectCommandsLayoutNV && rhs ) VULKAN_HPP_NOEXCEPT
11535 : m_device( exchange( rhs.m_device, {} ) )
11536 , m_indirectCommandsLayoutNV( exchange( rhs.m_indirectCommandsLayoutNV, {} ) )
11537 , m_allocator( exchange( rhs.m_allocator, {} ) )
11538 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
11539 {
11540 }
11541
11542 IndirectCommandsLayoutNV & operator=( IndirectCommandsLayoutNV const & ) = delete;
11543
11544 IndirectCommandsLayoutNV & operator=( IndirectCommandsLayoutNV && rhs ) VULKAN_HPP_NOEXCEPT
11545 {
11546 if ( this != &rhs )
11547 {
11548 std::swap( m_device, rhs.m_device );
11549 std::swap( m_indirectCommandsLayoutNV, rhs.m_indirectCommandsLayoutNV );
11550 std::swap( m_allocator, rhs.m_allocator );
11551 std::swap( m_dispatcher, rhs.m_dispatcher );
11552 }
11553 return *this;
11554 }
11555
11556 VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutNV const & operator*() const & VULKAN_HPP_NOEXCEPT
11557 {
11558 return m_indirectCommandsLayoutNV;
11559 }
11560
11561 VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutNV const && operator*() const && VULKAN_HPP_NOEXCEPT
11562 {
11563 return std::move( m_indirectCommandsLayoutNV );
11564 }
11565
11566 operator VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutNV() const VULKAN_HPP_NOEXCEPT
11567 {
11568 return m_indirectCommandsLayoutNV;
11569 }
11570
11571 void clear() VULKAN_HPP_NOEXCEPT
11572 {
11573 if ( m_indirectCommandsLayoutNV )
11574 {
11575 getDispatcher()->vkDestroyIndirectCommandsLayoutNV( static_cast<VkDevice>( m_device ),
11576 static_cast<VkIndirectCommandsLayoutNV>( m_indirectCommandsLayoutNV ),
11577 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
11578 }
11579 m_device = nullptr;
11580 m_indirectCommandsLayoutNV = nullptr;
11581 m_allocator = nullptr;
11582 m_dispatcher = nullptr;
11583 }
11584
11585 VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutNV release()
11586 {
11587 m_device = nullptr;
11588 m_allocator = nullptr;
11589 m_dispatcher = nullptr;
11590 return exchange( m_indirectCommandsLayoutNV, nullptr );
11591 }
11592
11593 VULKAN_HPP_NAMESPACE::Device getDevice() const
11594 {
11595 return m_device;
11596 }
11597
11598 detail::DeviceDispatcher const * getDispatcher() const
11599 {
11600 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
11601 return m_dispatcher;
11602 }
11603
11604 void swap( IndirectCommandsLayoutNV & rhs ) VULKAN_HPP_NOEXCEPT
11605 {
11606 std::swap( m_device, rhs.m_device );
11607 std::swap( m_indirectCommandsLayoutNV, rhs.m_indirectCommandsLayoutNV );
11608 std::swap( m_allocator, rhs.m_allocator );
11609 std::swap( m_dispatcher, rhs.m_dispatcher );
11610 }
11611
11612 private:
11613 VULKAN_HPP_NAMESPACE::Device m_device = {};
11614 VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutNV m_indirectCommandsLayoutNV = {};
11615 AllocationCallbacks const * m_allocator = {};
11616 detail::DeviceDispatcher const * m_dispatcher = nullptr;
11617 };
11618
11619 template <>
11620 struct isVulkanRAIIHandleType<IndirectCommandsLayoutNV>
11621 {
11622 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
11623 };
11624
11625 // wrapper class for handle VkIndirectExecutionSetEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkIndirectExecutionSetEXT.html
11626 class IndirectExecutionSetEXT
11627 {
11628 public:
11629 using CType = VkIndirectExecutionSetEXT;
11630 using CppType = VULKAN_HPP_NAMESPACE::IndirectExecutionSetEXT;
11631
11632 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eIndirectExecutionSetEXT;
11633 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
11634
11635 public:
11636 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
11637 IndirectExecutionSetEXT( Device const & device,
11638 IndirectExecutionSetCreateInfoEXT const & createInfo,
11639 Optional<AllocationCallbacks const> allocator = nullptr )
11640 {
11641 *this = device.createIndirectExecutionSetEXT( createInfo, allocator );
11642 }
11643 # endif
11644
11645 IndirectExecutionSetEXT( Device const & device, VkIndirectExecutionSetEXT indirectExecutionSet, Optional<AllocationCallbacks const> allocator = nullptr )
11646 : m_device( device )
11647 , m_indirectExecutionSetEXT( indirectExecutionSet )
11648 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
11649 , m_dispatcher( device.getDispatcher() )
11650 {
11651 }
11652
11653 IndirectExecutionSetEXT( std::nullptr_t ) {}
11654
11655 ~IndirectExecutionSetEXT()
11656 {
11657 clear();
11658 }
11659
11660 IndirectExecutionSetEXT() = delete;
11661 IndirectExecutionSetEXT( IndirectExecutionSetEXT const & ) = delete;
11662
11663 IndirectExecutionSetEXT( IndirectExecutionSetEXT && rhs ) VULKAN_HPP_NOEXCEPT
11664 : m_device( exchange( rhs.m_device, {} ) )
11665 , m_indirectExecutionSetEXT( exchange( rhs.m_indirectExecutionSetEXT, {} ) )
11666 , m_allocator( exchange( rhs.m_allocator, {} ) )
11667 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
11668 {
11669 }
11670
11671 IndirectExecutionSetEXT & operator=( IndirectExecutionSetEXT const & ) = delete;
11672
11673 IndirectExecutionSetEXT & operator=( IndirectExecutionSetEXT && rhs ) VULKAN_HPP_NOEXCEPT
11674 {
11675 if ( this != &rhs )
11676 {
11677 std::swap( m_device, rhs.m_device );
11678 std::swap( m_indirectExecutionSetEXT, rhs.m_indirectExecutionSetEXT );
11679 std::swap( m_allocator, rhs.m_allocator );
11680 std::swap( m_dispatcher, rhs.m_dispatcher );
11681 }
11682 return *this;
11683 }
11684
11685 VULKAN_HPP_NAMESPACE::IndirectExecutionSetEXT const & operator*() const & VULKAN_HPP_NOEXCEPT
11686 {
11687 return m_indirectExecutionSetEXT;
11688 }
11689
11690 VULKAN_HPP_NAMESPACE::IndirectExecutionSetEXT const && operator*() const && VULKAN_HPP_NOEXCEPT
11691 {
11692 return std::move( m_indirectExecutionSetEXT );
11693 }
11694
11695 operator VULKAN_HPP_NAMESPACE::IndirectExecutionSetEXT() const VULKAN_HPP_NOEXCEPT
11696 {
11697 return m_indirectExecutionSetEXT;
11698 }
11699
11700 void clear() VULKAN_HPP_NOEXCEPT
11701 {
11702 if ( m_indirectExecutionSetEXT )
11703 {
11704 getDispatcher()->vkDestroyIndirectExecutionSetEXT( static_cast<VkDevice>( m_device ),
11705 static_cast<VkIndirectExecutionSetEXT>( m_indirectExecutionSetEXT ),
11706 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
11707 }
11708 m_device = nullptr;
11709 m_indirectExecutionSetEXT = nullptr;
11710 m_allocator = nullptr;
11711 m_dispatcher = nullptr;
11712 }
11713
11714 VULKAN_HPP_NAMESPACE::IndirectExecutionSetEXT release()
11715 {
11716 m_device = nullptr;
11717 m_allocator = nullptr;
11718 m_dispatcher = nullptr;
11719 return exchange( m_indirectExecutionSetEXT, nullptr );
11720 }
11721
11722 VULKAN_HPP_NAMESPACE::Device getDevice() const
11723 {
11724 return m_device;
11725 }
11726
11727 detail::DeviceDispatcher const * getDispatcher() const
11728 {
11729 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
11730 return m_dispatcher;
11731 }
11732
11733 void swap( IndirectExecutionSetEXT & rhs ) VULKAN_HPP_NOEXCEPT
11734 {
11735 std::swap( m_device, rhs.m_device );
11736 std::swap( m_indirectExecutionSetEXT, rhs.m_indirectExecutionSetEXT );
11737 std::swap( m_allocator, rhs.m_allocator );
11738 std::swap( m_dispatcher, rhs.m_dispatcher );
11739 }
11740
11741 //=== VK_EXT_device_generated_commands ===
11742
11743 // wrapper function for command vkUpdateIndirectExecutionSetPipelineEXT, see
11744 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateIndirectExecutionSetPipelineEXT.html
11745 void updatePipeline( ArrayProxy<WriteIndirectExecutionSetPipelineEXT const> const & executionSetWrites ) const VULKAN_HPP_NOEXCEPT;
11746
11747 // wrapper function for command vkUpdateIndirectExecutionSetShaderEXT, see
11748 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateIndirectExecutionSetShaderEXT.html
11749 void updateShader( ArrayProxy<WriteIndirectExecutionSetShaderEXT const> const & executionSetWrites ) const VULKAN_HPP_NOEXCEPT;
11750
11751 private:
11752 VULKAN_HPP_NAMESPACE::Device m_device = {};
11753 VULKAN_HPP_NAMESPACE::IndirectExecutionSetEXT m_indirectExecutionSetEXT = {};
11754 AllocationCallbacks const * m_allocator = {};
11755 detail::DeviceDispatcher const * m_dispatcher = nullptr;
11756 };
11757
11758 template <>
11759 struct isVulkanRAIIHandleType<IndirectExecutionSetEXT>
11760 {
11761 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
11762 };
11763
11764 // wrapper class for handle VkMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkMicromapEXT.html
11765 class MicromapEXT
11766 {
11767 public:
11768 using CType = VkMicromapEXT;
11769 using CppType = VULKAN_HPP_NAMESPACE::MicromapEXT;
11770
11771 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eMicromapEXT;
11772 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
11773
11774 public:
11775 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
11776 MicromapEXT( Device const & device, MicromapCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
11777 {
11778 *this = device.createMicromapEXT( createInfo, allocator );
11779 }
11780 # endif
11781
11782 MicromapEXT( Device const & device, VkMicromapEXT micromap, Optional<AllocationCallbacks const> allocator = nullptr )
11783 : m_device( device )
11784 , m_micromapEXT( micromap )
11785 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
11786 , m_dispatcher( device.getDispatcher() )
11787 {
11788 }
11789
11790 MicromapEXT( std::nullptr_t ) {}
11791
11792 ~MicromapEXT()
11793 {
11794 clear();
11795 }
11796
11797 MicromapEXT() = delete;
11798 MicromapEXT( MicromapEXT const & ) = delete;
11799
11800 MicromapEXT( MicromapEXT && rhs ) VULKAN_HPP_NOEXCEPT
11801 : m_device( exchange( rhs.m_device, {} ) )
11802 , m_micromapEXT( exchange( rhs.m_micromapEXT, {} ) )
11803 , m_allocator( exchange( rhs.m_allocator, {} ) )
11804 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
11805 {
11806 }
11807
11808 MicromapEXT & operator=( MicromapEXT const & ) = delete;
11809
11810 MicromapEXT & operator=( MicromapEXT && rhs ) VULKAN_HPP_NOEXCEPT
11811 {
11812 if ( this != &rhs )
11813 {
11814 std::swap( m_device, rhs.m_device );
11815 std::swap( m_micromapEXT, rhs.m_micromapEXT );
11816 std::swap( m_allocator, rhs.m_allocator );
11817 std::swap( m_dispatcher, rhs.m_dispatcher );
11818 }
11819 return *this;
11820 }
11821
11822 VULKAN_HPP_NAMESPACE::MicromapEXT const & operator*() const & VULKAN_HPP_NOEXCEPT
11823 {
11824 return m_micromapEXT;
11825 }
11826
11827 VULKAN_HPP_NAMESPACE::MicromapEXT const && operator*() const && VULKAN_HPP_NOEXCEPT
11828 {
11829 return std::move( m_micromapEXT );
11830 }
11831
11832 operator VULKAN_HPP_NAMESPACE::MicromapEXT() const VULKAN_HPP_NOEXCEPT
11833 {
11834 return m_micromapEXT;
11835 }
11836
11837 void clear() VULKAN_HPP_NOEXCEPT
11838 {
11839 if ( m_micromapEXT )
11840 {
11841 getDispatcher()->vkDestroyMicromapEXT(
11842 static_cast<VkDevice>( m_device ), static_cast<VkMicromapEXT>( m_micromapEXT ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
11843 }
11844 m_device = nullptr;
11845 m_micromapEXT = nullptr;
11846 m_allocator = nullptr;
11847 m_dispatcher = nullptr;
11848 }
11849
11850 VULKAN_HPP_NAMESPACE::MicromapEXT release()
11851 {
11852 m_device = nullptr;
11853 m_allocator = nullptr;
11854 m_dispatcher = nullptr;
11855 return exchange( m_micromapEXT, nullptr );
11856 }
11857
11858 VULKAN_HPP_NAMESPACE::Device getDevice() const
11859 {
11860 return m_device;
11861 }
11862
11863 detail::DeviceDispatcher const * getDispatcher() const
11864 {
11865 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
11866 return m_dispatcher;
11867 }
11868
11869 void swap( MicromapEXT & rhs ) VULKAN_HPP_NOEXCEPT
11870 {
11871 std::swap( m_device, rhs.m_device );
11872 std::swap( m_micromapEXT, rhs.m_micromapEXT );
11873 std::swap( m_allocator, rhs.m_allocator );
11874 std::swap( m_dispatcher, rhs.m_dispatcher );
11875 }
11876
11877 private:
11878 VULKAN_HPP_NAMESPACE::Device m_device = {};
11879 VULKAN_HPP_NAMESPACE::MicromapEXT m_micromapEXT = {};
11880 AllocationCallbacks const * m_allocator = {};
11881 detail::DeviceDispatcher const * m_dispatcher = nullptr;
11882 };
11883
11884 template <>
11885 struct isVulkanRAIIHandleType<MicromapEXT>
11886 {
11887 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
11888 };
11889
11890 // wrapper class for handle VkOpticalFlowSessionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkOpticalFlowSessionNV.html
11891 class OpticalFlowSessionNV
11892 {
11893 public:
11894 using CType = VkOpticalFlowSessionNV;
11895 using CppType = VULKAN_HPP_NAMESPACE::OpticalFlowSessionNV;
11896
11897 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eOpticalFlowSessionNV;
11898 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
11899
11900 public:
11901 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
11902 OpticalFlowSessionNV( Device const & device, OpticalFlowSessionCreateInfoNV const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
11903 {
11904 *this = device.createOpticalFlowSessionNV( createInfo, allocator );
11905 }
11906 # endif
11907
11908 OpticalFlowSessionNV( Device const & device, VkOpticalFlowSessionNV session, Optional<AllocationCallbacks const> allocator = nullptr )
11909 : m_device( device )
11910 , m_opticalFlowSessionNV( session )
11911 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
11912 , m_dispatcher( device.getDispatcher() )
11913 {
11914 }
11915
11916 OpticalFlowSessionNV( std::nullptr_t ) {}
11917
11918 ~OpticalFlowSessionNV()
11919 {
11920 clear();
11921 }
11922
11923 OpticalFlowSessionNV() = delete;
11924 OpticalFlowSessionNV( OpticalFlowSessionNV const & ) = delete;
11925
11926 OpticalFlowSessionNV( OpticalFlowSessionNV && rhs ) VULKAN_HPP_NOEXCEPT
11927 : m_device( exchange( rhs.m_device, {} ) )
11928 , m_opticalFlowSessionNV( exchange( rhs.m_opticalFlowSessionNV, {} ) )
11929 , m_allocator( exchange( rhs.m_allocator, {} ) )
11930 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
11931 {
11932 }
11933
11934 OpticalFlowSessionNV & operator=( OpticalFlowSessionNV const & ) = delete;
11935
11936 OpticalFlowSessionNV & operator=( OpticalFlowSessionNV && rhs ) VULKAN_HPP_NOEXCEPT
11937 {
11938 if ( this != &rhs )
11939 {
11940 std::swap( m_device, rhs.m_device );
11941 std::swap( m_opticalFlowSessionNV, rhs.m_opticalFlowSessionNV );
11942 std::swap( m_allocator, rhs.m_allocator );
11943 std::swap( m_dispatcher, rhs.m_dispatcher );
11944 }
11945 return *this;
11946 }
11947
11948 VULKAN_HPP_NAMESPACE::OpticalFlowSessionNV const & operator*() const & VULKAN_HPP_NOEXCEPT
11949 {
11950 return m_opticalFlowSessionNV;
11951 }
11952
11953 VULKAN_HPP_NAMESPACE::OpticalFlowSessionNV const && operator*() const && VULKAN_HPP_NOEXCEPT
11954 {
11955 return std::move( m_opticalFlowSessionNV );
11956 }
11957
11958 operator VULKAN_HPP_NAMESPACE::OpticalFlowSessionNV() const VULKAN_HPP_NOEXCEPT
11959 {
11960 return m_opticalFlowSessionNV;
11961 }
11962
11963 void clear() VULKAN_HPP_NOEXCEPT
11964 {
11965 if ( m_opticalFlowSessionNV )
11966 {
11967 getDispatcher()->vkDestroyOpticalFlowSessionNV( static_cast<VkDevice>( m_device ),
11968 static_cast<VkOpticalFlowSessionNV>( m_opticalFlowSessionNV ),
11969 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
11970 }
11971 m_device = nullptr;
11972 m_opticalFlowSessionNV = nullptr;
11973 m_allocator = nullptr;
11974 m_dispatcher = nullptr;
11975 }
11976
11977 VULKAN_HPP_NAMESPACE::OpticalFlowSessionNV release()
11978 {
11979 m_device = nullptr;
11980 m_allocator = nullptr;
11981 m_dispatcher = nullptr;
11982 return exchange( m_opticalFlowSessionNV, nullptr );
11983 }
11984
11985 VULKAN_HPP_NAMESPACE::Device getDevice() const
11986 {
11987 return m_device;
11988 }
11989
11990 detail::DeviceDispatcher const * getDispatcher() const
11991 {
11992 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
11993 return m_dispatcher;
11994 }
11995
11996 void swap( OpticalFlowSessionNV & rhs ) VULKAN_HPP_NOEXCEPT
11997 {
11998 std::swap( m_device, rhs.m_device );
11999 std::swap( m_opticalFlowSessionNV, rhs.m_opticalFlowSessionNV );
12000 std::swap( m_allocator, rhs.m_allocator );
12001 std::swap( m_dispatcher, rhs.m_dispatcher );
12002 }
12003
12004 //=== VK_NV_optical_flow ===
12005
12006 // wrapper function for command vkBindOpticalFlowSessionImageNV, see
12007 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindOpticalFlowSessionImageNV.html
12008 typename ResultValueType<void>::type
12009 bindImage( OpticalFlowSessionBindingPointNV bindingPoint, VULKAN_HPP_NAMESPACE::ImageView view, ImageLayout layout ) const;
12010
12011 private:
12012 VULKAN_HPP_NAMESPACE::Device m_device = {};
12013 VULKAN_HPP_NAMESPACE::OpticalFlowSessionNV m_opticalFlowSessionNV = {};
12014 AllocationCallbacks const * m_allocator = {};
12015 detail::DeviceDispatcher const * m_dispatcher = nullptr;
12016 };
12017
12018 template <>
12019 struct isVulkanRAIIHandleType<OpticalFlowSessionNV>
12020 {
12021 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
12022 };
12023
12024 // wrapper class for handle VkPerformanceConfigurationINTEL, see
12025 // https://registry.khronos.org/vulkan/specs/latest/man/html/VkPerformanceConfigurationINTEL.html
12026 class PerformanceConfigurationINTEL
12027 {
12028 public:
12029 using CType = VkPerformanceConfigurationINTEL;
12030 using CppType = VULKAN_HPP_NAMESPACE::PerformanceConfigurationINTEL;
12031
12032 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::ePerformanceConfigurationINTEL;
12033 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
12034
12035 public:
12036 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12037 PerformanceConfigurationINTEL( Device const & device, PerformanceConfigurationAcquireInfoINTEL const & acquireInfo )
12038 {
12039 *this = device.acquirePerformanceConfigurationINTEL( acquireInfo );
12040 }
12041 # endif
12042
12043 PerformanceConfigurationINTEL( Device const & device, VkPerformanceConfigurationINTEL configuration )
12044 : m_device( device ), m_performanceConfigurationINTEL( configuration ), m_dispatcher( device.getDispatcher() )
12045 {
12046 }
12047
12048 PerformanceConfigurationINTEL( std::nullptr_t ) {}
12049
12050 ~PerformanceConfigurationINTEL()
12051 {
12052 clear();
12053 }
12054
12055 PerformanceConfigurationINTEL() = delete;
12056 PerformanceConfigurationINTEL( PerformanceConfigurationINTEL const & ) = delete;
12057
12058 PerformanceConfigurationINTEL( PerformanceConfigurationINTEL && rhs ) VULKAN_HPP_NOEXCEPT
12059 : m_device( exchange( rhs.m_device, {} ) )
12060 , m_performanceConfigurationINTEL( exchange( rhs.m_performanceConfigurationINTEL, {} ) )
12061 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
12062 {
12063 }
12064
12065 PerformanceConfigurationINTEL & operator=( PerformanceConfigurationINTEL const & ) = delete;
12066
12067 PerformanceConfigurationINTEL & operator=( PerformanceConfigurationINTEL && rhs ) VULKAN_HPP_NOEXCEPT
12068 {
12069 if ( this != &rhs )
12070 {
12071 std::swap( m_device, rhs.m_device );
12072 std::swap( m_performanceConfigurationINTEL, rhs.m_performanceConfigurationINTEL );
12073 std::swap( m_dispatcher, rhs.m_dispatcher );
12074 }
12075 return *this;
12076 }
12077
12078 VULKAN_HPP_NAMESPACE::PerformanceConfigurationINTEL const & operator*() const & VULKAN_HPP_NOEXCEPT
12079 {
12080 return m_performanceConfigurationINTEL;
12081 }
12082
12083 VULKAN_HPP_NAMESPACE::PerformanceConfigurationINTEL const && operator*() const && VULKAN_HPP_NOEXCEPT
12084 {
12085 return std::move( m_performanceConfigurationINTEL );
12086 }
12087
12088 operator VULKAN_HPP_NAMESPACE::PerformanceConfigurationINTEL() const VULKAN_HPP_NOEXCEPT
12089 {
12090 return m_performanceConfigurationINTEL;
12091 }
12092
12093 void clear() VULKAN_HPP_NOEXCEPT
12094 {
12095 if ( m_performanceConfigurationINTEL )
12096 {
12097 getDispatcher()->vkReleasePerformanceConfigurationINTEL( static_cast<VkDevice>( m_device ),
12098 static_cast<VkPerformanceConfigurationINTEL>( m_performanceConfigurationINTEL ) );
12099 }
12100 m_device = nullptr;
12101 m_performanceConfigurationINTEL = nullptr;
12102 m_dispatcher = nullptr;
12103 }
12104
12105 VULKAN_HPP_NAMESPACE::PerformanceConfigurationINTEL release()
12106 {
12107 m_device = nullptr;
12108 m_dispatcher = nullptr;
12109 return exchange( m_performanceConfigurationINTEL, nullptr );
12110 }
12111
12112 VULKAN_HPP_NAMESPACE::Device getDevice() const
12113 {
12114 return m_device;
12115 }
12116
12117 detail::DeviceDispatcher const * getDispatcher() const
12118 {
12119 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
12120 return m_dispatcher;
12121 }
12122
12123 void swap( PerformanceConfigurationINTEL & rhs ) VULKAN_HPP_NOEXCEPT
12124 {
12125 std::swap( m_device, rhs.m_device );
12126 std::swap( m_performanceConfigurationINTEL, rhs.m_performanceConfigurationINTEL );
12127 std::swap( m_dispatcher, rhs.m_dispatcher );
12128 }
12129
12130 private:
12131 VULKAN_HPP_NAMESPACE::Device m_device = {};
12132 VULKAN_HPP_NAMESPACE::PerformanceConfigurationINTEL m_performanceConfigurationINTEL = {};
12133 detail::DeviceDispatcher const * m_dispatcher = nullptr;
12134 };
12135
12136 template <>
12137 struct isVulkanRAIIHandleType<PerformanceConfigurationINTEL>
12138 {
12139 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
12140 };
12141
12142 // wrapper class for handle VkPipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkPipelineCache.html
12143 class PipelineCache
12144 {
12145 public:
12146 using CType = VkPipelineCache;
12147 using CppType = VULKAN_HPP_NAMESPACE::PipelineCache;
12148
12149 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::ePipelineCache;
12150 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::ePipelineCache;
12151
12152 public:
12153 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12154 PipelineCache( Device const & device, PipelineCacheCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
12155 {
12156 *this = device.createPipelineCache( createInfo, allocator );
12157 }
12158 # endif
12159
12160 PipelineCache( Device const & device, VkPipelineCache pipelineCache, Optional<AllocationCallbacks const> allocator = nullptr )
12161 : m_device( device )
12162 , m_pipelineCache( pipelineCache )
12163 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
12164 , m_dispatcher( device.getDispatcher() )
12165 {
12166 }
12167
12168 PipelineCache( std::nullptr_t ) {}
12169
12170 ~PipelineCache()
12171 {
12172 clear();
12173 }
12174
12175 PipelineCache() = delete;
12176 PipelineCache( PipelineCache const & ) = delete;
12177
12178 PipelineCache( PipelineCache && rhs ) VULKAN_HPP_NOEXCEPT
12179 : m_device( exchange( rhs.m_device, {} ) )
12180 , m_pipelineCache( exchange( rhs.m_pipelineCache, {} ) )
12181 , m_allocator( exchange( rhs.m_allocator, {} ) )
12182 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
12183 {
12184 }
12185
12186 PipelineCache & operator=( PipelineCache const & ) = delete;
12187
12188 PipelineCache & operator=( PipelineCache && rhs ) VULKAN_HPP_NOEXCEPT
12189 {
12190 if ( this != &rhs )
12191 {
12192 std::swap( m_device, rhs.m_device );
12193 std::swap( m_pipelineCache, rhs.m_pipelineCache );
12194 std::swap( m_allocator, rhs.m_allocator );
12195 std::swap( m_dispatcher, rhs.m_dispatcher );
12196 }
12197 return *this;
12198 }
12199
12200 VULKAN_HPP_NAMESPACE::PipelineCache const & operator*() const & VULKAN_HPP_NOEXCEPT
12201 {
12202 return m_pipelineCache;
12203 }
12204
12205 VULKAN_HPP_NAMESPACE::PipelineCache const && operator*() const && VULKAN_HPP_NOEXCEPT
12206 {
12207 return std::move( m_pipelineCache );
12208 }
12209
12210 operator VULKAN_HPP_NAMESPACE::PipelineCache() const VULKAN_HPP_NOEXCEPT
12211 {
12212 return m_pipelineCache;
12213 }
12214
12215 void clear() VULKAN_HPP_NOEXCEPT
12216 {
12217 if ( m_pipelineCache )
12218 {
12219 getDispatcher()->vkDestroyPipelineCache( static_cast<VkDevice>( m_device ),
12220 static_cast<VkPipelineCache>( m_pipelineCache ),
12221 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
12222 }
12223 m_device = nullptr;
12224 m_pipelineCache = nullptr;
12225 m_allocator = nullptr;
12226 m_dispatcher = nullptr;
12227 }
12228
12229 VULKAN_HPP_NAMESPACE::PipelineCache release()
12230 {
12231 m_device = nullptr;
12232 m_allocator = nullptr;
12233 m_dispatcher = nullptr;
12234 return exchange( m_pipelineCache, nullptr );
12235 }
12236
12237 VULKAN_HPP_NAMESPACE::Device getDevice() const
12238 {
12239 return m_device;
12240 }
12241
12242 detail::DeviceDispatcher const * getDispatcher() const
12243 {
12244 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
12245 return m_dispatcher;
12246 }
12247
12248 void swap( PipelineCache & rhs ) VULKAN_HPP_NOEXCEPT
12249 {
12250 std::swap( m_device, rhs.m_device );
12251 std::swap( m_pipelineCache, rhs.m_pipelineCache );
12252 std::swap( m_allocator, rhs.m_allocator );
12253 std::swap( m_dispatcher, rhs.m_dispatcher );
12254 }
12255
12256 //=== VK_VERSION_1_0 ===
12257
12258 // wrapper function for command vkGetPipelineCacheData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineCacheData.html
12259 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t>>::type getData() const;
12260
12261 // wrapper function for command vkMergePipelineCaches, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMergePipelineCaches.html
12262 typename ResultValueType<void>::type merge( ArrayProxy<VULKAN_HPP_NAMESPACE::PipelineCache const> const & srcCaches ) const;
12263
12264 private:
12265 VULKAN_HPP_NAMESPACE::Device m_device = {};
12266 VULKAN_HPP_NAMESPACE::PipelineCache m_pipelineCache = {};
12267 AllocationCallbacks const * m_allocator = {};
12268 detail::DeviceDispatcher const * m_dispatcher = nullptr;
12269 };
12270
12271 template <>
12272 struct isVulkanRAIIHandleType<PipelineCache>
12273 {
12274 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
12275 };
12276
12277 // wrapper class for handle VkPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkPipeline.html
12278 class Pipeline
12279 {
12280 public:
12281 using CType = VkPipeline;
12282 using CppType = VULKAN_HPP_NAMESPACE::Pipeline;
12283
12284 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::ePipeline;
12285 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::ePipeline;
12286
12287 public:
12288 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12289 Pipeline( Device const & device,
12290 Optional<PipelineCache const> const & pipelineCache,
12291 ComputePipelineCreateInfo const & createInfo,
12292 Optional<AllocationCallbacks const> allocator = nullptr )
12293 {
12294 *this = device.createComputePipeline( pipelineCache, createInfo, allocator );
12295 }
12296 # endif
12297
12298 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12299 Pipeline( Device const & device,
12300 Optional<DeferredOperationKHR const> const & deferredOperation,
12301 Optional<PipelineCache const> const & pipelineCache,
12302 DataGraphPipelineCreateInfoARM const & createInfo,
12303 Optional<AllocationCallbacks const> allocator = nullptr )
12304 {
12305 *this = device.createDataGraphPipelineARM( deferredOperation, pipelineCache, createInfo, allocator );
12306 }
12307 # endif
12308
12309 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12310 # if defined( VK_ENABLE_BETA_EXTENSIONS )
12311 Pipeline( Device const & device,
12312 Optional<PipelineCache const> const & pipelineCache,
12313 ExecutionGraphPipelineCreateInfoAMDX const & createInfo,
12314 Optional<AllocationCallbacks const> allocator = nullptr )
12315 {
12316 *this = device.createExecutionGraphPipelineAMDX( pipelineCache, createInfo, allocator );
12317 }
12318 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
12319 # endif
12320
12321 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12322 Pipeline( Device const & device,
12323 Optional<PipelineCache const> const & pipelineCache,
12324 GraphicsPipelineCreateInfo const & createInfo,
12325 Optional<AllocationCallbacks const> allocator = nullptr )
12326 {
12327 *this = device.createGraphicsPipeline( pipelineCache, createInfo, allocator );
12328 }
12329 # endif
12330
12331 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12332 Pipeline( Device const & device,
12333 Optional<DeferredOperationKHR const> const & deferredOperation,
12334 Optional<PipelineCache const> const & pipelineCache,
12335 RayTracingPipelineCreateInfoKHR const & createInfo,
12336 Optional<AllocationCallbacks const> allocator = nullptr )
12337 {
12338 *this = device.createRayTracingPipelineKHR( deferredOperation, pipelineCache, createInfo, allocator );
12339 }
12340 # endif
12341
12342 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12343 Pipeline( Device const & device,
12344 Optional<PipelineCache const> const & pipelineCache,
12345 RayTracingPipelineCreateInfoNV const & createInfo,
12346 Optional<AllocationCallbacks const> allocator = nullptr )
12347 {
12348 *this = device.createRayTracingPipelineNV( pipelineCache, createInfo, allocator );
12349 }
12350 # endif
12351
12352 Pipeline( Device const & device, VkPipeline pipeline, Optional<AllocationCallbacks const> allocator = nullptr, Result successCode = Result::eSuccess )
12353 : m_device( device )
12354 , m_pipeline( pipeline )
12355 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
12356 , m_constructorSuccessCode( successCode )
12357 , m_dispatcher( device.getDispatcher() )
12358 {
12359 }
12360
12361 Pipeline( std::nullptr_t ) {}
12362
12363 ~Pipeline()
12364 {
12365 clear();
12366 }
12367
12368 Pipeline() = delete;
12369 Pipeline( Pipeline const & ) = delete;
12370
12371 Pipeline( Pipeline && rhs ) VULKAN_HPP_NOEXCEPT
12372 : m_device( exchange( rhs.m_device, {} ) )
12373 , m_pipeline( exchange( rhs.m_pipeline, {} ) )
12374 , m_allocator( exchange( rhs.m_allocator, {} ) )
12375 , m_constructorSuccessCode( exchange( rhs.m_constructorSuccessCode, {} ) )
12376 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
12377 {
12378 }
12379
12380 Pipeline & operator=( Pipeline const & ) = delete;
12381
12382 Pipeline & operator=( Pipeline && rhs ) VULKAN_HPP_NOEXCEPT
12383 {
12384 if ( this != &rhs )
12385 {
12386 std::swap( m_device, rhs.m_device );
12387 std::swap( m_pipeline, rhs.m_pipeline );
12388 std::swap( m_allocator, rhs.m_allocator );
12389 std::swap( m_constructorSuccessCode, rhs.m_constructorSuccessCode );
12390 std::swap( m_dispatcher, rhs.m_dispatcher );
12391 }
12392 return *this;
12393 }
12394
12395 VULKAN_HPP_NAMESPACE::Pipeline const & operator*() const & VULKAN_HPP_NOEXCEPT
12396 {
12397 return m_pipeline;
12398 }
12399
12400 VULKAN_HPP_NAMESPACE::Pipeline const && operator*() const && VULKAN_HPP_NOEXCEPT
12401 {
12402 return std::move( m_pipeline );
12403 }
12404
12405 operator VULKAN_HPP_NAMESPACE::Pipeline() const VULKAN_HPP_NOEXCEPT
12406 {
12407 return m_pipeline;
12408 }
12409
12410 void clear() VULKAN_HPP_NOEXCEPT
12411 {
12412 if ( m_pipeline )
12413 {
12414 getDispatcher()->vkDestroyPipeline(
12415 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( m_pipeline ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
12416 }
12417 m_device = nullptr;
12418 m_pipeline = nullptr;
12419 m_allocator = nullptr;
12420 m_constructorSuccessCode = Result::eErrorUnknown;
12421 m_dispatcher = nullptr;
12422 }
12423
12424 VULKAN_HPP_NAMESPACE::Pipeline release()
12425 {
12426 m_device = nullptr;
12427 m_allocator = nullptr;
12428 m_constructorSuccessCode = Result::eErrorUnknown;
12429 m_dispatcher = nullptr;
12430 return exchange( m_pipeline, nullptr );
12431 }
12432
12433 Result getConstructorSuccessCode() const
12434 {
12435 return m_constructorSuccessCode;
12436 }
12437
12438 VULKAN_HPP_NAMESPACE::Device getDevice() const
12439 {
12440 return m_device;
12441 }
12442
12443 detail::DeviceDispatcher const * getDispatcher() const
12444 {
12445 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
12446 return m_dispatcher;
12447 }
12448
12449 void swap( Pipeline & rhs ) VULKAN_HPP_NOEXCEPT
12450 {
12451 std::swap( m_device, rhs.m_device );
12452 std::swap( m_pipeline, rhs.m_pipeline );
12453 std::swap( m_allocator, rhs.m_allocator );
12454 std::swap( m_constructorSuccessCode, rhs.m_constructorSuccessCode );
12455 std::swap( m_dispatcher, rhs.m_dispatcher );
12456 }
12457
12458 //=== VK_AMD_shader_info ===
12459
12460 // wrapper function for command vkGetShaderInfoAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderInfoAMD.html
12461 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t>>::type getShaderInfoAMD( ShaderStageFlagBits shaderStage,
12462 ShaderInfoTypeAMD infoType ) const;
12463
12464 # if defined( VK_ENABLE_BETA_EXTENSIONS )
12465 //=== VK_AMDX_shader_enqueue ===
12466
12467 // wrapper function for command vkGetExecutionGraphPipelineScratchSizeAMDX, see
12468 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExecutionGraphPipelineScratchSizeAMDX.html
12469 VULKAN_HPP_NODISCARD typename ResultValueType<ExecutionGraphPipelineScratchSizeAMDX>::type getExecutionGraphScratchSizeAMDX() const;
12470
12471 // wrapper function for command vkGetExecutionGraphPipelineNodeIndexAMDX, see
12472 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExecutionGraphPipelineNodeIndexAMDX.html
12473 VULKAN_HPP_NODISCARD typename ResultValueType<uint32_t>::type
12474 getExecutionGraphNodeIndexAMDX( PipelineShaderStageNodeCreateInfoAMDX const & nodeInfo ) const;
12475 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
12476
12477 //=== VK_KHR_ray_tracing_pipeline ===
12478
12479 // wrapper function for command vkGetRayTracingShaderGroupHandlesKHR, see
12480 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesKHR.html
12481 VULKAN_HPP_NODISCARD Result getRayTracingShaderGroupHandlesKHR( uint32_t firstGroup,
12482 uint32_t groupCount,
12483 size_t dataSize,
12484 void * pData ) const VULKAN_HPP_NOEXCEPT;
12485
12486 // wrapper function for command vkGetRayTracingShaderGroupHandlesKHR, see
12487 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesKHR.html
12488 template <typename DataType>
12489 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DataType>>::type
12490 getRayTracingShaderGroupHandlesKHR( uint32_t firstGroup, uint32_t groupCount, size_t dataSize ) const;
12491
12492 // wrapper function for command vkGetRayTracingShaderGroupHandlesKHR, see
12493 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesKHR.html
12494 template <typename DataType>
12495 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type getRayTracingShaderGroupHandleKHR( uint32_t firstGroup, uint32_t groupCount ) const;
12496
12497 // wrapper function for command vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, see
12498 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html
12499 VULKAN_HPP_NODISCARD Result getRayTracingCaptureReplayShaderGroupHandlesKHR( uint32_t firstGroup,
12500 uint32_t groupCount,
12501 size_t dataSize,
12502 void * pData ) const VULKAN_HPP_NOEXCEPT;
12503
12504 // wrapper function for command vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, see
12505 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html
12506 template <typename DataType>
12507 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DataType>>::type
12508 getRayTracingCaptureReplayShaderGroupHandlesKHR( uint32_t firstGroup, uint32_t groupCount, size_t dataSize ) const;
12509
12510 // wrapper function for command vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, see
12511 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html
12512 template <typename DataType>
12513 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type getRayTracingCaptureReplayShaderGroupHandleKHR( uint32_t firstGroup,
12514 uint32_t groupCount ) const;
12515
12516 // wrapper function for command vkGetRayTracingShaderGroupStackSizeKHR, see
12517 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupStackSizeKHR.html
12518 VULKAN_HPP_NODISCARD DeviceSize getRayTracingShaderGroupStackSizeKHR( uint32_t group, ShaderGroupShaderKHR groupShader ) const VULKAN_HPP_NOEXCEPT;
12519
12520 //=== VK_NV_ray_tracing ===
12521
12522 // wrapper function for command vkGetRayTracingShaderGroupHandlesNV, see
12523 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesNV.html
12524 VULKAN_HPP_NODISCARD Result getRayTracingShaderGroupHandlesNV( uint32_t firstGroup,
12525 uint32_t groupCount,
12526 size_t dataSize,
12527 void * pData ) const VULKAN_HPP_NOEXCEPT;
12528
12529 // wrapper function for command vkGetRayTracingShaderGroupHandlesNV, see
12530 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesNV.html
12531 template <typename DataType>
12532 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<DataType>>::type
12533 getRayTracingShaderGroupHandlesNV( uint32_t firstGroup, uint32_t groupCount, size_t dataSize ) const;
12534
12535 // wrapper function for command vkGetRayTracingShaderGroupHandlesNV, see
12536 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesNV.html
12537 template <typename DataType>
12538 VULKAN_HPP_NODISCARD typename ResultValueType<DataType>::type getRayTracingShaderGroupHandleNV( uint32_t firstGroup, uint32_t groupCount ) const;
12539
12540 // wrapper function for command vkCompileDeferredNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCompileDeferredNV.html
12541 typename ResultValueType<void>::type compileDeferredNV( uint32_t shader ) const;
12542
12543 private:
12544 VULKAN_HPP_NAMESPACE::Device m_device = {};
12545 VULKAN_HPP_NAMESPACE::Pipeline m_pipeline = {};
12546 AllocationCallbacks const * m_allocator = {};
12547 Result m_constructorSuccessCode = Result::eErrorUnknown;
12548 detail::DeviceDispatcher const * m_dispatcher = nullptr;
12549 };
12550
12551 template <>
12552 struct isVulkanRAIIHandleType<Pipeline>
12553 {
12554 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
12555 };
12556
12557 class Pipelines : public std::vector<Pipeline>
12558 {
12559 public:
12560 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12561 Pipelines( Device const & device,
12562 Optional<PipelineCache const> const & pipelineCache,
12563 ArrayProxy<ComputePipelineCreateInfo> const & createInfos,
12564 Optional<AllocationCallbacks const> allocator = nullptr )
12565 {
12566 *this = device.createComputePipelines( pipelineCache, createInfos, allocator );
12567 }
12568 # endif
12569
12570 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12571 Pipelines( Device const & device,
12572 Optional<DeferredOperationKHR const> const & deferredOperation,
12573 Optional<PipelineCache const> const & pipelineCache,
12574 ArrayProxy<DataGraphPipelineCreateInfoARM> const & createInfos,
12575 Optional<AllocationCallbacks const> allocator = nullptr )
12576 {
12577 *this = device.createDataGraphPipelinesARM( deferredOperation, pipelineCache, createInfos, allocator );
12578 }
12579 # endif
12580
12581 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12582 # if defined( VK_ENABLE_BETA_EXTENSIONS )
12583 Pipelines( Device const & device,
12584 Optional<PipelineCache const> const & pipelineCache,
12585 ArrayProxy<ExecutionGraphPipelineCreateInfoAMDX> const & createInfos,
12586 Optional<AllocationCallbacks const> allocator = nullptr )
12587 {
12588 *this = device.createExecutionGraphPipelinesAMDX( pipelineCache, createInfos, allocator );
12589 }
12590 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
12591 # endif
12592
12593 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12594 Pipelines( Device const & device,
12595 Optional<PipelineCache const> const & pipelineCache,
12596 ArrayProxy<GraphicsPipelineCreateInfo> const & createInfos,
12597 Optional<AllocationCallbacks const> allocator = nullptr )
12598 {
12599 *this = device.createGraphicsPipelines( pipelineCache, createInfos, allocator );
12600 }
12601 # endif
12602
12603 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12604 Pipelines( Device const & device,
12605 Optional<DeferredOperationKHR const> const & deferredOperation,
12606 Optional<PipelineCache const> const & pipelineCache,
12607 ArrayProxy<RayTracingPipelineCreateInfoKHR> const & createInfos,
12608 Optional<AllocationCallbacks const> allocator = nullptr )
12609 {
12610 *this = device.createRayTracingPipelinesKHR( deferredOperation, pipelineCache, createInfos, allocator );
12611 }
12612 # endif
12613
12614 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12615 Pipelines( Device const & device,
12616 Optional<PipelineCache const> const & pipelineCache,
12617 ArrayProxy<RayTracingPipelineCreateInfoNV> const & createInfos,
12618 Optional<AllocationCallbacks const> allocator = nullptr )
12619 {
12620 *this = device.createRayTracingPipelinesNV( pipelineCache, createInfos, allocator );
12621 }
12622 # endif
12623
12624 Pipelines( std::nullptr_t ) {}
12625
12626 Pipelines() = delete;
12627 Pipelines( Pipelines const & ) = delete;
12628 Pipelines( Pipelines && rhs ) = default;
12629 Pipelines & operator=( Pipelines const & ) = delete;
12630 Pipelines & operator=( Pipelines && rhs ) = default;
12631
12632 Pipelines( std::vector<Pipeline> && rhs )
12633 {
12634 std::swap( *this, rhs );
12635 }
12636 };
12637
12638 // wrapper class for handle VkPipelineBinaryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkPipelineBinaryKHR.html
12639 class PipelineBinaryKHR
12640 {
12641 public:
12642 using CType = VkPipelineBinaryKHR;
12643 using CppType = VULKAN_HPP_NAMESPACE::PipelineBinaryKHR;
12644
12645 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::ePipelineBinaryKHR;
12646 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
12647
12648 public:
12649 PipelineBinaryKHR( Device const & device,
12650 VkPipelineBinaryKHR pipelineBinary,
12651 Optional<AllocationCallbacks const> allocator = nullptr,
12652 Result successCode = Result::eSuccess )
12653 : m_device( device )
12654 , m_pipelineBinaryKHR( pipelineBinary )
12655 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
12656 , m_constructorSuccessCode( successCode )
12657 , m_dispatcher( device.getDispatcher() )
12658 {
12659 }
12660
12661 PipelineBinaryKHR( std::nullptr_t ) {}
12662
12663 ~PipelineBinaryKHR()
12664 {
12665 clear();
12666 }
12667
12668 PipelineBinaryKHR() = delete;
12669 PipelineBinaryKHR( PipelineBinaryKHR const & ) = delete;
12670
12671 PipelineBinaryKHR( PipelineBinaryKHR && rhs ) VULKAN_HPP_NOEXCEPT
12672 : m_device( exchange( rhs.m_device, {} ) )
12673 , m_pipelineBinaryKHR( exchange( rhs.m_pipelineBinaryKHR, {} ) )
12674 , m_allocator( exchange( rhs.m_allocator, {} ) )
12675 , m_constructorSuccessCode( exchange( rhs.m_constructorSuccessCode, {} ) )
12676 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
12677 {
12678 }
12679
12680 PipelineBinaryKHR & operator=( PipelineBinaryKHR const & ) = delete;
12681
12682 PipelineBinaryKHR & operator=( PipelineBinaryKHR && rhs ) VULKAN_HPP_NOEXCEPT
12683 {
12684 if ( this != &rhs )
12685 {
12686 std::swap( m_device, rhs.m_device );
12687 std::swap( m_pipelineBinaryKHR, rhs.m_pipelineBinaryKHR );
12688 std::swap( m_allocator, rhs.m_allocator );
12689 std::swap( m_constructorSuccessCode, rhs.m_constructorSuccessCode );
12690 std::swap( m_dispatcher, rhs.m_dispatcher );
12691 }
12692 return *this;
12693 }
12694
12695 VULKAN_HPP_NAMESPACE::PipelineBinaryKHR const & operator*() const & VULKAN_HPP_NOEXCEPT
12696 {
12697 return m_pipelineBinaryKHR;
12698 }
12699
12700 VULKAN_HPP_NAMESPACE::PipelineBinaryKHR const && operator*() const && VULKAN_HPP_NOEXCEPT
12701 {
12702 return std::move( m_pipelineBinaryKHR );
12703 }
12704
12705 operator VULKAN_HPP_NAMESPACE::PipelineBinaryKHR() const VULKAN_HPP_NOEXCEPT
12706 {
12707 return m_pipelineBinaryKHR;
12708 }
12709
12710 void clear() VULKAN_HPP_NOEXCEPT
12711 {
12712 if ( m_pipelineBinaryKHR )
12713 {
12714 getDispatcher()->vkDestroyPipelineBinaryKHR( static_cast<VkDevice>( m_device ),
12715 static_cast<VkPipelineBinaryKHR>( m_pipelineBinaryKHR ),
12716 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
12717 }
12718 m_device = nullptr;
12719 m_pipelineBinaryKHR = nullptr;
12720 m_allocator = nullptr;
12721 m_constructorSuccessCode = Result::eErrorUnknown;
12722 m_dispatcher = nullptr;
12723 }
12724
12725 VULKAN_HPP_NAMESPACE::PipelineBinaryKHR release()
12726 {
12727 m_device = nullptr;
12728 m_allocator = nullptr;
12729 m_constructorSuccessCode = Result::eErrorUnknown;
12730 m_dispatcher = nullptr;
12731 return exchange( m_pipelineBinaryKHR, nullptr );
12732 }
12733
12734 Result getConstructorSuccessCode() const
12735 {
12736 return m_constructorSuccessCode;
12737 }
12738
12739 VULKAN_HPP_NAMESPACE::Device getDevice() const
12740 {
12741 return m_device;
12742 }
12743
12744 detail::DeviceDispatcher const * getDispatcher() const
12745 {
12746 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
12747 return m_dispatcher;
12748 }
12749
12750 void swap( PipelineBinaryKHR & rhs ) VULKAN_HPP_NOEXCEPT
12751 {
12752 std::swap( m_device, rhs.m_device );
12753 std::swap( m_pipelineBinaryKHR, rhs.m_pipelineBinaryKHR );
12754 std::swap( m_allocator, rhs.m_allocator );
12755 std::swap( m_constructorSuccessCode, rhs.m_constructorSuccessCode );
12756 std::swap( m_dispatcher, rhs.m_dispatcher );
12757 }
12758
12759 private:
12760 VULKAN_HPP_NAMESPACE::Device m_device = {};
12761 VULKAN_HPP_NAMESPACE::PipelineBinaryKHR m_pipelineBinaryKHR = {};
12762 AllocationCallbacks const * m_allocator = {};
12763 Result m_constructorSuccessCode = Result::eErrorUnknown;
12764 detail::DeviceDispatcher const * m_dispatcher = nullptr;
12765 };
12766
12767 template <>
12768 struct isVulkanRAIIHandleType<PipelineBinaryKHR>
12769 {
12770 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
12771 };
12772
12773 class PipelineBinaryKHRs : public std::vector<PipelineBinaryKHR>
12774 {
12775 public:
12776 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12777 PipelineBinaryKHRs( Device const & device, PipelineBinaryCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
12778 {
12779 *this = device.createPipelineBinariesKHR( createInfo, allocator );
12780 }
12781 # endif
12782
12783 PipelineBinaryKHRs( std::nullptr_t ) {}
12784
12785 PipelineBinaryKHRs() = delete;
12786 PipelineBinaryKHRs( PipelineBinaryKHRs const & ) = delete;
12787 PipelineBinaryKHRs( PipelineBinaryKHRs && rhs ) = default;
12788 PipelineBinaryKHRs & operator=( PipelineBinaryKHRs const & ) = delete;
12789 PipelineBinaryKHRs & operator=( PipelineBinaryKHRs && rhs ) = default;
12790
12791 PipelineBinaryKHRs( std::vector<PipelineBinaryKHR> && rhs )
12792 {
12793 std::swap( *this, rhs );
12794 }
12795 };
12796
12797 // wrapper class for handle VkPipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkPipelineLayout.html
12798 class PipelineLayout
12799 {
12800 public:
12801 using CType = VkPipelineLayout;
12802 using CppType = VULKAN_HPP_NAMESPACE::PipelineLayout;
12803
12804 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::ePipelineLayout;
12805 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::ePipelineLayout;
12806
12807 public:
12808 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12809 PipelineLayout( Device const & device, PipelineLayoutCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
12810 {
12811 *this = device.createPipelineLayout( createInfo, allocator );
12812 }
12813 # endif
12814
12815 PipelineLayout( Device const & device, VkPipelineLayout pipelineLayout, Optional<AllocationCallbacks const> allocator = nullptr )
12816 : m_device( device )
12817 , m_pipelineLayout( pipelineLayout )
12818 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
12819 , m_dispatcher( device.getDispatcher() )
12820 {
12821 }
12822
12823 PipelineLayout( std::nullptr_t ) {}
12824
12825 ~PipelineLayout()
12826 {
12827 clear();
12828 }
12829
12830 PipelineLayout() = delete;
12831 PipelineLayout( PipelineLayout const & ) = delete;
12832
12833 PipelineLayout( PipelineLayout && rhs ) VULKAN_HPP_NOEXCEPT
12834 : m_device( exchange( rhs.m_device, {} ) )
12835 , m_pipelineLayout( exchange( rhs.m_pipelineLayout, {} ) )
12836 , m_allocator( exchange( rhs.m_allocator, {} ) )
12837 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
12838 {
12839 }
12840
12841 PipelineLayout & operator=( PipelineLayout const & ) = delete;
12842
12843 PipelineLayout & operator=( PipelineLayout && rhs ) VULKAN_HPP_NOEXCEPT
12844 {
12845 if ( this != &rhs )
12846 {
12847 std::swap( m_device, rhs.m_device );
12848 std::swap( m_pipelineLayout, rhs.m_pipelineLayout );
12849 std::swap( m_allocator, rhs.m_allocator );
12850 std::swap( m_dispatcher, rhs.m_dispatcher );
12851 }
12852 return *this;
12853 }
12854
12855 VULKAN_HPP_NAMESPACE::PipelineLayout const & operator*() const & VULKAN_HPP_NOEXCEPT
12856 {
12857 return m_pipelineLayout;
12858 }
12859
12860 VULKAN_HPP_NAMESPACE::PipelineLayout const && operator*() const && VULKAN_HPP_NOEXCEPT
12861 {
12862 return std::move( m_pipelineLayout );
12863 }
12864
12865 operator VULKAN_HPP_NAMESPACE::PipelineLayout() const VULKAN_HPP_NOEXCEPT
12866 {
12867 return m_pipelineLayout;
12868 }
12869
12870 void clear() VULKAN_HPP_NOEXCEPT
12871 {
12872 if ( m_pipelineLayout )
12873 {
12874 getDispatcher()->vkDestroyPipelineLayout( static_cast<VkDevice>( m_device ),
12875 static_cast<VkPipelineLayout>( m_pipelineLayout ),
12876 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
12877 }
12878 m_device = nullptr;
12879 m_pipelineLayout = nullptr;
12880 m_allocator = nullptr;
12881 m_dispatcher = nullptr;
12882 }
12883
12884 VULKAN_HPP_NAMESPACE::PipelineLayout release()
12885 {
12886 m_device = nullptr;
12887 m_allocator = nullptr;
12888 m_dispatcher = nullptr;
12889 return exchange( m_pipelineLayout, nullptr );
12890 }
12891
12892 VULKAN_HPP_NAMESPACE::Device getDevice() const
12893 {
12894 return m_device;
12895 }
12896
12897 detail::DeviceDispatcher const * getDispatcher() const
12898 {
12899 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
12900 return m_dispatcher;
12901 }
12902
12903 void swap( PipelineLayout & rhs ) VULKAN_HPP_NOEXCEPT
12904 {
12905 std::swap( m_device, rhs.m_device );
12906 std::swap( m_pipelineLayout, rhs.m_pipelineLayout );
12907 std::swap( m_allocator, rhs.m_allocator );
12908 std::swap( m_dispatcher, rhs.m_dispatcher );
12909 }
12910
12911 private:
12912 VULKAN_HPP_NAMESPACE::Device m_device = {};
12913 VULKAN_HPP_NAMESPACE::PipelineLayout m_pipelineLayout = {};
12914 AllocationCallbacks const * m_allocator = {};
12915 detail::DeviceDispatcher const * m_dispatcher = nullptr;
12916 };
12917
12918 template <>
12919 struct isVulkanRAIIHandleType<PipelineLayout>
12920 {
12921 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
12922 };
12923
12924 // wrapper class for handle VkPrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkPrivateDataSlot.html
12925 class PrivateDataSlot
12926 {
12927 public:
12928 using CType = VkPrivateDataSlot;
12929 using CppType = VULKAN_HPP_NAMESPACE::PrivateDataSlot;
12930
12931 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::ePrivateDataSlot;
12932 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
12933
12934 public:
12935 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
12936 PrivateDataSlot( Device const & device, PrivateDataSlotCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
12937 {
12938 *this = device.createPrivateDataSlot( createInfo, allocator );
12939 }
12940 # endif
12941
12942 PrivateDataSlot( Device const & device, VkPrivateDataSlot privateDataSlot, Optional<AllocationCallbacks const> allocator = nullptr )
12943 : m_device( device )
12944 , m_privateDataSlot( privateDataSlot )
12945 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
12946 , m_dispatcher( device.getDispatcher() )
12947 {
12948 }
12949
12950 PrivateDataSlot( std::nullptr_t ) {}
12951
12952 ~PrivateDataSlot()
12953 {
12954 clear();
12955 }
12956
12957 PrivateDataSlot() = delete;
12958 PrivateDataSlot( PrivateDataSlot const & ) = delete;
12959
12960 PrivateDataSlot( PrivateDataSlot && rhs ) VULKAN_HPP_NOEXCEPT
12961 : m_device( exchange( rhs.m_device, {} ) )
12962 , m_privateDataSlot( exchange( rhs.m_privateDataSlot, {} ) )
12963 , m_allocator( exchange( rhs.m_allocator, {} ) )
12964 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
12965 {
12966 }
12967
12968 PrivateDataSlot & operator=( PrivateDataSlot const & ) = delete;
12969
12970 PrivateDataSlot & operator=( PrivateDataSlot && rhs ) VULKAN_HPP_NOEXCEPT
12971 {
12972 if ( this != &rhs )
12973 {
12974 std::swap( m_device, rhs.m_device );
12975 std::swap( m_privateDataSlot, rhs.m_privateDataSlot );
12976 std::swap( m_allocator, rhs.m_allocator );
12977 std::swap( m_dispatcher, rhs.m_dispatcher );
12978 }
12979 return *this;
12980 }
12981
12982 VULKAN_HPP_NAMESPACE::PrivateDataSlot const & operator*() const & VULKAN_HPP_NOEXCEPT
12983 {
12984 return m_privateDataSlot;
12985 }
12986
12987 VULKAN_HPP_NAMESPACE::PrivateDataSlot const && operator*() const && VULKAN_HPP_NOEXCEPT
12988 {
12989 return std::move( m_privateDataSlot );
12990 }
12991
12992 operator VULKAN_HPP_NAMESPACE::PrivateDataSlot() const VULKAN_HPP_NOEXCEPT
12993 {
12994 return m_privateDataSlot;
12995 }
12996
12997 void clear() VULKAN_HPP_NOEXCEPT
12998 {
12999 if ( m_privateDataSlot )
13000 {
13001 getDispatcher()->vkDestroyPrivateDataSlot( static_cast<VkDevice>( m_device ),
13002 static_cast<VkPrivateDataSlot>( m_privateDataSlot ),
13003 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
13004 }
13005 m_device = nullptr;
13006 m_privateDataSlot = nullptr;
13007 m_allocator = nullptr;
13008 m_dispatcher = nullptr;
13009 }
13010
13011 VULKAN_HPP_NAMESPACE::PrivateDataSlot release()
13012 {
13013 m_device = nullptr;
13014 m_allocator = nullptr;
13015 m_dispatcher = nullptr;
13016 return exchange( m_privateDataSlot, nullptr );
13017 }
13018
13019 VULKAN_HPP_NAMESPACE::Device getDevice() const
13020 {
13021 return m_device;
13022 }
13023
13024 detail::DeviceDispatcher const * getDispatcher() const
13025 {
13026 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
13027 return m_dispatcher;
13028 }
13029
13030 void swap( PrivateDataSlot & rhs ) VULKAN_HPP_NOEXCEPT
13031 {
13032 std::swap( m_device, rhs.m_device );
13033 std::swap( m_privateDataSlot, rhs.m_privateDataSlot );
13034 std::swap( m_allocator, rhs.m_allocator );
13035 std::swap( m_dispatcher, rhs.m_dispatcher );
13036 }
13037
13038 private:
13039 VULKAN_HPP_NAMESPACE::Device m_device = {};
13040 VULKAN_HPP_NAMESPACE::PrivateDataSlot m_privateDataSlot = {};
13041 AllocationCallbacks const * m_allocator = {};
13042 detail::DeviceDispatcher const * m_dispatcher = nullptr;
13043 };
13044
13045 template <>
13046 struct isVulkanRAIIHandleType<PrivateDataSlot>
13047 {
13048 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
13049 };
13050
13051 // wrapper class for handle VkQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkQueryPool.html
13052 class QueryPool
13053 {
13054 public:
13055 using CType = VkQueryPool;
13056 using CppType = VULKAN_HPP_NAMESPACE::QueryPool;
13057
13058 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eQueryPool;
13059 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eQueryPool;
13060
13061 public:
13062 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
13063 QueryPool( Device const & device, QueryPoolCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
13064 {
13065 *this = device.createQueryPool( createInfo, allocator );
13066 }
13067 # endif
13068
13069 QueryPool( Device const & device, VkQueryPool queryPool, Optional<AllocationCallbacks const> allocator = nullptr )
13070 : m_device( device )
13071 , m_queryPool( queryPool )
13072 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
13073 , m_dispatcher( device.getDispatcher() )
13074 {
13075 }
13076
13077 QueryPool( std::nullptr_t ) {}
13078
13079 ~QueryPool()
13080 {
13081 clear();
13082 }
13083
13084 QueryPool() = delete;
13085 QueryPool( QueryPool const & ) = delete;
13086
13087 QueryPool( QueryPool && rhs ) VULKAN_HPP_NOEXCEPT
13088 : m_device( exchange( rhs.m_device, {} ) )
13089 , m_queryPool( exchange( rhs.m_queryPool, {} ) )
13090 , m_allocator( exchange( rhs.m_allocator, {} ) )
13091 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
13092 {
13093 }
13094
13095 QueryPool & operator=( QueryPool const & ) = delete;
13096
13097 QueryPool & operator=( QueryPool && rhs ) VULKAN_HPP_NOEXCEPT
13098 {
13099 if ( this != &rhs )
13100 {
13101 std::swap( m_device, rhs.m_device );
13102 std::swap( m_queryPool, rhs.m_queryPool );
13103 std::swap( m_allocator, rhs.m_allocator );
13104 std::swap( m_dispatcher, rhs.m_dispatcher );
13105 }
13106 return *this;
13107 }
13108
13109 VULKAN_HPP_NAMESPACE::QueryPool const & operator*() const & VULKAN_HPP_NOEXCEPT
13110 {
13111 return m_queryPool;
13112 }
13113
13114 VULKAN_HPP_NAMESPACE::QueryPool const && operator*() const && VULKAN_HPP_NOEXCEPT
13115 {
13116 return std::move( m_queryPool );
13117 }
13118
13119 operator VULKAN_HPP_NAMESPACE::QueryPool() const VULKAN_HPP_NOEXCEPT
13120 {
13121 return m_queryPool;
13122 }
13123
13124 void clear() VULKAN_HPP_NOEXCEPT
13125 {
13126 if ( m_queryPool )
13127 {
13128 getDispatcher()->vkDestroyQueryPool(
13129 static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( m_queryPool ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
13130 }
13131 m_device = nullptr;
13132 m_queryPool = nullptr;
13133 m_allocator = nullptr;
13134 m_dispatcher = nullptr;
13135 }
13136
13137 VULKAN_HPP_NAMESPACE::QueryPool release()
13138 {
13139 m_device = nullptr;
13140 m_allocator = nullptr;
13141 m_dispatcher = nullptr;
13142 return exchange( m_queryPool, nullptr );
13143 }
13144
13145 VULKAN_HPP_NAMESPACE::Device getDevice() const
13146 {
13147 return m_device;
13148 }
13149
13150 detail::DeviceDispatcher const * getDispatcher() const
13151 {
13152 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
13153 return m_dispatcher;
13154 }
13155
13156 void swap( QueryPool & rhs ) VULKAN_HPP_NOEXCEPT
13157 {
13158 std::swap( m_device, rhs.m_device );
13159 std::swap( m_queryPool, rhs.m_queryPool );
13160 std::swap( m_allocator, rhs.m_allocator );
13161 std::swap( m_dispatcher, rhs.m_dispatcher );
13162 }
13163
13164 //=== VK_VERSION_1_0 ===
13165
13166 // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html
13167 VULKAN_HPP_NODISCARD Result getResults(
13168 uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void * pData, DeviceSize stride, QueryResultFlags flags ) const VULKAN_HPP_NOEXCEPT;
13169
13170 // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html
13171 template <typename DataType>
13172 VULKAN_HPP_NODISCARD ResultValue<std::vector<DataType>> getResults(
13173 uint32_t firstQuery, uint32_t queryCount, size_t dataSize, DeviceSize stride, QueryResultFlags flags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
13174
13175 // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html
13176 template <typename DataType>
13177 VULKAN_HPP_NODISCARD ResultValue<DataType>
13178 getResult( uint32_t firstQuery, uint32_t queryCount, DeviceSize stride, QueryResultFlags flags VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
13179
13180 //=== VK_VERSION_1_2 ===
13181
13182 // wrapper function for command vkResetQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetQueryPool.html
13183 void reset( uint32_t firstQuery, uint32_t queryCount ) const VULKAN_HPP_NOEXCEPT;
13184
13185 //=== VK_EXT_host_query_reset ===
13186
13187 // wrapper function for command vkResetQueryPoolEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetQueryPoolEXT.html
13188 void resetEXT( uint32_t firstQuery, uint32_t queryCount ) const VULKAN_HPP_NOEXCEPT;
13189
13190 private:
13191 VULKAN_HPP_NAMESPACE::Device m_device = {};
13192 VULKAN_HPP_NAMESPACE::QueryPool m_queryPool = {};
13193 AllocationCallbacks const * m_allocator = {};
13194 detail::DeviceDispatcher const * m_dispatcher = nullptr;
13195 };
13196
13197 template <>
13198 struct isVulkanRAIIHandleType<QueryPool>
13199 {
13200 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
13201 };
13202
13203 // wrapper class for handle VkQueue, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkQueue.html
13204 class Queue
13205 {
13206 public:
13207 using CType = VkQueue;
13208 using CppType = VULKAN_HPP_NAMESPACE::Queue;
13209
13210 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eQueue;
13211 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eQueue;
13212
13213 public:
13214 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
13215 Queue( Device const & device, uint32_t queueFamilyIndex, uint32_t queueIndex )
13216 {
13217 *this = device.getQueue( queueFamilyIndex, queueIndex );
13218 }
13219 # endif
13220
13221 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
13222 Queue( Device const & device, DeviceQueueInfo2 const & queueInfo )
13223 {
13224 *this = device.getQueue2( queueInfo );
13225 }
13226 # endif
13227
13228 Queue( Device const & device, VkQueue queue ) : m_queue( queue ), m_dispatcher( device.getDispatcher() ) {}
13229
13230 Queue( std::nullptr_t ) {}
13231
13232 ~Queue()
13233 {
13234 clear();
13235 }
13236
13237 Queue() = delete;
13238
13239 Queue( Queue const & rhs ) : m_queue( rhs.m_queue ), m_dispatcher( rhs.m_dispatcher ) {}
13240
13241 Queue( Queue && rhs ) VULKAN_HPP_NOEXCEPT
13242 : m_queue( exchange( rhs.m_queue, {} ) )
13243 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
13244 {
13245 }
13246
13247 Queue & operator=( Queue const & rhs )
13248 {
13249 m_queue = rhs.m_queue;
13250 m_dispatcher = rhs.m_dispatcher;
13251 return *this;
13252 }
13253
13254 Queue & operator=( Queue && rhs ) VULKAN_HPP_NOEXCEPT
13255 {
13256 if ( this != &rhs )
13257 {
13258 std::swap( m_queue, rhs.m_queue );
13259 std::swap( m_dispatcher, rhs.m_dispatcher );
13260 }
13261 return *this;
13262 }
13263
13264 VULKAN_HPP_NAMESPACE::Queue const & operator*() const & VULKAN_HPP_NOEXCEPT
13265 {
13266 return m_queue;
13267 }
13268
13269 VULKAN_HPP_NAMESPACE::Queue const && operator*() const && VULKAN_HPP_NOEXCEPT
13270 {
13271 return std::move( m_queue );
13272 }
13273
13274 operator VULKAN_HPP_NAMESPACE::Queue() const VULKAN_HPP_NOEXCEPT
13275 {
13276 return m_queue;
13277 }
13278
13279 void clear() VULKAN_HPP_NOEXCEPT
13280 {
13281 m_queue = nullptr;
13282 m_dispatcher = nullptr;
13283 }
13284
13285 VULKAN_HPP_NAMESPACE::Queue release()
13286 {
13287 m_dispatcher = nullptr;
13288 return exchange( m_queue, nullptr );
13289 }
13290
13291 detail::DeviceDispatcher const * getDispatcher() const
13292 {
13293 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
13294 return m_dispatcher;
13295 }
13296
13297 void swap( Queue & rhs ) VULKAN_HPP_NOEXCEPT
13298 {
13299 std::swap( m_queue, rhs.m_queue );
13300 std::swap( m_dispatcher, rhs.m_dispatcher );
13301 }
13302
13303 //=== VK_VERSION_1_0 ===
13304
13305 // wrapper function for command vkQueueSubmit, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit.html
13306 typename ResultValueType<void>::type submit( ArrayProxy<SubmitInfo const> const & submits,
13307 VULKAN_HPP_NAMESPACE::Fence fence VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
13308
13309 // wrapper function for command vkQueueWaitIdle, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueWaitIdle.html
13310 typename ResultValueType<void>::type waitIdle() const;
13311
13312 // wrapper function for command vkQueueBindSparse, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueBindSparse.html
13313 typename ResultValueType<void>::type bindSparse( ArrayProxy<BindSparseInfo const> const & bindInfo,
13314 VULKAN_HPP_NAMESPACE::Fence fence VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
13315
13316 //=== VK_VERSION_1_3 ===
13317
13318 // wrapper function for command vkQueueSubmit2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2.html
13319 typename ResultValueType<void>::type submit2( ArrayProxy<SubmitInfo2 const> const & submits,
13320 VULKAN_HPP_NAMESPACE::Fence fence VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
13321
13322 //=== VK_KHR_swapchain ===
13323
13324 // wrapper function for command vkQueuePresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueuePresentKHR.html
13325 VULKAN_HPP_NODISCARD Result presentKHR( PresentInfoKHR const & presentInfo ) const;
13326
13327 //=== VK_EXT_debug_utils ===
13328
13329 // wrapper function for command vkQueueBeginDebugUtilsLabelEXT, see
13330 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueBeginDebugUtilsLabelEXT.html
13331 void beginDebugUtilsLabelEXT( DebugUtilsLabelEXT const & labelInfo ) const VULKAN_HPP_NOEXCEPT;
13332
13333 // wrapper function for command vkQueueEndDebugUtilsLabelEXT, see
13334 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueEndDebugUtilsLabelEXT.html
13335 void endDebugUtilsLabelEXT() const VULKAN_HPP_NOEXCEPT;
13336
13337 // wrapper function for command vkQueueInsertDebugUtilsLabelEXT, see
13338 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueInsertDebugUtilsLabelEXT.html
13339 void insertDebugUtilsLabelEXT( DebugUtilsLabelEXT const & labelInfo ) const VULKAN_HPP_NOEXCEPT;
13340
13341 //=== VK_NV_device_diagnostic_checkpoints ===
13342
13343 // wrapper function for command vkGetQueueCheckpointDataNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointDataNV.html
13344 VULKAN_HPP_NODISCARD std::vector<CheckpointDataNV> getCheckpointDataNV() const;
13345
13346 // wrapper function for command vkGetQueueCheckpointData2NV, see
13347 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointData2NV.html
13348 VULKAN_HPP_NODISCARD std::vector<CheckpointData2NV> getCheckpointData2NV() const;
13349
13350 //=== VK_INTEL_performance_query ===
13351
13352 // wrapper function for command vkQueueSetPerformanceConfigurationINTEL, see
13353 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSetPerformanceConfigurationINTEL.html
13354 typename ResultValueType<void>::type setPerformanceConfigurationINTEL( VULKAN_HPP_NAMESPACE::PerformanceConfigurationINTEL configuration ) const;
13355
13356 //=== VK_KHR_synchronization2 ===
13357
13358 // wrapper function for command vkQueueSubmit2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2KHR.html
13359 typename ResultValueType<void>::type submit2KHR( ArrayProxy<SubmitInfo2 const> const & submits,
13360 VULKAN_HPP_NAMESPACE::Fence fence VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
13361
13362 //=== VK_NV_low_latency2 ===
13363
13364 // wrapper function for command vkQueueNotifyOutOfBandNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueNotifyOutOfBandNV.html
13365 void notifyOutOfBandNV( OutOfBandQueueTypeInfoNV const & queueTypeInfo ) const VULKAN_HPP_NOEXCEPT;
13366
13367 private:
13368 VULKAN_HPP_NAMESPACE::Queue m_queue = {};
13369 detail::DeviceDispatcher const * m_dispatcher = nullptr;
13370 };
13371
13372 template <>
13373 struct isVulkanRAIIHandleType<Queue>
13374 {
13375 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
13376 };
13377
13378 // wrapper class for handle VkRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkRenderPass.html
13379 class RenderPass
13380 {
13381 public:
13382 using CType = VkRenderPass;
13383 using CppType = VULKAN_HPP_NAMESPACE::RenderPass;
13384
13385 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eRenderPass;
13386 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eRenderPass;
13387
13388 public:
13389 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
13390 RenderPass( Device const & device, RenderPassCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
13391 {
13392 *this = device.createRenderPass( createInfo, allocator );
13393 }
13394 # endif
13395
13396 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
13397 RenderPass( Device const & device, RenderPassCreateInfo2 const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
13398 {
13399 *this = device.createRenderPass2( createInfo, allocator );
13400 }
13401 # endif
13402
13403 RenderPass( Device const & device, VkRenderPass renderPass, Optional<AllocationCallbacks const> allocator = nullptr )
13404 : m_device( device )
13405 , m_renderPass( renderPass )
13406 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
13407 , m_dispatcher( device.getDispatcher() )
13408 {
13409 }
13410
13411 RenderPass( std::nullptr_t ) {}
13412
13413 ~RenderPass()
13414 {
13415 clear();
13416 }
13417
13418 RenderPass() = delete;
13419 RenderPass( RenderPass const & ) = delete;
13420
13421 RenderPass( RenderPass && rhs ) VULKAN_HPP_NOEXCEPT
13422 : m_device( exchange( rhs.m_device, {} ) )
13423 , m_renderPass( exchange( rhs.m_renderPass, {} ) )
13424 , m_allocator( exchange( rhs.m_allocator, {} ) )
13425 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
13426 {
13427 }
13428
13429 RenderPass & operator=( RenderPass const & ) = delete;
13430
13431 RenderPass & operator=( RenderPass && rhs ) VULKAN_HPP_NOEXCEPT
13432 {
13433 if ( this != &rhs )
13434 {
13435 std::swap( m_device, rhs.m_device );
13436 std::swap( m_renderPass, rhs.m_renderPass );
13437 std::swap( m_allocator, rhs.m_allocator );
13438 std::swap( m_dispatcher, rhs.m_dispatcher );
13439 }
13440 return *this;
13441 }
13442
13443 VULKAN_HPP_NAMESPACE::RenderPass const & operator*() const & VULKAN_HPP_NOEXCEPT
13444 {
13445 return m_renderPass;
13446 }
13447
13448 VULKAN_HPP_NAMESPACE::RenderPass const && operator*() const && VULKAN_HPP_NOEXCEPT
13449 {
13450 return std::move( m_renderPass );
13451 }
13452
13453 operator VULKAN_HPP_NAMESPACE::RenderPass() const VULKAN_HPP_NOEXCEPT
13454 {
13455 return m_renderPass;
13456 }
13457
13458 void clear() VULKAN_HPP_NOEXCEPT
13459 {
13460 if ( m_renderPass )
13461 {
13462 getDispatcher()->vkDestroyRenderPass(
13463 static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( m_renderPass ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
13464 }
13465 m_device = nullptr;
13466 m_renderPass = nullptr;
13467 m_allocator = nullptr;
13468 m_dispatcher = nullptr;
13469 }
13470
13471 VULKAN_HPP_NAMESPACE::RenderPass release()
13472 {
13473 m_device = nullptr;
13474 m_allocator = nullptr;
13475 m_dispatcher = nullptr;
13476 return exchange( m_renderPass, nullptr );
13477 }
13478
13479 VULKAN_HPP_NAMESPACE::Device getDevice() const
13480 {
13481 return m_device;
13482 }
13483
13484 detail::DeviceDispatcher const * getDispatcher() const
13485 {
13486 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
13487 return m_dispatcher;
13488 }
13489
13490 void swap( RenderPass & rhs ) VULKAN_HPP_NOEXCEPT
13491 {
13492 std::swap( m_device, rhs.m_device );
13493 std::swap( m_renderPass, rhs.m_renderPass );
13494 std::swap( m_allocator, rhs.m_allocator );
13495 std::swap( m_dispatcher, rhs.m_dispatcher );
13496 }
13497
13498 //=== VK_VERSION_1_0 ===
13499
13500 // wrapper function for command vkGetRenderAreaGranularity, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderAreaGranularity.html
13501 VULKAN_HPP_NODISCARD Extent2D getRenderAreaGranularity() const VULKAN_HPP_NOEXCEPT;
13502
13503 //=== VK_HUAWEI_subpass_shading ===
13504
13505 // wrapper function for command vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI, see
13506 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI.html
13507 VULKAN_HPP_NODISCARD typename ResultValueType<Extent2D>::type getSubpassShadingMaxWorkgroupSizeHUAWEI() const;
13508
13509 private:
13510 VULKAN_HPP_NAMESPACE::Device m_device = {};
13511 VULKAN_HPP_NAMESPACE::RenderPass m_renderPass = {};
13512 AllocationCallbacks const * m_allocator = {};
13513 detail::DeviceDispatcher const * m_dispatcher = nullptr;
13514 };
13515
13516 template <>
13517 struct isVulkanRAIIHandleType<RenderPass>
13518 {
13519 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
13520 };
13521
13522 // wrapper class for handle VkSampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkSampler.html
13523 class Sampler
13524 {
13525 public:
13526 using CType = VkSampler;
13527 using CppType = VULKAN_HPP_NAMESPACE::Sampler;
13528
13529 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eSampler;
13530 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eSampler;
13531
13532 public:
13533 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
13534 Sampler( Device const & device, SamplerCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
13535 {
13536 *this = device.createSampler( createInfo, allocator );
13537 }
13538 # endif
13539
13540 Sampler( Device const & device, VkSampler sampler, Optional<AllocationCallbacks const> allocator = nullptr )
13541 : m_device( device ), m_sampler( sampler ), m_allocator( static_cast<const AllocationCallbacks *>( allocator ) ), m_dispatcher( device.getDispatcher() )
13542 {
13543 }
13544
13545 Sampler( std::nullptr_t ) {}
13546
13547 ~Sampler()
13548 {
13549 clear();
13550 }
13551
13552 Sampler() = delete;
13553 Sampler( Sampler const & ) = delete;
13554
13555 Sampler( Sampler && rhs ) VULKAN_HPP_NOEXCEPT
13556 : m_device( exchange( rhs.m_device, {} ) )
13557 , m_sampler( exchange( rhs.m_sampler, {} ) )
13558 , m_allocator( exchange( rhs.m_allocator, {} ) )
13559 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
13560 {
13561 }
13562
13563 Sampler & operator=( Sampler const & ) = delete;
13564
13565 Sampler & operator=( Sampler && rhs ) VULKAN_HPP_NOEXCEPT
13566 {
13567 if ( this != &rhs )
13568 {
13569 std::swap( m_device, rhs.m_device );
13570 std::swap( m_sampler, rhs.m_sampler );
13571 std::swap( m_allocator, rhs.m_allocator );
13572 std::swap( m_dispatcher, rhs.m_dispatcher );
13573 }
13574 return *this;
13575 }
13576
13577 VULKAN_HPP_NAMESPACE::Sampler const & operator*() const & VULKAN_HPP_NOEXCEPT
13578 {
13579 return m_sampler;
13580 }
13581
13582 VULKAN_HPP_NAMESPACE::Sampler const && operator*() const && VULKAN_HPP_NOEXCEPT
13583 {
13584 return std::move( m_sampler );
13585 }
13586
13587 operator VULKAN_HPP_NAMESPACE::Sampler() const VULKAN_HPP_NOEXCEPT
13588 {
13589 return m_sampler;
13590 }
13591
13592 void clear() VULKAN_HPP_NOEXCEPT
13593 {
13594 if ( m_sampler )
13595 {
13596 getDispatcher()->vkDestroySampler(
13597 static_cast<VkDevice>( m_device ), static_cast<VkSampler>( m_sampler ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
13598 }
13599 m_device = nullptr;
13600 m_sampler = nullptr;
13601 m_allocator = nullptr;
13602 m_dispatcher = nullptr;
13603 }
13604
13605 VULKAN_HPP_NAMESPACE::Sampler release()
13606 {
13607 m_device = nullptr;
13608 m_allocator = nullptr;
13609 m_dispatcher = nullptr;
13610 return exchange( m_sampler, nullptr );
13611 }
13612
13613 VULKAN_HPP_NAMESPACE::Device getDevice() const
13614 {
13615 return m_device;
13616 }
13617
13618 detail::DeviceDispatcher const * getDispatcher() const
13619 {
13620 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
13621 return m_dispatcher;
13622 }
13623
13624 void swap( Sampler & rhs ) VULKAN_HPP_NOEXCEPT
13625 {
13626 std::swap( m_device, rhs.m_device );
13627 std::swap( m_sampler, rhs.m_sampler );
13628 std::swap( m_allocator, rhs.m_allocator );
13629 std::swap( m_dispatcher, rhs.m_dispatcher );
13630 }
13631
13632 private:
13633 VULKAN_HPP_NAMESPACE::Device m_device = {};
13634 VULKAN_HPP_NAMESPACE::Sampler m_sampler = {};
13635 AllocationCallbacks const * m_allocator = {};
13636 detail::DeviceDispatcher const * m_dispatcher = nullptr;
13637 };
13638
13639 template <>
13640 struct isVulkanRAIIHandleType<Sampler>
13641 {
13642 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
13643 };
13644
13645 // wrapper class for handle VkSamplerYcbcrConversion, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkSamplerYcbcrConversion.html
13646 class SamplerYcbcrConversion
13647 {
13648 public:
13649 using CType = VkSamplerYcbcrConversion;
13650 using CppType = VULKAN_HPP_NAMESPACE::SamplerYcbcrConversion;
13651
13652 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eSamplerYcbcrConversion;
13653 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eSamplerYcbcrConversion;
13654
13655 public:
13656 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
13657 SamplerYcbcrConversion( Device const & device,
13658 SamplerYcbcrConversionCreateInfo const & createInfo,
13659 Optional<AllocationCallbacks const> allocator = nullptr )
13660 {
13661 *this = device.createSamplerYcbcrConversion( createInfo, allocator );
13662 }
13663 # endif
13664
13665 SamplerYcbcrConversion( Device const & device, VkSamplerYcbcrConversion ycbcrConversion, Optional<AllocationCallbacks const> allocator = nullptr )
13666 : m_device( device )
13667 , m_samplerYcbcrConversion( ycbcrConversion )
13668 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
13669 , m_dispatcher( device.getDispatcher() )
13670 {
13671 }
13672
13673 SamplerYcbcrConversion( std::nullptr_t ) {}
13674
13675 ~SamplerYcbcrConversion()
13676 {
13677 clear();
13678 }
13679
13680 SamplerYcbcrConversion() = delete;
13681 SamplerYcbcrConversion( SamplerYcbcrConversion const & ) = delete;
13682
13683 SamplerYcbcrConversion( SamplerYcbcrConversion && rhs ) VULKAN_HPP_NOEXCEPT
13684 : m_device( exchange( rhs.m_device, {} ) )
13685 , m_samplerYcbcrConversion( exchange( rhs.m_samplerYcbcrConversion, {} ) )
13686 , m_allocator( exchange( rhs.m_allocator, {} ) )
13687 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
13688 {
13689 }
13690
13691 SamplerYcbcrConversion & operator=( SamplerYcbcrConversion const & ) = delete;
13692
13693 SamplerYcbcrConversion & operator=( SamplerYcbcrConversion && rhs ) VULKAN_HPP_NOEXCEPT
13694 {
13695 if ( this != &rhs )
13696 {
13697 std::swap( m_device, rhs.m_device );
13698 std::swap( m_samplerYcbcrConversion, rhs.m_samplerYcbcrConversion );
13699 std::swap( m_allocator, rhs.m_allocator );
13700 std::swap( m_dispatcher, rhs.m_dispatcher );
13701 }
13702 return *this;
13703 }
13704
13705 VULKAN_HPP_NAMESPACE::SamplerYcbcrConversion const & operator*() const & VULKAN_HPP_NOEXCEPT
13706 {
13707 return m_samplerYcbcrConversion;
13708 }
13709
13710 VULKAN_HPP_NAMESPACE::SamplerYcbcrConversion const && operator*() const && VULKAN_HPP_NOEXCEPT
13711 {
13712 return std::move( m_samplerYcbcrConversion );
13713 }
13714
13715 operator VULKAN_HPP_NAMESPACE::SamplerYcbcrConversion() const VULKAN_HPP_NOEXCEPT
13716 {
13717 return m_samplerYcbcrConversion;
13718 }
13719
13720 void clear() VULKAN_HPP_NOEXCEPT
13721 {
13722 if ( m_samplerYcbcrConversion )
13723 {
13724 getDispatcher()->vkDestroySamplerYcbcrConversion( static_cast<VkDevice>( m_device ),
13725 static_cast<VkSamplerYcbcrConversion>( m_samplerYcbcrConversion ),
13726 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
13727 }
13728 m_device = nullptr;
13729 m_samplerYcbcrConversion = nullptr;
13730 m_allocator = nullptr;
13731 m_dispatcher = nullptr;
13732 }
13733
13734 VULKAN_HPP_NAMESPACE::SamplerYcbcrConversion release()
13735 {
13736 m_device = nullptr;
13737 m_allocator = nullptr;
13738 m_dispatcher = nullptr;
13739 return exchange( m_samplerYcbcrConversion, nullptr );
13740 }
13741
13742 VULKAN_HPP_NAMESPACE::Device getDevice() const
13743 {
13744 return m_device;
13745 }
13746
13747 detail::DeviceDispatcher const * getDispatcher() const
13748 {
13749 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
13750 return m_dispatcher;
13751 }
13752
13753 void swap( SamplerYcbcrConversion & rhs ) VULKAN_HPP_NOEXCEPT
13754 {
13755 std::swap( m_device, rhs.m_device );
13756 std::swap( m_samplerYcbcrConversion, rhs.m_samplerYcbcrConversion );
13757 std::swap( m_allocator, rhs.m_allocator );
13758 std::swap( m_dispatcher, rhs.m_dispatcher );
13759 }
13760
13761 private:
13762 VULKAN_HPP_NAMESPACE::Device m_device = {};
13763 VULKAN_HPP_NAMESPACE::SamplerYcbcrConversion m_samplerYcbcrConversion = {};
13764 AllocationCallbacks const * m_allocator = {};
13765 detail::DeviceDispatcher const * m_dispatcher = nullptr;
13766 };
13767
13768 template <>
13769 struct isVulkanRAIIHandleType<SamplerYcbcrConversion>
13770 {
13771 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
13772 };
13773
13774 // wrapper class for handle VkSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkSemaphore.html
13775 class Semaphore
13776 {
13777 public:
13778 using CType = VkSemaphore;
13779 using CppType = VULKAN_HPP_NAMESPACE::Semaphore;
13780
13781 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eSemaphore;
13782 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eSemaphore;
13783
13784 public:
13785 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
13786 Semaphore( Device const & device, SemaphoreCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
13787 {
13788 *this = device.createSemaphore( createInfo, allocator );
13789 }
13790 # endif
13791
13792 Semaphore( Device const & device, VkSemaphore semaphore, Optional<AllocationCallbacks const> allocator = nullptr )
13793 : m_device( device )
13794 , m_semaphore( semaphore )
13795 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
13796 , m_dispatcher( device.getDispatcher() )
13797 {
13798 }
13799
13800 Semaphore( std::nullptr_t ) {}
13801
13802 ~Semaphore()
13803 {
13804 clear();
13805 }
13806
13807 Semaphore() = delete;
13808 Semaphore( Semaphore const & ) = delete;
13809
13810 Semaphore( Semaphore && rhs ) VULKAN_HPP_NOEXCEPT
13811 : m_device( exchange( rhs.m_device, {} ) )
13812 , m_semaphore( exchange( rhs.m_semaphore, {} ) )
13813 , m_allocator( exchange( rhs.m_allocator, {} ) )
13814 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
13815 {
13816 }
13817
13818 Semaphore & operator=( Semaphore const & ) = delete;
13819
13820 Semaphore & operator=( Semaphore && rhs ) VULKAN_HPP_NOEXCEPT
13821 {
13822 if ( this != &rhs )
13823 {
13824 std::swap( m_device, rhs.m_device );
13825 std::swap( m_semaphore, rhs.m_semaphore );
13826 std::swap( m_allocator, rhs.m_allocator );
13827 std::swap( m_dispatcher, rhs.m_dispatcher );
13828 }
13829 return *this;
13830 }
13831
13832 VULKAN_HPP_NAMESPACE::Semaphore const & operator*() const & VULKAN_HPP_NOEXCEPT
13833 {
13834 return m_semaphore;
13835 }
13836
13837 VULKAN_HPP_NAMESPACE::Semaphore const && operator*() const && VULKAN_HPP_NOEXCEPT
13838 {
13839 return std::move( m_semaphore );
13840 }
13841
13842 operator VULKAN_HPP_NAMESPACE::Semaphore() const VULKAN_HPP_NOEXCEPT
13843 {
13844 return m_semaphore;
13845 }
13846
13847 void clear() VULKAN_HPP_NOEXCEPT
13848 {
13849 if ( m_semaphore )
13850 {
13851 getDispatcher()->vkDestroySemaphore(
13852 static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( m_semaphore ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
13853 }
13854 m_device = nullptr;
13855 m_semaphore = nullptr;
13856 m_allocator = nullptr;
13857 m_dispatcher = nullptr;
13858 }
13859
13860 VULKAN_HPP_NAMESPACE::Semaphore release()
13861 {
13862 m_device = nullptr;
13863 m_allocator = nullptr;
13864 m_dispatcher = nullptr;
13865 return exchange( m_semaphore, nullptr );
13866 }
13867
13868 VULKAN_HPP_NAMESPACE::Device getDevice() const
13869 {
13870 return m_device;
13871 }
13872
13873 detail::DeviceDispatcher const * getDispatcher() const
13874 {
13875 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
13876 return m_dispatcher;
13877 }
13878
13879 void swap( Semaphore & rhs ) VULKAN_HPP_NOEXCEPT
13880 {
13881 std::swap( m_device, rhs.m_device );
13882 std::swap( m_semaphore, rhs.m_semaphore );
13883 std::swap( m_allocator, rhs.m_allocator );
13884 std::swap( m_dispatcher, rhs.m_dispatcher );
13885 }
13886
13887 //=== VK_VERSION_1_2 ===
13888
13889 // wrapper function for command vkGetSemaphoreCounterValue, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValue.html
13890 VULKAN_HPP_NODISCARD typename ResultValueType<uint64_t>::type getCounterValue() const;
13891
13892 //=== VK_KHR_timeline_semaphore ===
13893
13894 // wrapper function for command vkGetSemaphoreCounterValueKHR, see
13895 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValueKHR.html
13896 VULKAN_HPP_NODISCARD typename ResultValueType<uint64_t>::type getCounterValueKHR() const;
13897
13898 private:
13899 VULKAN_HPP_NAMESPACE::Device m_device = {};
13900 VULKAN_HPP_NAMESPACE::Semaphore m_semaphore = {};
13901 AllocationCallbacks const * m_allocator = {};
13902 detail::DeviceDispatcher const * m_dispatcher = nullptr;
13903 };
13904
13905 template <>
13906 struct isVulkanRAIIHandleType<Semaphore>
13907 {
13908 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
13909 };
13910
13911 // wrapper class for handle VkShaderEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkShaderEXT.html
13912 class ShaderEXT
13913 {
13914 public:
13915 using CType = VkShaderEXT;
13916 using CppType = VULKAN_HPP_NAMESPACE::ShaderEXT;
13917
13918 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eShaderEXT;
13919 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
13920
13921 public:
13922 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
13923 ShaderEXT( Device const & device, ShaderCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
13924 {
13925 *this = device.createShaderEXT( createInfo, allocator );
13926 }
13927 # endif
13928
13929 ShaderEXT( Device const & device, VkShaderEXT shader, Optional<AllocationCallbacks const> allocator = nullptr, Result successCode = Result::eSuccess )
13930 : m_device( device )
13931 , m_shaderEXT( shader )
13932 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
13933 , m_constructorSuccessCode( successCode )
13934 , m_dispatcher( device.getDispatcher() )
13935 {
13936 }
13937
13938 ShaderEXT( std::nullptr_t ) {}
13939
13940 ~ShaderEXT()
13941 {
13942 clear();
13943 }
13944
13945 ShaderEXT() = delete;
13946 ShaderEXT( ShaderEXT const & ) = delete;
13947
13948 ShaderEXT( ShaderEXT && rhs ) VULKAN_HPP_NOEXCEPT
13949 : m_device( exchange( rhs.m_device, {} ) )
13950 , m_shaderEXT( exchange( rhs.m_shaderEXT, {} ) )
13951 , m_allocator( exchange( rhs.m_allocator, {} ) )
13952 , m_constructorSuccessCode( exchange( rhs.m_constructorSuccessCode, {} ) )
13953 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
13954 {
13955 }
13956
13957 ShaderEXT & operator=( ShaderEXT const & ) = delete;
13958
13959 ShaderEXT & operator=( ShaderEXT && rhs ) VULKAN_HPP_NOEXCEPT
13960 {
13961 if ( this != &rhs )
13962 {
13963 std::swap( m_device, rhs.m_device );
13964 std::swap( m_shaderEXT, rhs.m_shaderEXT );
13965 std::swap( m_allocator, rhs.m_allocator );
13966 std::swap( m_constructorSuccessCode, rhs.m_constructorSuccessCode );
13967 std::swap( m_dispatcher, rhs.m_dispatcher );
13968 }
13969 return *this;
13970 }
13971
13972 VULKAN_HPP_NAMESPACE::ShaderEXT const & operator*() const & VULKAN_HPP_NOEXCEPT
13973 {
13974 return m_shaderEXT;
13975 }
13976
13977 VULKAN_HPP_NAMESPACE::ShaderEXT const && operator*() const && VULKAN_HPP_NOEXCEPT
13978 {
13979 return std::move( m_shaderEXT );
13980 }
13981
13982 operator VULKAN_HPP_NAMESPACE::ShaderEXT() const VULKAN_HPP_NOEXCEPT
13983 {
13984 return m_shaderEXT;
13985 }
13986
13987 void clear() VULKAN_HPP_NOEXCEPT
13988 {
13989 if ( m_shaderEXT )
13990 {
13991 getDispatcher()->vkDestroyShaderEXT(
13992 static_cast<VkDevice>( m_device ), static_cast<VkShaderEXT>( m_shaderEXT ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
13993 }
13994 m_device = nullptr;
13995 m_shaderEXT = nullptr;
13996 m_allocator = nullptr;
13997 m_constructorSuccessCode = Result::eErrorUnknown;
13998 m_dispatcher = nullptr;
13999 }
14000
14001 VULKAN_HPP_NAMESPACE::ShaderEXT release()
14002 {
14003 m_device = nullptr;
14004 m_allocator = nullptr;
14005 m_constructorSuccessCode = Result::eErrorUnknown;
14006 m_dispatcher = nullptr;
14007 return exchange( m_shaderEXT, nullptr );
14008 }
14009
14010 Result getConstructorSuccessCode() const
14011 {
14012 return m_constructorSuccessCode;
14013 }
14014
14015 VULKAN_HPP_NAMESPACE::Device getDevice() const
14016 {
14017 return m_device;
14018 }
14019
14020 detail::DeviceDispatcher const * getDispatcher() const
14021 {
14022 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
14023 return m_dispatcher;
14024 }
14025
14026 void swap( ShaderEXT & rhs ) VULKAN_HPP_NOEXCEPT
14027 {
14028 std::swap( m_device, rhs.m_device );
14029 std::swap( m_shaderEXT, rhs.m_shaderEXT );
14030 std::swap( m_allocator, rhs.m_allocator );
14031 std::swap( m_constructorSuccessCode, rhs.m_constructorSuccessCode );
14032 std::swap( m_dispatcher, rhs.m_dispatcher );
14033 }
14034
14035 //=== VK_EXT_shader_object ===
14036
14037 // wrapper function for command vkGetShaderBinaryDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderBinaryDataEXT.html
14038 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t>>::type getBinaryData() const;
14039
14040 private:
14041 VULKAN_HPP_NAMESPACE::Device m_device = {};
14042 VULKAN_HPP_NAMESPACE::ShaderEXT m_shaderEXT = {};
14043 AllocationCallbacks const * m_allocator = {};
14044 Result m_constructorSuccessCode = Result::eErrorUnknown;
14045 detail::DeviceDispatcher const * m_dispatcher = nullptr;
14046 };
14047
14048 template <>
14049 struct isVulkanRAIIHandleType<ShaderEXT>
14050 {
14051 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
14052 };
14053
14054 class ShaderEXTs : public std::vector<ShaderEXT>
14055 {
14056 public:
14057 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14058 ShaderEXTs( Device const & device, ArrayProxy<ShaderCreateInfoEXT> const & createInfos, Optional<AllocationCallbacks const> allocator = nullptr )
14059 {
14060 *this = device.createShadersEXT( createInfos, allocator );
14061 }
14062 # endif
14063
14064 ShaderEXTs( std::nullptr_t ) {}
14065
14066 ShaderEXTs() = delete;
14067 ShaderEXTs( ShaderEXTs const & ) = delete;
14068 ShaderEXTs( ShaderEXTs && rhs ) = default;
14069 ShaderEXTs & operator=( ShaderEXTs const & ) = delete;
14070 ShaderEXTs & operator=( ShaderEXTs && rhs ) = default;
14071
14072 ShaderEXTs( std::vector<ShaderEXT> && rhs )
14073 {
14074 std::swap( *this, rhs );
14075 }
14076 };
14077
14078 // wrapper class for handle VkShaderInstrumentationARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkShaderInstrumentationARM.html
14079 class ShaderInstrumentationARM
14080 {
14081 public:
14082 using CType = VkShaderInstrumentationARM;
14083 using CppType = VULKAN_HPP_NAMESPACE::ShaderInstrumentationARM;
14084
14085 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eShaderInstrumentationARM;
14086 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
14087
14088 public:
14089 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14090 ShaderInstrumentationARM( Device const & device,
14091 ShaderInstrumentationCreateInfoARM const & createInfo,
14092 Optional<AllocationCallbacks const> allocator = nullptr )
14093 {
14094 *this = device.createShaderInstrumentationARM( createInfo, allocator );
14095 }
14096 # endif
14097
14098 ShaderInstrumentationARM( Device const & device, VkShaderInstrumentationARM instrumentation, Optional<AllocationCallbacks const> allocator = nullptr )
14099 : m_device( device )
14100 , m_shaderInstrumentationARM( instrumentation )
14101 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
14102 , m_dispatcher( device.getDispatcher() )
14103 {
14104 }
14105
14106 ShaderInstrumentationARM( std::nullptr_t ) {}
14107
14108 ~ShaderInstrumentationARM()
14109 {
14110 clear();
14111 }
14112
14113 ShaderInstrumentationARM() = delete;
14114 ShaderInstrumentationARM( ShaderInstrumentationARM const & ) = delete;
14115
14116 ShaderInstrumentationARM( ShaderInstrumentationARM && rhs ) VULKAN_HPP_NOEXCEPT
14117 : m_device( exchange( rhs.m_device, {} ) )
14118 , m_shaderInstrumentationARM( exchange( rhs.m_shaderInstrumentationARM, {} ) )
14119 , m_allocator( exchange( rhs.m_allocator, {} ) )
14120 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
14121 {
14122 }
14123
14124 ShaderInstrumentationARM & operator=( ShaderInstrumentationARM const & ) = delete;
14125
14126 ShaderInstrumentationARM & operator=( ShaderInstrumentationARM && rhs ) VULKAN_HPP_NOEXCEPT
14127 {
14128 if ( this != &rhs )
14129 {
14130 std::swap( m_device, rhs.m_device );
14131 std::swap( m_shaderInstrumentationARM, rhs.m_shaderInstrumentationARM );
14132 std::swap( m_allocator, rhs.m_allocator );
14133 std::swap( m_dispatcher, rhs.m_dispatcher );
14134 }
14135 return *this;
14136 }
14137
14138 VULKAN_HPP_NAMESPACE::ShaderInstrumentationARM const & operator*() const & VULKAN_HPP_NOEXCEPT
14139 {
14140 return m_shaderInstrumentationARM;
14141 }
14142
14143 VULKAN_HPP_NAMESPACE::ShaderInstrumentationARM const && operator*() const && VULKAN_HPP_NOEXCEPT
14144 {
14145 return std::move( m_shaderInstrumentationARM );
14146 }
14147
14148 operator VULKAN_HPP_NAMESPACE::ShaderInstrumentationARM() const VULKAN_HPP_NOEXCEPT
14149 {
14150 return m_shaderInstrumentationARM;
14151 }
14152
14153 void clear() VULKAN_HPP_NOEXCEPT
14154 {
14155 if ( m_shaderInstrumentationARM )
14156 {
14157 getDispatcher()->vkDestroyShaderInstrumentationARM( static_cast<VkDevice>( m_device ),
14158 static_cast<VkShaderInstrumentationARM>( m_shaderInstrumentationARM ),
14159 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
14160 }
14161 m_device = nullptr;
14162 m_shaderInstrumentationARM = nullptr;
14163 m_allocator = nullptr;
14164 m_dispatcher = nullptr;
14165 }
14166
14167 VULKAN_HPP_NAMESPACE::ShaderInstrumentationARM release()
14168 {
14169 m_device = nullptr;
14170 m_allocator = nullptr;
14171 m_dispatcher = nullptr;
14172 return exchange( m_shaderInstrumentationARM, nullptr );
14173 }
14174
14175 VULKAN_HPP_NAMESPACE::Device getDevice() const
14176 {
14177 return m_device;
14178 }
14179
14180 detail::DeviceDispatcher const * getDispatcher() const
14181 {
14182 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
14183 return m_dispatcher;
14184 }
14185
14186 void swap( ShaderInstrumentationARM & rhs ) VULKAN_HPP_NOEXCEPT
14187 {
14188 std::swap( m_device, rhs.m_device );
14189 std::swap( m_shaderInstrumentationARM, rhs.m_shaderInstrumentationARM );
14190 std::swap( m_allocator, rhs.m_allocator );
14191 std::swap( m_dispatcher, rhs.m_dispatcher );
14192 }
14193
14194 //=== VK_ARM_shader_instrumentation ===
14195
14196 // wrapper function for command vkGetShaderInstrumentationValuesARM, see
14197 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderInstrumentationValuesARM.html
14198 VULKAN_HPP_NODISCARD Result getValues( uint32_t * pMetricBlockCount,
14199 void * pMetricValues,
14200 ShaderInstrumentationValuesFlagsARM flags ) const VULKAN_HPP_NOEXCEPT;
14201
14202 // wrapper function for command vkClearShaderInstrumentationMetricsARM, see
14203 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkClearShaderInstrumentationMetricsARM.html
14204 void clearMetrics() const VULKAN_HPP_NOEXCEPT;
14205
14206 private:
14207 VULKAN_HPP_NAMESPACE::Device m_device = {};
14208 VULKAN_HPP_NAMESPACE::ShaderInstrumentationARM m_shaderInstrumentationARM = {};
14209 AllocationCallbacks const * m_allocator = {};
14210 detail::DeviceDispatcher const * m_dispatcher = nullptr;
14211 };
14212
14213 template <>
14214 struct isVulkanRAIIHandleType<ShaderInstrumentationARM>
14215 {
14216 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
14217 };
14218
14219 // wrapper class for handle VkShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkShaderModule.html
14220 class ShaderModule
14221 {
14222 public:
14223 using CType = VkShaderModule;
14224 using CppType = VULKAN_HPP_NAMESPACE::ShaderModule;
14225
14226 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eShaderModule;
14227 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eShaderModule;
14228
14229 public:
14230 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14231 ShaderModule( Device const & device, ShaderModuleCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14232 {
14233 *this = device.createShaderModule( createInfo, allocator );
14234 }
14235 # endif
14236
14237 ShaderModule( Device const & device, VkShaderModule shaderModule, Optional<AllocationCallbacks const> allocator = nullptr )
14238 : m_device( device )
14239 , m_shaderModule( shaderModule )
14240 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
14241 , m_dispatcher( device.getDispatcher() )
14242 {
14243 }
14244
14245 ShaderModule( std::nullptr_t ) {}
14246
14247 ~ShaderModule()
14248 {
14249 clear();
14250 }
14251
14252 ShaderModule() = delete;
14253 ShaderModule( ShaderModule const & ) = delete;
14254
14255 ShaderModule( ShaderModule && rhs ) VULKAN_HPP_NOEXCEPT
14256 : m_device( exchange( rhs.m_device, {} ) )
14257 , m_shaderModule( exchange( rhs.m_shaderModule, {} ) )
14258 , m_allocator( exchange( rhs.m_allocator, {} ) )
14259 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
14260 {
14261 }
14262
14263 ShaderModule & operator=( ShaderModule const & ) = delete;
14264
14265 ShaderModule & operator=( ShaderModule && rhs ) VULKAN_HPP_NOEXCEPT
14266 {
14267 if ( this != &rhs )
14268 {
14269 std::swap( m_device, rhs.m_device );
14270 std::swap( m_shaderModule, rhs.m_shaderModule );
14271 std::swap( m_allocator, rhs.m_allocator );
14272 std::swap( m_dispatcher, rhs.m_dispatcher );
14273 }
14274 return *this;
14275 }
14276
14277 VULKAN_HPP_NAMESPACE::ShaderModule const & operator*() const & VULKAN_HPP_NOEXCEPT
14278 {
14279 return m_shaderModule;
14280 }
14281
14282 VULKAN_HPP_NAMESPACE::ShaderModule const && operator*() const && VULKAN_HPP_NOEXCEPT
14283 {
14284 return std::move( m_shaderModule );
14285 }
14286
14287 operator VULKAN_HPP_NAMESPACE::ShaderModule() const VULKAN_HPP_NOEXCEPT
14288 {
14289 return m_shaderModule;
14290 }
14291
14292 void clear() VULKAN_HPP_NOEXCEPT
14293 {
14294 if ( m_shaderModule )
14295 {
14296 getDispatcher()->vkDestroyShaderModule(
14297 static_cast<VkDevice>( m_device ), static_cast<VkShaderModule>( m_shaderModule ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
14298 }
14299 m_device = nullptr;
14300 m_shaderModule = nullptr;
14301 m_allocator = nullptr;
14302 m_dispatcher = nullptr;
14303 }
14304
14305 VULKAN_HPP_NAMESPACE::ShaderModule release()
14306 {
14307 m_device = nullptr;
14308 m_allocator = nullptr;
14309 m_dispatcher = nullptr;
14310 return exchange( m_shaderModule, nullptr );
14311 }
14312
14313 VULKAN_HPP_NAMESPACE::Device getDevice() const
14314 {
14315 return m_device;
14316 }
14317
14318 detail::DeviceDispatcher const * getDispatcher() const
14319 {
14320 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
14321 return m_dispatcher;
14322 }
14323
14324 void swap( ShaderModule & rhs ) VULKAN_HPP_NOEXCEPT
14325 {
14326 std::swap( m_device, rhs.m_device );
14327 std::swap( m_shaderModule, rhs.m_shaderModule );
14328 std::swap( m_allocator, rhs.m_allocator );
14329 std::swap( m_dispatcher, rhs.m_dispatcher );
14330 }
14331
14332 //=== VK_EXT_shader_module_identifier ===
14333
14334 // wrapper function for command vkGetShaderModuleIdentifierEXT, see
14335 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderModuleIdentifierEXT.html
14336 VULKAN_HPP_NODISCARD ShaderModuleIdentifierEXT getIdentifierEXT() const VULKAN_HPP_NOEXCEPT;
14337
14338 private:
14339 VULKAN_HPP_NAMESPACE::Device m_device = {};
14340 VULKAN_HPP_NAMESPACE::ShaderModule m_shaderModule = {};
14341 AllocationCallbacks const * m_allocator = {};
14342 detail::DeviceDispatcher const * m_dispatcher = nullptr;
14343 };
14344
14345 template <>
14346 struct isVulkanRAIIHandleType<ShaderModule>
14347 {
14348 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
14349 };
14350
14351 // wrapper class for handle VkSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkSurfaceKHR.html
14352 class SurfaceKHR
14353 {
14354 public:
14355 using CType = VkSurfaceKHR;
14356 using CppType = VULKAN_HPP_NAMESPACE::SurfaceKHR;
14357
14358 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eSurfaceKHR;
14359 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eSurfaceKHR;
14360
14361 public:
14362 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14363 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
14364 SurfaceKHR( Instance const & instance, AndroidSurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14365 {
14366 *this = instance.createAndroidSurfaceKHR( createInfo, allocator );
14367 }
14368 # endif /*VK_USE_PLATFORM_ANDROID_KHR*/
14369 # endif
14370
14371 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14372 # if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
14373 SurfaceKHR( Instance const & instance, DirectFBSurfaceCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14374 {
14375 *this = instance.createDirectFBSurfaceEXT( createInfo, allocator );
14376 }
14377 # endif /*VK_USE_PLATFORM_DIRECTFB_EXT*/
14378 # endif
14379
14380 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14381 SurfaceKHR( Instance const & instance, DisplaySurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14382 {
14383 *this = instance.createDisplayPlaneSurfaceKHR( createInfo, allocator );
14384 }
14385 # endif
14386
14387 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14388 SurfaceKHR( Instance const & instance, HeadlessSurfaceCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14389 {
14390 *this = instance.createHeadlessSurfaceEXT( createInfo, allocator );
14391 }
14392 # endif
14393
14394 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14395 # if defined( VK_USE_PLATFORM_IOS_MVK )
14396 SurfaceKHR( Instance const & instance, IOSSurfaceCreateInfoMVK const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14397 {
14398 *this = instance.createIOSSurfaceMVK( createInfo, allocator );
14399 }
14400 # endif /*VK_USE_PLATFORM_IOS_MVK*/
14401 # endif
14402
14403 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14404 # if defined( VK_USE_PLATFORM_FUCHSIA )
14405 SurfaceKHR( Instance const & instance, ImagePipeSurfaceCreateInfoFUCHSIA const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14406 {
14407 *this = instance.createImagePipeSurfaceFUCHSIA( createInfo, allocator );
14408 }
14409 # endif /*VK_USE_PLATFORM_FUCHSIA*/
14410 # endif
14411
14412 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14413 # if defined( VK_USE_PLATFORM_MACOS_MVK )
14414 SurfaceKHR( Instance const & instance, MacOSSurfaceCreateInfoMVK const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14415 {
14416 *this = instance.createMacOSSurfaceMVK( createInfo, allocator );
14417 }
14418 # endif /*VK_USE_PLATFORM_MACOS_MVK*/
14419 # endif
14420
14421 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14422 # if defined( VK_USE_PLATFORM_METAL_EXT )
14423 SurfaceKHR( Instance const & instance, MetalSurfaceCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14424 {
14425 *this = instance.createMetalSurfaceEXT( createInfo, allocator );
14426 }
14427 # endif /*VK_USE_PLATFORM_METAL_EXT*/
14428 # endif
14429
14430 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14431 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
14432 SurfaceKHR( Instance const & instance, ScreenSurfaceCreateInfoQNX const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14433 {
14434 *this = instance.createScreenSurfaceQNX( createInfo, allocator );
14435 }
14436 # endif /*VK_USE_PLATFORM_SCREEN_QNX*/
14437 # endif
14438
14439 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14440 # if defined( VK_USE_PLATFORM_GGP )
14441 SurfaceKHR( Instance const & instance, StreamDescriptorSurfaceCreateInfoGGP const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14442 {
14443 *this = instance.createStreamDescriptorSurfaceGGP( createInfo, allocator );
14444 }
14445 # endif /*VK_USE_PLATFORM_GGP*/
14446 # endif
14447
14448 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14449 # if defined( VK_USE_PLATFORM_OHOS )
14450 SurfaceKHR( Instance const & instance, SurfaceCreateInfoOHOS const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14451 {
14452 *this = instance.createSurfaceOHOS( createInfo, allocator );
14453 }
14454 # endif /*VK_USE_PLATFORM_OHOS*/
14455 # endif
14456
14457 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14458 # if defined( VK_USE_PLATFORM_UBM_SEC )
14459 SurfaceKHR( Instance const & instance, UbmSurfaceCreateInfoSEC const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14460 {
14461 *this = instance.createUbmSurfaceSEC( createInfo, allocator );
14462 }
14463 # endif /*VK_USE_PLATFORM_UBM_SEC*/
14464 # endif
14465
14466 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14467 # if defined( VK_USE_PLATFORM_VI_NN )
14468 SurfaceKHR( Instance const & instance, ViSurfaceCreateInfoNN const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14469 {
14470 *this = instance.createViSurfaceNN( createInfo, allocator );
14471 }
14472 # endif /*VK_USE_PLATFORM_VI_NN*/
14473 # endif
14474
14475 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14476 # if defined( VK_USE_PLATFORM_WAYLAND_KHR )
14477 SurfaceKHR( Instance const & instance, WaylandSurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14478 {
14479 *this = instance.createWaylandSurfaceKHR( createInfo, allocator );
14480 }
14481 # endif /*VK_USE_PLATFORM_WAYLAND_KHR*/
14482 # endif
14483
14484 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14485 # if defined( VK_USE_PLATFORM_WIN32_KHR )
14486 SurfaceKHR( Instance const & instance, Win32SurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14487 {
14488 *this = instance.createWin32SurfaceKHR( createInfo, allocator );
14489 }
14490 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
14491 # endif
14492
14493 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14494 # if defined( VK_USE_PLATFORM_XCB_KHR )
14495 SurfaceKHR( Instance const & instance, XcbSurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14496 {
14497 *this = instance.createXcbSurfaceKHR( createInfo, allocator );
14498 }
14499 # endif /*VK_USE_PLATFORM_XCB_KHR*/
14500 # endif
14501
14502 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14503 # if defined( VK_USE_PLATFORM_XLIB_KHR )
14504 SurfaceKHR( Instance const & instance, XlibSurfaceCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14505 {
14506 *this = instance.createXlibSurfaceKHR( createInfo, allocator );
14507 }
14508 # endif /*VK_USE_PLATFORM_XLIB_KHR*/
14509 # endif
14510
14511 SurfaceKHR( Instance const & instance, VkSurfaceKHR surface, Optional<AllocationCallbacks const> allocator = nullptr )
14512 : m_instance( instance )
14513 , m_surfaceKHR( surface )
14514 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
14515 , m_dispatcher( instance.getDispatcher() )
14516 {
14517 }
14518
14519 SurfaceKHR( std::nullptr_t ) {}
14520
14521 ~SurfaceKHR()
14522 {
14523 clear();
14524 }
14525
14526 SurfaceKHR() = delete;
14527 SurfaceKHR( SurfaceKHR const & ) = delete;
14528
14529 SurfaceKHR( SurfaceKHR && rhs ) VULKAN_HPP_NOEXCEPT
14530 : m_instance( exchange( rhs.m_instance, {} ) )
14531 , m_surfaceKHR( exchange( rhs.m_surfaceKHR, {} ) )
14532 , m_allocator( exchange( rhs.m_allocator, {} ) )
14533 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
14534 {
14535 }
14536
14537 SurfaceKHR & operator=( SurfaceKHR const & ) = delete;
14538
14539 SurfaceKHR & operator=( SurfaceKHR && rhs ) VULKAN_HPP_NOEXCEPT
14540 {
14541 if ( this != &rhs )
14542 {
14543 std::swap( m_instance, rhs.m_instance );
14544 std::swap( m_surfaceKHR, rhs.m_surfaceKHR );
14545 std::swap( m_allocator, rhs.m_allocator );
14546 std::swap( m_dispatcher, rhs.m_dispatcher );
14547 }
14548 return *this;
14549 }
14550
14551 VULKAN_HPP_NAMESPACE::SurfaceKHR const & operator*() const & VULKAN_HPP_NOEXCEPT
14552 {
14553 return m_surfaceKHR;
14554 }
14555
14556 VULKAN_HPP_NAMESPACE::SurfaceKHR const && operator*() const && VULKAN_HPP_NOEXCEPT
14557 {
14558 return std::move( m_surfaceKHR );
14559 }
14560
14561 operator VULKAN_HPP_NAMESPACE::SurfaceKHR() const VULKAN_HPP_NOEXCEPT
14562 {
14563 return m_surfaceKHR;
14564 }
14565
14566 void clear() VULKAN_HPP_NOEXCEPT
14567 {
14568 if ( m_surfaceKHR )
14569 {
14570 getDispatcher()->vkDestroySurfaceKHR(
14571 static_cast<VkInstance>( m_instance ), static_cast<VkSurfaceKHR>( m_surfaceKHR ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
14572 }
14573 m_instance = nullptr;
14574 m_surfaceKHR = nullptr;
14575 m_allocator = nullptr;
14576 m_dispatcher = nullptr;
14577 }
14578
14579 VULKAN_HPP_NAMESPACE::SurfaceKHR release()
14580 {
14581 m_instance = nullptr;
14582 m_allocator = nullptr;
14583 m_dispatcher = nullptr;
14584 return exchange( m_surfaceKHR, nullptr );
14585 }
14586
14587 VULKAN_HPP_NAMESPACE::Instance getInstance() const
14588 {
14589 return m_instance;
14590 }
14591
14592 detail::InstanceDispatcher const * getDispatcher() const
14593 {
14594 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
14595 return m_dispatcher;
14596 }
14597
14598 void swap( SurfaceKHR & rhs ) VULKAN_HPP_NOEXCEPT
14599 {
14600 std::swap( m_instance, rhs.m_instance );
14601 std::swap( m_surfaceKHR, rhs.m_surfaceKHR );
14602 std::swap( m_allocator, rhs.m_allocator );
14603 std::swap( m_dispatcher, rhs.m_dispatcher );
14604 }
14605
14606 private:
14607 VULKAN_HPP_NAMESPACE::Instance m_instance = {};
14608 VULKAN_HPP_NAMESPACE::SurfaceKHR m_surfaceKHR = {};
14609 AllocationCallbacks const * m_allocator = {};
14610 detail::InstanceDispatcher const * m_dispatcher = nullptr;
14611 };
14612
14613 template <>
14614 struct isVulkanRAIIHandleType<SurfaceKHR>
14615 {
14616 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
14617 };
14618
14619 // wrapper class for handle VkSwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkSwapchainKHR.html
14620 class SwapchainKHR
14621 {
14622 public:
14623 using CType = VkSwapchainKHR;
14624 using CppType = VULKAN_HPP_NAMESPACE::SwapchainKHR;
14625
14626 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eSwapchainKHR;
14627 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eSwapchainKHR;
14628
14629 public:
14630 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14631 SwapchainKHR( Device const & device, SwapchainCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14632 {
14633 *this = device.createSwapchainKHR( createInfo, allocator );
14634 }
14635 # endif
14636
14637 SwapchainKHR( Device const & device, VkSwapchainKHR swapchain, Optional<AllocationCallbacks const> allocator = nullptr )
14638 : m_device( device )
14639 , m_swapchainKHR( swapchain )
14640 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
14641 , m_dispatcher( device.getDispatcher() )
14642 {
14643 }
14644
14645 SwapchainKHR( std::nullptr_t ) {}
14646
14647 ~SwapchainKHR()
14648 {
14649 clear();
14650 }
14651
14652 SwapchainKHR() = delete;
14653 SwapchainKHR( SwapchainKHR const & ) = delete;
14654
14655 SwapchainKHR( SwapchainKHR && rhs ) VULKAN_HPP_NOEXCEPT
14656 : m_device( exchange( rhs.m_device, {} ) )
14657 , m_swapchainKHR( exchange( rhs.m_swapchainKHR, {} ) )
14658 , m_allocator( exchange( rhs.m_allocator, {} ) )
14659 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
14660 {
14661 }
14662
14663 SwapchainKHR & operator=( SwapchainKHR const & ) = delete;
14664
14665 SwapchainKHR & operator=( SwapchainKHR && rhs ) VULKAN_HPP_NOEXCEPT
14666 {
14667 if ( this != &rhs )
14668 {
14669 std::swap( m_device, rhs.m_device );
14670 std::swap( m_swapchainKHR, rhs.m_swapchainKHR );
14671 std::swap( m_allocator, rhs.m_allocator );
14672 std::swap( m_dispatcher, rhs.m_dispatcher );
14673 }
14674 return *this;
14675 }
14676
14677 VULKAN_HPP_NAMESPACE::SwapchainKHR const & operator*() const & VULKAN_HPP_NOEXCEPT
14678 {
14679 return m_swapchainKHR;
14680 }
14681
14682 VULKAN_HPP_NAMESPACE::SwapchainKHR const && operator*() const && VULKAN_HPP_NOEXCEPT
14683 {
14684 return std::move( m_swapchainKHR );
14685 }
14686
14687 operator VULKAN_HPP_NAMESPACE::SwapchainKHR() const VULKAN_HPP_NOEXCEPT
14688 {
14689 return m_swapchainKHR;
14690 }
14691
14692 void clear() VULKAN_HPP_NOEXCEPT
14693 {
14694 if ( m_swapchainKHR )
14695 {
14696 getDispatcher()->vkDestroySwapchainKHR(
14697 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchainKHR ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
14698 }
14699 m_device = nullptr;
14700 m_swapchainKHR = nullptr;
14701 m_allocator = nullptr;
14702 m_dispatcher = nullptr;
14703 }
14704
14705 VULKAN_HPP_NAMESPACE::SwapchainKHR release()
14706 {
14707 m_device = nullptr;
14708 m_allocator = nullptr;
14709 m_dispatcher = nullptr;
14710 return exchange( m_swapchainKHR, nullptr );
14711 }
14712
14713 VULKAN_HPP_NAMESPACE::Device getDevice() const
14714 {
14715 return m_device;
14716 }
14717
14718 detail::DeviceDispatcher const * getDispatcher() const
14719 {
14720 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
14721 return m_dispatcher;
14722 }
14723
14724 void swap( SwapchainKHR & rhs ) VULKAN_HPP_NOEXCEPT
14725 {
14726 std::swap( m_device, rhs.m_device );
14727 std::swap( m_swapchainKHR, rhs.m_swapchainKHR );
14728 std::swap( m_allocator, rhs.m_allocator );
14729 std::swap( m_dispatcher, rhs.m_dispatcher );
14730 }
14731
14732 //=== VK_KHR_swapchain ===
14733
14734 // wrapper function for command vkGetSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainImagesKHR.html
14735 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<VULKAN_HPP_NAMESPACE::Image>>::type getImages() const;
14736
14737 // wrapper function for command vkAcquireNextImageKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireNextImageKHR.html
14738 VULKAN_HPP_NODISCARD ResultValue<uint32_t> acquireNextImage( uint64_t timeout,
14739 VULKAN_HPP_NAMESPACE::Semaphore semaphore VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ),
14740 VULKAN_HPP_NAMESPACE::Fence fence VULKAN_HPP_DEFAULT_ASSIGNMENT( {} ) ) const;
14741
14742 //=== VK_EXT_display_control ===
14743
14744 // wrapper function for command vkGetSwapchainCounterEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainCounterEXT.html
14745 VULKAN_HPP_NODISCARD
14746 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14747 ResultValue<uint64_t>
14748 # else
14749 typename ResultValueType<uint64_t>::type
14750 # endif
14751 getCounterEXT( SurfaceCounterFlagBitsEXT counter ) const;
14752
14753 //=== VK_GOOGLE_display_timing ===
14754
14755 // wrapper function for command vkGetRefreshCycleDurationGOOGLE, see
14756 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRefreshCycleDurationGOOGLE.html
14757 VULKAN_HPP_NODISCARD typename ResultValueType<RefreshCycleDurationGOOGLE>::type getRefreshCycleDurationGOOGLE() const;
14758
14759 // wrapper function for command vkGetPastPresentationTimingGOOGLE, see
14760 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPastPresentationTimingGOOGLE.html
14761 VULKAN_HPP_NODISCARD
14762 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14763 ResultValue<std::vector<PastPresentationTimingGOOGLE>>
14764 # else
14765 typename ResultValueType<std::vector<PastPresentationTimingGOOGLE>>::type
14766 # endif
14767 getPastPresentationTimingGOOGLE() const;
14768
14769 //=== VK_KHR_shared_presentable_image ===
14770
14771 // wrapper function for command vkGetSwapchainStatusKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainStatusKHR.html
14772 VULKAN_HPP_NODISCARD Result getStatus() const;
14773
14774 //=== VK_EXT_present_timing ===
14775
14776 // wrapper function for command vkSetSwapchainPresentTimingQueueSizeEXT, see
14777 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetSwapchainPresentTimingQueueSizeEXT.html
14778 VULKAN_HPP_NODISCARD Result setPresentTimingQueueSizeEXT( uint32_t size ) const;
14779
14780 // wrapper function for command vkGetSwapchainTimingPropertiesEXT, see
14781 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainTimingPropertiesEXT.html
14782 VULKAN_HPP_NODISCARD ResultValue<std::pair<SwapchainTimingPropertiesEXT, uint64_t>> getTimingPropertiesEXT() const;
14783
14784 // wrapper function for command vkGetSwapchainTimeDomainPropertiesEXT, see
14785 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainTimeDomainPropertiesEXT.html
14786 VULKAN_HPP_NODISCARD Result getTimeDomainPropertiesEXT( SwapchainTimeDomainPropertiesEXT * pSwapchainTimeDomainProperties,
14787 uint64_t * pTimeDomainsCounter ) const VULKAN_HPP_NOEXCEPT;
14788
14789 //=== VK_AMD_display_native_hdr ===
14790
14791 // wrapper function for command vkSetLocalDimmingAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLocalDimmingAMD.html
14792 void setLocalDimmingAMD( Bool32 localDimmingEnable ) const VULKAN_HPP_NOEXCEPT;
14793
14794 //=== VK_KHR_present_wait ===
14795
14796 // wrapper function for command vkWaitForPresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForPresentKHR.html
14797 VULKAN_HPP_NODISCARD Result waitForPresent( uint64_t presentId, uint64_t timeout ) const;
14798
14799 # if defined( VK_USE_PLATFORM_WIN32_KHR )
14800 //=== VK_EXT_full_screen_exclusive ===
14801
14802 // wrapper function for command vkAcquireFullScreenExclusiveModeEXT, see
14803 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireFullScreenExclusiveModeEXT.html
14804 typename ResultValueType<void>::type acquireFullScreenExclusiveModeEXT() const;
14805
14806 // wrapper function for command vkReleaseFullScreenExclusiveModeEXT, see
14807 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseFullScreenExclusiveModeEXT.html
14808 typename ResultValueType<void>::type releaseFullScreenExclusiveModeEXT() const;
14809 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
14810
14811 //=== VK_KHR_present_wait2 ===
14812
14813 // wrapper function for command vkWaitForPresent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForPresent2KHR.html
14814 VULKAN_HPP_NODISCARD Result waitForPresent2( PresentWait2InfoKHR const & presentWait2Info ) const;
14815
14816 //=== VK_NV_low_latency2 ===
14817
14818 // wrapper function for command vkSetLatencySleepModeNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencySleepModeNV.html
14819 typename ResultValueType<void>::type setLatencySleepModeNV( LatencySleepModeInfoNV const & sleepModeInfo ) const;
14820
14821 // wrapper function for command vkLatencySleepNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkLatencySleepNV.html
14822 typename ResultValueType<void>::type latencySleepNV( LatencySleepInfoNV const & sleepInfo ) const;
14823
14824 // wrapper function for command vkSetLatencyMarkerNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencyMarkerNV.html
14825 void setLatencyMarkerNV( SetLatencyMarkerInfoNV const & latencyMarkerInfo ) const VULKAN_HPP_NOEXCEPT;
14826
14827 // wrapper function for command vkGetLatencyTimingsNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsNV.html
14828 void getLatencyTimingsNV( GetLatencyMarkerInfoNV * pLatencyMarkerInfo ) const VULKAN_HPP_NOEXCEPT;
14829
14830 private:
14831 VULKAN_HPP_NAMESPACE::Device m_device = {};
14832 VULKAN_HPP_NAMESPACE::SwapchainKHR m_swapchainKHR = {};
14833 AllocationCallbacks const * m_allocator = {};
14834 detail::DeviceDispatcher const * m_dispatcher = nullptr;
14835 };
14836
14837 template <>
14838 struct isVulkanRAIIHandleType<SwapchainKHR>
14839 {
14840 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
14841 };
14842
14843 class SwapchainKHRs : public std::vector<SwapchainKHR>
14844 {
14845 public:
14846 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14847 SwapchainKHRs( Device const & device, ArrayProxy<SwapchainCreateInfoKHR> const & createInfos, Optional<AllocationCallbacks const> allocator = nullptr )
14848 {
14849 *this = device.createSharedSwapchainsKHR( createInfos, allocator );
14850 }
14851 # endif
14852
14853 SwapchainKHRs( std::nullptr_t ) {}
14854
14855 SwapchainKHRs() = delete;
14856 SwapchainKHRs( SwapchainKHRs const & ) = delete;
14857 SwapchainKHRs( SwapchainKHRs && rhs ) = default;
14858 SwapchainKHRs & operator=( SwapchainKHRs const & ) = delete;
14859 SwapchainKHRs & operator=( SwapchainKHRs && rhs ) = default;
14860
14861 SwapchainKHRs( std::vector<SwapchainKHR> && rhs )
14862 {
14863 std::swap( *this, rhs );
14864 }
14865 };
14866
14867 // wrapper class for handle VkTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkTensorARM.html
14868 class TensorARM
14869 {
14870 public:
14871 using CType = VkTensorARM;
14872 using CppType = VULKAN_HPP_NAMESPACE::TensorARM;
14873
14874 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eTensorARM;
14875 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
14876
14877 public:
14878 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
14879 TensorARM( Device const & device, TensorCreateInfoARM const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
14880 {
14881 *this = device.createTensorARM( createInfo, allocator );
14882 }
14883 # endif
14884
14885 TensorARM( Device const & device, VkTensorARM tensor, Optional<AllocationCallbacks const> allocator = nullptr )
14886 : m_device( device )
14887 , m_tensorARM( tensor )
14888 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
14889 , m_dispatcher( device.getDispatcher() )
14890 {
14891 }
14892
14893 TensorARM( std::nullptr_t ) {}
14894
14895 ~TensorARM()
14896 {
14897 clear();
14898 }
14899
14900 TensorARM() = delete;
14901 TensorARM( TensorARM const & ) = delete;
14902
14903 TensorARM( TensorARM && rhs ) VULKAN_HPP_NOEXCEPT
14904 : m_device( exchange( rhs.m_device, {} ) )
14905 , m_tensorARM( exchange( rhs.m_tensorARM, {} ) )
14906 , m_allocator( exchange( rhs.m_allocator, {} ) )
14907 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
14908 {
14909 }
14910
14911 TensorARM & operator=( TensorARM const & ) = delete;
14912
14913 TensorARM & operator=( TensorARM && rhs ) VULKAN_HPP_NOEXCEPT
14914 {
14915 if ( this != &rhs )
14916 {
14917 std::swap( m_device, rhs.m_device );
14918 std::swap( m_tensorARM, rhs.m_tensorARM );
14919 std::swap( m_allocator, rhs.m_allocator );
14920 std::swap( m_dispatcher, rhs.m_dispatcher );
14921 }
14922 return *this;
14923 }
14924
14925 VULKAN_HPP_NAMESPACE::TensorARM const & operator*() const & VULKAN_HPP_NOEXCEPT
14926 {
14927 return m_tensorARM;
14928 }
14929
14930 VULKAN_HPP_NAMESPACE::TensorARM const && operator*() const && VULKAN_HPP_NOEXCEPT
14931 {
14932 return std::move( m_tensorARM );
14933 }
14934
14935 operator VULKAN_HPP_NAMESPACE::TensorARM() const VULKAN_HPP_NOEXCEPT
14936 {
14937 return m_tensorARM;
14938 }
14939
14940 void clear() VULKAN_HPP_NOEXCEPT
14941 {
14942 if ( m_tensorARM )
14943 {
14944 getDispatcher()->vkDestroyTensorARM(
14945 static_cast<VkDevice>( m_device ), static_cast<VkTensorARM>( m_tensorARM ), reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
14946 }
14947 m_device = nullptr;
14948 m_tensorARM = nullptr;
14949 m_allocator = nullptr;
14950 m_dispatcher = nullptr;
14951 }
14952
14953 VULKAN_HPP_NAMESPACE::TensorARM release()
14954 {
14955 m_device = nullptr;
14956 m_allocator = nullptr;
14957 m_dispatcher = nullptr;
14958 return exchange( m_tensorARM, nullptr );
14959 }
14960
14961 VULKAN_HPP_NAMESPACE::Device getDevice() const
14962 {
14963 return m_device;
14964 }
14965
14966 detail::DeviceDispatcher const * getDispatcher() const
14967 {
14968 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
14969 return m_dispatcher;
14970 }
14971
14972 void swap( TensorARM & rhs ) VULKAN_HPP_NOEXCEPT
14973 {
14974 std::swap( m_device, rhs.m_device );
14975 std::swap( m_tensorARM, rhs.m_tensorARM );
14976 std::swap( m_allocator, rhs.m_allocator );
14977 std::swap( m_dispatcher, rhs.m_dispatcher );
14978 }
14979
14980 private:
14981 VULKAN_HPP_NAMESPACE::Device m_device = {};
14982 VULKAN_HPP_NAMESPACE::TensorARM m_tensorARM = {};
14983 AllocationCallbacks const * m_allocator = {};
14984 detail::DeviceDispatcher const * m_dispatcher = nullptr;
14985 };
14986
14987 template <>
14988 struct isVulkanRAIIHandleType<TensorARM>
14989 {
14990 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
14991 };
14992
14993 // wrapper class for handle VkTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkTensorViewARM.html
14994 class TensorViewARM
14995 {
14996 public:
14997 using CType = VkTensorViewARM;
14998 using CppType = VULKAN_HPP_NAMESPACE::TensorViewARM;
14999
15000 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eTensorViewARM;
15001 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
15002
15003 public:
15004 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
15005 TensorViewARM( Device const & device, TensorViewCreateInfoARM const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
15006 {
15007 *this = device.createTensorViewARM( createInfo, allocator );
15008 }
15009 # endif
15010
15011 TensorViewARM( Device const & device, VkTensorViewARM tensorView, Optional<AllocationCallbacks const> allocator = nullptr )
15012 : m_device( device )
15013 , m_tensorViewARM( tensorView )
15014 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
15015 , m_dispatcher( device.getDispatcher() )
15016 {
15017 }
15018
15019 TensorViewARM( std::nullptr_t ) {}
15020
15021 ~TensorViewARM()
15022 {
15023 clear();
15024 }
15025
15026 TensorViewARM() = delete;
15027 TensorViewARM( TensorViewARM const & ) = delete;
15028
15029 TensorViewARM( TensorViewARM && rhs ) VULKAN_HPP_NOEXCEPT
15030 : m_device( exchange( rhs.m_device, {} ) )
15031 , m_tensorViewARM( exchange( rhs.m_tensorViewARM, {} ) )
15032 , m_allocator( exchange( rhs.m_allocator, {} ) )
15033 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
15034 {
15035 }
15036
15037 TensorViewARM & operator=( TensorViewARM const & ) = delete;
15038
15039 TensorViewARM & operator=( TensorViewARM && rhs ) VULKAN_HPP_NOEXCEPT
15040 {
15041 if ( this != &rhs )
15042 {
15043 std::swap( m_device, rhs.m_device );
15044 std::swap( m_tensorViewARM, rhs.m_tensorViewARM );
15045 std::swap( m_allocator, rhs.m_allocator );
15046 std::swap( m_dispatcher, rhs.m_dispatcher );
15047 }
15048 return *this;
15049 }
15050
15051 VULKAN_HPP_NAMESPACE::TensorViewARM const & operator*() const & VULKAN_HPP_NOEXCEPT
15052 {
15053 return m_tensorViewARM;
15054 }
15055
15056 VULKAN_HPP_NAMESPACE::TensorViewARM const && operator*() const && VULKAN_HPP_NOEXCEPT
15057 {
15058 return std::move( m_tensorViewARM );
15059 }
15060
15061 operator VULKAN_HPP_NAMESPACE::TensorViewARM() const VULKAN_HPP_NOEXCEPT
15062 {
15063 return m_tensorViewARM;
15064 }
15065
15066 void clear() VULKAN_HPP_NOEXCEPT
15067 {
15068 if ( m_tensorViewARM )
15069 {
15070 getDispatcher()->vkDestroyTensorViewARM( static_cast<VkDevice>( m_device ),
15071 static_cast<VkTensorViewARM>( m_tensorViewARM ),
15072 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
15073 }
15074 m_device = nullptr;
15075 m_tensorViewARM = nullptr;
15076 m_allocator = nullptr;
15077 m_dispatcher = nullptr;
15078 }
15079
15080 VULKAN_HPP_NAMESPACE::TensorViewARM release()
15081 {
15082 m_device = nullptr;
15083 m_allocator = nullptr;
15084 m_dispatcher = nullptr;
15085 return exchange( m_tensorViewARM, nullptr );
15086 }
15087
15088 VULKAN_HPP_NAMESPACE::Device getDevice() const
15089 {
15090 return m_device;
15091 }
15092
15093 detail::DeviceDispatcher const * getDispatcher() const
15094 {
15095 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
15096 return m_dispatcher;
15097 }
15098
15099 void swap( TensorViewARM & rhs ) VULKAN_HPP_NOEXCEPT
15100 {
15101 std::swap( m_device, rhs.m_device );
15102 std::swap( m_tensorViewARM, rhs.m_tensorViewARM );
15103 std::swap( m_allocator, rhs.m_allocator );
15104 std::swap( m_dispatcher, rhs.m_dispatcher );
15105 }
15106
15107 private:
15108 VULKAN_HPP_NAMESPACE::Device m_device = {};
15109 VULKAN_HPP_NAMESPACE::TensorViewARM m_tensorViewARM = {};
15110 AllocationCallbacks const * m_allocator = {};
15111 detail::DeviceDispatcher const * m_dispatcher = nullptr;
15112 };
15113
15114 template <>
15115 struct isVulkanRAIIHandleType<TensorViewARM>
15116 {
15117 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
15118 };
15119
15120 // wrapper class for handle VkValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkValidationCacheEXT.html
15121 class ValidationCacheEXT
15122 {
15123 public:
15124 using CType = VkValidationCacheEXT;
15125 using CppType = VULKAN_HPP_NAMESPACE::ValidationCacheEXT;
15126
15127 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eValidationCacheEXT;
15128 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eValidationCacheEXT;
15129
15130 public:
15131 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
15132 ValidationCacheEXT( Device const & device, ValidationCacheCreateInfoEXT const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
15133 {
15134 *this = device.createValidationCacheEXT( createInfo, allocator );
15135 }
15136 # endif
15137
15138 ValidationCacheEXT( Device const & device, VkValidationCacheEXT validationCache, Optional<AllocationCallbacks const> allocator = nullptr )
15139 : m_device( device )
15140 , m_validationCacheEXT( validationCache )
15141 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
15142 , m_dispatcher( device.getDispatcher() )
15143 {
15144 }
15145
15146 ValidationCacheEXT( std::nullptr_t ) {}
15147
15148 ~ValidationCacheEXT()
15149 {
15150 clear();
15151 }
15152
15153 ValidationCacheEXT() = delete;
15154 ValidationCacheEXT( ValidationCacheEXT const & ) = delete;
15155
15156 ValidationCacheEXT( ValidationCacheEXT && rhs ) VULKAN_HPP_NOEXCEPT
15157 : m_device( exchange( rhs.m_device, {} ) )
15158 , m_validationCacheEXT( exchange( rhs.m_validationCacheEXT, {} ) )
15159 , m_allocator( exchange( rhs.m_allocator, {} ) )
15160 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
15161 {
15162 }
15163
15164 ValidationCacheEXT & operator=( ValidationCacheEXT const & ) = delete;
15165
15166 ValidationCacheEXT & operator=( ValidationCacheEXT && rhs ) VULKAN_HPP_NOEXCEPT
15167 {
15168 if ( this != &rhs )
15169 {
15170 std::swap( m_device, rhs.m_device );
15171 std::swap( m_validationCacheEXT, rhs.m_validationCacheEXT );
15172 std::swap( m_allocator, rhs.m_allocator );
15173 std::swap( m_dispatcher, rhs.m_dispatcher );
15174 }
15175 return *this;
15176 }
15177
15178 VULKAN_HPP_NAMESPACE::ValidationCacheEXT const & operator*() const & VULKAN_HPP_NOEXCEPT
15179 {
15180 return m_validationCacheEXT;
15181 }
15182
15183 VULKAN_HPP_NAMESPACE::ValidationCacheEXT const && operator*() const && VULKAN_HPP_NOEXCEPT
15184 {
15185 return std::move( m_validationCacheEXT );
15186 }
15187
15188 operator VULKAN_HPP_NAMESPACE::ValidationCacheEXT() const VULKAN_HPP_NOEXCEPT
15189 {
15190 return m_validationCacheEXT;
15191 }
15192
15193 void clear() VULKAN_HPP_NOEXCEPT
15194 {
15195 if ( m_validationCacheEXT )
15196 {
15197 getDispatcher()->vkDestroyValidationCacheEXT( static_cast<VkDevice>( m_device ),
15198 static_cast<VkValidationCacheEXT>( m_validationCacheEXT ),
15199 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
15200 }
15201 m_device = nullptr;
15202 m_validationCacheEXT = nullptr;
15203 m_allocator = nullptr;
15204 m_dispatcher = nullptr;
15205 }
15206
15207 VULKAN_HPP_NAMESPACE::ValidationCacheEXT release()
15208 {
15209 m_device = nullptr;
15210 m_allocator = nullptr;
15211 m_dispatcher = nullptr;
15212 return exchange( m_validationCacheEXT, nullptr );
15213 }
15214
15215 VULKAN_HPP_NAMESPACE::Device getDevice() const
15216 {
15217 return m_device;
15218 }
15219
15220 detail::DeviceDispatcher const * getDispatcher() const
15221 {
15222 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
15223 return m_dispatcher;
15224 }
15225
15226 void swap( ValidationCacheEXT & rhs ) VULKAN_HPP_NOEXCEPT
15227 {
15228 std::swap( m_device, rhs.m_device );
15229 std::swap( m_validationCacheEXT, rhs.m_validationCacheEXT );
15230 std::swap( m_allocator, rhs.m_allocator );
15231 std::swap( m_dispatcher, rhs.m_dispatcher );
15232 }
15233
15234 //=== VK_EXT_validation_cache ===
15235
15236 // wrapper function for command vkMergeValidationCachesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMergeValidationCachesEXT.html
15237 typename ResultValueType<void>::type merge( ArrayProxy<VULKAN_HPP_NAMESPACE::ValidationCacheEXT const> const & srcCaches ) const;
15238
15239 // wrapper function for command vkGetValidationCacheDataEXT, see
15240 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetValidationCacheDataEXT.html
15241 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<uint8_t>>::type getData() const;
15242
15243 private:
15244 VULKAN_HPP_NAMESPACE::Device m_device = {};
15245 VULKAN_HPP_NAMESPACE::ValidationCacheEXT m_validationCacheEXT = {};
15246 AllocationCallbacks const * m_allocator = {};
15247 detail::DeviceDispatcher const * m_dispatcher = nullptr;
15248 };
15249
15250 template <>
15251 struct isVulkanRAIIHandleType<ValidationCacheEXT>
15252 {
15253 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
15254 };
15255
15256 // wrapper class for handle VkVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkVideoSessionKHR.html
15257 class VideoSessionKHR
15258 {
15259 public:
15260 using CType = VkVideoSessionKHR;
15261 using CppType = VULKAN_HPP_NAMESPACE::VideoSessionKHR;
15262
15263 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eVideoSessionKHR;
15264 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
15265
15266 public:
15267 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
15268 VideoSessionKHR( Device const & device, VideoSessionCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator = nullptr )
15269 {
15270 *this = device.createVideoSessionKHR( createInfo, allocator );
15271 }
15272 # endif
15273
15274 VideoSessionKHR( Device const & device, VkVideoSessionKHR videoSession, Optional<AllocationCallbacks const> allocator = nullptr )
15275 : m_device( device )
15276 , m_videoSessionKHR( videoSession )
15277 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
15278 , m_dispatcher( device.getDispatcher() )
15279 {
15280 }
15281
15282 VideoSessionKHR( std::nullptr_t ) {}
15283
15284 ~VideoSessionKHR()
15285 {
15286 clear();
15287 }
15288
15289 VideoSessionKHR() = delete;
15290 VideoSessionKHR( VideoSessionKHR const & ) = delete;
15291
15292 VideoSessionKHR( VideoSessionKHR && rhs ) VULKAN_HPP_NOEXCEPT
15293 : m_device( exchange( rhs.m_device, {} ) )
15294 , m_videoSessionKHR( exchange( rhs.m_videoSessionKHR, {} ) )
15295 , m_allocator( exchange( rhs.m_allocator, {} ) )
15296 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
15297 {
15298 }
15299
15300 VideoSessionKHR & operator=( VideoSessionKHR const & ) = delete;
15301
15302 VideoSessionKHR & operator=( VideoSessionKHR && rhs ) VULKAN_HPP_NOEXCEPT
15303 {
15304 if ( this != &rhs )
15305 {
15306 std::swap( m_device, rhs.m_device );
15307 std::swap( m_videoSessionKHR, rhs.m_videoSessionKHR );
15308 std::swap( m_allocator, rhs.m_allocator );
15309 std::swap( m_dispatcher, rhs.m_dispatcher );
15310 }
15311 return *this;
15312 }
15313
15314 VULKAN_HPP_NAMESPACE::VideoSessionKHR const & operator*() const & VULKAN_HPP_NOEXCEPT
15315 {
15316 return m_videoSessionKHR;
15317 }
15318
15319 VULKAN_HPP_NAMESPACE::VideoSessionKHR const && operator*() const && VULKAN_HPP_NOEXCEPT
15320 {
15321 return std::move( m_videoSessionKHR );
15322 }
15323
15324 operator VULKAN_HPP_NAMESPACE::VideoSessionKHR() const VULKAN_HPP_NOEXCEPT
15325 {
15326 return m_videoSessionKHR;
15327 }
15328
15329 void clear() VULKAN_HPP_NOEXCEPT
15330 {
15331 if ( m_videoSessionKHR )
15332 {
15333 getDispatcher()->vkDestroyVideoSessionKHR( static_cast<VkDevice>( m_device ),
15334 static_cast<VkVideoSessionKHR>( m_videoSessionKHR ),
15335 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
15336 }
15337 m_device = nullptr;
15338 m_videoSessionKHR = nullptr;
15339 m_allocator = nullptr;
15340 m_dispatcher = nullptr;
15341 }
15342
15343 VULKAN_HPP_NAMESPACE::VideoSessionKHR release()
15344 {
15345 m_device = nullptr;
15346 m_allocator = nullptr;
15347 m_dispatcher = nullptr;
15348 return exchange( m_videoSessionKHR, nullptr );
15349 }
15350
15351 VULKAN_HPP_NAMESPACE::Device getDevice() const
15352 {
15353 return m_device;
15354 }
15355
15356 detail::DeviceDispatcher const * getDispatcher() const
15357 {
15358 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
15359 return m_dispatcher;
15360 }
15361
15362 void swap( VideoSessionKHR & rhs ) VULKAN_HPP_NOEXCEPT
15363 {
15364 std::swap( m_device, rhs.m_device );
15365 std::swap( m_videoSessionKHR, rhs.m_videoSessionKHR );
15366 std::swap( m_allocator, rhs.m_allocator );
15367 std::swap( m_dispatcher, rhs.m_dispatcher );
15368 }
15369
15370 //=== VK_KHR_video_queue ===
15371
15372 // wrapper function for command vkGetVideoSessionMemoryRequirementsKHR, see
15373 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetVideoSessionMemoryRequirementsKHR.html
15374 VULKAN_HPP_NODISCARD typename ResultValueType<std::vector<VideoSessionMemoryRequirementsKHR>>::type getMemoryRequirements() const;
15375
15376 // wrapper function for command vkBindVideoSessionMemoryKHR, see
15377 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindVideoSessionMemoryKHR.html
15378 typename ResultValueType<void>::type bindMemory( ArrayProxy<BindVideoSessionMemoryInfoKHR const> const & bindSessionMemoryInfos ) const;
15379
15380 private:
15381 VULKAN_HPP_NAMESPACE::Device m_device = {};
15382 VULKAN_HPP_NAMESPACE::VideoSessionKHR m_videoSessionKHR = {};
15383 AllocationCallbacks const * m_allocator = {};
15384 detail::DeviceDispatcher const * m_dispatcher = nullptr;
15385 };
15386
15387 template <>
15388 struct isVulkanRAIIHandleType<VideoSessionKHR>
15389 {
15390 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
15391 };
15392
15393 // wrapper class for handle VkVideoSessionParametersKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/VkVideoSessionParametersKHR.html
15394 class VideoSessionParametersKHR
15395 {
15396 public:
15397 using CType = VkVideoSessionParametersKHR;
15398 using CppType = VULKAN_HPP_NAMESPACE::VideoSessionParametersKHR;
15399
15400 static VULKAN_HPP_CONST_OR_CONSTEXPR ObjectType objectType = ObjectType::eVideoSessionParametersKHR;
15401 static VULKAN_HPP_CONST_OR_CONSTEXPR DebugReportObjectTypeEXT debugReportObjectType = DebugReportObjectTypeEXT::eUnknown;
15402
15403 public:
15404 # if !defined( VULKAN_HPP_NO_EXCEPTIONS )
15405 VideoSessionParametersKHR( Device const & device,
15406 VideoSessionParametersCreateInfoKHR const & createInfo,
15407 Optional<AllocationCallbacks const> allocator = nullptr )
15408 {
15409 *this = device.createVideoSessionParametersKHR( createInfo, allocator );
15410 }
15411 # endif
15412
15413 VideoSessionParametersKHR( Device const & device,
15414 VkVideoSessionParametersKHR videoSessionParameters,
15415 Optional<AllocationCallbacks const> allocator = nullptr )
15416 : m_device( device )
15417 , m_videoSessionParametersKHR( videoSessionParameters )
15418 , m_allocator( static_cast<const AllocationCallbacks *>( allocator ) )
15419 , m_dispatcher( device.getDispatcher() )
15420 {
15421 }
15422
15423 VideoSessionParametersKHR( std::nullptr_t ) {}
15424
15425 ~VideoSessionParametersKHR()
15426 {
15427 clear();
15428 }
15429
15430 VideoSessionParametersKHR() = delete;
15431 VideoSessionParametersKHR( VideoSessionParametersKHR const & ) = delete;
15432
15433 VideoSessionParametersKHR( VideoSessionParametersKHR && rhs ) VULKAN_HPP_NOEXCEPT
15434 : m_device( exchange( rhs.m_device, {} ) )
15435 , m_videoSessionParametersKHR( exchange( rhs.m_videoSessionParametersKHR, {} ) )
15436 , m_allocator( exchange( rhs.m_allocator, {} ) )
15437 , m_dispatcher( exchange( rhs.m_dispatcher, nullptr ) )
15438 {
15439 }
15440
15441 VideoSessionParametersKHR & operator=( VideoSessionParametersKHR const & ) = delete;
15442
15443 VideoSessionParametersKHR & operator=( VideoSessionParametersKHR && rhs ) VULKAN_HPP_NOEXCEPT
15444 {
15445 if ( this != &rhs )
15446 {
15447 std::swap( m_device, rhs.m_device );
15448 std::swap( m_videoSessionParametersKHR, rhs.m_videoSessionParametersKHR );
15449 std::swap( m_allocator, rhs.m_allocator );
15450 std::swap( m_dispatcher, rhs.m_dispatcher );
15451 }
15452 return *this;
15453 }
15454
15455 VULKAN_HPP_NAMESPACE::VideoSessionParametersKHR const & operator*() const & VULKAN_HPP_NOEXCEPT
15456 {
15457 return m_videoSessionParametersKHR;
15458 }
15459
15460 VULKAN_HPP_NAMESPACE::VideoSessionParametersKHR const && operator*() const && VULKAN_HPP_NOEXCEPT
15461 {
15462 return std::move( m_videoSessionParametersKHR );
15463 }
15464
15465 operator VULKAN_HPP_NAMESPACE::VideoSessionParametersKHR() const VULKAN_HPP_NOEXCEPT
15466 {
15467 return m_videoSessionParametersKHR;
15468 }
15469
15470 void clear() VULKAN_HPP_NOEXCEPT
15471 {
15472 if ( m_videoSessionParametersKHR )
15473 {
15474 getDispatcher()->vkDestroyVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
15475 static_cast<VkVideoSessionParametersKHR>( m_videoSessionParametersKHR ),
15476 reinterpret_cast<VkAllocationCallbacks const *>( m_allocator ) );
15477 }
15478 m_device = nullptr;
15479 m_videoSessionParametersKHR = nullptr;
15480 m_allocator = nullptr;
15481 m_dispatcher = nullptr;
15482 }
15483
15484 VULKAN_HPP_NAMESPACE::VideoSessionParametersKHR release()
15485 {
15486 m_device = nullptr;
15487 m_allocator = nullptr;
15488 m_dispatcher = nullptr;
15489 return exchange( m_videoSessionParametersKHR, nullptr );
15490 }
15491
15492 VULKAN_HPP_NAMESPACE::Device getDevice() const
15493 {
15494 return m_device;
15495 }
15496
15497 detail::DeviceDispatcher const * getDispatcher() const
15498 {
15499 VULKAN_HPP_ASSERT( m_dispatcher->getVkHeaderVersion() == VK_HEADER_VERSION );
15500 return m_dispatcher;
15501 }
15502
15503 void swap( VideoSessionParametersKHR & rhs ) VULKAN_HPP_NOEXCEPT
15504 {
15505 std::swap( m_device, rhs.m_device );
15506 std::swap( m_videoSessionParametersKHR, rhs.m_videoSessionParametersKHR );
15507 std::swap( m_allocator, rhs.m_allocator );
15508 std::swap( m_dispatcher, rhs.m_dispatcher );
15509 }
15510
15511 //=== VK_KHR_video_queue ===
15512
15513 // wrapper function for command vkUpdateVideoSessionParametersKHR, see
15514 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateVideoSessionParametersKHR.html
15515 typename ResultValueType<void>::type update( VideoSessionParametersUpdateInfoKHR const & updateInfo ) const;
15516
15517 private:
15518 VULKAN_HPP_NAMESPACE::Device m_device = {};
15519 VULKAN_HPP_NAMESPACE::VideoSessionParametersKHR m_videoSessionParametersKHR = {};
15520 AllocationCallbacks const * m_allocator = {};
15521 detail::DeviceDispatcher const * m_dispatcher = nullptr;
15522 };
15523
15524 template <>
15525 struct isVulkanRAIIHandleType<VideoSessionParametersKHR>
15526 {
15527 static VULKAN_HPP_CONST_OR_CONSTEXPR bool value = true;
15528 };
15529
15530 // operators to compare VULKAN_HPP_NAMESPACE::raii-handles
15531 # if defined( VULKAN_HPP_HAS_SPACESHIP_OPERATOR )
15532 template <typename T, typename std::enable_if<isVulkanRAIIHandleType<T>::value, bool>::type = 0>
15533 auto operator<=>( T const & a, T const & b ) VULKAN_HPP_NOEXCEPT
15534 {
15535 return *a <=> *b;
15536 }
15537 # else
15538 template <typename T, typename std::enable_if<isVulkanRAIIHandleType<T>::value, bool>::type = 0>
15539 bool operator<( T const & a, T const & b ) VULKAN_HPP_NOEXCEPT
15540 {
15541 return *a < *b;
15542 }
15543 # endif
15544
15545 template <typename T, typename std::enable_if<isVulkanRAIIHandleType<T>::value, bool>::type = 0>
15546 bool operator==( T const & a, T const & b ) VULKAN_HPP_NOEXCEPT
15547 {
15548 return *a == *b;
15549 }
15550
15551 template <typename T, typename std::enable_if<isVulkanRAIIHandleType<T>::value, bool>::type = 0>
15552 bool operator!=( T const & a, T const & b ) VULKAN_HPP_NOEXCEPT
15553 {
15554 return *a != *b;
15555 }
15556
15557 template <typename T, typename std::enable_if<isVulkanRAIIHandleType<T>::value, bool>::type = 0>
15558 bool operator==( T const & v, std::nullptr_t ) VULKAN_HPP_NOEXCEPT
15559 {
15560 return !*v;
15561 }
15562
15563 template <typename T, typename std::enable_if<isVulkanRAIIHandleType<T>::value, bool>::type = 0>
15564 bool operator==( std::nullptr_t, T const & v ) VULKAN_HPP_NOEXCEPT
15565 {
15566 return !*v;
15567 }
15568
15569 template <typename T, typename std::enable_if<isVulkanRAIIHandleType<T>::value, bool>::type = 0>
15570 bool operator!=( T const & v, std::nullptr_t ) VULKAN_HPP_NOEXCEPT
15571 {
15572 return *v;
15573 }
15574
15575 template <typename T, typename std::enable_if<isVulkanRAIIHandleType<T>::value, bool>::type = 0>
15576 bool operator!=( std::nullptr_t, T const & v ) VULKAN_HPP_NOEXCEPT
15577 {
15578 return *v;
15579 }
15580
15581 //===========================
15582 //=== COMMAND Definitions ===
15583 //===========================
15584
15585 //=== VK_VERSION_1_0 ===
15586
15587 // wrapper function for command vkCreateInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateInstance.html
15588 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Instance>::type
15589 Context::createInstance( InstanceCreateInfo const & createInfo,
15590 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
15591 {
15592 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateInstance && "Function <vkCreateInstance> requires <VK_VERSION_1_0>" );
15593
15594 VULKAN_HPP_NAMESPACE::Instance instance;
15595 Result result = static_cast<Result>( getDispatcher()->vkCreateInstance( reinterpret_cast<VkInstanceCreateInfo const *>( &createInfo ),
15596 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
15597 reinterpret_cast<VkInstance *>( &instance ) ) );
15598 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Context::createInstance" );
15599 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Instance( *this, *reinterpret_cast<VkInstance *>( &instance ), allocator ) );
15600 }
15601
15602 // wrapper function for command vkEnumeratePhysicalDevices, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDevices.html
15603 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDevice>>::type Instance::enumeratePhysicalDevices() const
15604 {
15605 VULKAN_HPP_ASSERT( getDispatcher()->vkEnumeratePhysicalDevices && "Function <vkEnumeratePhysicalDevices> requires <VK_VERSION_1_0>" );
15606
15607 std::vector<VULKAN_HPP_NAMESPACE::PhysicalDevice> physicalDevices;
15608 uint32_t physicalDeviceCount;
15609 Result result;
15610 do
15611 {
15612 result = static_cast<Result>( getDispatcher()->vkEnumeratePhysicalDevices( static_cast<VkInstance>( m_instance ), &physicalDeviceCount, nullptr ) );
15613 if ( ( result == Result::eSuccess ) && physicalDeviceCount )
15614 {
15615 physicalDevices.resize( physicalDeviceCount );
15616 result = static_cast<Result>( getDispatcher()->vkEnumeratePhysicalDevices(
15617 static_cast<VkInstance>( m_instance ), &physicalDeviceCount, reinterpret_cast<VkPhysicalDevice *>( physicalDevices.data() ) ) );
15618 }
15619 } while ( result == Result::eIncomplete );
15620 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::enumeratePhysicalDevices" );
15621 std::vector<PhysicalDevice> physicalDevicesRAII;
15622 if ( result == Result::eSuccess )
15623 {
15624 physicalDevicesRAII.reserve( physicalDevices.size() );
15625 for ( auto & physicalDevice : physicalDevices )
15626 {
15627 physicalDevicesRAII.emplace_back( *this, *reinterpret_cast<VkPhysicalDevice *>( &physicalDevice ) );
15628 }
15629 }
15630 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( physicalDevicesRAII ) );
15631 }
15632
15633 // wrapper function for command vkGetPhysicalDeviceFeatures, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures.html
15634 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceFeatures PhysicalDevice::getFeatures() const VULKAN_HPP_NOEXCEPT
15635 {
15636 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFeatures && "Function <vkGetPhysicalDeviceFeatures> requires <VK_VERSION_1_0>" );
15637
15638 PhysicalDeviceFeatures features;
15639 getDispatcher()->vkGetPhysicalDeviceFeatures( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15640 reinterpret_cast<VkPhysicalDeviceFeatures *>( &features ) );
15641
15642 return features;
15643 }
15644
15645 // wrapper function for command vkGetPhysicalDeviceFormatProperties, see
15646 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties.html
15647 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE FormatProperties PhysicalDevice::getFormatProperties( Format format ) const VULKAN_HPP_NOEXCEPT
15648 {
15649 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFormatProperties && "Function <vkGetPhysicalDeviceFormatProperties> requires <VK_VERSION_1_0>" );
15650
15651 FormatProperties formatProperties;
15652 getDispatcher()->vkGetPhysicalDeviceFormatProperties(
15653 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties *>( &formatProperties ) );
15654
15655 return formatProperties;
15656 }
15657
15658 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties, see
15659 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties.html
15660 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageFormatProperties>::type
15661 PhysicalDevice::getImageFormatProperties( Format format, ImageType type, ImageTiling tiling, ImageUsageFlags usage, ImageCreateFlags flags ) const
15662 {
15663 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceImageFormatProperties &&
15664 "Function <vkGetPhysicalDeviceImageFormatProperties> requires <VK_VERSION_1_0>" );
15665
15666 ImageFormatProperties imageFormatProperties;
15667 Result result = static_cast<Result>(
15668 getDispatcher()->vkGetPhysicalDeviceImageFormatProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15669 static_cast<VkFormat>( format ),
15670 static_cast<VkImageType>( type ),
15671 static_cast<VkImageTiling>( tiling ),
15672 static_cast<VkImageUsageFlags>( usage ),
15673 static_cast<VkImageCreateFlags>( flags ),
15674 reinterpret_cast<VkImageFormatProperties *>( &imageFormatProperties ) ) );
15675 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties" );
15676
15677 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( imageFormatProperties ) );
15678 }
15679
15680 // wrapper function for command vkGetPhysicalDeviceProperties, see
15681 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties.html
15682 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceProperties PhysicalDevice::getProperties() const VULKAN_HPP_NOEXCEPT
15683 {
15684 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceProperties && "Function <vkGetPhysicalDeviceProperties> requires <VK_VERSION_1_0>" );
15685
15686 PhysicalDeviceProperties properties;
15687 getDispatcher()->vkGetPhysicalDeviceProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15688 reinterpret_cast<VkPhysicalDeviceProperties *>( &properties ) );
15689
15690 return properties;
15691 }
15692
15693 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties, see
15694 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties.html
15695 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties> PhysicalDevice::getQueueFamilyProperties() const
15696 {
15697 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties &&
15698 "Function <vkGetPhysicalDeviceQueueFamilyProperties> requires <VK_VERSION_1_0>" );
15699
15700 std::vector<QueueFamilyProperties> queueFamilyProperties;
15701 uint32_t queueFamilyPropertyCount;
15702 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ), &queueFamilyPropertyCount, nullptr );
15703 queueFamilyProperties.resize( queueFamilyPropertyCount );
15704 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15705 &queueFamilyPropertyCount,
15706 reinterpret_cast<VkQueueFamilyProperties *>( queueFamilyProperties.data() ) );
15707
15708 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
15709 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
15710 {
15711 queueFamilyProperties.resize( queueFamilyPropertyCount );
15712 }
15713 return queueFamilyProperties;
15714 }
15715
15716 // wrapper function for command vkGetPhysicalDeviceMemoryProperties, see
15717 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties.html
15718 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceMemoryProperties PhysicalDevice::getMemoryProperties() const VULKAN_HPP_NOEXCEPT
15719 {
15720 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceMemoryProperties && "Function <vkGetPhysicalDeviceMemoryProperties> requires <VK_VERSION_1_0>" );
15721
15722 PhysicalDeviceMemoryProperties memoryProperties;
15723 getDispatcher()->vkGetPhysicalDeviceMemoryProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15724 reinterpret_cast<VkPhysicalDeviceMemoryProperties *>( &memoryProperties ) );
15725
15726 return memoryProperties;
15727 }
15728
15729 // wrapper function for command vkGetInstanceProcAddr, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetInstanceProcAddr.html
15730 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PFN_VoidFunction Instance::getProcAddr( std::string const & name ) const VULKAN_HPP_NOEXCEPT
15731 {
15732 VULKAN_HPP_ASSERT( getDispatcher()->vkGetInstanceProcAddr && "Function <vkGetInstanceProcAddr> requires <VK_VERSION_1_0>" );
15733
15734 PFN_vkVoidFunction result = getDispatcher()->vkGetInstanceProcAddr( static_cast<VkInstance>( m_instance ), name.c_str() );
15735
15736 return result;
15737 }
15738
15739 // wrapper function for command vkGetDeviceProcAddr, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceProcAddr.html
15740 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PFN_VoidFunction Device::getProcAddr( std::string const & name ) const VULKAN_HPP_NOEXCEPT
15741 {
15742 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceProcAddr && "Function <vkGetDeviceProcAddr> requires <VK_VERSION_1_0>" );
15743
15744 PFN_vkVoidFunction result = getDispatcher()->vkGetDeviceProcAddr( static_cast<VkDevice>( m_device ), name.c_str() );
15745
15746 return result;
15747 }
15748
15749 // wrapper function for command vkCreateDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDevice.html
15750 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Device>::type
15751 PhysicalDevice::createDevice( DeviceCreateInfo const & createInfo,
15752 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
15753 {
15754 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDevice && "Function <vkCreateDevice> requires <VK_VERSION_1_0>" );
15755
15756 VULKAN_HPP_NAMESPACE::Device device;
15757 Result result = static_cast<Result>( getDispatcher()->vkCreateDevice( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15758 reinterpret_cast<VkDeviceCreateInfo const *>( &createInfo ),
15759 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
15760 reinterpret_cast<VkDevice *>( &device ) ) );
15761 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::createDevice" );
15762 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Device( *this, *reinterpret_cast<VkDevice *>( &device ), allocator ) );
15763 }
15764
15765 // wrapper function for command vkEnumerateInstanceExtensionProperties, see
15766 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceExtensionProperties.html
15767 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<ExtensionProperties>>::type
15768 Context::enumerateInstanceExtensionProperties( Optional<std::string const> layerName ) const
15769 {
15770 VULKAN_HPP_ASSERT( getDispatcher()->vkEnumerateInstanceExtensionProperties &&
15771 "Function <vkEnumerateInstanceExtensionProperties> requires <VK_VERSION_1_0>" );
15772
15773 std::vector<ExtensionProperties> properties;
15774 uint32_t propertyCount;
15775 Result result;
15776 do
15777 {
15778 result =
15779 static_cast<Result>( getDispatcher()->vkEnumerateInstanceExtensionProperties( layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) );
15780 if ( ( result == Result::eSuccess ) && propertyCount )
15781 {
15782 properties.resize( propertyCount );
15783 result = static_cast<Result>( getDispatcher()->vkEnumerateInstanceExtensionProperties(
15784 layerName ? layerName->c_str() : nullptr, &propertyCount, reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
15785 }
15786 } while ( result == Result::eIncomplete );
15787 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Context::enumerateInstanceExtensionProperties" );
15788 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15789 if ( propertyCount < properties.size() )
15790 {
15791 properties.resize( propertyCount );
15792 }
15793 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
15794 }
15795
15796 // wrapper function for command vkEnumerateDeviceExtensionProperties, see
15797 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceExtensionProperties.html
15798 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<ExtensionProperties>>::type
15799 PhysicalDevice::enumerateDeviceExtensionProperties( Optional<std::string const> layerName ) const
15800 {
15801 VULKAN_HPP_ASSERT( getDispatcher()->vkEnumerateDeviceExtensionProperties && "Function <vkEnumerateDeviceExtensionProperties> requires <VK_VERSION_1_0>" );
15802
15803 std::vector<ExtensionProperties> properties;
15804 uint32_t propertyCount;
15805 Result result;
15806 do
15807 {
15808 result = static_cast<Result>( getDispatcher()->vkEnumerateDeviceExtensionProperties(
15809 static_cast<VkPhysicalDevice>( m_physicalDevice ), layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) );
15810 if ( ( result == Result::eSuccess ) && propertyCount )
15811 {
15812 properties.resize( propertyCount );
15813 result =
15814 static_cast<Result>( getDispatcher()->vkEnumerateDeviceExtensionProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15815 layerName ? layerName->c_str() : nullptr,
15816 &propertyCount,
15817 reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
15818 }
15819 } while ( result == Result::eIncomplete );
15820 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceExtensionProperties" );
15821 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15822 if ( propertyCount < properties.size() )
15823 {
15824 properties.resize( propertyCount );
15825 }
15826 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
15827 }
15828
15829 // wrapper function for command vkEnumerateInstanceLayerProperties, see
15830 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceLayerProperties.html
15831 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<LayerProperties>>::type Context::enumerateInstanceLayerProperties() const
15832 {
15833 VULKAN_HPP_ASSERT( getDispatcher()->vkEnumerateInstanceLayerProperties && "Function <vkEnumerateInstanceLayerProperties> requires <VK_VERSION_1_0>" );
15834
15835 std::vector<LayerProperties> properties;
15836 uint32_t propertyCount;
15837 Result result;
15838 do
15839 {
15840 result = static_cast<Result>( getDispatcher()->vkEnumerateInstanceLayerProperties( &propertyCount, nullptr ) );
15841 if ( ( result == Result::eSuccess ) && propertyCount )
15842 {
15843 properties.resize( propertyCount );
15844 result = static_cast<Result>(
15845 getDispatcher()->vkEnumerateInstanceLayerProperties( &propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
15846 }
15847 } while ( result == Result::eIncomplete );
15848 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Context::enumerateInstanceLayerProperties" );
15849 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15850 if ( propertyCount < properties.size() )
15851 {
15852 properties.resize( propertyCount );
15853 }
15854 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
15855 }
15856
15857 // wrapper function for command vkEnumerateDeviceLayerProperties, see
15858 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceLayerProperties.html
15859 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<LayerProperties>>::type PhysicalDevice::enumerateDeviceLayerProperties() const
15860 {
15861 VULKAN_HPP_ASSERT( getDispatcher()->vkEnumerateDeviceLayerProperties && "Function <vkEnumerateDeviceLayerProperties> requires <VK_VERSION_1_0>" );
15862
15863 std::vector<LayerProperties> properties;
15864 uint32_t propertyCount;
15865 Result result;
15866 do
15867 {
15868 result = static_cast<Result>(
15869 getDispatcher()->vkEnumerateDeviceLayerProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, nullptr ) );
15870 if ( ( result == Result::eSuccess ) && propertyCount )
15871 {
15872 properties.resize( propertyCount );
15873 result = static_cast<Result>( getDispatcher()->vkEnumerateDeviceLayerProperties(
15874 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
15875 }
15876 } while ( result == Result::eIncomplete );
15877 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceLayerProperties" );
15878 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15879 if ( propertyCount < properties.size() )
15880 {
15881 properties.resize( propertyCount );
15882 }
15883 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
15884 }
15885
15886 // wrapper function for command vkGetDeviceQueue, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceQueue.html
15887 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Queue Device::getQueue( uint32_t queueFamilyIndex, uint32_t queueIndex ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
15888 {
15889 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceQueue && "Function <vkGetDeviceQueue> requires <VK_VERSION_1_0>" );
15890
15891 VULKAN_HPP_NAMESPACE::Queue queue;
15892 getDispatcher()->vkGetDeviceQueue( static_cast<VkDevice>( m_device ), queueFamilyIndex, queueIndex, reinterpret_cast<VkQueue *>( &queue ) );
15893
15894 return Queue( *this, *reinterpret_cast<VkQueue *>( &queue ) );
15895 }
15896
15897 // wrapper function for command vkQueueSubmit, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit.html
15898 VULKAN_HPP_INLINE typename ResultValueType<void>::type Queue::submit( ArrayProxy<SubmitInfo const> const & submits,
15899 VULKAN_HPP_NAMESPACE::Fence fence ) const
15900 {
15901 VULKAN_HPP_ASSERT( getDispatcher()->vkQueueSubmit && "Function <vkQueueSubmit> requires <VK_VERSION_1_0>" );
15902
15903 Result result = static_cast<Result>( getDispatcher()->vkQueueSubmit(
15904 static_cast<VkQueue>( m_queue ), submits.size(), reinterpret_cast<VkSubmitInfo const *>( submits.data() ), static_cast<VkFence>( fence ) ) );
15905 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Queue::submit" );
15906
15907 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
15908 }
15909
15910 // wrapper function for command vkQueueWaitIdle, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueWaitIdle.html
15911 VULKAN_HPP_INLINE typename ResultValueType<void>::type Queue::waitIdle() const
15912 {
15913 VULKAN_HPP_ASSERT( getDispatcher()->vkQueueWaitIdle && "Function <vkQueueWaitIdle> requires <VK_VERSION_1_0>" );
15914
15915 Result result = static_cast<Result>( getDispatcher()->vkQueueWaitIdle( static_cast<VkQueue>( m_queue ) ) );
15916 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Queue::waitIdle" );
15917
15918 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
15919 }
15920
15921 // wrapper function for command vkDeviceWaitIdle, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeviceWaitIdle.html
15922 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::waitIdle() const
15923 {
15924 VULKAN_HPP_ASSERT( getDispatcher()->vkDeviceWaitIdle && "Function <vkDeviceWaitIdle> requires <VK_VERSION_1_0>" );
15925
15926 Result result = static_cast<Result>( getDispatcher()->vkDeviceWaitIdle( static_cast<VkDevice>( m_device ) ) );
15927 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::waitIdle" );
15928
15929 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
15930 }
15931
15932 // wrapper function for command vkAllocateMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateMemory.html
15933 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeviceMemory>::type
15934 Device::allocateMemory( MemoryAllocateInfo const & allocateInfo,
15935 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
15936 {
15937 VULKAN_HPP_ASSERT( getDispatcher()->vkAllocateMemory && "Function <vkAllocateMemory> requires <VK_VERSION_1_0>" );
15938
15939 VULKAN_HPP_NAMESPACE::DeviceMemory memory;
15940 Result result = static_cast<Result>( getDispatcher()->vkAllocateMemory( static_cast<VkDevice>( m_device ),
15941 reinterpret_cast<VkMemoryAllocateInfo const *>( &allocateInfo ),
15942 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
15943 reinterpret_cast<VkDeviceMemory *>( &memory ) ) );
15944 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::allocateMemory" );
15945 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, DeviceMemory( *this, *reinterpret_cast<VkDeviceMemory *>( &memory ), allocator ) );
15946 }
15947
15948 // wrapper function for command vkMapMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory.html
15949 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<void *>::type
15950 DeviceMemory::mapMemory( DeviceSize offset, DeviceSize size, MemoryMapFlags flags ) const
15951 {
15952 VULKAN_HPP_ASSERT( getDispatcher()->vkMapMemory && "Function <vkMapMemory> requires <VK_VERSION_1_0>" );
15953
15954 void * pData;
15955 Result result = static_cast<Result>( getDispatcher()->vkMapMemory( static_cast<VkDevice>( m_device ),
15956 static_cast<VkDeviceMemory>( m_deviceMemory ),
15957 static_cast<VkDeviceSize>( offset ),
15958 static_cast<VkDeviceSize>( size ),
15959 static_cast<VkMemoryMapFlags>( flags ),
15960 &pData ) );
15961 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::DeviceMemory::mapMemory" );
15962
15963 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( pData ) );
15964 }
15965
15966 // wrapper function for command vkUnmapMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory.html
15967 VULKAN_HPP_INLINE void DeviceMemory::unmapMemory() const VULKAN_HPP_NOEXCEPT
15968 {
15969 VULKAN_HPP_ASSERT( getDispatcher()->vkUnmapMemory && "Function <vkUnmapMemory> requires <VK_VERSION_1_0>" );
15970
15971 getDispatcher()->vkUnmapMemory( static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( m_deviceMemory ) );
15972 }
15973
15974 // wrapper function for command vkFlushMappedMemoryRanges, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFlushMappedMemoryRanges.html
15975 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::flushMappedMemoryRanges( ArrayProxy<MappedMemoryRange const> const & memoryRanges ) const
15976 {
15977 VULKAN_HPP_ASSERT( getDispatcher()->vkFlushMappedMemoryRanges && "Function <vkFlushMappedMemoryRanges> requires <VK_VERSION_1_0>" );
15978
15979 Result result = static_cast<Result>( getDispatcher()->vkFlushMappedMemoryRanges(
15980 static_cast<VkDevice>( m_device ), memoryRanges.size(), reinterpret_cast<VkMappedMemoryRange const *>( memoryRanges.data() ) ) );
15981 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::flushMappedMemoryRanges" );
15982
15983 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
15984 }
15985
15986 // wrapper function for command vkInvalidateMappedMemoryRanges, see
15987 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkInvalidateMappedMemoryRanges.html
15988 VULKAN_HPP_INLINE typename ResultValueType<void>::type
15989 Device::invalidateMappedMemoryRanges( ArrayProxy<MappedMemoryRange const> const & memoryRanges ) const
15990 {
15991 VULKAN_HPP_ASSERT( getDispatcher()->vkInvalidateMappedMemoryRanges && "Function <vkInvalidateMappedMemoryRanges> requires <VK_VERSION_1_0>" );
15992
15993 Result result = static_cast<Result>( getDispatcher()->vkInvalidateMappedMemoryRanges(
15994 static_cast<VkDevice>( m_device ), memoryRanges.size(), reinterpret_cast<VkMappedMemoryRange const *>( memoryRanges.data() ) ) );
15995 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::invalidateMappedMemoryRanges" );
15996
15997 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
15998 }
15999
16000 // wrapper function for command vkGetDeviceMemoryCommitment, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryCommitment.html
16001 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceSize DeviceMemory::getCommitment() const VULKAN_HPP_NOEXCEPT
16002 {
16003 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceMemoryCommitment && "Function <vkGetDeviceMemoryCommitment> requires <VK_VERSION_1_0>" );
16004
16005 DeviceSize committedMemoryInBytes;
16006 getDispatcher()->vkGetDeviceMemoryCommitment(
16007 static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( m_deviceMemory ), reinterpret_cast<VkDeviceSize *>( &committedMemoryInBytes ) );
16008
16009 return committedMemoryInBytes;
16010 }
16011
16012 // wrapper function for command vkBindBufferMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory.html
16013 VULKAN_HPP_INLINE typename ResultValueType<void>::type Buffer::bindMemory( VULKAN_HPP_NAMESPACE::DeviceMemory memory, DeviceSize memoryOffset ) const
16014 {
16015 VULKAN_HPP_ASSERT( getDispatcher()->vkBindBufferMemory && "Function <vkBindBufferMemory> requires <VK_VERSION_1_0>" );
16016
16017 Result result = static_cast<Result>( getDispatcher()->vkBindBufferMemory( static_cast<VkDevice>( m_device ),
16018 static_cast<VkBuffer>( m_buffer ),
16019 static_cast<VkDeviceMemory>( memory ),
16020 static_cast<VkDeviceSize>( memoryOffset ) ) );
16021 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Buffer::bindMemory" );
16022
16023 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
16024 }
16025
16026 // wrapper function for command vkBindImageMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory.html
16027 VULKAN_HPP_INLINE typename ResultValueType<void>::type Image::bindMemory( VULKAN_HPP_NAMESPACE::DeviceMemory memory, DeviceSize memoryOffset ) const
16028 {
16029 VULKAN_HPP_ASSERT( getDispatcher()->vkBindImageMemory && "Function <vkBindImageMemory> requires <VK_VERSION_1_0>" );
16030
16031 Result result = static_cast<Result>( getDispatcher()->vkBindImageMemory( static_cast<VkDevice>( m_device ),
16032 static_cast<VkImage>( m_image ),
16033 static_cast<VkDeviceMemory>( memory ),
16034 static_cast<VkDeviceSize>( memoryOffset ) ) );
16035 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Image::bindMemory" );
16036
16037 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
16038 }
16039
16040 // wrapper function for command vkGetBufferMemoryRequirements, see
16041 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements.html
16042 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements Buffer::getMemoryRequirements() const VULKAN_HPP_NOEXCEPT
16043 {
16044 VULKAN_HPP_ASSERT( getDispatcher()->vkGetBufferMemoryRequirements && "Function <vkGetBufferMemoryRequirements> requires <VK_VERSION_1_0>" );
16045
16046 MemoryRequirements memoryRequirements;
16047 getDispatcher()->vkGetBufferMemoryRequirements(
16048 static_cast<VkDevice>( m_device ), static_cast<VkBuffer>( m_buffer ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) );
16049
16050 return memoryRequirements;
16051 }
16052
16053 // wrapper function for command vkGetImageMemoryRequirements, see
16054 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements.html
16055 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements Image::getMemoryRequirements() const VULKAN_HPP_NOEXCEPT
16056 {
16057 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageMemoryRequirements && "Function <vkGetImageMemoryRequirements> requires <VK_VERSION_1_0>" );
16058
16059 MemoryRequirements memoryRequirements;
16060 getDispatcher()->vkGetImageMemoryRequirements(
16061 static_cast<VkDevice>( m_device ), static_cast<VkImage>( m_image ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) );
16062
16063 return memoryRequirements;
16064 }
16065
16066 // wrapper function for command vkGetImageSparseMemoryRequirements, see
16067 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements.html
16068 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements> Image::getSparseMemoryRequirements() const
16069 {
16070 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageSparseMemoryRequirements && "Function <vkGetImageSparseMemoryRequirements> requires <VK_VERSION_1_0>" );
16071
16072 std::vector<SparseImageMemoryRequirements> sparseMemoryRequirements;
16073 uint32_t sparseMemoryRequirementCount;
16074 getDispatcher()->vkGetImageSparseMemoryRequirements(
16075 static_cast<VkDevice>( m_device ), static_cast<VkImage>( m_image ), &sparseMemoryRequirementCount, nullptr );
16076 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
16077 getDispatcher()->vkGetImageSparseMemoryRequirements( static_cast<VkDevice>( m_device ),
16078 static_cast<VkImage>( m_image ),
16079 &sparseMemoryRequirementCount,
16080 reinterpret_cast<VkSparseImageMemoryRequirements *>( sparseMemoryRequirements.data() ) );
16081
16082 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
16083 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
16084 {
16085 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
16086 }
16087 return sparseMemoryRequirements;
16088 }
16089
16090 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties, see
16091 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties.html
16092 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties> PhysicalDevice::getSparseImageFormatProperties(
16093 Format format, ImageType type, SampleCountFlagBits samples, ImageUsageFlags usage, ImageTiling tiling ) const
16094 {
16095 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties &&
16096 "Function <vkGetPhysicalDeviceSparseImageFormatProperties> requires <VK_VERSION_1_0>" );
16097
16098 std::vector<SparseImageFormatProperties> properties;
16099 uint32_t propertyCount;
16100 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
16101 static_cast<VkFormat>( format ),
16102 static_cast<VkImageType>( type ),
16103 static_cast<VkSampleCountFlagBits>( samples ),
16104 static_cast<VkImageUsageFlags>( usage ),
16105 static_cast<VkImageTiling>( tiling ),
16106 &propertyCount,
16107 nullptr );
16108 properties.resize( propertyCount );
16109 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
16110 static_cast<VkFormat>( format ),
16111 static_cast<VkImageType>( type ),
16112 static_cast<VkSampleCountFlagBits>( samples ),
16113 static_cast<VkImageUsageFlags>( usage ),
16114 static_cast<VkImageTiling>( tiling ),
16115 &propertyCount,
16116 reinterpret_cast<VkSparseImageFormatProperties *>( properties.data() ) );
16117
16118 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
16119 if ( propertyCount < properties.size() )
16120 {
16121 properties.resize( propertyCount );
16122 }
16123 return properties;
16124 }
16125
16126 // wrapper function for command vkQueueBindSparse, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueBindSparse.html
16127 VULKAN_HPP_INLINE typename ResultValueType<void>::type Queue::bindSparse( ArrayProxy<BindSparseInfo const> const & bindInfo,
16128 VULKAN_HPP_NAMESPACE::Fence fence ) const
16129 {
16130 VULKAN_HPP_ASSERT( getDispatcher()->vkQueueBindSparse && "Function <vkQueueBindSparse> requires <VK_VERSION_1_0>" );
16131
16132 Result result = static_cast<Result>( getDispatcher()->vkQueueBindSparse(
16133 static_cast<VkQueue>( m_queue ), bindInfo.size(), reinterpret_cast<VkBindSparseInfo const *>( bindInfo.data() ), static_cast<VkFence>( fence ) ) );
16134 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Queue::bindSparse" );
16135
16136 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
16137 }
16138
16139 // wrapper function for command vkCreateFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFence.html
16140 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Fence>::type
16141 Device::createFence( FenceCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16142 {
16143 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateFence && "Function <vkCreateFence> requires <VK_VERSION_1_0>" );
16144
16145 VULKAN_HPP_NAMESPACE::Fence fence;
16146 Result result = static_cast<Result>( getDispatcher()->vkCreateFence( static_cast<VkDevice>( m_device ),
16147 reinterpret_cast<VkFenceCreateInfo const *>( &createInfo ),
16148 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16149 reinterpret_cast<VkFence *>( &fence ) ) );
16150 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createFence" );
16151 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Fence( *this, *reinterpret_cast<VkFence *>( &fence ), allocator ) );
16152 }
16153
16154 // wrapper function for command vkResetFences, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetFences.html
16155 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::resetFences( ArrayProxy<VULKAN_HPP_NAMESPACE::Fence const> const & fences ) const
16156 {
16157 VULKAN_HPP_ASSERT( getDispatcher()->vkResetFences && "Function <vkResetFences> requires <VK_VERSION_1_0>" );
16158
16159 Result result = static_cast<Result>(
16160 getDispatcher()->vkResetFences( static_cast<VkDevice>( m_device ), fences.size(), reinterpret_cast<VkFence const *>( fences.data() ) ) );
16161 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::resetFences" );
16162
16163 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
16164 }
16165
16166 // wrapper function for command vkGetFenceStatus, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceStatus.html
16167 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Fence::getStatus() const
16168 {
16169 VULKAN_HPP_ASSERT( getDispatcher()->vkGetFenceStatus && "Function <vkGetFenceStatus> requires <VK_VERSION_1_0>" );
16170
16171 Result result = static_cast<Result>( getDispatcher()->vkGetFenceStatus( static_cast<VkDevice>( m_device ), static_cast<VkFence>( m_fence ) ) );
16172 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Fence::getStatus", { Result::eSuccess, Result::eNotReady } );
16173
16174 return static_cast<Result>( result );
16175 }
16176
16177 // wrapper function for command vkWaitForFences, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForFences.html
16178 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForFences( ArrayProxy<VULKAN_HPP_NAMESPACE::Fence const> const & fences,
16179 Bool32 waitAll,
16180 uint64_t timeout ) const
16181 {
16182 VULKAN_HPP_ASSERT( getDispatcher()->vkWaitForFences && "Function <vkWaitForFences> requires <VK_VERSION_1_0>" );
16183
16184 Result result = static_cast<Result>( getDispatcher()->vkWaitForFences(
16185 static_cast<VkDevice>( m_device ), fences.size(), reinterpret_cast<VkFence const *>( fences.data() ), static_cast<VkBool32>( waitAll ), timeout ) );
16186 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::waitForFences", { Result::eSuccess, Result::eTimeout } );
16187
16188 return static_cast<Result>( result );
16189 }
16190
16191 // wrapper function for command vkCreateSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSemaphore.html
16192 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Semaphore>::type
16193 Device::createSemaphore( SemaphoreCreateInfo const & createInfo,
16194 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16195 {
16196 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateSemaphore && "Function <vkCreateSemaphore> requires <VK_VERSION_1_0>" );
16197
16198 VULKAN_HPP_NAMESPACE::Semaphore semaphore;
16199 Result result = static_cast<Result>( getDispatcher()->vkCreateSemaphore( static_cast<VkDevice>( m_device ),
16200 reinterpret_cast<VkSemaphoreCreateInfo const *>( &createInfo ),
16201 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16202 reinterpret_cast<VkSemaphore *>( &semaphore ) ) );
16203 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createSemaphore" );
16204 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Semaphore( *this, *reinterpret_cast<VkSemaphore *>( &semaphore ), allocator ) );
16205 }
16206
16207 // wrapper function for command vkCreateQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateQueryPool.html
16208 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<QueryPool>::type
16209 Device::createQueryPool( QueryPoolCreateInfo const & createInfo,
16210 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16211 {
16212 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateQueryPool && "Function <vkCreateQueryPool> requires <VK_VERSION_1_0>" );
16213
16214 VULKAN_HPP_NAMESPACE::QueryPool queryPool;
16215 Result result = static_cast<Result>( getDispatcher()->vkCreateQueryPool( static_cast<VkDevice>( m_device ),
16216 reinterpret_cast<VkQueryPoolCreateInfo const *>( &createInfo ),
16217 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16218 reinterpret_cast<VkQueryPool *>( &queryPool ) ) );
16219 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createQueryPool" );
16220 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, QueryPool( *this, *reinterpret_cast<VkQueryPool *>( &queryPool ), allocator ) );
16221 }
16222
16223 // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html
16224 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result QueryPool::getResults(
16225 uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void * pData, DeviceSize stride, QueryResultFlags flags ) const VULKAN_HPP_NOEXCEPT
16226 {
16227 VULKAN_HPP_ASSERT( getDispatcher()->vkGetQueryPoolResults && "Function <vkGetQueryPoolResults> requires <VK_VERSION_1_0>" );
16228 return static_cast<Result>( getDispatcher()->vkGetQueryPoolResults( static_cast<VkDevice>( m_device ),
16229 static_cast<VkQueryPool>( m_queryPool ),
16230 firstQuery,
16231 queryCount,
16232 dataSize,
16233 pData,
16234 static_cast<VkDeviceSize>( stride ),
16235 static_cast<VkQueryResultFlags>( flags ) ) );
16236 }
16237
16238 // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html
16239 template <typename DataType>
16240 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<DataType>>
16241 QueryPool::getResults( uint32_t firstQuery, uint32_t queryCount, size_t dataSize, DeviceSize stride, QueryResultFlags flags ) const
16242 {
16243 VULKAN_HPP_ASSERT( getDispatcher()->vkGetQueryPoolResults && "Function <vkGetQueryPoolResults> requires <VK_VERSION_1_0>" );
16244
16245 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
16246 std::vector<DataType> data( dataSize / sizeof( DataType ) );
16247 Result result = static_cast<Result>( getDispatcher()->vkGetQueryPoolResults( static_cast<VkDevice>( m_device ),
16248 static_cast<VkQueryPool>( m_queryPool ),
16249 firstQuery,
16250 queryCount,
16251 data.size() * sizeof( DataType ),
16252 reinterpret_cast<void *>( data.data() ),
16253 static_cast<VkDeviceSize>( stride ),
16254 static_cast<VkQueryResultFlags>( flags ) ) );
16255 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::QueryPool::getResults", { Result::eSuccess, Result::eNotReady } );
16256
16257 return { result, data };
16258 }
16259
16260 // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html
16261 template <typename DataType>
16262 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<DataType>
16263 QueryPool::getResult( uint32_t firstQuery, uint32_t queryCount, DeviceSize stride, QueryResultFlags flags ) const
16264 {
16265 VULKAN_HPP_ASSERT( getDispatcher()->vkGetQueryPoolResults && "Function <vkGetQueryPoolResults> requires <VK_VERSION_1_0>" );
16266
16267 DataType data;
16268 Result result = static_cast<Result>( getDispatcher()->vkGetQueryPoolResults( static_cast<VkDevice>( m_device ),
16269 static_cast<VkQueryPool>( m_queryPool ),
16270 firstQuery,
16271 queryCount,
16272 sizeof( DataType ),
16273 reinterpret_cast<void *>( &data ),
16274 static_cast<VkDeviceSize>( stride ),
16275 static_cast<VkQueryResultFlags>( flags ) ) );
16276 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::QueryPool::getResult", { Result::eSuccess, Result::eNotReady } );
16277
16278 return { result, data };
16279 }
16280
16281 // wrapper function for command vkCreateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBuffer.html
16282 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Buffer>::type
16283 Device::createBuffer( BufferCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16284 {
16285 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateBuffer && "Function <vkCreateBuffer> requires <VK_VERSION_1_0>" );
16286
16287 VULKAN_HPP_NAMESPACE::Buffer buffer;
16288 Result result = static_cast<Result>( getDispatcher()->vkCreateBuffer( static_cast<VkDevice>( m_device ),
16289 reinterpret_cast<VkBufferCreateInfo const *>( &createInfo ),
16290 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16291 reinterpret_cast<VkBuffer *>( &buffer ) ) );
16292 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createBuffer" );
16293 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Buffer( *this, *reinterpret_cast<VkBuffer *>( &buffer ), allocator ) );
16294 }
16295
16296 // wrapper function for command vkCreateImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImage.html
16297 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Image>::type
16298 Device::createImage( ImageCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16299 {
16300 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateImage && "Function <vkCreateImage> requires <VK_VERSION_1_0>" );
16301
16302 VULKAN_HPP_NAMESPACE::Image image;
16303 Result result = static_cast<Result>( getDispatcher()->vkCreateImage( static_cast<VkDevice>( m_device ),
16304 reinterpret_cast<VkImageCreateInfo const *>( &createInfo ),
16305 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16306 reinterpret_cast<VkImage *>( &image ) ) );
16307 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createImage" );
16308 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Image( *this, *reinterpret_cast<VkImage *>( &image ), allocator ) );
16309 }
16310
16311 // wrapper function for command vkGetImageSubresourceLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout.html
16312 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout Image::getSubresourceLayout( ImageSubresource const & subresource ) const VULKAN_HPP_NOEXCEPT
16313 {
16314 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageSubresourceLayout && "Function <vkGetImageSubresourceLayout> requires <VK_VERSION_1_0>" );
16315
16316 SubresourceLayout layout;
16317 getDispatcher()->vkGetImageSubresourceLayout( static_cast<VkDevice>( m_device ),
16318 static_cast<VkImage>( m_image ),
16319 reinterpret_cast<VkImageSubresource const *>( &subresource ),
16320 reinterpret_cast<VkSubresourceLayout *>( &layout ) );
16321
16322 return layout;
16323 }
16324
16325 // wrapper function for command vkCreateImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImageView.html
16326 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageView>::type
16327 Device::createImageView( ImageViewCreateInfo const & createInfo,
16328 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16329 {
16330 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateImageView && "Function <vkCreateImageView> requires <VK_VERSION_1_0>" );
16331
16332 VULKAN_HPP_NAMESPACE::ImageView view;
16333 Result result = static_cast<Result>( getDispatcher()->vkCreateImageView( static_cast<VkDevice>( m_device ),
16334 reinterpret_cast<VkImageViewCreateInfo const *>( &createInfo ),
16335 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16336 reinterpret_cast<VkImageView *>( &view ) ) );
16337 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createImageView" );
16338 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, ImageView( *this, *reinterpret_cast<VkImageView *>( &view ), allocator ) );
16339 }
16340
16341 // wrapper function for command vkCreateCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCommandPool.html
16342 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CommandPool>::type
16343 Device::createCommandPool( CommandPoolCreateInfo const & createInfo,
16344 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16345 {
16346 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateCommandPool && "Function <vkCreateCommandPool> requires <VK_VERSION_1_0>" );
16347
16348 VULKAN_HPP_NAMESPACE::CommandPool commandPool;
16349 Result result = static_cast<Result>( getDispatcher()->vkCreateCommandPool( static_cast<VkDevice>( m_device ),
16350 reinterpret_cast<VkCommandPoolCreateInfo const *>( &createInfo ),
16351 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16352 reinterpret_cast<VkCommandPool *>( &commandPool ) ) );
16353 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createCommandPool" );
16354 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, CommandPool( *this, *reinterpret_cast<VkCommandPool *>( &commandPool ), allocator ) );
16355 }
16356
16357 // wrapper function for command vkResetCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetCommandPool.html
16358 VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandPool::reset( CommandPoolResetFlags flags ) const
16359 {
16360 VULKAN_HPP_ASSERT( getDispatcher()->vkResetCommandPool && "Function <vkResetCommandPool> requires <VK_VERSION_1_0>" );
16361
16362 Result result = static_cast<Result>( getDispatcher()->vkResetCommandPool(
16363 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( m_commandPool ), static_cast<VkCommandPoolResetFlags>( flags ) ) );
16364 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::CommandPool::reset" );
16365
16366 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
16367 }
16368
16369 // wrapper function for command vkAllocateCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateCommandBuffers.html
16370 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CommandBuffer>>::type
16371 Device::allocateCommandBuffers( CommandBufferAllocateInfo const & allocateInfo ) const
16372 {
16373 VULKAN_HPP_ASSERT( getDispatcher()->vkAllocateCommandBuffers && "Function <vkAllocateCommandBuffers> requires <VK_VERSION_1_0>" );
16374
16375 std::vector<VULKAN_HPP_NAMESPACE::CommandBuffer> commandBuffers( allocateInfo.commandBufferCount );
16376 Result result = static_cast<Result>( getDispatcher()->vkAllocateCommandBuffers( static_cast<VkDevice>( m_device ),
16377 reinterpret_cast<VkCommandBufferAllocateInfo const *>( &allocateInfo ),
16378 reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
16379 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::allocateCommandBuffers" );
16380 std::vector<CommandBuffer> commandBuffersRAII;
16381 if ( result == Result::eSuccess )
16382 {
16383 commandBuffersRAII.reserve( commandBuffers.size() );
16384 for ( auto & commandBuffer : commandBuffers )
16385 {
16386 commandBuffersRAII.emplace_back(
16387 *this, *reinterpret_cast<VkCommandBuffer *>( &commandBuffer ), static_cast<VkCommandPool>( allocateInfo.commandPool ) );
16388 }
16389 }
16390 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( commandBuffersRAII ) );
16391 }
16392
16393 // wrapper function for command vkBeginCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBeginCommandBuffer.html
16394 VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::begin( CommandBufferBeginInfo const & beginInfo ) const
16395 {
16396 VULKAN_HPP_ASSERT( getDispatcher()->vkBeginCommandBuffer && "Function <vkBeginCommandBuffer> requires <VK_VERSION_1_0>" );
16397
16398 Result result = static_cast<Result>( getDispatcher()->vkBeginCommandBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
16399 reinterpret_cast<VkCommandBufferBeginInfo const *>( &beginInfo ) ) );
16400 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::CommandBuffer::begin" );
16401
16402 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
16403 }
16404
16405 // wrapper function for command vkEndCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEndCommandBuffer.html
16406 VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::end() const
16407 {
16408 VULKAN_HPP_ASSERT( getDispatcher()->vkEndCommandBuffer && "Function <vkEndCommandBuffer> requires <VK_VERSION_1_0>" );
16409
16410 Result result = static_cast<Result>( getDispatcher()->vkEndCommandBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ) ) );
16411 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::CommandBuffer::end" );
16412
16413 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
16414 }
16415
16416 // wrapper function for command vkResetCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetCommandBuffer.html
16417 VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::reset( CommandBufferResetFlags flags ) const
16418 {
16419 VULKAN_HPP_ASSERT( getDispatcher()->vkResetCommandBuffer && "Function <vkResetCommandBuffer> requires <VK_VERSION_1_0>" );
16420
16421 Result result = static_cast<Result>(
16422 getDispatcher()->vkResetCommandBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCommandBufferResetFlags>( flags ) ) );
16423 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::CommandBuffer::reset" );
16424
16425 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
16426 }
16427
16428 // wrapper function for command vkCmdCopyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer.html
16429 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer( VULKAN_HPP_NAMESPACE::Buffer srcBuffer,
16430 VULKAN_HPP_NAMESPACE::Buffer dstBuffer,
16431 ArrayProxy<BufferCopy const> const & regions ) const VULKAN_HPP_NOEXCEPT
16432 {
16433 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyBuffer && "Function <vkCmdCopyBuffer> requires <VK_VERSION_1_0>" );
16434
16435 getDispatcher()->vkCmdCopyBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
16436 static_cast<VkBuffer>( srcBuffer ),
16437 static_cast<VkBuffer>( dstBuffer ),
16438 regions.size(),
16439 reinterpret_cast<VkBufferCopy const *>( regions.data() ) );
16440 }
16441
16442 // wrapper function for command vkCmdCopyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage.html
16443 VULKAN_HPP_INLINE void CommandBuffer::copyImage( VULKAN_HPP_NAMESPACE::Image srcImage,
16444 ImageLayout srcImageLayout,
16445 VULKAN_HPP_NAMESPACE::Image dstImage,
16446 ImageLayout dstImageLayout,
16447 ArrayProxy<ImageCopy const> const & regions ) const VULKAN_HPP_NOEXCEPT
16448 {
16449 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyImage && "Function <vkCmdCopyImage> requires <VK_VERSION_1_0>" );
16450
16451 getDispatcher()->vkCmdCopyImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
16452 static_cast<VkImage>( srcImage ),
16453 static_cast<VkImageLayout>( srcImageLayout ),
16454 static_cast<VkImage>( dstImage ),
16455 static_cast<VkImageLayout>( dstImageLayout ),
16456 regions.size(),
16457 reinterpret_cast<VkImageCopy const *>( regions.data() ) );
16458 }
16459
16460 // wrapper function for command vkCmdCopyBufferToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage.html
16461 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage( VULKAN_HPP_NAMESPACE::Buffer srcBuffer,
16462 VULKAN_HPP_NAMESPACE::Image dstImage,
16463 ImageLayout dstImageLayout,
16464 ArrayProxy<BufferImageCopy const> const & regions ) const VULKAN_HPP_NOEXCEPT
16465 {
16466 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyBufferToImage && "Function <vkCmdCopyBufferToImage> requires <VK_VERSION_1_0>" );
16467
16468 getDispatcher()->vkCmdCopyBufferToImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
16469 static_cast<VkBuffer>( srcBuffer ),
16470 static_cast<VkImage>( dstImage ),
16471 static_cast<VkImageLayout>( dstImageLayout ),
16472 regions.size(),
16473 reinterpret_cast<VkBufferImageCopy const *>( regions.data() ) );
16474 }
16475
16476 // wrapper function for command vkCmdCopyImageToBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer.html
16477 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer( VULKAN_HPP_NAMESPACE::Image srcImage,
16478 ImageLayout srcImageLayout,
16479 VULKAN_HPP_NAMESPACE::Buffer dstBuffer,
16480 ArrayProxy<BufferImageCopy const> const & regions ) const VULKAN_HPP_NOEXCEPT
16481 {
16482 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyImageToBuffer && "Function <vkCmdCopyImageToBuffer> requires <VK_VERSION_1_0>" );
16483
16484 getDispatcher()->vkCmdCopyImageToBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
16485 static_cast<VkImage>( srcImage ),
16486 static_cast<VkImageLayout>( srcImageLayout ),
16487 static_cast<VkBuffer>( dstBuffer ),
16488 regions.size(),
16489 reinterpret_cast<VkBufferImageCopy const *>( regions.data() ) );
16490 }
16491
16492 // wrapper function for command vkCmdUpdateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateBuffer.html
16493 VULKAN_HPP_INLINE void CommandBuffer::updateBuffer( VULKAN_HPP_NAMESPACE::Buffer dstBuffer,
16494 DeviceSize dstOffset,
16495 DeviceSize dataSize,
16496 void const * pData ) const VULKAN_HPP_NOEXCEPT
16497 {
16498 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdUpdateBuffer && "Function <vkCmdUpdateBuffer> requires <VK_VERSION_1_0>" );
16499 getDispatcher()->vkCmdUpdateBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
16500 static_cast<VkBuffer>( dstBuffer ),
16501 static_cast<VkDeviceSize>( dstOffset ),
16502 static_cast<VkDeviceSize>( dataSize ),
16503 pData );
16504 }
16505
16506 // wrapper function for command vkCmdUpdateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateBuffer.html
16507 template <typename DataType>
16508 VULKAN_HPP_INLINE void CommandBuffer::updateBuffer( VULKAN_HPP_NAMESPACE::Buffer dstBuffer,
16509 DeviceSize dstOffset,
16510 ArrayProxy<DataType const> const & data ) const VULKAN_HPP_NOEXCEPT
16511 {
16512 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdUpdateBuffer && "Function <vkCmdUpdateBuffer> requires <VK_VERSION_1_0>" );
16513
16514 getDispatcher()->vkCmdUpdateBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
16515 static_cast<VkBuffer>( dstBuffer ),
16516 static_cast<VkDeviceSize>( dstOffset ),
16517 data.size() * sizeof( DataType ),
16518 reinterpret_cast<void const *>( data.data() ) );
16519 }
16520
16521 // wrapper function for command vkCmdFillBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdFillBuffer.html
16522 VULKAN_HPP_INLINE void
16523 CommandBuffer::fillBuffer( VULKAN_HPP_NAMESPACE::Buffer dstBuffer, DeviceSize dstOffset, DeviceSize size, uint32_t data ) const VULKAN_HPP_NOEXCEPT
16524 {
16525 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdFillBuffer && "Function <vkCmdFillBuffer> requires <VK_VERSION_1_0>" );
16526
16527 getDispatcher()->vkCmdFillBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
16528 static_cast<VkBuffer>( dstBuffer ),
16529 static_cast<VkDeviceSize>( dstOffset ),
16530 static_cast<VkDeviceSize>( size ),
16531 data );
16532 }
16533
16534 // wrapper function for command vkCmdPipelineBarrier, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier.html
16535 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier( PipelineStageFlags srcStageMask,
16536 PipelineStageFlags dstStageMask,
16537 DependencyFlags dependencyFlags,
16538 ArrayProxy<MemoryBarrier const> const & memoryBarriers,
16539 ArrayProxy<BufferMemoryBarrier const> const & bufferMemoryBarriers,
16540 ArrayProxy<ImageMemoryBarrier const> const & imageMemoryBarriers ) const VULKAN_HPP_NOEXCEPT
16541 {
16542 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPipelineBarrier && "Function <vkCmdPipelineBarrier> requires <VK_VERSION_1_0>" );
16543
16544 getDispatcher()->vkCmdPipelineBarrier( static_cast<VkCommandBuffer>( m_commandBuffer ),
16545 static_cast<VkPipelineStageFlags>( srcStageMask ),
16546 static_cast<VkPipelineStageFlags>( dstStageMask ),
16547 static_cast<VkDependencyFlags>( dependencyFlags ),
16548 memoryBarriers.size(),
16549 reinterpret_cast<VkMemoryBarrier const *>( memoryBarriers.data() ),
16550 bufferMemoryBarriers.size(),
16551 reinterpret_cast<VkBufferMemoryBarrier const *>( bufferMemoryBarriers.data() ),
16552 imageMemoryBarriers.size(),
16553 reinterpret_cast<VkImageMemoryBarrier const *>( imageMemoryBarriers.data() ) );
16554 }
16555
16556 // wrapper function for command vkCmdBeginQuery, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginQuery.html
16557 VULKAN_HPP_INLINE void
16558 CommandBuffer::beginQuery( VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t query, QueryControlFlags flags ) const VULKAN_HPP_NOEXCEPT
16559 {
16560 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginQuery && "Function <vkCmdBeginQuery> requires <VK_VERSION_1_0>" );
16561
16562 getDispatcher()->vkCmdBeginQuery(
16563 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), query, static_cast<VkQueryControlFlags>( flags ) );
16564 }
16565
16566 // wrapper function for command vkCmdEndQuery, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndQuery.html
16567 VULKAN_HPP_INLINE void CommandBuffer::endQuery( VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t query ) const VULKAN_HPP_NOEXCEPT
16568 {
16569 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndQuery && "Function <vkCmdEndQuery> requires <VK_VERSION_1_0>" );
16570
16571 getDispatcher()->vkCmdEndQuery( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), query );
16572 }
16573
16574 // wrapper function for command vkCmdResetQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetQueryPool.html
16575 VULKAN_HPP_INLINE void
16576 CommandBuffer::resetQueryPool( VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount ) const VULKAN_HPP_NOEXCEPT
16577 {
16578 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdResetQueryPool && "Function <vkCmdResetQueryPool> requires <VK_VERSION_1_0>" );
16579
16580 getDispatcher()->vkCmdResetQueryPool( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), firstQuery, queryCount );
16581 }
16582
16583 // wrapper function for command vkCmdWriteTimestamp, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteTimestamp.html
16584 VULKAN_HPP_INLINE void
16585 CommandBuffer::writeTimestamp( PipelineStageFlagBits pipelineStage, VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t query ) const VULKAN_HPP_NOEXCEPT
16586 {
16587 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdWriteTimestamp && "Function <vkCmdWriteTimestamp> requires <VK_VERSION_1_0>" );
16588
16589 getDispatcher()->vkCmdWriteTimestamp(
16590 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineStageFlagBits>( pipelineStage ), static_cast<VkQueryPool>( queryPool ), query );
16591 }
16592
16593 // wrapper function for command vkCmdCopyQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyQueryPoolResults.html
16594 VULKAN_HPP_INLINE void CommandBuffer::copyQueryPoolResults( VULKAN_HPP_NAMESPACE::QueryPool queryPool,
16595 uint32_t firstQuery,
16596 uint32_t queryCount,
16597 VULKAN_HPP_NAMESPACE::Buffer dstBuffer,
16598 DeviceSize dstOffset,
16599 DeviceSize stride,
16600 QueryResultFlags flags ) const VULKAN_HPP_NOEXCEPT
16601 {
16602 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyQueryPoolResults && "Function <vkCmdCopyQueryPoolResults> requires <VK_VERSION_1_0>" );
16603
16604 getDispatcher()->vkCmdCopyQueryPoolResults( static_cast<VkCommandBuffer>( m_commandBuffer ),
16605 static_cast<VkQueryPool>( queryPool ),
16606 firstQuery,
16607 queryCount,
16608 static_cast<VkBuffer>( dstBuffer ),
16609 static_cast<VkDeviceSize>( dstOffset ),
16610 static_cast<VkDeviceSize>( stride ),
16611 static_cast<VkQueryResultFlags>( flags ) );
16612 }
16613
16614 // wrapper function for command vkCmdExecuteCommands, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteCommands.html
16615 VULKAN_HPP_INLINE void
16616 CommandBuffer::executeCommands( ArrayProxy<VULKAN_HPP_NAMESPACE::CommandBuffer const> const & commandBuffers ) const VULKAN_HPP_NOEXCEPT
16617 {
16618 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdExecuteCommands && "Function <vkCmdExecuteCommands> requires <VK_VERSION_1_0>" );
16619
16620 getDispatcher()->vkCmdExecuteCommands(
16621 static_cast<VkCommandBuffer>( m_commandBuffer ), commandBuffers.size(), reinterpret_cast<VkCommandBuffer const *>( commandBuffers.data() ) );
16622 }
16623
16624 // wrapper function for command vkCreateEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateEvent.html
16625 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Event>::type
16626 Device::createEvent( EventCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16627 {
16628 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateEvent && "Function <vkCreateEvent> requires <VK_VERSION_1_0>" );
16629
16630 VULKAN_HPP_NAMESPACE::Event event;
16631 Result result = static_cast<Result>( getDispatcher()->vkCreateEvent( static_cast<VkDevice>( m_device ),
16632 reinterpret_cast<VkEventCreateInfo const *>( &createInfo ),
16633 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16634 reinterpret_cast<VkEvent *>( &event ) ) );
16635 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createEvent" );
16636 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Event( *this, *reinterpret_cast<VkEvent *>( &event ), allocator ) );
16637 }
16638
16639 // wrapper function for command vkGetEventStatus, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEventStatus.html
16640 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Event::getStatus() const
16641 {
16642 VULKAN_HPP_ASSERT( getDispatcher()->vkGetEventStatus && "Function <vkGetEventStatus> requires <VK_VERSION_1_0>" );
16643
16644 Result result = static_cast<Result>( getDispatcher()->vkGetEventStatus( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( m_event ) ) );
16645 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Event::getStatus", { Result::eEventSet, Result::eEventReset } );
16646
16647 return static_cast<Result>( result );
16648 }
16649
16650 // wrapper function for command vkSetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetEvent.html
16651 VULKAN_HPP_INLINE typename ResultValueType<void>::type Event::set() const
16652 {
16653 VULKAN_HPP_ASSERT( getDispatcher()->vkSetEvent && "Function <vkSetEvent> requires <VK_VERSION_1_0>" );
16654
16655 Result result = static_cast<Result>( getDispatcher()->vkSetEvent( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( m_event ) ) );
16656 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Event::set" );
16657
16658 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
16659 }
16660
16661 // wrapper function for command vkResetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetEvent.html
16662 VULKAN_HPP_INLINE typename ResultValueType<void>::type Event::reset() const
16663 {
16664 VULKAN_HPP_ASSERT( getDispatcher()->vkResetEvent && "Function <vkResetEvent> requires <VK_VERSION_1_0>" );
16665
16666 Result result = static_cast<Result>( getDispatcher()->vkResetEvent( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( m_event ) ) );
16667 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Event::reset" );
16668
16669 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
16670 }
16671
16672 // wrapper function for command vkCreateBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferView.html
16673 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<BufferView>::type
16674 Device::createBufferView( BufferViewCreateInfo const & createInfo,
16675 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16676 {
16677 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateBufferView && "Function <vkCreateBufferView> requires <VK_VERSION_1_0>" );
16678
16679 VULKAN_HPP_NAMESPACE::BufferView view;
16680 Result result = static_cast<Result>( getDispatcher()->vkCreateBufferView( static_cast<VkDevice>( m_device ),
16681 reinterpret_cast<VkBufferViewCreateInfo const *>( &createInfo ),
16682 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16683 reinterpret_cast<VkBufferView *>( &view ) ) );
16684 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createBufferView" );
16685 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, BufferView( *this, *reinterpret_cast<VkBufferView *>( &view ), allocator ) );
16686 }
16687
16688 // wrapper function for command vkCreateShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderModule.html
16689 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ShaderModule>::type
16690 Device::createShaderModule( ShaderModuleCreateInfo const & createInfo,
16691 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16692 {
16693 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateShaderModule && "Function <vkCreateShaderModule> requires <VK_VERSION_1_0>" );
16694
16695 VULKAN_HPP_NAMESPACE::ShaderModule shaderModule;
16696 Result result = static_cast<Result>( getDispatcher()->vkCreateShaderModule( static_cast<VkDevice>( m_device ),
16697 reinterpret_cast<VkShaderModuleCreateInfo const *>( &createInfo ),
16698 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16699 reinterpret_cast<VkShaderModule *>( &shaderModule ) ) );
16700 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createShaderModule" );
16701 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result,
16702 ShaderModule( *this, *reinterpret_cast<VkShaderModule *>( &shaderModule ), allocator ) );
16703 }
16704
16705 // wrapper function for command vkCreatePipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineCache.html
16706 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PipelineCache>::type
16707 Device::createPipelineCache( PipelineCacheCreateInfo const & createInfo,
16708 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16709 {
16710 VULKAN_HPP_ASSERT( getDispatcher()->vkCreatePipelineCache && "Function <vkCreatePipelineCache> requires <VK_VERSION_1_0>" );
16711
16712 VULKAN_HPP_NAMESPACE::PipelineCache pipelineCache;
16713 Result result = static_cast<Result>( getDispatcher()->vkCreatePipelineCache( static_cast<VkDevice>( m_device ),
16714 reinterpret_cast<VkPipelineCacheCreateInfo const *>( &createInfo ),
16715 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16716 reinterpret_cast<VkPipelineCache *>( &pipelineCache ) ) );
16717 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createPipelineCache" );
16718 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result,
16719 PipelineCache( *this, *reinterpret_cast<VkPipelineCache *>( &pipelineCache ), allocator ) );
16720 }
16721
16722 // wrapper function for command vkGetPipelineCacheData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineCacheData.html
16723 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t>>::type PipelineCache::getData() const
16724 {
16725 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPipelineCacheData && "Function <vkGetPipelineCacheData> requires <VK_VERSION_1_0>" );
16726
16727 std::vector<uint8_t> data;
16728 size_t dataSize;
16729 Result result;
16730 do
16731 {
16732 result = static_cast<Result>(
16733 getDispatcher()->vkGetPipelineCacheData( static_cast<VkDevice>( m_device ), static_cast<VkPipelineCache>( m_pipelineCache ), &dataSize, nullptr ) );
16734 if ( ( result == Result::eSuccess ) && dataSize )
16735 {
16736 data.resize( dataSize );
16737 result = static_cast<Result>( getDispatcher()->vkGetPipelineCacheData(
16738 static_cast<VkDevice>( m_device ), static_cast<VkPipelineCache>( m_pipelineCache ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
16739 }
16740 } while ( result == Result::eIncomplete );
16741 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PipelineCache::getData" );
16742 VULKAN_HPP_ASSERT( dataSize <= data.size() );
16743 if ( dataSize < data.size() )
16744 {
16745 data.resize( dataSize );
16746 }
16747 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
16748 }
16749
16750 // wrapper function for command vkMergePipelineCaches, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMergePipelineCaches.html
16751 VULKAN_HPP_INLINE typename ResultValueType<void>::type PipelineCache::merge( ArrayProxy<VULKAN_HPP_NAMESPACE::PipelineCache const> const & srcCaches ) const
16752 {
16753 VULKAN_HPP_ASSERT( getDispatcher()->vkMergePipelineCaches && "Function <vkMergePipelineCaches> requires <VK_VERSION_1_0>" );
16754
16755 Result result = static_cast<Result>( getDispatcher()->vkMergePipelineCaches( static_cast<VkDevice>( m_device ),
16756 static_cast<VkPipelineCache>( m_pipelineCache ),
16757 srcCaches.size(),
16758 reinterpret_cast<VkPipelineCache const *>( srcCaches.data() ) ) );
16759 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PipelineCache::merge" );
16760
16761 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
16762 }
16763
16764 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
16765 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Pipeline>>::type
16766 Device::createComputePipelines( Optional<PipelineCache const> const & pipelineCache,
16767 ArrayProxy<ComputePipelineCreateInfo> const & createInfos,
16768 Optional<AllocationCallbacks const> allocator ) const
16769 {
16770 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
16771
16772 std::vector<VULKAN_HPP_NAMESPACE::Pipeline> pipelines( createInfos.size() );
16773 Result result =
16774 static_cast<Result>( getDispatcher()->vkCreateComputePipelines( static_cast<VkDevice>( m_device ),
16775 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
16776 createInfos.size(),
16777 reinterpret_cast<VkComputePipelineCreateInfo const *>( createInfos.data() ),
16778 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16779 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
16780 VULKAN_HPP_NAMESPACE::detail::resultCheck(
16781 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createComputePipelines", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
16782 std::vector<Pipeline> pipelinesRAII;
16783 if ( result == Result::eSuccess )
16784 {
16785 pipelinesRAII.reserve( pipelines.size() );
16786 for ( auto & pipeline : pipelines )
16787 {
16788 pipelinesRAII.emplace_back( *this, *reinterpret_cast<VkPipeline *>( &pipeline ), allocator, result );
16789 }
16790 }
16791 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( pipelinesRAII ) );
16792 }
16793
16794 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
16795 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Pipeline>::type
16796 Device::createComputePipeline( Optional<PipelineCache const> const & pipelineCache,
16797 ComputePipelineCreateInfo const & createInfo,
16798 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16799 {
16800 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
16801
16802 VULKAN_HPP_NAMESPACE::Pipeline pipeline;
16803 Result result = static_cast<Result>( getDispatcher()->vkCreateComputePipelines( static_cast<VkDevice>( m_device ),
16804 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
16805 1,
16806 reinterpret_cast<VkComputePipelineCreateInfo const *>( &createInfo ),
16807 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16808 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
16809 VULKAN_HPP_NAMESPACE::detail::resultCheck(
16810 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createComputePipeline", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
16811 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Pipeline( *this, *reinterpret_cast<VkPipeline *>( &pipeline ), allocator, result ) );
16812 }
16813
16814 // wrapper function for command vkCreatePipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineLayout.html
16815 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PipelineLayout>::type
16816 Device::createPipelineLayout( PipelineLayoutCreateInfo const & createInfo,
16817 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16818 {
16819 VULKAN_HPP_ASSERT( getDispatcher()->vkCreatePipelineLayout && "Function <vkCreatePipelineLayout> requires <VK_VERSION_1_0>" );
16820
16821 VULKAN_HPP_NAMESPACE::PipelineLayout pipelineLayout;
16822 Result result = static_cast<Result>( getDispatcher()->vkCreatePipelineLayout( static_cast<VkDevice>( m_device ),
16823 reinterpret_cast<VkPipelineLayoutCreateInfo const *>( &createInfo ),
16824 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16825 reinterpret_cast<VkPipelineLayout *>( &pipelineLayout ) ) );
16826 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createPipelineLayout" );
16827 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
16828 result, PipelineLayout( *this, *reinterpret_cast<VkPipelineLayout *>( &pipelineLayout ), allocator ) );
16829 }
16830
16831 // wrapper function for command vkCreateSampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSampler.html
16832 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Sampler>::type
16833 Device::createSampler( SamplerCreateInfo const & createInfo, Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16834 {
16835 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateSampler && "Function <vkCreateSampler> requires <VK_VERSION_1_0>" );
16836
16837 VULKAN_HPP_NAMESPACE::Sampler sampler;
16838 Result result = static_cast<Result>( getDispatcher()->vkCreateSampler( static_cast<VkDevice>( m_device ),
16839 reinterpret_cast<VkSamplerCreateInfo const *>( &createInfo ),
16840 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16841 reinterpret_cast<VkSampler *>( &sampler ) ) );
16842 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createSampler" );
16843 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Sampler( *this, *reinterpret_cast<VkSampler *>( &sampler ), allocator ) );
16844 }
16845
16846 // wrapper function for command vkCreateDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorSetLayout.html
16847 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DescriptorSetLayout>::type
16848 Device::createDescriptorSetLayout( DescriptorSetLayoutCreateInfo const & createInfo,
16849 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16850 {
16851 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDescriptorSetLayout && "Function <vkCreateDescriptorSetLayout> requires <VK_VERSION_1_0>" );
16852
16853 VULKAN_HPP_NAMESPACE::DescriptorSetLayout setLayout;
16854 Result result =
16855 static_cast<Result>( getDispatcher()->vkCreateDescriptorSetLayout( static_cast<VkDevice>( m_device ),
16856 reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( &createInfo ),
16857 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16858 reinterpret_cast<VkDescriptorSetLayout *>( &setLayout ) ) );
16859 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createDescriptorSetLayout" );
16860 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
16861 result, DescriptorSetLayout( *this, *reinterpret_cast<VkDescriptorSetLayout *>( &setLayout ), allocator ) );
16862 }
16863
16864 // wrapper function for command vkCreateDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorPool.html
16865 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DescriptorPool>::type
16866 Device::createDescriptorPool( DescriptorPoolCreateInfo const & createInfo,
16867 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
16868 {
16869 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDescriptorPool && "Function <vkCreateDescriptorPool> requires <VK_VERSION_1_0>" );
16870
16871 VULKAN_HPP_NAMESPACE::DescriptorPool descriptorPool;
16872 Result result = static_cast<Result>( getDispatcher()->vkCreateDescriptorPool( static_cast<VkDevice>( m_device ),
16873 reinterpret_cast<VkDescriptorPoolCreateInfo const *>( &createInfo ),
16874 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
16875 reinterpret_cast<VkDescriptorPool *>( &descriptorPool ) ) );
16876 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createDescriptorPool" );
16877 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
16878 result, DescriptorPool( *this, *reinterpret_cast<VkDescriptorPool *>( &descriptorPool ), allocator ) );
16879 }
16880
16881 // wrapper function for command vkResetDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetDescriptorPool.html
16882 VULKAN_HPP_INLINE typename ResultValueType<void>::type DescriptorPool::reset( DescriptorPoolResetFlags flags ) const
16883 {
16884 VULKAN_HPP_ASSERT( getDispatcher()->vkResetDescriptorPool && "Function <vkResetDescriptorPool> requires <VK_VERSION_1_0>" );
16885
16886 Result result = static_cast<Result>( getDispatcher()->vkResetDescriptorPool(
16887 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorPool>( m_descriptorPool ), static_cast<VkDescriptorPoolResetFlags>( flags ) ) );
16888 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::DescriptorPool::reset" );
16889
16890 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
16891 }
16892
16893 // wrapper function for command vkAllocateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateDescriptorSets.html
16894 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DescriptorSet>>::type
16895 Device::allocateDescriptorSets( DescriptorSetAllocateInfo const & allocateInfo ) const
16896 {
16897 VULKAN_HPP_ASSERT( getDispatcher()->vkAllocateDescriptorSets && "Function <vkAllocateDescriptorSets> requires <VK_VERSION_1_0>" );
16898
16899 std::vector<VULKAN_HPP_NAMESPACE::DescriptorSet> descriptorSets( allocateInfo.descriptorSetCount );
16900 Result result = static_cast<Result>( getDispatcher()->vkAllocateDescriptorSets( static_cast<VkDevice>( m_device ),
16901 reinterpret_cast<VkDescriptorSetAllocateInfo const *>( &allocateInfo ),
16902 reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
16903 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::allocateDescriptorSets" );
16904 std::vector<DescriptorSet> descriptorSetsRAII;
16905 if ( result == Result::eSuccess )
16906 {
16907 descriptorSetsRAII.reserve( descriptorSets.size() );
16908 for ( auto & descriptorSet : descriptorSets )
16909 {
16910 descriptorSetsRAII.emplace_back(
16911 *this, *reinterpret_cast<VkDescriptorSet *>( &descriptorSet ), static_cast<VkDescriptorPool>( allocateInfo.descriptorPool ) );
16912 }
16913 }
16914 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( descriptorSetsRAII ) );
16915 }
16916
16917 // wrapper function for command vkUpdateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSets.html
16918 VULKAN_HPP_INLINE void Device::updateDescriptorSets( ArrayProxy<WriteDescriptorSet const> const & descriptorWrites,
16919 ArrayProxy<CopyDescriptorSet const> const & descriptorCopies ) const VULKAN_HPP_NOEXCEPT
16920 {
16921 VULKAN_HPP_ASSERT( getDispatcher()->vkUpdateDescriptorSets && "Function <vkUpdateDescriptorSets> requires <VK_VERSION_1_0>" );
16922
16923 getDispatcher()->vkUpdateDescriptorSets( static_cast<VkDevice>( m_device ),
16924 descriptorWrites.size(),
16925 reinterpret_cast<VkWriteDescriptorSet const *>( descriptorWrites.data() ),
16926 descriptorCopies.size(),
16927 reinterpret_cast<VkCopyDescriptorSet const *>( descriptorCopies.data() ) );
16928 }
16929
16930 // wrapper function for command vkCmdBindPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindPipeline.html
16931 VULKAN_HPP_INLINE void CommandBuffer::bindPipeline( PipelineBindPoint pipelineBindPoint, VULKAN_HPP_NAMESPACE::Pipeline pipeline ) const VULKAN_HPP_NOEXCEPT
16932 {
16933 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindPipeline && "Function <vkCmdBindPipeline> requires <VK_VERSION_1_0>" );
16934
16935 getDispatcher()->vkCmdBindPipeline(
16936 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipeline>( pipeline ) );
16937 }
16938
16939 // wrapper function for command vkCmdBindDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets.html
16940 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets( PipelineBindPoint pipelineBindPoint,
16941 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
16942 uint32_t firstSet,
16943 ArrayProxy<VULKAN_HPP_NAMESPACE::DescriptorSet const> const & descriptorSets,
16944 ArrayProxy<uint32_t const> const & dynamicOffsets ) const VULKAN_HPP_NOEXCEPT
16945 {
16946 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindDescriptorSets && "Function <vkCmdBindDescriptorSets> requires <VK_VERSION_1_0>" );
16947
16948 getDispatcher()->vkCmdBindDescriptorSets( static_cast<VkCommandBuffer>( m_commandBuffer ),
16949 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
16950 static_cast<VkPipelineLayout>( layout ),
16951 firstSet,
16952 descriptorSets.size(),
16953 reinterpret_cast<VkDescriptorSet const *>( descriptorSets.data() ),
16954 dynamicOffsets.size(),
16955 dynamicOffsets.data() );
16956 }
16957
16958 // wrapper function for command vkCmdClearColorImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearColorImage.html
16959 VULKAN_HPP_INLINE void CommandBuffer::clearColorImage( VULKAN_HPP_NAMESPACE::Image image,
16960 ImageLayout imageLayout,
16961 ClearColorValue const & color,
16962 ArrayProxy<ImageSubresourceRange const> const & ranges ) const VULKAN_HPP_NOEXCEPT
16963 {
16964 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdClearColorImage && "Function <vkCmdClearColorImage> requires <VK_VERSION_1_0>" );
16965
16966 getDispatcher()->vkCmdClearColorImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
16967 static_cast<VkImage>( image ),
16968 static_cast<VkImageLayout>( imageLayout ),
16969 reinterpret_cast<VkClearColorValue const *>( &color ),
16970 ranges.size(),
16971 reinterpret_cast<VkImageSubresourceRange const *>( ranges.data() ) );
16972 }
16973
16974 // wrapper function for command vkCmdDispatch, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatch.html
16975 VULKAN_HPP_INLINE void CommandBuffer::dispatch( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT
16976 {
16977 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDispatch && "Function <vkCmdDispatch> requires <VK_VERSION_1_0>" );
16978
16979 getDispatcher()->vkCmdDispatch( static_cast<VkCommandBuffer>( m_commandBuffer ), groupCountX, groupCountY, groupCountZ );
16980 }
16981
16982 // wrapper function for command vkCmdDispatchIndirect, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchIndirect.html
16983 VULKAN_HPP_INLINE void CommandBuffer::dispatchIndirect( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset ) const VULKAN_HPP_NOEXCEPT
16984 {
16985 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDispatchIndirect && "Function <vkCmdDispatchIndirect> requires <VK_VERSION_1_0>" );
16986
16987 getDispatcher()->vkCmdDispatchIndirect(
16988 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ) );
16989 }
16990
16991 // wrapper function for command vkCmdSetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent.html
16992 VULKAN_HPP_INLINE void CommandBuffer::setEvent( VULKAN_HPP_NAMESPACE::Event event, PipelineStageFlags stageMask ) const VULKAN_HPP_NOEXCEPT
16993 {
16994 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetEvent && "Function <vkCmdSetEvent> requires <VK_VERSION_1_0>" );
16995
16996 getDispatcher()->vkCmdSetEvent(
16997 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), static_cast<VkPipelineStageFlags>( stageMask ) );
16998 }
16999
17000 // wrapper function for command vkCmdResetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetEvent.html
17001 VULKAN_HPP_INLINE void CommandBuffer::resetEvent( VULKAN_HPP_NAMESPACE::Event event, PipelineStageFlags stageMask ) const VULKAN_HPP_NOEXCEPT
17002 {
17003 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdResetEvent && "Function <vkCmdResetEvent> requires <VK_VERSION_1_0>" );
17004
17005 getDispatcher()->vkCmdResetEvent(
17006 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), static_cast<VkPipelineStageFlags>( stageMask ) );
17007 }
17008
17009 // wrapper function for command vkCmdWaitEvents, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents.html
17010 VULKAN_HPP_INLINE void CommandBuffer::waitEvents( ArrayProxy<VULKAN_HPP_NAMESPACE::Event const> const & events,
17011 PipelineStageFlags srcStageMask,
17012 PipelineStageFlags dstStageMask,
17013 ArrayProxy<MemoryBarrier const> const & memoryBarriers,
17014 ArrayProxy<BufferMemoryBarrier const> const & bufferMemoryBarriers,
17015 ArrayProxy<ImageMemoryBarrier const> const & imageMemoryBarriers ) const VULKAN_HPP_NOEXCEPT
17016 {
17017 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdWaitEvents && "Function <vkCmdWaitEvents> requires <VK_VERSION_1_0>" );
17018
17019 getDispatcher()->vkCmdWaitEvents( static_cast<VkCommandBuffer>( m_commandBuffer ),
17020 events.size(),
17021 reinterpret_cast<VkEvent const *>( events.data() ),
17022 static_cast<VkPipelineStageFlags>( srcStageMask ),
17023 static_cast<VkPipelineStageFlags>( dstStageMask ),
17024 memoryBarriers.size(),
17025 reinterpret_cast<VkMemoryBarrier const *>( memoryBarriers.data() ),
17026 bufferMemoryBarriers.size(),
17027 reinterpret_cast<VkBufferMemoryBarrier const *>( bufferMemoryBarriers.data() ),
17028 imageMemoryBarriers.size(),
17029 reinterpret_cast<VkImageMemoryBarrier const *>( imageMemoryBarriers.data() ) );
17030 }
17031
17032 // wrapper function for command vkCmdPushConstants, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants.html
17033 VULKAN_HPP_INLINE void CommandBuffer::pushConstants(
17034 VULKAN_HPP_NAMESPACE::PipelineLayout layout, ShaderStageFlags stageFlags, uint32_t offset, uint32_t size, void const * pValues ) const VULKAN_HPP_NOEXCEPT
17035 {
17036 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPushConstants && "Function <vkCmdPushConstants> requires <VK_VERSION_1_0>" );
17037 getDispatcher()->vkCmdPushConstants( static_cast<VkCommandBuffer>( m_commandBuffer ),
17038 static_cast<VkPipelineLayout>( layout ),
17039 static_cast<VkShaderStageFlags>( stageFlags ),
17040 offset,
17041 size,
17042 pValues );
17043 }
17044
17045 // wrapper function for command vkCmdPushConstants, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants.html
17046 template <typename ValuesType>
17047 VULKAN_HPP_INLINE void CommandBuffer::pushConstants( VULKAN_HPP_NAMESPACE::PipelineLayout layout,
17048 ShaderStageFlags stageFlags,
17049 uint32_t offset,
17050 ArrayProxy<ValuesType const> const & values ) const VULKAN_HPP_NOEXCEPT
17051 {
17052 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPushConstants && "Function <vkCmdPushConstants> requires <VK_VERSION_1_0>" );
17053
17054 getDispatcher()->vkCmdPushConstants( static_cast<VkCommandBuffer>( m_commandBuffer ),
17055 static_cast<VkPipelineLayout>( layout ),
17056 static_cast<VkShaderStageFlags>( stageFlags ),
17057 offset,
17058 values.size() * sizeof( ValuesType ),
17059 reinterpret_cast<void const *>( values.data() ) );
17060 }
17061
17062 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
17063 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Pipeline>>::type
17064 Device::createGraphicsPipelines( Optional<PipelineCache const> const & pipelineCache,
17065 ArrayProxy<GraphicsPipelineCreateInfo> const & createInfos,
17066 Optional<AllocationCallbacks const> allocator ) const
17067 {
17068 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
17069
17070 std::vector<VULKAN_HPP_NAMESPACE::Pipeline> pipelines( createInfos.size() );
17071 Result result =
17072 static_cast<Result>( getDispatcher()->vkCreateGraphicsPipelines( static_cast<VkDevice>( m_device ),
17073 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
17074 createInfos.size(),
17075 reinterpret_cast<VkGraphicsPipelineCreateInfo const *>( createInfos.data() ),
17076 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
17077 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
17078 VULKAN_HPP_NAMESPACE::detail::resultCheck(
17079 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createGraphicsPipelines", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
17080 std::vector<Pipeline> pipelinesRAII;
17081 if ( result == Result::eSuccess )
17082 {
17083 pipelinesRAII.reserve( pipelines.size() );
17084 for ( auto & pipeline : pipelines )
17085 {
17086 pipelinesRAII.emplace_back( *this, *reinterpret_cast<VkPipeline *>( &pipeline ), allocator, result );
17087 }
17088 }
17089 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( pipelinesRAII ) );
17090 }
17091
17092 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
17093 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Pipeline>::type
17094 Device::createGraphicsPipeline( Optional<PipelineCache const> const & pipelineCache,
17095 GraphicsPipelineCreateInfo const & createInfo,
17096 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
17097 {
17098 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
17099
17100 VULKAN_HPP_NAMESPACE::Pipeline pipeline;
17101 Result result = static_cast<Result>( getDispatcher()->vkCreateGraphicsPipelines( static_cast<VkDevice>( m_device ),
17102 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
17103 1,
17104 reinterpret_cast<VkGraphicsPipelineCreateInfo const *>( &createInfo ),
17105 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
17106 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
17107 VULKAN_HPP_NAMESPACE::detail::resultCheck(
17108 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createGraphicsPipeline", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
17109 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Pipeline( *this, *reinterpret_cast<VkPipeline *>( &pipeline ), allocator, result ) );
17110 }
17111
17112 // wrapper function for command vkCreateFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFramebuffer.html
17113 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Framebuffer>::type
17114 Device::createFramebuffer( FramebufferCreateInfo const & createInfo,
17115 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
17116 {
17117 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateFramebuffer && "Function <vkCreateFramebuffer> requires <VK_VERSION_1_0>" );
17118
17119 VULKAN_HPP_NAMESPACE::Framebuffer framebuffer;
17120 Result result = static_cast<Result>( getDispatcher()->vkCreateFramebuffer( static_cast<VkDevice>( m_device ),
17121 reinterpret_cast<VkFramebufferCreateInfo const *>( &createInfo ),
17122 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
17123 reinterpret_cast<VkFramebuffer *>( &framebuffer ) ) );
17124 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createFramebuffer" );
17125 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Framebuffer( *this, *reinterpret_cast<VkFramebuffer *>( &framebuffer ), allocator ) );
17126 }
17127
17128 // wrapper function for command vkCreateRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass.html
17129 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RenderPass>::type
17130 Device::createRenderPass( RenderPassCreateInfo const & createInfo,
17131 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
17132 {
17133 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateRenderPass && "Function <vkCreateRenderPass> requires <VK_VERSION_1_0>" );
17134
17135 VULKAN_HPP_NAMESPACE::RenderPass renderPass;
17136 Result result = static_cast<Result>( getDispatcher()->vkCreateRenderPass( static_cast<VkDevice>( m_device ),
17137 reinterpret_cast<VkRenderPassCreateInfo const *>( &createInfo ),
17138 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
17139 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
17140 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createRenderPass" );
17141 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, RenderPass( *this, *reinterpret_cast<VkRenderPass *>( &renderPass ), allocator ) );
17142 }
17143
17144 // wrapper function for command vkGetRenderAreaGranularity, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderAreaGranularity.html
17145 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Extent2D RenderPass::getRenderAreaGranularity() const VULKAN_HPP_NOEXCEPT
17146 {
17147 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRenderAreaGranularity && "Function <vkGetRenderAreaGranularity> requires <VK_VERSION_1_0>" );
17148
17149 Extent2D granularity;
17150 getDispatcher()->vkGetRenderAreaGranularity(
17151 static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( m_renderPass ), reinterpret_cast<VkExtent2D *>( &granularity ) );
17152
17153 return granularity;
17154 }
17155
17156 // wrapper function for command vkCmdSetViewport, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewport.html
17157 VULKAN_HPP_INLINE void CommandBuffer::setViewport( uint32_t firstViewport, ArrayProxy<Viewport const> const & viewports ) const VULKAN_HPP_NOEXCEPT
17158 {
17159 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetViewport && "Function <vkCmdSetViewport> requires <VK_VERSION_1_0>" );
17160
17161 getDispatcher()->vkCmdSetViewport(
17162 static_cast<VkCommandBuffer>( m_commandBuffer ), firstViewport, viewports.size(), reinterpret_cast<VkViewport const *>( viewports.data() ) );
17163 }
17164
17165 // wrapper function for command vkCmdSetScissor, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissor.html
17166 VULKAN_HPP_INLINE void CommandBuffer::setScissor( uint32_t firstScissor, ArrayProxy<Rect2D const> const & scissors ) const VULKAN_HPP_NOEXCEPT
17167 {
17168 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetScissor && "Function <vkCmdSetScissor> requires <VK_VERSION_1_0>" );
17169
17170 getDispatcher()->vkCmdSetScissor(
17171 static_cast<VkCommandBuffer>( m_commandBuffer ), firstScissor, scissors.size(), reinterpret_cast<VkRect2D const *>( scissors.data() ) );
17172 }
17173
17174 // wrapper function for command vkCmdSetLineWidth, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineWidth.html
17175 VULKAN_HPP_INLINE void CommandBuffer::setLineWidth( float lineWidth ) const VULKAN_HPP_NOEXCEPT
17176 {
17177 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetLineWidth && "Function <vkCmdSetLineWidth> requires <VK_VERSION_1_0>" );
17178
17179 getDispatcher()->vkCmdSetLineWidth( static_cast<VkCommandBuffer>( m_commandBuffer ), lineWidth );
17180 }
17181
17182 // wrapper function for command vkCmdSetDepthBias, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBias.html
17183 VULKAN_HPP_INLINE void
17184 CommandBuffer::setDepthBias( float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor ) const VULKAN_HPP_NOEXCEPT
17185 {
17186 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthBias && "Function <vkCmdSetDepthBias> requires <VK_VERSION_1_0>" );
17187
17188 getDispatcher()->vkCmdSetDepthBias( static_cast<VkCommandBuffer>( m_commandBuffer ), depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor );
17189 }
17190
17191 // wrapper function for command vkCmdSetBlendConstants, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetBlendConstants.html
17192 VULKAN_HPP_INLINE void CommandBuffer::setBlendConstants( float const blendConstants[4] ) const VULKAN_HPP_NOEXCEPT
17193 {
17194 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetBlendConstants && "Function <vkCmdSetBlendConstants> requires <VK_VERSION_1_0>" );
17195
17196 getDispatcher()->vkCmdSetBlendConstants( static_cast<VkCommandBuffer>( m_commandBuffer ), blendConstants );
17197 }
17198
17199 // wrapper function for command vkCmdSetDepthBounds, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBounds.html
17200 VULKAN_HPP_INLINE void CommandBuffer::setDepthBounds( float minDepthBounds, float maxDepthBounds ) const VULKAN_HPP_NOEXCEPT
17201 {
17202 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthBounds && "Function <vkCmdSetDepthBounds> requires <VK_VERSION_1_0>" );
17203
17204 getDispatcher()->vkCmdSetDepthBounds( static_cast<VkCommandBuffer>( m_commandBuffer ), minDepthBounds, maxDepthBounds );
17205 }
17206
17207 // wrapper function for command vkCmdSetStencilCompareMask, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilCompareMask.html
17208 VULKAN_HPP_INLINE void CommandBuffer::setStencilCompareMask( StencilFaceFlags faceMask, uint32_t compareMask ) const VULKAN_HPP_NOEXCEPT
17209 {
17210 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetStencilCompareMask && "Function <vkCmdSetStencilCompareMask> requires <VK_VERSION_1_0>" );
17211
17212 getDispatcher()->vkCmdSetStencilCompareMask( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ), compareMask );
17213 }
17214
17215 // wrapper function for command vkCmdSetStencilWriteMask, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilWriteMask.html
17216 VULKAN_HPP_INLINE void CommandBuffer::setStencilWriteMask( StencilFaceFlags faceMask, uint32_t writeMask ) const VULKAN_HPP_NOEXCEPT
17217 {
17218 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetStencilWriteMask && "Function <vkCmdSetStencilWriteMask> requires <VK_VERSION_1_0>" );
17219
17220 getDispatcher()->vkCmdSetStencilWriteMask( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ), writeMask );
17221 }
17222
17223 // wrapper function for command vkCmdSetStencilReference, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilReference.html
17224 VULKAN_HPP_INLINE void CommandBuffer::setStencilReference( StencilFaceFlags faceMask, uint32_t reference ) const VULKAN_HPP_NOEXCEPT
17225 {
17226 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetStencilReference && "Function <vkCmdSetStencilReference> requires <VK_VERSION_1_0>" );
17227
17228 getDispatcher()->vkCmdSetStencilReference( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ), reference );
17229 }
17230
17231 // wrapper function for command vkCmdBindIndexBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer.html
17232 VULKAN_HPP_INLINE void
17233 CommandBuffer::bindIndexBuffer( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset, IndexType indexType ) const VULKAN_HPP_NOEXCEPT
17234 {
17235 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindIndexBuffer && "Function <vkCmdBindIndexBuffer> requires <VK_VERSION_1_0>" );
17236
17237 getDispatcher()->vkCmdBindIndexBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
17238 static_cast<VkBuffer>( buffer ),
17239 static_cast<VkDeviceSize>( offset ),
17240 static_cast<VkIndexType>( indexType ) );
17241 }
17242
17243 // wrapper function for command vkCmdBindVertexBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers.html
17244 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers( uint32_t firstBinding,
17245 ArrayProxy<VULKAN_HPP_NAMESPACE::Buffer const> const & buffers,
17246 ArrayProxy<DeviceSize const> const & offsets ) const
17247 {
17248 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindVertexBuffers && "Function <vkCmdBindVertexBuffers> requires <VK_VERSION_1_0>" );
17249 # ifdef VULKAN_HPP_NO_EXCEPTIONS
17250 VULKAN_HPP_ASSERT( buffers.size() == offsets.size() );
17251 # else
17252 if ( buffers.size() != offsets.size() )
17253 {
17254 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers: buffers.size() != offsets.size()" );
17255 }
17256 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
17257
17258 getDispatcher()->vkCmdBindVertexBuffers( static_cast<VkCommandBuffer>( m_commandBuffer ),
17259 firstBinding,
17260 buffers.size(),
17261 reinterpret_cast<VkBuffer const *>( buffers.data() ),
17262 reinterpret_cast<VkDeviceSize const *>( offsets.data() ) );
17263 }
17264
17265 // wrapper function for command vkCmdDraw, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDraw.html
17266 VULKAN_HPP_INLINE void
17267 CommandBuffer::draw( uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance ) const VULKAN_HPP_NOEXCEPT
17268 {
17269 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDraw && "Function <vkCmdDraw> requires <VK_VERSION_1_0>" );
17270
17271 getDispatcher()->vkCmdDraw( static_cast<VkCommandBuffer>( m_commandBuffer ), vertexCount, instanceCount, firstVertex, firstInstance );
17272 }
17273
17274 // wrapper function for command vkCmdDrawIndexed, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexed.html
17275 VULKAN_HPP_INLINE void CommandBuffer::drawIndexed(
17276 uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance ) const VULKAN_HPP_NOEXCEPT
17277 {
17278 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndexed && "Function <vkCmdDrawIndexed> requires <VK_VERSION_1_0>" );
17279
17280 getDispatcher()->vkCmdDrawIndexed( static_cast<VkCommandBuffer>( m_commandBuffer ), indexCount, instanceCount, firstIndex, vertexOffset, firstInstance );
17281 }
17282
17283 // wrapper function for command vkCmdDrawIndirect, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirect.html
17284 VULKAN_HPP_INLINE void
17285 CommandBuffer::drawIndirect( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT
17286 {
17287 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndirect && "Function <vkCmdDrawIndirect> requires <VK_VERSION_1_0>" );
17288
17289 getDispatcher()->vkCmdDrawIndirect(
17290 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ), drawCount, stride );
17291 }
17292
17293 // wrapper function for command vkCmdDrawIndexedIndirect, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirect.html
17294 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirect( VULKAN_HPP_NAMESPACE::Buffer buffer,
17295 DeviceSize offset,
17296 uint32_t drawCount,
17297 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
17298 {
17299 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndexedIndirect && "Function <vkCmdDrawIndexedIndirect> requires <VK_VERSION_1_0>" );
17300
17301 getDispatcher()->vkCmdDrawIndexedIndirect(
17302 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ), drawCount, stride );
17303 }
17304
17305 // wrapper function for command vkCmdBlitImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage.html
17306 VULKAN_HPP_INLINE void CommandBuffer::blitImage( VULKAN_HPP_NAMESPACE::Image srcImage,
17307 ImageLayout srcImageLayout,
17308 VULKAN_HPP_NAMESPACE::Image dstImage,
17309 ImageLayout dstImageLayout,
17310 ArrayProxy<ImageBlit const> const & regions,
17311 Filter filter ) const VULKAN_HPP_NOEXCEPT
17312 {
17313 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBlitImage && "Function <vkCmdBlitImage> requires <VK_VERSION_1_0>" );
17314
17315 getDispatcher()->vkCmdBlitImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
17316 static_cast<VkImage>( srcImage ),
17317 static_cast<VkImageLayout>( srcImageLayout ),
17318 static_cast<VkImage>( dstImage ),
17319 static_cast<VkImageLayout>( dstImageLayout ),
17320 regions.size(),
17321 reinterpret_cast<VkImageBlit const *>( regions.data() ),
17322 static_cast<VkFilter>( filter ) );
17323 }
17324
17325 // wrapper function for command vkCmdClearDepthStencilImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearDepthStencilImage.html
17326 VULKAN_HPP_INLINE void CommandBuffer::clearDepthStencilImage( VULKAN_HPP_NAMESPACE::Image image,
17327 ImageLayout imageLayout,
17328 ClearDepthStencilValue const & depthStencil,
17329 ArrayProxy<ImageSubresourceRange const> const & ranges ) const VULKAN_HPP_NOEXCEPT
17330 {
17331 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdClearDepthStencilImage && "Function <vkCmdClearDepthStencilImage> requires <VK_VERSION_1_0>" );
17332
17333 getDispatcher()->vkCmdClearDepthStencilImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
17334 static_cast<VkImage>( image ),
17335 static_cast<VkImageLayout>( imageLayout ),
17336 reinterpret_cast<VkClearDepthStencilValue const *>( &depthStencil ),
17337 ranges.size(),
17338 reinterpret_cast<VkImageSubresourceRange const *>( ranges.data() ) );
17339 }
17340
17341 // wrapper function for command vkCmdClearAttachments, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearAttachments.html
17342 VULKAN_HPP_INLINE void CommandBuffer::clearAttachments( ArrayProxy<ClearAttachment const> const & attachments,
17343 ArrayProxy<ClearRect const> const & rects ) const VULKAN_HPP_NOEXCEPT
17344 {
17345 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdClearAttachments && "Function <vkCmdClearAttachments> requires <VK_VERSION_1_0>" );
17346
17347 getDispatcher()->vkCmdClearAttachments( static_cast<VkCommandBuffer>( m_commandBuffer ),
17348 attachments.size(),
17349 reinterpret_cast<VkClearAttachment const *>( attachments.data() ),
17350 rects.size(),
17351 reinterpret_cast<VkClearRect const *>( rects.data() ) );
17352 }
17353
17354 // wrapper function for command vkCmdResolveImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage.html
17355 VULKAN_HPP_INLINE void CommandBuffer::resolveImage( VULKAN_HPP_NAMESPACE::Image srcImage,
17356 ImageLayout srcImageLayout,
17357 VULKAN_HPP_NAMESPACE::Image dstImage,
17358 ImageLayout dstImageLayout,
17359 ArrayProxy<ImageResolve const> const & regions ) const VULKAN_HPP_NOEXCEPT
17360 {
17361 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdResolveImage && "Function <vkCmdResolveImage> requires <VK_VERSION_1_0>" );
17362
17363 getDispatcher()->vkCmdResolveImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
17364 static_cast<VkImage>( srcImage ),
17365 static_cast<VkImageLayout>( srcImageLayout ),
17366 static_cast<VkImage>( dstImage ),
17367 static_cast<VkImageLayout>( dstImageLayout ),
17368 regions.size(),
17369 reinterpret_cast<VkImageResolve const *>( regions.data() ) );
17370 }
17371
17372 // wrapper function for command vkCmdBeginRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass.html
17373 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass( RenderPassBeginInfo const & renderPassBegin, SubpassContents contents ) const VULKAN_HPP_NOEXCEPT
17374 {
17375 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginRenderPass && "Function <vkCmdBeginRenderPass> requires <VK_VERSION_1_0>" );
17376
17377 getDispatcher()->vkCmdBeginRenderPass( static_cast<VkCommandBuffer>( m_commandBuffer ),
17378 reinterpret_cast<VkRenderPassBeginInfo const *>( &renderPassBegin ),
17379 static_cast<VkSubpassContents>( contents ) );
17380 }
17381
17382 // wrapper function for command vkCmdNextSubpass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass.html
17383 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass( SubpassContents contents ) const VULKAN_HPP_NOEXCEPT
17384 {
17385 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdNextSubpass && "Function <vkCmdNextSubpass> requires <VK_VERSION_1_0>" );
17386
17387 getDispatcher()->vkCmdNextSubpass( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkSubpassContents>( contents ) );
17388 }
17389
17390 // wrapper function for command vkCmdEndRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass.html
17391 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass() const VULKAN_HPP_NOEXCEPT
17392 {
17393 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndRenderPass && "Function <vkCmdEndRenderPass> requires <VK_VERSION_1_0>" );
17394
17395 getDispatcher()->vkCmdEndRenderPass( static_cast<VkCommandBuffer>( m_commandBuffer ) );
17396 }
17397
17398 //=== VK_VERSION_1_1 ===
17399
17400 // wrapper function for command vkEnumerateInstanceVersion, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceVersion.html
17401 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint32_t>::type Context::enumerateInstanceVersion() const
17402 {
17403 VULKAN_HPP_ASSERT( getDispatcher()->vkEnumerateInstanceVersion && "Function <vkEnumerateInstanceVersion> requires <VK_VERSION_1_1>" );
17404
17405 uint32_t apiVersion;
17406 Result result = static_cast<Result>( getDispatcher()->vkEnumerateInstanceVersion( &apiVersion ) );
17407 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Context::enumerateInstanceVersion" );
17408
17409 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( apiVersion ) );
17410 }
17411
17412 // wrapper function for command vkBindBufferMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory2.html
17413 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindBufferMemory2( ArrayProxy<BindBufferMemoryInfo const> const & bindInfos ) const
17414 {
17415 VULKAN_HPP_ASSERT( getDispatcher()->vkBindBufferMemory2 && "Function <vkBindBufferMemory2> requires <VK_KHR_bind_memory2> or <VK_VERSION_1_1>" );
17416
17417 Result result = static_cast<Result>( getDispatcher()->vkBindBufferMemory2(
17418 static_cast<VkDevice>( m_device ), bindInfos.size(), reinterpret_cast<VkBindBufferMemoryInfo const *>( bindInfos.data() ) ) );
17419 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::bindBufferMemory2" );
17420
17421 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
17422 }
17423
17424 // wrapper function for command vkBindImageMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory2.html
17425 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindImageMemory2( ArrayProxy<BindImageMemoryInfo const> const & bindInfos ) const
17426 {
17427 VULKAN_HPP_ASSERT( getDispatcher()->vkBindImageMemory2 && "Function <vkBindImageMemory2> requires <VK_KHR_bind_memory2> or <VK_VERSION_1_1>" );
17428
17429 Result result = static_cast<Result>( getDispatcher()->vkBindImageMemory2(
17430 static_cast<VkDevice>( m_device ), bindInfos.size(), reinterpret_cast<VkBindImageMemoryInfo const *>( bindInfos.data() ) ) );
17431 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::bindImageMemory2" );
17432
17433 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
17434 }
17435
17436 // wrapper function for command vkGetDeviceGroupPeerMemoryFeatures, see
17437 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPeerMemoryFeatures.html
17438 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PeerMemoryFeatureFlags Device::getGroupPeerMemoryFeatures( uint32_t heapIndex,
17439 uint32_t localDeviceIndex,
17440 uint32_t remoteDeviceIndex ) const VULKAN_HPP_NOEXCEPT
17441 {
17442 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceGroupPeerMemoryFeatures &&
17443 "Function <vkGetDeviceGroupPeerMemoryFeatures> requires <VK_KHR_device_group> or <VK_VERSION_1_1>" );
17444
17445 PeerMemoryFeatureFlags peerMemoryFeatures;
17446 getDispatcher()->vkGetDeviceGroupPeerMemoryFeatures( static_cast<VkDevice>( m_device ),
17447 heapIndex,
17448 localDeviceIndex,
17449 remoteDeviceIndex,
17450 reinterpret_cast<VkPeerMemoryFeatureFlags *>( &peerMemoryFeatures ) );
17451
17452 return peerMemoryFeatures;
17453 }
17454
17455 // wrapper function for command vkCmdSetDeviceMask, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDeviceMask.html
17456 VULKAN_HPP_INLINE void CommandBuffer::setDeviceMask( uint32_t deviceMask ) const VULKAN_HPP_NOEXCEPT
17457 {
17458 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDeviceMask && "Function <vkCmdSetDeviceMask> requires <VK_KHR_device_group> or <VK_VERSION_1_1>" );
17459
17460 getDispatcher()->vkCmdSetDeviceMask( static_cast<VkCommandBuffer>( m_commandBuffer ), deviceMask );
17461 }
17462
17463 // wrapper function for command vkEnumeratePhysicalDeviceGroups, see
17464 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroups.html
17465 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceGroupProperties>>::type
17466 Instance::enumeratePhysicalDeviceGroups() const
17467 {
17468 VULKAN_HPP_ASSERT( getDispatcher()->vkEnumeratePhysicalDeviceGroups &&
17469 "Function <vkEnumeratePhysicalDeviceGroups> requires <VK_KHR_device_group_creation> or <VK_VERSION_1_1>" );
17470
17471 std::vector<PhysicalDeviceGroupProperties> physicalDeviceGroupProperties;
17472 uint32_t physicalDeviceGroupCount;
17473 Result result;
17474 do
17475 {
17476 result =
17477 static_cast<Result>( getDispatcher()->vkEnumeratePhysicalDeviceGroups( static_cast<VkInstance>( m_instance ), &physicalDeviceGroupCount, nullptr ) );
17478 if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount )
17479 {
17480 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
17481 result = static_cast<Result>(
17482 getDispatcher()->vkEnumeratePhysicalDeviceGroups( static_cast<VkInstance>( m_instance ),
17483 &physicalDeviceGroupCount,
17484 reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
17485 }
17486 } while ( result == Result::eIncomplete );
17487 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroups" );
17488 VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
17489 if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
17490 {
17491 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
17492 }
17493 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( physicalDeviceGroupProperties ) );
17494 }
17495
17496 // wrapper function for command vkGetImageMemoryRequirements2, see
17497 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2.html
17498 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
17499 Device::getImageMemoryRequirements2( ImageMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT
17500 {
17501 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageMemoryRequirements2 &&
17502 "Function <vkGetImageMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17503
17504 MemoryRequirements2 memoryRequirements;
17505 getDispatcher()->vkGetImageMemoryRequirements2( static_cast<VkDevice>( m_device ),
17506 reinterpret_cast<VkImageMemoryRequirementsInfo2 const *>( &info ),
17507 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17508
17509 return memoryRequirements;
17510 }
17511
17512 // wrapper function for command vkGetImageMemoryRequirements2, see
17513 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2.html
17514 template <typename X, typename Y, typename... Z>
17515 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
17516 Device::getImageMemoryRequirements2( ImageMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT
17517 {
17518 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageMemoryRequirements2 &&
17519 "Function <vkGetImageMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17520
17521 StructureChain<X, Y, Z...> structureChain;
17522 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
17523 getDispatcher()->vkGetImageMemoryRequirements2( static_cast<VkDevice>( m_device ),
17524 reinterpret_cast<VkImageMemoryRequirementsInfo2 const *>( &info ),
17525 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17526
17527 return structureChain;
17528 }
17529
17530 // wrapper function for command vkGetBufferMemoryRequirements2, see
17531 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2.html
17532 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
17533 Device::getBufferMemoryRequirements2( BufferMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT
17534 {
17535 VULKAN_HPP_ASSERT( getDispatcher()->vkGetBufferMemoryRequirements2 &&
17536 "Function <vkGetBufferMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17537
17538 MemoryRequirements2 memoryRequirements;
17539 getDispatcher()->vkGetBufferMemoryRequirements2( static_cast<VkDevice>( m_device ),
17540 reinterpret_cast<VkBufferMemoryRequirementsInfo2 const *>( &info ),
17541 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17542
17543 return memoryRequirements;
17544 }
17545
17546 // wrapper function for command vkGetBufferMemoryRequirements2, see
17547 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2.html
17548 template <typename X, typename Y, typename... Z>
17549 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
17550 Device::getBufferMemoryRequirements2( BufferMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT
17551 {
17552 VULKAN_HPP_ASSERT( getDispatcher()->vkGetBufferMemoryRequirements2 &&
17553 "Function <vkGetBufferMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17554
17555 StructureChain<X, Y, Z...> structureChain;
17556 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
17557 getDispatcher()->vkGetBufferMemoryRequirements2( static_cast<VkDevice>( m_device ),
17558 reinterpret_cast<VkBufferMemoryRequirementsInfo2 const *>( &info ),
17559 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17560
17561 return structureChain;
17562 }
17563
17564 // wrapper function for command vkGetImageSparseMemoryRequirements2, see
17565 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2.html
17566 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2>
17567 Device::getImageSparseMemoryRequirements2( ImageSparseMemoryRequirementsInfo2 const & info ) const
17568 {
17569 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageSparseMemoryRequirements2 &&
17570 "Function <vkGetImageSparseMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17571
17572 std::vector<SparseImageMemoryRequirements2> sparseMemoryRequirements;
17573 uint32_t sparseMemoryRequirementCount;
17574 getDispatcher()->vkGetImageSparseMemoryRequirements2(
17575 static_cast<VkDevice>( m_device ), reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( &info ), &sparseMemoryRequirementCount, nullptr );
17576 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
17577 getDispatcher()->vkGetImageSparseMemoryRequirements2( static_cast<VkDevice>( m_device ),
17578 reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( &info ),
17579 &sparseMemoryRequirementCount,
17580 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
17581
17582 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
17583 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
17584 {
17585 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
17586 }
17587 return sparseMemoryRequirements;
17588 }
17589
17590 // wrapper function for command vkGetPhysicalDeviceFeatures2, see
17591 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2.html
17592 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceFeatures2 PhysicalDevice::getFeatures2() const VULKAN_HPP_NOEXCEPT
17593 {
17594 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFeatures2 &&
17595 "Function <vkGetPhysicalDeviceFeatures2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17596
17597 PhysicalDeviceFeatures2 features;
17598 getDispatcher()->vkGetPhysicalDeviceFeatures2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17599 reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
17600
17601 return features;
17602 }
17603
17604 // wrapper function for command vkGetPhysicalDeviceFeatures2, see
17605 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2.html
17606 template <typename X, typename Y, typename... Z>
17607 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFeatures2() const VULKAN_HPP_NOEXCEPT
17608 {
17609 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFeatures2 &&
17610 "Function <vkGetPhysicalDeviceFeatures2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17611
17612 StructureChain<X, Y, Z...> structureChain;
17613 PhysicalDeviceFeatures2 & features = structureChain.template get<PhysicalDeviceFeatures2>();
17614 getDispatcher()->vkGetPhysicalDeviceFeatures2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17615 reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
17616
17617 return structureChain;
17618 }
17619
17620 // wrapper function for command vkGetPhysicalDeviceProperties2, see
17621 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html
17622 VULKAN_HPP_INLINE void PhysicalDevice::getProperties2( PhysicalDeviceProperties2 * pProperties ) const VULKAN_HPP_NOEXCEPT
17623 {
17624 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceProperties2 &&
17625 "Function <vkGetPhysicalDeviceProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17626 getDispatcher()->vkGetPhysicalDeviceProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17627 reinterpret_cast<VkPhysicalDeviceProperties2 *>( pProperties ) );
17628 }
17629
17630 // wrapper function for command vkGetPhysicalDeviceProperties2, see
17631 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html
17632 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceProperties2 PhysicalDevice::getProperties2() const VULKAN_HPP_NOEXCEPT
17633 {
17634 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceProperties2 &&
17635 "Function <vkGetPhysicalDeviceProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17636
17637 PhysicalDeviceProperties2 properties;
17638 getDispatcher()->vkGetPhysicalDeviceProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17639 reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
17640
17641 return properties;
17642 }
17643
17644 // wrapper function for command vkGetPhysicalDeviceProperties2, see
17645 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html
17646 template <typename X, typename Y, typename... Z>
17647 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getProperties2() const VULKAN_HPP_NOEXCEPT
17648 {
17649 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceProperties2 &&
17650 "Function <vkGetPhysicalDeviceProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17651
17652 StructureChain<X, Y, Z...> structureChain;
17653 PhysicalDeviceProperties2 & properties = structureChain.template get<PhysicalDeviceProperties2>();
17654 getDispatcher()->vkGetPhysicalDeviceProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17655 reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
17656
17657 return structureChain;
17658 }
17659
17660 // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see
17661 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html
17662 VULKAN_HPP_INLINE void PhysicalDevice::getFormatProperties2( Format format, FormatProperties2 * pFormatProperties ) const VULKAN_HPP_NOEXCEPT
17663 {
17664 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFormatProperties2 &&
17665 "Function <vkGetPhysicalDeviceFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17666 getDispatcher()->vkGetPhysicalDeviceFormatProperties2(
17667 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( pFormatProperties ) );
17668 }
17669
17670 // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see
17671 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html
17672 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE FormatProperties2 PhysicalDevice::getFormatProperties2( Format format ) const VULKAN_HPP_NOEXCEPT
17673 {
17674 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFormatProperties2 &&
17675 "Function <vkGetPhysicalDeviceFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17676
17677 FormatProperties2 formatProperties;
17678 getDispatcher()->vkGetPhysicalDeviceFormatProperties2(
17679 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
17680
17681 return formatProperties;
17682 }
17683
17684 // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see
17685 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html
17686 template <typename X, typename Y, typename... Z>
17687 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFormatProperties2( Format format ) const VULKAN_HPP_NOEXCEPT
17688 {
17689 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFormatProperties2 &&
17690 "Function <vkGetPhysicalDeviceFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17691
17692 StructureChain<X, Y, Z...> structureChain;
17693 FormatProperties2 & formatProperties = structureChain.template get<FormatProperties2>();
17694 getDispatcher()->vkGetPhysicalDeviceFormatProperties2(
17695 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
17696
17697 return structureChain;
17698 }
17699
17700 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see
17701 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html
17702 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageFormatProperties2>::type
17703 PhysicalDevice::getImageFormatProperties2( PhysicalDeviceImageFormatInfo2 const & imageFormatInfo ) const
17704 {
17705 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2 &&
17706 "Function <vkGetPhysicalDeviceImageFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17707
17708 ImageFormatProperties2 imageFormatProperties;
17709 Result result = static_cast<Result>(
17710 getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17711 reinterpret_cast<VkPhysicalDeviceImageFormatInfo2 const *>( &imageFormatInfo ),
17712 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) );
17713 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" );
17714
17715 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( imageFormatProperties ) );
17716 }
17717
17718 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see
17719 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html
17720 template <typename X, typename Y, typename... Z>
17721 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
17722 PhysicalDevice::getImageFormatProperties2( PhysicalDeviceImageFormatInfo2 const & imageFormatInfo ) const
17723 {
17724 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2 &&
17725 "Function <vkGetPhysicalDeviceImageFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17726
17727 StructureChain<X, Y, Z...> structureChain;
17728 ImageFormatProperties2 & imageFormatProperties = structureChain.template get<ImageFormatProperties2>();
17729 Result result = static_cast<Result>(
17730 getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17731 reinterpret_cast<VkPhysicalDeviceImageFormatInfo2 const *>( &imageFormatInfo ),
17732 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) );
17733 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" );
17734
17735 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( structureChain ) );
17736 }
17737
17738 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
17739 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
17740 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties2> PhysicalDevice::getQueueFamilyProperties2() const
17741 {
17742 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2 &&
17743 "Function <vkGetPhysicalDeviceQueueFamilyProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17744
17745 std::vector<QueueFamilyProperties2> queueFamilyProperties;
17746 uint32_t queueFamilyPropertyCount;
17747 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ), &queueFamilyPropertyCount, nullptr );
17748 queueFamilyProperties.resize( queueFamilyPropertyCount );
17749 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17750 &queueFamilyPropertyCount,
17751 reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
17752
17753 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
17754 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
17755 {
17756 queueFamilyProperties.resize( queueFamilyPropertyCount );
17757 }
17758 return queueFamilyProperties;
17759 }
17760
17761 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
17762 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
17763 template <typename StructureChain>
17764 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<StructureChain> PhysicalDevice::getQueueFamilyProperties2() const
17765 {
17766 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2 &&
17767 "Function <vkGetPhysicalDeviceQueueFamilyProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17768
17769 std::vector<StructureChain> structureChains;
17770 std::vector<QueueFamilyProperties2> queueFamilyProperties;
17771 uint32_t queueFamilyPropertyCount;
17772 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ), &queueFamilyPropertyCount, nullptr );
17773 structureChains.resize( queueFamilyPropertyCount );
17774 queueFamilyProperties.resize( queueFamilyPropertyCount );
17775 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
17776 {
17777 queueFamilyProperties[i].pNext = structureChains[i].template get<QueueFamilyProperties2>().pNext;
17778 }
17779 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17780 &queueFamilyPropertyCount,
17781 reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
17782
17783 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
17784 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
17785 {
17786 structureChains.resize( queueFamilyPropertyCount );
17787 }
17788 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
17789 {
17790 structureChains[i].template get<QueueFamilyProperties2>() = queueFamilyProperties[i];
17791 }
17792 return structureChains;
17793 }
17794
17795 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2, see
17796 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2.html
17797 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceMemoryProperties2 PhysicalDevice::getMemoryProperties2() const VULKAN_HPP_NOEXCEPT
17798 {
17799 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceMemoryProperties2 &&
17800 "Function <vkGetPhysicalDeviceMemoryProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17801
17802 PhysicalDeviceMemoryProperties2 memoryProperties;
17803 getDispatcher()->vkGetPhysicalDeviceMemoryProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17804 reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
17805
17806 return memoryProperties;
17807 }
17808
17809 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2, see
17810 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2.html
17811 template <typename X, typename Y, typename... Z>
17812 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getMemoryProperties2() const VULKAN_HPP_NOEXCEPT
17813 {
17814 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceMemoryProperties2 &&
17815 "Function <vkGetPhysicalDeviceMemoryProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17816
17817 StructureChain<X, Y, Z...> structureChain;
17818 PhysicalDeviceMemoryProperties2 & memoryProperties = structureChain.template get<PhysicalDeviceMemoryProperties2>();
17819 getDispatcher()->vkGetPhysicalDeviceMemoryProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17820 reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
17821
17822 return structureChain;
17823 }
17824
17825 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2, see
17826 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2.html
17827 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties2>
17828 PhysicalDevice::getSparseImageFormatProperties2( PhysicalDeviceSparseImageFormatInfo2 const & formatInfo ) const
17829 {
17830 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties2 &&
17831 "Function <vkGetPhysicalDeviceSparseImageFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
17832
17833 std::vector<SparseImageFormatProperties2> properties;
17834 uint32_t propertyCount;
17835 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17836 reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( &formatInfo ),
17837 &propertyCount,
17838 nullptr );
17839 properties.resize( propertyCount );
17840 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17841 reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( &formatInfo ),
17842 &propertyCount,
17843 reinterpret_cast<VkSparseImageFormatProperties2 *>( properties.data() ) );
17844
17845 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
17846 if ( propertyCount < properties.size() )
17847 {
17848 properties.resize( propertyCount );
17849 }
17850 return properties;
17851 }
17852
17853 // wrapper function for command vkTrimCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTrimCommandPool.html
17854 VULKAN_HPP_INLINE void CommandPool::trim( CommandPoolTrimFlags flags ) const VULKAN_HPP_NOEXCEPT
17855 {
17856 VULKAN_HPP_ASSERT( getDispatcher()->vkTrimCommandPool && "Function <vkTrimCommandPool> requires <VK_KHR_maintenance1> or <VK_VERSION_1_1>" );
17857
17858 getDispatcher()->vkTrimCommandPool(
17859 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( m_commandPool ), static_cast<VkCommandPoolTrimFlags>( flags ) );
17860 }
17861
17862 // wrapper function for command vkGetDeviceQueue2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceQueue2.html
17863 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Queue Device::getQueue2( DeviceQueueInfo2 const & queueInfo ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
17864 {
17865 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceQueue2 && "Function <vkGetDeviceQueue2> requires <VK_VERSION_1_1>" );
17866
17867 VULKAN_HPP_NAMESPACE::Queue queue;
17868 getDispatcher()->vkGetDeviceQueue2(
17869 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceQueueInfo2 const *>( &queueInfo ), reinterpret_cast<VkQueue *>( &queue ) );
17870
17871 return Queue( *this, *reinterpret_cast<VkQueue *>( &queue ) );
17872 }
17873
17874 // wrapper function for command vkGetPhysicalDeviceExternalBufferProperties, see
17875 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalBufferProperties.html
17876 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalBufferProperties
17877 PhysicalDevice::getExternalBufferProperties( PhysicalDeviceExternalBufferInfo const & externalBufferInfo ) const VULKAN_HPP_NOEXCEPT
17878 {
17879 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceExternalBufferProperties &&
17880 "Function <vkGetPhysicalDeviceExternalBufferProperties> requires <VK_KHR_external_memory_capabilities> or <VK_VERSION_1_1>" );
17881
17882 ExternalBufferProperties externalBufferProperties;
17883 getDispatcher()->vkGetPhysicalDeviceExternalBufferProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17884 reinterpret_cast<VkPhysicalDeviceExternalBufferInfo const *>( &externalBufferInfo ),
17885 reinterpret_cast<VkExternalBufferProperties *>( &externalBufferProperties ) );
17886
17887 return externalBufferProperties;
17888 }
17889
17890 // wrapper function for command vkGetPhysicalDeviceExternalFenceProperties, see
17891 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalFenceProperties.html
17892 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalFenceProperties
17893 PhysicalDevice::getExternalFenceProperties( PhysicalDeviceExternalFenceInfo const & externalFenceInfo ) const VULKAN_HPP_NOEXCEPT
17894 {
17895 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceExternalFenceProperties &&
17896 "Function <vkGetPhysicalDeviceExternalFenceProperties> requires <VK_KHR_external_fence_capabilities> or <VK_VERSION_1_1>" );
17897
17898 ExternalFenceProperties externalFenceProperties;
17899 getDispatcher()->vkGetPhysicalDeviceExternalFenceProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17900 reinterpret_cast<VkPhysicalDeviceExternalFenceInfo const *>( &externalFenceInfo ),
17901 reinterpret_cast<VkExternalFenceProperties *>( &externalFenceProperties ) );
17902
17903 return externalFenceProperties;
17904 }
17905
17906 // wrapper function for command vkGetPhysicalDeviceExternalSemaphoreProperties, see
17907 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalSemaphoreProperties.html
17908 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalSemaphoreProperties
17909 PhysicalDevice::getExternalSemaphoreProperties( PhysicalDeviceExternalSemaphoreInfo const & externalSemaphoreInfo ) const VULKAN_HPP_NOEXCEPT
17910 {
17911 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceExternalSemaphoreProperties &&
17912 "Function <vkGetPhysicalDeviceExternalSemaphoreProperties> requires <VK_KHR_external_semaphore_capabilities> or <VK_VERSION_1_1>" );
17913
17914 ExternalSemaphoreProperties externalSemaphoreProperties;
17915 getDispatcher()->vkGetPhysicalDeviceExternalSemaphoreProperties(
17916 static_cast<VkPhysicalDevice>( m_physicalDevice ),
17917 reinterpret_cast<VkPhysicalDeviceExternalSemaphoreInfo const *>( &externalSemaphoreInfo ),
17918 reinterpret_cast<VkExternalSemaphoreProperties *>( &externalSemaphoreProperties ) );
17919
17920 return externalSemaphoreProperties;
17921 }
17922
17923 // wrapper function for command vkCmdDispatchBase, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchBase.html
17924 VULKAN_HPP_INLINE void CommandBuffer::dispatchBase( uint32_t baseGroupX,
17925 uint32_t baseGroupY,
17926 uint32_t baseGroupZ,
17927 uint32_t groupCountX,
17928 uint32_t groupCountY,
17929 uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT
17930 {
17931 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDispatchBase && "Function <vkCmdDispatchBase> requires <VK_KHR_device_group> or <VK_VERSION_1_1>" );
17932
17933 getDispatcher()->vkCmdDispatchBase(
17934 static_cast<VkCommandBuffer>( m_commandBuffer ), baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ );
17935 }
17936
17937 // wrapper function for command vkCreateDescriptorUpdateTemplate, see
17938 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplate.html
17939 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DescriptorUpdateTemplate>::type
17940 Device::createDescriptorUpdateTemplate( DescriptorUpdateTemplateCreateInfo const & createInfo,
17941 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
17942 {
17943 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDescriptorUpdateTemplate &&
17944 "Function <vkCreateDescriptorUpdateTemplate> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
17945
17946 VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate descriptorUpdateTemplate;
17947 Result result =
17948 static_cast<Result>( getDispatcher()->vkCreateDescriptorUpdateTemplate( static_cast<VkDevice>( m_device ),
17949 reinterpret_cast<VkDescriptorUpdateTemplateCreateInfo const *>( &createInfo ),
17950 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
17951 reinterpret_cast<VkDescriptorUpdateTemplate *>( &descriptorUpdateTemplate ) ) );
17952 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createDescriptorUpdateTemplate" );
17953 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
17954 result, DescriptorUpdateTemplate( *this, *reinterpret_cast<VkDescriptorUpdateTemplate *>( &descriptorUpdateTemplate ), allocator ) );
17955 }
17956
17957 // wrapper function for command vkUpdateDescriptorSetWithTemplate, see
17958 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSetWithTemplate.html
17959 template <typename DataType>
17960 VULKAN_HPP_INLINE void DescriptorSet::updateWithTemplate( VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate descriptorUpdateTemplate,
17961 DataType const & data ) const VULKAN_HPP_NOEXCEPT
17962 {
17963 VULKAN_HPP_ASSERT( getDispatcher()->vkUpdateDescriptorSetWithTemplate &&
17964 "Function <vkUpdateDescriptorSetWithTemplate> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
17965
17966 getDispatcher()->vkUpdateDescriptorSetWithTemplate( static_cast<VkDevice>( m_device ),
17967 static_cast<VkDescriptorSet>( m_descriptorSet ),
17968 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
17969 reinterpret_cast<void const *>( &data ) );
17970 }
17971
17972 // wrapper function for command vkGetDescriptorSetLayoutSupport, see
17973 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupport.html
17974 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DescriptorSetLayoutSupport
17975 Device::getDescriptorSetLayoutSupport( DescriptorSetLayoutCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT
17976 {
17977 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDescriptorSetLayoutSupport &&
17978 "Function <vkGetDescriptorSetLayoutSupport> requires <VK_KHR_maintenance3> or <VK_VERSION_1_1>" );
17979
17980 DescriptorSetLayoutSupport support;
17981 getDispatcher()->vkGetDescriptorSetLayoutSupport( static_cast<VkDevice>( m_device ),
17982 reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( &createInfo ),
17983 reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
17984
17985 return support;
17986 }
17987
17988 // wrapper function for command vkGetDescriptorSetLayoutSupport, see
17989 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupport.html
17990 template <typename X, typename Y, typename... Z>
17991 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
17992 Device::getDescriptorSetLayoutSupport( DescriptorSetLayoutCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT
17993 {
17994 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDescriptorSetLayoutSupport &&
17995 "Function <vkGetDescriptorSetLayoutSupport> requires <VK_KHR_maintenance3> or <VK_VERSION_1_1>" );
17996
17997 StructureChain<X, Y, Z...> structureChain;
17998 DescriptorSetLayoutSupport & support = structureChain.template get<DescriptorSetLayoutSupport>();
17999 getDispatcher()->vkGetDescriptorSetLayoutSupport( static_cast<VkDevice>( m_device ),
18000 reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( &createInfo ),
18001 reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
18002
18003 return structureChain;
18004 }
18005
18006 // wrapper function for command vkCreateSamplerYcbcrConversion, see
18007 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversion.html
18008 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SamplerYcbcrConversion>::type
18009 Device::createSamplerYcbcrConversion( SamplerYcbcrConversionCreateInfo const & createInfo,
18010 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
18011 {
18012 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateSamplerYcbcrConversion &&
18013 "Function <vkCreateSamplerYcbcrConversion> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
18014
18015 VULKAN_HPP_NAMESPACE::SamplerYcbcrConversion ycbcrConversion;
18016 Result result =
18017 static_cast<Result>( getDispatcher()->vkCreateSamplerYcbcrConversion( static_cast<VkDevice>( m_device ),
18018 reinterpret_cast<VkSamplerYcbcrConversionCreateInfo const *>( &createInfo ),
18019 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18020 reinterpret_cast<VkSamplerYcbcrConversion *>( &ycbcrConversion ) ) );
18021 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createSamplerYcbcrConversion" );
18022 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
18023 result, SamplerYcbcrConversion( *this, *reinterpret_cast<VkSamplerYcbcrConversion *>( &ycbcrConversion ), allocator ) );
18024 }
18025
18026 //=== VK_VERSION_1_2 ===
18027
18028 // wrapper function for command vkResetQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetQueryPool.html
18029 VULKAN_HPP_INLINE void QueryPool::reset( uint32_t firstQuery, uint32_t queryCount ) const VULKAN_HPP_NOEXCEPT
18030 {
18031 VULKAN_HPP_ASSERT( getDispatcher()->vkResetQueryPool && "Function <vkResetQueryPool> requires <VK_EXT_host_query_reset> or <VK_VERSION_1_2>" );
18032
18033 getDispatcher()->vkResetQueryPool( static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( m_queryPool ), firstQuery, queryCount );
18034 }
18035
18036 // wrapper function for command vkGetSemaphoreCounterValue, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValue.html
18037 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint64_t>::type Semaphore::getCounterValue() const
18038 {
18039 VULKAN_HPP_ASSERT( getDispatcher()->vkGetSemaphoreCounterValue &&
18040 "Function <vkGetSemaphoreCounterValue> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
18041
18042 uint64_t value;
18043 Result result = static_cast<Result>(
18044 getDispatcher()->vkGetSemaphoreCounterValue( static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( m_semaphore ), &value ) );
18045 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Semaphore::getCounterValue" );
18046
18047 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( value ) );
18048 }
18049
18050 // wrapper function for command vkWaitSemaphores, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitSemaphores.html
18051 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitSemaphores( SemaphoreWaitInfo const & waitInfo, uint64_t timeout ) const
18052 {
18053 VULKAN_HPP_ASSERT( getDispatcher()->vkWaitSemaphores && "Function <vkWaitSemaphores> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
18054
18055 Result result = static_cast<Result>(
18056 getDispatcher()->vkWaitSemaphores( static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreWaitInfo const *>( &waitInfo ), timeout ) );
18057 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::waitSemaphores", { Result::eSuccess, Result::eTimeout } );
18058
18059 return static_cast<Result>( result );
18060 }
18061
18062 // wrapper function for command vkSignalSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSignalSemaphore.html
18063 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::signalSemaphore( SemaphoreSignalInfo const & signalInfo ) const
18064 {
18065 VULKAN_HPP_ASSERT( getDispatcher()->vkSignalSemaphore && "Function <vkSignalSemaphore> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
18066
18067 Result result = static_cast<Result>(
18068 getDispatcher()->vkSignalSemaphore( static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreSignalInfo const *>( &signalInfo ) ) );
18069 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::signalSemaphore" );
18070
18071 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
18072 }
18073
18074 // wrapper function for command vkGetBufferDeviceAddress, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddress.html
18075 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddress( BufferDeviceAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT
18076 {
18077 VULKAN_HPP_ASSERT( getDispatcher()->vkGetBufferDeviceAddress &&
18078 "Function <vkGetBufferDeviceAddress> requires <VK_EXT_buffer_device_address> or <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
18079
18080 VkDeviceAddress result =
18081 getDispatcher()->vkGetBufferDeviceAddress( static_cast<VkDevice>( m_device ), reinterpret_cast<VkBufferDeviceAddressInfo const *>( &info ) );
18082
18083 return static_cast<DeviceAddress>( result );
18084 }
18085
18086 // wrapper function for command vkGetBufferOpaqueCaptureAddress, see
18087 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureAddress.html
18088 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint64_t Device::getBufferOpaqueCaptureAddress( BufferDeviceAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT
18089 {
18090 VULKAN_HPP_ASSERT( getDispatcher()->vkGetBufferOpaqueCaptureAddress &&
18091 "Function <vkGetBufferOpaqueCaptureAddress> requires <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
18092
18093 uint64_t result =
18094 getDispatcher()->vkGetBufferOpaqueCaptureAddress( static_cast<VkDevice>( m_device ), reinterpret_cast<VkBufferDeviceAddressInfo const *>( &info ) );
18095
18096 return result;
18097 }
18098
18099 // wrapper function for command vkGetDeviceMemoryOpaqueCaptureAddress, see
18100 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryOpaqueCaptureAddress.html
18101 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint64_t
18102 Device::getMemoryOpaqueCaptureAddress( DeviceMemoryOpaqueCaptureAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT
18103 {
18104 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceMemoryOpaqueCaptureAddress &&
18105 "Function <vkGetDeviceMemoryOpaqueCaptureAddress> requires <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
18106
18107 uint64_t result = getDispatcher()->vkGetDeviceMemoryOpaqueCaptureAddress( static_cast<VkDevice>( m_device ),
18108 reinterpret_cast<VkDeviceMemoryOpaqueCaptureAddressInfo const *>( &info ) );
18109
18110 return result;
18111 }
18112
18113 // wrapper function for command vkCmdDrawIndirectCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCount.html
18114 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectCount( VULKAN_HPP_NAMESPACE::Buffer buffer,
18115 DeviceSize offset,
18116 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
18117 DeviceSize countBufferOffset,
18118 uint32_t maxDrawCount,
18119 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
18120 {
18121 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndirectCount &&
18122 "Function <vkCmdDrawIndirectCount> requires <VK_AMD_draw_indirect_count> or <VK_KHR_draw_indirect_count> or <VK_VERSION_1_2>" );
18123
18124 getDispatcher()->vkCmdDrawIndirectCount( static_cast<VkCommandBuffer>( m_commandBuffer ),
18125 static_cast<VkBuffer>( buffer ),
18126 static_cast<VkDeviceSize>( offset ),
18127 static_cast<VkBuffer>( countBuffer ),
18128 static_cast<VkDeviceSize>( countBufferOffset ),
18129 maxDrawCount,
18130 stride );
18131 }
18132
18133 // wrapper function for command vkCmdDrawIndexedIndirectCount, see
18134 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCount.html
18135 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirectCount( VULKAN_HPP_NAMESPACE::Buffer buffer,
18136 DeviceSize offset,
18137 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
18138 DeviceSize countBufferOffset,
18139 uint32_t maxDrawCount,
18140 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
18141 {
18142 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndexedIndirectCount &&
18143 "Function <vkCmdDrawIndexedIndirectCount> requires <VK_AMD_draw_indirect_count> or <VK_KHR_draw_indirect_count> or <VK_VERSION_1_2>" );
18144
18145 getDispatcher()->vkCmdDrawIndexedIndirectCount( static_cast<VkCommandBuffer>( m_commandBuffer ),
18146 static_cast<VkBuffer>( buffer ),
18147 static_cast<VkDeviceSize>( offset ),
18148 static_cast<VkBuffer>( countBuffer ),
18149 static_cast<VkDeviceSize>( countBufferOffset ),
18150 maxDrawCount,
18151 stride );
18152 }
18153
18154 // wrapper function for command vkCreateRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2.html
18155 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RenderPass>::type
18156 Device::createRenderPass2( RenderPassCreateInfo2 const & createInfo,
18157 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
18158 {
18159 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateRenderPass2 && "Function <vkCreateRenderPass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
18160
18161 VULKAN_HPP_NAMESPACE::RenderPass renderPass;
18162 Result result = static_cast<Result>( getDispatcher()->vkCreateRenderPass2( static_cast<VkDevice>( m_device ),
18163 reinterpret_cast<VkRenderPassCreateInfo2 const *>( &createInfo ),
18164 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18165 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
18166 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createRenderPass2" );
18167 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, RenderPass( *this, *reinterpret_cast<VkRenderPass *>( &renderPass ), allocator ) );
18168 }
18169
18170 // wrapper function for command vkCmdBeginRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass2.html
18171 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass2( RenderPassBeginInfo const & renderPassBegin,
18172 SubpassBeginInfo const & subpassBeginInfo ) const VULKAN_HPP_NOEXCEPT
18173 {
18174 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginRenderPass2 &&
18175 "Function <vkCmdBeginRenderPass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
18176
18177 getDispatcher()->vkCmdBeginRenderPass2( static_cast<VkCommandBuffer>( m_commandBuffer ),
18178 reinterpret_cast<VkRenderPassBeginInfo const *>( &renderPassBegin ),
18179 reinterpret_cast<VkSubpassBeginInfo const *>( &subpassBeginInfo ) );
18180 }
18181
18182 // wrapper function for command vkCmdNextSubpass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass2.html
18183 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass2( SubpassBeginInfo const & subpassBeginInfo,
18184 SubpassEndInfo const & subpassEndInfo ) const VULKAN_HPP_NOEXCEPT
18185 {
18186 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdNextSubpass2 && "Function <vkCmdNextSubpass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
18187
18188 getDispatcher()->vkCmdNextSubpass2( static_cast<VkCommandBuffer>( m_commandBuffer ),
18189 reinterpret_cast<VkSubpassBeginInfo const *>( &subpassBeginInfo ),
18190 reinterpret_cast<VkSubpassEndInfo const *>( &subpassEndInfo ) );
18191 }
18192
18193 // wrapper function for command vkCmdEndRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass2.html
18194 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass2( SubpassEndInfo const & subpassEndInfo ) const VULKAN_HPP_NOEXCEPT
18195 {
18196 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndRenderPass2 && "Function <vkCmdEndRenderPass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
18197
18198 getDispatcher()->vkCmdEndRenderPass2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkSubpassEndInfo const *>( &subpassEndInfo ) );
18199 }
18200
18201 //=== VK_VERSION_1_3 ===
18202
18203 // wrapper function for command vkGetPhysicalDeviceToolProperties, see
18204 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolProperties.html
18205 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceToolProperties>>::type PhysicalDevice::getToolProperties() const
18206 {
18207 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceToolProperties &&
18208 "Function <vkGetPhysicalDeviceToolProperties> requires <VK_EXT_tooling_info> or <VK_VERSION_1_3>" );
18209
18210 std::vector<PhysicalDeviceToolProperties> toolProperties;
18211 uint32_t toolCount;
18212 Result result;
18213 do
18214 {
18215 result =
18216 static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceToolProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ), &toolCount, nullptr ) );
18217 if ( ( result == Result::eSuccess ) && toolCount )
18218 {
18219 toolProperties.resize( toolCount );
18220 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceToolProperties(
18221 static_cast<VkPhysicalDevice>( m_physicalDevice ), &toolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( toolProperties.data() ) ) );
18222 }
18223 } while ( result == Result::eIncomplete );
18224 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getToolProperties" );
18225 VULKAN_HPP_ASSERT( toolCount <= toolProperties.size() );
18226 if ( toolCount < toolProperties.size() )
18227 {
18228 toolProperties.resize( toolCount );
18229 }
18230 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( toolProperties ) );
18231 }
18232
18233 // wrapper function for command vkCreatePrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlot.html
18234 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PrivateDataSlot>::type
18235 Device::createPrivateDataSlot( PrivateDataSlotCreateInfo const & createInfo,
18236 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
18237 {
18238 VULKAN_HPP_ASSERT( getDispatcher()->vkCreatePrivateDataSlot && "Function <vkCreatePrivateDataSlot> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
18239
18240 VULKAN_HPP_NAMESPACE::PrivateDataSlot privateDataSlot;
18241 Result result = static_cast<Result>( getDispatcher()->vkCreatePrivateDataSlot( static_cast<VkDevice>( m_device ),
18242 reinterpret_cast<VkPrivateDataSlotCreateInfo const *>( &createInfo ),
18243 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
18244 reinterpret_cast<VkPrivateDataSlot *>( &privateDataSlot ) ) );
18245 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createPrivateDataSlot" );
18246 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
18247 result, PrivateDataSlot( *this, *reinterpret_cast<VkPrivateDataSlot *>( &privateDataSlot ), allocator ) );
18248 }
18249
18250 // wrapper function for command vkSetPrivateData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetPrivateData.html
18251 VULKAN_HPP_INLINE typename ResultValueType<void>::type
18252 Device::setPrivateData( ObjectType objectType_, uint64_t objectHandle, VULKAN_HPP_NAMESPACE::PrivateDataSlot privateDataSlot, uint64_t data ) const
18253 {
18254 VULKAN_HPP_ASSERT( getDispatcher()->vkSetPrivateData && "Function <vkSetPrivateData> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
18255
18256 Result result = static_cast<Result>( getDispatcher()->vkSetPrivateData(
18257 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), data ) );
18258 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::setPrivateData" );
18259
18260 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
18261 }
18262
18263 // wrapper function for command vkGetPrivateData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPrivateData.html
18264 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint64_t Device::getPrivateData( ObjectType objectType_,
18265 uint64_t objectHandle,
18266 VULKAN_HPP_NAMESPACE::PrivateDataSlot privateDataSlot ) const VULKAN_HPP_NOEXCEPT
18267 {
18268 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPrivateData && "Function <vkGetPrivateData> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
18269
18270 uint64_t data;
18271 getDispatcher()->vkGetPrivateData(
18272 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), &data );
18273
18274 return data;
18275 }
18276
18277 // wrapper function for command vkCmdPipelineBarrier2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier2.html
18278 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier2( DependencyInfo const & dependencyInfo ) const VULKAN_HPP_NOEXCEPT
18279 {
18280 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPipelineBarrier2 && "Function <vkCmdPipelineBarrier2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
18281
18282 getDispatcher()->vkCmdPipelineBarrier2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDependencyInfo const *>( &dependencyInfo ) );
18283 }
18284
18285 // wrapper function for command vkCmdWriteTimestamp2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteTimestamp2.html
18286 VULKAN_HPP_INLINE void
18287 CommandBuffer::writeTimestamp2( PipelineStageFlags2 stage, VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t query ) const VULKAN_HPP_NOEXCEPT
18288 {
18289 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdWriteTimestamp2 && "Function <vkCmdWriteTimestamp2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
18290
18291 getDispatcher()->vkCmdWriteTimestamp2(
18292 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineStageFlags2>( stage ), static_cast<VkQueryPool>( queryPool ), query );
18293 }
18294
18295 // wrapper function for command vkQueueSubmit2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2.html
18296 VULKAN_HPP_INLINE typename ResultValueType<void>::type Queue::submit2( ArrayProxy<SubmitInfo2 const> const & submits,
18297 VULKAN_HPP_NAMESPACE::Fence fence ) const
18298 {
18299 VULKAN_HPP_ASSERT( getDispatcher()->vkQueueSubmit2 && "Function <vkQueueSubmit2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
18300
18301 Result result = static_cast<Result>( getDispatcher()->vkQueueSubmit2(
18302 static_cast<VkQueue>( m_queue ), submits.size(), reinterpret_cast<VkSubmitInfo2 const *>( submits.data() ), static_cast<VkFence>( fence ) ) );
18303 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Queue::submit2" );
18304
18305 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
18306 }
18307
18308 // wrapper function for command vkCmdCopyBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer2.html
18309 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer2( CopyBufferInfo2 const & copyBufferInfo ) const VULKAN_HPP_NOEXCEPT
18310 {
18311 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyBuffer2 && "Function <vkCmdCopyBuffer2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
18312
18313 getDispatcher()->vkCmdCopyBuffer2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyBufferInfo2 const *>( &copyBufferInfo ) );
18314 }
18315
18316 // wrapper function for command vkCmdCopyImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage2.html
18317 VULKAN_HPP_INLINE void CommandBuffer::copyImage2( CopyImageInfo2 const & copyImageInfo ) const VULKAN_HPP_NOEXCEPT
18318 {
18319 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyImage2 && "Function <vkCmdCopyImage2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
18320
18321 getDispatcher()->vkCmdCopyImage2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyImageInfo2 const *>( &copyImageInfo ) );
18322 }
18323
18324 // wrapper function for command vkCmdCopyBufferToImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage2.html
18325 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage2( CopyBufferToImageInfo2 const & copyBufferToImageInfo ) const VULKAN_HPP_NOEXCEPT
18326 {
18327 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyBufferToImage2 &&
18328 "Function <vkCmdCopyBufferToImage2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
18329
18330 getDispatcher()->vkCmdCopyBufferToImage2( static_cast<VkCommandBuffer>( m_commandBuffer ),
18331 reinterpret_cast<VkCopyBufferToImageInfo2 const *>( &copyBufferToImageInfo ) );
18332 }
18333
18334 // wrapper function for command vkCmdCopyImageToBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer2.html
18335 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer2( CopyImageToBufferInfo2 const & copyImageToBufferInfo ) const VULKAN_HPP_NOEXCEPT
18336 {
18337 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyImageToBuffer2 &&
18338 "Function <vkCmdCopyImageToBuffer2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
18339
18340 getDispatcher()->vkCmdCopyImageToBuffer2( static_cast<VkCommandBuffer>( m_commandBuffer ),
18341 reinterpret_cast<VkCopyImageToBufferInfo2 const *>( &copyImageToBufferInfo ) );
18342 }
18343
18344 // wrapper function for command vkGetDeviceBufferMemoryRequirements, see
18345 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirements.html
18346 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
18347 Device::getBufferMemoryRequirements( DeviceBufferMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT
18348 {
18349 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceBufferMemoryRequirements &&
18350 "Function <vkGetDeviceBufferMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
18351
18352 MemoryRequirements2 memoryRequirements;
18353 getDispatcher()->vkGetDeviceBufferMemoryRequirements( static_cast<VkDevice>( m_device ),
18354 reinterpret_cast<VkDeviceBufferMemoryRequirements const *>( &info ),
18355 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
18356
18357 return memoryRequirements;
18358 }
18359
18360 // wrapper function for command vkGetDeviceBufferMemoryRequirements, see
18361 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirements.html
18362 template <typename X, typename Y, typename... Z>
18363 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
18364 Device::getBufferMemoryRequirements( DeviceBufferMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT
18365 {
18366 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceBufferMemoryRequirements &&
18367 "Function <vkGetDeviceBufferMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
18368
18369 StructureChain<X, Y, Z...> structureChain;
18370 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
18371 getDispatcher()->vkGetDeviceBufferMemoryRequirements( static_cast<VkDevice>( m_device ),
18372 reinterpret_cast<VkDeviceBufferMemoryRequirements const *>( &info ),
18373 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
18374
18375 return structureChain;
18376 }
18377
18378 // wrapper function for command vkGetDeviceImageMemoryRequirements, see
18379 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirements.html
18380 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
18381 Device::getImageMemoryRequirements( DeviceImageMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT
18382 {
18383 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceImageMemoryRequirements &&
18384 "Function <vkGetDeviceImageMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
18385
18386 MemoryRequirements2 memoryRequirements;
18387 getDispatcher()->vkGetDeviceImageMemoryRequirements( static_cast<VkDevice>( m_device ),
18388 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ),
18389 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
18390
18391 return memoryRequirements;
18392 }
18393
18394 // wrapper function for command vkGetDeviceImageMemoryRequirements, see
18395 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirements.html
18396 template <typename X, typename Y, typename... Z>
18397 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
18398 Device::getImageMemoryRequirements( DeviceImageMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT
18399 {
18400 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceImageMemoryRequirements &&
18401 "Function <vkGetDeviceImageMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
18402
18403 StructureChain<X, Y, Z...> structureChain;
18404 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
18405 getDispatcher()->vkGetDeviceImageMemoryRequirements( static_cast<VkDevice>( m_device ),
18406 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ),
18407 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
18408
18409 return structureChain;
18410 }
18411
18412 // wrapper function for command vkGetDeviceImageSparseMemoryRequirements, see
18413 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirements.html
18414 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2>
18415 Device::getImageSparseMemoryRequirements( DeviceImageMemoryRequirements const & info ) const
18416 {
18417 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceImageSparseMemoryRequirements &&
18418 "Function <vkGetDeviceImageSparseMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
18419
18420 std::vector<SparseImageMemoryRequirements2> sparseMemoryRequirements;
18421 uint32_t sparseMemoryRequirementCount;
18422 getDispatcher()->vkGetDeviceImageSparseMemoryRequirements(
18423 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ), &sparseMemoryRequirementCount, nullptr );
18424 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
18425 getDispatcher()->vkGetDeviceImageSparseMemoryRequirements( static_cast<VkDevice>( m_device ),
18426 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ),
18427 &sparseMemoryRequirementCount,
18428 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
18429
18430 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
18431 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
18432 {
18433 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
18434 }
18435 return sparseMemoryRequirements;
18436 }
18437
18438 // wrapper function for command vkCmdSetEvent2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent2.html
18439 VULKAN_HPP_INLINE void CommandBuffer::setEvent2( VULKAN_HPP_NAMESPACE::Event event, DependencyInfo const & dependencyInfo ) const VULKAN_HPP_NOEXCEPT
18440 {
18441 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetEvent2 && "Function <vkCmdSetEvent2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
18442
18443 getDispatcher()->vkCmdSetEvent2(
18444 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), reinterpret_cast<VkDependencyInfo const *>( &dependencyInfo ) );
18445 }
18446
18447 // wrapper function for command vkCmdResetEvent2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetEvent2.html
18448 VULKAN_HPP_INLINE void CommandBuffer::resetEvent2( VULKAN_HPP_NAMESPACE::Event event, PipelineStageFlags2 stageMask ) const VULKAN_HPP_NOEXCEPT
18449 {
18450 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdResetEvent2 && "Function <vkCmdResetEvent2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
18451
18452 getDispatcher()->vkCmdResetEvent2(
18453 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), static_cast<VkPipelineStageFlags2>( stageMask ) );
18454 }
18455
18456 // wrapper function for command vkCmdWaitEvents2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents2.html
18457 VULKAN_HPP_INLINE void CommandBuffer::waitEvents2( ArrayProxy<VULKAN_HPP_NAMESPACE::Event const> const & events,
18458 ArrayProxy<DependencyInfo const> const & dependencyInfos ) const
18459 {
18460 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdWaitEvents2 && "Function <vkCmdWaitEvents2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
18461 # ifdef VULKAN_HPP_NO_EXCEPTIONS
18462 VULKAN_HPP_ASSERT( events.size() == dependencyInfos.size() );
18463 # else
18464 if ( events.size() != dependencyInfos.size() )
18465 {
18466 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::waitEvents2: events.size() != dependencyInfos.size()" );
18467 }
18468 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
18469
18470 getDispatcher()->vkCmdWaitEvents2( static_cast<VkCommandBuffer>( m_commandBuffer ),
18471 events.size(),
18472 reinterpret_cast<VkEvent const *>( events.data() ),
18473 reinterpret_cast<VkDependencyInfo const *>( dependencyInfos.data() ) );
18474 }
18475
18476 // wrapper function for command vkCmdBlitImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage2.html
18477 VULKAN_HPP_INLINE void CommandBuffer::blitImage2( BlitImageInfo2 const & blitImageInfo ) const VULKAN_HPP_NOEXCEPT
18478 {
18479 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBlitImage2 && "Function <vkCmdBlitImage2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
18480
18481 getDispatcher()->vkCmdBlitImage2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkBlitImageInfo2 const *>( &blitImageInfo ) );
18482 }
18483
18484 // wrapper function for command vkCmdResolveImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage2.html
18485 VULKAN_HPP_INLINE void CommandBuffer::resolveImage2( ResolveImageInfo2 const & resolveImageInfo ) const VULKAN_HPP_NOEXCEPT
18486 {
18487 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdResolveImage2 && "Function <vkCmdResolveImage2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
18488
18489 getDispatcher()->vkCmdResolveImage2( static_cast<VkCommandBuffer>( m_commandBuffer ),
18490 reinterpret_cast<VkResolveImageInfo2 const *>( &resolveImageInfo ) );
18491 }
18492
18493 // wrapper function for command vkCmdBeginRendering, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRendering.html
18494 VULKAN_HPP_INLINE void CommandBuffer::beginRendering( RenderingInfo const & renderingInfo ) const VULKAN_HPP_NOEXCEPT
18495 {
18496 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginRendering && "Function <vkCmdBeginRendering> requires <VK_KHR_dynamic_rendering> or <VK_VERSION_1_3>" );
18497
18498 getDispatcher()->vkCmdBeginRendering( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkRenderingInfo const *>( &renderingInfo ) );
18499 }
18500
18501 // wrapper function for command vkCmdEndRendering, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering.html
18502 VULKAN_HPP_INLINE void CommandBuffer::endRendering() const VULKAN_HPP_NOEXCEPT
18503 {
18504 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndRendering && "Function <vkCmdEndRendering> requires <VK_KHR_dynamic_rendering> or <VK_VERSION_1_3>" );
18505
18506 getDispatcher()->vkCmdEndRendering( static_cast<VkCommandBuffer>( m_commandBuffer ) );
18507 }
18508
18509 // wrapper function for command vkCmdSetCullMode, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCullMode.html
18510 VULKAN_HPP_INLINE void CommandBuffer::setCullMode( CullModeFlags cullMode ) const VULKAN_HPP_NOEXCEPT
18511 {
18512 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetCullMode &&
18513 "Function <vkCmdSetCullMode> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18514
18515 getDispatcher()->vkCmdSetCullMode( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCullModeFlags>( cullMode ) );
18516 }
18517
18518 // wrapper function for command vkCmdSetFrontFace, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFrontFace.html
18519 VULKAN_HPP_INLINE void CommandBuffer::setFrontFace( FrontFace frontFace ) const VULKAN_HPP_NOEXCEPT
18520 {
18521 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetFrontFace &&
18522 "Function <vkCmdSetFrontFace> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18523
18524 getDispatcher()->vkCmdSetFrontFace( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkFrontFace>( frontFace ) );
18525 }
18526
18527 // wrapper function for command vkCmdSetPrimitiveTopology, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveTopology.html
18528 VULKAN_HPP_INLINE void CommandBuffer::setPrimitiveTopology( PrimitiveTopology primitiveTopology ) const VULKAN_HPP_NOEXCEPT
18529 {
18530 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetPrimitiveTopology &&
18531 "Function <vkCmdSetPrimitiveTopology> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18532
18533 getDispatcher()->vkCmdSetPrimitiveTopology( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPrimitiveTopology>( primitiveTopology ) );
18534 }
18535
18536 // wrapper function for command vkCmdSetViewportWithCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWithCount.html
18537 VULKAN_HPP_INLINE void CommandBuffer::setViewportWithCount( ArrayProxy<Viewport const> const & viewports ) const VULKAN_HPP_NOEXCEPT
18538 {
18539 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetViewportWithCount &&
18540 "Function <vkCmdSetViewportWithCount> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18541
18542 getDispatcher()->vkCmdSetViewportWithCount(
18543 static_cast<VkCommandBuffer>( m_commandBuffer ), viewports.size(), reinterpret_cast<VkViewport const *>( viewports.data() ) );
18544 }
18545
18546 // wrapper function for command vkCmdSetScissorWithCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissorWithCount.html
18547 VULKAN_HPP_INLINE void CommandBuffer::setScissorWithCount( ArrayProxy<Rect2D const> const & scissors ) const VULKAN_HPP_NOEXCEPT
18548 {
18549 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetScissorWithCount &&
18550 "Function <vkCmdSetScissorWithCount> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18551
18552 getDispatcher()->vkCmdSetScissorWithCount(
18553 static_cast<VkCommandBuffer>( m_commandBuffer ), scissors.size(), reinterpret_cast<VkRect2D const *>( scissors.data() ) );
18554 }
18555
18556 // wrapper function for command vkCmdBindVertexBuffers2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers2.html
18557 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers2( uint32_t firstBinding,
18558 ArrayProxy<VULKAN_HPP_NAMESPACE::Buffer const> const & buffers,
18559 ArrayProxy<DeviceSize const> const & offsets,
18560 ArrayProxy<DeviceSize const> const & sizes,
18561 ArrayProxy<DeviceSize const> const & strides ) const
18562 {
18563 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindVertexBuffers2 &&
18564 "Function <vkCmdBindVertexBuffers2> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18565 # ifdef VULKAN_HPP_NO_EXCEPTIONS
18566 VULKAN_HPP_ASSERT( buffers.size() == offsets.size() );
18567 VULKAN_HPP_ASSERT( sizes.empty() || buffers.size() == sizes.size() );
18568 VULKAN_HPP_ASSERT( strides.empty() || buffers.size() == strides.size() );
18569 # else
18570 if ( buffers.size() != offsets.size() )
18571 {
18572 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2: buffers.size() != offsets.size()" );
18573 }
18574 if ( !sizes.empty() && buffers.size() != sizes.size() )
18575 {
18576 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2: buffers.size() != sizes.size()" );
18577 }
18578 if ( !strides.empty() && buffers.size() != strides.size() )
18579 {
18580 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2: buffers.size() != strides.size()" );
18581 }
18582 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
18583
18584 getDispatcher()->vkCmdBindVertexBuffers2( static_cast<VkCommandBuffer>( m_commandBuffer ),
18585 firstBinding,
18586 buffers.size(),
18587 reinterpret_cast<VkBuffer const *>( buffers.data() ),
18588 reinterpret_cast<VkDeviceSize const *>( offsets.data() ),
18589 reinterpret_cast<VkDeviceSize const *>( sizes.data() ),
18590 reinterpret_cast<VkDeviceSize const *>( strides.data() ) );
18591 }
18592
18593 // wrapper function for command vkCmdSetDepthTestEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthTestEnable.html
18594 VULKAN_HPP_INLINE void CommandBuffer::setDepthTestEnable( Bool32 depthTestEnable ) const VULKAN_HPP_NOEXCEPT
18595 {
18596 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthTestEnable &&
18597 "Function <vkCmdSetDepthTestEnable> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18598
18599 getDispatcher()->vkCmdSetDepthTestEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthTestEnable ) );
18600 }
18601
18602 // wrapper function for command vkCmdSetDepthWriteEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthWriteEnable.html
18603 VULKAN_HPP_INLINE void CommandBuffer::setDepthWriteEnable( Bool32 depthWriteEnable ) const VULKAN_HPP_NOEXCEPT
18604 {
18605 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthWriteEnable &&
18606 "Function <vkCmdSetDepthWriteEnable> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18607
18608 getDispatcher()->vkCmdSetDepthWriteEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthWriteEnable ) );
18609 }
18610
18611 // wrapper function for command vkCmdSetDepthCompareOp, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthCompareOp.html
18612 VULKAN_HPP_INLINE void CommandBuffer::setDepthCompareOp( CompareOp depthCompareOp ) const VULKAN_HPP_NOEXCEPT
18613 {
18614 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthCompareOp &&
18615 "Function <vkCmdSetDepthCompareOp> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18616
18617 getDispatcher()->vkCmdSetDepthCompareOp( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCompareOp>( depthCompareOp ) );
18618 }
18619
18620 // wrapper function for command vkCmdSetDepthBoundsTestEnable, see
18621 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBoundsTestEnable.html
18622 VULKAN_HPP_INLINE void CommandBuffer::setDepthBoundsTestEnable( Bool32 depthBoundsTestEnable ) const VULKAN_HPP_NOEXCEPT
18623 {
18624 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthBoundsTestEnable &&
18625 "Function <vkCmdSetDepthBoundsTestEnable> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18626
18627 getDispatcher()->vkCmdSetDepthBoundsTestEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBoundsTestEnable ) );
18628 }
18629
18630 // wrapper function for command vkCmdSetStencilTestEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilTestEnable.html
18631 VULKAN_HPP_INLINE void CommandBuffer::setStencilTestEnable( Bool32 stencilTestEnable ) const VULKAN_HPP_NOEXCEPT
18632 {
18633 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetStencilTestEnable &&
18634 "Function <vkCmdSetStencilTestEnable> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18635
18636 getDispatcher()->vkCmdSetStencilTestEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( stencilTestEnable ) );
18637 }
18638
18639 // wrapper function for command vkCmdSetStencilOp, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilOp.html
18640 VULKAN_HPP_INLINE void CommandBuffer::setStencilOp(
18641 StencilFaceFlags faceMask, StencilOp failOp, StencilOp passOp, StencilOp depthFailOp, CompareOp compareOp ) const VULKAN_HPP_NOEXCEPT
18642 {
18643 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetStencilOp &&
18644 "Function <vkCmdSetStencilOp> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18645
18646 getDispatcher()->vkCmdSetStencilOp( static_cast<VkCommandBuffer>( m_commandBuffer ),
18647 static_cast<VkStencilFaceFlags>( faceMask ),
18648 static_cast<VkStencilOp>( failOp ),
18649 static_cast<VkStencilOp>( passOp ),
18650 static_cast<VkStencilOp>( depthFailOp ),
18651 static_cast<VkCompareOp>( compareOp ) );
18652 }
18653
18654 // wrapper function for command vkCmdSetRasterizerDiscardEnable, see
18655 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizerDiscardEnable.html
18656 VULKAN_HPP_INLINE void CommandBuffer::setRasterizerDiscardEnable( Bool32 rasterizerDiscardEnable ) const VULKAN_HPP_NOEXCEPT
18657 {
18658 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetRasterizerDiscardEnable &&
18659 "Function <vkCmdSetRasterizerDiscardEnable> requires <VK_EXT_extended_dynamic_state2> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18660
18661 getDispatcher()->vkCmdSetRasterizerDiscardEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( rasterizerDiscardEnable ) );
18662 }
18663
18664 // wrapper function for command vkCmdSetDepthBiasEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBiasEnable.html
18665 VULKAN_HPP_INLINE void CommandBuffer::setDepthBiasEnable( Bool32 depthBiasEnable ) const VULKAN_HPP_NOEXCEPT
18666 {
18667 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthBiasEnable &&
18668 "Function <vkCmdSetDepthBiasEnable> requires <VK_EXT_extended_dynamic_state2> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18669
18670 getDispatcher()->vkCmdSetDepthBiasEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBiasEnable ) );
18671 }
18672
18673 // wrapper function for command vkCmdSetPrimitiveRestartEnable, see
18674 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveRestartEnable.html
18675 VULKAN_HPP_INLINE void CommandBuffer::setPrimitiveRestartEnable( Bool32 primitiveRestartEnable ) const VULKAN_HPP_NOEXCEPT
18676 {
18677 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetPrimitiveRestartEnable &&
18678 "Function <vkCmdSetPrimitiveRestartEnable> requires <VK_EXT_extended_dynamic_state2> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
18679
18680 getDispatcher()->vkCmdSetPrimitiveRestartEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( primitiveRestartEnable ) );
18681 }
18682
18683 //=== VK_VERSION_1_4 ===
18684
18685 // wrapper function for command vkMapMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory2.html
18686 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<void *>::type Device::mapMemory2( MemoryMapInfo const & memoryMapInfo ) const
18687 {
18688 VULKAN_HPP_ASSERT( getDispatcher()->vkMapMemory2 && "Function <vkMapMemory2> requires <VK_KHR_map_memory2> or <VK_VERSION_1_4>" );
18689
18690 void * pData;
18691 Result result = static_cast<Result>(
18692 getDispatcher()->vkMapMemory2( static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryMapInfo const *>( &memoryMapInfo ), &pData ) );
18693 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::mapMemory2" );
18694
18695 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( pData ) );
18696 }
18697
18698 // wrapper function for command vkUnmapMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory2.html
18699 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::unmapMemory2( MemoryUnmapInfo const & memoryUnmapInfo ) const
18700 {
18701 VULKAN_HPP_ASSERT( getDispatcher()->vkUnmapMemory2 && "Function <vkUnmapMemory2> requires <VK_KHR_map_memory2> or <VK_VERSION_1_4>" );
18702
18703 Result result = static_cast<Result>(
18704 getDispatcher()->vkUnmapMemory2( static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryUnmapInfo const *>( &memoryUnmapInfo ) ) );
18705 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::unmapMemory2" );
18706
18707 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
18708 }
18709
18710 // wrapper function for command vkGetDeviceImageSubresourceLayout, see
18711 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayout.html
18712 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2
18713 Device::getImageSubresourceLayout( DeviceImageSubresourceInfo const & info ) const VULKAN_HPP_NOEXCEPT
18714 {
18715 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceImageSubresourceLayout &&
18716 "Function <vkGetDeviceImageSubresourceLayout> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
18717
18718 SubresourceLayout2 layout;
18719 getDispatcher()->vkGetDeviceImageSubresourceLayout( static_cast<VkDevice>( m_device ),
18720 reinterpret_cast<VkDeviceImageSubresourceInfo const *>( &info ),
18721 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
18722
18723 return layout;
18724 }
18725
18726 // wrapper function for command vkGetDeviceImageSubresourceLayout, see
18727 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayout.html
18728 template <typename X, typename Y, typename... Z>
18729 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
18730 Device::getImageSubresourceLayout( DeviceImageSubresourceInfo const & info ) const VULKAN_HPP_NOEXCEPT
18731 {
18732 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceImageSubresourceLayout &&
18733 "Function <vkGetDeviceImageSubresourceLayout> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
18734
18735 StructureChain<X, Y, Z...> structureChain;
18736 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
18737 getDispatcher()->vkGetDeviceImageSubresourceLayout( static_cast<VkDevice>( m_device ),
18738 reinterpret_cast<VkDeviceImageSubresourceInfo const *>( &info ),
18739 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
18740
18741 return structureChain;
18742 }
18743
18744 // wrapper function for command vkGetImageSubresourceLayout2, see
18745 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2.html
18746 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Image::getSubresourceLayout2( ImageSubresource2 const & subresource ) const VULKAN_HPP_NOEXCEPT
18747 {
18748 VULKAN_HPP_ASSERT(
18749 getDispatcher()->vkGetImageSubresourceLayout2 &&
18750 "Function <vkGetImageSubresourceLayout2> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
18751
18752 SubresourceLayout2 layout;
18753 getDispatcher()->vkGetImageSubresourceLayout2( static_cast<VkDevice>( m_device ),
18754 static_cast<VkImage>( m_image ),
18755 reinterpret_cast<VkImageSubresource2 const *>( &subresource ),
18756 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
18757
18758 return layout;
18759 }
18760
18761 // wrapper function for command vkGetImageSubresourceLayout2, see
18762 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2.html
18763 template <typename X, typename Y, typename... Z>
18764 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
18765 Image::getSubresourceLayout2( ImageSubresource2 const & subresource ) const VULKAN_HPP_NOEXCEPT
18766 {
18767 VULKAN_HPP_ASSERT(
18768 getDispatcher()->vkGetImageSubresourceLayout2 &&
18769 "Function <vkGetImageSubresourceLayout2> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
18770
18771 StructureChain<X, Y, Z...> structureChain;
18772 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
18773 getDispatcher()->vkGetImageSubresourceLayout2( static_cast<VkDevice>( m_device ),
18774 static_cast<VkImage>( m_image ),
18775 reinterpret_cast<VkImageSubresource2 const *>( &subresource ),
18776 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
18777
18778 return structureChain;
18779 }
18780
18781 // wrapper function for command vkCopyMemoryToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImage.html
18782 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::copyMemoryToImage( CopyMemoryToImageInfo const & copyMemoryToImageInfo ) const
18783 {
18784 VULKAN_HPP_ASSERT( getDispatcher()->vkCopyMemoryToImage && "Function <vkCopyMemoryToImage> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
18785
18786 Result result = static_cast<Result>( getDispatcher()->vkCopyMemoryToImage(
18787 static_cast<VkDevice>( m_device ), reinterpret_cast<VkCopyMemoryToImageInfo const *>( &copyMemoryToImageInfo ) ) );
18788 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::copyMemoryToImage" );
18789
18790 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
18791 }
18792
18793 // wrapper function for command vkCopyImageToMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToMemory.html
18794 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::copyImageToMemory( CopyImageToMemoryInfo const & copyImageToMemoryInfo ) const
18795 {
18796 VULKAN_HPP_ASSERT( getDispatcher()->vkCopyImageToMemory && "Function <vkCopyImageToMemory> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
18797
18798 Result result = static_cast<Result>( getDispatcher()->vkCopyImageToMemory(
18799 static_cast<VkDevice>( m_device ), reinterpret_cast<VkCopyImageToMemoryInfo const *>( &copyImageToMemoryInfo ) ) );
18800 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::copyImageToMemory" );
18801
18802 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
18803 }
18804
18805 // wrapper function for command vkCopyImageToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToImage.html
18806 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::copyImageToImage( CopyImageToImageInfo const & copyImageToImageInfo ) const
18807 {
18808 VULKAN_HPP_ASSERT( getDispatcher()->vkCopyImageToImage && "Function <vkCopyImageToImage> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
18809
18810 Result result = static_cast<Result>(
18811 getDispatcher()->vkCopyImageToImage( static_cast<VkDevice>( m_device ), reinterpret_cast<VkCopyImageToImageInfo const *>( &copyImageToImageInfo ) ) );
18812 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::copyImageToImage" );
18813
18814 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
18815 }
18816
18817 // wrapper function for command vkTransitionImageLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTransitionImageLayout.html
18818 VULKAN_HPP_INLINE typename ResultValueType<void>::type
18819 Device::transitionImageLayout( ArrayProxy<HostImageLayoutTransitionInfo const> const & transitions ) const
18820 {
18821 VULKAN_HPP_ASSERT( getDispatcher()->vkTransitionImageLayout &&
18822 "Function <vkTransitionImageLayout> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
18823
18824 Result result = static_cast<Result>( getDispatcher()->vkTransitionImageLayout(
18825 static_cast<VkDevice>( m_device ), transitions.size(), reinterpret_cast<VkHostImageLayoutTransitionInfo const *>( transitions.data() ) ) );
18826 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::transitionImageLayout" );
18827
18828 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
18829 }
18830
18831 // wrapper function for command vkCmdPushDescriptorSet, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet.html
18832 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet( PipelineBindPoint pipelineBindPoint,
18833 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
18834 uint32_t set,
18835 ArrayProxy<WriteDescriptorSet const> const & descriptorWrites ) const VULKAN_HPP_NOEXCEPT
18836 {
18837 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPushDescriptorSet && "Function <vkCmdPushDescriptorSet> requires <VK_KHR_push_descriptor> or <VK_VERSION_1_4>" );
18838
18839 getDispatcher()->vkCmdPushDescriptorSet( static_cast<VkCommandBuffer>( m_commandBuffer ),
18840 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
18841 static_cast<VkPipelineLayout>( layout ),
18842 set,
18843 descriptorWrites.size(),
18844 reinterpret_cast<VkWriteDescriptorSet const *>( descriptorWrites.data() ) );
18845 }
18846
18847 // wrapper function for command vkCmdPushDescriptorSetWithTemplate, see
18848 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate.html
18849 template <typename DataType>
18850 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate( VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate descriptorUpdateTemplate,
18851 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
18852 uint32_t set,
18853 DataType const & data ) const VULKAN_HPP_NOEXCEPT
18854 {
18855 VULKAN_HPP_ASSERT(
18856 getDispatcher()->vkCmdPushDescriptorSetWithTemplate &&
18857 "Function <vkCmdPushDescriptorSetWithTemplate> requires <VK_KHR_descriptor_update_template> or <VK_KHR_push_descriptor> or <VK_VERSION_1_4>" );
18858
18859 getDispatcher()->vkCmdPushDescriptorSetWithTemplate( static_cast<VkCommandBuffer>( m_commandBuffer ),
18860 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
18861 static_cast<VkPipelineLayout>( layout ),
18862 set,
18863 reinterpret_cast<void const *>( &data ) );
18864 }
18865
18866 // wrapper function for command vkCmdBindDescriptorSets2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets2.html
18867 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets2( BindDescriptorSetsInfo const & bindDescriptorSetsInfo ) const VULKAN_HPP_NOEXCEPT
18868 {
18869 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindDescriptorSets2 &&
18870 "Function <vkCmdBindDescriptorSets2> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
18871
18872 getDispatcher()->vkCmdBindDescriptorSets2( static_cast<VkCommandBuffer>( m_commandBuffer ),
18873 reinterpret_cast<VkBindDescriptorSetsInfo const *>( &bindDescriptorSetsInfo ) );
18874 }
18875
18876 // wrapper function for command vkCmdPushConstants2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants2.html
18877 VULKAN_HPP_INLINE void CommandBuffer::pushConstants2( PushConstantsInfo const & pushConstantsInfo ) const VULKAN_HPP_NOEXCEPT
18878 {
18879 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPushConstants2 && "Function <vkCmdPushConstants2> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
18880
18881 getDispatcher()->vkCmdPushConstants2( static_cast<VkCommandBuffer>( m_commandBuffer ),
18882 reinterpret_cast<VkPushConstantsInfo const *>( &pushConstantsInfo ) );
18883 }
18884
18885 // wrapper function for command vkCmdPushDescriptorSet2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet2.html
18886 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet2( PushDescriptorSetInfo const & pushDescriptorSetInfo ) const VULKAN_HPP_NOEXCEPT
18887 {
18888 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPushDescriptorSet2 && "Function <vkCmdPushDescriptorSet2> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
18889
18890 getDispatcher()->vkCmdPushDescriptorSet2( static_cast<VkCommandBuffer>( m_commandBuffer ),
18891 reinterpret_cast<VkPushDescriptorSetInfo const *>( &pushDescriptorSetInfo ) );
18892 }
18893
18894 // wrapper function for command vkCmdPushDescriptorSetWithTemplate2, see
18895 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate2.html
18896 VULKAN_HPP_INLINE void
18897 CommandBuffer::pushDescriptorSetWithTemplate2( PushDescriptorSetWithTemplateInfo const & pushDescriptorSetWithTemplateInfo ) const VULKAN_HPP_NOEXCEPT
18898 {
18899 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPushDescriptorSetWithTemplate2 &&
18900 "Function <vkCmdPushDescriptorSetWithTemplate2> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
18901
18902 getDispatcher()->vkCmdPushDescriptorSetWithTemplate2(
18903 static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkPushDescriptorSetWithTemplateInfo const *>( &pushDescriptorSetWithTemplateInfo ) );
18904 }
18905
18906 // wrapper function for command vkCmdSetLineStipple, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStipple.html
18907 VULKAN_HPP_INLINE void CommandBuffer::setLineStipple( uint32_t lineStippleFactor, uint16_t lineStipplePattern ) const VULKAN_HPP_NOEXCEPT
18908 {
18909 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetLineStipple &&
18910 "Function <vkCmdSetLineStipple> requires <VK_EXT_line_rasterization> or <VK_KHR_line_rasterization> or <VK_VERSION_1_4>" );
18911
18912 getDispatcher()->vkCmdSetLineStipple( static_cast<VkCommandBuffer>( m_commandBuffer ), lineStippleFactor, lineStipplePattern );
18913 }
18914
18915 // wrapper function for command vkCmdBindIndexBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer2.html
18916 VULKAN_HPP_INLINE void
18917 CommandBuffer::bindIndexBuffer2( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset, DeviceSize size, IndexType indexType ) const VULKAN_HPP_NOEXCEPT
18918 {
18919 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindIndexBuffer2 && "Function <vkCmdBindIndexBuffer2> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
18920
18921 getDispatcher()->vkCmdBindIndexBuffer2( static_cast<VkCommandBuffer>( m_commandBuffer ),
18922 static_cast<VkBuffer>( buffer ),
18923 static_cast<VkDeviceSize>( offset ),
18924 static_cast<VkDeviceSize>( size ),
18925 static_cast<VkIndexType>( indexType ) );
18926 }
18927
18928 // wrapper function for command vkGetRenderingAreaGranularity, see
18929 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderingAreaGranularity.html
18930 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Extent2D Device::getRenderingAreaGranularity( RenderingAreaInfo const & renderingAreaInfo ) const VULKAN_HPP_NOEXCEPT
18931 {
18932 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRenderingAreaGranularity &&
18933 "Function <vkGetRenderingAreaGranularity> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
18934
18935 Extent2D granularity;
18936 getDispatcher()->vkGetRenderingAreaGranularity( static_cast<VkDevice>( m_device ),
18937 reinterpret_cast<VkRenderingAreaInfo const *>( &renderingAreaInfo ),
18938 reinterpret_cast<VkExtent2D *>( &granularity ) );
18939
18940 return granularity;
18941 }
18942
18943 // wrapper function for command vkCmdSetRenderingAttachmentLocations, see
18944 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingAttachmentLocations.html
18945 VULKAN_HPP_INLINE void CommandBuffer::setRenderingAttachmentLocations( RenderingAttachmentLocationInfo const & locationInfo ) const VULKAN_HPP_NOEXCEPT
18946 {
18947 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetRenderingAttachmentLocations &&
18948 "Function <vkCmdSetRenderingAttachmentLocations> requires <VK_KHR_dynamic_rendering_local_read> or <VK_VERSION_1_4>" );
18949
18950 getDispatcher()->vkCmdSetRenderingAttachmentLocations( static_cast<VkCommandBuffer>( m_commandBuffer ),
18951 reinterpret_cast<VkRenderingAttachmentLocationInfo const *>( &locationInfo ) );
18952 }
18953
18954 // wrapper function for command vkCmdSetRenderingInputAttachmentIndices, see
18955 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingInputAttachmentIndices.html
18956 VULKAN_HPP_INLINE void
18957 CommandBuffer::setRenderingInputAttachmentIndices( RenderingInputAttachmentIndexInfo const & inputAttachmentIndexInfo ) const VULKAN_HPP_NOEXCEPT
18958 {
18959 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetRenderingInputAttachmentIndices &&
18960 "Function <vkCmdSetRenderingInputAttachmentIndices> requires <VK_KHR_dynamic_rendering_local_read> or <VK_VERSION_1_4>" );
18961
18962 getDispatcher()->vkCmdSetRenderingInputAttachmentIndices( static_cast<VkCommandBuffer>( m_commandBuffer ),
18963 reinterpret_cast<VkRenderingInputAttachmentIndexInfo const *>( &inputAttachmentIndexInfo ) );
18964 }
18965
18966 //=== VK_KHR_surface ===
18967
18968 // wrapper function for command vkGetPhysicalDeviceSurfaceSupportKHR, see
18969 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceSupportKHR.html
18970 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Bool32>::type
18971 PhysicalDevice::getSurfaceSupportKHR( uint32_t queueFamilyIndex, VULKAN_HPP_NAMESPACE::SurfaceKHR surface ) const
18972 {
18973 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSurfaceSupportKHR && "Function <vkGetPhysicalDeviceSurfaceSupportKHR> requires <VK_KHR_surface>" );
18974
18975 Bool32 supported;
18976 Result result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceSurfaceSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
18977 queueFamilyIndex,
18978 static_cast<VkSurfaceKHR>( surface ),
18979 reinterpret_cast<VkBool32 *>( &supported ) ) );
18980 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getSurfaceSupportKHR" );
18981
18982 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( supported ) );
18983 }
18984
18985 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilitiesKHR, see
18986 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilitiesKHR.html
18987 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceCapabilitiesKHR>::type
18988 PhysicalDevice::getSurfaceCapabilitiesKHR( VULKAN_HPP_NAMESPACE::SurfaceKHR surface ) const
18989 {
18990 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilitiesKHR &&
18991 "Function <vkGetPhysicalDeviceSurfaceCapabilitiesKHR> requires <VK_KHR_surface>" );
18992
18993 SurfaceCapabilitiesKHR surfaceCapabilities;
18994 Result result = static_cast<Result>(
18995 getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
18996 static_cast<VkSurfaceKHR>( surface ),
18997 reinterpret_cast<VkSurfaceCapabilitiesKHR *>( &surfaceCapabilities ) ) );
18998 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilitiesKHR" );
18999
19000 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( surfaceCapabilities ) );
19001 }
19002
19003 // wrapper function for command vkGetPhysicalDeviceSurfaceFormatsKHR, see
19004 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormatsKHR.html
19005 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SurfaceFormatKHR>>::type
19006 PhysicalDevice::getSurfaceFormatsKHR( VULKAN_HPP_NAMESPACE::SurfaceKHR surface ) const
19007 {
19008 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSurfaceFormatsKHR && "Function <vkGetPhysicalDeviceSurfaceFormatsKHR> requires <VK_KHR_surface>" );
19009
19010 std::vector<SurfaceFormatKHR> surfaceFormats;
19011 uint32_t surfaceFormatCount;
19012 Result result;
19013 do
19014 {
19015 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceSurfaceFormatsKHR(
19016 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkSurfaceKHR>( surface ), &surfaceFormatCount, nullptr ) );
19017 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
19018 {
19019 surfaceFormats.resize( surfaceFormatCount );
19020 result =
19021 static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceSurfaceFormatsKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
19022 static_cast<VkSurfaceKHR>( surface ),
19023 &surfaceFormatCount,
19024 reinterpret_cast<VkSurfaceFormatKHR *>( surfaceFormats.data() ) ) );
19025 }
19026 } while ( result == Result::eIncomplete );
19027 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormatsKHR" );
19028 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
19029 if ( surfaceFormatCount < surfaceFormats.size() )
19030 {
19031 surfaceFormats.resize( surfaceFormatCount );
19032 }
19033 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( surfaceFormats ) );
19034 }
19035
19036 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModesKHR, see
19037 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModesKHR.html
19038 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PresentModeKHR>>::type
19039 PhysicalDevice::getSurfacePresentModesKHR( VULKAN_HPP_NAMESPACE::SurfaceKHR surface ) const
19040 {
19041 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSurfacePresentModesKHR &&
19042 "Function <vkGetPhysicalDeviceSurfacePresentModesKHR> requires <VK_KHR_surface>" );
19043
19044 std::vector<PresentModeKHR> presentModes;
19045 uint32_t presentModeCount;
19046 Result result;
19047 do
19048 {
19049 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceSurfacePresentModesKHR(
19050 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkSurfaceKHR>( surface ), &presentModeCount, nullptr ) );
19051 if ( ( result == Result::eSuccess ) && presentModeCount )
19052 {
19053 presentModes.resize( presentModeCount );
19054 result =
19055 static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceSurfacePresentModesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
19056 static_cast<VkSurfaceKHR>( surface ),
19057 &presentModeCount,
19058 reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
19059 }
19060 } while ( result == Result::eIncomplete );
19061 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModesKHR" );
19062 VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
19063 if ( presentModeCount < presentModes.size() )
19064 {
19065 presentModes.resize( presentModeCount );
19066 }
19067 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( presentModes ) );
19068 }
19069
19070 //=== VK_KHR_swapchain ===
19071
19072 // wrapper function for command vkCreateSwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSwapchainKHR.html
19073 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SwapchainKHR>::type
19074 Device::createSwapchainKHR( SwapchainCreateInfoKHR const & createInfo,
19075 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
19076 {
19077 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateSwapchainKHR && "Function <vkCreateSwapchainKHR> requires <VK_KHR_swapchain>" );
19078
19079 VULKAN_HPP_NAMESPACE::SwapchainKHR swapchain;
19080 Result result = static_cast<Result>( getDispatcher()->vkCreateSwapchainKHR( static_cast<VkDevice>( m_device ),
19081 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( &createInfo ),
19082 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19083 reinterpret_cast<VkSwapchainKHR *>( &swapchain ) ) );
19084 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createSwapchainKHR" );
19085 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SwapchainKHR( *this, *reinterpret_cast<VkSwapchainKHR *>( &swapchain ), allocator ) );
19086 }
19087
19088 // wrapper function for command vkGetSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainImagesKHR.html
19089 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<VULKAN_HPP_NAMESPACE::Image>>::type SwapchainKHR::getImages() const
19090 {
19091 VULKAN_HPP_ASSERT( getDispatcher()->vkGetSwapchainImagesKHR && "Function <vkGetSwapchainImagesKHR> requires <VK_KHR_swapchain>" );
19092
19093 std::vector<VULKAN_HPP_NAMESPACE::Image> swapchainImages;
19094 uint32_t swapchainImageCount;
19095 Result result;
19096 do
19097 {
19098 result = static_cast<Result>( getDispatcher()->vkGetSwapchainImagesKHR(
19099 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchainKHR ), &swapchainImageCount, nullptr ) );
19100 if ( ( result == Result::eSuccess ) && swapchainImageCount )
19101 {
19102 swapchainImages.resize( swapchainImageCount );
19103 result = static_cast<Result>( getDispatcher()->vkGetSwapchainImagesKHR( static_cast<VkDevice>( m_device ),
19104 static_cast<VkSwapchainKHR>( m_swapchainKHR ),
19105 &swapchainImageCount,
19106 reinterpret_cast<VkImage *>( swapchainImages.data() ) ) );
19107 }
19108 } while ( result == Result::eIncomplete );
19109 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::getImages" );
19110 VULKAN_HPP_ASSERT( swapchainImageCount <= swapchainImages.size() );
19111 if ( swapchainImageCount < swapchainImages.size() )
19112 {
19113 swapchainImages.resize( swapchainImageCount );
19114 }
19115 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( swapchainImages ) );
19116 }
19117
19118 // wrapper function for command vkAcquireNextImageKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireNextImageKHR.html
19119 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<uint32_t>
19120 SwapchainKHR::acquireNextImage( uint64_t timeout, VULKAN_HPP_NAMESPACE::Semaphore semaphore, VULKAN_HPP_NAMESPACE::Fence fence ) const
19121 {
19122 VULKAN_HPP_ASSERT( getDispatcher()->vkAcquireNextImageKHR && "Function <vkAcquireNextImageKHR> requires <VK_KHR_swapchain>" );
19123
19124 uint32_t imageIndex;
19125 Result result = static_cast<Result>( getDispatcher()->vkAcquireNextImageKHR( static_cast<VkDevice>( m_device ),
19126 static_cast<VkSwapchainKHR>( m_swapchainKHR ),
19127 timeout,
19128 static_cast<VkSemaphore>( semaphore ),
19129 static_cast<VkFence>( fence ),
19130 &imageIndex ) );
19131
19132 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
19133 VULKAN_HPP_NAMESPACE::detail::resultCheck(
19134 result,
19135 VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::acquireNextImage",
19136 { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
19137 # else
19138 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
19139 VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::acquireNextImage",
19140 { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR } );
19141 # endif
19142
19143 return { result, imageIndex };
19144 }
19145
19146 // wrapper function for command vkQueuePresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueuePresentKHR.html
19147 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::presentKHR( PresentInfoKHR const & presentInfo ) const
19148 {
19149 VULKAN_HPP_ASSERT( getDispatcher()->vkQueuePresentKHR && "Function <vkQueuePresentKHR> requires <VK_KHR_swapchain>" );
19150
19151 Result result = static_cast<Result>(
19152 getDispatcher()->vkQueuePresentKHR( static_cast<VkQueue>( m_queue ), reinterpret_cast<VkPresentInfoKHR const *>( &presentInfo ) ) );
19153
19154 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
19155 VULKAN_HPP_NAMESPACE::detail::resultCheck(
19156 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Queue::presentKHR", { Result::eSuccess, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
19157 # else
19158 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Queue::presentKHR", { Result::eSuccess, Result::eSuboptimalKHR } );
19159 # endif
19160
19161 return static_cast<Result>( result );
19162 }
19163
19164 // wrapper function for command vkGetDeviceGroupPresentCapabilitiesKHR, see
19165 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPresentCapabilitiesKHR.html
19166 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeviceGroupPresentCapabilitiesKHR>::type Device::getGroupPresentCapabilitiesKHR() const
19167 {
19168 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceGroupPresentCapabilitiesKHR &&
19169 "Function <vkGetDeviceGroupPresentCapabilitiesKHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
19170
19171 DeviceGroupPresentCapabilitiesKHR deviceGroupPresentCapabilities;
19172 Result result = static_cast<Result>( getDispatcher()->vkGetDeviceGroupPresentCapabilitiesKHR(
19173 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceGroupPresentCapabilitiesKHR *>( &deviceGroupPresentCapabilities ) ) );
19174 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getGroupPresentCapabilitiesKHR" );
19175
19176 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( deviceGroupPresentCapabilities ) );
19177 }
19178
19179 // wrapper function for command vkGetDeviceGroupSurfacePresentModesKHR, see
19180 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupSurfacePresentModesKHR.html
19181 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeviceGroupPresentModeFlagsKHR>::type
19182 Device::getGroupSurfacePresentModesKHR( VULKAN_HPP_NAMESPACE::SurfaceKHR surface ) const
19183 {
19184 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceGroupSurfacePresentModesKHR &&
19185 "Function <vkGetDeviceGroupSurfacePresentModesKHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
19186
19187 DeviceGroupPresentModeFlagsKHR modes;
19188 Result result = static_cast<Result>( getDispatcher()->vkGetDeviceGroupSurfacePresentModesKHR(
19189 static_cast<VkDevice>( m_device ), static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( &modes ) ) );
19190 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getGroupSurfacePresentModesKHR" );
19191
19192 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( modes ) );
19193 }
19194
19195 // wrapper function for command vkGetPhysicalDevicePresentRectanglesKHR, see
19196 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDevicePresentRectanglesKHR.html
19197 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Rect2D>>::type
19198 PhysicalDevice::getPresentRectanglesKHR( VULKAN_HPP_NAMESPACE::SurfaceKHR surface ) const
19199 {
19200 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDevicePresentRectanglesKHR &&
19201 "Function <vkGetPhysicalDevicePresentRectanglesKHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
19202
19203 std::vector<Rect2D> rects;
19204 uint32_t rectCount;
19205 Result result;
19206 do
19207 {
19208 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDevicePresentRectanglesKHR(
19209 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkSurfaceKHR>( surface ), &rectCount, nullptr ) );
19210 if ( ( result == Result::eSuccess ) && rectCount )
19211 {
19212 rects.resize( rectCount );
19213 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDevicePresentRectanglesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
19214 static_cast<VkSurfaceKHR>( surface ),
19215 &rectCount,
19216 reinterpret_cast<VkRect2D *>( rects.data() ) ) );
19217 }
19218 } while ( result == Result::eIncomplete );
19219 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getPresentRectanglesKHR" );
19220 VULKAN_HPP_ASSERT( rectCount <= rects.size() );
19221 if ( rectCount < rects.size() )
19222 {
19223 rects.resize( rectCount );
19224 }
19225 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( rects ) );
19226 }
19227
19228 // wrapper function for command vkAcquireNextImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireNextImage2KHR.html
19229 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<uint32_t> Device::acquireNextImage2KHR( AcquireNextImageInfoKHR const & acquireInfo ) const
19230 {
19231 VULKAN_HPP_ASSERT( getDispatcher()->vkAcquireNextImage2KHR && "Function <vkAcquireNextImage2KHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
19232
19233 uint32_t imageIndex;
19234 Result result = static_cast<Result>( getDispatcher()->vkAcquireNextImage2KHR(
19235 static_cast<VkDevice>( m_device ), reinterpret_cast<VkAcquireNextImageInfoKHR const *>( &acquireInfo ), &imageIndex ) );
19236
19237 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
19238 VULKAN_HPP_NAMESPACE::detail::resultCheck(
19239 result,
19240 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::acquireNextImage2KHR",
19241 { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
19242 # else
19243 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
19244 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::acquireNextImage2KHR",
19245 { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR } );
19246 # endif
19247
19248 return { result, imageIndex };
19249 }
19250
19251 //=== VK_KHR_display ===
19252
19253 // wrapper function for command vkGetPhysicalDeviceDisplayPropertiesKHR, see
19254 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPropertiesKHR.html
19255 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPropertiesKHR>>::type PhysicalDevice::getDisplayPropertiesKHR() const
19256 {
19257 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceDisplayPropertiesKHR &&
19258 "Function <vkGetPhysicalDeviceDisplayPropertiesKHR> requires <VK_KHR_display>" );
19259
19260 std::vector<DisplayPropertiesKHR> properties;
19261 uint32_t propertyCount;
19262 Result result;
19263 do
19264 {
19265 result = static_cast<Result>(
19266 getDispatcher()->vkGetPhysicalDeviceDisplayPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, nullptr ) );
19267 if ( ( result == Result::eSuccess ) && propertyCount )
19268 {
19269 properties.resize( propertyCount );
19270 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceDisplayPropertiesKHR(
19271 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkDisplayPropertiesKHR *>( properties.data() ) ) );
19272 }
19273 } while ( result == Result::eIncomplete );
19274 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getDisplayPropertiesKHR" );
19275 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
19276 if ( propertyCount < properties.size() )
19277 {
19278 properties.resize( propertyCount );
19279 }
19280 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
19281 }
19282
19283 // wrapper function for command vkGetPhysicalDeviceDisplayPlanePropertiesKHR, see
19284 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlanePropertiesKHR.html
19285 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPlanePropertiesKHR>>::type
19286 PhysicalDevice::getDisplayPlanePropertiesKHR() const
19287 {
19288 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceDisplayPlanePropertiesKHR &&
19289 "Function <vkGetPhysicalDeviceDisplayPlanePropertiesKHR> requires <VK_KHR_display>" );
19290
19291 std::vector<DisplayPlanePropertiesKHR> properties;
19292 uint32_t propertyCount;
19293 Result result;
19294 do
19295 {
19296 result = static_cast<Result>(
19297 getDispatcher()->vkGetPhysicalDeviceDisplayPlanePropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, nullptr ) );
19298 if ( ( result == Result::eSuccess ) && propertyCount )
19299 {
19300 properties.resize( propertyCount );
19301 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
19302 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkDisplayPlanePropertiesKHR *>( properties.data() ) ) );
19303 }
19304 } while ( result == Result::eIncomplete );
19305 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlanePropertiesKHR" );
19306 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
19307 if ( propertyCount < properties.size() )
19308 {
19309 properties.resize( propertyCount );
19310 }
19311 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
19312 }
19313
19314 // wrapper function for command vkGetDisplayPlaneSupportedDisplaysKHR, see
19315 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneSupportedDisplaysKHR.html
19316 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayKHR>>::type
19317 PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR( uint32_t planeIndex ) const
19318 {
19319 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDisplayPlaneSupportedDisplaysKHR &&
19320 "Function <vkGetDisplayPlaneSupportedDisplaysKHR> requires <VK_KHR_display>" );
19321
19322 std::vector<VULKAN_HPP_NAMESPACE::DisplayKHR> displays;
19323 uint32_t displayCount;
19324 Result result;
19325 do
19326 {
19327 result = static_cast<Result>(
19328 getDispatcher()->vkGetDisplayPlaneSupportedDisplaysKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), planeIndex, &displayCount, nullptr ) );
19329 if ( ( result == Result::eSuccess ) && displayCount )
19330 {
19331 displays.resize( displayCount );
19332 result = static_cast<Result>( getDispatcher()->vkGetDisplayPlaneSupportedDisplaysKHR(
19333 static_cast<VkPhysicalDevice>( m_physicalDevice ), planeIndex, &displayCount, reinterpret_cast<VkDisplayKHR *>( displays.data() ) ) );
19334 }
19335 } while ( result == Result::eIncomplete );
19336 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR" );
19337 std::vector<DisplayKHR> displaysRAII;
19338 if ( result == Result::eSuccess )
19339 {
19340 displaysRAII.reserve( displays.size() );
19341 for ( auto & display : displays )
19342 {
19343 displaysRAII.emplace_back( *this, *reinterpret_cast<VkDisplayKHR *>( &display ) );
19344 }
19345 }
19346 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( displaysRAII ) );
19347 }
19348
19349 // wrapper function for command vkGetDisplayModePropertiesKHR, see
19350 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModePropertiesKHR.html
19351 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayModePropertiesKHR>>::type DisplayKHR::getModeProperties() const
19352 {
19353 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDisplayModePropertiesKHR && "Function <vkGetDisplayModePropertiesKHR> requires <VK_KHR_display>" );
19354
19355 std::vector<DisplayModePropertiesKHR> properties;
19356 uint32_t propertyCount;
19357 Result result;
19358 do
19359 {
19360 result = static_cast<Result>( getDispatcher()->vkGetDisplayModePropertiesKHR(
19361 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( m_displayKHR ), &propertyCount, nullptr ) );
19362 if ( ( result == Result::eSuccess ) && propertyCount )
19363 {
19364 properties.resize( propertyCount );
19365 result = static_cast<Result>( getDispatcher()->vkGetDisplayModePropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
19366 static_cast<VkDisplayKHR>( m_displayKHR ),
19367 &propertyCount,
19368 reinterpret_cast<VkDisplayModePropertiesKHR *>( properties.data() ) ) );
19369 }
19370 } while ( result == Result::eIncomplete );
19371 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::DisplayKHR::getModeProperties" );
19372 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
19373 if ( propertyCount < properties.size() )
19374 {
19375 properties.resize( propertyCount );
19376 }
19377 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
19378 }
19379
19380 // wrapper function for command vkCreateDisplayModeKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayModeKHR.html
19381 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayModeKHR>::type
19382 DisplayKHR::createMode( DisplayModeCreateInfoKHR const & createInfo,
19383 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
19384 {
19385 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDisplayModeKHR && "Function <vkCreateDisplayModeKHR> requires <VK_KHR_display>" );
19386
19387 VULKAN_HPP_NAMESPACE::DisplayModeKHR mode;
19388 Result result = static_cast<Result>( getDispatcher()->vkCreateDisplayModeKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
19389 static_cast<VkDisplayKHR>( m_displayKHR ),
19390 reinterpret_cast<VkDisplayModeCreateInfoKHR const *>( &createInfo ),
19391 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19392 reinterpret_cast<VkDisplayModeKHR *>( &mode ) ) );
19393 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::DisplayKHR::createMode" );
19394 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, DisplayModeKHR( *this, *reinterpret_cast<VkDisplayModeKHR *>( &mode ) ) );
19395 }
19396
19397 // wrapper function for command vkGetDisplayPlaneCapabilitiesKHR, see
19398 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneCapabilitiesKHR.html
19399 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayPlaneCapabilitiesKHR>::type
19400 DisplayModeKHR::getDisplayPlaneCapabilities( uint32_t planeIndex ) const
19401 {
19402 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDisplayPlaneCapabilitiesKHR && "Function <vkGetDisplayPlaneCapabilitiesKHR> requires <VK_KHR_display>" );
19403
19404 DisplayPlaneCapabilitiesKHR capabilities;
19405 Result result =
19406 static_cast<Result>( getDispatcher()->vkGetDisplayPlaneCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
19407 static_cast<VkDisplayModeKHR>( m_displayModeKHR ),
19408 planeIndex,
19409 reinterpret_cast<VkDisplayPlaneCapabilitiesKHR *>( &capabilities ) ) );
19410 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::DisplayModeKHR::getDisplayPlaneCapabilities" );
19411
19412 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( capabilities ) );
19413 }
19414
19415 // wrapper function for command vkCreateDisplayPlaneSurfaceKHR, see
19416 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayPlaneSurfaceKHR.html
19417 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
19418 Instance::createDisplayPlaneSurfaceKHR( DisplaySurfaceCreateInfoKHR const & createInfo,
19419 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
19420 {
19421 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDisplayPlaneSurfaceKHR && "Function <vkCreateDisplayPlaneSurfaceKHR> requires <VK_KHR_display>" );
19422
19423 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
19424 Result result =
19425 static_cast<Result>( getDispatcher()->vkCreateDisplayPlaneSurfaceKHR( static_cast<VkInstance>( m_instance ),
19426 reinterpret_cast<VkDisplaySurfaceCreateInfoKHR const *>( &createInfo ),
19427 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19428 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
19429 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createDisplayPlaneSurfaceKHR" );
19430 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
19431 }
19432
19433 //=== VK_KHR_display_swapchain ===
19434
19435 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
19436 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SwapchainKHR>>::type
19437 Device::createSharedSwapchainsKHR( ArrayProxy<SwapchainCreateInfoKHR> const & createInfos, Optional<AllocationCallbacks const> allocator ) const
19438 {
19439 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
19440
19441 std::vector<VULKAN_HPP_NAMESPACE::SwapchainKHR> swapchains( createInfos.size() );
19442 Result result =
19443 static_cast<Result>( getDispatcher()->vkCreateSharedSwapchainsKHR( static_cast<VkDevice>( m_device ),
19444 createInfos.size(),
19445 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( createInfos.data() ),
19446 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19447 reinterpret_cast<VkSwapchainKHR *>( swapchains.data() ) ) );
19448 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createSharedSwapchainsKHR" );
19449 std::vector<SwapchainKHR> swapchainsRAII;
19450 if ( result == Result::eSuccess )
19451 {
19452 swapchainsRAII.reserve( swapchains.size() );
19453 for ( auto & swapchain : swapchains )
19454 {
19455 swapchainsRAII.emplace_back( *this, *reinterpret_cast<VkSwapchainKHR *>( &swapchain ), allocator );
19456 }
19457 }
19458 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( swapchainsRAII ) );
19459 }
19460
19461 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
19462 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SwapchainKHR>::type
19463 Device::createSharedSwapchainKHR( SwapchainCreateInfoKHR const & createInfo,
19464 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
19465 {
19466 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
19467
19468 VULKAN_HPP_NAMESPACE::SwapchainKHR swapchain;
19469 Result result = static_cast<Result>( getDispatcher()->vkCreateSharedSwapchainsKHR( static_cast<VkDevice>( m_device ),
19470 1,
19471 reinterpret_cast<VkSwapchainCreateInfoKHR const *>( &createInfo ),
19472 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19473 reinterpret_cast<VkSwapchainKHR *>( &swapchain ) ) );
19474 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createSharedSwapchainKHR" );
19475 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SwapchainKHR( *this, *reinterpret_cast<VkSwapchainKHR *>( &swapchain ), allocator ) );
19476 }
19477
19478 # if defined( VK_USE_PLATFORM_XLIB_KHR )
19479 //=== VK_KHR_xlib_surface ===
19480
19481 // wrapper function for command vkCreateXlibSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXlibSurfaceKHR.html
19482 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
19483 Instance::createXlibSurfaceKHR( XlibSurfaceCreateInfoKHR const & createInfo,
19484 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
19485 {
19486 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateXlibSurfaceKHR && "Function <vkCreateXlibSurfaceKHR> requires <VK_KHR_xlib_surface>" );
19487
19488 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
19489 Result result = static_cast<Result>( getDispatcher()->vkCreateXlibSurfaceKHR( static_cast<VkInstance>( m_instance ),
19490 reinterpret_cast<VkXlibSurfaceCreateInfoKHR const *>( &createInfo ),
19491 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19492 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
19493 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createXlibSurfaceKHR" );
19494 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
19495 }
19496
19497 // wrapper function for command vkGetPhysicalDeviceXlibPresentationSupportKHR, see
19498 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceXlibPresentationSupportKHR.html
19499 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Bool32 PhysicalDevice::getXlibPresentationSupportKHR( uint32_t queueFamilyIndex,
19500 Display & dpy,
19501 VisualID visualID ) const VULKAN_HPP_NOEXCEPT
19502 {
19503 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceXlibPresentationSupportKHR &&
19504 "Function <vkGetPhysicalDeviceXlibPresentationSupportKHR> requires <VK_KHR_xlib_surface>" );
19505
19506 VkBool32 result =
19507 getDispatcher()->vkGetPhysicalDeviceXlibPresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &dpy, visualID );
19508
19509 return static_cast<Bool32>( result );
19510 }
19511 # endif /*VK_USE_PLATFORM_XLIB_KHR*/
19512
19513 # if defined( VK_USE_PLATFORM_XCB_KHR )
19514 //=== VK_KHR_xcb_surface ===
19515
19516 // wrapper function for command vkCreateXcbSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXcbSurfaceKHR.html
19517 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
19518 Instance::createXcbSurfaceKHR( XcbSurfaceCreateInfoKHR const & createInfo,
19519 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
19520 {
19521 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateXcbSurfaceKHR && "Function <vkCreateXcbSurfaceKHR> requires <VK_KHR_xcb_surface>" );
19522
19523 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
19524 Result result = static_cast<Result>( getDispatcher()->vkCreateXcbSurfaceKHR( static_cast<VkInstance>( m_instance ),
19525 reinterpret_cast<VkXcbSurfaceCreateInfoKHR const *>( &createInfo ),
19526 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19527 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
19528 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createXcbSurfaceKHR" );
19529 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
19530 }
19531
19532 // wrapper function for command vkGetPhysicalDeviceXcbPresentationSupportKHR, see
19533 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceXcbPresentationSupportKHR.html
19534 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Bool32 PhysicalDevice::getXcbPresentationSupportKHR( uint32_t queueFamilyIndex,
19535 xcb_connection_t & connection,
19536 xcb_visualid_t visual_id ) const VULKAN_HPP_NOEXCEPT
19537 {
19538 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceXcbPresentationSupportKHR &&
19539 "Function <vkGetPhysicalDeviceXcbPresentationSupportKHR> requires <VK_KHR_xcb_surface>" );
19540
19541 VkBool32 result = getDispatcher()->vkGetPhysicalDeviceXcbPresentationSupportKHR(
19542 static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &connection, visual_id );
19543
19544 return static_cast<Bool32>( result );
19545 }
19546 # endif /*VK_USE_PLATFORM_XCB_KHR*/
19547
19548 # if defined( VK_USE_PLATFORM_WAYLAND_KHR )
19549 //=== VK_KHR_wayland_surface ===
19550
19551 // wrapper function for command vkCreateWaylandSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWaylandSurfaceKHR.html
19552 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
19553 Instance::createWaylandSurfaceKHR( WaylandSurfaceCreateInfoKHR const & createInfo,
19554 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
19555 {
19556 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateWaylandSurfaceKHR && "Function <vkCreateWaylandSurfaceKHR> requires <VK_KHR_wayland_surface>" );
19557
19558 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
19559 Result result = static_cast<Result>( getDispatcher()->vkCreateWaylandSurfaceKHR( static_cast<VkInstance>( m_instance ),
19560 reinterpret_cast<VkWaylandSurfaceCreateInfoKHR const *>( &createInfo ),
19561 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19562 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
19563 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createWaylandSurfaceKHR" );
19564 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
19565 }
19566
19567 // wrapper function for command vkGetPhysicalDeviceWaylandPresentationSupportKHR, see
19568 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceWaylandPresentationSupportKHR.html
19569 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Bool32 PhysicalDevice::getWaylandPresentationSupportKHR( uint32_t queueFamilyIndex,
19570 struct wl_display & display ) const VULKAN_HPP_NOEXCEPT
19571 {
19572 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceWaylandPresentationSupportKHR &&
19573 "Function <vkGetPhysicalDeviceWaylandPresentationSupportKHR> requires <VK_KHR_wayland_surface>" );
19574
19575 VkBool32 result =
19576 getDispatcher()->vkGetPhysicalDeviceWaylandPresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &display );
19577
19578 return static_cast<Bool32>( result );
19579 }
19580 # endif /*VK_USE_PLATFORM_WAYLAND_KHR*/
19581
19582 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
19583 //=== VK_KHR_android_surface ===
19584
19585 // wrapper function for command vkCreateAndroidSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAndroidSurfaceKHR.html
19586 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
19587 Instance::createAndroidSurfaceKHR( AndroidSurfaceCreateInfoKHR const & createInfo,
19588 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
19589 {
19590 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateAndroidSurfaceKHR && "Function <vkCreateAndroidSurfaceKHR> requires <VK_KHR_android_surface>" );
19591
19592 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
19593 Result result = static_cast<Result>( getDispatcher()->vkCreateAndroidSurfaceKHR( static_cast<VkInstance>( m_instance ),
19594 reinterpret_cast<VkAndroidSurfaceCreateInfoKHR const *>( &createInfo ),
19595 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19596 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
19597 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createAndroidSurfaceKHR" );
19598 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
19599 }
19600 # endif /*VK_USE_PLATFORM_ANDROID_KHR*/
19601
19602 # if defined( VK_USE_PLATFORM_WIN32_KHR )
19603 //=== VK_KHR_win32_surface ===
19604
19605 // wrapper function for command vkCreateWin32SurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWin32SurfaceKHR.html
19606 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
19607 Instance::createWin32SurfaceKHR( Win32SurfaceCreateInfoKHR const & createInfo,
19608 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
19609 {
19610 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateWin32SurfaceKHR && "Function <vkCreateWin32SurfaceKHR> requires <VK_KHR_win32_surface>" );
19611
19612 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
19613 Result result = static_cast<Result>( getDispatcher()->vkCreateWin32SurfaceKHR( static_cast<VkInstance>( m_instance ),
19614 reinterpret_cast<VkWin32SurfaceCreateInfoKHR const *>( &createInfo ),
19615 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19616 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
19617 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createWin32SurfaceKHR" );
19618 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
19619 }
19620
19621 // wrapper function for command vkGetPhysicalDeviceWin32PresentationSupportKHR, see
19622 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceWin32PresentationSupportKHR.html
19623 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Bool32 PhysicalDevice::getWin32PresentationSupportKHR( uint32_t queueFamilyIndex ) const VULKAN_HPP_NOEXCEPT
19624 {
19625 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceWin32PresentationSupportKHR &&
19626 "Function <vkGetPhysicalDeviceWin32PresentationSupportKHR> requires <VK_KHR_win32_surface>" );
19627
19628 VkBool32 result = getDispatcher()->vkGetPhysicalDeviceWin32PresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex );
19629
19630 return static_cast<Bool32>( result );
19631 }
19632 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
19633
19634 //=== VK_EXT_debug_report ===
19635
19636 // wrapper function for command vkCreateDebugReportCallbackEXT, see
19637 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugReportCallbackEXT.html
19638 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DebugReportCallbackEXT>::type
19639 Instance::createDebugReportCallbackEXT( DebugReportCallbackCreateInfoEXT const & createInfo,
19640 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
19641 {
19642 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDebugReportCallbackEXT && "Function <vkCreateDebugReportCallbackEXT> requires <VK_EXT_debug_report>" );
19643
19644 VULKAN_HPP_NAMESPACE::DebugReportCallbackEXT callback;
19645 Result result =
19646 static_cast<Result>( getDispatcher()->vkCreateDebugReportCallbackEXT( static_cast<VkInstance>( m_instance ),
19647 reinterpret_cast<VkDebugReportCallbackCreateInfoEXT const *>( &createInfo ),
19648 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19649 reinterpret_cast<VkDebugReportCallbackEXT *>( &callback ) ) );
19650 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createDebugReportCallbackEXT" );
19651 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
19652 result, DebugReportCallbackEXT( *this, *reinterpret_cast<VkDebugReportCallbackEXT *>( &callback ), allocator ) );
19653 }
19654
19655 // wrapper function for command vkDebugReportMessageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugReportMessageEXT.html
19656 VULKAN_HPP_INLINE void Instance::debugReportMessageEXT( DebugReportFlagsEXT flags,
19657 DebugReportObjectTypeEXT objectType_,
19658 uint64_t object,
19659 size_t location,
19660 int32_t messageCode,
19661 std::string const & layerPrefix,
19662 std::string const & message ) const VULKAN_HPP_NOEXCEPT
19663 {
19664 VULKAN_HPP_ASSERT( getDispatcher()->vkDebugReportMessageEXT && "Function <vkDebugReportMessageEXT> requires <VK_EXT_debug_report>" );
19665
19666 getDispatcher()->vkDebugReportMessageEXT( static_cast<VkInstance>( m_instance ),
19667 static_cast<VkDebugReportFlagsEXT>( flags ),
19668 static_cast<VkDebugReportObjectTypeEXT>( objectType_ ),
19669 object,
19670 location,
19671 messageCode,
19672 layerPrefix.c_str(),
19673 message.c_str() );
19674 }
19675
19676 //=== VK_EXT_debug_marker ===
19677
19678 // wrapper function for command vkDebugMarkerSetObjectTagEXT, see
19679 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugMarkerSetObjectTagEXT.html
19680 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::debugMarkerSetObjectTagEXT( DebugMarkerObjectTagInfoEXT const & tagInfo ) const
19681 {
19682 VULKAN_HPP_ASSERT( getDispatcher()->vkDebugMarkerSetObjectTagEXT && "Function <vkDebugMarkerSetObjectTagEXT> requires <VK_EXT_debug_marker>" );
19683
19684 Result result = static_cast<Result>( getDispatcher()->vkDebugMarkerSetObjectTagEXT(
19685 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDebugMarkerObjectTagInfoEXT const *>( &tagInfo ) ) );
19686 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::debugMarkerSetObjectTagEXT" );
19687
19688 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
19689 }
19690
19691 // wrapper function for command vkDebugMarkerSetObjectNameEXT, see
19692 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugMarkerSetObjectNameEXT.html
19693 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::debugMarkerSetObjectNameEXT( DebugMarkerObjectNameInfoEXT const & nameInfo ) const
19694 {
19695 VULKAN_HPP_ASSERT( getDispatcher()->vkDebugMarkerSetObjectNameEXT && "Function <vkDebugMarkerSetObjectNameEXT> requires <VK_EXT_debug_marker>" );
19696
19697 Result result = static_cast<Result>( getDispatcher()->vkDebugMarkerSetObjectNameEXT(
19698 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDebugMarkerObjectNameInfoEXT const *>( &nameInfo ) ) );
19699 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::debugMarkerSetObjectNameEXT" );
19700
19701 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
19702 }
19703
19704 // wrapper function for command vkCmdDebugMarkerBeginEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerBeginEXT.html
19705 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerBeginEXT( DebugMarkerMarkerInfoEXT const & markerInfo ) const VULKAN_HPP_NOEXCEPT
19706 {
19707 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDebugMarkerBeginEXT && "Function <vkCmdDebugMarkerBeginEXT> requires <VK_EXT_debug_marker>" );
19708
19709 getDispatcher()->vkCmdDebugMarkerBeginEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
19710 reinterpret_cast<VkDebugMarkerMarkerInfoEXT const *>( &markerInfo ) );
19711 }
19712
19713 // wrapper function for command vkCmdDebugMarkerEndEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerEndEXT.html
19714 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerEndEXT() const VULKAN_HPP_NOEXCEPT
19715 {
19716 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDebugMarkerEndEXT && "Function <vkCmdDebugMarkerEndEXT> requires <VK_EXT_debug_marker>" );
19717
19718 getDispatcher()->vkCmdDebugMarkerEndEXT( static_cast<VkCommandBuffer>( m_commandBuffer ) );
19719 }
19720
19721 // wrapper function for command vkCmdDebugMarkerInsertEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerInsertEXT.html
19722 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerInsertEXT( DebugMarkerMarkerInfoEXT const & markerInfo ) const VULKAN_HPP_NOEXCEPT
19723 {
19724 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDebugMarkerInsertEXT && "Function <vkCmdDebugMarkerInsertEXT> requires <VK_EXT_debug_marker>" );
19725
19726 getDispatcher()->vkCmdDebugMarkerInsertEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
19727 reinterpret_cast<VkDebugMarkerMarkerInfoEXT const *>( &markerInfo ) );
19728 }
19729
19730 //=== VK_KHR_video_queue ===
19731
19732 // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see
19733 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html
19734 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VideoCapabilitiesKHR>::type
19735 PhysicalDevice::getVideoCapabilitiesKHR( VideoProfileInfoKHR const & videoProfile ) const
19736 {
19737 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceVideoCapabilitiesKHR &&
19738 "Function <vkGetPhysicalDeviceVideoCapabilitiesKHR> requires <VK_KHR_video_queue>" );
19739
19740 VideoCapabilitiesKHR capabilities;
19741 Result result =
19742 static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceVideoCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
19743 reinterpret_cast<VkVideoProfileInfoKHR const *>( &videoProfile ),
19744 reinterpret_cast<VkVideoCapabilitiesKHR *>( &capabilities ) ) );
19745 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" );
19746
19747 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( capabilities ) );
19748 }
19749
19750 // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see
19751 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html
19752 template <typename X, typename Y, typename... Z>
19753 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
19754 PhysicalDevice::getVideoCapabilitiesKHR( VideoProfileInfoKHR const & videoProfile ) const
19755 {
19756 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceVideoCapabilitiesKHR &&
19757 "Function <vkGetPhysicalDeviceVideoCapabilitiesKHR> requires <VK_KHR_video_queue>" );
19758
19759 StructureChain<X, Y, Z...> structureChain;
19760 VideoCapabilitiesKHR & capabilities = structureChain.template get<VideoCapabilitiesKHR>();
19761 Result result =
19762 static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceVideoCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
19763 reinterpret_cast<VkVideoProfileInfoKHR const *>( &videoProfile ),
19764 reinterpret_cast<VkVideoCapabilitiesKHR *>( &capabilities ) ) );
19765 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" );
19766
19767 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( structureChain ) );
19768 }
19769
19770 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
19771 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
19772 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<VideoFormatPropertiesKHR>>::type
19773 PhysicalDevice::getVideoFormatPropertiesKHR( PhysicalDeviceVideoFormatInfoKHR const & videoFormatInfo ) const
19774 {
19775 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceVideoFormatPropertiesKHR &&
19776 "Function <vkGetPhysicalDeviceVideoFormatPropertiesKHR> requires <VK_KHR_video_queue>" );
19777
19778 std::vector<VideoFormatPropertiesKHR> videoFormatProperties;
19779 uint32_t videoFormatPropertyCount;
19780 Result result;
19781 do
19782 {
19783 result = static_cast<Result>(
19784 getDispatcher()->vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
19785 reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( &videoFormatInfo ),
19786 &videoFormatPropertyCount,
19787 nullptr ) );
19788 if ( ( result == Result::eSuccess ) && videoFormatPropertyCount )
19789 {
19790 videoFormatProperties.resize( videoFormatPropertyCount );
19791 result = static_cast<Result>(
19792 getDispatcher()->vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
19793 reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( &videoFormatInfo ),
19794 &videoFormatPropertyCount,
19795 reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
19796 }
19797 } while ( result == Result::eIncomplete );
19798 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
19799 VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
19800 if ( videoFormatPropertyCount < videoFormatProperties.size() )
19801 {
19802 videoFormatProperties.resize( videoFormatPropertyCount );
19803 }
19804 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( videoFormatProperties ) );
19805 }
19806
19807 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
19808 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
19809 template <typename StructureChain>
19810 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain>>::type
19811 PhysicalDevice::getVideoFormatPropertiesKHR( PhysicalDeviceVideoFormatInfoKHR const & videoFormatInfo ) const
19812 {
19813 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceVideoFormatPropertiesKHR &&
19814 "Function <vkGetPhysicalDeviceVideoFormatPropertiesKHR> requires <VK_KHR_video_queue>" );
19815
19816 std::vector<StructureChain> structureChains;
19817 std::vector<VideoFormatPropertiesKHR> videoFormatProperties;
19818 uint32_t videoFormatPropertyCount;
19819 Result result;
19820 do
19821 {
19822 result = static_cast<Result>(
19823 getDispatcher()->vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
19824 reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( &videoFormatInfo ),
19825 &videoFormatPropertyCount,
19826 nullptr ) );
19827 if ( ( result == Result::eSuccess ) && videoFormatPropertyCount )
19828 {
19829 structureChains.resize( videoFormatPropertyCount );
19830 videoFormatProperties.resize( videoFormatPropertyCount );
19831 for ( uint32_t i = 0; i < videoFormatPropertyCount; i++ )
19832 {
19833 videoFormatProperties[i].pNext = structureChains[i].template get<VideoFormatPropertiesKHR>().pNext;
19834 }
19835 result = static_cast<Result>(
19836 getDispatcher()->vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
19837 reinterpret_cast<VkPhysicalDeviceVideoFormatInfoKHR const *>( &videoFormatInfo ),
19838 &videoFormatPropertyCount,
19839 reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
19840 }
19841 } while ( result == Result::eIncomplete );
19842 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
19843 VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
19844 if ( videoFormatPropertyCount < videoFormatProperties.size() )
19845 {
19846 structureChains.resize( videoFormatPropertyCount );
19847 }
19848 for ( uint32_t i = 0; i < videoFormatPropertyCount; i++ )
19849 {
19850 structureChains[i].template get<VideoFormatPropertiesKHR>() = videoFormatProperties[i];
19851 }
19852 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( structureChains ) );
19853 }
19854
19855 // wrapper function for command vkCreateVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionKHR.html
19856 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VideoSessionKHR>::type
19857 Device::createVideoSessionKHR( VideoSessionCreateInfoKHR const & createInfo,
19858 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
19859 {
19860 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateVideoSessionKHR && "Function <vkCreateVideoSessionKHR> requires <VK_KHR_video_queue>" );
19861
19862 VULKAN_HPP_NAMESPACE::VideoSessionKHR videoSession;
19863 Result result = static_cast<Result>( getDispatcher()->vkCreateVideoSessionKHR( static_cast<VkDevice>( m_device ),
19864 reinterpret_cast<VkVideoSessionCreateInfoKHR const *>( &createInfo ),
19865 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19866 reinterpret_cast<VkVideoSessionKHR *>( &videoSession ) ) );
19867 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createVideoSessionKHR" );
19868 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
19869 result, VideoSessionKHR( *this, *reinterpret_cast<VkVideoSessionKHR *>( &videoSession ), allocator ) );
19870 }
19871
19872 // wrapper function for command vkGetVideoSessionMemoryRequirementsKHR, see
19873 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetVideoSessionMemoryRequirementsKHR.html
19874 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<VideoSessionMemoryRequirementsKHR>>::type
19875 VideoSessionKHR::getMemoryRequirements() const
19876 {
19877 VULKAN_HPP_ASSERT( getDispatcher()->vkGetVideoSessionMemoryRequirementsKHR &&
19878 "Function <vkGetVideoSessionMemoryRequirementsKHR> requires <VK_KHR_video_queue>" );
19879
19880 std::vector<VideoSessionMemoryRequirementsKHR> memoryRequirements;
19881 uint32_t memoryRequirementsCount;
19882 Result result;
19883 do
19884 {
19885 result = static_cast<Result>( getDispatcher()->vkGetVideoSessionMemoryRequirementsKHR(
19886 static_cast<VkDevice>( m_device ), static_cast<VkVideoSessionKHR>( m_videoSessionKHR ), &memoryRequirementsCount, nullptr ) );
19887 if ( ( result == Result::eSuccess ) && memoryRequirementsCount )
19888 {
19889 memoryRequirements.resize( memoryRequirementsCount );
19890 result = static_cast<Result>(
19891 getDispatcher()->vkGetVideoSessionMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
19892 static_cast<VkVideoSessionKHR>( m_videoSessionKHR ),
19893 &memoryRequirementsCount,
19894 reinterpret_cast<VkVideoSessionMemoryRequirementsKHR *>( memoryRequirements.data() ) ) );
19895 }
19896 } while ( result == Result::eIncomplete );
19897 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::VideoSessionKHR::getMemoryRequirements" );
19898 VULKAN_HPP_ASSERT( memoryRequirementsCount <= memoryRequirements.size() );
19899 if ( memoryRequirementsCount < memoryRequirements.size() )
19900 {
19901 memoryRequirements.resize( memoryRequirementsCount );
19902 }
19903 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( memoryRequirements ) );
19904 }
19905
19906 // wrapper function for command vkBindVideoSessionMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindVideoSessionMemoryKHR.html
19907 VULKAN_HPP_INLINE typename ResultValueType<void>::type
19908 VideoSessionKHR::bindMemory( ArrayProxy<BindVideoSessionMemoryInfoKHR const> const & bindSessionMemoryInfos ) const
19909 {
19910 VULKAN_HPP_ASSERT( getDispatcher()->vkBindVideoSessionMemoryKHR && "Function <vkBindVideoSessionMemoryKHR> requires <VK_KHR_video_queue>" );
19911
19912 Result result = static_cast<Result>(
19913 getDispatcher()->vkBindVideoSessionMemoryKHR( static_cast<VkDevice>( m_device ),
19914 static_cast<VkVideoSessionKHR>( m_videoSessionKHR ),
19915 bindSessionMemoryInfos.size(),
19916 reinterpret_cast<VkBindVideoSessionMemoryInfoKHR const *>( bindSessionMemoryInfos.data() ) ) );
19917 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::VideoSessionKHR::bindMemory" );
19918
19919 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
19920 }
19921
19922 // wrapper function for command vkCreateVideoSessionParametersKHR, see
19923 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionParametersKHR.html
19924 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VideoSessionParametersKHR>::type
19925 Device::createVideoSessionParametersKHR( VideoSessionParametersCreateInfoKHR const & createInfo,
19926 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
19927 {
19928 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateVideoSessionParametersKHR && "Function <vkCreateVideoSessionParametersKHR> requires <VK_KHR_video_queue>" );
19929
19930 VULKAN_HPP_NAMESPACE::VideoSessionParametersKHR videoSessionParameters;
19931 Result result =
19932 static_cast<Result>( getDispatcher()->vkCreateVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
19933 reinterpret_cast<VkVideoSessionParametersCreateInfoKHR const *>( &createInfo ),
19934 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
19935 reinterpret_cast<VkVideoSessionParametersKHR *>( &videoSessionParameters ) ) );
19936 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createVideoSessionParametersKHR" );
19937 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
19938 result, VideoSessionParametersKHR( *this, *reinterpret_cast<VkVideoSessionParametersKHR *>( &videoSessionParameters ), allocator ) );
19939 }
19940
19941 // wrapper function for command vkUpdateVideoSessionParametersKHR, see
19942 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateVideoSessionParametersKHR.html
19943 VULKAN_HPP_INLINE typename ResultValueType<void>::type VideoSessionParametersKHR::update( VideoSessionParametersUpdateInfoKHR const & updateInfo ) const
19944 {
19945 VULKAN_HPP_ASSERT( getDispatcher()->vkUpdateVideoSessionParametersKHR && "Function <vkUpdateVideoSessionParametersKHR> requires <VK_KHR_video_queue>" );
19946
19947 Result result = static_cast<Result>(
19948 getDispatcher()->vkUpdateVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
19949 static_cast<VkVideoSessionParametersKHR>( m_videoSessionParametersKHR ),
19950 reinterpret_cast<VkVideoSessionParametersUpdateInfoKHR const *>( &updateInfo ) ) );
19951 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::VideoSessionParametersKHR::update" );
19952
19953 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
19954 }
19955
19956 // wrapper function for command vkCmdBeginVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginVideoCodingKHR.html
19957 VULKAN_HPP_INLINE void CommandBuffer::beginVideoCodingKHR( VideoBeginCodingInfoKHR const & beginInfo ) const VULKAN_HPP_NOEXCEPT
19958 {
19959 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginVideoCodingKHR && "Function <vkCmdBeginVideoCodingKHR> requires <VK_KHR_video_queue>" );
19960
19961 getDispatcher()->vkCmdBeginVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
19962 reinterpret_cast<VkVideoBeginCodingInfoKHR const *>( &beginInfo ) );
19963 }
19964
19965 // wrapper function for command vkCmdEndVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndVideoCodingKHR.html
19966 VULKAN_HPP_INLINE void CommandBuffer::endVideoCodingKHR( VideoEndCodingInfoKHR const & endCodingInfo ) const VULKAN_HPP_NOEXCEPT
19967 {
19968 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndVideoCodingKHR && "Function <vkCmdEndVideoCodingKHR> requires <VK_KHR_video_queue>" );
19969
19970 getDispatcher()->vkCmdEndVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
19971 reinterpret_cast<VkVideoEndCodingInfoKHR const *>( &endCodingInfo ) );
19972 }
19973
19974 // wrapper function for command vkCmdControlVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdControlVideoCodingKHR.html
19975 VULKAN_HPP_INLINE void CommandBuffer::controlVideoCodingKHR( VideoCodingControlInfoKHR const & codingControlInfo ) const VULKAN_HPP_NOEXCEPT
19976 {
19977 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdControlVideoCodingKHR && "Function <vkCmdControlVideoCodingKHR> requires <VK_KHR_video_queue>" );
19978
19979 getDispatcher()->vkCmdControlVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
19980 reinterpret_cast<VkVideoCodingControlInfoKHR const *>( &codingControlInfo ) );
19981 }
19982
19983 //=== VK_KHR_video_decode_queue ===
19984
19985 // wrapper function for command vkCmdDecodeVideoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecodeVideoKHR.html
19986 VULKAN_HPP_INLINE void CommandBuffer::decodeVideoKHR( VideoDecodeInfoKHR const & decodeInfo ) const VULKAN_HPP_NOEXCEPT
19987 {
19988 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDecodeVideoKHR && "Function <vkCmdDecodeVideoKHR> requires <VK_KHR_video_decode_queue>" );
19989
19990 getDispatcher()->vkCmdDecodeVideoKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkVideoDecodeInfoKHR const *>( &decodeInfo ) );
19991 }
19992
19993 //=== VK_EXT_transform_feedback ===
19994
19995 // wrapper function for command vkCmdBindTransformFeedbackBuffersEXT, see
19996 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTransformFeedbackBuffersEXT.html
19997 VULKAN_HPP_INLINE void CommandBuffer::bindTransformFeedbackBuffersEXT( uint32_t firstBinding,
19998 ArrayProxy<VULKAN_HPP_NAMESPACE::Buffer const> const & buffers,
19999 ArrayProxy<DeviceSize const> const & offsets,
20000 ArrayProxy<DeviceSize const> const & sizes ) const
20001 {
20002 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindTransformFeedbackBuffersEXT &&
20003 "Function <vkCmdBindTransformFeedbackBuffersEXT> requires <VK_EXT_transform_feedback>" );
20004 # ifdef VULKAN_HPP_NO_EXCEPTIONS
20005 VULKAN_HPP_ASSERT( buffers.size() == offsets.size() );
20006 VULKAN_HPP_ASSERT( sizes.empty() || buffers.size() == sizes.size() );
20007 # else
20008 if ( buffers.size() != offsets.size() )
20009 {
20010 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindTransformFeedbackBuffersEXT: buffers.size() != offsets.size()" );
20011 }
20012 if ( !sizes.empty() && buffers.size() != sizes.size() )
20013 {
20014 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindTransformFeedbackBuffersEXT: buffers.size() != sizes.size()" );
20015 }
20016 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
20017
20018 getDispatcher()->vkCmdBindTransformFeedbackBuffersEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
20019 firstBinding,
20020 buffers.size(),
20021 reinterpret_cast<VkBuffer const *>( buffers.data() ),
20022 reinterpret_cast<VkDeviceSize const *>( offsets.data() ),
20023 reinterpret_cast<VkDeviceSize const *>( sizes.data() ) );
20024 }
20025
20026 // wrapper function for command vkCmdBeginTransformFeedbackEXT, see
20027 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginTransformFeedbackEXT.html
20028 VULKAN_HPP_INLINE void CommandBuffer::beginTransformFeedbackEXT( uint32_t firstCounterBuffer,
20029 ArrayProxy<VULKAN_HPP_NAMESPACE::Buffer const> const & counterBuffers,
20030 ArrayProxy<DeviceSize const> const & counterBufferOffsets ) const
20031 {
20032 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginTransformFeedbackEXT && "Function <vkCmdBeginTransformFeedbackEXT> requires <VK_EXT_transform_feedback>" );
20033 # ifdef VULKAN_HPP_NO_EXCEPTIONS
20034 VULKAN_HPP_ASSERT( counterBufferOffsets.empty() || counterBuffers.size() == counterBufferOffsets.size() );
20035 # else
20036 if ( !counterBufferOffsets.empty() && counterBuffers.size() != counterBufferOffsets.size() )
20037 {
20038 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::beginTransformFeedbackEXT: counterBuffers.size() != counterBufferOffsets.size()" );
20039 }
20040 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
20041
20042 getDispatcher()->vkCmdBeginTransformFeedbackEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
20043 firstCounterBuffer,
20044 counterBuffers.size(),
20045 reinterpret_cast<VkBuffer const *>( counterBuffers.data() ),
20046 reinterpret_cast<VkDeviceSize const *>( counterBufferOffsets.data() ) );
20047 }
20048
20049 // wrapper function for command vkCmdEndTransformFeedbackEXT, see
20050 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndTransformFeedbackEXT.html
20051 VULKAN_HPP_INLINE void CommandBuffer::endTransformFeedbackEXT( uint32_t firstCounterBuffer,
20052 ArrayProxy<VULKAN_HPP_NAMESPACE::Buffer const> const & counterBuffers,
20053 ArrayProxy<DeviceSize const> const & counterBufferOffsets ) const
20054 {
20055 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndTransformFeedbackEXT && "Function <vkCmdEndTransformFeedbackEXT> requires <VK_EXT_transform_feedback>" );
20056 # ifdef VULKAN_HPP_NO_EXCEPTIONS
20057 VULKAN_HPP_ASSERT( counterBufferOffsets.empty() || counterBuffers.size() == counterBufferOffsets.size() );
20058 # else
20059 if ( !counterBufferOffsets.empty() && counterBuffers.size() != counterBufferOffsets.size() )
20060 {
20061 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::endTransformFeedbackEXT: counterBuffers.size() != counterBufferOffsets.size()" );
20062 }
20063 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
20064
20065 getDispatcher()->vkCmdEndTransformFeedbackEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
20066 firstCounterBuffer,
20067 counterBuffers.size(),
20068 reinterpret_cast<VkBuffer const *>( counterBuffers.data() ),
20069 reinterpret_cast<VkDeviceSize const *>( counterBufferOffsets.data() ) );
20070 }
20071
20072 // wrapper function for command vkCmdBeginQueryIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginQueryIndexedEXT.html
20073 VULKAN_HPP_INLINE void CommandBuffer::beginQueryIndexedEXT( VULKAN_HPP_NAMESPACE::QueryPool queryPool,
20074 uint32_t query,
20075 QueryControlFlags flags,
20076 uint32_t index ) const VULKAN_HPP_NOEXCEPT
20077 {
20078 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginQueryIndexedEXT && "Function <vkCmdBeginQueryIndexedEXT> requires <VK_EXT_transform_feedback>" );
20079
20080 getDispatcher()->vkCmdBeginQueryIndexedEXT(
20081 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), query, static_cast<VkQueryControlFlags>( flags ), index );
20082 }
20083
20084 // wrapper function for command vkCmdEndQueryIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndQueryIndexedEXT.html
20085 VULKAN_HPP_INLINE void
20086 CommandBuffer::endQueryIndexedEXT( VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t query, uint32_t index ) const VULKAN_HPP_NOEXCEPT
20087 {
20088 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndQueryIndexedEXT && "Function <vkCmdEndQueryIndexedEXT> requires <VK_EXT_transform_feedback>" );
20089
20090 getDispatcher()->vkCmdEndQueryIndexedEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), query, index );
20091 }
20092
20093 // wrapper function for command vkCmdDrawIndirectByteCountEXT, see
20094 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectByteCountEXT.html
20095 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectByteCountEXT( uint32_t instanceCount,
20096 uint32_t firstInstance,
20097 VULKAN_HPP_NAMESPACE::Buffer counterBuffer,
20098 DeviceSize counterBufferOffset,
20099 uint32_t counterOffset,
20100 uint32_t vertexStride ) const VULKAN_HPP_NOEXCEPT
20101 {
20102 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndirectByteCountEXT && "Function <vkCmdDrawIndirectByteCountEXT> requires <VK_EXT_transform_feedback>" );
20103
20104 getDispatcher()->vkCmdDrawIndirectByteCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
20105 instanceCount,
20106 firstInstance,
20107 static_cast<VkBuffer>( counterBuffer ),
20108 static_cast<VkDeviceSize>( counterBufferOffset ),
20109 counterOffset,
20110 vertexStride );
20111 }
20112
20113 //=== VK_NVX_binary_import ===
20114
20115 // wrapper function for command vkCreateCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuModuleNVX.html
20116 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CuModuleNVX>::type
20117 Device::createCuModuleNVX( CuModuleCreateInfoNVX const & createInfo,
20118 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
20119 {
20120 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateCuModuleNVX && "Function <vkCreateCuModuleNVX> requires <VK_NVX_binary_import>" );
20121
20122 VULKAN_HPP_NAMESPACE::CuModuleNVX module;
20123 Result result = static_cast<Result>( getDispatcher()->vkCreateCuModuleNVX( static_cast<VkDevice>( m_device ),
20124 reinterpret_cast<VkCuModuleCreateInfoNVX const *>( &createInfo ),
20125 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
20126 reinterpret_cast<VkCuModuleNVX *>( &module ) ) );
20127 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createCuModuleNVX" );
20128 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, CuModuleNVX( *this, *reinterpret_cast<VkCuModuleNVX *>( &module ), allocator ) );
20129 }
20130
20131 // wrapper function for command vkCreateCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuFunctionNVX.html
20132 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CuFunctionNVX>::type
20133 Device::createCuFunctionNVX( CuFunctionCreateInfoNVX const & createInfo,
20134 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
20135 {
20136 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateCuFunctionNVX && "Function <vkCreateCuFunctionNVX> requires <VK_NVX_binary_import>" );
20137
20138 VULKAN_HPP_NAMESPACE::CuFunctionNVX function;
20139 Result result = static_cast<Result>( getDispatcher()->vkCreateCuFunctionNVX( static_cast<VkDevice>( m_device ),
20140 reinterpret_cast<VkCuFunctionCreateInfoNVX const *>( &createInfo ),
20141 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
20142 reinterpret_cast<VkCuFunctionNVX *>( &function ) ) );
20143 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createCuFunctionNVX" );
20144 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result,
20145 CuFunctionNVX( *this, *reinterpret_cast<VkCuFunctionNVX *>( &function ), allocator ) );
20146 }
20147
20148 // wrapper function for command vkCmdCuLaunchKernelNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCuLaunchKernelNVX.html
20149 VULKAN_HPP_INLINE void CommandBuffer::cuLaunchKernelNVX( CuLaunchInfoNVX const & launchInfo ) const VULKAN_HPP_NOEXCEPT
20150 {
20151 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCuLaunchKernelNVX && "Function <vkCmdCuLaunchKernelNVX> requires <VK_NVX_binary_import>" );
20152
20153 getDispatcher()->vkCmdCuLaunchKernelNVX( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCuLaunchInfoNVX const *>( &launchInfo ) );
20154 }
20155
20156 //=== VK_NVX_image_view_handle ===
20157
20158 // wrapper function for command vkGetImageViewHandleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewHandleNVX.html
20159 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint32_t Device::getImageViewHandleNVX( ImageViewHandleInfoNVX const & info ) const VULKAN_HPP_NOEXCEPT
20160 {
20161 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageViewHandleNVX && "Function <vkGetImageViewHandleNVX> requires <VK_NVX_image_view_handle>" );
20162
20163 uint32_t result =
20164 getDispatcher()->vkGetImageViewHandleNVX( static_cast<VkDevice>( m_device ), reinterpret_cast<VkImageViewHandleInfoNVX const *>( &info ) );
20165
20166 return result;
20167 }
20168
20169 // wrapper function for command vkGetImageViewHandle64NVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewHandle64NVX.html
20170 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint64_t Device::getImageViewHandle64NVX( ImageViewHandleInfoNVX const & info ) const VULKAN_HPP_NOEXCEPT
20171 {
20172 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageViewHandle64NVX && "Function <vkGetImageViewHandle64NVX> requires <VK_NVX_image_view_handle>" );
20173
20174 uint64_t result =
20175 getDispatcher()->vkGetImageViewHandle64NVX( static_cast<VkDevice>( m_device ), reinterpret_cast<VkImageViewHandleInfoNVX const *>( &info ) );
20176
20177 return result;
20178 }
20179
20180 // wrapper function for command vkGetImageViewAddressNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewAddressNVX.html
20181 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageViewAddressPropertiesNVX>::type ImageView::getAddressNVX() const
20182 {
20183 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageViewAddressNVX && "Function <vkGetImageViewAddressNVX> requires <VK_NVX_image_view_handle>" );
20184
20185 ImageViewAddressPropertiesNVX properties;
20186 Result result = static_cast<Result>( getDispatcher()->vkGetImageViewAddressNVX(
20187 static_cast<VkDevice>( m_device ), static_cast<VkImageView>( m_imageView ), reinterpret_cast<VkImageViewAddressPropertiesNVX *>( &properties ) ) );
20188 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::ImageView::getAddressNVX" );
20189
20190 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
20191 }
20192
20193 // wrapper function for command vkGetDeviceCombinedImageSamplerIndexNVX, see
20194 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceCombinedImageSamplerIndexNVX.html
20195 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint64_t Device::getCombinedImageSamplerIndexNVX( uint64_t imageViewIndex,
20196 uint64_t samplerIndex ) const VULKAN_HPP_NOEXCEPT
20197 {
20198 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceCombinedImageSamplerIndexNVX &&
20199 "Function <vkGetDeviceCombinedImageSamplerIndexNVX> requires <VK_NVX_image_view_handle>" );
20200
20201 uint64_t result = getDispatcher()->vkGetDeviceCombinedImageSamplerIndexNVX( static_cast<VkDevice>( m_device ), imageViewIndex, samplerIndex );
20202
20203 return result;
20204 }
20205
20206 //=== VK_AMD_draw_indirect_count ===
20207
20208 // wrapper function for command vkCmdDrawIndirectCountAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCountAMD.html
20209 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectCountAMD( VULKAN_HPP_NAMESPACE::Buffer buffer,
20210 DeviceSize offset,
20211 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
20212 DeviceSize countBufferOffset,
20213 uint32_t maxDrawCount,
20214 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
20215 {
20216 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndirectCountAMD &&
20217 "Function <vkCmdDrawIndirectCountAMD> requires <VK_AMD_draw_indirect_count> or <VK_KHR_draw_indirect_count> or <VK_VERSION_1_2>" );
20218
20219 getDispatcher()->vkCmdDrawIndirectCountAMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
20220 static_cast<VkBuffer>( buffer ),
20221 static_cast<VkDeviceSize>( offset ),
20222 static_cast<VkBuffer>( countBuffer ),
20223 static_cast<VkDeviceSize>( countBufferOffset ),
20224 maxDrawCount,
20225 stride );
20226 }
20227
20228 // wrapper function for command vkCmdDrawIndexedIndirectCountAMD, see
20229 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCountAMD.html
20230 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirectCountAMD( VULKAN_HPP_NAMESPACE::Buffer buffer,
20231 DeviceSize offset,
20232 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
20233 DeviceSize countBufferOffset,
20234 uint32_t maxDrawCount,
20235 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
20236 {
20237 VULKAN_HPP_ASSERT(
20238 getDispatcher()->vkCmdDrawIndexedIndirectCountAMD &&
20239 "Function <vkCmdDrawIndexedIndirectCountAMD> requires <VK_AMD_draw_indirect_count> or <VK_KHR_draw_indirect_count> or <VK_VERSION_1_2>" );
20240
20241 getDispatcher()->vkCmdDrawIndexedIndirectCountAMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
20242 static_cast<VkBuffer>( buffer ),
20243 static_cast<VkDeviceSize>( offset ),
20244 static_cast<VkBuffer>( countBuffer ),
20245 static_cast<VkDeviceSize>( countBufferOffset ),
20246 maxDrawCount,
20247 stride );
20248 }
20249
20250 //=== VK_AMD_shader_info ===
20251
20252 // wrapper function for command vkGetShaderInfoAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderInfoAMD.html
20253 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t>>::type Pipeline::getShaderInfoAMD( ShaderStageFlagBits shaderStage,
20254 ShaderInfoTypeAMD infoType ) const
20255 {
20256 VULKAN_HPP_ASSERT( getDispatcher()->vkGetShaderInfoAMD && "Function <vkGetShaderInfoAMD> requires <VK_AMD_shader_info>" );
20257
20258 std::vector<uint8_t> info;
20259 size_t infoSize;
20260 Result result;
20261 do
20262 {
20263 result = static_cast<Result>( getDispatcher()->vkGetShaderInfoAMD( static_cast<VkDevice>( m_device ),
20264 static_cast<VkPipeline>( m_pipeline ),
20265 static_cast<VkShaderStageFlagBits>( shaderStage ),
20266 static_cast<VkShaderInfoTypeAMD>( infoType ),
20267 &infoSize,
20268 nullptr ) );
20269 if ( ( result == Result::eSuccess ) && infoSize )
20270 {
20271 info.resize( infoSize );
20272 result = static_cast<Result>( getDispatcher()->vkGetShaderInfoAMD( static_cast<VkDevice>( m_device ),
20273 static_cast<VkPipeline>( m_pipeline ),
20274 static_cast<VkShaderStageFlagBits>( shaderStage ),
20275 static_cast<VkShaderInfoTypeAMD>( infoType ),
20276 &infoSize,
20277 reinterpret_cast<void *>( info.data() ) ) );
20278 }
20279 } while ( result == Result::eIncomplete );
20280 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Pipeline::getShaderInfoAMD" );
20281 VULKAN_HPP_ASSERT( infoSize <= info.size() );
20282 if ( infoSize < info.size() )
20283 {
20284 info.resize( infoSize );
20285 }
20286 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( info ) );
20287 }
20288
20289 //=== VK_KHR_dynamic_rendering ===
20290
20291 // wrapper function for command vkCmdBeginRenderingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderingKHR.html
20292 VULKAN_HPP_INLINE void CommandBuffer::beginRenderingKHR( RenderingInfo const & renderingInfo ) const VULKAN_HPP_NOEXCEPT
20293 {
20294 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginRenderingKHR &&
20295 "Function <vkCmdBeginRenderingKHR> requires <VK_KHR_dynamic_rendering> or <VK_VERSION_1_3>" );
20296
20297 getDispatcher()->vkCmdBeginRenderingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkRenderingInfo const *>( &renderingInfo ) );
20298 }
20299
20300 // wrapper function for command vkCmdEndRenderingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderingKHR.html
20301 VULKAN_HPP_INLINE void CommandBuffer::endRenderingKHR() const VULKAN_HPP_NOEXCEPT
20302 {
20303 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndRenderingKHR && "Function <vkCmdEndRenderingKHR> requires <VK_KHR_dynamic_rendering> or <VK_VERSION_1_3>" );
20304
20305 getDispatcher()->vkCmdEndRenderingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ) );
20306 }
20307
20308 # if defined( VK_USE_PLATFORM_GGP )
20309 //=== VK_GGP_stream_descriptor_surface ===
20310
20311 // wrapper function for command vkCreateStreamDescriptorSurfaceGGP, see
20312 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateStreamDescriptorSurfaceGGP.html
20313 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
20314 Instance::createStreamDescriptorSurfaceGGP( StreamDescriptorSurfaceCreateInfoGGP const & createInfo,
20315 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
20316 {
20317 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateStreamDescriptorSurfaceGGP &&
20318 "Function <vkCreateStreamDescriptorSurfaceGGP> requires <VK_GGP_stream_descriptor_surface>" );
20319
20320 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
20321 Result result = static_cast<Result>(
20322 getDispatcher()->vkCreateStreamDescriptorSurfaceGGP( static_cast<VkInstance>( m_instance ),
20323 reinterpret_cast<VkStreamDescriptorSurfaceCreateInfoGGP const *>( &createInfo ),
20324 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
20325 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
20326 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createStreamDescriptorSurfaceGGP" );
20327 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
20328 }
20329 # endif /*VK_USE_PLATFORM_GGP*/
20330
20331 //=== VK_NV_external_memory_capabilities ===
20332
20333 // wrapper function for command vkGetPhysicalDeviceExternalImageFormatPropertiesNV, see
20334 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalImageFormatPropertiesNV.html
20335 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ExternalImageFormatPropertiesNV>::type
20336 PhysicalDevice::getExternalImageFormatPropertiesNV( Format format,
20337 ImageType type,
20338 ImageTiling tiling,
20339 ImageUsageFlags usage,
20340 ImageCreateFlags flags,
20341 ExternalMemoryHandleTypeFlagsNV externalHandleType ) const
20342 {
20343 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceExternalImageFormatPropertiesNV &&
20344 "Function <vkGetPhysicalDeviceExternalImageFormatPropertiesNV> requires <VK_NV_external_memory_capabilities>" );
20345
20346 ExternalImageFormatPropertiesNV externalImageFormatProperties;
20347 Result result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceExternalImageFormatPropertiesNV(
20348 static_cast<VkPhysicalDevice>( m_physicalDevice ),
20349 static_cast<VkFormat>( format ),
20350 static_cast<VkImageType>( type ),
20351 static_cast<VkImageTiling>( tiling ),
20352 static_cast<VkImageUsageFlags>( usage ),
20353 static_cast<VkImageCreateFlags>( flags ),
20354 static_cast<VkExternalMemoryHandleTypeFlagsNV>( externalHandleType ),
20355 reinterpret_cast<VkExternalImageFormatPropertiesNV *>( &externalImageFormatProperties ) ) );
20356 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getExternalImageFormatPropertiesNV" );
20357
20358 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( externalImageFormatProperties ) );
20359 }
20360
20361 # if defined( VK_USE_PLATFORM_WIN32_KHR )
20362 //=== VK_NV_external_memory_win32 ===
20363
20364 // wrapper function for command vkGetMemoryWin32HandleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandleNV.html
20365 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HANDLE>::type
20366 DeviceMemory::getMemoryWin32HandleNV( ExternalMemoryHandleTypeFlagsNV handleType ) const
20367 {
20368 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryWin32HandleNV && "Function <vkGetMemoryWin32HandleNV> requires <VK_NV_external_memory_win32>" );
20369
20370 HANDLE handle;
20371 Result result = static_cast<Result>( getDispatcher()->vkGetMemoryWin32HandleNV( static_cast<VkDevice>( m_device ),
20372 static_cast<VkDeviceMemory>( m_deviceMemory ),
20373 static_cast<VkExternalMemoryHandleTypeFlagsNV>( handleType ),
20374 &handle ) );
20375 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::DeviceMemory::getMemoryWin32HandleNV" );
20376
20377 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( handle ) );
20378 }
20379 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
20380
20381 //=== VK_KHR_get_physical_device_properties2 ===
20382
20383 // wrapper function for command vkGetPhysicalDeviceFeatures2KHR, see
20384 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2KHR.html
20385 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceFeatures2 PhysicalDevice::getFeatures2KHR() const VULKAN_HPP_NOEXCEPT
20386 {
20387 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFeatures2KHR &&
20388 "Function <vkGetPhysicalDeviceFeatures2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20389
20390 PhysicalDeviceFeatures2 features;
20391 getDispatcher()->vkGetPhysicalDeviceFeatures2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20392 reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
20393
20394 return features;
20395 }
20396
20397 // wrapper function for command vkGetPhysicalDeviceFeatures2KHR, see
20398 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2KHR.html
20399 template <typename X, typename Y, typename... Z>
20400 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFeatures2KHR() const VULKAN_HPP_NOEXCEPT
20401 {
20402 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFeatures2KHR &&
20403 "Function <vkGetPhysicalDeviceFeatures2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20404
20405 StructureChain<X, Y, Z...> structureChain;
20406 PhysicalDeviceFeatures2 & features = structureChain.template get<PhysicalDeviceFeatures2>();
20407 getDispatcher()->vkGetPhysicalDeviceFeatures2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20408 reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
20409
20410 return structureChain;
20411 }
20412
20413 // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see
20414 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html
20415 VULKAN_HPP_INLINE void PhysicalDevice::getProperties2KHR( PhysicalDeviceProperties2 * pProperties ) const VULKAN_HPP_NOEXCEPT
20416 {
20417 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceProperties2KHR &&
20418 "Function <vkGetPhysicalDeviceProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20419 getDispatcher()->vkGetPhysicalDeviceProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20420 reinterpret_cast<VkPhysicalDeviceProperties2 *>( pProperties ) );
20421 }
20422
20423 // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see
20424 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html
20425 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceProperties2 PhysicalDevice::getProperties2KHR() const VULKAN_HPP_NOEXCEPT
20426 {
20427 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceProperties2KHR &&
20428 "Function <vkGetPhysicalDeviceProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20429
20430 PhysicalDeviceProperties2 properties;
20431 getDispatcher()->vkGetPhysicalDeviceProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20432 reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
20433
20434 return properties;
20435 }
20436
20437 // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see
20438 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html
20439 template <typename X, typename Y, typename... Z>
20440 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getProperties2KHR() const VULKAN_HPP_NOEXCEPT
20441 {
20442 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceProperties2KHR &&
20443 "Function <vkGetPhysicalDeviceProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20444
20445 StructureChain<X, Y, Z...> structureChain;
20446 PhysicalDeviceProperties2 & properties = structureChain.template get<PhysicalDeviceProperties2>();
20447 getDispatcher()->vkGetPhysicalDeviceProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20448 reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
20449
20450 return structureChain;
20451 }
20452
20453 // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see
20454 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html
20455 VULKAN_HPP_INLINE void PhysicalDevice::getFormatProperties2KHR( Format format, FormatProperties2 * pFormatProperties ) const VULKAN_HPP_NOEXCEPT
20456 {
20457 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFormatProperties2KHR &&
20458 "Function <vkGetPhysicalDeviceFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20459 getDispatcher()->vkGetPhysicalDeviceFormatProperties2KHR(
20460 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( pFormatProperties ) );
20461 }
20462
20463 // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see
20464 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html
20465 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE FormatProperties2 PhysicalDevice::getFormatProperties2KHR( Format format ) const VULKAN_HPP_NOEXCEPT
20466 {
20467 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFormatProperties2KHR &&
20468 "Function <vkGetPhysicalDeviceFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20469
20470 FormatProperties2 formatProperties;
20471 getDispatcher()->vkGetPhysicalDeviceFormatProperties2KHR(
20472 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
20473
20474 return formatProperties;
20475 }
20476
20477 // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see
20478 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html
20479 template <typename X, typename Y, typename... Z>
20480 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFormatProperties2KHR( Format format ) const VULKAN_HPP_NOEXCEPT
20481 {
20482 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFormatProperties2KHR &&
20483 "Function <vkGetPhysicalDeviceFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20484
20485 StructureChain<X, Y, Z...> structureChain;
20486 FormatProperties2 & formatProperties = structureChain.template get<FormatProperties2>();
20487 getDispatcher()->vkGetPhysicalDeviceFormatProperties2KHR(
20488 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
20489
20490 return structureChain;
20491 }
20492
20493 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see
20494 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html
20495 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageFormatProperties2>::type
20496 PhysicalDevice::getImageFormatProperties2KHR( PhysicalDeviceImageFormatInfo2 const & imageFormatInfo ) const
20497 {
20498 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2KHR &&
20499 "Function <vkGetPhysicalDeviceImageFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20500
20501 ImageFormatProperties2 imageFormatProperties;
20502 Result result = static_cast<Result>(
20503 getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20504 reinterpret_cast<VkPhysicalDeviceImageFormatInfo2 const *>( &imageFormatInfo ),
20505 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) );
20506 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2KHR" );
20507
20508 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( imageFormatProperties ) );
20509 }
20510
20511 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see
20512 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html
20513 template <typename X, typename Y, typename... Z>
20514 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
20515 PhysicalDevice::getImageFormatProperties2KHR( PhysicalDeviceImageFormatInfo2 const & imageFormatInfo ) const
20516 {
20517 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2KHR &&
20518 "Function <vkGetPhysicalDeviceImageFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20519
20520 StructureChain<X, Y, Z...> structureChain;
20521 ImageFormatProperties2 & imageFormatProperties = structureChain.template get<ImageFormatProperties2>();
20522 Result result = static_cast<Result>(
20523 getDispatcher()->vkGetPhysicalDeviceImageFormatProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20524 reinterpret_cast<VkPhysicalDeviceImageFormatInfo2 const *>( &imageFormatInfo ),
20525 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) );
20526 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2KHR" );
20527
20528 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( structureChain ) );
20529 }
20530
20531 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
20532 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
20533 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties2> PhysicalDevice::getQueueFamilyProperties2KHR() const
20534 {
20535 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2KHR &&
20536 "Function <vkGetPhysicalDeviceQueueFamilyProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20537
20538 std::vector<QueueFamilyProperties2> queueFamilyProperties;
20539 uint32_t queueFamilyPropertyCount;
20540 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &queueFamilyPropertyCount, nullptr );
20541 queueFamilyProperties.resize( queueFamilyPropertyCount );
20542 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20543 &queueFamilyPropertyCount,
20544 reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
20545
20546 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
20547 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
20548 {
20549 queueFamilyProperties.resize( queueFamilyPropertyCount );
20550 }
20551 return queueFamilyProperties;
20552 }
20553
20554 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
20555 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
20556 template <typename StructureChain>
20557 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<StructureChain> PhysicalDevice::getQueueFamilyProperties2KHR() const
20558 {
20559 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2KHR &&
20560 "Function <vkGetPhysicalDeviceQueueFamilyProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20561
20562 std::vector<StructureChain> structureChains;
20563 std::vector<QueueFamilyProperties2> queueFamilyProperties;
20564 uint32_t queueFamilyPropertyCount;
20565 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &queueFamilyPropertyCount, nullptr );
20566 structureChains.resize( queueFamilyPropertyCount );
20567 queueFamilyProperties.resize( queueFamilyPropertyCount );
20568 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
20569 {
20570 queueFamilyProperties[i].pNext = structureChains[i].template get<QueueFamilyProperties2>().pNext;
20571 }
20572 getDispatcher()->vkGetPhysicalDeviceQueueFamilyProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20573 &queueFamilyPropertyCount,
20574 reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
20575
20576 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
20577 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
20578 {
20579 structureChains.resize( queueFamilyPropertyCount );
20580 }
20581 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
20582 {
20583 structureChains[i].template get<QueueFamilyProperties2>() = queueFamilyProperties[i];
20584 }
20585 return structureChains;
20586 }
20587
20588 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2KHR, see
20589 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2KHR.html
20590 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceMemoryProperties2 PhysicalDevice::getMemoryProperties2KHR() const VULKAN_HPP_NOEXCEPT
20591 {
20592 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceMemoryProperties2KHR &&
20593 "Function <vkGetPhysicalDeviceMemoryProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20594
20595 PhysicalDeviceMemoryProperties2 memoryProperties;
20596 getDispatcher()->vkGetPhysicalDeviceMemoryProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20597 reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
20598
20599 return memoryProperties;
20600 }
20601
20602 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2KHR, see
20603 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2KHR.html
20604 template <typename X, typename Y, typename... Z>
20605 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getMemoryProperties2KHR() const VULKAN_HPP_NOEXCEPT
20606 {
20607 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceMemoryProperties2KHR &&
20608 "Function <vkGetPhysicalDeviceMemoryProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20609
20610 StructureChain<X, Y, Z...> structureChain;
20611 PhysicalDeviceMemoryProperties2 & memoryProperties = structureChain.template get<PhysicalDeviceMemoryProperties2>();
20612 getDispatcher()->vkGetPhysicalDeviceMemoryProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20613 reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
20614
20615 return structureChain;
20616 }
20617
20618 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2KHR, see
20619 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2KHR.html
20620 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties2>
20621 PhysicalDevice::getSparseImageFormatProperties2KHR( PhysicalDeviceSparseImageFormatInfo2 const & formatInfo ) const
20622 {
20623 VULKAN_HPP_ASSERT(
20624 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties2KHR &&
20625 "Function <vkGetPhysicalDeviceSparseImageFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
20626
20627 std::vector<SparseImageFormatProperties2> properties;
20628 uint32_t propertyCount;
20629 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20630 reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( &formatInfo ),
20631 &propertyCount,
20632 nullptr );
20633 properties.resize( propertyCount );
20634 getDispatcher()->vkGetPhysicalDeviceSparseImageFormatProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20635 reinterpret_cast<VkPhysicalDeviceSparseImageFormatInfo2 const *>( &formatInfo ),
20636 &propertyCount,
20637 reinterpret_cast<VkSparseImageFormatProperties2 *>( properties.data() ) );
20638
20639 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
20640 if ( propertyCount < properties.size() )
20641 {
20642 properties.resize( propertyCount );
20643 }
20644 return properties;
20645 }
20646
20647 //=== VK_KHR_device_group ===
20648
20649 // wrapper function for command vkGetDeviceGroupPeerMemoryFeaturesKHR, see
20650 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPeerMemoryFeaturesKHR.html
20651 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PeerMemoryFeatureFlags Device::getGroupPeerMemoryFeaturesKHR( uint32_t heapIndex,
20652 uint32_t localDeviceIndex,
20653 uint32_t remoteDeviceIndex ) const VULKAN_HPP_NOEXCEPT
20654 {
20655 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceGroupPeerMemoryFeaturesKHR &&
20656 "Function <vkGetDeviceGroupPeerMemoryFeaturesKHR> requires <VK_KHR_device_group> or <VK_VERSION_1_1>" );
20657
20658 PeerMemoryFeatureFlags peerMemoryFeatures;
20659 getDispatcher()->vkGetDeviceGroupPeerMemoryFeaturesKHR( static_cast<VkDevice>( m_device ),
20660 heapIndex,
20661 localDeviceIndex,
20662 remoteDeviceIndex,
20663 reinterpret_cast<VkPeerMemoryFeatureFlags *>( &peerMemoryFeatures ) );
20664
20665 return peerMemoryFeatures;
20666 }
20667
20668 // wrapper function for command vkCmdSetDeviceMaskKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDeviceMaskKHR.html
20669 VULKAN_HPP_INLINE void CommandBuffer::setDeviceMaskKHR( uint32_t deviceMask ) const VULKAN_HPP_NOEXCEPT
20670 {
20671 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDeviceMaskKHR && "Function <vkCmdSetDeviceMaskKHR> requires <VK_KHR_device_group> or <VK_VERSION_1_1>" );
20672
20673 getDispatcher()->vkCmdSetDeviceMaskKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), deviceMask );
20674 }
20675
20676 // wrapper function for command vkCmdDispatchBaseKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchBaseKHR.html
20677 VULKAN_HPP_INLINE void CommandBuffer::dispatchBaseKHR( uint32_t baseGroupX,
20678 uint32_t baseGroupY,
20679 uint32_t baseGroupZ,
20680 uint32_t groupCountX,
20681 uint32_t groupCountY,
20682 uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT
20683 {
20684 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDispatchBaseKHR && "Function <vkCmdDispatchBaseKHR> requires <VK_KHR_device_group> or <VK_VERSION_1_1>" );
20685
20686 getDispatcher()->vkCmdDispatchBaseKHR(
20687 static_cast<VkCommandBuffer>( m_commandBuffer ), baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ );
20688 }
20689
20690 # if defined( VK_USE_PLATFORM_VI_NN )
20691 //=== VK_NN_vi_surface ===
20692
20693 // wrapper function for command vkCreateViSurfaceNN, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateViSurfaceNN.html
20694 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
20695 Instance::createViSurfaceNN( ViSurfaceCreateInfoNN const & createInfo,
20696 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
20697 {
20698 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateViSurfaceNN && "Function <vkCreateViSurfaceNN> requires <VK_NN_vi_surface>" );
20699
20700 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
20701 Result result = static_cast<Result>( getDispatcher()->vkCreateViSurfaceNN( static_cast<VkInstance>( m_instance ),
20702 reinterpret_cast<VkViSurfaceCreateInfoNN const *>( &createInfo ),
20703 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
20704 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
20705 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createViSurfaceNN" );
20706 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
20707 }
20708 # endif /*VK_USE_PLATFORM_VI_NN*/
20709
20710 //=== VK_KHR_maintenance1 ===
20711
20712 // wrapper function for command vkTrimCommandPoolKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTrimCommandPoolKHR.html
20713 VULKAN_HPP_INLINE void CommandPool::trimKHR( CommandPoolTrimFlags flags ) const VULKAN_HPP_NOEXCEPT
20714 {
20715 VULKAN_HPP_ASSERT( getDispatcher()->vkTrimCommandPoolKHR && "Function <vkTrimCommandPoolKHR> requires <VK_KHR_maintenance1> or <VK_VERSION_1_1>" );
20716
20717 getDispatcher()->vkTrimCommandPoolKHR(
20718 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( m_commandPool ), static_cast<VkCommandPoolTrimFlags>( flags ) );
20719 }
20720
20721 //=== VK_KHR_device_group_creation ===
20722
20723 // wrapper function for command vkEnumeratePhysicalDeviceGroupsKHR, see
20724 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroupsKHR.html
20725 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceGroupProperties>>::type
20726 Instance::enumeratePhysicalDeviceGroupsKHR() const
20727 {
20728 VULKAN_HPP_ASSERT( getDispatcher()->vkEnumeratePhysicalDeviceGroupsKHR &&
20729 "Function <vkEnumeratePhysicalDeviceGroupsKHR> requires <VK_KHR_device_group_creation> or <VK_VERSION_1_1>" );
20730
20731 std::vector<PhysicalDeviceGroupProperties> physicalDeviceGroupProperties;
20732 uint32_t physicalDeviceGroupCount;
20733 Result result;
20734 do
20735 {
20736 result = static_cast<Result>(
20737 getDispatcher()->vkEnumeratePhysicalDeviceGroupsKHR( static_cast<VkInstance>( m_instance ), &physicalDeviceGroupCount, nullptr ) );
20738 if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount )
20739 {
20740 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
20741 result = static_cast<Result>( getDispatcher()->vkEnumeratePhysicalDeviceGroupsKHR(
20742 static_cast<VkInstance>( m_instance ),
20743 &physicalDeviceGroupCount,
20744 reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
20745 }
20746 } while ( result == Result::eIncomplete );
20747 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroupsKHR" );
20748 VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
20749 if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
20750 {
20751 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
20752 }
20753 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( physicalDeviceGroupProperties ) );
20754 }
20755
20756 //=== VK_KHR_external_memory_capabilities ===
20757
20758 // wrapper function for command vkGetPhysicalDeviceExternalBufferPropertiesKHR, see
20759 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalBufferPropertiesKHR.html
20760 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalBufferProperties
20761 PhysicalDevice::getExternalBufferPropertiesKHR( PhysicalDeviceExternalBufferInfo const & externalBufferInfo ) const VULKAN_HPP_NOEXCEPT
20762 {
20763 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceExternalBufferPropertiesKHR &&
20764 "Function <vkGetPhysicalDeviceExternalBufferPropertiesKHR> requires <VK_KHR_external_memory_capabilities> or <VK_VERSION_1_1>" );
20765
20766 ExternalBufferProperties externalBufferProperties;
20767 getDispatcher()->vkGetPhysicalDeviceExternalBufferPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
20768 reinterpret_cast<VkPhysicalDeviceExternalBufferInfo const *>( &externalBufferInfo ),
20769 reinterpret_cast<VkExternalBufferProperties *>( &externalBufferProperties ) );
20770
20771 return externalBufferProperties;
20772 }
20773
20774 # if defined( VK_USE_PLATFORM_WIN32_KHR )
20775 //=== VK_KHR_external_memory_win32 ===
20776
20777 // wrapper function for command vkGetMemoryWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandleKHR.html
20778 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HANDLE>::type
20779 Device::getMemoryWin32HandleKHR( MemoryGetWin32HandleInfoKHR const & getWin32HandleInfo ) const
20780 {
20781 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryWin32HandleKHR && "Function <vkGetMemoryWin32HandleKHR> requires <VK_KHR_external_memory_win32>" );
20782
20783 HANDLE handle;
20784 Result result = static_cast<Result>( getDispatcher()->vkGetMemoryWin32HandleKHR(
20785 static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryGetWin32HandleInfoKHR const *>( &getWin32HandleInfo ), &handle ) );
20786 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getMemoryWin32HandleKHR" );
20787
20788 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( handle ) );
20789 }
20790
20791 // wrapper function for command vkGetMemoryWin32HandlePropertiesKHR, see
20792 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandlePropertiesKHR.html
20793 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryWin32HandlePropertiesKHR>::type
20794 Device::getMemoryWin32HandlePropertiesKHR( ExternalMemoryHandleTypeFlagBits handleType, HANDLE handle ) const
20795 {
20796 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryWin32HandlePropertiesKHR &&
20797 "Function <vkGetMemoryWin32HandlePropertiesKHR> requires <VK_KHR_external_memory_win32>" );
20798
20799 MemoryWin32HandlePropertiesKHR memoryWin32HandleProperties;
20800 Result result = static_cast<Result>(
20801 getDispatcher()->vkGetMemoryWin32HandlePropertiesKHR( static_cast<VkDevice>( m_device ),
20802 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
20803 handle,
20804 reinterpret_cast<VkMemoryWin32HandlePropertiesKHR *>( &memoryWin32HandleProperties ) ) );
20805 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getMemoryWin32HandlePropertiesKHR" );
20806
20807 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( memoryWin32HandleProperties ) );
20808 }
20809 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
20810
20811 //=== VK_KHR_external_memory_fd ===
20812
20813 // wrapper function for command vkGetMemoryFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryFdKHR.html
20814 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<int>::type Device::getMemoryFdKHR( MemoryGetFdInfoKHR const & getFdInfo ) const
20815 {
20816 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryFdKHR && "Function <vkGetMemoryFdKHR> requires <VK_KHR_external_memory_fd>" );
20817
20818 int fd;
20819 Result result = static_cast<Result>(
20820 getDispatcher()->vkGetMemoryFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryGetFdInfoKHR const *>( &getFdInfo ), &fd ) );
20821 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getMemoryFdKHR" );
20822
20823 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( fd ) );
20824 }
20825
20826 // wrapper function for command vkGetMemoryFdPropertiesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryFdPropertiesKHR.html
20827 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryFdPropertiesKHR>::type
20828 Device::getMemoryFdPropertiesKHR( ExternalMemoryHandleTypeFlagBits handleType, int fd ) const
20829 {
20830 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryFdPropertiesKHR && "Function <vkGetMemoryFdPropertiesKHR> requires <VK_KHR_external_memory_fd>" );
20831
20832 MemoryFdPropertiesKHR memoryFdProperties;
20833 Result result = static_cast<Result>( getDispatcher()->vkGetMemoryFdPropertiesKHR( static_cast<VkDevice>( m_device ),
20834 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
20835 fd,
20836 reinterpret_cast<VkMemoryFdPropertiesKHR *>( &memoryFdProperties ) ) );
20837 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getMemoryFdPropertiesKHR" );
20838
20839 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( memoryFdProperties ) );
20840 }
20841
20842 //=== VK_KHR_external_semaphore_capabilities ===
20843
20844 // wrapper function for command vkGetPhysicalDeviceExternalSemaphorePropertiesKHR, see
20845 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalSemaphorePropertiesKHR.html
20846 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalSemaphoreProperties
20847 PhysicalDevice::getExternalSemaphorePropertiesKHR( PhysicalDeviceExternalSemaphoreInfo const & externalSemaphoreInfo ) const VULKAN_HPP_NOEXCEPT
20848 {
20849 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceExternalSemaphorePropertiesKHR &&
20850 "Function <vkGetPhysicalDeviceExternalSemaphorePropertiesKHR> requires <VK_KHR_external_semaphore_capabilities> or <VK_VERSION_1_1>" );
20851
20852 ExternalSemaphoreProperties externalSemaphoreProperties;
20853 getDispatcher()->vkGetPhysicalDeviceExternalSemaphorePropertiesKHR(
20854 static_cast<VkPhysicalDevice>( m_physicalDevice ),
20855 reinterpret_cast<VkPhysicalDeviceExternalSemaphoreInfo const *>( &externalSemaphoreInfo ),
20856 reinterpret_cast<VkExternalSemaphoreProperties *>( &externalSemaphoreProperties ) );
20857
20858 return externalSemaphoreProperties;
20859 }
20860
20861 # if defined( VK_USE_PLATFORM_WIN32_KHR )
20862 //=== VK_KHR_external_semaphore_win32 ===
20863
20864 // wrapper function for command vkImportSemaphoreWin32HandleKHR, see
20865 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreWin32HandleKHR.html
20866 VULKAN_HPP_INLINE typename ResultValueType<void>::type
20867 Device::importSemaphoreWin32HandleKHR( ImportSemaphoreWin32HandleInfoKHR const & importSemaphoreWin32HandleInfo ) const
20868 {
20869 VULKAN_HPP_ASSERT( getDispatcher()->vkImportSemaphoreWin32HandleKHR &&
20870 "Function <vkImportSemaphoreWin32HandleKHR> requires <VK_KHR_external_semaphore_win32>" );
20871
20872 Result result = static_cast<Result>( getDispatcher()->vkImportSemaphoreWin32HandleKHR(
20873 static_cast<VkDevice>( m_device ), reinterpret_cast<VkImportSemaphoreWin32HandleInfoKHR const *>( &importSemaphoreWin32HandleInfo ) ) );
20874 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::importSemaphoreWin32HandleKHR" );
20875
20876 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
20877 }
20878
20879 // wrapper function for command vkGetSemaphoreWin32HandleKHR, see
20880 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreWin32HandleKHR.html
20881 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HANDLE>::type
20882 Device::getSemaphoreWin32HandleKHR( SemaphoreGetWin32HandleInfoKHR const & getWin32HandleInfo ) const
20883 {
20884 VULKAN_HPP_ASSERT( getDispatcher()->vkGetSemaphoreWin32HandleKHR &&
20885 "Function <vkGetSemaphoreWin32HandleKHR> requires <VK_KHR_external_semaphore_win32>" );
20886
20887 HANDLE handle;
20888 Result result = static_cast<Result>( getDispatcher()->vkGetSemaphoreWin32HandleKHR(
20889 static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreGetWin32HandleInfoKHR const *>( &getWin32HandleInfo ), &handle ) );
20890 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getSemaphoreWin32HandleKHR" );
20891
20892 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( handle ) );
20893 }
20894 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
20895
20896 //=== VK_KHR_external_semaphore_fd ===
20897
20898 // wrapper function for command vkImportSemaphoreFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreFdKHR.html
20899 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::importSemaphoreFdKHR( ImportSemaphoreFdInfoKHR const & importSemaphoreFdInfo ) const
20900 {
20901 VULKAN_HPP_ASSERT( getDispatcher()->vkImportSemaphoreFdKHR && "Function <vkImportSemaphoreFdKHR> requires <VK_KHR_external_semaphore_fd>" );
20902
20903 Result result = static_cast<Result>( getDispatcher()->vkImportSemaphoreFdKHR(
20904 static_cast<VkDevice>( m_device ), reinterpret_cast<VkImportSemaphoreFdInfoKHR const *>( &importSemaphoreFdInfo ) ) );
20905 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::importSemaphoreFdKHR" );
20906
20907 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
20908 }
20909
20910 // wrapper function for command vkGetSemaphoreFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreFdKHR.html
20911 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<int>::type Device::getSemaphoreFdKHR( SemaphoreGetFdInfoKHR const & getFdInfo ) const
20912 {
20913 VULKAN_HPP_ASSERT( getDispatcher()->vkGetSemaphoreFdKHR && "Function <vkGetSemaphoreFdKHR> requires <VK_KHR_external_semaphore_fd>" );
20914
20915 int fd;
20916 Result result = static_cast<Result>(
20917 getDispatcher()->vkGetSemaphoreFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreGetFdInfoKHR const *>( &getFdInfo ), &fd ) );
20918 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getSemaphoreFdKHR" );
20919
20920 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( fd ) );
20921 }
20922
20923 //=== VK_KHR_push_descriptor ===
20924
20925 // wrapper function for command vkCmdPushDescriptorSetKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetKHR.html
20926 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetKHR( PipelineBindPoint pipelineBindPoint,
20927 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
20928 uint32_t set,
20929 ArrayProxy<WriteDescriptorSet const> const & descriptorWrites ) const VULKAN_HPP_NOEXCEPT
20930 {
20931 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPushDescriptorSetKHR &&
20932 "Function <vkCmdPushDescriptorSetKHR> requires <VK_KHR_push_descriptor> or <VK_VERSION_1_4>" );
20933
20934 getDispatcher()->vkCmdPushDescriptorSetKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
20935 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
20936 static_cast<VkPipelineLayout>( layout ),
20937 set,
20938 descriptorWrites.size(),
20939 reinterpret_cast<VkWriteDescriptorSet const *>( descriptorWrites.data() ) );
20940 }
20941
20942 // wrapper function for command vkCmdPushDescriptorSetWithTemplateKHR, see
20943 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplateKHR.html
20944 template <typename DataType>
20945 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplateKHR( VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate descriptorUpdateTemplate,
20946 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
20947 uint32_t set,
20948 DataType const & data ) const VULKAN_HPP_NOEXCEPT
20949 {
20950 VULKAN_HPP_ASSERT(
20951 getDispatcher()->vkCmdPushDescriptorSetWithTemplateKHR &&
20952 "Function <vkCmdPushDescriptorSetWithTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_KHR_push_descriptor> or <VK_VERSION_1_4>" );
20953
20954 getDispatcher()->vkCmdPushDescriptorSetWithTemplateKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
20955 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
20956 static_cast<VkPipelineLayout>( layout ),
20957 set,
20958 reinterpret_cast<void const *>( &data ) );
20959 }
20960
20961 //=== VK_EXT_conditional_rendering ===
20962
20963 // wrapper function for command vkCmdBeginConditionalRenderingEXT, see
20964 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginConditionalRenderingEXT.html
20965 VULKAN_HPP_INLINE void
20966 CommandBuffer::beginConditionalRenderingEXT( ConditionalRenderingBeginInfoEXT const & conditionalRenderingBegin ) const VULKAN_HPP_NOEXCEPT
20967 {
20968 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginConditionalRenderingEXT &&
20969 "Function <vkCmdBeginConditionalRenderingEXT> requires <VK_EXT_conditional_rendering>" );
20970
20971 getDispatcher()->vkCmdBeginConditionalRenderingEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
20972 reinterpret_cast<VkConditionalRenderingBeginInfoEXT const *>( &conditionalRenderingBegin ) );
20973 }
20974
20975 // wrapper function for command vkCmdEndConditionalRenderingEXT, see
20976 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndConditionalRenderingEXT.html
20977 VULKAN_HPP_INLINE void CommandBuffer::endConditionalRenderingEXT() const VULKAN_HPP_NOEXCEPT
20978 {
20979 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndConditionalRenderingEXT &&
20980 "Function <vkCmdEndConditionalRenderingEXT> requires <VK_EXT_conditional_rendering>" );
20981
20982 getDispatcher()->vkCmdEndConditionalRenderingEXT( static_cast<VkCommandBuffer>( m_commandBuffer ) );
20983 }
20984
20985 //=== VK_KHR_descriptor_update_template ===
20986
20987 // wrapper function for command vkCreateDescriptorUpdateTemplateKHR, see
20988 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplateKHR.html
20989 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DescriptorUpdateTemplate>::type
20990 Device::createDescriptorUpdateTemplateKHR( DescriptorUpdateTemplateCreateInfo const & createInfo,
20991 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
20992 {
20993 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDescriptorUpdateTemplateKHR &&
20994 "Function <vkCreateDescriptorUpdateTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
20995
20996 VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate descriptorUpdateTemplate;
20997 Result result = static_cast<Result>(
20998 getDispatcher()->vkCreateDescriptorUpdateTemplateKHR( static_cast<VkDevice>( m_device ),
20999 reinterpret_cast<VkDescriptorUpdateTemplateCreateInfo const *>( &createInfo ),
21000 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
21001 reinterpret_cast<VkDescriptorUpdateTemplate *>( &descriptorUpdateTemplate ) ) );
21002 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createDescriptorUpdateTemplateKHR" );
21003 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
21004 result, DescriptorUpdateTemplate( *this, *reinterpret_cast<VkDescriptorUpdateTemplate *>( &descriptorUpdateTemplate ), allocator ) );
21005 }
21006
21007 // wrapper function for command vkDestroyDescriptorUpdateTemplateKHR, see
21008 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplateKHR.html
21009 VULKAN_HPP_INLINE void Device::destroyDescriptorUpdateTemplateKHR( VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate descriptorUpdateTemplate,
21010 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT
21011 {
21012 VULKAN_HPP_ASSERT( getDispatcher()->vkDestroyDescriptorUpdateTemplateKHR &&
21013 "Function <vkDestroyDescriptorUpdateTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
21014
21015 getDispatcher()->vkDestroyDescriptorUpdateTemplateKHR( static_cast<VkDevice>( m_device ),
21016 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
21017 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
21018 }
21019
21020 // wrapper function for command vkUpdateDescriptorSetWithTemplateKHR, see
21021 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSetWithTemplateKHR.html
21022 template <typename DataType>
21023 VULKAN_HPP_INLINE void DescriptorSet::updateWithTemplateKHR( VULKAN_HPP_NAMESPACE::DescriptorUpdateTemplate descriptorUpdateTemplate,
21024 DataType const & data ) const VULKAN_HPP_NOEXCEPT
21025 {
21026 VULKAN_HPP_ASSERT( getDispatcher()->vkUpdateDescriptorSetWithTemplateKHR &&
21027 "Function <vkUpdateDescriptorSetWithTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
21028
21029 getDispatcher()->vkUpdateDescriptorSetWithTemplateKHR( static_cast<VkDevice>( m_device ),
21030 static_cast<VkDescriptorSet>( m_descriptorSet ),
21031 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
21032 reinterpret_cast<void const *>( &data ) );
21033 }
21034
21035 //=== VK_NV_clip_space_w_scaling ===
21036
21037 // wrapper function for command vkCmdSetViewportWScalingNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWScalingNV.html
21038 VULKAN_HPP_INLINE void CommandBuffer::setViewportWScalingNV( uint32_t firstViewport,
21039 ArrayProxy<ViewportWScalingNV const> const & viewportWScalings ) const VULKAN_HPP_NOEXCEPT
21040 {
21041 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetViewportWScalingNV && "Function <vkCmdSetViewportWScalingNV> requires <VK_NV_clip_space_w_scaling>" );
21042
21043 getDispatcher()->vkCmdSetViewportWScalingNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
21044 firstViewport,
21045 viewportWScalings.size(),
21046 reinterpret_cast<VkViewportWScalingNV const *>( viewportWScalings.data() ) );
21047 }
21048
21049 # if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT )
21050 //=== VK_EXT_acquire_xlib_display ===
21051
21052 // wrapper function for command vkAcquireXlibDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireXlibDisplayEXT.html
21053 VULKAN_HPP_INLINE typename ResultValueType<void>::type PhysicalDevice::acquireXlibDisplayEXT( Display & dpy,
21054 VULKAN_HPP_NAMESPACE::DisplayKHR display ) const
21055 {
21056 VULKAN_HPP_ASSERT( getDispatcher()->vkAcquireXlibDisplayEXT && "Function <vkAcquireXlibDisplayEXT> requires <VK_EXT_acquire_xlib_display>" );
21057
21058 Result result = static_cast<Result>(
21059 getDispatcher()->vkAcquireXlibDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), &dpy, static_cast<VkDisplayKHR>( display ) ) );
21060 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::acquireXlibDisplayEXT" );
21061
21062 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
21063 }
21064
21065 // wrapper function for command vkGetRandROutputDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRandROutputDisplayEXT.html
21066 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayKHR>::type
21067 PhysicalDevice::getRandROutputDisplayEXT( Display & dpy, RROutput rrOutput ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
21068 {
21069 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRandROutputDisplayEXT && "Function <vkGetRandROutputDisplayEXT> requires <VK_EXT_acquire_xlib_display>" );
21070
21071 VULKAN_HPP_NAMESPACE::DisplayKHR display;
21072 Result result = static_cast<Result>( getDispatcher()->vkGetRandROutputDisplayEXT(
21073 static_cast<VkPhysicalDevice>( m_physicalDevice ), &dpy, rrOutput, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
21074 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getRandROutputDisplayEXT" );
21075 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, DisplayKHR( *this, *reinterpret_cast<VkDisplayKHR *>( &display ) ) );
21076 }
21077 # endif /*VK_USE_PLATFORM_XLIB_XRANDR_EXT*/
21078
21079 //=== VK_EXT_display_surface_counter ===
21080
21081 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2EXT, see
21082 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2EXT.html
21083 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceCapabilities2EXT>::type
21084 PhysicalDevice::getSurfaceCapabilities2EXT( VULKAN_HPP_NAMESPACE::SurfaceKHR surface ) const
21085 {
21086 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilities2EXT &&
21087 "Function <vkGetPhysicalDeviceSurfaceCapabilities2EXT> requires <VK_EXT_display_surface_counter>" );
21088
21089 SurfaceCapabilities2EXT surfaceCapabilities;
21090 Result result = static_cast<Result>(
21091 getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilities2EXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21092 static_cast<VkSurfaceKHR>( surface ),
21093 reinterpret_cast<VkSurfaceCapabilities2EXT *>( &surfaceCapabilities ) ) );
21094 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2EXT" );
21095
21096 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( surfaceCapabilities ) );
21097 }
21098
21099 //=== VK_EXT_display_control ===
21100
21101 // wrapper function for command vkDisplayPowerControlEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDisplayPowerControlEXT.html
21102 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::displayPowerControlEXT( VULKAN_HPP_NAMESPACE::DisplayKHR display,
21103 DisplayPowerInfoEXT const & displayPowerInfo ) const
21104 {
21105 VULKAN_HPP_ASSERT( getDispatcher()->vkDisplayPowerControlEXT && "Function <vkDisplayPowerControlEXT> requires <VK_EXT_display_control>" );
21106
21107 Result result = static_cast<Result>( getDispatcher()->vkDisplayPowerControlEXT(
21108 static_cast<VkDevice>( m_device ), static_cast<VkDisplayKHR>( display ), reinterpret_cast<VkDisplayPowerInfoEXT const *>( &displayPowerInfo ) ) );
21109 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::displayPowerControlEXT" );
21110
21111 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
21112 }
21113
21114 // wrapper function for command vkRegisterDeviceEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDeviceEventEXT.html
21115 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Fence>::type
21116 Device::registerEventEXT( DeviceEventInfoEXT const & deviceEventInfo,
21117 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
21118 {
21119 VULKAN_HPP_ASSERT( getDispatcher()->vkRegisterDeviceEventEXT && "Function <vkRegisterDeviceEventEXT> requires <VK_EXT_display_control>" );
21120
21121 VULKAN_HPP_NAMESPACE::Fence fence;
21122 Result result = static_cast<Result>( getDispatcher()->vkRegisterDeviceEventEXT( static_cast<VkDevice>( m_device ),
21123 reinterpret_cast<VkDeviceEventInfoEXT const *>( &deviceEventInfo ),
21124 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
21125 reinterpret_cast<VkFence *>( &fence ) ) );
21126 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::registerEventEXT" );
21127 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Fence( *this, *reinterpret_cast<VkFence *>( &fence ), allocator ) );
21128 }
21129
21130 // wrapper function for command vkRegisterDisplayEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDisplayEventEXT.html
21131 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Fence>::type
21132 Device::registerDisplayEventEXT( DisplayKHR const & display,
21133 DisplayEventInfoEXT const & displayEventInfo,
21134 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
21135 {
21136 VULKAN_HPP_ASSERT( getDispatcher()->vkRegisterDisplayEventEXT && "Function <vkRegisterDisplayEventEXT> requires <VK_EXT_display_control>" );
21137
21138 VULKAN_HPP_NAMESPACE::Fence fence;
21139 Result result = static_cast<Result>( getDispatcher()->vkRegisterDisplayEventEXT( static_cast<VkDevice>( m_device ),
21140 static_cast<VkDisplayKHR>( *display ),
21141 reinterpret_cast<VkDisplayEventInfoEXT const *>( &displayEventInfo ),
21142 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
21143 reinterpret_cast<VkFence *>( &fence ) ) );
21144 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::registerDisplayEventEXT" );
21145 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Fence( *this, *reinterpret_cast<VkFence *>( &fence ), allocator ) );
21146 }
21147
21148 // wrapper function for command vkGetSwapchainCounterEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainCounterEXT.html
21149 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
21150 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
21151 ResultValue<uint64_t>
21152 # else
21153 typename ResultValueType<uint64_t>::type
21154 # endif
21155 SwapchainKHR::getCounterEXT( SurfaceCounterFlagBitsEXT counter ) const
21156 {
21157 VULKAN_HPP_ASSERT( getDispatcher()->vkGetSwapchainCounterEXT && "Function <vkGetSwapchainCounterEXT> requires <VK_EXT_display_control>" );
21158
21159 uint64_t counterValue;
21160 Result result = static_cast<Result>( getDispatcher()->vkGetSwapchainCounterEXT( static_cast<VkDevice>( m_device ),
21161 static_cast<VkSwapchainKHR>( m_swapchainKHR ),
21162 static_cast<VkSurfaceCounterFlagBitsEXT>( counter ),
21163 &counterValue ) );
21164
21165 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
21166 VULKAN_HPP_NAMESPACE::detail::resultCheck(
21167 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::getCounterEXT", { Result::eSuccess, Result::eErrorOutOfDateKHR } );
21168 # else
21169 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::getCounterEXT" );
21170 # endif
21171
21172 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
21173 return ResultValue<uint64_t>( result, std::move( counterValue ) );
21174 # else
21175 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( counterValue ) );
21176 # endif
21177 }
21178
21179 //=== VK_GOOGLE_display_timing ===
21180
21181 // wrapper function for command vkGetRefreshCycleDurationGOOGLE, see
21182 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRefreshCycleDurationGOOGLE.html
21183 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RefreshCycleDurationGOOGLE>::type SwapchainKHR::getRefreshCycleDurationGOOGLE() const
21184 {
21185 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRefreshCycleDurationGOOGLE && "Function <vkGetRefreshCycleDurationGOOGLE> requires <VK_GOOGLE_display_timing>" );
21186
21187 RefreshCycleDurationGOOGLE displayTimingProperties;
21188 Result result =
21189 static_cast<Result>( getDispatcher()->vkGetRefreshCycleDurationGOOGLE( static_cast<VkDevice>( m_device ),
21190 static_cast<VkSwapchainKHR>( m_swapchainKHR ),
21191 reinterpret_cast<VkRefreshCycleDurationGOOGLE *>( &displayTimingProperties ) ) );
21192 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::getRefreshCycleDurationGOOGLE" );
21193
21194 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( displayTimingProperties ) );
21195 }
21196
21197 // wrapper function for command vkGetPastPresentationTimingGOOGLE, see
21198 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPastPresentationTimingGOOGLE.html
21199 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
21200 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
21201 ResultValue<std::vector<PastPresentationTimingGOOGLE>>
21202 # else
21203 typename ResultValueType<std::vector<PastPresentationTimingGOOGLE>>::type
21204 # endif
21205 SwapchainKHR::getPastPresentationTimingGOOGLE() const
21206 {
21207 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPastPresentationTimingGOOGLE &&
21208 "Function <vkGetPastPresentationTimingGOOGLE> requires <VK_GOOGLE_display_timing>" );
21209
21210 std::vector<PastPresentationTimingGOOGLE> presentationTimings;
21211 uint32_t presentationTimingCount;
21212 Result result;
21213 do
21214 {
21215 result = static_cast<Result>( getDispatcher()->vkGetPastPresentationTimingGOOGLE(
21216 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchainKHR ), &presentationTimingCount, nullptr ) );
21217 if ( ( result == Result::eSuccess ) && presentationTimingCount )
21218 {
21219 presentationTimings.resize( presentationTimingCount );
21220 result = static_cast<Result>(
21221 getDispatcher()->vkGetPastPresentationTimingGOOGLE( static_cast<VkDevice>( m_device ),
21222 static_cast<VkSwapchainKHR>( m_swapchainKHR ),
21223 &presentationTimingCount,
21224 reinterpret_cast<VkPastPresentationTimingGOOGLE *>( presentationTimings.data() ) ) );
21225 }
21226 } while ( result == Result::eIncomplete );
21227
21228 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
21229 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
21230 VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::getPastPresentationTimingGOOGLE",
21231 { Result::eSuccess, Result::eIncomplete, Result::eErrorOutOfDateKHR } );
21232 # else
21233 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::getPastPresentationTimingGOOGLE" );
21234 # endif
21235
21236 VULKAN_HPP_ASSERT( presentationTimingCount <= presentationTimings.size() );
21237 if ( presentationTimingCount < presentationTimings.size() )
21238 {
21239 presentationTimings.resize( presentationTimingCount );
21240 }
21241
21242 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
21243 return ResultValue<std::vector<PastPresentationTimingGOOGLE>>( result, std::move( presentationTimings ) );
21244 # else
21245 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( presentationTimings ) );
21246 # endif
21247 }
21248
21249 //=== VK_EXT_discard_rectangles ===
21250
21251 // wrapper function for command vkCmdSetDiscardRectangleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleEXT.html
21252 VULKAN_HPP_INLINE void CommandBuffer::setDiscardRectangleEXT( uint32_t firstDiscardRectangle,
21253 ArrayProxy<Rect2D const> const & discardRectangles ) const VULKAN_HPP_NOEXCEPT
21254 {
21255 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDiscardRectangleEXT && "Function <vkCmdSetDiscardRectangleEXT> requires <VK_EXT_discard_rectangles>" );
21256
21257 getDispatcher()->vkCmdSetDiscardRectangleEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
21258 firstDiscardRectangle,
21259 discardRectangles.size(),
21260 reinterpret_cast<VkRect2D const *>( discardRectangles.data() ) );
21261 }
21262
21263 // wrapper function for command vkCmdSetDiscardRectangleEnableEXT, see
21264 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleEnableEXT.html
21265 VULKAN_HPP_INLINE void CommandBuffer::setDiscardRectangleEnableEXT( Bool32 discardRectangleEnable ) const VULKAN_HPP_NOEXCEPT
21266 {
21267 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDiscardRectangleEnableEXT &&
21268 "Function <vkCmdSetDiscardRectangleEnableEXT> requires <VK_EXT_discard_rectangles>" );
21269
21270 getDispatcher()->vkCmdSetDiscardRectangleEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( discardRectangleEnable ) );
21271 }
21272
21273 // wrapper function for command vkCmdSetDiscardRectangleModeEXT, see
21274 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleModeEXT.html
21275 VULKAN_HPP_INLINE void CommandBuffer::setDiscardRectangleModeEXT( DiscardRectangleModeEXT discardRectangleMode ) const VULKAN_HPP_NOEXCEPT
21276 {
21277 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDiscardRectangleModeEXT &&
21278 "Function <vkCmdSetDiscardRectangleModeEXT> requires <VK_EXT_discard_rectangles>" );
21279
21280 getDispatcher()->vkCmdSetDiscardRectangleModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
21281 static_cast<VkDiscardRectangleModeEXT>( discardRectangleMode ) );
21282 }
21283
21284 //=== VK_EXT_hdr_metadata ===
21285
21286 // wrapper function for command vkSetHdrMetadataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetHdrMetadataEXT.html
21287 VULKAN_HPP_INLINE void Device::setHdrMetadataEXT( ArrayProxy<VULKAN_HPP_NAMESPACE::SwapchainKHR const> const & swapchains,
21288 ArrayProxy<HdrMetadataEXT const> const & metadata ) const
21289 {
21290 VULKAN_HPP_ASSERT( getDispatcher()->vkSetHdrMetadataEXT && "Function <vkSetHdrMetadataEXT> requires <VK_EXT_hdr_metadata>" );
21291 # ifdef VULKAN_HPP_NO_EXCEPTIONS
21292 VULKAN_HPP_ASSERT( swapchains.size() == metadata.size() );
21293 # else
21294 if ( swapchains.size() != metadata.size() )
21295 {
21296 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::setHdrMetadataEXT: swapchains.size() != metadata.size()" );
21297 }
21298 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
21299
21300 getDispatcher()->vkSetHdrMetadataEXT( static_cast<VkDevice>( m_device ),
21301 swapchains.size(),
21302 reinterpret_cast<VkSwapchainKHR const *>( swapchains.data() ),
21303 reinterpret_cast<VkHdrMetadataEXT const *>( metadata.data() ) );
21304 }
21305
21306 //=== VK_KHR_create_renderpass2 ===
21307
21308 // wrapper function for command vkCreateRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2KHR.html
21309 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RenderPass>::type
21310 Device::createRenderPass2KHR( RenderPassCreateInfo2 const & createInfo,
21311 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
21312 {
21313 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateRenderPass2KHR &&
21314 "Function <vkCreateRenderPass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
21315
21316 VULKAN_HPP_NAMESPACE::RenderPass renderPass;
21317 Result result = static_cast<Result>( getDispatcher()->vkCreateRenderPass2KHR( static_cast<VkDevice>( m_device ),
21318 reinterpret_cast<VkRenderPassCreateInfo2 const *>( &createInfo ),
21319 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
21320 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
21321 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createRenderPass2KHR" );
21322 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, RenderPass( *this, *reinterpret_cast<VkRenderPass *>( &renderPass ), allocator ) );
21323 }
21324
21325 // wrapper function for command vkCmdBeginRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass2KHR.html
21326 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass2KHR( RenderPassBeginInfo const & renderPassBegin,
21327 SubpassBeginInfo const & subpassBeginInfo ) const VULKAN_HPP_NOEXCEPT
21328 {
21329 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginRenderPass2KHR &&
21330 "Function <vkCmdBeginRenderPass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
21331
21332 getDispatcher()->vkCmdBeginRenderPass2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
21333 reinterpret_cast<VkRenderPassBeginInfo const *>( &renderPassBegin ),
21334 reinterpret_cast<VkSubpassBeginInfo const *>( &subpassBeginInfo ) );
21335 }
21336
21337 // wrapper function for command vkCmdNextSubpass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass2KHR.html
21338 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass2KHR( SubpassBeginInfo const & subpassBeginInfo,
21339 SubpassEndInfo const & subpassEndInfo ) const VULKAN_HPP_NOEXCEPT
21340 {
21341 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdNextSubpass2KHR && "Function <vkCmdNextSubpass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
21342
21343 getDispatcher()->vkCmdNextSubpass2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
21344 reinterpret_cast<VkSubpassBeginInfo const *>( &subpassBeginInfo ),
21345 reinterpret_cast<VkSubpassEndInfo const *>( &subpassEndInfo ) );
21346 }
21347
21348 // wrapper function for command vkCmdEndRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass2KHR.html
21349 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass2KHR( SubpassEndInfo const & subpassEndInfo ) const VULKAN_HPP_NOEXCEPT
21350 {
21351 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndRenderPass2KHR &&
21352 "Function <vkCmdEndRenderPass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
21353
21354 getDispatcher()->vkCmdEndRenderPass2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkSubpassEndInfo const *>( &subpassEndInfo ) );
21355 }
21356
21357 //=== VK_KHR_shared_presentable_image ===
21358
21359 // wrapper function for command vkGetSwapchainStatusKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainStatusKHR.html
21360 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result SwapchainKHR::getStatus() const
21361 {
21362 VULKAN_HPP_ASSERT( getDispatcher()->vkGetSwapchainStatusKHR && "Function <vkGetSwapchainStatusKHR> requires <VK_KHR_shared_presentable_image>" );
21363
21364 Result result =
21365 static_cast<Result>( getDispatcher()->vkGetSwapchainStatusKHR( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchainKHR ) ) );
21366
21367 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
21368 VULKAN_HPP_NAMESPACE::detail::resultCheck(
21369 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::getStatus", { Result::eSuccess, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
21370 # else
21371 VULKAN_HPP_NAMESPACE::detail::resultCheck(
21372 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::getStatus", { Result::eSuccess, Result::eSuboptimalKHR } );
21373 # endif
21374
21375 return static_cast<Result>( result );
21376 }
21377
21378 //=== VK_KHR_external_fence_capabilities ===
21379
21380 // wrapper function for command vkGetPhysicalDeviceExternalFencePropertiesKHR, see
21381 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalFencePropertiesKHR.html
21382 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalFenceProperties
21383 PhysicalDevice::getExternalFencePropertiesKHR( PhysicalDeviceExternalFenceInfo const & externalFenceInfo ) const VULKAN_HPP_NOEXCEPT
21384 {
21385 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceExternalFencePropertiesKHR &&
21386 "Function <vkGetPhysicalDeviceExternalFencePropertiesKHR> requires <VK_KHR_external_fence_capabilities> or <VK_VERSION_1_1>" );
21387
21388 ExternalFenceProperties externalFenceProperties;
21389 getDispatcher()->vkGetPhysicalDeviceExternalFencePropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21390 reinterpret_cast<VkPhysicalDeviceExternalFenceInfo const *>( &externalFenceInfo ),
21391 reinterpret_cast<VkExternalFenceProperties *>( &externalFenceProperties ) );
21392
21393 return externalFenceProperties;
21394 }
21395
21396 # if defined( VK_USE_PLATFORM_WIN32_KHR )
21397 //=== VK_KHR_external_fence_win32 ===
21398
21399 // wrapper function for command vkImportFenceWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportFenceWin32HandleKHR.html
21400 VULKAN_HPP_INLINE typename ResultValueType<void>::type
21401 Device::importFenceWin32HandleKHR( ImportFenceWin32HandleInfoKHR const & importFenceWin32HandleInfo ) const
21402 {
21403 VULKAN_HPP_ASSERT( getDispatcher()->vkImportFenceWin32HandleKHR && "Function <vkImportFenceWin32HandleKHR> requires <VK_KHR_external_fence_win32>" );
21404
21405 Result result = static_cast<Result>( getDispatcher()->vkImportFenceWin32HandleKHR(
21406 static_cast<VkDevice>( m_device ), reinterpret_cast<VkImportFenceWin32HandleInfoKHR const *>( &importFenceWin32HandleInfo ) ) );
21407 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::importFenceWin32HandleKHR" );
21408
21409 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
21410 }
21411
21412 // wrapper function for command vkGetFenceWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceWin32HandleKHR.html
21413 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HANDLE>::type
21414 Device::getFenceWin32HandleKHR( FenceGetWin32HandleInfoKHR const & getWin32HandleInfo ) const
21415 {
21416 VULKAN_HPP_ASSERT( getDispatcher()->vkGetFenceWin32HandleKHR && "Function <vkGetFenceWin32HandleKHR> requires <VK_KHR_external_fence_win32>" );
21417
21418 HANDLE handle;
21419 Result result = static_cast<Result>( getDispatcher()->vkGetFenceWin32HandleKHR(
21420 static_cast<VkDevice>( m_device ), reinterpret_cast<VkFenceGetWin32HandleInfoKHR const *>( &getWin32HandleInfo ), &handle ) );
21421 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getFenceWin32HandleKHR" );
21422
21423 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( handle ) );
21424 }
21425 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
21426
21427 //=== VK_KHR_external_fence_fd ===
21428
21429 // wrapper function for command vkImportFenceFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportFenceFdKHR.html
21430 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::importFenceFdKHR( ImportFenceFdInfoKHR const & importFenceFdInfo ) const
21431 {
21432 VULKAN_HPP_ASSERT( getDispatcher()->vkImportFenceFdKHR && "Function <vkImportFenceFdKHR> requires <VK_KHR_external_fence_fd>" );
21433
21434 Result result = static_cast<Result>(
21435 getDispatcher()->vkImportFenceFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkImportFenceFdInfoKHR const *>( &importFenceFdInfo ) ) );
21436 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::importFenceFdKHR" );
21437
21438 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
21439 }
21440
21441 // wrapper function for command vkGetFenceFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceFdKHR.html
21442 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<int>::type Device::getFenceFdKHR( FenceGetFdInfoKHR const & getFdInfo ) const
21443 {
21444 VULKAN_HPP_ASSERT( getDispatcher()->vkGetFenceFdKHR && "Function <vkGetFenceFdKHR> requires <VK_KHR_external_fence_fd>" );
21445
21446 int fd;
21447 Result result = static_cast<Result>(
21448 getDispatcher()->vkGetFenceFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkFenceGetFdInfoKHR const *>( &getFdInfo ), &fd ) );
21449 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getFenceFdKHR" );
21450
21451 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( fd ) );
21452 }
21453
21454 //=== VK_KHR_performance_query ===
21455
21456 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR, see
21457 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR.html
21458 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
21459 typename ResultValueType<std::pair<std::vector<PerformanceCounterKHR>, std::vector<PerformanceCounterDescriptionKHR>>>::type
21460 PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR( uint32_t queueFamilyIndex ) const
21461 {
21462 VULKAN_HPP_ASSERT( getDispatcher()->vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR &&
21463 "Function <vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR> requires <VK_KHR_performance_query>" );
21464
21465 std::pair<std::vector<PerformanceCounterKHR>, std::vector<PerformanceCounterDescriptionKHR>> data_;
21466 std::vector<PerformanceCounterKHR> & counters = data_.first;
21467 std::vector<PerformanceCounterDescriptionKHR> & counterDescriptions = data_.second;
21468 uint32_t counterCount;
21469 Result result;
21470 do
21471 {
21472 result = static_cast<Result>( getDispatcher()->vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(
21473 static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &counterCount, nullptr, nullptr ) );
21474 if ( ( result == Result::eSuccess ) && counterCount )
21475 {
21476 counters.resize( counterCount );
21477 counterDescriptions.resize( counterCount );
21478 result = static_cast<Result>( getDispatcher()->vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(
21479 static_cast<VkPhysicalDevice>( m_physicalDevice ),
21480 queueFamilyIndex,
21481 &counterCount,
21482 reinterpret_cast<VkPerformanceCounterKHR *>( counters.data() ),
21483 reinterpret_cast<VkPerformanceCounterDescriptionKHR *>( counterDescriptions.data() ) ) );
21484 }
21485 } while ( result == Result::eIncomplete );
21486 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR" );
21487 VULKAN_HPP_ASSERT( counterCount <= counters.size() );
21488 if ( counterCount < counters.size() )
21489 {
21490 counters.resize( counterCount );
21491 counterDescriptions.resize( counterCount );
21492 }
21493 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data_ ) );
21494 }
21495
21496 // wrapper function for command vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR, see
21497 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR.html
21498 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint32_t
21499 PhysicalDevice::getQueueFamilyPerformanceQueryPassesKHR( QueryPoolPerformanceCreateInfoKHR const & performanceQueryCreateInfo ) const VULKAN_HPP_NOEXCEPT
21500 {
21501 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR &&
21502 "Function <vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR> requires <VK_KHR_performance_query>" );
21503
21504 uint32_t numPasses;
21505 getDispatcher()->vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR(
21506 static_cast<VkPhysicalDevice>( m_physicalDevice ),
21507 reinterpret_cast<VkQueryPoolPerformanceCreateInfoKHR const *>( &performanceQueryCreateInfo ),
21508 &numPasses );
21509
21510 return numPasses;
21511 }
21512
21513 // wrapper function for command vkAcquireProfilingLockKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireProfilingLockKHR.html
21514 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::acquireProfilingLockKHR( AcquireProfilingLockInfoKHR const & info ) const
21515 {
21516 VULKAN_HPP_ASSERT( getDispatcher()->vkAcquireProfilingLockKHR && "Function <vkAcquireProfilingLockKHR> requires <VK_KHR_performance_query>" );
21517
21518 Result result = static_cast<Result>(
21519 getDispatcher()->vkAcquireProfilingLockKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkAcquireProfilingLockInfoKHR const *>( &info ) ) );
21520 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::acquireProfilingLockKHR" );
21521
21522 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
21523 }
21524
21525 // wrapper function for command vkReleaseProfilingLockKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseProfilingLockKHR.html
21526 VULKAN_HPP_INLINE void Device::releaseProfilingLockKHR() const VULKAN_HPP_NOEXCEPT
21527 {
21528 VULKAN_HPP_ASSERT( getDispatcher()->vkReleaseProfilingLockKHR && "Function <vkReleaseProfilingLockKHR> requires <VK_KHR_performance_query>" );
21529
21530 getDispatcher()->vkReleaseProfilingLockKHR( static_cast<VkDevice>( m_device ) );
21531 }
21532
21533 //=== VK_KHR_get_surface_capabilities2 ===
21534 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2KHR, see
21535 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html
21536 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceCapabilities2KHR(
21537 PhysicalDeviceSurfaceInfo2KHR const * pSurfaceInfo, SurfaceCapabilities2KHR * pSurfaceCapabilities ) const VULKAN_HPP_NOEXCEPT
21538 {
21539 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilities2KHR &&
21540 "Function <vkGetPhysicalDeviceSurfaceCapabilities2KHR> requires <VK_KHR_get_surface_capabilities2>" );
21541 return static_cast<Result>(
21542 getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilities2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21543 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( pSurfaceInfo ),
21544 reinterpret_cast<VkSurfaceCapabilities2KHR *>( pSurfaceCapabilities ) ) );
21545 }
21546
21547 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2KHR, see
21548 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html
21549 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceCapabilities2KHR>::type
21550 PhysicalDevice::getSurfaceCapabilities2KHR( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo ) const
21551 {
21552 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilities2KHR &&
21553 "Function <vkGetPhysicalDeviceSurfaceCapabilities2KHR> requires <VK_KHR_get_surface_capabilities2>" );
21554
21555 SurfaceCapabilities2KHR surfaceCapabilities;
21556 Result result = static_cast<Result>(
21557 getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilities2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21558 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
21559 reinterpret_cast<VkSurfaceCapabilities2KHR *>( &surfaceCapabilities ) ) );
21560 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" );
21561
21562 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( surfaceCapabilities ) );
21563 }
21564
21565 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2KHR, see
21566 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html
21567 template <typename X, typename Y, typename... Z>
21568 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
21569 PhysicalDevice::getSurfaceCapabilities2KHR( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo ) const
21570 {
21571 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilities2KHR &&
21572 "Function <vkGetPhysicalDeviceSurfaceCapabilities2KHR> requires <VK_KHR_get_surface_capabilities2>" );
21573
21574 StructureChain<X, Y, Z...> structureChain;
21575 SurfaceCapabilities2KHR & surfaceCapabilities = structureChain.template get<SurfaceCapabilities2KHR>();
21576 Result result = static_cast<Result>(
21577 getDispatcher()->vkGetPhysicalDeviceSurfaceCapabilities2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21578 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
21579 reinterpret_cast<VkSurfaceCapabilities2KHR *>( &surfaceCapabilities ) ) );
21580 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" );
21581
21582 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( structureChain ) );
21583 }
21584
21585 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
21586 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
21587 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SurfaceFormat2KHR>>::type
21588 PhysicalDevice::getSurfaceFormats2KHR( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo ) const
21589 {
21590 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSurfaceFormats2KHR &&
21591 "Function <vkGetPhysicalDeviceSurfaceFormats2KHR> requires <VK_KHR_get_surface_capabilities2>" );
21592
21593 std::vector<SurfaceFormat2KHR> surfaceFormats;
21594 uint32_t surfaceFormatCount;
21595 Result result;
21596 do
21597 {
21598 result = static_cast<Result>(
21599 getDispatcher()->vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21600 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
21601 &surfaceFormatCount,
21602 nullptr ) );
21603 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
21604 {
21605 surfaceFormats.resize( surfaceFormatCount );
21606 result = static_cast<Result>(
21607 getDispatcher()->vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21608 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
21609 &surfaceFormatCount,
21610 reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) ) );
21611 }
21612 } while ( result == Result::eIncomplete );
21613 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormats2KHR" );
21614 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
21615 if ( surfaceFormatCount < surfaceFormats.size() )
21616 {
21617 surfaceFormats.resize( surfaceFormatCount );
21618 }
21619 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( surfaceFormats ) );
21620 }
21621
21622 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
21623 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
21624 template <typename StructureChain>
21625 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain>>::type
21626 PhysicalDevice::getSurfaceFormats2KHR( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo ) const
21627 {
21628 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSurfaceFormats2KHR &&
21629 "Function <vkGetPhysicalDeviceSurfaceFormats2KHR> requires <VK_KHR_get_surface_capabilities2>" );
21630
21631 std::vector<StructureChain> structureChains;
21632 std::vector<SurfaceFormat2KHR> surfaceFormats;
21633 uint32_t surfaceFormatCount;
21634 Result result;
21635 do
21636 {
21637 result = static_cast<Result>(
21638 getDispatcher()->vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21639 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
21640 &surfaceFormatCount,
21641 nullptr ) );
21642 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
21643 {
21644 structureChains.resize( surfaceFormatCount );
21645 surfaceFormats.resize( surfaceFormatCount );
21646 for ( uint32_t i = 0; i < surfaceFormatCount; i++ )
21647 {
21648 surfaceFormats[i].pNext = structureChains[i].template get<SurfaceFormat2KHR>().pNext;
21649 }
21650 result = static_cast<Result>(
21651 getDispatcher()->vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21652 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
21653 &surfaceFormatCount,
21654 reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) ) );
21655 }
21656 } while ( result == Result::eIncomplete );
21657 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormats2KHR" );
21658 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
21659 if ( surfaceFormatCount < surfaceFormats.size() )
21660 {
21661 structureChains.resize( surfaceFormatCount );
21662 }
21663 for ( uint32_t i = 0; i < surfaceFormatCount; i++ )
21664 {
21665 structureChains[i].template get<SurfaceFormat2KHR>() = surfaceFormats[i];
21666 }
21667 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( structureChains ) );
21668 }
21669
21670 //=== VK_KHR_get_display_properties2 ===
21671
21672 // wrapper function for command vkGetPhysicalDeviceDisplayProperties2KHR, see
21673 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayProperties2KHR.html
21674 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayProperties2KHR>>::type PhysicalDevice::getDisplayProperties2KHR() const
21675 {
21676 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceDisplayProperties2KHR &&
21677 "Function <vkGetPhysicalDeviceDisplayProperties2KHR> requires <VK_KHR_get_display_properties2>" );
21678
21679 std::vector<DisplayProperties2KHR> properties;
21680 uint32_t propertyCount;
21681 Result result;
21682 do
21683 {
21684 result = static_cast<Result>(
21685 getDispatcher()->vkGetPhysicalDeviceDisplayProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, nullptr ) );
21686 if ( ( result == Result::eSuccess ) && propertyCount )
21687 {
21688 properties.resize( propertyCount );
21689 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceDisplayProperties2KHR(
21690 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkDisplayProperties2KHR *>( properties.data() ) ) );
21691 }
21692 } while ( result == Result::eIncomplete );
21693 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getDisplayProperties2KHR" );
21694 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
21695 if ( propertyCount < properties.size() )
21696 {
21697 properties.resize( propertyCount );
21698 }
21699 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
21700 }
21701
21702 // wrapper function for command vkGetPhysicalDeviceDisplayPlaneProperties2KHR, see
21703 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlaneProperties2KHR.html
21704 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPlaneProperties2KHR>>::type
21705 PhysicalDevice::getDisplayPlaneProperties2KHR() const
21706 {
21707 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceDisplayPlaneProperties2KHR &&
21708 "Function <vkGetPhysicalDeviceDisplayPlaneProperties2KHR> requires <VK_KHR_get_display_properties2>" );
21709
21710 std::vector<DisplayPlaneProperties2KHR> properties;
21711 uint32_t propertyCount;
21712 Result result;
21713 do
21714 {
21715 result = static_cast<Result>(
21716 getDispatcher()->vkGetPhysicalDeviceDisplayPlaneProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, nullptr ) );
21717 if ( ( result == Result::eSuccess ) && propertyCount )
21718 {
21719 properties.resize( propertyCount );
21720 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceDisplayPlaneProperties2KHR(
21721 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkDisplayPlaneProperties2KHR *>( properties.data() ) ) );
21722 }
21723 } while ( result == Result::eIncomplete );
21724 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneProperties2KHR" );
21725 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
21726 if ( propertyCount < properties.size() )
21727 {
21728 properties.resize( propertyCount );
21729 }
21730 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
21731 }
21732
21733 // wrapper function for command vkGetDisplayModeProperties2KHR, see
21734 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
21735 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayModeProperties2KHR>>::type DisplayKHR::getModeProperties2() const
21736 {
21737 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDisplayModeProperties2KHR &&
21738 "Function <vkGetDisplayModeProperties2KHR> requires <VK_KHR_get_display_properties2>" );
21739
21740 std::vector<DisplayModeProperties2KHR> properties;
21741 uint32_t propertyCount;
21742 Result result;
21743 do
21744 {
21745 result = static_cast<Result>( getDispatcher()->vkGetDisplayModeProperties2KHR(
21746 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( m_displayKHR ), &propertyCount, nullptr ) );
21747 if ( ( result == Result::eSuccess ) && propertyCount )
21748 {
21749 properties.resize( propertyCount );
21750 result =
21751 static_cast<Result>( getDispatcher()->vkGetDisplayModeProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21752 static_cast<VkDisplayKHR>( m_displayKHR ),
21753 &propertyCount,
21754 reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) ) );
21755 }
21756 } while ( result == Result::eIncomplete );
21757 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::DisplayKHR::getModeProperties2" );
21758 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
21759 if ( propertyCount < properties.size() )
21760 {
21761 properties.resize( propertyCount );
21762 }
21763 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
21764 }
21765
21766 // wrapper function for command vkGetDisplayModeProperties2KHR, see
21767 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
21768 template <typename StructureChain>
21769 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain>>::type DisplayKHR::getModeProperties2() const
21770 {
21771 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDisplayModeProperties2KHR &&
21772 "Function <vkGetDisplayModeProperties2KHR> requires <VK_KHR_get_display_properties2>" );
21773
21774 std::vector<StructureChain> structureChains;
21775 std::vector<DisplayModeProperties2KHR> properties;
21776 uint32_t propertyCount;
21777 Result result;
21778 do
21779 {
21780 result = static_cast<Result>( getDispatcher()->vkGetDisplayModeProperties2KHR(
21781 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( m_displayKHR ), &propertyCount, nullptr ) );
21782 if ( ( result == Result::eSuccess ) && propertyCount )
21783 {
21784 structureChains.resize( propertyCount );
21785 properties.resize( propertyCount );
21786 for ( uint32_t i = 0; i < propertyCount; i++ )
21787 {
21788 properties[i].pNext = structureChains[i].template get<DisplayModeProperties2KHR>().pNext;
21789 }
21790 result =
21791 static_cast<Result>( getDispatcher()->vkGetDisplayModeProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21792 static_cast<VkDisplayKHR>( m_displayKHR ),
21793 &propertyCount,
21794 reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) ) );
21795 }
21796 } while ( result == Result::eIncomplete );
21797 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::DisplayKHR::getModeProperties2" );
21798 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
21799 if ( propertyCount < properties.size() )
21800 {
21801 structureChains.resize( propertyCount );
21802 }
21803 for ( uint32_t i = 0; i < propertyCount; i++ )
21804 {
21805 structureChains[i].template get<DisplayModeProperties2KHR>() = properties[i];
21806 }
21807 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( structureChains ) );
21808 }
21809
21810 // wrapper function for command vkGetDisplayPlaneCapabilities2KHR, see
21811 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneCapabilities2KHR.html
21812 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayPlaneCapabilities2KHR>::type
21813 PhysicalDevice::getDisplayPlaneCapabilities2KHR( DisplayPlaneInfo2KHR const & displayPlaneInfo ) const
21814 {
21815 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDisplayPlaneCapabilities2KHR &&
21816 "Function <vkGetDisplayPlaneCapabilities2KHR> requires <VK_KHR_get_display_properties2>" );
21817
21818 DisplayPlaneCapabilities2KHR capabilities;
21819 Result result =
21820 static_cast<Result>( getDispatcher()->vkGetDisplayPlaneCapabilities2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21821 reinterpret_cast<VkDisplayPlaneInfo2KHR const *>( &displayPlaneInfo ),
21822 reinterpret_cast<VkDisplayPlaneCapabilities2KHR *>( &capabilities ) ) );
21823 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneCapabilities2KHR" );
21824
21825 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( capabilities ) );
21826 }
21827
21828 # if defined( VK_USE_PLATFORM_IOS_MVK )
21829 //=== VK_MVK_ios_surface ===
21830
21831 // wrapper function for command vkCreateIOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIOSSurfaceMVK.html
21832 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
21833 Instance::createIOSSurfaceMVK( IOSSurfaceCreateInfoMVK const & createInfo,
21834 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
21835 {
21836 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateIOSSurfaceMVK && "Function <vkCreateIOSSurfaceMVK> requires <VK_MVK_ios_surface>" );
21837
21838 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
21839 Result result = static_cast<Result>( getDispatcher()->vkCreateIOSSurfaceMVK( static_cast<VkInstance>( m_instance ),
21840 reinterpret_cast<VkIOSSurfaceCreateInfoMVK const *>( &createInfo ),
21841 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
21842 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
21843 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createIOSSurfaceMVK" );
21844 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
21845 }
21846 # endif /*VK_USE_PLATFORM_IOS_MVK*/
21847
21848 # if defined( VK_USE_PLATFORM_MACOS_MVK )
21849 //=== VK_MVK_macos_surface ===
21850
21851 // wrapper function for command vkCreateMacOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMacOSSurfaceMVK.html
21852 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
21853 Instance::createMacOSSurfaceMVK( MacOSSurfaceCreateInfoMVK const & createInfo,
21854 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
21855 {
21856 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateMacOSSurfaceMVK && "Function <vkCreateMacOSSurfaceMVK> requires <VK_MVK_macos_surface>" );
21857
21858 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
21859 Result result = static_cast<Result>( getDispatcher()->vkCreateMacOSSurfaceMVK( static_cast<VkInstance>( m_instance ),
21860 reinterpret_cast<VkMacOSSurfaceCreateInfoMVK const *>( &createInfo ),
21861 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
21862 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
21863 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createMacOSSurfaceMVK" );
21864 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
21865 }
21866 # endif /*VK_USE_PLATFORM_MACOS_MVK*/
21867
21868 //=== VK_EXT_debug_utils ===
21869
21870 // wrapper function for command vkSetDebugUtilsObjectNameEXT, see
21871 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectNameEXT.html
21872 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setDebugUtilsObjectNameEXT( DebugUtilsObjectNameInfoEXT const & nameInfo ) const
21873 {
21874 VULKAN_HPP_ASSERT( getDispatcher()->vkSetDebugUtilsObjectNameEXT && "Function <vkSetDebugUtilsObjectNameEXT> requires <VK_EXT_debug_utils>" );
21875
21876 Result result = static_cast<Result>( getDispatcher()->vkSetDebugUtilsObjectNameEXT(
21877 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDebugUtilsObjectNameInfoEXT const *>( &nameInfo ) ) );
21878 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::setDebugUtilsObjectNameEXT" );
21879
21880 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
21881 }
21882
21883 // wrapper function for command vkSetDebugUtilsObjectNameEXT, see
21884 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectNameEXT.html
21885 template <typename HandleType>
21886 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setDebugUtilsObjectNameEXT( HandleType const & handle, std::string const & name ) const
21887 {
21888 VULKAN_HPP_STATIC_ASSERT( VULKAN_HPP_NAMESPACE::isVulkanHandleType<HandleType>::value, "HandleType must be a Vulkan handle type" );
21889 // It might be, that neither constructors, nor setters, nor designated initializers are available... need to explicitly set member by member
21890 VULKAN_HPP_NAMESPACE::DebugUtilsObjectNameInfoEXT nameInfo;
21891 nameInfo.objectType = handle.objectType;
21892 # if ( VK_USE_64_BIT_PTR_DEFINES == 1 )
21893 nameInfo.objectHandle = reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) );
21894 # else
21895 nameInfo.objectHandle = static_cast<typename HandleType::CType>( handle );
21896 # endif
21897 nameInfo.pObjectName = name.c_str();
21898 return setDebugUtilsObjectNameEXT( nameInfo );
21899 }
21900
21901 // wrapper function for command vkSetDebugUtilsObjectTagEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectTagEXT.html
21902 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setDebugUtilsObjectTagEXT( DebugUtilsObjectTagInfoEXT const & tagInfo ) const
21903 {
21904 VULKAN_HPP_ASSERT( getDispatcher()->vkSetDebugUtilsObjectTagEXT && "Function <vkSetDebugUtilsObjectTagEXT> requires <VK_EXT_debug_utils>" );
21905
21906 Result result = static_cast<Result>(
21907 getDispatcher()->vkSetDebugUtilsObjectTagEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkDebugUtilsObjectTagInfoEXT const *>( &tagInfo ) ) );
21908 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::setDebugUtilsObjectTagEXT" );
21909
21910 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
21911 }
21912
21913 // wrapper function for command vkSetDebugUtilsObjectTagEXT, see
21914 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectTagEXT.html
21915 template <typename HandleType, typename TagType>
21916 VULKAN_HPP_INLINE typename ResultValueType<void>::type
21917 Device::setDebugUtilsObjectTagEXT( HandleType const & handle, uint64_t name, TagType const & tag ) const
21918 {
21919 VULKAN_HPP_STATIC_ASSERT( VULKAN_HPP_NAMESPACE::isVulkanHandleType<HandleType>::value, "HandleType must be a Vulkan handle type" );
21920 // It might be, that neither constructors, nor setters, nor designated initializers are available... need to explicitly set member by member
21921 VULKAN_HPP_NAMESPACE::DebugUtilsObjectTagInfoEXT tagInfo;
21922 tagInfo.objectType = handle.objectType;
21923 # if ( VK_USE_64_BIT_PTR_DEFINES == 1 )
21924 tagInfo.objectHandle = reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) );
21925 # else
21926 tagInfo.objectHandle = static_cast<typename HandleType::CType>( handle );
21927 # endif
21928 tagInfo.tagName = name;
21929 tagInfo.tagSize = sizeof( TagType );
21930 tagInfo.pTag = &tag;
21931 return setDebugUtilsObjectTagEXT( tagInfo );
21932 }
21933
21934 // wrapper function for command vkQueueBeginDebugUtilsLabelEXT, see
21935 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueBeginDebugUtilsLabelEXT.html
21936 VULKAN_HPP_INLINE void Queue::beginDebugUtilsLabelEXT( DebugUtilsLabelEXT const & labelInfo ) const VULKAN_HPP_NOEXCEPT
21937 {
21938 VULKAN_HPP_ASSERT( getDispatcher()->vkQueueBeginDebugUtilsLabelEXT && "Function <vkQueueBeginDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
21939
21940 getDispatcher()->vkQueueBeginDebugUtilsLabelEXT( static_cast<VkQueue>( m_queue ), reinterpret_cast<VkDebugUtilsLabelEXT const *>( &labelInfo ) );
21941 }
21942
21943 // wrapper function for command vkQueueEndDebugUtilsLabelEXT, see
21944 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueEndDebugUtilsLabelEXT.html
21945 VULKAN_HPP_INLINE void Queue::endDebugUtilsLabelEXT() const VULKAN_HPP_NOEXCEPT
21946 {
21947 VULKAN_HPP_ASSERT( getDispatcher()->vkQueueEndDebugUtilsLabelEXT && "Function <vkQueueEndDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
21948
21949 getDispatcher()->vkQueueEndDebugUtilsLabelEXT( static_cast<VkQueue>( m_queue ) );
21950 }
21951
21952 // wrapper function for command vkQueueInsertDebugUtilsLabelEXT, see
21953 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueInsertDebugUtilsLabelEXT.html
21954 VULKAN_HPP_INLINE void Queue::insertDebugUtilsLabelEXT( DebugUtilsLabelEXT const & labelInfo ) const VULKAN_HPP_NOEXCEPT
21955 {
21956 VULKAN_HPP_ASSERT( getDispatcher()->vkQueueInsertDebugUtilsLabelEXT && "Function <vkQueueInsertDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
21957
21958 getDispatcher()->vkQueueInsertDebugUtilsLabelEXT( static_cast<VkQueue>( m_queue ), reinterpret_cast<VkDebugUtilsLabelEXT const *>( &labelInfo ) );
21959 }
21960
21961 // wrapper function for command vkCmdBeginDebugUtilsLabelEXT, see
21962 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginDebugUtilsLabelEXT.html
21963 VULKAN_HPP_INLINE void CommandBuffer::beginDebugUtilsLabelEXT( DebugUtilsLabelEXT const & labelInfo ) const VULKAN_HPP_NOEXCEPT
21964 {
21965 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginDebugUtilsLabelEXT && "Function <vkCmdBeginDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
21966
21967 getDispatcher()->vkCmdBeginDebugUtilsLabelEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
21968 reinterpret_cast<VkDebugUtilsLabelEXT const *>( &labelInfo ) );
21969 }
21970
21971 // wrapper function for command vkCmdEndDebugUtilsLabelEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndDebugUtilsLabelEXT.html
21972 VULKAN_HPP_INLINE void CommandBuffer::endDebugUtilsLabelEXT() const VULKAN_HPP_NOEXCEPT
21973 {
21974 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndDebugUtilsLabelEXT && "Function <vkCmdEndDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
21975
21976 getDispatcher()->vkCmdEndDebugUtilsLabelEXT( static_cast<VkCommandBuffer>( m_commandBuffer ) );
21977 }
21978
21979 // wrapper function for command vkCmdInsertDebugUtilsLabelEXT, see
21980 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdInsertDebugUtilsLabelEXT.html
21981 VULKAN_HPP_INLINE void CommandBuffer::insertDebugUtilsLabelEXT( DebugUtilsLabelEXT const & labelInfo ) const VULKAN_HPP_NOEXCEPT
21982 {
21983 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdInsertDebugUtilsLabelEXT && "Function <vkCmdInsertDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
21984
21985 getDispatcher()->vkCmdInsertDebugUtilsLabelEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
21986 reinterpret_cast<VkDebugUtilsLabelEXT const *>( &labelInfo ) );
21987 }
21988
21989 // wrapper function for command vkCreateDebugUtilsMessengerEXT, see
21990 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugUtilsMessengerEXT.html
21991 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DebugUtilsMessengerEXT>::type
21992 Instance::createDebugUtilsMessengerEXT( DebugUtilsMessengerCreateInfoEXT const & createInfo,
21993 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
21994 {
21995 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDebugUtilsMessengerEXT && "Function <vkCreateDebugUtilsMessengerEXT> requires <VK_EXT_debug_utils>" );
21996
21997 VULKAN_HPP_NAMESPACE::DebugUtilsMessengerEXT messenger;
21998 Result result =
21999 static_cast<Result>( getDispatcher()->vkCreateDebugUtilsMessengerEXT( static_cast<VkInstance>( m_instance ),
22000 reinterpret_cast<VkDebugUtilsMessengerCreateInfoEXT const *>( &createInfo ),
22001 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
22002 reinterpret_cast<VkDebugUtilsMessengerEXT *>( &messenger ) ) );
22003 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createDebugUtilsMessengerEXT" );
22004 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
22005 result, DebugUtilsMessengerEXT( *this, *reinterpret_cast<VkDebugUtilsMessengerEXT *>( &messenger ), allocator ) );
22006 }
22007
22008 // wrapper function for command vkSubmitDebugUtilsMessageEXT, see
22009 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSubmitDebugUtilsMessageEXT.html
22010 VULKAN_HPP_INLINE void Instance::submitDebugUtilsMessageEXT( DebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
22011 DebugUtilsMessageTypeFlagsEXT messageTypes,
22012 DebugUtilsMessengerCallbackDataEXT const & callbackData ) const VULKAN_HPP_NOEXCEPT
22013 {
22014 VULKAN_HPP_ASSERT( getDispatcher()->vkSubmitDebugUtilsMessageEXT && "Function <vkSubmitDebugUtilsMessageEXT> requires <VK_EXT_debug_utils>" );
22015
22016 getDispatcher()->vkSubmitDebugUtilsMessageEXT( static_cast<VkInstance>( m_instance ),
22017 static_cast<VkDebugUtilsMessageSeverityFlagBitsEXT>( messageSeverity ),
22018 static_cast<VkDebugUtilsMessageTypeFlagsEXT>( messageTypes ),
22019 reinterpret_cast<VkDebugUtilsMessengerCallbackDataEXT const *>( &callbackData ) );
22020 }
22021
22022 # if defined( VK_USE_PLATFORM_ANDROID_KHR )
22023 //=== VK_ANDROID_external_memory_android_hardware_buffer ===
22024
22025 // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see
22026 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html
22027 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<AndroidHardwareBufferPropertiesANDROID>::type
22028 Device::getAndroidHardwareBufferPropertiesANDROID( struct AHardwareBuffer const & buffer ) const
22029 {
22030 VULKAN_HPP_ASSERT( getDispatcher()->vkGetAndroidHardwareBufferPropertiesANDROID &&
22031 "Function <vkGetAndroidHardwareBufferPropertiesANDROID> requires <VK_ANDROID_external_memory_android_hardware_buffer>" );
22032
22033 AndroidHardwareBufferPropertiesANDROID properties;
22034 Result result = static_cast<Result>( getDispatcher()->vkGetAndroidHardwareBufferPropertiesANDROID(
22035 static_cast<VkDevice>( m_device ), &buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID *>( &properties ) ) );
22036 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getAndroidHardwareBufferPropertiesANDROID" );
22037
22038 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
22039 }
22040
22041 // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see
22042 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html
22043 template <typename X, typename Y, typename... Z>
22044 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
22045 Device::getAndroidHardwareBufferPropertiesANDROID( struct AHardwareBuffer const & buffer ) const
22046 {
22047 VULKAN_HPP_ASSERT( getDispatcher()->vkGetAndroidHardwareBufferPropertiesANDROID &&
22048 "Function <vkGetAndroidHardwareBufferPropertiesANDROID> requires <VK_ANDROID_external_memory_android_hardware_buffer>" );
22049
22050 StructureChain<X, Y, Z...> structureChain;
22051 AndroidHardwareBufferPropertiesANDROID & properties = structureChain.template get<AndroidHardwareBufferPropertiesANDROID>();
22052 Result result = static_cast<Result>( getDispatcher()->vkGetAndroidHardwareBufferPropertiesANDROID(
22053 static_cast<VkDevice>( m_device ), &buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID *>( &properties ) ) );
22054 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getAndroidHardwareBufferPropertiesANDROID" );
22055
22056 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( structureChain ) );
22057 }
22058
22059 // wrapper function for command vkGetMemoryAndroidHardwareBufferANDROID, see
22060 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryAndroidHardwareBufferANDROID.html
22061 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<struct AHardwareBuffer *>::type
22062 Device::getMemoryAndroidHardwareBufferANDROID( MemoryGetAndroidHardwareBufferInfoANDROID const & info ) const
22063 {
22064 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryAndroidHardwareBufferANDROID &&
22065 "Function <vkGetMemoryAndroidHardwareBufferANDROID> requires <VK_ANDROID_external_memory_android_hardware_buffer>" );
22066
22067 struct AHardwareBuffer * buffer;
22068 Result result = static_cast<Result>( getDispatcher()->vkGetMemoryAndroidHardwareBufferANDROID(
22069 static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryGetAndroidHardwareBufferInfoANDROID const *>( &info ), &buffer ) );
22070 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getMemoryAndroidHardwareBufferANDROID" );
22071
22072 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( buffer ) );
22073 }
22074 # endif /*VK_USE_PLATFORM_ANDROID_KHR*/
22075
22076 # if defined( VK_ENABLE_BETA_EXTENSIONS )
22077 //=== VK_AMDX_shader_enqueue ===
22078
22079 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
22080 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
22081 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Pipeline>>::type
22082 Device::createExecutionGraphPipelinesAMDX( Optional<PipelineCache const> const & pipelineCache,
22083 ArrayProxy<ExecutionGraphPipelineCreateInfoAMDX> const & createInfos,
22084 Optional<AllocationCallbacks const> allocator ) const
22085 {
22086 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateExecutionGraphPipelinesAMDX &&
22087 "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
22088
22089 std::vector<VULKAN_HPP_NAMESPACE::Pipeline> pipelines( createInfos.size() );
22090 Result result = static_cast<Result>(
22091 getDispatcher()->vkCreateExecutionGraphPipelinesAMDX( static_cast<VkDevice>( m_device ),
22092 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
22093 createInfos.size(),
22094 reinterpret_cast<VkExecutionGraphPipelineCreateInfoAMDX const *>( createInfos.data() ),
22095 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
22096 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
22097 VULKAN_HPP_NAMESPACE::detail::resultCheck(
22098 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createExecutionGraphPipelinesAMDX", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
22099 std::vector<Pipeline> pipelinesRAII;
22100 if ( result == Result::eSuccess )
22101 {
22102 pipelinesRAII.reserve( pipelines.size() );
22103 for ( auto & pipeline : pipelines )
22104 {
22105 pipelinesRAII.emplace_back( *this, *reinterpret_cast<VkPipeline *>( &pipeline ), allocator, result );
22106 }
22107 }
22108 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( pipelinesRAII ) );
22109 }
22110
22111 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
22112 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
22113 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Pipeline>::type
22114 Device::createExecutionGraphPipelineAMDX( Optional<PipelineCache const> const & pipelineCache,
22115 ExecutionGraphPipelineCreateInfoAMDX const & createInfo,
22116 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
22117 {
22118 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateExecutionGraphPipelinesAMDX &&
22119 "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
22120
22121 VULKAN_HPP_NAMESPACE::Pipeline pipeline;
22122 Result result = static_cast<Result>(
22123 getDispatcher()->vkCreateExecutionGraphPipelinesAMDX( static_cast<VkDevice>( m_device ),
22124 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
22125 1,
22126 reinterpret_cast<VkExecutionGraphPipelineCreateInfoAMDX const *>( &createInfo ),
22127 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
22128 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
22129 VULKAN_HPP_NAMESPACE::detail::resultCheck(
22130 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createExecutionGraphPipelineAMDX", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
22131 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Pipeline( *this, *reinterpret_cast<VkPipeline *>( &pipeline ), allocator, result ) );
22132 }
22133
22134 // wrapper function for command vkGetExecutionGraphPipelineScratchSizeAMDX, see
22135 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExecutionGraphPipelineScratchSizeAMDX.html
22136 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ExecutionGraphPipelineScratchSizeAMDX>::type
22137 Pipeline::getExecutionGraphScratchSizeAMDX() const
22138 {
22139 VULKAN_HPP_ASSERT( getDispatcher()->vkGetExecutionGraphPipelineScratchSizeAMDX &&
22140 "Function <vkGetExecutionGraphPipelineScratchSizeAMDX> requires <VK_AMDX_shader_enqueue>" );
22141
22142 ExecutionGraphPipelineScratchSizeAMDX sizeInfo;
22143 Result result = static_cast<Result>( getDispatcher()->vkGetExecutionGraphPipelineScratchSizeAMDX(
22144 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( m_pipeline ), reinterpret_cast<VkExecutionGraphPipelineScratchSizeAMDX *>( &sizeInfo ) ) );
22145 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Pipeline::getExecutionGraphScratchSizeAMDX" );
22146
22147 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( sizeInfo ) );
22148 }
22149
22150 // wrapper function for command vkGetExecutionGraphPipelineNodeIndexAMDX, see
22151 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExecutionGraphPipelineNodeIndexAMDX.html
22152 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint32_t>::type
22153 Pipeline::getExecutionGraphNodeIndexAMDX( PipelineShaderStageNodeCreateInfoAMDX const & nodeInfo ) const
22154 {
22155 VULKAN_HPP_ASSERT( getDispatcher()->vkGetExecutionGraphPipelineNodeIndexAMDX &&
22156 "Function <vkGetExecutionGraphPipelineNodeIndexAMDX> requires <VK_AMDX_shader_enqueue>" );
22157
22158 uint32_t nodeIndex;
22159 Result result = static_cast<Result>(
22160 getDispatcher()->vkGetExecutionGraphPipelineNodeIndexAMDX( static_cast<VkDevice>( m_device ),
22161 static_cast<VkPipeline>( m_pipeline ),
22162 reinterpret_cast<VkPipelineShaderStageNodeCreateInfoAMDX const *>( &nodeInfo ),
22163 &nodeIndex ) );
22164 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Pipeline::getExecutionGraphNodeIndexAMDX" );
22165
22166 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( nodeIndex ) );
22167 }
22168
22169 // wrapper function for command vkCmdInitializeGraphScratchMemoryAMDX, see
22170 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdInitializeGraphScratchMemoryAMDX.html
22171 VULKAN_HPP_INLINE void CommandBuffer::initializeGraphScratchMemoryAMDX( VULKAN_HPP_NAMESPACE::Pipeline executionGraph,
22172 DeviceAddress scratch,
22173 DeviceSize scratchSize ) const VULKAN_HPP_NOEXCEPT
22174 {
22175 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdInitializeGraphScratchMemoryAMDX &&
22176 "Function <vkCmdInitializeGraphScratchMemoryAMDX> requires <VK_AMDX_shader_enqueue>" );
22177
22178 getDispatcher()->vkCmdInitializeGraphScratchMemoryAMDX( static_cast<VkCommandBuffer>( m_commandBuffer ),
22179 static_cast<VkPipeline>( executionGraph ),
22180 static_cast<VkDeviceAddress>( scratch ),
22181 static_cast<VkDeviceSize>( scratchSize ) );
22182 }
22183
22184 // wrapper function for command vkCmdDispatchGraphAMDX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphAMDX.html
22185 VULKAN_HPP_INLINE void
22186 CommandBuffer::dispatchGraphAMDX( DeviceAddress scratch, DeviceSize scratchSize, DispatchGraphCountInfoAMDX const & countInfo ) const VULKAN_HPP_NOEXCEPT
22187 {
22188 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDispatchGraphAMDX && "Function <vkCmdDispatchGraphAMDX> requires <VK_AMDX_shader_enqueue>" );
22189
22190 getDispatcher()->vkCmdDispatchGraphAMDX( static_cast<VkCommandBuffer>( m_commandBuffer ),
22191 static_cast<VkDeviceAddress>( scratch ),
22192 static_cast<VkDeviceSize>( scratchSize ),
22193 reinterpret_cast<VkDispatchGraphCountInfoAMDX const *>( &countInfo ) );
22194 }
22195
22196 // wrapper function for command vkCmdDispatchGraphIndirectAMDX, see
22197 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphIndirectAMDX.html
22198 VULKAN_HPP_INLINE void CommandBuffer::dispatchGraphIndirectAMDX( DeviceAddress scratch,
22199 DeviceSize scratchSize,
22200 DispatchGraphCountInfoAMDX const & countInfo ) const VULKAN_HPP_NOEXCEPT
22201 {
22202 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDispatchGraphIndirectAMDX && "Function <vkCmdDispatchGraphIndirectAMDX> requires <VK_AMDX_shader_enqueue>" );
22203
22204 getDispatcher()->vkCmdDispatchGraphIndirectAMDX( static_cast<VkCommandBuffer>( m_commandBuffer ),
22205 static_cast<VkDeviceAddress>( scratch ),
22206 static_cast<VkDeviceSize>( scratchSize ),
22207 reinterpret_cast<VkDispatchGraphCountInfoAMDX const *>( &countInfo ) );
22208 }
22209
22210 // wrapper function for command vkCmdDispatchGraphIndirectCountAMDX, see
22211 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphIndirectCountAMDX.html
22212 VULKAN_HPP_INLINE void
22213 CommandBuffer::dispatchGraphIndirectCountAMDX( DeviceAddress scratch, DeviceSize scratchSize, DeviceAddress countInfo ) const VULKAN_HPP_NOEXCEPT
22214 {
22215 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDispatchGraphIndirectCountAMDX &&
22216 "Function <vkCmdDispatchGraphIndirectCountAMDX> requires <VK_AMDX_shader_enqueue>" );
22217
22218 getDispatcher()->vkCmdDispatchGraphIndirectCountAMDX( static_cast<VkCommandBuffer>( m_commandBuffer ),
22219 static_cast<VkDeviceAddress>( scratch ),
22220 static_cast<VkDeviceSize>( scratchSize ),
22221 static_cast<VkDeviceAddress>( countInfo ) );
22222 }
22223 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
22224
22225 //=== VK_EXT_descriptor_heap ===
22226
22227 // wrapper function for command vkWriteSamplerDescriptorsEXT, see
22228 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteSamplerDescriptorsEXT.html
22229 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::writeSamplerDescriptorsEXT( ArrayProxy<SamplerCreateInfo const> const & samplers,
22230 ArrayProxy<HostAddressRangeEXT const> const & descriptors ) const
22231 {
22232 VULKAN_HPP_ASSERT( getDispatcher()->vkWriteSamplerDescriptorsEXT && "Function <vkWriteSamplerDescriptorsEXT> requires <VK_EXT_descriptor_heap>" );
22233 # ifdef VULKAN_HPP_NO_EXCEPTIONS
22234 VULKAN_HPP_ASSERT( samplers.size() == descriptors.size() );
22235 # else
22236 if ( samplers.size() != descriptors.size() )
22237 {
22238 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::writeSamplerDescriptorsEXT: samplers.size() != descriptors.size()" );
22239 }
22240 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
22241
22242 Result result =
22243 static_cast<Result>( getDispatcher()->vkWriteSamplerDescriptorsEXT( static_cast<VkDevice>( m_device ),
22244 samplers.size(),
22245 reinterpret_cast<VkSamplerCreateInfo const *>( samplers.data() ),
22246 reinterpret_cast<VkHostAddressRangeEXT const *>( descriptors.data() ) ) );
22247 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::writeSamplerDescriptorsEXT" );
22248
22249 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
22250 }
22251
22252 // wrapper function for command vkWriteResourceDescriptorsEXT, see
22253 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteResourceDescriptorsEXT.html
22254 VULKAN_HPP_INLINE typename ResultValueType<void>::type
22255 Device::writeResourceDescriptorsEXT( ArrayProxy<ResourceDescriptorInfoEXT const> const & resources,
22256 ArrayProxy<HostAddressRangeEXT const> const & descriptors ) const
22257 {
22258 VULKAN_HPP_ASSERT( getDispatcher()->vkWriteResourceDescriptorsEXT && "Function <vkWriteResourceDescriptorsEXT> requires <VK_EXT_descriptor_heap>" );
22259 # ifdef VULKAN_HPP_NO_EXCEPTIONS
22260 VULKAN_HPP_ASSERT( resources.size() == descriptors.size() );
22261 # else
22262 if ( resources.size() != descriptors.size() )
22263 {
22264 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::writeResourceDescriptorsEXT: resources.size() != descriptors.size()" );
22265 }
22266 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
22267
22268 Result result =
22269 static_cast<Result>( getDispatcher()->vkWriteResourceDescriptorsEXT( static_cast<VkDevice>( m_device ),
22270 resources.size(),
22271 reinterpret_cast<VkResourceDescriptorInfoEXT const *>( resources.data() ),
22272 reinterpret_cast<VkHostAddressRangeEXT const *>( descriptors.data() ) ) );
22273 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::writeResourceDescriptorsEXT" );
22274
22275 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
22276 }
22277
22278 // wrapper function for command vkCmdBindSamplerHeapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindSamplerHeapEXT.html
22279 VULKAN_HPP_INLINE void CommandBuffer::bindSamplerHeapEXT( BindHeapInfoEXT const & bindInfo ) const VULKAN_HPP_NOEXCEPT
22280 {
22281 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindSamplerHeapEXT && "Function <vkCmdBindSamplerHeapEXT> requires <VK_EXT_descriptor_heap>" );
22282
22283 getDispatcher()->vkCmdBindSamplerHeapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkBindHeapInfoEXT const *>( &bindInfo ) );
22284 }
22285
22286 // wrapper function for command vkCmdBindResourceHeapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindResourceHeapEXT.html
22287 VULKAN_HPP_INLINE void CommandBuffer::bindResourceHeapEXT( BindHeapInfoEXT const & bindInfo ) const VULKAN_HPP_NOEXCEPT
22288 {
22289 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindResourceHeapEXT && "Function <vkCmdBindResourceHeapEXT> requires <VK_EXT_descriptor_heap>" );
22290
22291 getDispatcher()->vkCmdBindResourceHeapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkBindHeapInfoEXT const *>( &bindInfo ) );
22292 }
22293
22294 // wrapper function for command vkCmdPushDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDataEXT.html
22295 VULKAN_HPP_INLINE void CommandBuffer::pushDataEXT( PushDataInfoEXT const & pushDataInfo ) const VULKAN_HPP_NOEXCEPT
22296 {
22297 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPushDataEXT && "Function <vkCmdPushDataEXT> requires <VK_EXT_descriptor_heap>" );
22298
22299 getDispatcher()->vkCmdPushDataEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkPushDataInfoEXT const *>( &pushDataInfo ) );
22300 }
22301
22302 // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see
22303 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html
22304 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getImageOpaqueCaptureDataEXT( uint32_t imageCount,
22305 VULKAN_HPP_NAMESPACE::Image const * pImages,
22306 HostAddressRangeEXT * pDatas ) const VULKAN_HPP_NOEXCEPT
22307 {
22308 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageOpaqueCaptureDataEXT && "Function <vkGetImageOpaqueCaptureDataEXT> requires <VK_EXT_descriptor_heap>" );
22309 return static_cast<Result>( getDispatcher()->vkGetImageOpaqueCaptureDataEXT(
22310 static_cast<VkDevice>( m_device ), imageCount, reinterpret_cast<VkImage const *>( pImages ), reinterpret_cast<VkHostAddressRangeEXT *>( pDatas ) ) );
22311 }
22312
22313 // wrapper function for command vkGetPhysicalDeviceDescriptorSizeEXT, see
22314 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDescriptorSizeEXT.html
22315 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceSize PhysicalDevice::getDescriptorSizeEXT( DescriptorType descriptorType ) const VULKAN_HPP_NOEXCEPT
22316 {
22317 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceDescriptorSizeEXT &&
22318 "Function <vkGetPhysicalDeviceDescriptorSizeEXT> requires <VK_EXT_descriptor_heap>" );
22319
22320 VkDeviceSize result = getDispatcher()->vkGetPhysicalDeviceDescriptorSizeEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
22321 static_cast<VkDescriptorType>( descriptorType ) );
22322
22323 return static_cast<DeviceSize>( result );
22324 }
22325
22326 // wrapper function for command vkRegisterCustomBorderColorEXT, see
22327 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterCustomBorderColorEXT.html
22328 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint32_t>::type
22329 Device::registerCustomBorderColorEXT( SamplerCustomBorderColorCreateInfoEXT const & borderColor, Bool32 requestIndex ) const
22330 {
22331 VULKAN_HPP_ASSERT( getDispatcher()->vkRegisterCustomBorderColorEXT && "Function <vkRegisterCustomBorderColorEXT> requires <VK_EXT_descriptor_heap>" );
22332
22333 uint32_t index;
22334 Result result =
22335 static_cast<Result>( getDispatcher()->vkRegisterCustomBorderColorEXT( static_cast<VkDevice>( m_device ),
22336 reinterpret_cast<VkSamplerCustomBorderColorCreateInfoEXT const *>( &borderColor ),
22337 static_cast<VkBool32>( requestIndex ),
22338 &index ) );
22339 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::registerCustomBorderColorEXT" );
22340
22341 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( index ) );
22342 }
22343
22344 // wrapper function for command vkUnregisterCustomBorderColorEXT, see
22345 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnregisterCustomBorderColorEXT.html
22346 VULKAN_HPP_INLINE void Device::unregisterCustomBorderColorEXT( uint32_t index ) const VULKAN_HPP_NOEXCEPT
22347 {
22348 VULKAN_HPP_ASSERT( getDispatcher()->vkUnregisterCustomBorderColorEXT && "Function <vkUnregisterCustomBorderColorEXT> requires <VK_EXT_descriptor_heap>" );
22349
22350 getDispatcher()->vkUnregisterCustomBorderColorEXT( static_cast<VkDevice>( m_device ), index );
22351 }
22352
22353 // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see
22354 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html
22355 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getTensorOpaqueCaptureDataARM( uint32_t tensorCount,
22356 VULKAN_HPP_NAMESPACE::TensorARM const * pTensors,
22357 HostAddressRangeEXT * pDatas ) const VULKAN_HPP_NOEXCEPT
22358 {
22359 VULKAN_HPP_ASSERT( getDispatcher()->vkGetTensorOpaqueCaptureDataARM && "Function <vkGetTensorOpaqueCaptureDataARM> requires <VK_EXT_descriptor_heap>" );
22360 return static_cast<Result>( getDispatcher()->vkGetTensorOpaqueCaptureDataARM( static_cast<VkDevice>( m_device ),
22361 tensorCount,
22362 reinterpret_cast<VkTensorARM const *>( pTensors ),
22363 reinterpret_cast<VkHostAddressRangeEXT *>( pDatas ) ) );
22364 }
22365
22366 //=== VK_EXT_sample_locations ===
22367
22368 // wrapper function for command vkCmdSetSampleLocationsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleLocationsEXT.html
22369 VULKAN_HPP_INLINE void CommandBuffer::setSampleLocationsEXT( SampleLocationsInfoEXT const & sampleLocationsInfo ) const VULKAN_HPP_NOEXCEPT
22370 {
22371 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetSampleLocationsEXT && "Function <vkCmdSetSampleLocationsEXT> requires <VK_EXT_sample_locations>" );
22372
22373 getDispatcher()->vkCmdSetSampleLocationsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
22374 reinterpret_cast<VkSampleLocationsInfoEXT const *>( &sampleLocationsInfo ) );
22375 }
22376
22377 // wrapper function for command vkGetPhysicalDeviceMultisamplePropertiesEXT, see
22378 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMultisamplePropertiesEXT.html
22379 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MultisamplePropertiesEXT
22380 PhysicalDevice::getMultisamplePropertiesEXT( SampleCountFlagBits samples ) const VULKAN_HPP_NOEXCEPT
22381 {
22382 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceMultisamplePropertiesEXT &&
22383 "Function <vkGetPhysicalDeviceMultisamplePropertiesEXT> requires <VK_EXT_sample_locations>" );
22384
22385 MultisamplePropertiesEXT multisampleProperties;
22386 getDispatcher()->vkGetPhysicalDeviceMultisamplePropertiesEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
22387 static_cast<VkSampleCountFlagBits>( samples ),
22388 reinterpret_cast<VkMultisamplePropertiesEXT *>( &multisampleProperties ) );
22389
22390 return multisampleProperties;
22391 }
22392
22393 //=== VK_KHR_get_memory_requirements2 ===
22394
22395 // wrapper function for command vkGetImageMemoryRequirements2KHR, see
22396 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2KHR.html
22397 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
22398 Device::getImageMemoryRequirements2KHR( ImageMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT
22399 {
22400 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageMemoryRequirements2KHR &&
22401 "Function <vkGetImageMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
22402
22403 MemoryRequirements2 memoryRequirements;
22404 getDispatcher()->vkGetImageMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
22405 reinterpret_cast<VkImageMemoryRequirementsInfo2 const *>( &info ),
22406 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
22407
22408 return memoryRequirements;
22409 }
22410
22411 // wrapper function for command vkGetImageMemoryRequirements2KHR, see
22412 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2KHR.html
22413 template <typename X, typename Y, typename... Z>
22414 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
22415 Device::getImageMemoryRequirements2KHR( ImageMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT
22416 {
22417 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageMemoryRequirements2KHR &&
22418 "Function <vkGetImageMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
22419
22420 StructureChain<X, Y, Z...> structureChain;
22421 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
22422 getDispatcher()->vkGetImageMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
22423 reinterpret_cast<VkImageMemoryRequirementsInfo2 const *>( &info ),
22424 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
22425
22426 return structureChain;
22427 }
22428
22429 // wrapper function for command vkGetBufferMemoryRequirements2KHR, see
22430 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2KHR.html
22431 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
22432 Device::getBufferMemoryRequirements2KHR( BufferMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT
22433 {
22434 VULKAN_HPP_ASSERT( getDispatcher()->vkGetBufferMemoryRequirements2KHR &&
22435 "Function <vkGetBufferMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
22436
22437 MemoryRequirements2 memoryRequirements;
22438 getDispatcher()->vkGetBufferMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
22439 reinterpret_cast<VkBufferMemoryRequirementsInfo2 const *>( &info ),
22440 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
22441
22442 return memoryRequirements;
22443 }
22444
22445 // wrapper function for command vkGetBufferMemoryRequirements2KHR, see
22446 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2KHR.html
22447 template <typename X, typename Y, typename... Z>
22448 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
22449 Device::getBufferMemoryRequirements2KHR( BufferMemoryRequirementsInfo2 const & info ) const VULKAN_HPP_NOEXCEPT
22450 {
22451 VULKAN_HPP_ASSERT( getDispatcher()->vkGetBufferMemoryRequirements2KHR &&
22452 "Function <vkGetBufferMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
22453
22454 StructureChain<X, Y, Z...> structureChain;
22455 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
22456 getDispatcher()->vkGetBufferMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
22457 reinterpret_cast<VkBufferMemoryRequirementsInfo2 const *>( &info ),
22458 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
22459
22460 return structureChain;
22461 }
22462
22463 // wrapper function for command vkGetImageSparseMemoryRequirements2KHR, see
22464 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2KHR.html
22465 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2>
22466 Device::getImageSparseMemoryRequirements2KHR( ImageSparseMemoryRequirementsInfo2 const & info ) const
22467 {
22468 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageSparseMemoryRequirements2KHR &&
22469 "Function <vkGetImageSparseMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
22470
22471 std::vector<SparseImageMemoryRequirements2> sparseMemoryRequirements;
22472 uint32_t sparseMemoryRequirementCount;
22473 getDispatcher()->vkGetImageSparseMemoryRequirements2KHR(
22474 static_cast<VkDevice>( m_device ), reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( &info ), &sparseMemoryRequirementCount, nullptr );
22475 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
22476 getDispatcher()->vkGetImageSparseMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
22477 reinterpret_cast<VkImageSparseMemoryRequirementsInfo2 const *>( &info ),
22478 &sparseMemoryRequirementCount,
22479 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
22480
22481 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
22482 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
22483 {
22484 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
22485 }
22486 return sparseMemoryRequirements;
22487 }
22488
22489 //=== VK_KHR_acceleration_structure ===
22490
22491 // wrapper function for command vkCreateAccelerationStructureKHR, see
22492 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureKHR.html
22493 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<AccelerationStructureKHR>::type
22494 Device::createAccelerationStructureKHR( AccelerationStructureCreateInfoKHR const & createInfo,
22495 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
22496 {
22497 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateAccelerationStructureKHR &&
22498 "Function <vkCreateAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
22499
22500 VULKAN_HPP_NAMESPACE::AccelerationStructureKHR accelerationStructure;
22501 Result result =
22502 static_cast<Result>( getDispatcher()->vkCreateAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
22503 reinterpret_cast<VkAccelerationStructureCreateInfoKHR const *>( &createInfo ),
22504 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
22505 reinterpret_cast<VkAccelerationStructureKHR *>( &accelerationStructure ) ) );
22506 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createAccelerationStructureKHR" );
22507 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
22508 result, AccelerationStructureKHR( *this, *reinterpret_cast<VkAccelerationStructureKHR *>( &accelerationStructure ), allocator ) );
22509 }
22510
22511 // wrapper function for command vkCmdBuildAccelerationStructuresKHR, see
22512 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructuresKHR.html
22513 VULKAN_HPP_INLINE void
22514 CommandBuffer::buildAccelerationStructuresKHR( ArrayProxy<AccelerationStructureBuildGeometryInfoKHR const> const & infos,
22515 ArrayProxy<AccelerationStructureBuildRangeInfoKHR const * const> const & pBuildRangeInfos ) const
22516 {
22517 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBuildAccelerationStructuresKHR &&
22518 "Function <vkCmdBuildAccelerationStructuresKHR> requires <VK_KHR_acceleration_structure>" );
22519 # ifdef VULKAN_HPP_NO_EXCEPTIONS
22520 VULKAN_HPP_ASSERT( infos.size() == pBuildRangeInfos.size() );
22521 # else
22522 if ( infos.size() != pBuildRangeInfos.size() )
22523 {
22524 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::buildAccelerationStructuresKHR: infos.size() != pBuildRangeInfos.size()" );
22525 }
22526 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
22527
22528 getDispatcher()->vkCmdBuildAccelerationStructuresKHR(
22529 static_cast<VkCommandBuffer>( m_commandBuffer ),
22530 infos.size(),
22531 reinterpret_cast<VkAccelerationStructureBuildGeometryInfoKHR const *>( infos.data() ),
22532 reinterpret_cast<VkAccelerationStructureBuildRangeInfoKHR const * const *>( pBuildRangeInfos.data() ) );
22533 }
22534
22535 // wrapper function for command vkCmdBuildAccelerationStructuresIndirectKHR, see
22536 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructuresIndirectKHR.html
22537 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructuresIndirectKHR( ArrayProxy<AccelerationStructureBuildGeometryInfoKHR const> const & infos,
22538 ArrayProxy<DeviceAddress const> const & indirectDeviceAddresses,
22539 ArrayProxy<uint32_t const> const & indirectStrides,
22540 ArrayProxy<uint32_t const * const> const & pMaxPrimitiveCounts ) const
22541 {
22542 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBuildAccelerationStructuresIndirectKHR &&
22543 "Function <vkCmdBuildAccelerationStructuresIndirectKHR> requires <VK_KHR_acceleration_structure>" );
22544 # ifdef VULKAN_HPP_NO_EXCEPTIONS
22545 VULKAN_HPP_ASSERT( infos.size() == indirectDeviceAddresses.size() );
22546 VULKAN_HPP_ASSERT( infos.size() == indirectStrides.size() );
22547 VULKAN_HPP_ASSERT( infos.size() == pMaxPrimitiveCounts.size() );
22548 # else
22549 if ( infos.size() != indirectDeviceAddresses.size() )
22550 {
22551 throw LogicError( VULKAN_HPP_NAMESPACE_STRING
22552 "::CommandBuffer::buildAccelerationStructuresIndirectKHR: infos.size() != indirectDeviceAddresses.size()" );
22553 }
22554 if ( infos.size() != indirectStrides.size() )
22555 {
22556 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::buildAccelerationStructuresIndirectKHR: infos.size() != indirectStrides.size()" );
22557 }
22558 if ( infos.size() != pMaxPrimitiveCounts.size() )
22559 {
22560 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::buildAccelerationStructuresIndirectKHR: infos.size() != pMaxPrimitiveCounts.size()" );
22561 }
22562 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
22563
22564 getDispatcher()->vkCmdBuildAccelerationStructuresIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
22565 infos.size(),
22566 reinterpret_cast<VkAccelerationStructureBuildGeometryInfoKHR const *>( infos.data() ),
22567 reinterpret_cast<VkDeviceAddress const *>( indirectDeviceAddresses.data() ),
22568 indirectStrides.data(),
22569 pMaxPrimitiveCounts.data() );
22570 }
22571
22572 // wrapper function for command vkBuildAccelerationStructuresKHR, see
22573 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBuildAccelerationStructuresKHR.html
22574 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
22575 Device::buildAccelerationStructuresKHR( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
22576 ArrayProxy<AccelerationStructureBuildGeometryInfoKHR const> const & infos,
22577 ArrayProxy<AccelerationStructureBuildRangeInfoKHR const * const> const & pBuildRangeInfos ) const
22578 {
22579 VULKAN_HPP_ASSERT( getDispatcher()->vkBuildAccelerationStructuresKHR &&
22580 "Function <vkBuildAccelerationStructuresKHR> requires <VK_KHR_acceleration_structure>" );
22581 # ifdef VULKAN_HPP_NO_EXCEPTIONS
22582 VULKAN_HPP_ASSERT( infos.size() == pBuildRangeInfos.size() );
22583 # else
22584 if ( infos.size() != pBuildRangeInfos.size() )
22585 {
22586 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::buildAccelerationStructuresKHR: infos.size() != pBuildRangeInfos.size()" );
22587 }
22588 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
22589
22590 Result result = static_cast<Result>( getDispatcher()->vkBuildAccelerationStructuresKHR(
22591 static_cast<VkDevice>( m_device ),
22592 static_cast<VkDeferredOperationKHR>( deferredOperation ),
22593 infos.size(),
22594 reinterpret_cast<VkAccelerationStructureBuildGeometryInfoKHR const *>( infos.data() ),
22595 reinterpret_cast<VkAccelerationStructureBuildRangeInfoKHR const * const *>( pBuildRangeInfos.data() ) ) );
22596 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
22597 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::buildAccelerationStructuresKHR",
22598 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
22599
22600 return static_cast<Result>( result );
22601 }
22602
22603 // wrapper function for command vkCopyAccelerationStructureKHR, see
22604 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyAccelerationStructureKHR.html
22605 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyAccelerationStructureKHR( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
22606 CopyAccelerationStructureInfoKHR const & info ) const
22607 {
22608 VULKAN_HPP_ASSERT( getDispatcher()->vkCopyAccelerationStructureKHR &&
22609 "Function <vkCopyAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
22610
22611 Result result =
22612 static_cast<Result>( getDispatcher()->vkCopyAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
22613 static_cast<VkDeferredOperationKHR>( deferredOperation ),
22614 reinterpret_cast<VkCopyAccelerationStructureInfoKHR const *>( &info ) ) );
22615 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
22616 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::copyAccelerationStructureKHR",
22617 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
22618
22619 return static_cast<Result>( result );
22620 }
22621
22622 // wrapper function for command vkCopyAccelerationStructureToMemoryKHR, see
22623 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyAccelerationStructureToMemoryKHR.html
22624 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyAccelerationStructureToMemoryKHR( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
22625 CopyAccelerationStructureToMemoryInfoKHR const & info ) const
22626 {
22627 VULKAN_HPP_ASSERT( getDispatcher()->vkCopyAccelerationStructureToMemoryKHR &&
22628 "Function <vkCopyAccelerationStructureToMemoryKHR> requires <VK_KHR_acceleration_structure>" );
22629
22630 Result result = static_cast<Result>(
22631 getDispatcher()->vkCopyAccelerationStructureToMemoryKHR( static_cast<VkDevice>( m_device ),
22632 static_cast<VkDeferredOperationKHR>( deferredOperation ),
22633 reinterpret_cast<VkCopyAccelerationStructureToMemoryInfoKHR const *>( &info ) ) );
22634 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
22635 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::copyAccelerationStructureToMemoryKHR",
22636 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
22637
22638 return static_cast<Result>( result );
22639 }
22640
22641 // wrapper function for command vkCopyMemoryToAccelerationStructureKHR, see
22642 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToAccelerationStructureKHR.html
22643 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToAccelerationStructureKHR( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
22644 CopyMemoryToAccelerationStructureInfoKHR const & info ) const
22645 {
22646 VULKAN_HPP_ASSERT( getDispatcher()->vkCopyMemoryToAccelerationStructureKHR &&
22647 "Function <vkCopyMemoryToAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
22648
22649 Result result = static_cast<Result>(
22650 getDispatcher()->vkCopyMemoryToAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
22651 static_cast<VkDeferredOperationKHR>( deferredOperation ),
22652 reinterpret_cast<VkCopyMemoryToAccelerationStructureInfoKHR const *>( &info ) ) );
22653 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
22654 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::copyMemoryToAccelerationStructureKHR",
22655 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
22656
22657 return static_cast<Result>( result );
22658 }
22659
22660 // wrapper function for command vkWriteAccelerationStructuresPropertiesKHR, see
22661 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteAccelerationStructuresPropertiesKHR.html
22662 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
22663 Device::writeAccelerationStructuresPropertiesKHR( uint32_t accelerationStructureCount,
22664 VULKAN_HPP_NAMESPACE::AccelerationStructureKHR const * pAccelerationStructures,
22665 QueryType queryType,
22666 size_t dataSize,
22667 void * pData,
22668 size_t stride ) const VULKAN_HPP_NOEXCEPT
22669 {
22670 VULKAN_HPP_ASSERT( getDispatcher()->vkWriteAccelerationStructuresPropertiesKHR &&
22671 "Function <vkWriteAccelerationStructuresPropertiesKHR> requires <VK_KHR_acceleration_structure>" );
22672 return static_cast<Result>(
22673 getDispatcher()->vkWriteAccelerationStructuresPropertiesKHR( static_cast<VkDevice>( m_device ),
22674 accelerationStructureCount,
22675 reinterpret_cast<VkAccelerationStructureKHR const *>( pAccelerationStructures ),
22676 static_cast<VkQueryType>( queryType ),
22677 dataSize,
22678 pData,
22679 stride ) );
22680 }
22681
22682 // wrapper function for command vkWriteAccelerationStructuresPropertiesKHR, see
22683 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteAccelerationStructuresPropertiesKHR.html
22684 template <typename DataType>
22685 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType>>::type
22686 Device::writeAccelerationStructuresPropertiesKHR( ArrayProxy<VULKAN_HPP_NAMESPACE::AccelerationStructureKHR const> const & accelerationStructures,
22687 QueryType queryType,
22688 size_t dataSize,
22689 size_t stride ) const
22690 {
22691 VULKAN_HPP_ASSERT( getDispatcher()->vkWriteAccelerationStructuresPropertiesKHR &&
22692 "Function <vkWriteAccelerationStructuresPropertiesKHR> requires <VK_KHR_acceleration_structure>" );
22693
22694 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
22695 std::vector<DataType> data( dataSize / sizeof( DataType ) );
22696 Result result = static_cast<Result>(
22697 getDispatcher()->vkWriteAccelerationStructuresPropertiesKHR( static_cast<VkDevice>( m_device ),
22698 accelerationStructures.size(),
22699 reinterpret_cast<VkAccelerationStructureKHR const *>( accelerationStructures.data() ),
22700 static_cast<VkQueryType>( queryType ),
22701 data.size() * sizeof( DataType ),
22702 reinterpret_cast<void *>( data.data() ),
22703 stride ) );
22704 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::writeAccelerationStructuresPropertiesKHR" );
22705
22706 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
22707 }
22708
22709 // wrapper function for command vkWriteAccelerationStructuresPropertiesKHR, see
22710 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteAccelerationStructuresPropertiesKHR.html
22711 template <typename DataType>
22712 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::writeAccelerationStructuresPropertyKHR(
22713 ArrayProxy<VULKAN_HPP_NAMESPACE::AccelerationStructureKHR const> const & accelerationStructures, QueryType queryType, size_t stride ) const
22714 {
22715 VULKAN_HPP_ASSERT( getDispatcher()->vkWriteAccelerationStructuresPropertiesKHR &&
22716 "Function <vkWriteAccelerationStructuresPropertiesKHR> requires <VK_KHR_acceleration_structure>" );
22717
22718 DataType data;
22719 Result result = static_cast<Result>(
22720 getDispatcher()->vkWriteAccelerationStructuresPropertiesKHR( static_cast<VkDevice>( m_device ),
22721 accelerationStructures.size(),
22722 reinterpret_cast<VkAccelerationStructureKHR const *>( accelerationStructures.data() ),
22723 static_cast<VkQueryType>( queryType ),
22724 sizeof( DataType ),
22725 reinterpret_cast<void *>( &data ),
22726 stride ) );
22727 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::writeAccelerationStructuresPropertyKHR" );
22728
22729 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
22730 }
22731
22732 // wrapper function for command vkCmdCopyAccelerationStructureKHR, see
22733 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureKHR.html
22734 VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureKHR( CopyAccelerationStructureInfoKHR const & info ) const VULKAN_HPP_NOEXCEPT
22735 {
22736 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyAccelerationStructureKHR &&
22737 "Function <vkCmdCopyAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
22738
22739 getDispatcher()->vkCmdCopyAccelerationStructureKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
22740 reinterpret_cast<VkCopyAccelerationStructureInfoKHR const *>( &info ) );
22741 }
22742
22743 // wrapper function for command vkCmdCopyAccelerationStructureToMemoryKHR, see
22744 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureToMemoryKHR.html
22745 VULKAN_HPP_INLINE void
22746 CommandBuffer::copyAccelerationStructureToMemoryKHR( CopyAccelerationStructureToMemoryInfoKHR const & info ) const VULKAN_HPP_NOEXCEPT
22747 {
22748 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyAccelerationStructureToMemoryKHR &&
22749 "Function <vkCmdCopyAccelerationStructureToMemoryKHR> requires <VK_KHR_acceleration_structure>" );
22750
22751 getDispatcher()->vkCmdCopyAccelerationStructureToMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
22752 reinterpret_cast<VkCopyAccelerationStructureToMemoryInfoKHR const *>( &info ) );
22753 }
22754
22755 // wrapper function for command vkCmdCopyMemoryToAccelerationStructureKHR, see
22756 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToAccelerationStructureKHR.html
22757 VULKAN_HPP_INLINE void
22758 CommandBuffer::copyMemoryToAccelerationStructureKHR( CopyMemoryToAccelerationStructureInfoKHR const & info ) const VULKAN_HPP_NOEXCEPT
22759 {
22760 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyMemoryToAccelerationStructureKHR &&
22761 "Function <vkCmdCopyMemoryToAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
22762
22763 getDispatcher()->vkCmdCopyMemoryToAccelerationStructureKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
22764 reinterpret_cast<VkCopyMemoryToAccelerationStructureInfoKHR const *>( &info ) );
22765 }
22766
22767 // wrapper function for command vkGetAccelerationStructureDeviceAddressKHR, see
22768 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureDeviceAddressKHR.html
22769 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceAddress
22770 Device::getAccelerationStructureAddressKHR( AccelerationStructureDeviceAddressInfoKHR const & info ) const VULKAN_HPP_NOEXCEPT
22771 {
22772 VULKAN_HPP_ASSERT( getDispatcher()->vkGetAccelerationStructureDeviceAddressKHR &&
22773 "Function <vkGetAccelerationStructureDeviceAddressKHR> requires <VK_KHR_acceleration_structure>" );
22774
22775 VkDeviceAddress result = getDispatcher()->vkGetAccelerationStructureDeviceAddressKHR(
22776 static_cast<VkDevice>( m_device ), reinterpret_cast<VkAccelerationStructureDeviceAddressInfoKHR const *>( &info ) );
22777
22778 return static_cast<DeviceAddress>( result );
22779 }
22780
22781 // wrapper function for command vkCmdWriteAccelerationStructuresPropertiesKHR, see
22782 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteAccelerationStructuresPropertiesKHR.html
22783 VULKAN_HPP_INLINE void
22784 CommandBuffer::writeAccelerationStructuresPropertiesKHR( ArrayProxy<VULKAN_HPP_NAMESPACE::AccelerationStructureKHR const> const & accelerationStructures,
22785 QueryType queryType,
22786 VULKAN_HPP_NAMESPACE::QueryPool queryPool,
22787 uint32_t firstQuery ) const VULKAN_HPP_NOEXCEPT
22788 {
22789 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdWriteAccelerationStructuresPropertiesKHR &&
22790 "Function <vkCmdWriteAccelerationStructuresPropertiesKHR> requires <VK_KHR_acceleration_structure>" );
22791
22792 getDispatcher()->vkCmdWriteAccelerationStructuresPropertiesKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
22793 accelerationStructures.size(),
22794 reinterpret_cast<VkAccelerationStructureKHR const *>( accelerationStructures.data() ),
22795 static_cast<VkQueryType>( queryType ),
22796 static_cast<VkQueryPool>( queryPool ),
22797 firstQuery );
22798 }
22799
22800 // wrapper function for command vkGetDeviceAccelerationStructureCompatibilityKHR, see
22801 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceAccelerationStructureCompatibilityKHR.html
22802 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureCompatibilityKHR
22803 Device::getAccelerationStructureCompatibilityKHR( AccelerationStructureVersionInfoKHR const & versionInfo ) const VULKAN_HPP_NOEXCEPT
22804 {
22805 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceAccelerationStructureCompatibilityKHR &&
22806 "Function <vkGetDeviceAccelerationStructureCompatibilityKHR> requires <VK_KHR_acceleration_structure>" );
22807
22808 AccelerationStructureCompatibilityKHR compatibility;
22809 getDispatcher()->vkGetDeviceAccelerationStructureCompatibilityKHR( static_cast<VkDevice>( m_device ),
22810 reinterpret_cast<VkAccelerationStructureVersionInfoKHR const *>( &versionInfo ),
22811 reinterpret_cast<VkAccelerationStructureCompatibilityKHR *>( &compatibility ) );
22812
22813 return compatibility;
22814 }
22815
22816 // wrapper function for command vkGetAccelerationStructureBuildSizesKHR, see
22817 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureBuildSizesKHR.html
22818 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureBuildSizesInfoKHR
22819 Device::getAccelerationStructureBuildSizesKHR( AccelerationStructureBuildTypeKHR buildType,
22820 AccelerationStructureBuildGeometryInfoKHR const & buildInfo,
22821 ArrayProxy<uint32_t const> const & maxPrimitiveCounts ) const
22822 {
22823 VULKAN_HPP_ASSERT( getDispatcher()->vkGetAccelerationStructureBuildSizesKHR &&
22824 "Function <vkGetAccelerationStructureBuildSizesKHR> requires <VK_KHR_acceleration_structure>" );
22825 # ifdef VULKAN_HPP_NO_EXCEPTIONS
22826 VULKAN_HPP_ASSERT( maxPrimitiveCounts.size() == buildInfo.geometryCount );
22827 # else
22828 if ( maxPrimitiveCounts.size() != buildInfo.geometryCount )
22829 {
22830 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureBuildSizesKHR: maxPrimitiveCounts.size() != buildInfo.geometryCount" );
22831 }
22832 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
22833
22834 AccelerationStructureBuildSizesInfoKHR sizeInfo;
22835 getDispatcher()->vkGetAccelerationStructureBuildSizesKHR( static_cast<VkDevice>( m_device ),
22836 static_cast<VkAccelerationStructureBuildTypeKHR>( buildType ),
22837 reinterpret_cast<VkAccelerationStructureBuildGeometryInfoKHR const *>( &buildInfo ),
22838 maxPrimitiveCounts.data(),
22839 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( &sizeInfo ) );
22840
22841 return sizeInfo;
22842 }
22843
22844 //=== VK_KHR_ray_tracing_pipeline ===
22845
22846 // wrapper function for command vkCmdTraceRaysKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysKHR.html
22847 VULKAN_HPP_INLINE void CommandBuffer::traceRaysKHR( StridedDeviceAddressRegionKHR const & raygenShaderBindingTable,
22848 StridedDeviceAddressRegionKHR const & missShaderBindingTable,
22849 StridedDeviceAddressRegionKHR const & hitShaderBindingTable,
22850 StridedDeviceAddressRegionKHR const & callableShaderBindingTable,
22851 uint32_t width,
22852 uint32_t height,
22853 uint32_t depth ) const VULKAN_HPP_NOEXCEPT
22854 {
22855 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdTraceRaysKHR && "Function <vkCmdTraceRaysKHR> requires <VK_KHR_ray_tracing_pipeline>" );
22856
22857 getDispatcher()->vkCmdTraceRaysKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
22858 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &raygenShaderBindingTable ),
22859 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &missShaderBindingTable ),
22860 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &hitShaderBindingTable ),
22861 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &callableShaderBindingTable ),
22862 width,
22863 height,
22864 depth );
22865 }
22866
22867 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
22868 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
22869 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Pipeline>>::type
22870 Device::createRayTracingPipelinesKHR( Optional<DeferredOperationKHR const> const & deferredOperation,
22871 Optional<PipelineCache const> const & pipelineCache,
22872 ArrayProxy<RayTracingPipelineCreateInfoKHR> const & createInfos,
22873 Optional<AllocationCallbacks const> allocator ) const
22874 {
22875 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateRayTracingPipelinesKHR &&
22876 "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
22877
22878 std::vector<VULKAN_HPP_NAMESPACE::Pipeline> pipelines( createInfos.size() );
22879 Result result = static_cast<Result>(
22880 getDispatcher()->vkCreateRayTracingPipelinesKHR( static_cast<VkDevice>( m_device ),
22881 deferredOperation ? static_cast<VkDeferredOperationKHR>( **deferredOperation ) : 0,
22882 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
22883 createInfos.size(),
22884 reinterpret_cast<VkRayTracingPipelineCreateInfoKHR const *>( createInfos.data() ),
22885 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
22886 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
22887 VULKAN_HPP_NAMESPACE::detail::resultCheck(
22888 result,
22889 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createRayTracingPipelinesKHR",
22890 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT } );
22891 std::vector<Pipeline> pipelinesRAII;
22892 if ( result == Result::eSuccess )
22893 {
22894 pipelinesRAII.reserve( pipelines.size() );
22895 for ( auto & pipeline : pipelines )
22896 {
22897 pipelinesRAII.emplace_back( *this, *reinterpret_cast<VkPipeline *>( &pipeline ), allocator, result );
22898 }
22899 }
22900 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( pipelinesRAII ) );
22901 }
22902
22903 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
22904 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
22905 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Pipeline>::type
22906 Device::createRayTracingPipelineKHR( Optional<DeferredOperationKHR const> const & deferredOperation,
22907 Optional<PipelineCache const> const & pipelineCache,
22908 RayTracingPipelineCreateInfoKHR const & createInfo,
22909 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
22910 {
22911 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateRayTracingPipelinesKHR &&
22912 "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
22913
22914 VULKAN_HPP_NAMESPACE::Pipeline pipeline;
22915 Result result = static_cast<Result>(
22916 getDispatcher()->vkCreateRayTracingPipelinesKHR( static_cast<VkDevice>( m_device ),
22917 deferredOperation ? static_cast<VkDeferredOperationKHR>( **deferredOperation ) : 0,
22918 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
22919 1,
22920 reinterpret_cast<VkRayTracingPipelineCreateInfoKHR const *>( &createInfo ),
22921 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
22922 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
22923 VULKAN_HPP_NAMESPACE::detail::resultCheck(
22924 result,
22925 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createRayTracingPipelineKHR",
22926 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT } );
22927 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Pipeline( *this, *reinterpret_cast<VkPipeline *>( &pipeline ), allocator, result ) );
22928 }
22929
22930 // wrapper function for command vkGetRayTracingShaderGroupHandlesKHR, see
22931 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesKHR.html
22932 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Pipeline::getRayTracingShaderGroupHandlesKHR( uint32_t firstGroup,
22933 uint32_t groupCount,
22934 size_t dataSize,
22935 void * pData ) const VULKAN_HPP_NOEXCEPT
22936 {
22937 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRayTracingShaderGroupHandlesKHR &&
22938 "Function <vkGetRayTracingShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
22939 return static_cast<Result>( getDispatcher()->vkGetRayTracingShaderGroupHandlesKHR(
22940 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( m_pipeline ), firstGroup, groupCount, dataSize, pData ) );
22941 }
22942
22943 // wrapper function for command vkGetRayTracingShaderGroupHandlesKHR, see
22944 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesKHR.html
22945 template <typename DataType>
22946 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType>>::type
22947 Pipeline::getRayTracingShaderGroupHandlesKHR( uint32_t firstGroup, uint32_t groupCount, size_t dataSize ) const
22948 {
22949 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRayTracingShaderGroupHandlesKHR &&
22950 "Function <vkGetRayTracingShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
22951
22952 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
22953 std::vector<DataType> data( dataSize / sizeof( DataType ) );
22954 Result result = static_cast<Result>( getDispatcher()->vkGetRayTracingShaderGroupHandlesKHR( static_cast<VkDevice>( m_device ),
22955 static_cast<VkPipeline>( m_pipeline ),
22956 firstGroup,
22957 groupCount,
22958 data.size() * sizeof( DataType ),
22959 reinterpret_cast<void *>( data.data() ) ) );
22960 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Pipeline::getRayTracingShaderGroupHandlesKHR" );
22961
22962 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
22963 }
22964
22965 // wrapper function for command vkGetRayTracingShaderGroupHandlesKHR, see
22966 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesKHR.html
22967 template <typename DataType>
22968 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Pipeline::getRayTracingShaderGroupHandleKHR( uint32_t firstGroup,
22969 uint32_t groupCount ) const
22970 {
22971 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRayTracingShaderGroupHandlesKHR &&
22972 "Function <vkGetRayTracingShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
22973
22974 DataType data;
22975 Result result = static_cast<Result>( getDispatcher()->vkGetRayTracingShaderGroupHandlesKHR( static_cast<VkDevice>( m_device ),
22976 static_cast<VkPipeline>( m_pipeline ),
22977 firstGroup,
22978 groupCount,
22979 sizeof( DataType ),
22980 reinterpret_cast<void *>( &data ) ) );
22981 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Pipeline::getRayTracingShaderGroupHandleKHR" );
22982
22983 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
22984 }
22985
22986 // wrapper function for command vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, see
22987 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html
22988 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Pipeline::getRayTracingCaptureReplayShaderGroupHandlesKHR( uint32_t firstGroup,
22989 uint32_t groupCount,
22990 size_t dataSize,
22991 void * pData ) const VULKAN_HPP_NOEXCEPT
22992 {
22993 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRayTracingCaptureReplayShaderGroupHandlesKHR &&
22994 "Function <vkGetRayTracingCaptureReplayShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
22995 return static_cast<Result>( getDispatcher()->vkGetRayTracingCaptureReplayShaderGroupHandlesKHR(
22996 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( m_pipeline ), firstGroup, groupCount, dataSize, pData ) );
22997 }
22998
22999 // wrapper function for command vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, see
23000 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html
23001 template <typename DataType>
23002 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType>>::type
23003 Pipeline::getRayTracingCaptureReplayShaderGroupHandlesKHR( uint32_t firstGroup, uint32_t groupCount, size_t dataSize ) const
23004 {
23005 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRayTracingCaptureReplayShaderGroupHandlesKHR &&
23006 "Function <vkGetRayTracingCaptureReplayShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
23007
23008 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
23009 std::vector<DataType> data( dataSize / sizeof( DataType ) );
23010 Result result = static_cast<Result>( getDispatcher()->vkGetRayTracingCaptureReplayShaderGroupHandlesKHR( static_cast<VkDevice>( m_device ),
23011 static_cast<VkPipeline>( m_pipeline ),
23012 firstGroup,
23013 groupCount,
23014 data.size() * sizeof( DataType ),
23015 reinterpret_cast<void *>( data.data() ) ) );
23016 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Pipeline::getRayTracingCaptureReplayShaderGroupHandlesKHR" );
23017
23018 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
23019 }
23020
23021 // wrapper function for command vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, see
23022 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html
23023 template <typename DataType>
23024 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
23025 Pipeline::getRayTracingCaptureReplayShaderGroupHandleKHR( uint32_t firstGroup, uint32_t groupCount ) const
23026 {
23027 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRayTracingCaptureReplayShaderGroupHandlesKHR &&
23028 "Function <vkGetRayTracingCaptureReplayShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
23029
23030 DataType data;
23031 Result result = static_cast<Result>( getDispatcher()->vkGetRayTracingCaptureReplayShaderGroupHandlesKHR( static_cast<VkDevice>( m_device ),
23032 static_cast<VkPipeline>( m_pipeline ),
23033 firstGroup,
23034 groupCount,
23035 sizeof( DataType ),
23036 reinterpret_cast<void *>( &data ) ) );
23037 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Pipeline::getRayTracingCaptureReplayShaderGroupHandleKHR" );
23038
23039 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
23040 }
23041
23042 // wrapper function for command vkCmdTraceRaysIndirectKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysIndirectKHR.html
23043 VULKAN_HPP_INLINE void CommandBuffer::traceRaysIndirectKHR( StridedDeviceAddressRegionKHR const & raygenShaderBindingTable,
23044 StridedDeviceAddressRegionKHR const & missShaderBindingTable,
23045 StridedDeviceAddressRegionKHR const & hitShaderBindingTable,
23046 StridedDeviceAddressRegionKHR const & callableShaderBindingTable,
23047 DeviceAddress indirectDeviceAddress ) const VULKAN_HPP_NOEXCEPT
23048 {
23049 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdTraceRaysIndirectKHR && "Function <vkCmdTraceRaysIndirectKHR> requires <VK_KHR_ray_tracing_pipeline>" );
23050
23051 getDispatcher()->vkCmdTraceRaysIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
23052 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &raygenShaderBindingTable ),
23053 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &missShaderBindingTable ),
23054 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &hitShaderBindingTable ),
23055 reinterpret_cast<VkStridedDeviceAddressRegionKHR const *>( &callableShaderBindingTable ),
23056 static_cast<VkDeviceAddress>( indirectDeviceAddress ) );
23057 }
23058
23059 // wrapper function for command vkGetRayTracingShaderGroupStackSizeKHR, see
23060 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupStackSizeKHR.html
23061 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceSize
23062 Pipeline::getRayTracingShaderGroupStackSizeKHR( uint32_t group, ShaderGroupShaderKHR groupShader ) const VULKAN_HPP_NOEXCEPT
23063 {
23064 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRayTracingShaderGroupStackSizeKHR &&
23065 "Function <vkGetRayTracingShaderGroupStackSizeKHR> requires <VK_KHR_ray_tracing_pipeline>" );
23066
23067 VkDeviceSize result = getDispatcher()->vkGetRayTracingShaderGroupStackSizeKHR(
23068 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( m_pipeline ), group, static_cast<VkShaderGroupShaderKHR>( groupShader ) );
23069
23070 return static_cast<DeviceSize>( result );
23071 }
23072
23073 // wrapper function for command vkCmdSetRayTracingPipelineStackSizeKHR, see
23074 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRayTracingPipelineStackSizeKHR.html
23075 VULKAN_HPP_INLINE void CommandBuffer::setRayTracingPipelineStackSizeKHR( uint32_t pipelineStackSize ) const VULKAN_HPP_NOEXCEPT
23076 {
23077 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetRayTracingPipelineStackSizeKHR &&
23078 "Function <vkCmdSetRayTracingPipelineStackSizeKHR> requires <VK_KHR_ray_tracing_pipeline>" );
23079
23080 getDispatcher()->vkCmdSetRayTracingPipelineStackSizeKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), pipelineStackSize );
23081 }
23082
23083 //=== VK_KHR_sampler_ycbcr_conversion ===
23084
23085 // wrapper function for command vkCreateSamplerYcbcrConversionKHR, see
23086 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversionKHR.html
23087 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SamplerYcbcrConversion>::type
23088 Device::createSamplerYcbcrConversionKHR( SamplerYcbcrConversionCreateInfo const & createInfo,
23089 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
23090 {
23091 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateSamplerYcbcrConversionKHR &&
23092 "Function <vkCreateSamplerYcbcrConversionKHR> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
23093
23094 VULKAN_HPP_NAMESPACE::SamplerYcbcrConversion ycbcrConversion;
23095 Result result =
23096 static_cast<Result>( getDispatcher()->vkCreateSamplerYcbcrConversionKHR( static_cast<VkDevice>( m_device ),
23097 reinterpret_cast<VkSamplerYcbcrConversionCreateInfo const *>( &createInfo ),
23098 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
23099 reinterpret_cast<VkSamplerYcbcrConversion *>( &ycbcrConversion ) ) );
23100 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createSamplerYcbcrConversionKHR" );
23101 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
23102 result, SamplerYcbcrConversion( *this, *reinterpret_cast<VkSamplerYcbcrConversion *>( &ycbcrConversion ), allocator ) );
23103 }
23104
23105 // wrapper function for command vkDestroySamplerYcbcrConversionKHR, see
23106 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversionKHR.html
23107 VULKAN_HPP_INLINE void Device::destroySamplerYcbcrConversionKHR( VULKAN_HPP_NAMESPACE::SamplerYcbcrConversion ycbcrConversion,
23108 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT
23109 {
23110 VULKAN_HPP_ASSERT( getDispatcher()->vkDestroySamplerYcbcrConversionKHR &&
23111 "Function <vkDestroySamplerYcbcrConversionKHR> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
23112
23113 getDispatcher()->vkDestroySamplerYcbcrConversionKHR( static_cast<VkDevice>( m_device ),
23114 static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ),
23115 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
23116 }
23117
23118 //=== VK_KHR_bind_memory2 ===
23119
23120 // wrapper function for command vkBindBufferMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory2KHR.html
23121 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindBufferMemory2KHR( ArrayProxy<BindBufferMemoryInfo const> const & bindInfos ) const
23122 {
23123 VULKAN_HPP_ASSERT( getDispatcher()->vkBindBufferMemory2KHR && "Function <vkBindBufferMemory2KHR> requires <VK_KHR_bind_memory2> or <VK_VERSION_1_1>" );
23124
23125 Result result = static_cast<Result>( getDispatcher()->vkBindBufferMemory2KHR(
23126 static_cast<VkDevice>( m_device ), bindInfos.size(), reinterpret_cast<VkBindBufferMemoryInfo const *>( bindInfos.data() ) ) );
23127 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::bindBufferMemory2KHR" );
23128
23129 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
23130 }
23131
23132 // wrapper function for command vkBindImageMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory2KHR.html
23133 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindImageMemory2KHR( ArrayProxy<BindImageMemoryInfo const> const & bindInfos ) const
23134 {
23135 VULKAN_HPP_ASSERT( getDispatcher()->vkBindImageMemory2KHR && "Function <vkBindImageMemory2KHR> requires <VK_KHR_bind_memory2> or <VK_VERSION_1_1>" );
23136
23137 Result result = static_cast<Result>( getDispatcher()->vkBindImageMemory2KHR(
23138 static_cast<VkDevice>( m_device ), bindInfos.size(), reinterpret_cast<VkBindImageMemoryInfo const *>( bindInfos.data() ) ) );
23139 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::bindImageMemory2KHR" );
23140
23141 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
23142 }
23143
23144 //=== VK_EXT_image_drm_format_modifier ===
23145
23146 // wrapper function for command vkGetImageDrmFormatModifierPropertiesEXT, see
23147 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageDrmFormatModifierPropertiesEXT.html
23148 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageDrmFormatModifierPropertiesEXT>::type Image::getDrmFormatModifierPropertiesEXT() const
23149 {
23150 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageDrmFormatModifierPropertiesEXT &&
23151 "Function <vkGetImageDrmFormatModifierPropertiesEXT> requires <VK_EXT_image_drm_format_modifier>" );
23152
23153 ImageDrmFormatModifierPropertiesEXT properties;
23154 Result result = static_cast<Result>( getDispatcher()->vkGetImageDrmFormatModifierPropertiesEXT(
23155 static_cast<VkDevice>( m_device ), static_cast<VkImage>( m_image ), reinterpret_cast<VkImageDrmFormatModifierPropertiesEXT *>( &properties ) ) );
23156 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Image::getDrmFormatModifierPropertiesEXT" );
23157
23158 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
23159 }
23160
23161 //=== VK_EXT_validation_cache ===
23162
23163 // wrapper function for command vkCreateValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateValidationCacheEXT.html
23164 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ValidationCacheEXT>::type
23165 Device::createValidationCacheEXT( ValidationCacheCreateInfoEXT const & createInfo,
23166 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
23167 {
23168 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateValidationCacheEXT && "Function <vkCreateValidationCacheEXT> requires <VK_EXT_validation_cache>" );
23169
23170 VULKAN_HPP_NAMESPACE::ValidationCacheEXT validationCache;
23171 Result result = static_cast<Result>( getDispatcher()->vkCreateValidationCacheEXT( static_cast<VkDevice>( m_device ),
23172 reinterpret_cast<VkValidationCacheCreateInfoEXT const *>( &createInfo ),
23173 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
23174 reinterpret_cast<VkValidationCacheEXT *>( &validationCache ) ) );
23175 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createValidationCacheEXT" );
23176 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
23177 result, ValidationCacheEXT( *this, *reinterpret_cast<VkValidationCacheEXT *>( &validationCache ), allocator ) );
23178 }
23179
23180 // wrapper function for command vkMergeValidationCachesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMergeValidationCachesEXT.html
23181 VULKAN_HPP_INLINE typename ResultValueType<void>::type
23182 ValidationCacheEXT::merge( ArrayProxy<VULKAN_HPP_NAMESPACE::ValidationCacheEXT const> const & srcCaches ) const
23183 {
23184 VULKAN_HPP_ASSERT( getDispatcher()->vkMergeValidationCachesEXT && "Function <vkMergeValidationCachesEXT> requires <VK_EXT_validation_cache>" );
23185
23186 Result result = static_cast<Result>( getDispatcher()->vkMergeValidationCachesEXT( static_cast<VkDevice>( m_device ),
23187 static_cast<VkValidationCacheEXT>( m_validationCacheEXT ),
23188 srcCaches.size(),
23189 reinterpret_cast<VkValidationCacheEXT const *>( srcCaches.data() ) ) );
23190 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::ValidationCacheEXT::merge" );
23191
23192 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
23193 }
23194
23195 // wrapper function for command vkGetValidationCacheDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetValidationCacheDataEXT.html
23196 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t>>::type ValidationCacheEXT::getData() const
23197 {
23198 VULKAN_HPP_ASSERT( getDispatcher()->vkGetValidationCacheDataEXT && "Function <vkGetValidationCacheDataEXT> requires <VK_EXT_validation_cache>" );
23199
23200 std::vector<uint8_t> data;
23201 size_t dataSize;
23202 Result result;
23203 do
23204 {
23205 result = static_cast<Result>( getDispatcher()->vkGetValidationCacheDataEXT(
23206 static_cast<VkDevice>( m_device ), static_cast<VkValidationCacheEXT>( m_validationCacheEXT ), &dataSize, nullptr ) );
23207 if ( ( result == Result::eSuccess ) && dataSize )
23208 {
23209 data.resize( dataSize );
23210 result = static_cast<Result>( getDispatcher()->vkGetValidationCacheDataEXT( static_cast<VkDevice>( m_device ),
23211 static_cast<VkValidationCacheEXT>( m_validationCacheEXT ),
23212 &dataSize,
23213 reinterpret_cast<void *>( data.data() ) ) );
23214 }
23215 } while ( result == Result::eIncomplete );
23216 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::ValidationCacheEXT::getData" );
23217 VULKAN_HPP_ASSERT( dataSize <= data.size() );
23218 if ( dataSize < data.size() )
23219 {
23220 data.resize( dataSize );
23221 }
23222 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
23223 }
23224
23225 //=== VK_NV_shading_rate_image ===
23226
23227 // wrapper function for command vkCmdBindShadingRateImageNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindShadingRateImageNV.html
23228 VULKAN_HPP_INLINE void CommandBuffer::bindShadingRateImageNV( VULKAN_HPP_NAMESPACE::ImageView imageView, ImageLayout imageLayout ) const VULKAN_HPP_NOEXCEPT
23229 {
23230 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindShadingRateImageNV && "Function <vkCmdBindShadingRateImageNV> requires <VK_NV_shading_rate_image>" );
23231
23232 getDispatcher()->vkCmdBindShadingRateImageNV(
23233 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkImageView>( imageView ), static_cast<VkImageLayout>( imageLayout ) );
23234 }
23235
23236 // wrapper function for command vkCmdSetViewportShadingRatePaletteNV, see
23237 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportShadingRatePaletteNV.html
23238 VULKAN_HPP_INLINE void
23239 CommandBuffer::setViewportShadingRatePaletteNV( uint32_t firstViewport,
23240 ArrayProxy<ShadingRatePaletteNV const> const & shadingRatePalettes ) const VULKAN_HPP_NOEXCEPT
23241 {
23242 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetViewportShadingRatePaletteNV &&
23243 "Function <vkCmdSetViewportShadingRatePaletteNV> requires <VK_NV_shading_rate_image>" );
23244
23245 getDispatcher()->vkCmdSetViewportShadingRatePaletteNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
23246 firstViewport,
23247 shadingRatePalettes.size(),
23248 reinterpret_cast<VkShadingRatePaletteNV const *>( shadingRatePalettes.data() ) );
23249 }
23250
23251 // wrapper function for command vkCmdSetCoarseSampleOrderNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoarseSampleOrderNV.html
23252 VULKAN_HPP_INLINE void
23253 CommandBuffer::setCoarseSampleOrderNV( CoarseSampleOrderTypeNV sampleOrderType,
23254 ArrayProxy<CoarseSampleOrderCustomNV const> const & customSampleOrders ) const VULKAN_HPP_NOEXCEPT
23255 {
23256 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetCoarseSampleOrderNV && "Function <vkCmdSetCoarseSampleOrderNV> requires <VK_NV_shading_rate_image>" );
23257
23258 getDispatcher()->vkCmdSetCoarseSampleOrderNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
23259 static_cast<VkCoarseSampleOrderTypeNV>( sampleOrderType ),
23260 customSampleOrders.size(),
23261 reinterpret_cast<VkCoarseSampleOrderCustomNV const *>( customSampleOrders.data() ) );
23262 }
23263
23264 //=== VK_NV_ray_tracing ===
23265
23266 // wrapper function for command vkCreateAccelerationStructureNV, see
23267 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureNV.html
23268 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<AccelerationStructureNV>::type
23269 Device::createAccelerationStructureNV( AccelerationStructureCreateInfoNV const & createInfo,
23270 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
23271 {
23272 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateAccelerationStructureNV && "Function <vkCreateAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
23273
23274 VULKAN_HPP_NAMESPACE::AccelerationStructureNV accelerationStructure;
23275 Result result =
23276 static_cast<Result>( getDispatcher()->vkCreateAccelerationStructureNV( static_cast<VkDevice>( m_device ),
23277 reinterpret_cast<VkAccelerationStructureCreateInfoNV const *>( &createInfo ),
23278 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
23279 reinterpret_cast<VkAccelerationStructureNV *>( &accelerationStructure ) ) );
23280 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createAccelerationStructureNV" );
23281 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
23282 result, AccelerationStructureNV( *this, *reinterpret_cast<VkAccelerationStructureNV *>( &accelerationStructure ), allocator ) );
23283 }
23284
23285 // wrapper function for command vkGetAccelerationStructureMemoryRequirementsNV, see
23286 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureMemoryRequirementsNV.html
23287 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2KHR
23288 Device::getAccelerationStructureMemoryRequirementsNV( AccelerationStructureMemoryRequirementsInfoNV const & info ) const VULKAN_HPP_NOEXCEPT
23289 {
23290 VULKAN_HPP_ASSERT( getDispatcher()->vkGetAccelerationStructureMemoryRequirementsNV &&
23291 "Function <vkGetAccelerationStructureMemoryRequirementsNV> requires <VK_NV_ray_tracing>" );
23292
23293 MemoryRequirements2KHR memoryRequirements;
23294 getDispatcher()->vkGetAccelerationStructureMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
23295 reinterpret_cast<VkAccelerationStructureMemoryRequirementsInfoNV const *>( &info ),
23296 reinterpret_cast<VkMemoryRequirements2KHR *>( &memoryRequirements ) );
23297
23298 return memoryRequirements;
23299 }
23300
23301 // wrapper function for command vkGetAccelerationStructureMemoryRequirementsNV, see
23302 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureMemoryRequirementsNV.html
23303 template <typename X, typename Y, typename... Z>
23304 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
23305 Device::getAccelerationStructureMemoryRequirementsNV( AccelerationStructureMemoryRequirementsInfoNV const & info ) const VULKAN_HPP_NOEXCEPT
23306 {
23307 VULKAN_HPP_ASSERT( getDispatcher()->vkGetAccelerationStructureMemoryRequirementsNV &&
23308 "Function <vkGetAccelerationStructureMemoryRequirementsNV> requires <VK_NV_ray_tracing>" );
23309
23310 StructureChain<X, Y, Z...> structureChain;
23311 MemoryRequirements2KHR & memoryRequirements = structureChain.template get<MemoryRequirements2KHR>();
23312 getDispatcher()->vkGetAccelerationStructureMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
23313 reinterpret_cast<VkAccelerationStructureMemoryRequirementsInfoNV const *>( &info ),
23314 reinterpret_cast<VkMemoryRequirements2KHR *>( &memoryRequirements ) );
23315
23316 return structureChain;
23317 }
23318
23319 // wrapper function for command vkBindAccelerationStructureMemoryNV, see
23320 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindAccelerationStructureMemoryNV.html
23321 VULKAN_HPP_INLINE typename ResultValueType<void>::type
23322 Device::bindAccelerationStructureMemoryNV( ArrayProxy<BindAccelerationStructureMemoryInfoNV const> const & bindInfos ) const
23323 {
23324 VULKAN_HPP_ASSERT( getDispatcher()->vkBindAccelerationStructureMemoryNV &&
23325 "Function <vkBindAccelerationStructureMemoryNV> requires <VK_NV_ray_tracing>" );
23326
23327 Result result = static_cast<Result>( getDispatcher()->vkBindAccelerationStructureMemoryNV(
23328 static_cast<VkDevice>( m_device ), bindInfos.size(), reinterpret_cast<VkBindAccelerationStructureMemoryInfoNV const *>( bindInfos.data() ) ) );
23329 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::bindAccelerationStructureMemoryNV" );
23330
23331 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
23332 }
23333
23334 // wrapper function for command vkCmdBuildAccelerationStructureNV, see
23335 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructureNV.html
23336 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructureNV( AccelerationStructureInfoNV const & info,
23337 VULKAN_HPP_NAMESPACE::Buffer instanceData,
23338 DeviceSize instanceOffset,
23339 Bool32 update,
23340 VULKAN_HPP_NAMESPACE::AccelerationStructureNV dst,
23341 VULKAN_HPP_NAMESPACE::AccelerationStructureNV src,
23342 VULKAN_HPP_NAMESPACE::Buffer scratch,
23343 DeviceSize scratchOffset ) const VULKAN_HPP_NOEXCEPT
23344 {
23345 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBuildAccelerationStructureNV && "Function <vkCmdBuildAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
23346
23347 getDispatcher()->vkCmdBuildAccelerationStructureNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
23348 reinterpret_cast<VkAccelerationStructureInfoNV const *>( &info ),
23349 static_cast<VkBuffer>( instanceData ),
23350 static_cast<VkDeviceSize>( instanceOffset ),
23351 static_cast<VkBool32>( update ),
23352 static_cast<VkAccelerationStructureNV>( dst ),
23353 static_cast<VkAccelerationStructureNV>( src ),
23354 static_cast<VkBuffer>( scratch ),
23355 static_cast<VkDeviceSize>( scratchOffset ) );
23356 }
23357
23358 // wrapper function for command vkCmdCopyAccelerationStructureNV, see
23359 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureNV.html
23360 VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureNV( VULKAN_HPP_NAMESPACE::AccelerationStructureNV dst,
23361 VULKAN_HPP_NAMESPACE::AccelerationStructureNV src,
23362 CopyAccelerationStructureModeKHR mode ) const VULKAN_HPP_NOEXCEPT
23363 {
23364 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyAccelerationStructureNV && "Function <vkCmdCopyAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
23365
23366 getDispatcher()->vkCmdCopyAccelerationStructureNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
23367 static_cast<VkAccelerationStructureNV>( dst ),
23368 static_cast<VkAccelerationStructureNV>( src ),
23369 static_cast<VkCopyAccelerationStructureModeKHR>( mode ) );
23370 }
23371
23372 // wrapper function for command vkCmdTraceRaysNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysNV.html
23373 VULKAN_HPP_INLINE void CommandBuffer::traceRaysNV( VULKAN_HPP_NAMESPACE::Buffer raygenShaderBindingTableBuffer,
23374 DeviceSize raygenShaderBindingOffset,
23375 VULKAN_HPP_NAMESPACE::Buffer missShaderBindingTableBuffer,
23376 DeviceSize missShaderBindingOffset,
23377 DeviceSize missShaderBindingStride,
23378 VULKAN_HPP_NAMESPACE::Buffer hitShaderBindingTableBuffer,
23379 DeviceSize hitShaderBindingOffset,
23380 DeviceSize hitShaderBindingStride,
23381 VULKAN_HPP_NAMESPACE::Buffer callableShaderBindingTableBuffer,
23382 DeviceSize callableShaderBindingOffset,
23383 DeviceSize callableShaderBindingStride,
23384 uint32_t width,
23385 uint32_t height,
23386 uint32_t depth ) const VULKAN_HPP_NOEXCEPT
23387 {
23388 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdTraceRaysNV && "Function <vkCmdTraceRaysNV> requires <VK_NV_ray_tracing>" );
23389
23390 getDispatcher()->vkCmdTraceRaysNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
23391 static_cast<VkBuffer>( raygenShaderBindingTableBuffer ),
23392 static_cast<VkDeviceSize>( raygenShaderBindingOffset ),
23393 static_cast<VkBuffer>( missShaderBindingTableBuffer ),
23394 static_cast<VkDeviceSize>( missShaderBindingOffset ),
23395 static_cast<VkDeviceSize>( missShaderBindingStride ),
23396 static_cast<VkBuffer>( hitShaderBindingTableBuffer ),
23397 static_cast<VkDeviceSize>( hitShaderBindingOffset ),
23398 static_cast<VkDeviceSize>( hitShaderBindingStride ),
23399 static_cast<VkBuffer>( callableShaderBindingTableBuffer ),
23400 static_cast<VkDeviceSize>( callableShaderBindingOffset ),
23401 static_cast<VkDeviceSize>( callableShaderBindingStride ),
23402 width,
23403 height,
23404 depth );
23405 }
23406
23407 // wrapper function for command vkCreateRayTracingPipelinesNV, see
23408 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
23409 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Pipeline>>::type
23410 Device::createRayTracingPipelinesNV( Optional<PipelineCache const> const & pipelineCache,
23411 ArrayProxy<RayTracingPipelineCreateInfoNV> const & createInfos,
23412 Optional<AllocationCallbacks const> allocator ) const
23413 {
23414 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
23415
23416 std::vector<VULKAN_HPP_NAMESPACE::Pipeline> pipelines( createInfos.size() );
23417 Result result =
23418 static_cast<Result>( getDispatcher()->vkCreateRayTracingPipelinesNV( static_cast<VkDevice>( m_device ),
23419 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
23420 createInfos.size(),
23421 reinterpret_cast<VkRayTracingPipelineCreateInfoNV const *>( createInfos.data() ),
23422 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
23423 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
23424 VULKAN_HPP_NAMESPACE::detail::resultCheck(
23425 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createRayTracingPipelinesNV", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
23426 std::vector<Pipeline> pipelinesRAII;
23427 if ( result == Result::eSuccess )
23428 {
23429 pipelinesRAII.reserve( pipelines.size() );
23430 for ( auto & pipeline : pipelines )
23431 {
23432 pipelinesRAII.emplace_back( *this, *reinterpret_cast<VkPipeline *>( &pipeline ), allocator, result );
23433 }
23434 }
23435 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( pipelinesRAII ) );
23436 }
23437
23438 // wrapper function for command vkCreateRayTracingPipelinesNV, see
23439 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
23440 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Pipeline>::type
23441 Device::createRayTracingPipelineNV( Optional<PipelineCache const> const & pipelineCache,
23442 RayTracingPipelineCreateInfoNV const & createInfo,
23443 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
23444 {
23445 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
23446
23447 VULKAN_HPP_NAMESPACE::Pipeline pipeline;
23448 Result result =
23449 static_cast<Result>( getDispatcher()->vkCreateRayTracingPipelinesNV( static_cast<VkDevice>( m_device ),
23450 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
23451 1,
23452 reinterpret_cast<VkRayTracingPipelineCreateInfoNV const *>( &createInfo ),
23453 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
23454 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
23455 VULKAN_HPP_NAMESPACE::detail::resultCheck(
23456 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createRayTracingPipelineNV", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
23457 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Pipeline( *this, *reinterpret_cast<VkPipeline *>( &pipeline ), allocator, result ) );
23458 }
23459
23460 // wrapper function for command vkGetRayTracingShaderGroupHandlesNV, see
23461 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesNV.html
23462 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Pipeline::getRayTracingShaderGroupHandlesNV( uint32_t firstGroup,
23463 uint32_t groupCount,
23464 size_t dataSize,
23465 void * pData ) const VULKAN_HPP_NOEXCEPT
23466 {
23467 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRayTracingShaderGroupHandlesNV &&
23468 "Function <vkGetRayTracingShaderGroupHandlesNV> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
23469 return static_cast<Result>( getDispatcher()->vkGetRayTracingShaderGroupHandlesNV(
23470 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( m_pipeline ), firstGroup, groupCount, dataSize, pData ) );
23471 }
23472
23473 // wrapper function for command vkGetRayTracingShaderGroupHandlesNV, see
23474 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesNV.html
23475 template <typename DataType>
23476 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType>>::type
23477 Pipeline::getRayTracingShaderGroupHandlesNV( uint32_t firstGroup, uint32_t groupCount, size_t dataSize ) const
23478 {
23479 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRayTracingShaderGroupHandlesNV &&
23480 "Function <vkGetRayTracingShaderGroupHandlesNV> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
23481
23482 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
23483 std::vector<DataType> data( dataSize / sizeof( DataType ) );
23484 Result result = static_cast<Result>( getDispatcher()->vkGetRayTracingShaderGroupHandlesNV( static_cast<VkDevice>( m_device ),
23485 static_cast<VkPipeline>( m_pipeline ),
23486 firstGroup,
23487 groupCount,
23488 data.size() * sizeof( DataType ),
23489 reinterpret_cast<void *>( data.data() ) ) );
23490 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Pipeline::getRayTracingShaderGroupHandlesNV" );
23491
23492 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
23493 }
23494
23495 // wrapper function for command vkGetRayTracingShaderGroupHandlesNV, see
23496 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesNV.html
23497 template <typename DataType>
23498 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Pipeline::getRayTracingShaderGroupHandleNV( uint32_t firstGroup,
23499 uint32_t groupCount ) const
23500 {
23501 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRayTracingShaderGroupHandlesNV &&
23502 "Function <vkGetRayTracingShaderGroupHandlesNV> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
23503
23504 DataType data;
23505 Result result = static_cast<Result>( getDispatcher()->vkGetRayTracingShaderGroupHandlesNV( static_cast<VkDevice>( m_device ),
23506 static_cast<VkPipeline>( m_pipeline ),
23507 firstGroup,
23508 groupCount,
23509 sizeof( DataType ),
23510 reinterpret_cast<void *>( &data ) ) );
23511 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Pipeline::getRayTracingShaderGroupHandleNV" );
23512
23513 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
23514 }
23515
23516 // wrapper function for command vkGetAccelerationStructureHandleNV, see
23517 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureHandleNV.html
23518 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result AccelerationStructureNV::getHandle( size_t dataSize, void * pData ) const VULKAN_HPP_NOEXCEPT
23519 {
23520 VULKAN_HPP_ASSERT( getDispatcher()->vkGetAccelerationStructureHandleNV && "Function <vkGetAccelerationStructureHandleNV> requires <VK_NV_ray_tracing>" );
23521 return static_cast<Result>( getDispatcher()->vkGetAccelerationStructureHandleNV(
23522 static_cast<VkDevice>( m_device ), static_cast<VkAccelerationStructureNV>( m_accelerationStructureNV ), dataSize, pData ) );
23523 }
23524
23525 // wrapper function for command vkGetAccelerationStructureHandleNV, see
23526 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureHandleNV.html
23527 template <typename DataType>
23528 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType>>::type AccelerationStructureNV::getHandle( size_t dataSize ) const
23529 {
23530 VULKAN_HPP_ASSERT( getDispatcher()->vkGetAccelerationStructureHandleNV && "Function <vkGetAccelerationStructureHandleNV> requires <VK_NV_ray_tracing>" );
23531
23532 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
23533 std::vector<DataType> data( dataSize / sizeof( DataType ) );
23534 Result result =
23535 static_cast<Result>( getDispatcher()->vkGetAccelerationStructureHandleNV( static_cast<VkDevice>( m_device ),
23536 static_cast<VkAccelerationStructureNV>( m_accelerationStructureNV ),
23537 data.size() * sizeof( DataType ),
23538 reinterpret_cast<void *>( data.data() ) ) );
23539 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::AccelerationStructureNV::getHandle" );
23540
23541 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
23542 }
23543
23544 // wrapper function for command vkGetAccelerationStructureHandleNV, see
23545 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureHandleNV.html
23546 template <typename DataType>
23547 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type AccelerationStructureNV::getHandle() const
23548 {
23549 VULKAN_HPP_ASSERT( getDispatcher()->vkGetAccelerationStructureHandleNV && "Function <vkGetAccelerationStructureHandleNV> requires <VK_NV_ray_tracing>" );
23550
23551 DataType data;
23552 Result result =
23553 static_cast<Result>( getDispatcher()->vkGetAccelerationStructureHandleNV( static_cast<VkDevice>( m_device ),
23554 static_cast<VkAccelerationStructureNV>( m_accelerationStructureNV ),
23555 sizeof( DataType ),
23556 reinterpret_cast<void *>( &data ) ) );
23557 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::AccelerationStructureNV::getHandle" );
23558
23559 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
23560 }
23561
23562 // wrapper function for command vkCmdWriteAccelerationStructuresPropertiesNV, see
23563 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteAccelerationStructuresPropertiesNV.html
23564 VULKAN_HPP_INLINE void
23565 CommandBuffer::writeAccelerationStructuresPropertiesNV( ArrayProxy<VULKAN_HPP_NAMESPACE::AccelerationStructureNV const> const & accelerationStructures,
23566 QueryType queryType,
23567 VULKAN_HPP_NAMESPACE::QueryPool queryPool,
23568 uint32_t firstQuery ) const VULKAN_HPP_NOEXCEPT
23569 {
23570 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdWriteAccelerationStructuresPropertiesNV &&
23571 "Function <vkCmdWriteAccelerationStructuresPropertiesNV> requires <VK_NV_ray_tracing>" );
23572
23573 getDispatcher()->vkCmdWriteAccelerationStructuresPropertiesNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
23574 accelerationStructures.size(),
23575 reinterpret_cast<VkAccelerationStructureNV const *>( accelerationStructures.data() ),
23576 static_cast<VkQueryType>( queryType ),
23577 static_cast<VkQueryPool>( queryPool ),
23578 firstQuery );
23579 }
23580
23581 // wrapper function for command vkCompileDeferredNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCompileDeferredNV.html
23582 VULKAN_HPP_INLINE typename ResultValueType<void>::type Pipeline::compileDeferredNV( uint32_t shader ) const
23583 {
23584 VULKAN_HPP_ASSERT( getDispatcher()->vkCompileDeferredNV && "Function <vkCompileDeferredNV> requires <VK_NV_ray_tracing>" );
23585
23586 Result result =
23587 static_cast<Result>( getDispatcher()->vkCompileDeferredNV( static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( m_pipeline ), shader ) );
23588 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Pipeline::compileDeferredNV" );
23589
23590 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
23591 }
23592
23593 //=== VK_KHR_maintenance3 ===
23594
23595 // wrapper function for command vkGetDescriptorSetLayoutSupportKHR, see
23596 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupportKHR.html
23597 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DescriptorSetLayoutSupport
23598 Device::getDescriptorSetLayoutSupportKHR( DescriptorSetLayoutCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT
23599 {
23600 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDescriptorSetLayoutSupportKHR &&
23601 "Function <vkGetDescriptorSetLayoutSupportKHR> requires <VK_KHR_maintenance3> or <VK_VERSION_1_1>" );
23602
23603 DescriptorSetLayoutSupport support;
23604 getDispatcher()->vkGetDescriptorSetLayoutSupportKHR( static_cast<VkDevice>( m_device ),
23605 reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( &createInfo ),
23606 reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
23607
23608 return support;
23609 }
23610
23611 // wrapper function for command vkGetDescriptorSetLayoutSupportKHR, see
23612 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupportKHR.html
23613 template <typename X, typename Y, typename... Z>
23614 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
23615 Device::getDescriptorSetLayoutSupportKHR( DescriptorSetLayoutCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT
23616 {
23617 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDescriptorSetLayoutSupportKHR &&
23618 "Function <vkGetDescriptorSetLayoutSupportKHR> requires <VK_KHR_maintenance3> or <VK_VERSION_1_1>" );
23619
23620 StructureChain<X, Y, Z...> structureChain;
23621 DescriptorSetLayoutSupport & support = structureChain.template get<DescriptorSetLayoutSupport>();
23622 getDispatcher()->vkGetDescriptorSetLayoutSupportKHR( static_cast<VkDevice>( m_device ),
23623 reinterpret_cast<VkDescriptorSetLayoutCreateInfo const *>( &createInfo ),
23624 reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
23625
23626 return structureChain;
23627 }
23628
23629 //=== VK_KHR_draw_indirect_count ===
23630
23631 // wrapper function for command vkCmdDrawIndirectCountKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCountKHR.html
23632 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectCountKHR( VULKAN_HPP_NAMESPACE::Buffer buffer,
23633 DeviceSize offset,
23634 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
23635 DeviceSize countBufferOffset,
23636 uint32_t maxDrawCount,
23637 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
23638 {
23639 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndirectCountKHR &&
23640 "Function <vkCmdDrawIndirectCountKHR> requires <VK_AMD_draw_indirect_count> or <VK_KHR_draw_indirect_count> or <VK_VERSION_1_2>" );
23641
23642 getDispatcher()->vkCmdDrawIndirectCountKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
23643 static_cast<VkBuffer>( buffer ),
23644 static_cast<VkDeviceSize>( offset ),
23645 static_cast<VkBuffer>( countBuffer ),
23646 static_cast<VkDeviceSize>( countBufferOffset ),
23647 maxDrawCount,
23648 stride );
23649 }
23650
23651 // wrapper function for command vkCmdDrawIndexedIndirectCountKHR, see
23652 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCountKHR.html
23653 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirectCountKHR( VULKAN_HPP_NAMESPACE::Buffer buffer,
23654 DeviceSize offset,
23655 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
23656 DeviceSize countBufferOffset,
23657 uint32_t maxDrawCount,
23658 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
23659 {
23660 VULKAN_HPP_ASSERT(
23661 getDispatcher()->vkCmdDrawIndexedIndirectCountKHR &&
23662 "Function <vkCmdDrawIndexedIndirectCountKHR> requires <VK_AMD_draw_indirect_count> or <VK_KHR_draw_indirect_count> or <VK_VERSION_1_2>" );
23663
23664 getDispatcher()->vkCmdDrawIndexedIndirectCountKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
23665 static_cast<VkBuffer>( buffer ),
23666 static_cast<VkDeviceSize>( offset ),
23667 static_cast<VkBuffer>( countBuffer ),
23668 static_cast<VkDeviceSize>( countBufferOffset ),
23669 maxDrawCount,
23670 stride );
23671 }
23672
23673 //=== VK_EXT_external_memory_host ===
23674
23675 // wrapper function for command vkGetMemoryHostPointerPropertiesEXT, see
23676 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryHostPointerPropertiesEXT.html
23677 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryHostPointerPropertiesEXT>::type
23678 Device::getMemoryHostPointerPropertiesEXT( ExternalMemoryHandleTypeFlagBits handleType, void const * pHostPointer ) const
23679 {
23680 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryHostPointerPropertiesEXT &&
23681 "Function <vkGetMemoryHostPointerPropertiesEXT> requires <VK_EXT_external_memory_host>" );
23682
23683 MemoryHostPointerPropertiesEXT memoryHostPointerProperties;
23684 Result result = static_cast<Result>(
23685 getDispatcher()->vkGetMemoryHostPointerPropertiesEXT( static_cast<VkDevice>( m_device ),
23686 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
23687 pHostPointer,
23688 reinterpret_cast<VkMemoryHostPointerPropertiesEXT *>( &memoryHostPointerProperties ) ) );
23689 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getMemoryHostPointerPropertiesEXT" );
23690
23691 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( memoryHostPointerProperties ) );
23692 }
23693
23694 //=== VK_AMD_buffer_marker ===
23695
23696 // wrapper function for command vkCmdWriteBufferMarkerAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteBufferMarkerAMD.html
23697 VULKAN_HPP_INLINE void CommandBuffer::writeBufferMarkerAMD( PipelineStageFlagBits pipelineStage,
23698 VULKAN_HPP_NAMESPACE::Buffer dstBuffer,
23699 DeviceSize dstOffset,
23700 uint32_t marker ) const VULKAN_HPP_NOEXCEPT
23701 {
23702 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdWriteBufferMarkerAMD && "Function <vkCmdWriteBufferMarkerAMD> requires <VK_AMD_buffer_marker>" );
23703
23704 getDispatcher()->vkCmdWriteBufferMarkerAMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
23705 static_cast<VkPipelineStageFlagBits>( pipelineStage ),
23706 static_cast<VkBuffer>( dstBuffer ),
23707 static_cast<VkDeviceSize>( dstOffset ),
23708 marker );
23709 }
23710
23711 // wrapper function for command vkCmdWriteBufferMarker2AMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteBufferMarker2AMD.html
23712 VULKAN_HPP_INLINE void CommandBuffer::writeBufferMarker2AMD( PipelineStageFlags2 stage,
23713 VULKAN_HPP_NAMESPACE::Buffer dstBuffer,
23714 DeviceSize dstOffset,
23715 uint32_t marker ) const VULKAN_HPP_NOEXCEPT
23716 {
23717 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdWriteBufferMarker2AMD && "Function <vkCmdWriteBufferMarker2AMD> requires <VK_AMD_buffer_marker>" );
23718
23719 getDispatcher()->vkCmdWriteBufferMarker2AMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
23720 static_cast<VkPipelineStageFlags2>( stage ),
23721 static_cast<VkBuffer>( dstBuffer ),
23722 static_cast<VkDeviceSize>( dstOffset ),
23723 marker );
23724 }
23725
23726 //=== VK_EXT_calibrated_timestamps ===
23727
23728 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsEXT, see
23729 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsEXT.html
23730 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TimeDomainKHR>>::type PhysicalDevice::getCalibrateableTimeDomainsEXT() const
23731 {
23732 VULKAN_HPP_ASSERT(
23733 getDispatcher()->vkGetPhysicalDeviceCalibrateableTimeDomainsEXT &&
23734 "Function <vkGetPhysicalDeviceCalibrateableTimeDomainsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
23735
23736 std::vector<TimeDomainKHR> timeDomains;
23737 uint32_t timeDomainCount;
23738 Result result;
23739 do
23740 {
23741 result = static_cast<Result>(
23742 getDispatcher()->vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), &timeDomainCount, nullptr ) );
23743 if ( ( result == Result::eSuccess ) && timeDomainCount )
23744 {
23745 timeDomains.resize( timeDomainCount );
23746 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceCalibrateableTimeDomainsEXT(
23747 static_cast<VkPhysicalDevice>( m_physicalDevice ), &timeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( timeDomains.data() ) ) );
23748 }
23749 } while ( result == Result::eIncomplete );
23750 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsEXT" );
23751 VULKAN_HPP_ASSERT( timeDomainCount <= timeDomains.size() );
23752 if ( timeDomainCount < timeDomains.size() )
23753 {
23754 timeDomains.resize( timeDomainCount );
23755 }
23756 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( timeDomains ) );
23757 }
23758
23759 // wrapper function for command vkGetCalibratedTimestampsEXT, see
23760 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsEXT.html
23761 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<std::vector<uint64_t>, uint64_t>>::type
23762 Device::getCalibratedTimestampsEXT( ArrayProxy<CalibratedTimestampInfoKHR const> const & timestampInfos ) const
23763 {
23764 VULKAN_HPP_ASSERT( getDispatcher()->vkGetCalibratedTimestampsEXT &&
23765 "Function <vkGetCalibratedTimestampsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
23766
23767 std::pair<std::vector<uint64_t>, uint64_t> data_( std::piecewise_construct, std::forward_as_tuple( timestampInfos.size() ), std::forward_as_tuple( 0 ) );
23768 std::vector<uint64_t> & timestamps = data_.first;
23769 uint64_t & maxDeviation = data_.second;
23770 Result result =
23771 static_cast<Result>( getDispatcher()->vkGetCalibratedTimestampsEXT( static_cast<VkDevice>( m_device ),
23772 timestampInfos.size(),
23773 reinterpret_cast<VkCalibratedTimestampInfoKHR const *>( timestampInfos.data() ),
23774 timestamps.data(),
23775 &maxDeviation ) );
23776 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" );
23777
23778 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data_ ) );
23779 }
23780
23781 // wrapper function for command vkGetCalibratedTimestampsEXT, see
23782 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsEXT.html
23783 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<uint64_t, uint64_t>>::type
23784 Device::getCalibratedTimestampEXT( CalibratedTimestampInfoKHR const & timestampInfo ) const
23785 {
23786 VULKAN_HPP_ASSERT( getDispatcher()->vkGetCalibratedTimestampsEXT &&
23787 "Function <vkGetCalibratedTimestampsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
23788
23789 std::pair<uint64_t, uint64_t> data_;
23790 uint64_t & timestamp = data_.first;
23791 uint64_t & maxDeviation = data_.second;
23792 Result result = static_cast<Result>( getDispatcher()->vkGetCalibratedTimestampsEXT(
23793 static_cast<VkDevice>( m_device ), 1, reinterpret_cast<VkCalibratedTimestampInfoKHR const *>( &timestampInfo ), &timestamp, &maxDeviation ) );
23794 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getCalibratedTimestampEXT" );
23795
23796 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data_ ) );
23797 }
23798
23799 //=== VK_NV_mesh_shader ===
23800
23801 // wrapper function for command vkCmdDrawMeshTasksNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksNV.html
23802 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksNV( uint32_t taskCount, uint32_t firstTask ) const VULKAN_HPP_NOEXCEPT
23803 {
23804 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawMeshTasksNV && "Function <vkCmdDrawMeshTasksNV> requires <VK_NV_mesh_shader>" );
23805
23806 getDispatcher()->vkCmdDrawMeshTasksNV( static_cast<VkCommandBuffer>( m_commandBuffer ), taskCount, firstTask );
23807 }
23808
23809 // wrapper function for command vkCmdDrawMeshTasksIndirectNV, see
23810 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectNV.html
23811 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectNV( VULKAN_HPP_NAMESPACE::Buffer buffer,
23812 DeviceSize offset,
23813 uint32_t drawCount,
23814 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
23815 {
23816 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawMeshTasksIndirectNV && "Function <vkCmdDrawMeshTasksIndirectNV> requires <VK_NV_mesh_shader>" );
23817
23818 getDispatcher()->vkCmdDrawMeshTasksIndirectNV(
23819 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ), drawCount, stride );
23820 }
23821
23822 // wrapper function for command vkCmdDrawMeshTasksIndirectCountNV, see
23823 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectCountNV.html
23824 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectCountNV( VULKAN_HPP_NAMESPACE::Buffer buffer,
23825 DeviceSize offset,
23826 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
23827 DeviceSize countBufferOffset,
23828 uint32_t maxDrawCount,
23829 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
23830 {
23831 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawMeshTasksIndirectCountNV && "Function <vkCmdDrawMeshTasksIndirectCountNV> requires <VK_NV_mesh_shader>" );
23832
23833 getDispatcher()->vkCmdDrawMeshTasksIndirectCountNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
23834 static_cast<VkBuffer>( buffer ),
23835 static_cast<VkDeviceSize>( offset ),
23836 static_cast<VkBuffer>( countBuffer ),
23837 static_cast<VkDeviceSize>( countBufferOffset ),
23838 maxDrawCount,
23839 stride );
23840 }
23841
23842 //=== VK_NV_scissor_exclusive ===
23843
23844 // wrapper function for command vkCmdSetExclusiveScissorEnableNV, see
23845 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExclusiveScissorEnableNV.html
23846 VULKAN_HPP_INLINE void CommandBuffer::setExclusiveScissorEnableNV( uint32_t firstExclusiveScissor,
23847 ArrayProxy<Bool32 const> const & exclusiveScissorEnables ) const VULKAN_HPP_NOEXCEPT
23848 {
23849 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetExclusiveScissorEnableNV &&
23850 "Function <vkCmdSetExclusiveScissorEnableNV> requires <VK_NV_scissor_exclusive>" );
23851
23852 getDispatcher()->vkCmdSetExclusiveScissorEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
23853 firstExclusiveScissor,
23854 exclusiveScissorEnables.size(),
23855 reinterpret_cast<VkBool32 const *>( exclusiveScissorEnables.data() ) );
23856 }
23857
23858 // wrapper function for command vkCmdSetExclusiveScissorNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExclusiveScissorNV.html
23859 VULKAN_HPP_INLINE void CommandBuffer::setExclusiveScissorNV( uint32_t firstExclusiveScissor,
23860 ArrayProxy<Rect2D const> const & exclusiveScissors ) const VULKAN_HPP_NOEXCEPT
23861 {
23862 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetExclusiveScissorNV && "Function <vkCmdSetExclusiveScissorNV> requires <VK_NV_scissor_exclusive>" );
23863
23864 getDispatcher()->vkCmdSetExclusiveScissorNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
23865 firstExclusiveScissor,
23866 exclusiveScissors.size(),
23867 reinterpret_cast<VkRect2D const *>( exclusiveScissors.data() ) );
23868 }
23869
23870 //=== VK_NV_device_diagnostic_checkpoints ===
23871
23872 // wrapper function for command vkCmdSetCheckpointNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCheckpointNV.html
23873 template <typename CheckpointMarkerType>
23874 VULKAN_HPP_INLINE void CommandBuffer::setCheckpointNV( CheckpointMarkerType const & checkpointMarker ) const VULKAN_HPP_NOEXCEPT
23875 {
23876 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetCheckpointNV && "Function <vkCmdSetCheckpointNV> requires <VK_NV_device_diagnostic_checkpoints>" );
23877
23878 getDispatcher()->vkCmdSetCheckpointNV( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<void const *>( &checkpointMarker ) );
23879 }
23880
23881 // wrapper function for command vkGetQueueCheckpointDataNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointDataNV.html
23882 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<CheckpointDataNV> Queue::getCheckpointDataNV() const
23883 {
23884 VULKAN_HPP_ASSERT( getDispatcher()->vkGetQueueCheckpointDataNV &&
23885 "Function <vkGetQueueCheckpointDataNV> requires <VK_NV_device_diagnostic_checkpoints>" );
23886
23887 std::vector<CheckpointDataNV> checkpointData;
23888 uint32_t checkpointDataCount;
23889 getDispatcher()->vkGetQueueCheckpointDataNV( static_cast<VkQueue>( m_queue ), &checkpointDataCount, nullptr );
23890 checkpointData.resize( checkpointDataCount );
23891 getDispatcher()->vkGetQueueCheckpointDataNV(
23892 static_cast<VkQueue>( m_queue ), &checkpointDataCount, reinterpret_cast<VkCheckpointDataNV *>( checkpointData.data() ) );
23893
23894 VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() );
23895 if ( checkpointDataCount < checkpointData.size() )
23896 {
23897 checkpointData.resize( checkpointDataCount );
23898 }
23899 return checkpointData;
23900 }
23901
23902 // wrapper function for command vkGetQueueCheckpointData2NV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointData2NV.html
23903 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<CheckpointData2NV> Queue::getCheckpointData2NV() const
23904 {
23905 VULKAN_HPP_ASSERT( getDispatcher()->vkGetQueueCheckpointData2NV &&
23906 "Function <vkGetQueueCheckpointData2NV> requires <VK_NV_device_diagnostic_checkpoints>" );
23907
23908 std::vector<CheckpointData2NV> checkpointData;
23909 uint32_t checkpointDataCount;
23910 getDispatcher()->vkGetQueueCheckpointData2NV( static_cast<VkQueue>( m_queue ), &checkpointDataCount, nullptr );
23911 checkpointData.resize( checkpointDataCount );
23912 getDispatcher()->vkGetQueueCheckpointData2NV(
23913 static_cast<VkQueue>( m_queue ), &checkpointDataCount, reinterpret_cast<VkCheckpointData2NV *>( checkpointData.data() ) );
23914
23915 VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() );
23916 if ( checkpointDataCount < checkpointData.size() )
23917 {
23918 checkpointData.resize( checkpointDataCount );
23919 }
23920 return checkpointData;
23921 }
23922
23923 //=== VK_KHR_timeline_semaphore ===
23924
23925 // wrapper function for command vkGetSemaphoreCounterValueKHR, see
23926 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValueKHR.html
23927 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint64_t>::type Semaphore::getCounterValueKHR() const
23928 {
23929 VULKAN_HPP_ASSERT( getDispatcher()->vkGetSemaphoreCounterValueKHR &&
23930 "Function <vkGetSemaphoreCounterValueKHR> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
23931
23932 uint64_t value;
23933 Result result = static_cast<Result>(
23934 getDispatcher()->vkGetSemaphoreCounterValueKHR( static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( m_semaphore ), &value ) );
23935 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Semaphore::getCounterValueKHR" );
23936
23937 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( value ) );
23938 }
23939
23940 // wrapper function for command vkWaitSemaphoresKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitSemaphoresKHR.html
23941 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitSemaphoresKHR( SemaphoreWaitInfo const & waitInfo, uint64_t timeout ) const
23942 {
23943 VULKAN_HPP_ASSERT( getDispatcher()->vkWaitSemaphoresKHR && "Function <vkWaitSemaphoresKHR> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
23944
23945 Result result = static_cast<Result>(
23946 getDispatcher()->vkWaitSemaphoresKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreWaitInfo const *>( &waitInfo ), timeout ) );
23947 VULKAN_HPP_NAMESPACE::detail::resultCheck(
23948 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::waitSemaphoresKHR", { Result::eSuccess, Result::eTimeout } );
23949
23950 return static_cast<Result>( result );
23951 }
23952
23953 // wrapper function for command vkSignalSemaphoreKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSignalSemaphoreKHR.html
23954 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::signalSemaphoreKHR( SemaphoreSignalInfo const & signalInfo ) const
23955 {
23956 VULKAN_HPP_ASSERT( getDispatcher()->vkSignalSemaphoreKHR && "Function <vkSignalSemaphoreKHR> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
23957
23958 Result result = static_cast<Result>(
23959 getDispatcher()->vkSignalSemaphoreKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreSignalInfo const *>( &signalInfo ) ) );
23960 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::signalSemaphoreKHR" );
23961
23962 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
23963 }
23964
23965 //=== VK_EXT_present_timing ===
23966
23967 // wrapper function for command vkSetSwapchainPresentTimingQueueSizeEXT, see
23968 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetSwapchainPresentTimingQueueSizeEXT.html
23969 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result SwapchainKHR::setPresentTimingQueueSizeEXT( uint32_t size ) const
23970 {
23971 VULKAN_HPP_ASSERT( getDispatcher()->vkSetSwapchainPresentTimingQueueSizeEXT &&
23972 "Function <vkSetSwapchainPresentTimingQueueSizeEXT> requires <VK_EXT_present_timing>" );
23973
23974 Result result = static_cast<Result>(
23975 getDispatcher()->vkSetSwapchainPresentTimingQueueSizeEXT( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchainKHR ), size ) );
23976 VULKAN_HPP_NAMESPACE::detail::resultCheck(
23977 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::setPresentTimingQueueSizeEXT", { Result::eSuccess, Result::eNotReady } );
23978
23979 return static_cast<Result>( result );
23980 }
23981
23982 // wrapper function for command vkGetSwapchainTimingPropertiesEXT, see
23983 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainTimingPropertiesEXT.html
23984 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::pair<SwapchainTimingPropertiesEXT, uint64_t>> SwapchainKHR::getTimingPropertiesEXT() const
23985 {
23986 VULKAN_HPP_ASSERT( getDispatcher()->vkGetSwapchainTimingPropertiesEXT &&
23987 "Function <vkGetSwapchainTimingPropertiesEXT> requires <VK_EXT_present_timing>" );
23988
23989 std::pair<SwapchainTimingPropertiesEXT, uint64_t> data_;
23990 SwapchainTimingPropertiesEXT & swapchainTimingProperties = data_.first;
23991 uint64_t & swapchainTimingPropertiesCounter = data_.second;
23992 Result result = static_cast<Result>(
23993 getDispatcher()->vkGetSwapchainTimingPropertiesEXT( static_cast<VkDevice>( m_device ),
23994 static_cast<VkSwapchainKHR>( m_swapchainKHR ),
23995 reinterpret_cast<VkSwapchainTimingPropertiesEXT *>( &swapchainTimingProperties ),
23996 &swapchainTimingPropertiesCounter ) );
23997 VULKAN_HPP_NAMESPACE::detail::resultCheck(
23998 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::getTimingPropertiesEXT", { Result::eSuccess, Result::eNotReady } );
23999
24000 return { result, data_ };
24001 }
24002
24003 // wrapper function for command vkGetSwapchainTimeDomainPropertiesEXT, see
24004 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainTimeDomainPropertiesEXT.html
24005 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result SwapchainKHR::getTimeDomainPropertiesEXT( SwapchainTimeDomainPropertiesEXT * pSwapchainTimeDomainProperties,
24006 uint64_t * pTimeDomainsCounter ) const VULKAN_HPP_NOEXCEPT
24007 {
24008 VULKAN_HPP_ASSERT( getDispatcher()->vkGetSwapchainTimeDomainPropertiesEXT &&
24009 "Function <vkGetSwapchainTimeDomainPropertiesEXT> requires <VK_EXT_present_timing>" );
24010 return static_cast<Result>(
24011 getDispatcher()->vkGetSwapchainTimeDomainPropertiesEXT( static_cast<VkDevice>( m_device ),
24012 static_cast<VkSwapchainKHR>( m_swapchainKHR ),
24013 reinterpret_cast<VkSwapchainTimeDomainPropertiesEXT *>( pSwapchainTimeDomainProperties ),
24014 pTimeDomainsCounter ) );
24015 } // wrapper function for command vkGetPastPresentationTimingEXT, see
24016 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPastPresentationTimingEXT.html
24017
24018 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
24019 Device::getPastPresentationTimingEXT( PastPresentationTimingInfoEXT const * pPastPresentationTimingInfo,
24020 PastPresentationTimingPropertiesEXT * pPastPresentationTimingProperties ) const VULKAN_HPP_NOEXCEPT
24021 {
24022 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPastPresentationTimingEXT && "Function <vkGetPastPresentationTimingEXT> requires <VK_EXT_present_timing>" );
24023 return static_cast<Result>(
24024 getDispatcher()->vkGetPastPresentationTimingEXT( static_cast<VkDevice>( m_device ),
24025 reinterpret_cast<VkPastPresentationTimingInfoEXT const *>( pPastPresentationTimingInfo ),
24026 reinterpret_cast<VkPastPresentationTimingPropertiesEXT *>( pPastPresentationTimingProperties ) ) );
24027 }
24028
24029 //=== VK_INTEL_performance_query ===
24030
24031 // wrapper function for command vkInitializePerformanceApiINTEL, see
24032 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkInitializePerformanceApiINTEL.html
24033 VULKAN_HPP_INLINE typename ResultValueType<void>::type
24034 Device::initializePerformanceApiINTEL( InitializePerformanceApiInfoINTEL const & initializeInfo ) const
24035 {
24036 VULKAN_HPP_ASSERT( getDispatcher()->vkInitializePerformanceApiINTEL &&
24037 "Function <vkInitializePerformanceApiINTEL> requires <VK_INTEL_performance_query>" );
24038
24039 Result result = static_cast<Result>( getDispatcher()->vkInitializePerformanceApiINTEL(
24040 static_cast<VkDevice>( m_device ), reinterpret_cast<VkInitializePerformanceApiInfoINTEL const *>( &initializeInfo ) ) );
24041 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::initializePerformanceApiINTEL" );
24042
24043 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
24044 }
24045
24046 // wrapper function for command vkUninitializePerformanceApiINTEL, see
24047 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUninitializePerformanceApiINTEL.html
24048 VULKAN_HPP_INLINE void Device::uninitializePerformanceApiINTEL() const VULKAN_HPP_NOEXCEPT
24049 {
24050 VULKAN_HPP_ASSERT( getDispatcher()->vkUninitializePerformanceApiINTEL &&
24051 "Function <vkUninitializePerformanceApiINTEL> requires <VK_INTEL_performance_query>" );
24052
24053 getDispatcher()->vkUninitializePerformanceApiINTEL( static_cast<VkDevice>( m_device ) );
24054 }
24055
24056 // wrapper function for command vkCmdSetPerformanceMarkerINTEL, see
24057 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceMarkerINTEL.html
24058 VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::setPerformanceMarkerINTEL( PerformanceMarkerInfoINTEL const & markerInfo ) const
24059 {
24060 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetPerformanceMarkerINTEL && "Function <vkCmdSetPerformanceMarkerINTEL> requires <VK_INTEL_performance_query>" );
24061
24062 Result result = static_cast<Result>( getDispatcher()->vkCmdSetPerformanceMarkerINTEL(
24063 static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkPerformanceMarkerInfoINTEL const *>( &markerInfo ) ) );
24064 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::CommandBuffer::setPerformanceMarkerINTEL" );
24065
24066 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
24067 }
24068
24069 // wrapper function for command vkCmdSetPerformanceStreamMarkerINTEL, see
24070 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceStreamMarkerINTEL.html
24071 VULKAN_HPP_INLINE typename ResultValueType<void>::type
24072 CommandBuffer::setPerformanceStreamMarkerINTEL( PerformanceStreamMarkerInfoINTEL const & markerInfo ) const
24073 {
24074 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetPerformanceStreamMarkerINTEL &&
24075 "Function <vkCmdSetPerformanceStreamMarkerINTEL> requires <VK_INTEL_performance_query>" );
24076
24077 Result result = static_cast<Result>( getDispatcher()->vkCmdSetPerformanceStreamMarkerINTEL(
24078 static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkPerformanceStreamMarkerInfoINTEL const *>( &markerInfo ) ) );
24079 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::CommandBuffer::setPerformanceStreamMarkerINTEL" );
24080
24081 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
24082 }
24083
24084 // wrapper function for command vkCmdSetPerformanceOverrideINTEL, see
24085 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceOverrideINTEL.html
24086 VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::setPerformanceOverrideINTEL( PerformanceOverrideInfoINTEL const & overrideInfo ) const
24087 {
24088 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetPerformanceOverrideINTEL &&
24089 "Function <vkCmdSetPerformanceOverrideINTEL> requires <VK_INTEL_performance_query>" );
24090
24091 Result result = static_cast<Result>( getDispatcher()->vkCmdSetPerformanceOverrideINTEL(
24092 static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkPerformanceOverrideInfoINTEL const *>( &overrideInfo ) ) );
24093 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::CommandBuffer::setPerformanceOverrideINTEL" );
24094
24095 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
24096 }
24097
24098 // wrapper function for command vkAcquirePerformanceConfigurationINTEL, see
24099 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquirePerformanceConfigurationINTEL.html
24100 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PerformanceConfigurationINTEL>::type
24101 Device::acquirePerformanceConfigurationINTEL( PerformanceConfigurationAcquireInfoINTEL const & acquireInfo ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
24102 {
24103 VULKAN_HPP_ASSERT( getDispatcher()->vkAcquirePerformanceConfigurationINTEL &&
24104 "Function <vkAcquirePerformanceConfigurationINTEL> requires <VK_INTEL_performance_query>" );
24105
24106 VULKAN_HPP_NAMESPACE::PerformanceConfigurationINTEL configuration;
24107 Result result = static_cast<Result>(
24108 getDispatcher()->vkAcquirePerformanceConfigurationINTEL( static_cast<VkDevice>( m_device ),
24109 reinterpret_cast<VkPerformanceConfigurationAcquireInfoINTEL const *>( &acquireInfo ),
24110 reinterpret_cast<VkPerformanceConfigurationINTEL *>( &configuration ) ) );
24111 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::acquirePerformanceConfigurationINTEL" );
24112 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
24113 result, PerformanceConfigurationINTEL( *this, *reinterpret_cast<VkPerformanceConfigurationINTEL *>( &configuration ) ) );
24114 }
24115
24116 // wrapper function for command vkQueueSetPerformanceConfigurationINTEL, see
24117 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSetPerformanceConfigurationINTEL.html
24118 VULKAN_HPP_INLINE typename ResultValueType<void>::type
24119 Queue::setPerformanceConfigurationINTEL( VULKAN_HPP_NAMESPACE::PerformanceConfigurationINTEL configuration ) const
24120 {
24121 VULKAN_HPP_ASSERT( getDispatcher()->vkQueueSetPerformanceConfigurationINTEL &&
24122 "Function <vkQueueSetPerformanceConfigurationINTEL> requires <VK_INTEL_performance_query>" );
24123
24124 Result result = static_cast<Result>( getDispatcher()->vkQueueSetPerformanceConfigurationINTEL(
24125 static_cast<VkQueue>( m_queue ), static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
24126 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Queue::setPerformanceConfigurationINTEL" );
24127
24128 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
24129 }
24130
24131 // wrapper function for command vkGetPerformanceParameterINTEL, see
24132 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPerformanceParameterINTEL.html
24133 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PerformanceValueINTEL>::type
24134 Device::getPerformanceParameterINTEL( PerformanceParameterTypeINTEL parameter ) const
24135 {
24136 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPerformanceParameterINTEL && "Function <vkGetPerformanceParameterINTEL> requires <VK_INTEL_performance_query>" );
24137
24138 PerformanceValueINTEL value;
24139 Result result = static_cast<Result>( getDispatcher()->vkGetPerformanceParameterINTEL(
24140 static_cast<VkDevice>( m_device ), static_cast<VkPerformanceParameterTypeINTEL>( parameter ), reinterpret_cast<VkPerformanceValueINTEL *>( &value ) ) );
24141 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getPerformanceParameterINTEL" );
24142
24143 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( value ) );
24144 }
24145
24146 //=== VK_AMD_display_native_hdr ===
24147
24148 // wrapper function for command vkSetLocalDimmingAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLocalDimmingAMD.html
24149 VULKAN_HPP_INLINE void SwapchainKHR::setLocalDimmingAMD( Bool32 localDimmingEnable ) const VULKAN_HPP_NOEXCEPT
24150 {
24151 VULKAN_HPP_ASSERT( getDispatcher()->vkSetLocalDimmingAMD && "Function <vkSetLocalDimmingAMD> requires <VK_AMD_display_native_hdr>" );
24152
24153 getDispatcher()->vkSetLocalDimmingAMD(
24154 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchainKHR ), static_cast<VkBool32>( localDimmingEnable ) );
24155 }
24156
24157 # if defined( VK_USE_PLATFORM_FUCHSIA )
24158 //=== VK_FUCHSIA_imagepipe_surface ===
24159
24160 // wrapper function for command vkCreateImagePipeSurfaceFUCHSIA, see
24161 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImagePipeSurfaceFUCHSIA.html
24162 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
24163 Instance::createImagePipeSurfaceFUCHSIA( ImagePipeSurfaceCreateInfoFUCHSIA const & createInfo,
24164 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
24165 {
24166 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateImagePipeSurfaceFUCHSIA &&
24167 "Function <vkCreateImagePipeSurfaceFUCHSIA> requires <VK_FUCHSIA_imagepipe_surface>" );
24168
24169 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
24170 Result result =
24171 static_cast<Result>( getDispatcher()->vkCreateImagePipeSurfaceFUCHSIA( static_cast<VkInstance>( m_instance ),
24172 reinterpret_cast<VkImagePipeSurfaceCreateInfoFUCHSIA const *>( &createInfo ),
24173 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
24174 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
24175 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createImagePipeSurfaceFUCHSIA" );
24176 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
24177 }
24178 # endif /*VK_USE_PLATFORM_FUCHSIA*/
24179
24180 # if defined( VK_USE_PLATFORM_METAL_EXT )
24181 //=== VK_EXT_metal_surface ===
24182
24183 // wrapper function for command vkCreateMetalSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMetalSurfaceEXT.html
24184 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
24185 Instance::createMetalSurfaceEXT( MetalSurfaceCreateInfoEXT const & createInfo,
24186 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
24187 {
24188 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateMetalSurfaceEXT && "Function <vkCreateMetalSurfaceEXT> requires <VK_EXT_metal_surface>" );
24189
24190 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
24191 Result result = static_cast<Result>( getDispatcher()->vkCreateMetalSurfaceEXT( static_cast<VkInstance>( m_instance ),
24192 reinterpret_cast<VkMetalSurfaceCreateInfoEXT const *>( &createInfo ),
24193 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
24194 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
24195 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createMetalSurfaceEXT" );
24196 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
24197 }
24198 # endif /*VK_USE_PLATFORM_METAL_EXT*/
24199
24200 //=== VK_KHR_fragment_shading_rate ===
24201
24202 // wrapper function for command vkGetPhysicalDeviceFragmentShadingRatesKHR, see
24203 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFragmentShadingRatesKHR.html
24204 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceFragmentShadingRateKHR>>::type
24205 PhysicalDevice::getFragmentShadingRatesKHR() const
24206 {
24207 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceFragmentShadingRatesKHR &&
24208 "Function <vkGetPhysicalDeviceFragmentShadingRatesKHR> requires <VK_KHR_fragment_shading_rate>" );
24209
24210 std::vector<PhysicalDeviceFragmentShadingRateKHR> fragmentShadingRates;
24211 uint32_t fragmentShadingRateCount;
24212 Result result;
24213 do
24214 {
24215 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceFragmentShadingRatesKHR(
24216 static_cast<VkPhysicalDevice>( m_physicalDevice ), &fragmentShadingRateCount, nullptr ) );
24217 if ( ( result == Result::eSuccess ) && fragmentShadingRateCount )
24218 {
24219 fragmentShadingRates.resize( fragmentShadingRateCount );
24220 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceFragmentShadingRatesKHR(
24221 static_cast<VkPhysicalDevice>( m_physicalDevice ),
24222 &fragmentShadingRateCount,
24223 reinterpret_cast<VkPhysicalDeviceFragmentShadingRateKHR *>( fragmentShadingRates.data() ) ) );
24224 }
24225 } while ( result == Result::eIncomplete );
24226 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getFragmentShadingRatesKHR" );
24227 VULKAN_HPP_ASSERT( fragmentShadingRateCount <= fragmentShadingRates.size() );
24228 if ( fragmentShadingRateCount < fragmentShadingRates.size() )
24229 {
24230 fragmentShadingRates.resize( fragmentShadingRateCount );
24231 }
24232 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( fragmentShadingRates ) );
24233 }
24234
24235 // wrapper function for command vkCmdSetFragmentShadingRateKHR, see
24236 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFragmentShadingRateKHR.html
24237 VULKAN_HPP_INLINE void CommandBuffer::setFragmentShadingRateKHR( Extent2D const & fragmentSize,
24238 FragmentShadingRateCombinerOpKHR const combinerOps[2] ) const VULKAN_HPP_NOEXCEPT
24239 {
24240 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetFragmentShadingRateKHR &&
24241 "Function <vkCmdSetFragmentShadingRateKHR> requires <VK_KHR_fragment_shading_rate>" );
24242
24243 getDispatcher()->vkCmdSetFragmentShadingRateKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
24244 reinterpret_cast<VkExtent2D const *>( &fragmentSize ),
24245 reinterpret_cast<VkFragmentShadingRateCombinerOpKHR const *>( combinerOps ) );
24246 }
24247
24248 //=== VK_KHR_dynamic_rendering_local_read ===
24249
24250 // wrapper function for command vkCmdSetRenderingAttachmentLocationsKHR, see
24251 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingAttachmentLocationsKHR.html
24252 VULKAN_HPP_INLINE void CommandBuffer::setRenderingAttachmentLocationsKHR( RenderingAttachmentLocationInfo const & locationInfo ) const VULKAN_HPP_NOEXCEPT
24253 {
24254 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetRenderingAttachmentLocationsKHR &&
24255 "Function <vkCmdSetRenderingAttachmentLocationsKHR> requires <VK_KHR_dynamic_rendering_local_read> or <VK_VERSION_1_4>" );
24256
24257 getDispatcher()->vkCmdSetRenderingAttachmentLocationsKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
24258 reinterpret_cast<VkRenderingAttachmentLocationInfo const *>( &locationInfo ) );
24259 }
24260
24261 // wrapper function for command vkCmdSetRenderingInputAttachmentIndicesKHR, see
24262 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingInputAttachmentIndicesKHR.html
24263 VULKAN_HPP_INLINE void
24264 CommandBuffer::setRenderingInputAttachmentIndicesKHR( RenderingInputAttachmentIndexInfo const & inputAttachmentIndexInfo ) const VULKAN_HPP_NOEXCEPT
24265 {
24266 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetRenderingInputAttachmentIndicesKHR &&
24267 "Function <vkCmdSetRenderingInputAttachmentIndicesKHR> requires <VK_KHR_dynamic_rendering_local_read> or <VK_VERSION_1_4>" );
24268
24269 getDispatcher()->vkCmdSetRenderingInputAttachmentIndicesKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
24270 reinterpret_cast<VkRenderingInputAttachmentIndexInfo const *>( &inputAttachmentIndexInfo ) );
24271 }
24272
24273 //=== VK_EXT_buffer_device_address ===
24274
24275 // wrapper function for command vkGetBufferDeviceAddressEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddressEXT.html
24276 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddressEXT( BufferDeviceAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT
24277 {
24278 VULKAN_HPP_ASSERT(
24279 getDispatcher()->vkGetBufferDeviceAddressEXT &&
24280 "Function <vkGetBufferDeviceAddressEXT> requires <VK_EXT_buffer_device_address> or <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
24281
24282 VkDeviceAddress result =
24283 getDispatcher()->vkGetBufferDeviceAddressEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkBufferDeviceAddressInfo const *>( &info ) );
24284
24285 return static_cast<DeviceAddress>( result );
24286 }
24287
24288 //=== VK_EXT_tooling_info ===
24289
24290 // wrapper function for command vkGetPhysicalDeviceToolPropertiesEXT, see
24291 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolPropertiesEXT.html
24292 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceToolProperties>>::type
24293 PhysicalDevice::getToolPropertiesEXT() const
24294 {
24295 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceToolPropertiesEXT &&
24296 "Function <vkGetPhysicalDeviceToolPropertiesEXT> requires <VK_EXT_tooling_info> or <VK_VERSION_1_3>" );
24297
24298 std::vector<PhysicalDeviceToolProperties> toolProperties;
24299 uint32_t toolCount;
24300 Result result;
24301 do
24302 {
24303 result = static_cast<Result>(
24304 getDispatcher()->vkGetPhysicalDeviceToolPropertiesEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), &toolCount, nullptr ) );
24305 if ( ( result == Result::eSuccess ) && toolCount )
24306 {
24307 toolProperties.resize( toolCount );
24308 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceToolPropertiesEXT(
24309 static_cast<VkPhysicalDevice>( m_physicalDevice ), &toolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( toolProperties.data() ) ) );
24310 }
24311 } while ( result == Result::eIncomplete );
24312 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getToolPropertiesEXT" );
24313 VULKAN_HPP_ASSERT( toolCount <= toolProperties.size() );
24314 if ( toolCount < toolProperties.size() )
24315 {
24316 toolProperties.resize( toolCount );
24317 }
24318 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( toolProperties ) );
24319 }
24320
24321 //=== VK_KHR_present_wait ===
24322
24323 // wrapper function for command vkWaitForPresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForPresentKHR.html
24324 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result SwapchainKHR::waitForPresent( uint64_t presentId, uint64_t timeout ) const
24325 {
24326 VULKAN_HPP_ASSERT( getDispatcher()->vkWaitForPresentKHR && "Function <vkWaitForPresentKHR> requires <VK_KHR_present_wait>" );
24327
24328 Result result = static_cast<Result>(
24329 getDispatcher()->vkWaitForPresentKHR( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchainKHR ), presentId, timeout ) );
24330
24331 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
24332 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
24333 VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::waitForPresent",
24334 { Result::eSuccess, Result::eTimeout, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
24335 # else
24336 VULKAN_HPP_NAMESPACE::detail::resultCheck(
24337 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::waitForPresent", { Result::eSuccess, Result::eTimeout, Result::eSuboptimalKHR } );
24338 # endif
24339
24340 return static_cast<Result>( result );
24341 }
24342
24343 //=== VK_NV_cooperative_matrix ===
24344
24345 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesNV, see
24346 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesNV.html
24347 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeMatrixPropertiesNV>>::type
24348 PhysicalDevice::getCooperativeMatrixPropertiesNV() const
24349 {
24350 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixPropertiesNV &&
24351 "Function <vkGetPhysicalDeviceCooperativeMatrixPropertiesNV> requires <VK_NV_cooperative_matrix>" );
24352
24353 std::vector<CooperativeMatrixPropertiesNV> properties;
24354 uint32_t propertyCount;
24355 Result result;
24356 do
24357 {
24358 result = static_cast<Result>(
24359 getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, nullptr ) );
24360 if ( ( result == Result::eSuccess ) && propertyCount )
24361 {
24362 properties.resize( propertyCount );
24363 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixPropertiesNV(
24364 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesNV *>( properties.data() ) ) );
24365 }
24366 } while ( result == Result::eIncomplete );
24367 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesNV" );
24368 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
24369 if ( propertyCount < properties.size() )
24370 {
24371 properties.resize( propertyCount );
24372 }
24373 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
24374 }
24375
24376 //=== VK_NV_coverage_reduction_mode ===
24377
24378 // wrapper function for command vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV, see
24379 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV.html
24380 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<FramebufferMixedSamplesCombinationNV>>::type
24381 PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV() const
24382 {
24383 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV &&
24384 "Function <vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV> requires <VK_NV_coverage_reduction_mode>" );
24385
24386 std::vector<FramebufferMixedSamplesCombinationNV> combinations;
24387 uint32_t combinationCount;
24388 Result result;
24389 do
24390 {
24391 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
24392 static_cast<VkPhysicalDevice>( m_physicalDevice ), &combinationCount, nullptr ) );
24393 if ( ( result == Result::eSuccess ) && combinationCount )
24394 {
24395 combinations.resize( combinationCount );
24396 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
24397 static_cast<VkPhysicalDevice>( m_physicalDevice ),
24398 &combinationCount,
24399 reinterpret_cast<VkFramebufferMixedSamplesCombinationNV *>( combinations.data() ) ) );
24400 }
24401 } while ( result == Result::eIncomplete );
24402 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
24403 VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV" );
24404 VULKAN_HPP_ASSERT( combinationCount <= combinations.size() );
24405 if ( combinationCount < combinations.size() )
24406 {
24407 combinations.resize( combinationCount );
24408 }
24409 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( combinations ) );
24410 }
24411
24412 # if defined( VK_USE_PLATFORM_WIN32_KHR )
24413 //=== VK_EXT_full_screen_exclusive ===
24414
24415 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModes2EXT, see
24416 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModes2EXT.html
24417 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PresentModeKHR>>::type
24418 PhysicalDevice::getSurfacePresentModes2EXT( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo ) const
24419 {
24420 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceSurfacePresentModes2EXT &&
24421 "Function <vkGetPhysicalDeviceSurfacePresentModes2EXT> requires <VK_EXT_full_screen_exclusive>" );
24422
24423 std::vector<PresentModeKHR> presentModes;
24424 uint32_t presentModeCount;
24425 Result result;
24426 do
24427 {
24428 result = static_cast<Result>(
24429 getDispatcher()->vkGetPhysicalDeviceSurfacePresentModes2EXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
24430 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
24431 &presentModeCount,
24432 nullptr ) );
24433 if ( ( result == Result::eSuccess ) && presentModeCount )
24434 {
24435 presentModes.resize( presentModeCount );
24436 result = static_cast<Result>(
24437 getDispatcher()->vkGetPhysicalDeviceSurfacePresentModes2EXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
24438 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
24439 &presentModeCount,
24440 reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
24441 }
24442 } while ( result == Result::eIncomplete );
24443 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModes2EXT" );
24444 VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
24445 if ( presentModeCount < presentModes.size() )
24446 {
24447 presentModes.resize( presentModeCount );
24448 }
24449 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( presentModes ) );
24450 }
24451
24452 // wrapper function for command vkAcquireFullScreenExclusiveModeEXT, see
24453 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireFullScreenExclusiveModeEXT.html
24454 VULKAN_HPP_INLINE typename ResultValueType<void>::type SwapchainKHR::acquireFullScreenExclusiveModeEXT() const
24455 {
24456 VULKAN_HPP_ASSERT( getDispatcher()->vkAcquireFullScreenExclusiveModeEXT &&
24457 "Function <vkAcquireFullScreenExclusiveModeEXT> requires <VK_EXT_full_screen_exclusive>" );
24458
24459 Result result = static_cast<Result>(
24460 getDispatcher()->vkAcquireFullScreenExclusiveModeEXT( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchainKHR ) ) );
24461 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::acquireFullScreenExclusiveModeEXT" );
24462
24463 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
24464 }
24465
24466 // wrapper function for command vkReleaseFullScreenExclusiveModeEXT, see
24467 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseFullScreenExclusiveModeEXT.html
24468 VULKAN_HPP_INLINE typename ResultValueType<void>::type SwapchainKHR::releaseFullScreenExclusiveModeEXT() const
24469 {
24470 VULKAN_HPP_ASSERT( getDispatcher()->vkReleaseFullScreenExclusiveModeEXT &&
24471 "Function <vkReleaseFullScreenExclusiveModeEXT> requires <VK_EXT_full_screen_exclusive>" );
24472
24473 Result result = static_cast<Result>(
24474 getDispatcher()->vkReleaseFullScreenExclusiveModeEXT( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchainKHR ) ) );
24475 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::releaseFullScreenExclusiveModeEXT" );
24476
24477 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
24478 }
24479
24480 // wrapper function for command vkGetDeviceGroupSurfacePresentModes2EXT, see
24481 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupSurfacePresentModes2EXT.html
24482 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeviceGroupPresentModeFlagsKHR>::type
24483 Device::getGroupSurfacePresentModes2EXT( PhysicalDeviceSurfaceInfo2KHR const & surfaceInfo ) const
24484 {
24485 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceGroupSurfacePresentModes2EXT &&
24486 "Function <vkGetDeviceGroupSurfacePresentModes2EXT> requires <VK_EXT_full_screen_exclusive>" );
24487
24488 DeviceGroupPresentModeFlagsKHR modes;
24489 Result result = static_cast<Result>(
24490 getDispatcher()->vkGetDeviceGroupSurfacePresentModes2EXT( static_cast<VkDevice>( m_device ),
24491 reinterpret_cast<VkPhysicalDeviceSurfaceInfo2KHR const *>( &surfaceInfo ),
24492 reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( &modes ) ) );
24493 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getGroupSurfacePresentModes2EXT" );
24494
24495 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( modes ) );
24496 }
24497 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
24498
24499 //=== VK_EXT_headless_surface ===
24500
24501 // wrapper function for command vkCreateHeadlessSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateHeadlessSurfaceEXT.html
24502 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
24503 Instance::createHeadlessSurfaceEXT( HeadlessSurfaceCreateInfoEXT const & createInfo,
24504 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
24505 {
24506 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateHeadlessSurfaceEXT && "Function <vkCreateHeadlessSurfaceEXT> requires <VK_EXT_headless_surface>" );
24507
24508 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
24509 Result result = static_cast<Result>( getDispatcher()->vkCreateHeadlessSurfaceEXT( static_cast<VkInstance>( m_instance ),
24510 reinterpret_cast<VkHeadlessSurfaceCreateInfoEXT const *>( &createInfo ),
24511 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
24512 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
24513 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createHeadlessSurfaceEXT" );
24514 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
24515 }
24516
24517 //=== VK_KHR_buffer_device_address ===
24518
24519 // wrapper function for command vkGetBufferDeviceAddressKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddressKHR.html
24520 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddressKHR( BufferDeviceAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT
24521 {
24522 VULKAN_HPP_ASSERT(
24523 getDispatcher()->vkGetBufferDeviceAddressKHR &&
24524 "Function <vkGetBufferDeviceAddressKHR> requires <VK_EXT_buffer_device_address> or <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
24525
24526 VkDeviceAddress result =
24527 getDispatcher()->vkGetBufferDeviceAddressKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkBufferDeviceAddressInfo const *>( &info ) );
24528
24529 return static_cast<DeviceAddress>( result );
24530 }
24531
24532 // wrapper function for command vkGetBufferOpaqueCaptureAddressKHR, see
24533 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureAddressKHR.html
24534 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint64_t Device::getBufferOpaqueCaptureAddressKHR( BufferDeviceAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT
24535 {
24536 VULKAN_HPP_ASSERT( getDispatcher()->vkGetBufferOpaqueCaptureAddressKHR &&
24537 "Function <vkGetBufferOpaqueCaptureAddressKHR> requires <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
24538
24539 uint64_t result =
24540 getDispatcher()->vkGetBufferOpaqueCaptureAddressKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkBufferDeviceAddressInfo const *>( &info ) );
24541
24542 return result;
24543 }
24544
24545 // wrapper function for command vkGetDeviceMemoryOpaqueCaptureAddressKHR, see
24546 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryOpaqueCaptureAddressKHR.html
24547 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint64_t
24548 Device::getMemoryOpaqueCaptureAddressKHR( DeviceMemoryOpaqueCaptureAddressInfo const & info ) const VULKAN_HPP_NOEXCEPT
24549 {
24550 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceMemoryOpaqueCaptureAddressKHR &&
24551 "Function <vkGetDeviceMemoryOpaqueCaptureAddressKHR> requires <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
24552
24553 uint64_t result = getDispatcher()->vkGetDeviceMemoryOpaqueCaptureAddressKHR( static_cast<VkDevice>( m_device ),
24554 reinterpret_cast<VkDeviceMemoryOpaqueCaptureAddressInfo const *>( &info ) );
24555
24556 return result;
24557 }
24558
24559 //=== VK_EXT_line_rasterization ===
24560
24561 // wrapper function for command vkCmdSetLineStippleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStippleEXT.html
24562 VULKAN_HPP_INLINE void CommandBuffer::setLineStippleEXT( uint32_t lineStippleFactor, uint16_t lineStipplePattern ) const VULKAN_HPP_NOEXCEPT
24563 {
24564 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetLineStippleEXT &&
24565 "Function <vkCmdSetLineStippleEXT> requires <VK_EXT_line_rasterization> or <VK_KHR_line_rasterization> or <VK_VERSION_1_4>" );
24566
24567 getDispatcher()->vkCmdSetLineStippleEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), lineStippleFactor, lineStipplePattern );
24568 }
24569
24570 //=== VK_EXT_host_query_reset ===
24571
24572 // wrapper function for command vkResetQueryPoolEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetQueryPoolEXT.html
24573 VULKAN_HPP_INLINE void QueryPool::resetEXT( uint32_t firstQuery, uint32_t queryCount ) const VULKAN_HPP_NOEXCEPT
24574 {
24575 VULKAN_HPP_ASSERT( getDispatcher()->vkResetQueryPoolEXT && "Function <vkResetQueryPoolEXT> requires <VK_EXT_host_query_reset> or <VK_VERSION_1_2>" );
24576
24577 getDispatcher()->vkResetQueryPoolEXT( static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( m_queryPool ), firstQuery, queryCount );
24578 }
24579
24580 //=== VK_EXT_extended_dynamic_state ===
24581
24582 // wrapper function for command vkCmdSetCullModeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCullModeEXT.html
24583 VULKAN_HPP_INLINE void CommandBuffer::setCullModeEXT( CullModeFlags cullMode ) const VULKAN_HPP_NOEXCEPT
24584 {
24585 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetCullModeEXT &&
24586 "Function <vkCmdSetCullModeEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
24587
24588 getDispatcher()->vkCmdSetCullModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCullModeFlags>( cullMode ) );
24589 }
24590
24591 // wrapper function for command vkCmdSetFrontFaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFrontFaceEXT.html
24592 VULKAN_HPP_INLINE void CommandBuffer::setFrontFaceEXT( FrontFace frontFace ) const VULKAN_HPP_NOEXCEPT
24593 {
24594 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetFrontFaceEXT &&
24595 "Function <vkCmdSetFrontFaceEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
24596
24597 getDispatcher()->vkCmdSetFrontFaceEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkFrontFace>( frontFace ) );
24598 }
24599
24600 // wrapper function for command vkCmdSetPrimitiveTopologyEXT, see
24601 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveTopologyEXT.html
24602 VULKAN_HPP_INLINE void CommandBuffer::setPrimitiveTopologyEXT( PrimitiveTopology primitiveTopology ) const VULKAN_HPP_NOEXCEPT
24603 {
24604 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetPrimitiveTopologyEXT &&
24605 "Function <vkCmdSetPrimitiveTopologyEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
24606
24607 getDispatcher()->vkCmdSetPrimitiveTopologyEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPrimitiveTopology>( primitiveTopology ) );
24608 }
24609
24610 // wrapper function for command vkCmdSetViewportWithCountEXT, see
24611 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWithCountEXT.html
24612 VULKAN_HPP_INLINE void CommandBuffer::setViewportWithCountEXT( ArrayProxy<Viewport const> const & viewports ) const VULKAN_HPP_NOEXCEPT
24613 {
24614 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetViewportWithCountEXT &&
24615 "Function <vkCmdSetViewportWithCountEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
24616
24617 getDispatcher()->vkCmdSetViewportWithCountEXT(
24618 static_cast<VkCommandBuffer>( m_commandBuffer ), viewports.size(), reinterpret_cast<VkViewport const *>( viewports.data() ) );
24619 }
24620
24621 // wrapper function for command vkCmdSetScissorWithCountEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissorWithCountEXT.html
24622 VULKAN_HPP_INLINE void CommandBuffer::setScissorWithCountEXT( ArrayProxy<Rect2D const> const & scissors ) const VULKAN_HPP_NOEXCEPT
24623 {
24624 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetScissorWithCountEXT &&
24625 "Function <vkCmdSetScissorWithCountEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
24626
24627 getDispatcher()->vkCmdSetScissorWithCountEXT(
24628 static_cast<VkCommandBuffer>( m_commandBuffer ), scissors.size(), reinterpret_cast<VkRect2D const *>( scissors.data() ) );
24629 }
24630
24631 // wrapper function for command vkCmdBindVertexBuffers2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers2EXT.html
24632 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers2EXT( uint32_t firstBinding,
24633 ArrayProxy<VULKAN_HPP_NAMESPACE::Buffer const> const & buffers,
24634 ArrayProxy<DeviceSize const> const & offsets,
24635 ArrayProxy<DeviceSize const> const & sizes,
24636 ArrayProxy<DeviceSize const> const & strides ) const
24637 {
24638 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindVertexBuffers2EXT &&
24639 "Function <vkCmdBindVertexBuffers2EXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
24640 # ifdef VULKAN_HPP_NO_EXCEPTIONS
24641 VULKAN_HPP_ASSERT( buffers.size() == offsets.size() );
24642 VULKAN_HPP_ASSERT( sizes.empty() || buffers.size() == sizes.size() );
24643 VULKAN_HPP_ASSERT( strides.empty() || buffers.size() == strides.size() );
24644 # else
24645 if ( buffers.size() != offsets.size() )
24646 {
24647 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2EXT: buffers.size() != offsets.size()" );
24648 }
24649 if ( !sizes.empty() && buffers.size() != sizes.size() )
24650 {
24651 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2EXT: buffers.size() != sizes.size()" );
24652 }
24653 if ( !strides.empty() && buffers.size() != strides.size() )
24654 {
24655 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2EXT: buffers.size() != strides.size()" );
24656 }
24657 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
24658
24659 getDispatcher()->vkCmdBindVertexBuffers2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
24660 firstBinding,
24661 buffers.size(),
24662 reinterpret_cast<VkBuffer const *>( buffers.data() ),
24663 reinterpret_cast<VkDeviceSize const *>( offsets.data() ),
24664 reinterpret_cast<VkDeviceSize const *>( sizes.data() ),
24665 reinterpret_cast<VkDeviceSize const *>( strides.data() ) );
24666 }
24667
24668 // wrapper function for command vkCmdSetDepthTestEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthTestEnableEXT.html
24669 VULKAN_HPP_INLINE void CommandBuffer::setDepthTestEnableEXT( Bool32 depthTestEnable ) const VULKAN_HPP_NOEXCEPT
24670 {
24671 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthTestEnableEXT &&
24672 "Function <vkCmdSetDepthTestEnableEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
24673
24674 getDispatcher()->vkCmdSetDepthTestEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthTestEnable ) );
24675 }
24676
24677 // wrapper function for command vkCmdSetDepthWriteEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthWriteEnableEXT.html
24678 VULKAN_HPP_INLINE void CommandBuffer::setDepthWriteEnableEXT( Bool32 depthWriteEnable ) const VULKAN_HPP_NOEXCEPT
24679 {
24680 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthWriteEnableEXT &&
24681 "Function <vkCmdSetDepthWriteEnableEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
24682
24683 getDispatcher()->vkCmdSetDepthWriteEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthWriteEnable ) );
24684 }
24685
24686 // wrapper function for command vkCmdSetDepthCompareOpEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthCompareOpEXT.html
24687 VULKAN_HPP_INLINE void CommandBuffer::setDepthCompareOpEXT( CompareOp depthCompareOp ) const VULKAN_HPP_NOEXCEPT
24688 {
24689 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthCompareOpEXT &&
24690 "Function <vkCmdSetDepthCompareOpEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
24691
24692 getDispatcher()->vkCmdSetDepthCompareOpEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCompareOp>( depthCompareOp ) );
24693 }
24694
24695 // wrapper function for command vkCmdSetDepthBoundsTestEnableEXT, see
24696 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBoundsTestEnableEXT.html
24697 VULKAN_HPP_INLINE void CommandBuffer::setDepthBoundsTestEnableEXT( Bool32 depthBoundsTestEnable ) const VULKAN_HPP_NOEXCEPT
24698 {
24699 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthBoundsTestEnableEXT &&
24700 "Function <vkCmdSetDepthBoundsTestEnableEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
24701
24702 getDispatcher()->vkCmdSetDepthBoundsTestEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBoundsTestEnable ) );
24703 }
24704
24705 // wrapper function for command vkCmdSetStencilTestEnableEXT, see
24706 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilTestEnableEXT.html
24707 VULKAN_HPP_INLINE void CommandBuffer::setStencilTestEnableEXT( Bool32 stencilTestEnable ) const VULKAN_HPP_NOEXCEPT
24708 {
24709 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetStencilTestEnableEXT &&
24710 "Function <vkCmdSetStencilTestEnableEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
24711
24712 getDispatcher()->vkCmdSetStencilTestEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( stencilTestEnable ) );
24713 }
24714
24715 // wrapper function for command vkCmdSetStencilOpEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilOpEXT.html
24716 VULKAN_HPP_INLINE void CommandBuffer::setStencilOpEXT(
24717 StencilFaceFlags faceMask, StencilOp failOp, StencilOp passOp, StencilOp depthFailOp, CompareOp compareOp ) const VULKAN_HPP_NOEXCEPT
24718 {
24719 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetStencilOpEXT &&
24720 "Function <vkCmdSetStencilOpEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
24721
24722 getDispatcher()->vkCmdSetStencilOpEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
24723 static_cast<VkStencilFaceFlags>( faceMask ),
24724 static_cast<VkStencilOp>( failOp ),
24725 static_cast<VkStencilOp>( passOp ),
24726 static_cast<VkStencilOp>( depthFailOp ),
24727 static_cast<VkCompareOp>( compareOp ) );
24728 }
24729
24730 //=== VK_KHR_deferred_host_operations ===
24731
24732 // wrapper function for command vkCreateDeferredOperationKHR, see
24733 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDeferredOperationKHR.html
24734 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeferredOperationKHR>::type
24735 Device::createDeferredOperationKHR( Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
24736 {
24737 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDeferredOperationKHR &&
24738 "Function <vkCreateDeferredOperationKHR> requires <VK_KHR_deferred_host_operations>" );
24739
24740 VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation;
24741 Result result = static_cast<Result>( getDispatcher()->vkCreateDeferredOperationKHR( static_cast<VkDevice>( m_device ),
24742 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
24743 reinterpret_cast<VkDeferredOperationKHR *>( &deferredOperation ) ) );
24744 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createDeferredOperationKHR" );
24745 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
24746 result, DeferredOperationKHR( *this, *reinterpret_cast<VkDeferredOperationKHR *>( &deferredOperation ), allocator ) );
24747 }
24748
24749 // wrapper function for command vkGetDeferredOperationMaxConcurrencyKHR, see
24750 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeferredOperationMaxConcurrencyKHR.html
24751 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint32_t DeferredOperationKHR::getMaxConcurrency() const VULKAN_HPP_NOEXCEPT
24752 {
24753 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeferredOperationMaxConcurrencyKHR &&
24754 "Function <vkGetDeferredOperationMaxConcurrencyKHR> requires <VK_KHR_deferred_host_operations>" );
24755
24756 uint32_t result = getDispatcher()->vkGetDeferredOperationMaxConcurrencyKHR( static_cast<VkDevice>( m_device ),
24757 static_cast<VkDeferredOperationKHR>( m_deferredOperationKHR ) );
24758
24759 return result;
24760 }
24761
24762 // wrapper function for command vkGetDeferredOperationResultKHR, see
24763 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeferredOperationResultKHR.html
24764 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result DeferredOperationKHR::getResult() const
24765 {
24766 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeferredOperationResultKHR &&
24767 "Function <vkGetDeferredOperationResultKHR> requires <VK_KHR_deferred_host_operations>" );
24768
24769 Result result = static_cast<Result>(
24770 getDispatcher()->vkGetDeferredOperationResultKHR( static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( m_deferredOperationKHR ) ) );
24771 VULKAN_HPP_NAMESPACE::detail::resultCheck(
24772 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::DeferredOperationKHR::getResult", { Result::eSuccess, Result::eNotReady } );
24773
24774 return static_cast<Result>( result );
24775 }
24776
24777 // wrapper function for command vkDeferredOperationJoinKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeferredOperationJoinKHR.html
24778 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result DeferredOperationKHR::join() const
24779 {
24780 VULKAN_HPP_ASSERT( getDispatcher()->vkDeferredOperationJoinKHR && "Function <vkDeferredOperationJoinKHR> requires <VK_KHR_deferred_host_operations>" );
24781
24782 Result result = static_cast<Result>(
24783 getDispatcher()->vkDeferredOperationJoinKHR( static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( m_deferredOperationKHR ) ) );
24784 VULKAN_HPP_NAMESPACE::detail::resultCheck(
24785 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::DeferredOperationKHR::join", { Result::eSuccess, Result::eThreadDoneKHR, Result::eThreadIdleKHR } );
24786
24787 return static_cast<Result>( result );
24788 }
24789
24790 //=== VK_KHR_pipeline_executable_properties ===
24791
24792 // wrapper function for command vkGetPipelineExecutablePropertiesKHR, see
24793 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutablePropertiesKHR.html
24794 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PipelineExecutablePropertiesKHR>>::type
24795 Device::getPipelineExecutablePropertiesKHR( PipelineInfoKHR const & pipelineInfo ) const
24796 {
24797 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPipelineExecutablePropertiesKHR &&
24798 "Function <vkGetPipelineExecutablePropertiesKHR> requires <VK_KHR_pipeline_executable_properties>" );
24799
24800 std::vector<PipelineExecutablePropertiesKHR> properties;
24801 uint32_t executableCount;
24802 Result result;
24803 do
24804 {
24805 result = static_cast<Result>( getDispatcher()->vkGetPipelineExecutablePropertiesKHR(
24806 static_cast<VkDevice>( m_device ), reinterpret_cast<VkPipelineInfoKHR const *>( &pipelineInfo ), &executableCount, nullptr ) );
24807 if ( ( result == Result::eSuccess ) && executableCount )
24808 {
24809 properties.resize( executableCount );
24810 result = static_cast<Result>(
24811 getDispatcher()->vkGetPipelineExecutablePropertiesKHR( static_cast<VkDevice>( m_device ),
24812 reinterpret_cast<VkPipelineInfoKHR const *>( &pipelineInfo ),
24813 &executableCount,
24814 reinterpret_cast<VkPipelineExecutablePropertiesKHR *>( properties.data() ) ) );
24815 }
24816 } while ( result == Result::eIncomplete );
24817 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getPipelineExecutablePropertiesKHR" );
24818 VULKAN_HPP_ASSERT( executableCount <= properties.size() );
24819 if ( executableCount < properties.size() )
24820 {
24821 properties.resize( executableCount );
24822 }
24823 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
24824 }
24825
24826 // wrapper function for command vkGetPipelineExecutableStatisticsKHR, see
24827 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableStatisticsKHR.html
24828 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PipelineExecutableStatisticKHR>>::type
24829 Device::getPipelineExecutableStatisticsKHR( PipelineExecutableInfoKHR const & executableInfo ) const
24830 {
24831 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPipelineExecutableStatisticsKHR &&
24832 "Function <vkGetPipelineExecutableStatisticsKHR> requires <VK_KHR_pipeline_executable_properties>" );
24833
24834 std::vector<PipelineExecutableStatisticKHR> statistics;
24835 uint32_t statisticCount;
24836 Result result;
24837 do
24838 {
24839 result = static_cast<Result>( getDispatcher()->vkGetPipelineExecutableStatisticsKHR(
24840 static_cast<VkDevice>( m_device ), reinterpret_cast<VkPipelineExecutableInfoKHR const *>( &executableInfo ), &statisticCount, nullptr ) );
24841 if ( ( result == Result::eSuccess ) && statisticCount )
24842 {
24843 statistics.resize( statisticCount );
24844 result = static_cast<Result>(
24845 getDispatcher()->vkGetPipelineExecutableStatisticsKHR( static_cast<VkDevice>( m_device ),
24846 reinterpret_cast<VkPipelineExecutableInfoKHR const *>( &executableInfo ),
24847 &statisticCount,
24848 reinterpret_cast<VkPipelineExecutableStatisticKHR *>( statistics.data() ) ) );
24849 }
24850 } while ( result == Result::eIncomplete );
24851 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getPipelineExecutableStatisticsKHR" );
24852 VULKAN_HPP_ASSERT( statisticCount <= statistics.size() );
24853 if ( statisticCount < statistics.size() )
24854 {
24855 statistics.resize( statisticCount );
24856 }
24857 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( statistics ) );
24858 }
24859
24860 // wrapper function for command vkGetPipelineExecutableInternalRepresentationsKHR, see
24861 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html
24862 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelineExecutableInternalRepresentationsKHR(
24863 PipelineExecutableInfoKHR const * pExecutableInfo,
24864 uint32_t * pInternalRepresentationCount,
24865 PipelineExecutableInternalRepresentationKHR * pInternalRepresentations ) const VULKAN_HPP_NOEXCEPT
24866 {
24867 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPipelineExecutableInternalRepresentationsKHR &&
24868 "Function <vkGetPipelineExecutableInternalRepresentationsKHR> requires <VK_KHR_pipeline_executable_properties>" );
24869 return static_cast<Result>( getDispatcher()->vkGetPipelineExecutableInternalRepresentationsKHR(
24870 static_cast<VkDevice>( m_device ),
24871 reinterpret_cast<VkPipelineExecutableInfoKHR const *>( pExecutableInfo ),
24872 pInternalRepresentationCount,
24873 reinterpret_cast<VkPipelineExecutableInternalRepresentationKHR *>( pInternalRepresentations ) ) );
24874 }
24875
24876 //=== VK_EXT_host_image_copy ===
24877
24878 // wrapper function for command vkCopyMemoryToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImageEXT.html
24879 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::copyMemoryToImageEXT( CopyMemoryToImageInfo const & copyMemoryToImageInfo ) const
24880 {
24881 VULKAN_HPP_ASSERT( getDispatcher()->vkCopyMemoryToImageEXT && "Function <vkCopyMemoryToImageEXT> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
24882
24883 Result result = static_cast<Result>( getDispatcher()->vkCopyMemoryToImageEXT(
24884 static_cast<VkDevice>( m_device ), reinterpret_cast<VkCopyMemoryToImageInfo const *>( &copyMemoryToImageInfo ) ) );
24885 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::copyMemoryToImageEXT" );
24886
24887 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
24888 }
24889
24890 // wrapper function for command vkCopyImageToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToMemoryEXT.html
24891 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::copyImageToMemoryEXT( CopyImageToMemoryInfo const & copyImageToMemoryInfo ) const
24892 {
24893 VULKAN_HPP_ASSERT( getDispatcher()->vkCopyImageToMemoryEXT && "Function <vkCopyImageToMemoryEXT> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
24894
24895 Result result = static_cast<Result>( getDispatcher()->vkCopyImageToMemoryEXT(
24896 static_cast<VkDevice>( m_device ), reinterpret_cast<VkCopyImageToMemoryInfo const *>( &copyImageToMemoryInfo ) ) );
24897 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::copyImageToMemoryEXT" );
24898
24899 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
24900 }
24901
24902 // wrapper function for command vkCopyImageToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToImageEXT.html
24903 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::copyImageToImageEXT( CopyImageToImageInfo const & copyImageToImageInfo ) const
24904 {
24905 VULKAN_HPP_ASSERT( getDispatcher()->vkCopyImageToImageEXT && "Function <vkCopyImageToImageEXT> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
24906
24907 Result result = static_cast<Result>( getDispatcher()->vkCopyImageToImageEXT(
24908 static_cast<VkDevice>( m_device ), reinterpret_cast<VkCopyImageToImageInfo const *>( &copyImageToImageInfo ) ) );
24909 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::copyImageToImageEXT" );
24910
24911 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
24912 }
24913
24914 // wrapper function for command vkTransitionImageLayoutEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTransitionImageLayoutEXT.html
24915 VULKAN_HPP_INLINE typename ResultValueType<void>::type
24916 Device::transitionImageLayoutEXT( ArrayProxy<HostImageLayoutTransitionInfo const> const & transitions ) const
24917 {
24918 VULKAN_HPP_ASSERT( getDispatcher()->vkTransitionImageLayoutEXT &&
24919 "Function <vkTransitionImageLayoutEXT> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
24920
24921 Result result = static_cast<Result>( getDispatcher()->vkTransitionImageLayoutEXT(
24922 static_cast<VkDevice>( m_device ), transitions.size(), reinterpret_cast<VkHostImageLayoutTransitionInfo const *>( transitions.data() ) ) );
24923 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::transitionImageLayoutEXT" );
24924
24925 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
24926 }
24927
24928 // wrapper function for command vkGetImageSubresourceLayout2EXT, see
24929 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2EXT.html
24930 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Image::getSubresourceLayout2EXT( ImageSubresource2 const & subresource ) const VULKAN_HPP_NOEXCEPT
24931 {
24932 VULKAN_HPP_ASSERT(
24933 getDispatcher()->vkGetImageSubresourceLayout2EXT &&
24934 "Function <vkGetImageSubresourceLayout2EXT> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
24935
24936 SubresourceLayout2 layout;
24937 getDispatcher()->vkGetImageSubresourceLayout2EXT( static_cast<VkDevice>( m_device ),
24938 static_cast<VkImage>( m_image ),
24939 reinterpret_cast<VkImageSubresource2 const *>( &subresource ),
24940 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
24941
24942 return layout;
24943 }
24944
24945 // wrapper function for command vkGetImageSubresourceLayout2EXT, see
24946 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2EXT.html
24947 template <typename X, typename Y, typename... Z>
24948 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
24949 Image::getSubresourceLayout2EXT( ImageSubresource2 const & subresource ) const VULKAN_HPP_NOEXCEPT
24950 {
24951 VULKAN_HPP_ASSERT(
24952 getDispatcher()->vkGetImageSubresourceLayout2EXT &&
24953 "Function <vkGetImageSubresourceLayout2EXT> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
24954
24955 StructureChain<X, Y, Z...> structureChain;
24956 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
24957 getDispatcher()->vkGetImageSubresourceLayout2EXT( static_cast<VkDevice>( m_device ),
24958 static_cast<VkImage>( m_image ),
24959 reinterpret_cast<VkImageSubresource2 const *>( &subresource ),
24960 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
24961
24962 return structureChain;
24963 }
24964
24965 //=== VK_KHR_map_memory2 ===
24966
24967 // wrapper function for command vkMapMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory2KHR.html
24968 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<void *>::type Device::mapMemory2KHR( MemoryMapInfo const & memoryMapInfo ) const
24969 {
24970 VULKAN_HPP_ASSERT( getDispatcher()->vkMapMemory2KHR && "Function <vkMapMemory2KHR> requires <VK_KHR_map_memory2> or <VK_VERSION_1_4>" );
24971
24972 void * pData;
24973 Result result = static_cast<Result>(
24974 getDispatcher()->vkMapMemory2KHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryMapInfo const *>( &memoryMapInfo ), &pData ) );
24975 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::mapMemory2KHR" );
24976
24977 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( pData ) );
24978 }
24979
24980 // wrapper function for command vkUnmapMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory2KHR.html
24981 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::unmapMemory2KHR( MemoryUnmapInfo const & memoryUnmapInfo ) const
24982 {
24983 VULKAN_HPP_ASSERT( getDispatcher()->vkUnmapMemory2KHR && "Function <vkUnmapMemory2KHR> requires <VK_KHR_map_memory2> or <VK_VERSION_1_4>" );
24984
24985 Result result = static_cast<Result>(
24986 getDispatcher()->vkUnmapMemory2KHR( static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryUnmapInfo const *>( &memoryUnmapInfo ) ) );
24987 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::unmapMemory2KHR" );
24988
24989 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
24990 }
24991
24992 //=== VK_EXT_swapchain_maintenance1 ===
24993
24994 // wrapper function for command vkReleaseSwapchainImagesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseSwapchainImagesEXT.html
24995 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::releaseSwapchainImagesEXT( ReleaseSwapchainImagesInfoKHR const & releaseInfo ) const
24996 {
24997 VULKAN_HPP_ASSERT( getDispatcher()->vkReleaseSwapchainImagesEXT &&
24998 "Function <vkReleaseSwapchainImagesEXT> requires <VK_EXT_swapchain_maintenance1> or <VK_KHR_swapchain_maintenance1>" );
24999
25000 Result result = static_cast<Result>( getDispatcher()->vkReleaseSwapchainImagesEXT(
25001 static_cast<VkDevice>( m_device ), reinterpret_cast<VkReleaseSwapchainImagesInfoKHR const *>( &releaseInfo ) ) );
25002 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::releaseSwapchainImagesEXT" );
25003
25004 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
25005 }
25006
25007 //=== VK_NV_device_generated_commands ===
25008
25009 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsNV, see
25010 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsNV.html
25011 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
25012 Device::getGeneratedCommandsMemoryRequirementsNV( GeneratedCommandsMemoryRequirementsInfoNV const & info ) const VULKAN_HPP_NOEXCEPT
25013 {
25014 VULKAN_HPP_ASSERT( getDispatcher()->vkGetGeneratedCommandsMemoryRequirementsNV &&
25015 "Function <vkGetGeneratedCommandsMemoryRequirementsNV> requires <VK_NV_device_generated_commands>" );
25016
25017 MemoryRequirements2 memoryRequirements;
25018 getDispatcher()->vkGetGeneratedCommandsMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
25019 reinterpret_cast<VkGeneratedCommandsMemoryRequirementsInfoNV const *>( &info ),
25020 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
25021
25022 return memoryRequirements;
25023 }
25024
25025 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsNV, see
25026 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsNV.html
25027 template <typename X, typename Y, typename... Z>
25028 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
25029 Device::getGeneratedCommandsMemoryRequirementsNV( GeneratedCommandsMemoryRequirementsInfoNV const & info ) const VULKAN_HPP_NOEXCEPT
25030 {
25031 VULKAN_HPP_ASSERT( getDispatcher()->vkGetGeneratedCommandsMemoryRequirementsNV &&
25032 "Function <vkGetGeneratedCommandsMemoryRequirementsNV> requires <VK_NV_device_generated_commands>" );
25033
25034 StructureChain<X, Y, Z...> structureChain;
25035 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
25036 getDispatcher()->vkGetGeneratedCommandsMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
25037 reinterpret_cast<VkGeneratedCommandsMemoryRequirementsInfoNV const *>( &info ),
25038 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
25039
25040 return structureChain;
25041 }
25042
25043 // wrapper function for command vkCmdPreprocessGeneratedCommandsNV, see
25044 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPreprocessGeneratedCommandsNV.html
25045 VULKAN_HPP_INLINE void CommandBuffer::preprocessGeneratedCommandsNV( GeneratedCommandsInfoNV const & generatedCommandsInfo ) const VULKAN_HPP_NOEXCEPT
25046 {
25047 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPreprocessGeneratedCommandsNV &&
25048 "Function <vkCmdPreprocessGeneratedCommandsNV> requires <VK_NV_device_generated_commands>" );
25049
25050 getDispatcher()->vkCmdPreprocessGeneratedCommandsNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
25051 reinterpret_cast<VkGeneratedCommandsInfoNV const *>( &generatedCommandsInfo ) );
25052 }
25053
25054 // wrapper function for command vkCmdExecuteGeneratedCommandsNV, see
25055 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteGeneratedCommandsNV.html
25056 VULKAN_HPP_INLINE void CommandBuffer::executeGeneratedCommandsNV( Bool32 isPreprocessed,
25057 GeneratedCommandsInfoNV const & generatedCommandsInfo ) const VULKAN_HPP_NOEXCEPT
25058 {
25059 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdExecuteGeneratedCommandsNV &&
25060 "Function <vkCmdExecuteGeneratedCommandsNV> requires <VK_NV_device_generated_commands>" );
25061
25062 getDispatcher()->vkCmdExecuteGeneratedCommandsNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
25063 static_cast<VkBool32>( isPreprocessed ),
25064 reinterpret_cast<VkGeneratedCommandsInfoNV const *>( &generatedCommandsInfo ) );
25065 }
25066
25067 // wrapper function for command vkCmdBindPipelineShaderGroupNV, see
25068 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindPipelineShaderGroupNV.html
25069 VULKAN_HPP_INLINE void CommandBuffer::bindPipelineShaderGroupNV( PipelineBindPoint pipelineBindPoint,
25070 VULKAN_HPP_NAMESPACE::Pipeline pipeline,
25071 uint32_t groupIndex ) const VULKAN_HPP_NOEXCEPT
25072 {
25073 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindPipelineShaderGroupNV &&
25074 "Function <vkCmdBindPipelineShaderGroupNV> requires <VK_NV_device_generated_commands>" );
25075
25076 getDispatcher()->vkCmdBindPipelineShaderGroupNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
25077 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
25078 static_cast<VkPipeline>( pipeline ),
25079 groupIndex );
25080 }
25081
25082 // wrapper function for command vkCreateIndirectCommandsLayoutNV, see
25083 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutNV.html
25084 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<IndirectCommandsLayoutNV>::type
25085 Device::createIndirectCommandsLayoutNV( IndirectCommandsLayoutCreateInfoNV const & createInfo,
25086 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
25087 {
25088 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateIndirectCommandsLayoutNV &&
25089 "Function <vkCreateIndirectCommandsLayoutNV> requires <VK_NV_device_generated_commands>" );
25090
25091 VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutNV indirectCommandsLayout;
25092 Result result =
25093 static_cast<Result>( getDispatcher()->vkCreateIndirectCommandsLayoutNV( static_cast<VkDevice>( m_device ),
25094 reinterpret_cast<VkIndirectCommandsLayoutCreateInfoNV const *>( &createInfo ),
25095 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
25096 reinterpret_cast<VkIndirectCommandsLayoutNV *>( &indirectCommandsLayout ) ) );
25097 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createIndirectCommandsLayoutNV" );
25098 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
25099 result, IndirectCommandsLayoutNV( *this, *reinterpret_cast<VkIndirectCommandsLayoutNV *>( &indirectCommandsLayout ), allocator ) );
25100 }
25101
25102 //=== VK_EXT_depth_bias_control ===
25103
25104 // wrapper function for command vkCmdSetDepthBias2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBias2EXT.html
25105 VULKAN_HPP_INLINE void CommandBuffer::setDepthBias2EXT( DepthBiasInfoEXT const & depthBiasInfo ) const VULKAN_HPP_NOEXCEPT
25106 {
25107 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthBias2EXT && "Function <vkCmdSetDepthBias2EXT> requires <VK_EXT_depth_bias_control>" );
25108
25109 getDispatcher()->vkCmdSetDepthBias2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDepthBiasInfoEXT const *>( &depthBiasInfo ) );
25110 }
25111
25112 //=== VK_EXT_acquire_drm_display ===
25113
25114 // wrapper function for command vkAcquireDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireDrmDisplayEXT.html
25115 VULKAN_HPP_INLINE typename ResultValueType<void>::type PhysicalDevice::acquireDrmDisplayEXT( int32_t drmFd, VULKAN_HPP_NAMESPACE::DisplayKHR display ) const
25116 {
25117 VULKAN_HPP_ASSERT( getDispatcher()->vkAcquireDrmDisplayEXT && "Function <vkAcquireDrmDisplayEXT> requires <VK_EXT_acquire_drm_display>" );
25118
25119 Result result = static_cast<Result>(
25120 getDispatcher()->vkAcquireDrmDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), drmFd, static_cast<VkDisplayKHR>( display ) ) );
25121 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::acquireDrmDisplayEXT" );
25122
25123 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
25124 }
25125
25126 // wrapper function for command vkGetDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDrmDisplayEXT.html
25127 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayKHR>::type
25128 PhysicalDevice::getDrmDisplayEXT( int32_t drmFd, uint32_t connectorId ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
25129 {
25130 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDrmDisplayEXT && "Function <vkGetDrmDisplayEXT> requires <VK_EXT_acquire_drm_display>" );
25131
25132 VULKAN_HPP_NAMESPACE::DisplayKHR display;
25133 Result result = static_cast<Result>( getDispatcher()->vkGetDrmDisplayEXT(
25134 static_cast<VkPhysicalDevice>( m_physicalDevice ), drmFd, connectorId, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
25135 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getDrmDisplayEXT" );
25136 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, DisplayKHR( *this, *reinterpret_cast<VkDisplayKHR *>( &display ) ) );
25137 }
25138
25139 //=== VK_EXT_private_data ===
25140
25141 // wrapper function for command vkCreatePrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlotEXT.html
25142 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PrivateDataSlot>::type
25143 Device::createPrivateDataSlotEXT( PrivateDataSlotCreateInfo const & createInfo,
25144 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
25145 {
25146 VULKAN_HPP_ASSERT( getDispatcher()->vkCreatePrivateDataSlotEXT &&
25147 "Function <vkCreatePrivateDataSlotEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
25148
25149 VULKAN_HPP_NAMESPACE::PrivateDataSlot privateDataSlot;
25150 Result result = static_cast<Result>( getDispatcher()->vkCreatePrivateDataSlotEXT( static_cast<VkDevice>( m_device ),
25151 reinterpret_cast<VkPrivateDataSlotCreateInfo const *>( &createInfo ),
25152 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
25153 reinterpret_cast<VkPrivateDataSlot *>( &privateDataSlot ) ) );
25154 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createPrivateDataSlotEXT" );
25155 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
25156 result, PrivateDataSlot( *this, *reinterpret_cast<VkPrivateDataSlot *>( &privateDataSlot ), allocator ) );
25157 }
25158
25159 // wrapper function for command vkDestroyPrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlotEXT.html
25160 VULKAN_HPP_INLINE void Device::destroyPrivateDataSlotEXT( VULKAN_HPP_NAMESPACE::PrivateDataSlot privateDataSlot,
25161 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT
25162 {
25163 VULKAN_HPP_ASSERT( getDispatcher()->vkDestroyPrivateDataSlotEXT &&
25164 "Function <vkDestroyPrivateDataSlotEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
25165
25166 getDispatcher()->vkDestroyPrivateDataSlotEXT( static_cast<VkDevice>( m_device ),
25167 static_cast<VkPrivateDataSlot>( privateDataSlot ),
25168 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) );
25169 }
25170
25171 // wrapper function for command vkSetPrivateDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetPrivateDataEXT.html
25172 VULKAN_HPP_INLINE typename ResultValueType<void>::type
25173 Device::setPrivateDataEXT( ObjectType objectType_, uint64_t objectHandle, VULKAN_HPP_NAMESPACE::PrivateDataSlot privateDataSlot, uint64_t data ) const
25174 {
25175 VULKAN_HPP_ASSERT( getDispatcher()->vkSetPrivateDataEXT && "Function <vkSetPrivateDataEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
25176
25177 Result result = static_cast<Result>( getDispatcher()->vkSetPrivateDataEXT(
25178 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), data ) );
25179 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::setPrivateDataEXT" );
25180
25181 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
25182 }
25183
25184 // wrapper function for command vkGetPrivateDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPrivateDataEXT.html
25185 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint64_t Device::getPrivateDataEXT( ObjectType objectType_,
25186 uint64_t objectHandle,
25187 VULKAN_HPP_NAMESPACE::PrivateDataSlot privateDataSlot ) const VULKAN_HPP_NOEXCEPT
25188 {
25189 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPrivateDataEXT && "Function <vkGetPrivateDataEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
25190
25191 uint64_t data;
25192 getDispatcher()->vkGetPrivateDataEXT(
25193 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), &data );
25194
25195 return data;
25196 }
25197
25198 //=== VK_KHR_video_encode_queue ===
25199
25200 // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see
25201 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html
25202 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VideoEncodeQualityLevelPropertiesKHR>::type
25203 PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR( PhysicalDeviceVideoEncodeQualityLevelInfoKHR const & qualityLevelInfo ) const
25204 {
25205 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR &&
25206 "Function <vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR> requires <VK_KHR_video_encode_queue>" );
25207
25208 VideoEncodeQualityLevelPropertiesKHR qualityLevelProperties;
25209 Result result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR(
25210 static_cast<VkPhysicalDevice>( m_physicalDevice ),
25211 reinterpret_cast<VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR const *>( &qualityLevelInfo ),
25212 reinterpret_cast<VkVideoEncodeQualityLevelPropertiesKHR *>( &qualityLevelProperties ) ) );
25213 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR" );
25214
25215 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( qualityLevelProperties ) );
25216 }
25217
25218 // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see
25219 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html
25220 template <typename X, typename Y, typename... Z>
25221 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
25222 PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR( PhysicalDeviceVideoEncodeQualityLevelInfoKHR const & qualityLevelInfo ) const
25223 {
25224 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR &&
25225 "Function <vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR> requires <VK_KHR_video_encode_queue>" );
25226
25227 StructureChain<X, Y, Z...> structureChain;
25228 VideoEncodeQualityLevelPropertiesKHR & qualityLevelProperties = structureChain.template get<VideoEncodeQualityLevelPropertiesKHR>();
25229 Result result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR(
25230 static_cast<VkPhysicalDevice>( m_physicalDevice ),
25231 reinterpret_cast<VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR const *>( &qualityLevelInfo ),
25232 reinterpret_cast<VkVideoEncodeQualityLevelPropertiesKHR *>( &qualityLevelProperties ) ) );
25233 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR" );
25234
25235 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( structureChain ) );
25236 }
25237
25238 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
25239 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
25240 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<VideoEncodeSessionParametersFeedbackInfoKHR, std::vector<uint8_t>>>::type
25241 Device::getEncodedVideoSessionParametersKHR( VideoEncodeSessionParametersGetInfoKHR const & videoSessionParametersInfo ) const
25242 {
25243 VULKAN_HPP_ASSERT( getDispatcher()->vkGetEncodedVideoSessionParametersKHR &&
25244 "Function <vkGetEncodedVideoSessionParametersKHR> requires <VK_KHR_video_encode_queue>" );
25245
25246 std::pair<VideoEncodeSessionParametersFeedbackInfoKHR, std::vector<uint8_t>> data_;
25247 VideoEncodeSessionParametersFeedbackInfoKHR & feedbackInfo = data_.first;
25248 std::vector<uint8_t> & data = data_.second;
25249 size_t dataSize;
25250 Result result;
25251 do
25252 {
25253 result = static_cast<Result>( getDispatcher()->vkGetEncodedVideoSessionParametersKHR(
25254 static_cast<VkDevice>( m_device ),
25255 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( &videoSessionParametersInfo ),
25256 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
25257 &dataSize,
25258 nullptr ) );
25259 if ( ( result == Result::eSuccess ) && dataSize )
25260 {
25261 data.resize( dataSize );
25262 result = static_cast<Result>( getDispatcher()->vkGetEncodedVideoSessionParametersKHR(
25263 static_cast<VkDevice>( m_device ),
25264 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( &videoSessionParametersInfo ),
25265 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
25266 &dataSize,
25267 reinterpret_cast<void *>( data.data() ) ) );
25268 }
25269 } while ( result == Result::eIncomplete );
25270 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getEncodedVideoSessionParametersKHR" );
25271
25272 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data_ ) );
25273 }
25274
25275 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
25276 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
25277 template <typename X, typename Y, typename... Z>
25278 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<StructureChain<X, Y, Z...>, std::vector<uint8_t>>>::type
25279 Device::getEncodedVideoSessionParametersKHR( VideoEncodeSessionParametersGetInfoKHR const & videoSessionParametersInfo ) const
25280 {
25281 VULKAN_HPP_ASSERT( getDispatcher()->vkGetEncodedVideoSessionParametersKHR &&
25282 "Function <vkGetEncodedVideoSessionParametersKHR> requires <VK_KHR_video_encode_queue>" );
25283
25284 std::pair<StructureChain<X, Y, Z...>, std::vector<uint8_t>> data_;
25285 VideoEncodeSessionParametersFeedbackInfoKHR & feedbackInfo = data_.first.template get<VideoEncodeSessionParametersFeedbackInfoKHR>();
25286 std::vector<uint8_t> & data = data_.second;
25287 size_t dataSize;
25288 Result result;
25289 do
25290 {
25291 result = static_cast<Result>( getDispatcher()->vkGetEncodedVideoSessionParametersKHR(
25292 static_cast<VkDevice>( m_device ),
25293 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( &videoSessionParametersInfo ),
25294 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
25295 &dataSize,
25296 nullptr ) );
25297 if ( ( result == Result::eSuccess ) && dataSize )
25298 {
25299 data.resize( dataSize );
25300 result = static_cast<Result>( getDispatcher()->vkGetEncodedVideoSessionParametersKHR(
25301 static_cast<VkDevice>( m_device ),
25302 reinterpret_cast<VkVideoEncodeSessionParametersGetInfoKHR const *>( &videoSessionParametersInfo ),
25303 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
25304 &dataSize,
25305 reinterpret_cast<void *>( data.data() ) ) );
25306 }
25307 } while ( result == Result::eIncomplete );
25308 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getEncodedVideoSessionParametersKHR" );
25309
25310 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data_ ) );
25311 }
25312
25313 // wrapper function for command vkCmdEncodeVideoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEncodeVideoKHR.html
25314 VULKAN_HPP_INLINE void CommandBuffer::encodeVideoKHR( VideoEncodeInfoKHR const & encodeInfo ) const VULKAN_HPP_NOEXCEPT
25315 {
25316 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEncodeVideoKHR && "Function <vkCmdEncodeVideoKHR> requires <VK_KHR_video_encode_queue>" );
25317
25318 getDispatcher()->vkCmdEncodeVideoKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkVideoEncodeInfoKHR const *>( &encodeInfo ) );
25319 }
25320
25321 # if defined( VK_ENABLE_BETA_EXTENSIONS )
25322 //=== VK_NV_cuda_kernel_launch ===
25323
25324 // wrapper function for command vkCreateCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaModuleNV.html
25325 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CudaModuleNV>::type
25326 Device::createCudaModuleNV( CudaModuleCreateInfoNV const & createInfo,
25327 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
25328 {
25329 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateCudaModuleNV && "Function <vkCreateCudaModuleNV> requires <VK_NV_cuda_kernel_launch>" );
25330
25331 VULKAN_HPP_NAMESPACE::CudaModuleNV module;
25332 Result result = static_cast<Result>( getDispatcher()->vkCreateCudaModuleNV( static_cast<VkDevice>( m_device ),
25333 reinterpret_cast<VkCudaModuleCreateInfoNV const *>( &createInfo ),
25334 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
25335 reinterpret_cast<VkCudaModuleNV *>( &module ) ) );
25336 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createCudaModuleNV" );
25337 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, CudaModuleNV( *this, *reinterpret_cast<VkCudaModuleNV *>( &module ), allocator ) );
25338 }
25339
25340 // wrapper function for command vkGetCudaModuleCacheNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCudaModuleCacheNV.html
25341 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t>>::type CudaModuleNV::getCache() const
25342 {
25343 VULKAN_HPP_ASSERT( getDispatcher()->vkGetCudaModuleCacheNV && "Function <vkGetCudaModuleCacheNV> requires <VK_NV_cuda_kernel_launch>" );
25344
25345 std::vector<uint8_t> cacheData;
25346 size_t cacheSize;
25347 Result result;
25348 do
25349 {
25350 result = static_cast<Result>(
25351 getDispatcher()->vkGetCudaModuleCacheNV( static_cast<VkDevice>( m_device ), static_cast<VkCudaModuleNV>( m_cudaModuleNV ), &cacheSize, nullptr ) );
25352 if ( ( result == Result::eSuccess ) && cacheSize )
25353 {
25354 cacheData.resize( cacheSize );
25355 result = static_cast<Result>( getDispatcher()->vkGetCudaModuleCacheNV(
25356 static_cast<VkDevice>( m_device ), static_cast<VkCudaModuleNV>( m_cudaModuleNV ), &cacheSize, reinterpret_cast<void *>( cacheData.data() ) ) );
25357 }
25358 } while ( result == Result::eIncomplete );
25359 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::CudaModuleNV::getCache" );
25360 VULKAN_HPP_ASSERT( cacheSize <= cacheData.size() );
25361 if ( cacheSize < cacheData.size() )
25362 {
25363 cacheData.resize( cacheSize );
25364 }
25365 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( cacheData ) );
25366 }
25367
25368 // wrapper function for command vkCreateCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaFunctionNV.html
25369 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CudaFunctionNV>::type
25370 Device::createCudaFunctionNV( CudaFunctionCreateInfoNV const & createInfo,
25371 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
25372 {
25373 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateCudaFunctionNV && "Function <vkCreateCudaFunctionNV> requires <VK_NV_cuda_kernel_launch>" );
25374
25375 VULKAN_HPP_NAMESPACE::CudaFunctionNV function;
25376 Result result = static_cast<Result>( getDispatcher()->vkCreateCudaFunctionNV( static_cast<VkDevice>( m_device ),
25377 reinterpret_cast<VkCudaFunctionCreateInfoNV const *>( &createInfo ),
25378 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
25379 reinterpret_cast<VkCudaFunctionNV *>( &function ) ) );
25380 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createCudaFunctionNV" );
25381 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result,
25382 CudaFunctionNV( *this, *reinterpret_cast<VkCudaFunctionNV *>( &function ), allocator ) );
25383 }
25384
25385 // wrapper function for command vkCmdCudaLaunchKernelNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCudaLaunchKernelNV.html
25386 VULKAN_HPP_INLINE void CommandBuffer::cudaLaunchKernelNV( CudaLaunchInfoNV const & launchInfo ) const VULKAN_HPP_NOEXCEPT
25387 {
25388 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCudaLaunchKernelNV && "Function <vkCmdCudaLaunchKernelNV> requires <VK_NV_cuda_kernel_launch>" );
25389
25390 getDispatcher()->vkCmdCudaLaunchKernelNV( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCudaLaunchInfoNV const *>( &launchInfo ) );
25391 }
25392 # endif /*VK_ENABLE_BETA_EXTENSIONS*/
25393
25394 //=== VK_QCOM_tile_shading ===
25395
25396 // wrapper function for command vkCmdDispatchTileQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchTileQCOM.html
25397 VULKAN_HPP_INLINE void CommandBuffer::dispatchTileQCOM( DispatchTileInfoQCOM const & dispatchTileInfo ) const VULKAN_HPP_NOEXCEPT
25398 {
25399 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDispatchTileQCOM && "Function <vkCmdDispatchTileQCOM> requires <VK_QCOM_tile_shading>" );
25400
25401 getDispatcher()->vkCmdDispatchTileQCOM( static_cast<VkCommandBuffer>( m_commandBuffer ),
25402 reinterpret_cast<VkDispatchTileInfoQCOM const *>( &dispatchTileInfo ) );
25403 }
25404
25405 // wrapper function for command vkCmdBeginPerTileExecutionQCOM, see
25406 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginPerTileExecutionQCOM.html
25407 VULKAN_HPP_INLINE void CommandBuffer::beginPerTileExecutionQCOM( PerTileBeginInfoQCOM const & perTileBeginInfo ) const VULKAN_HPP_NOEXCEPT
25408 {
25409 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginPerTileExecutionQCOM && "Function <vkCmdBeginPerTileExecutionQCOM> requires <VK_QCOM_tile_shading>" );
25410
25411 getDispatcher()->vkCmdBeginPerTileExecutionQCOM( static_cast<VkCommandBuffer>( m_commandBuffer ),
25412 reinterpret_cast<VkPerTileBeginInfoQCOM const *>( &perTileBeginInfo ) );
25413 }
25414
25415 // wrapper function for command vkCmdEndPerTileExecutionQCOM, see
25416 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndPerTileExecutionQCOM.html
25417 VULKAN_HPP_INLINE void CommandBuffer::endPerTileExecutionQCOM( PerTileEndInfoQCOM const & perTileEndInfo ) const VULKAN_HPP_NOEXCEPT
25418 {
25419 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndPerTileExecutionQCOM && "Function <vkCmdEndPerTileExecutionQCOM> requires <VK_QCOM_tile_shading>" );
25420
25421 getDispatcher()->vkCmdEndPerTileExecutionQCOM( static_cast<VkCommandBuffer>( m_commandBuffer ),
25422 reinterpret_cast<VkPerTileEndInfoQCOM const *>( &perTileEndInfo ) );
25423 }
25424
25425 # if defined( VK_USE_PLATFORM_METAL_EXT )
25426 //=== VK_EXT_metal_objects ===
25427
25428 // wrapper function for command vkExportMetalObjectsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkExportMetalObjectsEXT.html
25429 VULKAN_HPP_INLINE void Device::exportMetalObjectsEXT( ExportMetalObjectsInfoEXT & metalObjectsInfo ) const VULKAN_HPP_NOEXCEPT
25430 {
25431 VULKAN_HPP_ASSERT( getDispatcher()->vkExportMetalObjectsEXT && "Function <vkExportMetalObjectsEXT> requires <VK_EXT_metal_objects>" );
25432
25433 getDispatcher()->vkExportMetalObjectsEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkExportMetalObjectsInfoEXT *>( &metalObjectsInfo ) );
25434 }
25435 # endif /*VK_USE_PLATFORM_METAL_EXT*/
25436
25437 //=== VK_KHR_synchronization2 ===
25438
25439 // wrapper function for command vkCmdSetEvent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent2KHR.html
25440 VULKAN_HPP_INLINE void CommandBuffer::setEvent2KHR( VULKAN_HPP_NAMESPACE::Event event, DependencyInfo const & dependencyInfo ) const VULKAN_HPP_NOEXCEPT
25441 {
25442 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetEvent2KHR && "Function <vkCmdSetEvent2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
25443
25444 getDispatcher()->vkCmdSetEvent2KHR(
25445 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), reinterpret_cast<VkDependencyInfo const *>( &dependencyInfo ) );
25446 }
25447
25448 // wrapper function for command vkCmdResetEvent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetEvent2KHR.html
25449 VULKAN_HPP_INLINE void CommandBuffer::resetEvent2KHR( VULKAN_HPP_NAMESPACE::Event event, PipelineStageFlags2 stageMask ) const VULKAN_HPP_NOEXCEPT
25450 {
25451 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdResetEvent2KHR && "Function <vkCmdResetEvent2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
25452
25453 getDispatcher()->vkCmdResetEvent2KHR(
25454 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), static_cast<VkPipelineStageFlags2>( stageMask ) );
25455 }
25456
25457 // wrapper function for command vkCmdWaitEvents2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents2KHR.html
25458 VULKAN_HPP_INLINE void CommandBuffer::waitEvents2KHR( ArrayProxy<VULKAN_HPP_NAMESPACE::Event const> const & events,
25459 ArrayProxy<DependencyInfo const> const & dependencyInfos ) const
25460 {
25461 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdWaitEvents2KHR && "Function <vkCmdWaitEvents2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
25462 # ifdef VULKAN_HPP_NO_EXCEPTIONS
25463 VULKAN_HPP_ASSERT( events.size() == dependencyInfos.size() );
25464 # else
25465 if ( events.size() != dependencyInfos.size() )
25466 {
25467 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::waitEvents2KHR: events.size() != dependencyInfos.size()" );
25468 }
25469 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
25470
25471 getDispatcher()->vkCmdWaitEvents2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25472 events.size(),
25473 reinterpret_cast<VkEvent const *>( events.data() ),
25474 reinterpret_cast<VkDependencyInfo const *>( dependencyInfos.data() ) );
25475 }
25476
25477 // wrapper function for command vkCmdPipelineBarrier2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier2KHR.html
25478 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier2KHR( DependencyInfo const & dependencyInfo ) const VULKAN_HPP_NOEXCEPT
25479 {
25480 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPipelineBarrier2KHR &&
25481 "Function <vkCmdPipelineBarrier2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
25482
25483 getDispatcher()->vkCmdPipelineBarrier2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25484 reinterpret_cast<VkDependencyInfo const *>( &dependencyInfo ) );
25485 }
25486
25487 // wrapper function for command vkCmdWriteTimestamp2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteTimestamp2KHR.html
25488 VULKAN_HPP_INLINE void
25489 CommandBuffer::writeTimestamp2KHR( PipelineStageFlags2 stage, VULKAN_HPP_NAMESPACE::QueryPool queryPool, uint32_t query ) const VULKAN_HPP_NOEXCEPT
25490 {
25491 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdWriteTimestamp2KHR &&
25492 "Function <vkCmdWriteTimestamp2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
25493
25494 getDispatcher()->vkCmdWriteTimestamp2KHR(
25495 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineStageFlags2>( stage ), static_cast<VkQueryPool>( queryPool ), query );
25496 }
25497
25498 // wrapper function for command vkQueueSubmit2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2KHR.html
25499 VULKAN_HPP_INLINE typename ResultValueType<void>::type Queue::submit2KHR( ArrayProxy<SubmitInfo2 const> const & submits,
25500 VULKAN_HPP_NAMESPACE::Fence fence ) const
25501 {
25502 VULKAN_HPP_ASSERT( getDispatcher()->vkQueueSubmit2KHR && "Function <vkQueueSubmit2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
25503
25504 Result result = static_cast<Result>( getDispatcher()->vkQueueSubmit2KHR(
25505 static_cast<VkQueue>( m_queue ), submits.size(), reinterpret_cast<VkSubmitInfo2 const *>( submits.data() ), static_cast<VkFence>( fence ) ) );
25506 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Queue::submit2KHR" );
25507
25508 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
25509 }
25510
25511 //=== VK_EXT_descriptor_buffer ===
25512
25513 // wrapper function for command vkGetDescriptorSetLayoutSizeEXT, see
25514 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSizeEXT.html
25515 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceSize DescriptorSetLayout::getSizeEXT() const VULKAN_HPP_NOEXCEPT
25516 {
25517 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDescriptorSetLayoutSizeEXT && "Function <vkGetDescriptorSetLayoutSizeEXT> requires <VK_EXT_descriptor_buffer>" );
25518
25519 DeviceSize layoutSizeInBytes;
25520 getDispatcher()->vkGetDescriptorSetLayoutSizeEXT( static_cast<VkDevice>( m_device ),
25521 static_cast<VkDescriptorSetLayout>( m_descriptorSetLayout ),
25522 reinterpret_cast<VkDeviceSize *>( &layoutSizeInBytes ) );
25523
25524 return layoutSizeInBytes;
25525 }
25526
25527 // wrapper function for command vkGetDescriptorSetLayoutBindingOffsetEXT, see
25528 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutBindingOffsetEXT.html
25529 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceSize DescriptorSetLayout::getBindingOffsetEXT( uint32_t binding ) const VULKAN_HPP_NOEXCEPT
25530 {
25531 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDescriptorSetLayoutBindingOffsetEXT &&
25532 "Function <vkGetDescriptorSetLayoutBindingOffsetEXT> requires <VK_EXT_descriptor_buffer>" );
25533
25534 DeviceSize offset;
25535 getDispatcher()->vkGetDescriptorSetLayoutBindingOffsetEXT(
25536 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorSetLayout>( m_descriptorSetLayout ), binding, reinterpret_cast<VkDeviceSize *>( &offset ) );
25537
25538 return offset;
25539 }
25540
25541 // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html
25542 VULKAN_HPP_INLINE void
25543 Device::getDescriptorEXT( DescriptorGetInfoEXT const * pDescriptorInfo, size_t dataSize, void * pDescriptor ) const VULKAN_HPP_NOEXCEPT
25544 {
25545 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDescriptorEXT && "Function <vkGetDescriptorEXT> requires <VK_EXT_descriptor_buffer>" );
25546 getDispatcher()->vkGetDescriptorEXT(
25547 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDescriptorGetInfoEXT const *>( pDescriptorInfo ), dataSize, pDescriptor );
25548 }
25549
25550 // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html
25551 VULKAN_HPP_INLINE void
25552 Device::getDescriptorEXT( DescriptorGetInfoEXT const & descriptorInfo, size_t dataSize, void * pDescriptor ) const VULKAN_HPP_NOEXCEPT
25553 {
25554 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDescriptorEXT && "Function <vkGetDescriptorEXT> requires <VK_EXT_descriptor_buffer>" );
25555
25556 getDispatcher()->vkGetDescriptorEXT(
25557 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDescriptorGetInfoEXT const *>( &descriptorInfo ), dataSize, pDescriptor );
25558 }
25559
25560 // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html
25561 template <typename DescriptorType>
25562 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DescriptorType Device::getDescriptorEXT( DescriptorGetInfoEXT const & descriptorInfo ) const VULKAN_HPP_NOEXCEPT
25563 {
25564 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDescriptorEXT && "Function <vkGetDescriptorEXT> requires <VK_EXT_descriptor_buffer>" );
25565
25566 DescriptorType descriptor;
25567 getDispatcher()->vkGetDescriptorEXT( static_cast<VkDevice>( m_device ),
25568 reinterpret_cast<VkDescriptorGetInfoEXT const *>( &descriptorInfo ),
25569 sizeof( DescriptorType ),
25570 reinterpret_cast<void *>( &descriptor ) );
25571
25572 return descriptor;
25573 }
25574
25575 // wrapper function for command vkCmdBindDescriptorBuffersEXT, see
25576 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBuffersEXT.html
25577 VULKAN_HPP_INLINE void
25578 CommandBuffer::bindDescriptorBuffersEXT( ArrayProxy<DescriptorBufferBindingInfoEXT const> const & bindingInfos ) const VULKAN_HPP_NOEXCEPT
25579 {
25580 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindDescriptorBuffersEXT && "Function <vkCmdBindDescriptorBuffersEXT> requires <VK_EXT_descriptor_buffer>" );
25581
25582 getDispatcher()->vkCmdBindDescriptorBuffersEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
25583 bindingInfos.size(),
25584 reinterpret_cast<VkDescriptorBufferBindingInfoEXT const *>( bindingInfos.data() ) );
25585 }
25586
25587 // wrapper function for command vkCmdSetDescriptorBufferOffsetsEXT, see
25588 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDescriptorBufferOffsetsEXT.html
25589 VULKAN_HPP_INLINE void CommandBuffer::setDescriptorBufferOffsetsEXT( PipelineBindPoint pipelineBindPoint,
25590 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
25591 uint32_t firstSet,
25592 ArrayProxy<uint32_t const> const & bufferIndices,
25593 ArrayProxy<DeviceSize const> const & offsets ) const
25594 {
25595 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDescriptorBufferOffsetsEXT &&
25596 "Function <vkCmdSetDescriptorBufferOffsetsEXT> requires <VK_EXT_descriptor_buffer>" );
25597 # ifdef VULKAN_HPP_NO_EXCEPTIONS
25598 VULKAN_HPP_ASSERT( bufferIndices.size() == offsets.size() );
25599 # else
25600 if ( bufferIndices.size() != offsets.size() )
25601 {
25602 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setDescriptorBufferOffsetsEXT: bufferIndices.size() != offsets.size()" );
25603 }
25604 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
25605
25606 getDispatcher()->vkCmdSetDescriptorBufferOffsetsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
25607 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
25608 static_cast<VkPipelineLayout>( layout ),
25609 firstSet,
25610 bufferIndices.size(),
25611 bufferIndices.data(),
25612 reinterpret_cast<VkDeviceSize const *>( offsets.data() ) );
25613 }
25614
25615 // wrapper function for command vkCmdBindDescriptorBufferEmbeddedSamplersEXT, see
25616 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBufferEmbeddedSamplersEXT.html
25617 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorBufferEmbeddedSamplersEXT( PipelineBindPoint pipelineBindPoint,
25618 VULKAN_HPP_NAMESPACE::PipelineLayout layout,
25619 uint32_t set ) const VULKAN_HPP_NOEXCEPT
25620 {
25621 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindDescriptorBufferEmbeddedSamplersEXT &&
25622 "Function <vkCmdBindDescriptorBufferEmbeddedSamplersEXT> requires <VK_EXT_descriptor_buffer>" );
25623
25624 getDispatcher()->vkCmdBindDescriptorBufferEmbeddedSamplersEXT(
25625 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipelineLayout>( layout ), set );
25626 }
25627
25628 // wrapper function for command vkGetBufferOpaqueCaptureDescriptorDataEXT, see
25629 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureDescriptorDataEXT.html
25630 template <typename DataType>
25631 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
25632 Device::getBufferOpaqueCaptureDescriptorDataEXT( BufferCaptureDescriptorDataInfoEXT const & info ) const
25633 {
25634 VULKAN_HPP_ASSERT( getDispatcher()->vkGetBufferOpaqueCaptureDescriptorDataEXT &&
25635 "Function <vkGetBufferOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
25636
25637 DataType data;
25638 Result result = static_cast<Result>( getDispatcher()->vkGetBufferOpaqueCaptureDescriptorDataEXT(
25639 static_cast<VkDevice>( m_device ), reinterpret_cast<VkBufferCaptureDescriptorDataInfoEXT const *>( &info ), &data ) );
25640 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getBufferOpaqueCaptureDescriptorDataEXT" );
25641
25642 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
25643 }
25644
25645 // wrapper function for command vkGetImageOpaqueCaptureDescriptorDataEXT, see
25646 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDescriptorDataEXT.html
25647 template <typename DataType>
25648 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
25649 Device::getImageOpaqueCaptureDescriptorDataEXT( ImageCaptureDescriptorDataInfoEXT const & info ) const
25650 {
25651 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageOpaqueCaptureDescriptorDataEXT &&
25652 "Function <vkGetImageOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
25653
25654 DataType data;
25655 Result result = static_cast<Result>( getDispatcher()->vkGetImageOpaqueCaptureDescriptorDataEXT(
25656 static_cast<VkDevice>( m_device ), reinterpret_cast<VkImageCaptureDescriptorDataInfoEXT const *>( &info ), &data ) );
25657 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDescriptorDataEXT" );
25658
25659 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
25660 }
25661
25662 // wrapper function for command vkGetImageViewOpaqueCaptureDescriptorDataEXT, see
25663 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewOpaqueCaptureDescriptorDataEXT.html
25664 template <typename DataType>
25665 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
25666 Device::getImageViewOpaqueCaptureDescriptorDataEXT( ImageViewCaptureDescriptorDataInfoEXT const & info ) const
25667 {
25668 VULKAN_HPP_ASSERT( getDispatcher()->vkGetImageViewOpaqueCaptureDescriptorDataEXT &&
25669 "Function <vkGetImageViewOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
25670
25671 DataType data;
25672 Result result = static_cast<Result>( getDispatcher()->vkGetImageViewOpaqueCaptureDescriptorDataEXT(
25673 static_cast<VkDevice>( m_device ), reinterpret_cast<VkImageViewCaptureDescriptorDataInfoEXT const *>( &info ), &data ) );
25674 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getImageViewOpaqueCaptureDescriptorDataEXT" );
25675
25676 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
25677 }
25678
25679 // wrapper function for command vkGetSamplerOpaqueCaptureDescriptorDataEXT, see
25680 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSamplerOpaqueCaptureDescriptorDataEXT.html
25681 template <typename DataType>
25682 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
25683 Device::getSamplerOpaqueCaptureDescriptorDataEXT( SamplerCaptureDescriptorDataInfoEXT const & info ) const
25684 {
25685 VULKAN_HPP_ASSERT( getDispatcher()->vkGetSamplerOpaqueCaptureDescriptorDataEXT &&
25686 "Function <vkGetSamplerOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
25687
25688 DataType data;
25689 Result result = static_cast<Result>( getDispatcher()->vkGetSamplerOpaqueCaptureDescriptorDataEXT(
25690 static_cast<VkDevice>( m_device ), reinterpret_cast<VkSamplerCaptureDescriptorDataInfoEXT const *>( &info ), &data ) );
25691 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getSamplerOpaqueCaptureDescriptorDataEXT" );
25692
25693 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
25694 }
25695
25696 // wrapper function for command vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT, see
25697 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT.html
25698 template <typename DataType>
25699 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
25700 Device::getAccelerationStructureOpaqueCaptureDescriptorDataEXT( AccelerationStructureCaptureDescriptorDataInfoEXT const & info ) const
25701 {
25702 VULKAN_HPP_ASSERT( getDispatcher()->vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT &&
25703 "Function <vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
25704
25705 DataType data;
25706 Result result = static_cast<Result>( getDispatcher()->vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT(
25707 static_cast<VkDevice>( m_device ), reinterpret_cast<VkAccelerationStructureCaptureDescriptorDataInfoEXT const *>( &info ), &data ) );
25708 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getAccelerationStructureOpaqueCaptureDescriptorDataEXT" );
25709
25710 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
25711 }
25712
25713 //=== VK_KHR_device_address_commands ===
25714
25715 // wrapper function for command vkCmdBindIndexBuffer3KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer3KHR.html
25716 VULKAN_HPP_INLINE void CommandBuffer::bindIndexBuffer3KHR( BindIndexBuffer3InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT
25717 {
25718 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindIndexBuffer3KHR && "Function <vkCmdBindIndexBuffer3KHR> requires <VK_KHR_device_address_commands>" );
25719
25720 getDispatcher()->vkCmdBindIndexBuffer3KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25721 reinterpret_cast<VkBindIndexBuffer3InfoKHR const *>( &info ) );
25722 }
25723
25724 // wrapper function for command vkCmdBindVertexBuffers3KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers3KHR.html
25725 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers3KHR( uint32_t firstBinding,
25726 ArrayProxy<BindVertexBuffer3InfoKHR const> const & bindingInfos ) const VULKAN_HPP_NOEXCEPT
25727 {
25728 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindVertexBuffers3KHR && "Function <vkCmdBindVertexBuffers3KHR> requires <VK_KHR_device_address_commands>" );
25729
25730 getDispatcher()->vkCmdBindVertexBuffers3KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25731 firstBinding,
25732 bindingInfos.size(),
25733 reinterpret_cast<VkBindVertexBuffer3InfoKHR const *>( bindingInfos.data() ) );
25734 }
25735
25736 // wrapper function for command vkCmdDrawIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirect2KHR.html
25737 VULKAN_HPP_INLINE void CommandBuffer::drawIndirect2KHR( DrawIndirect2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT
25738 {
25739 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndirect2KHR && "Function <vkCmdDrawIndirect2KHR> requires <VK_KHR_device_address_commands>" );
25740
25741 getDispatcher()->vkCmdDrawIndirect2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkDrawIndirect2InfoKHR const *>( &info ) );
25742 }
25743
25744 // wrapper function for command vkCmdDrawIndexedIndirect2KHR, see
25745 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirect2KHR.html
25746 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirect2KHR( DrawIndirect2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT
25747 {
25748 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndexedIndirect2KHR && "Function <vkCmdDrawIndexedIndirect2KHR> requires <VK_KHR_device_address_commands>" );
25749
25750 getDispatcher()->vkCmdDrawIndexedIndirect2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25751 reinterpret_cast<VkDrawIndirect2InfoKHR const *>( &info ) );
25752 }
25753
25754 // wrapper function for command vkCmdDispatchIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchIndirect2KHR.html
25755 VULKAN_HPP_INLINE void CommandBuffer::dispatchIndirect2KHR( DispatchIndirect2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT
25756 {
25757 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDispatchIndirect2KHR && "Function <vkCmdDispatchIndirect2KHR> requires <VK_KHR_device_address_commands>" );
25758
25759 getDispatcher()->vkCmdDispatchIndirect2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25760 reinterpret_cast<VkDispatchIndirect2InfoKHR const *>( &info ) );
25761 }
25762
25763 // wrapper function for command vkCmdCopyMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryKHR.html
25764 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryKHR( Optional<CopyDeviceMemoryInfoKHR const> copyMemoryInfo ) const VULKAN_HPP_NOEXCEPT
25765 {
25766 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyMemoryKHR && "Function <vkCmdCopyMemoryKHR> requires <VK_KHR_device_address_commands>" );
25767
25768 getDispatcher()->vkCmdCopyMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25769 reinterpret_cast<VkCopyDeviceMemoryInfoKHR const *>( copyMemoryInfo.get() ) );
25770 }
25771
25772 // wrapper function for command vkCmdCopyMemoryToImageKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageKHR.html
25773 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToImageKHR( Optional<CopyDeviceMemoryImageInfoKHR const> copyMemoryInfo ) const VULKAN_HPP_NOEXCEPT
25774 {
25775 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyMemoryToImageKHR && "Function <vkCmdCopyMemoryToImageKHR> requires <VK_KHR_device_address_commands>" );
25776
25777 getDispatcher()->vkCmdCopyMemoryToImageKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25778 reinterpret_cast<VkCopyDeviceMemoryImageInfoKHR const *>( copyMemoryInfo.get() ) );
25779 }
25780
25781 // wrapper function for command vkCmdCopyImageToMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToMemoryKHR.html
25782 VULKAN_HPP_INLINE void CommandBuffer::copyImageToMemoryKHR( Optional<CopyDeviceMemoryImageInfoKHR const> copyMemoryInfo ) const VULKAN_HPP_NOEXCEPT
25783 {
25784 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyImageToMemoryKHR && "Function <vkCmdCopyImageToMemoryKHR> requires <VK_KHR_device_address_commands>" );
25785
25786 getDispatcher()->vkCmdCopyImageToMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25787 reinterpret_cast<VkCopyDeviceMemoryImageInfoKHR const *>( copyMemoryInfo.get() ) );
25788 }
25789
25790 // wrapper function for command vkCmdUpdateMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateMemoryKHR.html
25791 VULKAN_HPP_INLINE void CommandBuffer::updateMemoryKHR( DeviceAddressRangeKHR const * pDstRange,
25792 AddressCommandFlagsKHR dstFlags,
25793 DeviceSize dataSize,
25794 void const * pData ) const VULKAN_HPP_NOEXCEPT
25795 {
25796 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdUpdateMemoryKHR && "Function <vkCmdUpdateMemoryKHR> requires <VK_KHR_device_address_commands>" );
25797 getDispatcher()->vkCmdUpdateMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25798 reinterpret_cast<VkDeviceAddressRangeKHR const *>( pDstRange ),
25799 static_cast<VkAddressCommandFlagsKHR>( dstFlags ),
25800 static_cast<VkDeviceSize>( dataSize ),
25801 pData );
25802 }
25803
25804 // wrapper function for command vkCmdUpdateMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateMemoryKHR.html
25805 template <typename DataType>
25806 VULKAN_HPP_INLINE void CommandBuffer::updateMemoryKHR( DeviceAddressRangeKHR const & dstRange,
25807 AddressCommandFlagsKHR dstFlags,
25808 ArrayProxy<DataType const> const & data ) const VULKAN_HPP_NOEXCEPT
25809 {
25810 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdUpdateMemoryKHR && "Function <vkCmdUpdateMemoryKHR> requires <VK_KHR_device_address_commands>" );
25811
25812 getDispatcher()->vkCmdUpdateMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25813 reinterpret_cast<VkDeviceAddressRangeKHR const *>( &dstRange ),
25814 static_cast<VkAddressCommandFlagsKHR>( dstFlags ),
25815 data.size() * sizeof( DataType ),
25816 reinterpret_cast<void const *>( data.data() ) );
25817 }
25818
25819 // wrapper function for command vkCmdFillMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdFillMemoryKHR.html
25820 VULKAN_HPP_INLINE void
25821 CommandBuffer::fillMemoryKHR( DeviceAddressRangeKHR const & dstRange, AddressCommandFlagsKHR dstFlags, uint32_t data ) const VULKAN_HPP_NOEXCEPT
25822 {
25823 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdFillMemoryKHR && "Function <vkCmdFillMemoryKHR> requires <VK_KHR_device_address_commands>" );
25824
25825 getDispatcher()->vkCmdFillMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25826 reinterpret_cast<VkDeviceAddressRangeKHR const *>( &dstRange ),
25827 static_cast<VkAddressCommandFlagsKHR>( dstFlags ),
25828 data );
25829 }
25830
25831 // wrapper function for command vkCmdCopyQueryPoolResultsToMemoryKHR, see
25832 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyQueryPoolResultsToMemoryKHR.html
25833 VULKAN_HPP_INLINE void CommandBuffer::copyQueryPoolResultsToMemoryKHR( VULKAN_HPP_NAMESPACE::QueryPool queryPool,
25834 uint32_t firstQuery,
25835 uint32_t queryCount,
25836 StridedDeviceAddressRangeKHR const & dstRange,
25837 AddressCommandFlagsKHR dstFlags,
25838 QueryResultFlags queryResultFlags ) const VULKAN_HPP_NOEXCEPT
25839 {
25840 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyQueryPoolResultsToMemoryKHR &&
25841 "Function <vkCmdCopyQueryPoolResultsToMemoryKHR> requires <VK_KHR_device_address_commands>" );
25842
25843 getDispatcher()->vkCmdCopyQueryPoolResultsToMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25844 static_cast<VkQueryPool>( queryPool ),
25845 firstQuery,
25846 queryCount,
25847 reinterpret_cast<VkStridedDeviceAddressRangeKHR const *>( &dstRange ),
25848 static_cast<VkAddressCommandFlagsKHR>( dstFlags ),
25849 static_cast<VkQueryResultFlags>( queryResultFlags ) );
25850 }
25851
25852 // wrapper function for command vkCmdDrawIndirectCount2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCount2KHR.html
25853 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectCount2KHR( DrawIndirectCount2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT
25854 {
25855 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndirectCount2KHR && "Function <vkCmdDrawIndirectCount2KHR> requires <VK_KHR_device_address_commands>" );
25856
25857 getDispatcher()->vkCmdDrawIndirectCount2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25858 reinterpret_cast<VkDrawIndirectCount2InfoKHR const *>( &info ) );
25859 }
25860
25861 // wrapper function for command vkCmdDrawIndexedIndirectCount2KHR, see
25862 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCount2KHR.html
25863 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirectCount2KHR( DrawIndirectCount2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT
25864 {
25865 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndexedIndirectCount2KHR &&
25866 "Function <vkCmdDrawIndexedIndirectCount2KHR> requires <VK_KHR_device_address_commands>" );
25867
25868 getDispatcher()->vkCmdDrawIndexedIndirectCount2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25869 reinterpret_cast<VkDrawIndirectCount2InfoKHR const *>( &info ) );
25870 }
25871
25872 // wrapper function for command vkCmdBeginConditionalRendering2EXT, see
25873 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginConditionalRendering2EXT.html
25874 VULKAN_HPP_INLINE void
25875 CommandBuffer::beginConditionalRendering2EXT( ConditionalRenderingBeginInfo2EXT const & conditionalRenderingBegin ) const VULKAN_HPP_NOEXCEPT
25876 {
25877 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginConditionalRendering2EXT &&
25878 "Function <vkCmdBeginConditionalRendering2EXT> requires <VK_KHR_device_address_commands>" );
25879
25880 getDispatcher()->vkCmdBeginConditionalRendering2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
25881 reinterpret_cast<VkConditionalRenderingBeginInfo2EXT const *>( &conditionalRenderingBegin ) );
25882 }
25883
25884 // wrapper function for command vkCmdBindTransformFeedbackBuffers2EXT, see
25885 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTransformFeedbackBuffers2EXT.html
25886 VULKAN_HPP_INLINE void
25887 CommandBuffer::bindTransformFeedbackBuffers2EXT( uint32_t firstBinding,
25888 ArrayProxy<BindTransformFeedbackBuffer2InfoEXT const> const & bindingInfos ) const VULKAN_HPP_NOEXCEPT
25889 {
25890 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindTransformFeedbackBuffers2EXT &&
25891 "Function <vkCmdBindTransformFeedbackBuffers2EXT> requires <VK_KHR_device_address_commands>" );
25892
25893 getDispatcher()->vkCmdBindTransformFeedbackBuffers2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
25894 firstBinding,
25895 bindingInfos.size(),
25896 reinterpret_cast<VkBindTransformFeedbackBuffer2InfoEXT const *>( bindingInfos.data() ) );
25897 }
25898
25899 // wrapper function for command vkCmdBeginTransformFeedback2EXT, see
25900 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginTransformFeedback2EXT.html
25901 VULKAN_HPP_INLINE void
25902 CommandBuffer::beginTransformFeedback2EXT( uint32_t firstCounterRange,
25903 ArrayProxy<BindTransformFeedbackBuffer2InfoEXT const> const & counterInfos ) const VULKAN_HPP_NOEXCEPT
25904 {
25905 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginTransformFeedback2EXT &&
25906 "Function <vkCmdBeginTransformFeedback2EXT> requires <VK_KHR_device_address_commands>" );
25907
25908 getDispatcher()->vkCmdBeginTransformFeedback2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
25909 firstCounterRange,
25910 counterInfos.size(),
25911 reinterpret_cast<VkBindTransformFeedbackBuffer2InfoEXT const *>( counterInfos.data() ) );
25912 }
25913
25914 // wrapper function for command vkCmdEndTransformFeedback2EXT, see
25915 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndTransformFeedback2EXT.html
25916 VULKAN_HPP_INLINE void
25917 CommandBuffer::endTransformFeedback2EXT( uint32_t firstCounterRange,
25918 ArrayProxy<BindTransformFeedbackBuffer2InfoEXT const> const & counterInfos ) const VULKAN_HPP_NOEXCEPT
25919 {
25920 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndTransformFeedback2EXT &&
25921 "Function <vkCmdEndTransformFeedback2EXT> requires <VK_KHR_device_address_commands>" );
25922
25923 getDispatcher()->vkCmdEndTransformFeedback2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
25924 firstCounterRange,
25925 counterInfos.size(),
25926 reinterpret_cast<VkBindTransformFeedbackBuffer2InfoEXT const *>( counterInfos.data() ) );
25927 }
25928
25929 // wrapper function for command vkCmdDrawIndirectByteCount2EXT, see
25930 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectByteCount2EXT.html
25931 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectByteCount2EXT( uint32_t instanceCount,
25932 uint32_t firstInstance,
25933 BindTransformFeedbackBuffer2InfoEXT const & counterInfo,
25934 uint32_t counterOffset,
25935 uint32_t vertexStride ) const VULKAN_HPP_NOEXCEPT
25936 {
25937 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawIndirectByteCount2EXT &&
25938 "Function <vkCmdDrawIndirectByteCount2EXT> requires <VK_KHR_device_address_commands>" );
25939
25940 getDispatcher()->vkCmdDrawIndirectByteCount2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
25941 instanceCount,
25942 firstInstance,
25943 reinterpret_cast<VkBindTransformFeedbackBuffer2InfoEXT const *>( &counterInfo ),
25944 counterOffset,
25945 vertexStride );
25946 }
25947
25948 // wrapper function for command vkCmdDrawMeshTasksIndirect2EXT, see
25949 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirect2EXT.html
25950 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirect2EXT( DrawIndirect2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT
25951 {
25952 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawMeshTasksIndirect2EXT &&
25953 "Function <vkCmdDrawMeshTasksIndirect2EXT> requires <VK_KHR_device_address_commands>" );
25954
25955 getDispatcher()->vkCmdDrawMeshTasksIndirect2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
25956 reinterpret_cast<VkDrawIndirect2InfoKHR const *>( &info ) );
25957 }
25958
25959 // wrapper function for command vkCmdDrawMeshTasksIndirectCount2EXT, see
25960 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectCount2EXT.html
25961 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectCount2EXT( DrawIndirectCount2InfoKHR const & info ) const VULKAN_HPP_NOEXCEPT
25962 {
25963 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawMeshTasksIndirectCount2EXT &&
25964 "Function <vkCmdDrawMeshTasksIndirectCount2EXT> requires <VK_KHR_device_address_commands>" );
25965
25966 getDispatcher()->vkCmdDrawMeshTasksIndirectCount2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
25967 reinterpret_cast<VkDrawIndirectCount2InfoKHR const *>( &info ) );
25968 }
25969
25970 // wrapper function for command vkCmdWriteMarkerToMemoryAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteMarkerToMemoryAMD.html
25971 VULKAN_HPP_INLINE void CommandBuffer::writeMarkerToMemoryAMD( MemoryMarkerInfoAMD const & info ) const VULKAN_HPP_NOEXCEPT
25972 {
25973 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdWriteMarkerToMemoryAMD && "Function <vkCmdWriteMarkerToMemoryAMD> requires <VK_KHR_device_address_commands>" );
25974
25975 getDispatcher()->vkCmdWriteMarkerToMemoryAMD( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkMemoryMarkerInfoAMD const *>( &info ) );
25976 }
25977
25978 // wrapper function for command vkCreateAccelerationStructure2KHR, see
25979 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructure2KHR.html
25980 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<AccelerationStructureKHR>::type
25981 Device::createAccelerationStructure2KHR( AccelerationStructureCreateInfo2KHR const & createInfo,
25982 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
25983 {
25984 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateAccelerationStructure2KHR &&
25985 "Function <vkCreateAccelerationStructure2KHR> requires <VK_KHR_device_address_commands>" );
25986
25987 VULKAN_HPP_NAMESPACE::AccelerationStructureKHR accelerationStructure;
25988 Result result =
25989 static_cast<Result>( getDispatcher()->vkCreateAccelerationStructure2KHR( static_cast<VkDevice>( m_device ),
25990 reinterpret_cast<VkAccelerationStructureCreateInfo2KHR const *>( &createInfo ),
25991 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
25992 reinterpret_cast<VkAccelerationStructureKHR *>( &accelerationStructure ) ) );
25993 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createAccelerationStructure2KHR" );
25994 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
25995 result, AccelerationStructureKHR( *this, *reinterpret_cast<VkAccelerationStructureKHR *>( &accelerationStructure ), allocator ) );
25996 }
25997
25998 //=== VK_NV_fragment_shading_rate_enums ===
25999
26000 // wrapper function for command vkCmdSetFragmentShadingRateEnumNV, see
26001 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFragmentShadingRateEnumNV.html
26002 VULKAN_HPP_INLINE void CommandBuffer::setFragmentShadingRateEnumNV( FragmentShadingRateNV shadingRate,
26003 FragmentShadingRateCombinerOpKHR const combinerOps[2] ) const VULKAN_HPP_NOEXCEPT
26004 {
26005 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetFragmentShadingRateEnumNV &&
26006 "Function <vkCmdSetFragmentShadingRateEnumNV> requires <VK_NV_fragment_shading_rate_enums>" );
26007
26008 getDispatcher()->vkCmdSetFragmentShadingRateEnumNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
26009 static_cast<VkFragmentShadingRateNV>( shadingRate ),
26010 reinterpret_cast<VkFragmentShadingRateCombinerOpKHR const *>( combinerOps ) );
26011 }
26012
26013 //=== VK_EXT_mesh_shader ===
26014
26015 // wrapper function for command vkCmdDrawMeshTasksEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksEXT.html
26016 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksEXT( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT
26017 {
26018 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawMeshTasksEXT && "Function <vkCmdDrawMeshTasksEXT> requires <VK_EXT_mesh_shader>" );
26019
26020 getDispatcher()->vkCmdDrawMeshTasksEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), groupCountX, groupCountY, groupCountZ );
26021 }
26022
26023 // wrapper function for command vkCmdDrawMeshTasksIndirectEXT, see
26024 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectEXT.html
26025 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectEXT( VULKAN_HPP_NAMESPACE::Buffer buffer,
26026 DeviceSize offset,
26027 uint32_t drawCount,
26028 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
26029 {
26030 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawMeshTasksIndirectEXT && "Function <vkCmdDrawMeshTasksIndirectEXT> requires <VK_EXT_mesh_shader>" );
26031
26032 getDispatcher()->vkCmdDrawMeshTasksIndirectEXT(
26033 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ), drawCount, stride );
26034 }
26035
26036 // wrapper function for command vkCmdDrawMeshTasksIndirectCountEXT, see
26037 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectCountEXT.html
26038 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectCountEXT( VULKAN_HPP_NAMESPACE::Buffer buffer,
26039 DeviceSize offset,
26040 VULKAN_HPP_NAMESPACE::Buffer countBuffer,
26041 DeviceSize countBufferOffset,
26042 uint32_t maxDrawCount,
26043 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
26044 {
26045 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawMeshTasksIndirectCountEXT && "Function <vkCmdDrawMeshTasksIndirectCountEXT> requires <VK_EXT_mesh_shader>" );
26046
26047 getDispatcher()->vkCmdDrawMeshTasksIndirectCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
26048 static_cast<VkBuffer>( buffer ),
26049 static_cast<VkDeviceSize>( offset ),
26050 static_cast<VkBuffer>( countBuffer ),
26051 static_cast<VkDeviceSize>( countBufferOffset ),
26052 maxDrawCount,
26053 stride );
26054 }
26055
26056 //=== VK_KHR_copy_commands2 ===
26057
26058 // wrapper function for command vkCmdCopyBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer2KHR.html
26059 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer2KHR( CopyBufferInfo2 const & copyBufferInfo ) const VULKAN_HPP_NOEXCEPT
26060 {
26061 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyBuffer2KHR && "Function <vkCmdCopyBuffer2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
26062
26063 getDispatcher()->vkCmdCopyBuffer2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyBufferInfo2 const *>( &copyBufferInfo ) );
26064 }
26065
26066 // wrapper function for command vkCmdCopyImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage2KHR.html
26067 VULKAN_HPP_INLINE void CommandBuffer::copyImage2KHR( CopyImageInfo2 const & copyImageInfo ) const VULKAN_HPP_NOEXCEPT
26068 {
26069 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyImage2KHR && "Function <vkCmdCopyImage2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
26070
26071 getDispatcher()->vkCmdCopyImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyImageInfo2 const *>( &copyImageInfo ) );
26072 }
26073
26074 // wrapper function for command vkCmdCopyBufferToImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage2KHR.html
26075 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage2KHR( CopyBufferToImageInfo2 const & copyBufferToImageInfo ) const VULKAN_HPP_NOEXCEPT
26076 {
26077 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyBufferToImage2KHR &&
26078 "Function <vkCmdCopyBufferToImage2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
26079
26080 getDispatcher()->vkCmdCopyBufferToImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
26081 reinterpret_cast<VkCopyBufferToImageInfo2 const *>( &copyBufferToImageInfo ) );
26082 }
26083
26084 // wrapper function for command vkCmdCopyImageToBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer2KHR.html
26085 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer2KHR( CopyImageToBufferInfo2 const & copyImageToBufferInfo ) const VULKAN_HPP_NOEXCEPT
26086 {
26087 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyImageToBuffer2KHR &&
26088 "Function <vkCmdCopyImageToBuffer2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
26089
26090 getDispatcher()->vkCmdCopyImageToBuffer2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
26091 reinterpret_cast<VkCopyImageToBufferInfo2 const *>( &copyImageToBufferInfo ) );
26092 }
26093
26094 // wrapper function for command vkCmdBlitImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage2KHR.html
26095 VULKAN_HPP_INLINE void CommandBuffer::blitImage2KHR( BlitImageInfo2 const & blitImageInfo ) const VULKAN_HPP_NOEXCEPT
26096 {
26097 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBlitImage2KHR && "Function <vkCmdBlitImage2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
26098
26099 getDispatcher()->vkCmdBlitImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkBlitImageInfo2 const *>( &blitImageInfo ) );
26100 }
26101
26102 // wrapper function for command vkCmdResolveImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage2KHR.html
26103 VULKAN_HPP_INLINE void CommandBuffer::resolveImage2KHR( ResolveImageInfo2 const & resolveImageInfo ) const VULKAN_HPP_NOEXCEPT
26104 {
26105 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdResolveImage2KHR && "Function <vkCmdResolveImage2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
26106
26107 getDispatcher()->vkCmdResolveImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
26108 reinterpret_cast<VkResolveImageInfo2 const *>( &resolveImageInfo ) );
26109 }
26110
26111 //=== VK_EXT_device_fault ===
26112 // wrapper function for command vkGetDeviceFaultInfoEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceFaultInfoEXT.html
26113 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFaultInfoEXT( DeviceFaultCountsEXT * pFaultCounts,
26114 DeviceFaultInfoEXT * pFaultInfo ) const VULKAN_HPP_NOEXCEPT
26115 {
26116 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceFaultInfoEXT && "Function <vkGetDeviceFaultInfoEXT> requires <VK_EXT_device_fault>" );
26117 return static_cast<Result>( getDispatcher()->vkGetDeviceFaultInfoEXT( static_cast<VkDevice>( m_device ),
26118 reinterpret_cast<VkDeviceFaultCountsEXT *>( pFaultCounts ),
26119 reinterpret_cast<VkDeviceFaultInfoEXT *>( pFaultInfo ) ) );
26120 }
26121 # if defined( VK_USE_PLATFORM_WIN32_KHR )
26122 //=== VK_NV_acquire_winrt_display ===
26123
26124 // wrapper function for command vkAcquireWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireWinrtDisplayNV.html
26125 VULKAN_HPP_INLINE typename ResultValueType<void>::type DisplayKHR::acquireWinrtNV() const
26126 {
26127 VULKAN_HPP_ASSERT( getDispatcher()->vkAcquireWinrtDisplayNV && "Function <vkAcquireWinrtDisplayNV> requires <VK_NV_acquire_winrt_display>" );
26128
26129 Result result = static_cast<Result>(
26130 getDispatcher()->vkAcquireWinrtDisplayNV( static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( m_displayKHR ) ) );
26131 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::DisplayKHR::acquireWinrtNV" );
26132
26133 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
26134 }
26135
26136 // wrapper function for command vkGetWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetWinrtDisplayNV.html
26137 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayKHR>::type
26138 PhysicalDevice::getWinrtDisplayNV( uint32_t deviceRelativeId ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
26139 {
26140 VULKAN_HPP_ASSERT( getDispatcher()->vkGetWinrtDisplayNV && "Function <vkGetWinrtDisplayNV> requires <VK_NV_acquire_winrt_display>" );
26141
26142 VULKAN_HPP_NAMESPACE::DisplayKHR display;
26143 Result result = static_cast<Result>( getDispatcher()->vkGetWinrtDisplayNV(
26144 static_cast<VkPhysicalDevice>( m_physicalDevice ), deviceRelativeId, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
26145 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getWinrtDisplayNV" );
26146 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, DisplayKHR( *this, *reinterpret_cast<VkDisplayKHR *>( &display ) ) );
26147 }
26148 # endif /*VK_USE_PLATFORM_WIN32_KHR*/
26149
26150 # if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
26151 //=== VK_EXT_directfb_surface ===
26152
26153 // wrapper function for command vkCreateDirectFBSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDirectFBSurfaceEXT.html
26154 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
26155 Instance::createDirectFBSurfaceEXT( DirectFBSurfaceCreateInfoEXT const & createInfo,
26156 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
26157 {
26158 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDirectFBSurfaceEXT && "Function <vkCreateDirectFBSurfaceEXT> requires <VK_EXT_directfb_surface>" );
26159
26160 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
26161 Result result = static_cast<Result>( getDispatcher()->vkCreateDirectFBSurfaceEXT( static_cast<VkInstance>( m_instance ),
26162 reinterpret_cast<VkDirectFBSurfaceCreateInfoEXT const *>( &createInfo ),
26163 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
26164 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
26165 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createDirectFBSurfaceEXT" );
26166 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
26167 }
26168
26169 // wrapper function for command vkGetPhysicalDeviceDirectFBPresentationSupportEXT, see
26170 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDirectFBPresentationSupportEXT.html
26171 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Bool32 PhysicalDevice::getDirectFBPresentationSupportEXT( uint32_t queueFamilyIndex,
26172 IDirectFB & dfb ) const VULKAN_HPP_NOEXCEPT
26173 {
26174 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceDirectFBPresentationSupportEXT &&
26175 "Function <vkGetPhysicalDeviceDirectFBPresentationSupportEXT> requires <VK_EXT_directfb_surface>" );
26176
26177 VkBool32 result =
26178 getDispatcher()->vkGetPhysicalDeviceDirectFBPresentationSupportEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &dfb );
26179
26180 return static_cast<Bool32>( result );
26181 }
26182 # endif /*VK_USE_PLATFORM_DIRECTFB_EXT*/
26183
26184 //=== VK_EXT_vertex_input_dynamic_state ===
26185
26186 // wrapper function for command vkCmdSetVertexInputEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetVertexInputEXT.html
26187 VULKAN_HPP_INLINE void
26188 CommandBuffer::setVertexInputEXT( ArrayProxy<VertexInputBindingDescription2EXT const> const & vertexBindingDescriptions,
26189 ArrayProxy<VertexInputAttributeDescription2EXT const> const & vertexAttributeDescriptions ) const VULKAN_HPP_NOEXCEPT
26190 {
26191 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetVertexInputEXT &&
26192 "Function <vkCmdSetVertexInputEXT> requires <VK_EXT_shader_object> or <VK_EXT_vertex_input_dynamic_state>" );
26193
26194 getDispatcher()->vkCmdSetVertexInputEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
26195 vertexBindingDescriptions.size(),
26196 reinterpret_cast<VkVertexInputBindingDescription2EXT const *>( vertexBindingDescriptions.data() ),
26197 vertexAttributeDescriptions.size(),
26198 reinterpret_cast<VkVertexInputAttributeDescription2EXT const *>( vertexAttributeDescriptions.data() ) );
26199 }
26200
26201 # if defined( VK_USE_PLATFORM_FUCHSIA )
26202 //=== VK_FUCHSIA_external_memory ===
26203
26204 // wrapper function for command vkGetMemoryZirconHandleFUCHSIA, see
26205 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryZirconHandleFUCHSIA.html
26206 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<zx_handle_t>::type
26207 Device::getMemoryZirconHandleFUCHSIA( MemoryGetZirconHandleInfoFUCHSIA const & getZirconHandleInfo ) const
26208 {
26209 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryZirconHandleFUCHSIA && "Function <vkGetMemoryZirconHandleFUCHSIA> requires <VK_FUCHSIA_external_memory>" );
26210
26211 zx_handle_t zirconHandle;
26212 Result result = static_cast<Result>( getDispatcher()->vkGetMemoryZirconHandleFUCHSIA(
26213 static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryGetZirconHandleInfoFUCHSIA const *>( &getZirconHandleInfo ), &zirconHandle ) );
26214 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getMemoryZirconHandleFUCHSIA" );
26215
26216 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( zirconHandle ) );
26217 }
26218
26219 // wrapper function for command vkGetMemoryZirconHandlePropertiesFUCHSIA, see
26220 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryZirconHandlePropertiesFUCHSIA.html
26221 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryZirconHandlePropertiesFUCHSIA>::type
26222 Device::getMemoryZirconHandlePropertiesFUCHSIA( ExternalMemoryHandleTypeFlagBits handleType, zx_handle_t zirconHandle ) const
26223 {
26224 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryZirconHandlePropertiesFUCHSIA &&
26225 "Function <vkGetMemoryZirconHandlePropertiesFUCHSIA> requires <VK_FUCHSIA_external_memory>" );
26226
26227 MemoryZirconHandlePropertiesFUCHSIA memoryZirconHandleProperties;
26228 Result result = static_cast<Result>( getDispatcher()->vkGetMemoryZirconHandlePropertiesFUCHSIA(
26229 static_cast<VkDevice>( m_device ),
26230 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
26231 zirconHandle,
26232 reinterpret_cast<VkMemoryZirconHandlePropertiesFUCHSIA *>( &memoryZirconHandleProperties ) ) );
26233 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getMemoryZirconHandlePropertiesFUCHSIA" );
26234
26235 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( memoryZirconHandleProperties ) );
26236 }
26237 # endif /*VK_USE_PLATFORM_FUCHSIA*/
26238
26239 # if defined( VK_USE_PLATFORM_FUCHSIA )
26240 //=== VK_FUCHSIA_external_semaphore ===
26241
26242 // wrapper function for command vkImportSemaphoreZirconHandleFUCHSIA, see
26243 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreZirconHandleFUCHSIA.html
26244 VULKAN_HPP_INLINE typename ResultValueType<void>::type
26245 Device::importSemaphoreZirconHandleFUCHSIA( ImportSemaphoreZirconHandleInfoFUCHSIA const & importSemaphoreZirconHandleInfo ) const
26246 {
26247 VULKAN_HPP_ASSERT( getDispatcher()->vkImportSemaphoreZirconHandleFUCHSIA &&
26248 "Function <vkImportSemaphoreZirconHandleFUCHSIA> requires <VK_FUCHSIA_external_semaphore>" );
26249
26250 Result result = static_cast<Result>( getDispatcher()->vkImportSemaphoreZirconHandleFUCHSIA(
26251 static_cast<VkDevice>( m_device ), reinterpret_cast<VkImportSemaphoreZirconHandleInfoFUCHSIA const *>( &importSemaphoreZirconHandleInfo ) ) );
26252 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::importSemaphoreZirconHandleFUCHSIA" );
26253
26254 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
26255 }
26256
26257 // wrapper function for command vkGetSemaphoreZirconHandleFUCHSIA, see
26258 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreZirconHandleFUCHSIA.html
26259 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<zx_handle_t>::type
26260 Device::getSemaphoreZirconHandleFUCHSIA( SemaphoreGetZirconHandleInfoFUCHSIA const & getZirconHandleInfo ) const
26261 {
26262 VULKAN_HPP_ASSERT( getDispatcher()->vkGetSemaphoreZirconHandleFUCHSIA &&
26263 "Function <vkGetSemaphoreZirconHandleFUCHSIA> requires <VK_FUCHSIA_external_semaphore>" );
26264
26265 zx_handle_t zirconHandle;
26266 Result result = static_cast<Result>( getDispatcher()->vkGetSemaphoreZirconHandleFUCHSIA(
26267 static_cast<VkDevice>( m_device ), reinterpret_cast<VkSemaphoreGetZirconHandleInfoFUCHSIA const *>( &getZirconHandleInfo ), &zirconHandle ) );
26268 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getSemaphoreZirconHandleFUCHSIA" );
26269
26270 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( zirconHandle ) );
26271 }
26272 # endif /*VK_USE_PLATFORM_FUCHSIA*/
26273
26274 # if defined( VK_USE_PLATFORM_FUCHSIA )
26275 //=== VK_FUCHSIA_buffer_collection ===
26276
26277 // wrapper function for command vkCreateBufferCollectionFUCHSIA, see
26278 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferCollectionFUCHSIA.html
26279 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<BufferCollectionFUCHSIA>::type
26280 Device::createBufferCollectionFUCHSIA( BufferCollectionCreateInfoFUCHSIA const & createInfo,
26281 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
26282 {
26283 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateBufferCollectionFUCHSIA &&
26284 "Function <vkCreateBufferCollectionFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
26285
26286 VULKAN_HPP_NAMESPACE::BufferCollectionFUCHSIA collection;
26287 Result result =
26288 static_cast<Result>( getDispatcher()->vkCreateBufferCollectionFUCHSIA( static_cast<VkDevice>( m_device ),
26289 reinterpret_cast<VkBufferCollectionCreateInfoFUCHSIA const *>( &createInfo ),
26290 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
26291 reinterpret_cast<VkBufferCollectionFUCHSIA *>( &collection ) ) );
26292 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createBufferCollectionFUCHSIA" );
26293 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
26294 result, BufferCollectionFUCHSIA( *this, *reinterpret_cast<VkBufferCollectionFUCHSIA *>( &collection ), allocator ) );
26295 }
26296
26297 // wrapper function for command vkSetBufferCollectionImageConstraintsFUCHSIA, see
26298 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetBufferCollectionImageConstraintsFUCHSIA.html
26299 VULKAN_HPP_INLINE typename ResultValueType<void>::type
26300 BufferCollectionFUCHSIA::setImageConstraints( ImageConstraintsInfoFUCHSIA const & imageConstraintsInfo ) const
26301 {
26302 VULKAN_HPP_ASSERT( getDispatcher()->vkSetBufferCollectionImageConstraintsFUCHSIA &&
26303 "Function <vkSetBufferCollectionImageConstraintsFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
26304
26305 Result result = static_cast<Result>(
26306 getDispatcher()->vkSetBufferCollectionImageConstraintsFUCHSIA( static_cast<VkDevice>( m_device ),
26307 static_cast<VkBufferCollectionFUCHSIA>( m_bufferCollectionFUCHSIA ),
26308 reinterpret_cast<VkImageConstraintsInfoFUCHSIA const *>( &imageConstraintsInfo ) ) );
26309 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::BufferCollectionFUCHSIA::setImageConstraints" );
26310
26311 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
26312 }
26313
26314 // wrapper function for command vkSetBufferCollectionBufferConstraintsFUCHSIA, see
26315 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetBufferCollectionBufferConstraintsFUCHSIA.html
26316 VULKAN_HPP_INLINE typename ResultValueType<void>::type
26317 BufferCollectionFUCHSIA::setBufferConstraints( BufferConstraintsInfoFUCHSIA const & bufferConstraintsInfo ) const
26318 {
26319 VULKAN_HPP_ASSERT( getDispatcher()->vkSetBufferCollectionBufferConstraintsFUCHSIA &&
26320 "Function <vkSetBufferCollectionBufferConstraintsFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
26321
26322 Result result = static_cast<Result>(
26323 getDispatcher()->vkSetBufferCollectionBufferConstraintsFUCHSIA( static_cast<VkDevice>( m_device ),
26324 static_cast<VkBufferCollectionFUCHSIA>( m_bufferCollectionFUCHSIA ),
26325 reinterpret_cast<VkBufferConstraintsInfoFUCHSIA const *>( &bufferConstraintsInfo ) ) );
26326 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::BufferCollectionFUCHSIA::setBufferConstraints" );
26327
26328 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
26329 }
26330
26331 // wrapper function for command vkGetBufferCollectionPropertiesFUCHSIA, see
26332 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferCollectionPropertiesFUCHSIA.html
26333 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<BufferCollectionPropertiesFUCHSIA>::type BufferCollectionFUCHSIA::getProperties() const
26334 {
26335 VULKAN_HPP_ASSERT( getDispatcher()->vkGetBufferCollectionPropertiesFUCHSIA &&
26336 "Function <vkGetBufferCollectionPropertiesFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
26337
26338 BufferCollectionPropertiesFUCHSIA properties;
26339 Result result = static_cast<Result>(
26340 getDispatcher()->vkGetBufferCollectionPropertiesFUCHSIA( static_cast<VkDevice>( m_device ),
26341 static_cast<VkBufferCollectionFUCHSIA>( m_bufferCollectionFUCHSIA ),
26342 reinterpret_cast<VkBufferCollectionPropertiesFUCHSIA *>( &properties ) ) );
26343 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::BufferCollectionFUCHSIA::getProperties" );
26344
26345 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
26346 }
26347 # endif /*VK_USE_PLATFORM_FUCHSIA*/
26348
26349 //=== VK_HUAWEI_subpass_shading ===
26350
26351 // wrapper function for command vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI, see
26352 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI.html
26353 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Extent2D>::type RenderPass::getSubpassShadingMaxWorkgroupSizeHUAWEI() const
26354 {
26355 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI &&
26356 "Function <vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI> requires <VK_HUAWEI_subpass_shading>" );
26357
26358 Extent2D maxWorkgroupSize;
26359 Result result = static_cast<Result>( getDispatcher()->vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI(
26360 static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( m_renderPass ), reinterpret_cast<VkExtent2D *>( &maxWorkgroupSize ) ) );
26361 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::RenderPass::getSubpassShadingMaxWorkgroupSizeHUAWEI" );
26362
26363 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( maxWorkgroupSize ) );
26364 }
26365
26366 // wrapper function for command vkCmdSubpassShadingHUAWEI, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSubpassShadingHUAWEI.html
26367 VULKAN_HPP_INLINE void CommandBuffer::subpassShadingHUAWEI() const VULKAN_HPP_NOEXCEPT
26368 {
26369 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSubpassShadingHUAWEI && "Function <vkCmdSubpassShadingHUAWEI> requires <VK_HUAWEI_subpass_shading>" );
26370
26371 getDispatcher()->vkCmdSubpassShadingHUAWEI( static_cast<VkCommandBuffer>( m_commandBuffer ) );
26372 }
26373
26374 //=== VK_HUAWEI_invocation_mask ===
26375
26376 // wrapper function for command vkCmdBindInvocationMaskHUAWEI, see
26377 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindInvocationMaskHUAWEI.html
26378 VULKAN_HPP_INLINE void CommandBuffer::bindInvocationMaskHUAWEI( VULKAN_HPP_NAMESPACE::ImageView imageView,
26379 ImageLayout imageLayout ) const VULKAN_HPP_NOEXCEPT
26380 {
26381 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindInvocationMaskHUAWEI && "Function <vkCmdBindInvocationMaskHUAWEI> requires <VK_HUAWEI_invocation_mask>" );
26382
26383 getDispatcher()->vkCmdBindInvocationMaskHUAWEI(
26384 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkImageView>( imageView ), static_cast<VkImageLayout>( imageLayout ) );
26385 }
26386
26387 //=== VK_NV_external_memory_rdma ===
26388
26389 // wrapper function for command vkGetMemoryRemoteAddressNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryRemoteAddressNV.html
26390 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RemoteAddressNV>::type
26391 Device::getMemoryRemoteAddressNV( MemoryGetRemoteAddressInfoNV const & memoryGetRemoteAddressInfo ) const
26392 {
26393 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryRemoteAddressNV && "Function <vkGetMemoryRemoteAddressNV> requires <VK_NV_external_memory_rdma>" );
26394
26395 RemoteAddressNV address;
26396 Result result = static_cast<Result>(
26397 getDispatcher()->vkGetMemoryRemoteAddressNV( static_cast<VkDevice>( m_device ),
26398 reinterpret_cast<VkMemoryGetRemoteAddressInfoNV const *>( &memoryGetRemoteAddressInfo ),
26399 reinterpret_cast<VkRemoteAddressNV *>( &address ) ) );
26400 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getMemoryRemoteAddressNV" );
26401
26402 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( address ) );
26403 }
26404
26405 //=== VK_EXT_pipeline_properties ===
26406
26407 // wrapper function for command vkGetPipelinePropertiesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelinePropertiesEXT.html
26408 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<BaseOutStructure>::type
26409 Device::getPipelinePropertiesEXT( PipelineInfoEXT const & pipelineInfo ) const
26410 {
26411 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPipelinePropertiesEXT && "Function <vkGetPipelinePropertiesEXT> requires <VK_EXT_pipeline_properties>" );
26412
26413 BaseOutStructure pipelineProperties;
26414 Result result = static_cast<Result>( getDispatcher()->vkGetPipelinePropertiesEXT( static_cast<VkDevice>( m_device ),
26415 reinterpret_cast<VkPipelineInfoEXT const *>( &pipelineInfo ),
26416 reinterpret_cast<VkBaseOutStructure *>( &pipelineProperties ) ) );
26417 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getPipelinePropertiesEXT" );
26418
26419 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( pipelineProperties ) );
26420 }
26421
26422 //=== VK_EXT_extended_dynamic_state2 ===
26423
26424 // wrapper function for command vkCmdSetPatchControlPointsEXT, see
26425 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPatchControlPointsEXT.html
26426 VULKAN_HPP_INLINE void CommandBuffer::setPatchControlPointsEXT( uint32_t patchControlPoints ) const VULKAN_HPP_NOEXCEPT
26427 {
26428 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetPatchControlPointsEXT &&
26429 "Function <vkCmdSetPatchControlPointsEXT> requires <VK_EXT_extended_dynamic_state2> or <VK_EXT_shader_object>" );
26430
26431 getDispatcher()->vkCmdSetPatchControlPointsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), patchControlPoints );
26432 }
26433
26434 // wrapper function for command vkCmdSetRasterizerDiscardEnableEXT, see
26435 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizerDiscardEnableEXT.html
26436 VULKAN_HPP_INLINE void CommandBuffer::setRasterizerDiscardEnableEXT( Bool32 rasterizerDiscardEnable ) const VULKAN_HPP_NOEXCEPT
26437 {
26438 VULKAN_HPP_ASSERT(
26439 getDispatcher()->vkCmdSetRasterizerDiscardEnableEXT &&
26440 "Function <vkCmdSetRasterizerDiscardEnableEXT> requires <VK_EXT_extended_dynamic_state2> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
26441
26442 getDispatcher()->vkCmdSetRasterizerDiscardEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( rasterizerDiscardEnable ) );
26443 }
26444
26445 // wrapper function for command vkCmdSetDepthBiasEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBiasEnableEXT.html
26446 VULKAN_HPP_INLINE void CommandBuffer::setDepthBiasEnableEXT( Bool32 depthBiasEnable ) const VULKAN_HPP_NOEXCEPT
26447 {
26448 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthBiasEnableEXT &&
26449 "Function <vkCmdSetDepthBiasEnableEXT> requires <VK_EXT_extended_dynamic_state2> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
26450
26451 getDispatcher()->vkCmdSetDepthBiasEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBiasEnable ) );
26452 }
26453
26454 // wrapper function for command vkCmdSetLogicOpEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLogicOpEXT.html
26455 VULKAN_HPP_INLINE void CommandBuffer::setLogicOpEXT( LogicOp logicOp ) const VULKAN_HPP_NOEXCEPT
26456 {
26457 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetLogicOpEXT &&
26458 "Function <vkCmdSetLogicOpEXT> requires <VK_EXT_extended_dynamic_state2> or <VK_EXT_shader_object>" );
26459
26460 getDispatcher()->vkCmdSetLogicOpEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkLogicOp>( logicOp ) );
26461 }
26462
26463 // wrapper function for command vkCmdSetPrimitiveRestartEnableEXT, see
26464 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveRestartEnableEXT.html
26465 VULKAN_HPP_INLINE void CommandBuffer::setPrimitiveRestartEnableEXT( Bool32 primitiveRestartEnable ) const VULKAN_HPP_NOEXCEPT
26466 {
26467 VULKAN_HPP_ASSERT(
26468 getDispatcher()->vkCmdSetPrimitiveRestartEnableEXT &&
26469 "Function <vkCmdSetPrimitiveRestartEnableEXT> requires <VK_EXT_extended_dynamic_state2> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
26470
26471 getDispatcher()->vkCmdSetPrimitiveRestartEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( primitiveRestartEnable ) );
26472 }
26473
26474 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
26475 //=== VK_QNX_screen_surface ===
26476
26477 // wrapper function for command vkCreateScreenSurfaceQNX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateScreenSurfaceQNX.html
26478 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
26479 Instance::createScreenSurfaceQNX( ScreenSurfaceCreateInfoQNX const & createInfo,
26480 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
26481 {
26482 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateScreenSurfaceQNX && "Function <vkCreateScreenSurfaceQNX> requires <VK_QNX_screen_surface>" );
26483
26484 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
26485 Result result = static_cast<Result>( getDispatcher()->vkCreateScreenSurfaceQNX( static_cast<VkInstance>( m_instance ),
26486 reinterpret_cast<VkScreenSurfaceCreateInfoQNX const *>( &createInfo ),
26487 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
26488 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
26489 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createScreenSurfaceQNX" );
26490 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
26491 }
26492
26493 // wrapper function for command vkGetPhysicalDeviceScreenPresentationSupportQNX, see
26494 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceScreenPresentationSupportQNX.html
26495 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Bool32 PhysicalDevice::getScreenPresentationSupportQNX( uint32_t queueFamilyIndex,
26496 struct _screen_window & window ) const VULKAN_HPP_NOEXCEPT
26497 {
26498 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceScreenPresentationSupportQNX &&
26499 "Function <vkGetPhysicalDeviceScreenPresentationSupportQNX> requires <VK_QNX_screen_surface>" );
26500
26501 VkBool32 result =
26502 getDispatcher()->vkGetPhysicalDeviceScreenPresentationSupportQNX( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &window );
26503
26504 return static_cast<Bool32>( result );
26505 }
26506 # endif /*VK_USE_PLATFORM_SCREEN_QNX*/
26507
26508 //=== VK_EXT_color_write_enable ===
26509
26510 // wrapper function for command vkCmdSetColorWriteEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorWriteEnableEXT.html
26511 VULKAN_HPP_INLINE void CommandBuffer::setColorWriteEnableEXT( ArrayProxy<Bool32 const> const & colorWriteEnables ) const VULKAN_HPP_NOEXCEPT
26512 {
26513 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetColorWriteEnableEXT && "Function <vkCmdSetColorWriteEnableEXT> requires <VK_EXT_color_write_enable>" );
26514
26515 getDispatcher()->vkCmdSetColorWriteEnableEXT(
26516 static_cast<VkCommandBuffer>( m_commandBuffer ), colorWriteEnables.size(), reinterpret_cast<VkBool32 const *>( colorWriteEnables.data() ) );
26517 }
26518
26519 //=== VK_KHR_ray_tracing_maintenance1 ===
26520
26521 // wrapper function for command vkCmdTraceRaysIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysIndirect2KHR.html
26522 VULKAN_HPP_INLINE void CommandBuffer::traceRaysIndirect2KHR( DeviceAddress indirectDeviceAddress ) const VULKAN_HPP_NOEXCEPT
26523 {
26524 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdTraceRaysIndirect2KHR && "Function <vkCmdTraceRaysIndirect2KHR> requires <VK_KHR_ray_tracing_maintenance1>" );
26525
26526 getDispatcher()->vkCmdTraceRaysIndirect2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkDeviceAddress>( indirectDeviceAddress ) );
26527 }
26528
26529 //=== VK_EXT_multi_draw ===
26530
26531 // wrapper function for command vkCmdDrawMultiEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMultiEXT.html
26532 VULKAN_HPP_INLINE void CommandBuffer::drawMultiEXT( StridedArrayProxy<MultiDrawInfoEXT const> const & vertexInfo,
26533 uint32_t instanceCount,
26534 uint32_t firstInstance ) const VULKAN_HPP_NOEXCEPT
26535 {
26536 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawMultiEXT && "Function <vkCmdDrawMultiEXT> requires <VK_EXT_multi_draw>" );
26537
26538 getDispatcher()->vkCmdDrawMultiEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
26539 vertexInfo.size(),
26540 reinterpret_cast<VkMultiDrawInfoEXT const *>( vertexInfo.data() ),
26541 instanceCount,
26542 firstInstance,
26543 vertexInfo.stride() );
26544 }
26545
26546 // wrapper function for command vkCmdDrawMultiIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMultiIndexedEXT.html
26547 VULKAN_HPP_INLINE void CommandBuffer::drawMultiIndexedEXT( StridedArrayProxy<MultiDrawIndexedInfoEXT const> const & indexInfo,
26548 uint32_t instanceCount,
26549 uint32_t firstInstance,
26550 Optional<int32_t const> vertexOffset ) const VULKAN_HPP_NOEXCEPT
26551 {
26552 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawMultiIndexedEXT && "Function <vkCmdDrawMultiIndexedEXT> requires <VK_EXT_multi_draw>" );
26553
26554 getDispatcher()->vkCmdDrawMultiIndexedEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
26555 indexInfo.size(),
26556 reinterpret_cast<VkMultiDrawIndexedInfoEXT const *>( indexInfo.data() ),
26557 instanceCount,
26558 firstInstance,
26559 indexInfo.stride(),
26560 vertexOffset.get() );
26561 }
26562
26563 //=== VK_EXT_opacity_micromap ===
26564
26565 // wrapper function for command vkCreateMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMicromapEXT.html
26566 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MicromapEXT>::type
26567 Device::createMicromapEXT( MicromapCreateInfoEXT const & createInfo,
26568 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
26569 {
26570 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateMicromapEXT && "Function <vkCreateMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26571
26572 VULKAN_HPP_NAMESPACE::MicromapEXT micromap;
26573 Result result = static_cast<Result>( getDispatcher()->vkCreateMicromapEXT( static_cast<VkDevice>( m_device ),
26574 reinterpret_cast<VkMicromapCreateInfoEXT const *>( &createInfo ),
26575 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
26576 reinterpret_cast<VkMicromapEXT *>( &micromap ) ) );
26577 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createMicromapEXT" );
26578 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, MicromapEXT( *this, *reinterpret_cast<VkMicromapEXT *>( &micromap ), allocator ) );
26579 }
26580
26581 // wrapper function for command vkCmdBuildMicromapsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildMicromapsEXT.html
26582 VULKAN_HPP_INLINE void CommandBuffer::buildMicromapsEXT( ArrayProxy<MicromapBuildInfoEXT const> const & infos ) const VULKAN_HPP_NOEXCEPT
26583 {
26584 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBuildMicromapsEXT && "Function <vkCmdBuildMicromapsEXT> requires <VK_EXT_opacity_micromap>" );
26585
26586 getDispatcher()->vkCmdBuildMicromapsEXT(
26587 static_cast<VkCommandBuffer>( m_commandBuffer ), infos.size(), reinterpret_cast<VkMicromapBuildInfoEXT const *>( infos.data() ) );
26588 }
26589
26590 // wrapper function for command vkBuildMicromapsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBuildMicromapsEXT.html
26591 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::buildMicromapsEXT( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
26592 ArrayProxy<MicromapBuildInfoEXT const> const & infos ) const
26593 {
26594 VULKAN_HPP_ASSERT( getDispatcher()->vkBuildMicromapsEXT && "Function <vkBuildMicromapsEXT> requires <VK_EXT_opacity_micromap>" );
26595
26596 Result result = static_cast<Result>( getDispatcher()->vkBuildMicromapsEXT( static_cast<VkDevice>( m_device ),
26597 static_cast<VkDeferredOperationKHR>( deferredOperation ),
26598 infos.size(),
26599 reinterpret_cast<VkMicromapBuildInfoEXT const *>( infos.data() ) ) );
26600 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
26601 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::buildMicromapsEXT",
26602 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
26603
26604 return static_cast<Result>( result );
26605 }
26606
26607 // wrapper function for command vkCopyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMicromapEXT.html
26608 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMicromapEXT( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
26609 CopyMicromapInfoEXT const & info ) const
26610 {
26611 VULKAN_HPP_ASSERT( getDispatcher()->vkCopyMicromapEXT && "Function <vkCopyMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26612
26613 Result result = static_cast<Result>( getDispatcher()->vkCopyMicromapEXT( static_cast<VkDevice>( m_device ),
26614 static_cast<VkDeferredOperationKHR>( deferredOperation ),
26615 reinterpret_cast<VkCopyMicromapInfoEXT const *>( &info ) ) );
26616 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
26617 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::copyMicromapEXT",
26618 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
26619
26620 return static_cast<Result>( result );
26621 }
26622
26623 // wrapper function for command vkCopyMicromapToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMicromapToMemoryEXT.html
26624 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMicromapToMemoryEXT( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
26625 CopyMicromapToMemoryInfoEXT const & info ) const
26626 {
26627 VULKAN_HPP_ASSERT( getDispatcher()->vkCopyMicromapToMemoryEXT && "Function <vkCopyMicromapToMemoryEXT> requires <VK_EXT_opacity_micromap>" );
26628
26629 Result result = static_cast<Result>( getDispatcher()->vkCopyMicromapToMemoryEXT( static_cast<VkDevice>( m_device ),
26630 static_cast<VkDeferredOperationKHR>( deferredOperation ),
26631 reinterpret_cast<VkCopyMicromapToMemoryInfoEXT const *>( &info ) ) );
26632 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
26633 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::copyMicromapToMemoryEXT",
26634 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
26635
26636 return static_cast<Result>( result );
26637 }
26638
26639 // wrapper function for command vkCopyMemoryToMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToMicromapEXT.html
26640 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToMicromapEXT( VULKAN_HPP_NAMESPACE::DeferredOperationKHR deferredOperation,
26641 CopyMemoryToMicromapInfoEXT const & info ) const
26642 {
26643 VULKAN_HPP_ASSERT( getDispatcher()->vkCopyMemoryToMicromapEXT && "Function <vkCopyMemoryToMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26644
26645 Result result = static_cast<Result>( getDispatcher()->vkCopyMemoryToMicromapEXT( static_cast<VkDevice>( m_device ),
26646 static_cast<VkDeferredOperationKHR>( deferredOperation ),
26647 reinterpret_cast<VkCopyMemoryToMicromapInfoEXT const *>( &info ) ) );
26648 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
26649 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::copyMemoryToMicromapEXT",
26650 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
26651
26652 return static_cast<Result>( result );
26653 }
26654
26655 // wrapper function for command vkWriteMicromapsPropertiesEXT, see
26656 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteMicromapsPropertiesEXT.html
26657 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::writeMicromapsPropertiesEXT( uint32_t micromapCount,
26658 VULKAN_HPP_NAMESPACE::MicromapEXT const * pMicromaps,
26659 QueryType queryType,
26660 size_t dataSize,
26661 void * pData,
26662 size_t stride ) const VULKAN_HPP_NOEXCEPT
26663 {
26664 VULKAN_HPP_ASSERT( getDispatcher()->vkWriteMicromapsPropertiesEXT && "Function <vkWriteMicromapsPropertiesEXT> requires <VK_EXT_opacity_micromap>" );
26665 return static_cast<Result>( getDispatcher()->vkWriteMicromapsPropertiesEXT( static_cast<VkDevice>( m_device ),
26666 micromapCount,
26667 reinterpret_cast<VkMicromapEXT const *>( pMicromaps ),
26668 static_cast<VkQueryType>( queryType ),
26669 dataSize,
26670 pData,
26671 stride ) );
26672 }
26673
26674 // wrapper function for command vkWriteMicromapsPropertiesEXT, see
26675 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteMicromapsPropertiesEXT.html
26676 template <typename DataType>
26677 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType>>::type Device::writeMicromapsPropertiesEXT(
26678 ArrayProxy<VULKAN_HPP_NAMESPACE::MicromapEXT const> const & micromaps, QueryType queryType, size_t dataSize, size_t stride ) const
26679 {
26680 VULKAN_HPP_ASSERT( getDispatcher()->vkWriteMicromapsPropertiesEXT && "Function <vkWriteMicromapsPropertiesEXT> requires <VK_EXT_opacity_micromap>" );
26681
26682 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
26683 std::vector<DataType> data( dataSize / sizeof( DataType ) );
26684 Result result = static_cast<Result>( getDispatcher()->vkWriteMicromapsPropertiesEXT( static_cast<VkDevice>( m_device ),
26685 micromaps.size(),
26686 reinterpret_cast<VkMicromapEXT const *>( micromaps.data() ),
26687 static_cast<VkQueryType>( queryType ),
26688 data.size() * sizeof( DataType ),
26689 reinterpret_cast<void *>( data.data() ),
26690 stride ) );
26691 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::writeMicromapsPropertiesEXT" );
26692
26693 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
26694 }
26695
26696 // wrapper function for command vkWriteMicromapsPropertiesEXT, see
26697 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteMicromapsPropertiesEXT.html
26698 template <typename DataType>
26699 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
26700 Device::writeMicromapsPropertyEXT( ArrayProxy<VULKAN_HPP_NAMESPACE::MicromapEXT const> const & micromaps, QueryType queryType, size_t stride ) const
26701 {
26702 VULKAN_HPP_ASSERT( getDispatcher()->vkWriteMicromapsPropertiesEXT && "Function <vkWriteMicromapsPropertiesEXT> requires <VK_EXT_opacity_micromap>" );
26703
26704 DataType data;
26705 Result result = static_cast<Result>( getDispatcher()->vkWriteMicromapsPropertiesEXT( static_cast<VkDevice>( m_device ),
26706 micromaps.size(),
26707 reinterpret_cast<VkMicromapEXT const *>( micromaps.data() ),
26708 static_cast<VkQueryType>( queryType ),
26709 sizeof( DataType ),
26710 reinterpret_cast<void *>( &data ),
26711 stride ) );
26712 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::writeMicromapsPropertyEXT" );
26713
26714 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
26715 }
26716
26717 // wrapper function for command vkCmdCopyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMicromapEXT.html
26718 VULKAN_HPP_INLINE void CommandBuffer::copyMicromapEXT( CopyMicromapInfoEXT const & info ) const VULKAN_HPP_NOEXCEPT
26719 {
26720 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyMicromapEXT && "Function <vkCmdCopyMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26721
26722 getDispatcher()->vkCmdCopyMicromapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyMicromapInfoEXT const *>( &info ) );
26723 }
26724
26725 // wrapper function for command vkCmdCopyMicromapToMemoryEXT, see
26726 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMicromapToMemoryEXT.html
26727 VULKAN_HPP_INLINE void CommandBuffer::copyMicromapToMemoryEXT( CopyMicromapToMemoryInfoEXT const & info ) const VULKAN_HPP_NOEXCEPT
26728 {
26729 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyMicromapToMemoryEXT && "Function <vkCmdCopyMicromapToMemoryEXT> requires <VK_EXT_opacity_micromap>" );
26730
26731 getDispatcher()->vkCmdCopyMicromapToMemoryEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
26732 reinterpret_cast<VkCopyMicromapToMemoryInfoEXT const *>( &info ) );
26733 }
26734
26735 // wrapper function for command vkCmdCopyMemoryToMicromapEXT, see
26736 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToMicromapEXT.html
26737 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToMicromapEXT( CopyMemoryToMicromapInfoEXT const & info ) const VULKAN_HPP_NOEXCEPT
26738 {
26739 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyMemoryToMicromapEXT && "Function <vkCmdCopyMemoryToMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26740
26741 getDispatcher()->vkCmdCopyMemoryToMicromapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
26742 reinterpret_cast<VkCopyMemoryToMicromapInfoEXT const *>( &info ) );
26743 }
26744
26745 // wrapper function for command vkCmdWriteMicromapsPropertiesEXT, see
26746 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteMicromapsPropertiesEXT.html
26747 VULKAN_HPP_INLINE void CommandBuffer::writeMicromapsPropertiesEXT( ArrayProxy<VULKAN_HPP_NAMESPACE::MicromapEXT const> const & micromaps,
26748 QueryType queryType,
26749 VULKAN_HPP_NAMESPACE::QueryPool queryPool,
26750 uint32_t firstQuery ) const VULKAN_HPP_NOEXCEPT
26751 {
26752 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdWriteMicromapsPropertiesEXT &&
26753 "Function <vkCmdWriteMicromapsPropertiesEXT> requires <VK_EXT_opacity_micromap>" );
26754
26755 getDispatcher()->vkCmdWriteMicromapsPropertiesEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
26756 micromaps.size(),
26757 reinterpret_cast<VkMicromapEXT const *>( micromaps.data() ),
26758 static_cast<VkQueryType>( queryType ),
26759 static_cast<VkQueryPool>( queryPool ),
26760 firstQuery );
26761 }
26762
26763 // wrapper function for command vkGetDeviceMicromapCompatibilityEXT, see
26764 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMicromapCompatibilityEXT.html
26765 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureCompatibilityKHR
26766 Device::getMicromapCompatibilityEXT( MicromapVersionInfoEXT const & versionInfo ) const VULKAN_HPP_NOEXCEPT
26767 {
26768 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceMicromapCompatibilityEXT &&
26769 "Function <vkGetDeviceMicromapCompatibilityEXT> requires <VK_EXT_opacity_micromap>" );
26770
26771 AccelerationStructureCompatibilityKHR compatibility;
26772 getDispatcher()->vkGetDeviceMicromapCompatibilityEXT( static_cast<VkDevice>( m_device ),
26773 reinterpret_cast<VkMicromapVersionInfoEXT const *>( &versionInfo ),
26774 reinterpret_cast<VkAccelerationStructureCompatibilityKHR *>( &compatibility ) );
26775
26776 return compatibility;
26777 }
26778
26779 // wrapper function for command vkGetMicromapBuildSizesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMicromapBuildSizesEXT.html
26780 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MicromapBuildSizesInfoEXT
26781 Device::getMicromapBuildSizesEXT( AccelerationStructureBuildTypeKHR buildType, MicromapBuildInfoEXT const & buildInfo ) const VULKAN_HPP_NOEXCEPT
26782 {
26783 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMicromapBuildSizesEXT && "Function <vkGetMicromapBuildSizesEXT> requires <VK_EXT_opacity_micromap>" );
26784
26785 MicromapBuildSizesInfoEXT sizeInfo;
26786 getDispatcher()->vkGetMicromapBuildSizesEXT( static_cast<VkDevice>( m_device ),
26787 static_cast<VkAccelerationStructureBuildTypeKHR>( buildType ),
26788 reinterpret_cast<VkMicromapBuildInfoEXT const *>( &buildInfo ),
26789 reinterpret_cast<VkMicromapBuildSizesInfoEXT *>( &sizeInfo ) );
26790
26791 return sizeInfo;
26792 }
26793
26794 //=== VK_HUAWEI_cluster_culling_shader ===
26795
26796 // wrapper function for command vkCmdDrawClusterHUAWEI, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawClusterHUAWEI.html
26797 VULKAN_HPP_INLINE void CommandBuffer::drawClusterHUAWEI( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ ) const VULKAN_HPP_NOEXCEPT
26798 {
26799 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawClusterHUAWEI && "Function <vkCmdDrawClusterHUAWEI> requires <VK_HUAWEI_cluster_culling_shader>" );
26800
26801 getDispatcher()->vkCmdDrawClusterHUAWEI( static_cast<VkCommandBuffer>( m_commandBuffer ), groupCountX, groupCountY, groupCountZ );
26802 }
26803
26804 // wrapper function for command vkCmdDrawClusterIndirectHUAWEI, see
26805 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawClusterIndirectHUAWEI.html
26806 VULKAN_HPP_INLINE void CommandBuffer::drawClusterIndirectHUAWEI( VULKAN_HPP_NAMESPACE::Buffer buffer, DeviceSize offset ) const VULKAN_HPP_NOEXCEPT
26807 {
26808 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDrawClusterIndirectHUAWEI &&
26809 "Function <vkCmdDrawClusterIndirectHUAWEI> requires <VK_HUAWEI_cluster_culling_shader>" );
26810
26811 getDispatcher()->vkCmdDrawClusterIndirectHUAWEI(
26812 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ) );
26813 }
26814
26815 //=== VK_EXT_pageable_device_local_memory ===
26816
26817 // wrapper function for command vkSetDeviceMemoryPriorityEXT, see
26818 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDeviceMemoryPriorityEXT.html
26819 VULKAN_HPP_INLINE void DeviceMemory::setPriorityEXT( float priority ) const VULKAN_HPP_NOEXCEPT
26820 {
26821 VULKAN_HPP_ASSERT( getDispatcher()->vkSetDeviceMemoryPriorityEXT &&
26822 "Function <vkSetDeviceMemoryPriorityEXT> requires <VK_EXT_pageable_device_local_memory>" );
26823
26824 getDispatcher()->vkSetDeviceMemoryPriorityEXT( static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( m_deviceMemory ), priority );
26825 }
26826
26827 //=== VK_KHR_maintenance4 ===
26828
26829 // wrapper function for command vkGetDeviceBufferMemoryRequirementsKHR, see
26830 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirementsKHR.html
26831 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
26832 Device::getBufferMemoryRequirementsKHR( DeviceBufferMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT
26833 {
26834 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceBufferMemoryRequirementsKHR &&
26835 "Function <vkGetDeviceBufferMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26836
26837 MemoryRequirements2 memoryRequirements;
26838 getDispatcher()->vkGetDeviceBufferMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
26839 reinterpret_cast<VkDeviceBufferMemoryRequirements const *>( &info ),
26840 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26841
26842 return memoryRequirements;
26843 }
26844
26845 // wrapper function for command vkGetDeviceBufferMemoryRequirementsKHR, see
26846 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirementsKHR.html
26847 template <typename X, typename Y, typename... Z>
26848 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
26849 Device::getBufferMemoryRequirementsKHR( DeviceBufferMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT
26850 {
26851 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceBufferMemoryRequirementsKHR &&
26852 "Function <vkGetDeviceBufferMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26853
26854 StructureChain<X, Y, Z...> structureChain;
26855 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
26856 getDispatcher()->vkGetDeviceBufferMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
26857 reinterpret_cast<VkDeviceBufferMemoryRequirements const *>( &info ),
26858 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26859
26860 return structureChain;
26861 }
26862
26863 // wrapper function for command vkGetDeviceImageMemoryRequirementsKHR, see
26864 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirementsKHR.html
26865 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
26866 Device::getImageMemoryRequirementsKHR( DeviceImageMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT
26867 {
26868 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceImageMemoryRequirementsKHR &&
26869 "Function <vkGetDeviceImageMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26870
26871 MemoryRequirements2 memoryRequirements;
26872 getDispatcher()->vkGetDeviceImageMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
26873 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ),
26874 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26875
26876 return memoryRequirements;
26877 }
26878
26879 // wrapper function for command vkGetDeviceImageMemoryRequirementsKHR, see
26880 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirementsKHR.html
26881 template <typename X, typename Y, typename... Z>
26882 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
26883 Device::getImageMemoryRequirementsKHR( DeviceImageMemoryRequirements const & info ) const VULKAN_HPP_NOEXCEPT
26884 {
26885 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceImageMemoryRequirementsKHR &&
26886 "Function <vkGetDeviceImageMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26887
26888 StructureChain<X, Y, Z...> structureChain;
26889 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
26890 getDispatcher()->vkGetDeviceImageMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
26891 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ),
26892 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26893
26894 return structureChain;
26895 }
26896
26897 // wrapper function for command vkGetDeviceImageSparseMemoryRequirementsKHR, see
26898 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirementsKHR.html
26899 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2>
26900 Device::getImageSparseMemoryRequirementsKHR( DeviceImageMemoryRequirements const & info ) const
26901 {
26902 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceImageSparseMemoryRequirementsKHR &&
26903 "Function <vkGetDeviceImageSparseMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26904
26905 std::vector<SparseImageMemoryRequirements2> sparseMemoryRequirements;
26906 uint32_t sparseMemoryRequirementCount;
26907 getDispatcher()->vkGetDeviceImageSparseMemoryRequirementsKHR(
26908 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ), &sparseMemoryRequirementCount, nullptr );
26909 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
26910 getDispatcher()->vkGetDeviceImageSparseMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
26911 reinterpret_cast<VkDeviceImageMemoryRequirements const *>( &info ),
26912 &sparseMemoryRequirementCount,
26913 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
26914
26915 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
26916 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
26917 {
26918 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
26919 }
26920 return sparseMemoryRequirements;
26921 }
26922
26923 //=== VK_VALVE_descriptor_set_host_mapping ===
26924
26925 // wrapper function for command vkGetDescriptorSetLayoutHostMappingInfoVALVE, see
26926 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutHostMappingInfoVALVE.html
26927 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DescriptorSetLayoutHostMappingInfoVALVE
26928 Device::getDescriptorSetLayoutHostMappingInfoVALVE( DescriptorSetBindingReferenceVALVE const & bindingReference ) const VULKAN_HPP_NOEXCEPT
26929 {
26930 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDescriptorSetLayoutHostMappingInfoVALVE &&
26931 "Function <vkGetDescriptorSetLayoutHostMappingInfoVALVE> requires <VK_VALVE_descriptor_set_host_mapping>" );
26932
26933 DescriptorSetLayoutHostMappingInfoVALVE hostMapping;
26934 getDispatcher()->vkGetDescriptorSetLayoutHostMappingInfoVALVE( static_cast<VkDevice>( m_device ),
26935 reinterpret_cast<VkDescriptorSetBindingReferenceVALVE const *>( &bindingReference ),
26936 reinterpret_cast<VkDescriptorSetLayoutHostMappingInfoVALVE *>( &hostMapping ) );
26937
26938 return hostMapping;
26939 }
26940
26941 // wrapper function for command vkGetDescriptorSetHostMappingVALVE, see
26942 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetHostMappingVALVE.html
26943 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE void * DescriptorSet::getHostMappingVALVE() const VULKAN_HPP_NOEXCEPT
26944 {
26945 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDescriptorSetHostMappingVALVE &&
26946 "Function <vkGetDescriptorSetHostMappingVALVE> requires <VK_VALVE_descriptor_set_host_mapping>" );
26947
26948 void * pData;
26949 getDispatcher()->vkGetDescriptorSetHostMappingVALVE( static_cast<VkDevice>( m_device ), static_cast<VkDescriptorSet>( m_descriptorSet ), &pData );
26950
26951 return pData;
26952 }
26953
26954 //=== VK_NV_copy_memory_indirect ===
26955
26956 // wrapper function for command vkCmdCopyMemoryIndirectNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryIndirectNV.html
26957 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryIndirectNV( DeviceAddress copyBufferAddress, uint32_t copyCount, uint32_t stride ) const VULKAN_HPP_NOEXCEPT
26958 {
26959 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyMemoryIndirectNV && "Function <vkCmdCopyMemoryIndirectNV> requires <VK_NV_copy_memory_indirect>" );
26960
26961 getDispatcher()->vkCmdCopyMemoryIndirectNV(
26962 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkDeviceAddress>( copyBufferAddress ), copyCount, stride );
26963 }
26964
26965 // wrapper function for command vkCmdCopyMemoryToImageIndirectNV, see
26966 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageIndirectNV.html
26967 VULKAN_HPP_INLINE void
26968 CommandBuffer::copyMemoryToImageIndirectNV( DeviceAddress copyBufferAddress,
26969 uint32_t stride,
26970 VULKAN_HPP_NAMESPACE::Image dstImage,
26971 ImageLayout dstImageLayout,
26972 ArrayProxy<ImageSubresourceLayers const> const & imageSubresources ) const VULKAN_HPP_NOEXCEPT
26973 {
26974 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyMemoryToImageIndirectNV &&
26975 "Function <vkCmdCopyMemoryToImageIndirectNV> requires <VK_NV_copy_memory_indirect>" );
26976
26977 getDispatcher()->vkCmdCopyMemoryToImageIndirectNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
26978 static_cast<VkDeviceAddress>( copyBufferAddress ),
26979 imageSubresources.size(),
26980 stride,
26981 static_cast<VkImage>( dstImage ),
26982 static_cast<VkImageLayout>( dstImageLayout ),
26983 reinterpret_cast<VkImageSubresourceLayers const *>( imageSubresources.data() ) );
26984 }
26985
26986 //=== VK_NV_memory_decompression ===
26987
26988 // wrapper function for command vkCmdDecompressMemoryNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryNV.html
26989 VULKAN_HPP_INLINE void
26990 CommandBuffer::decompressMemoryNV( ArrayProxy<DecompressMemoryRegionNV const> const & decompressMemoryRegions ) const VULKAN_HPP_NOEXCEPT
26991 {
26992 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDecompressMemoryNV && "Function <vkCmdDecompressMemoryNV> requires <VK_NV_memory_decompression>" );
26993
26994 getDispatcher()->vkCmdDecompressMemoryNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
26995 decompressMemoryRegions.size(),
26996 reinterpret_cast<VkDecompressMemoryRegionNV const *>( decompressMemoryRegions.data() ) );
26997 }
26998
26999 // wrapper function for command vkCmdDecompressMemoryIndirectCountNV, see
27000 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryIndirectCountNV.html
27001 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryIndirectCountNV( DeviceAddress indirectCommandsAddress,
27002 DeviceAddress indirectCommandsCountAddress,
27003 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
27004 {
27005 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDecompressMemoryIndirectCountNV &&
27006 "Function <vkCmdDecompressMemoryIndirectCountNV> requires <VK_NV_memory_decompression>" );
27007
27008 getDispatcher()->vkCmdDecompressMemoryIndirectCountNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
27009 static_cast<VkDeviceAddress>( indirectCommandsAddress ),
27010 static_cast<VkDeviceAddress>( indirectCommandsCountAddress ),
27011 stride );
27012 }
27013
27014 //=== VK_NV_device_generated_commands_compute ===
27015
27016 // wrapper function for command vkGetPipelineIndirectMemoryRequirementsNV, see
27017 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectMemoryRequirementsNV.html
27018 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
27019 Device::getPipelineIndirectMemoryRequirementsNV( ComputePipelineCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT
27020 {
27021 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPipelineIndirectMemoryRequirementsNV &&
27022 "Function <vkGetPipelineIndirectMemoryRequirementsNV> requires <VK_NV_device_generated_commands_compute>" );
27023
27024 MemoryRequirements2 memoryRequirements;
27025 getDispatcher()->vkGetPipelineIndirectMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
27026 reinterpret_cast<VkComputePipelineCreateInfo const *>( &createInfo ),
27027 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27028
27029 return memoryRequirements;
27030 }
27031
27032 // wrapper function for command vkGetPipelineIndirectMemoryRequirementsNV, see
27033 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectMemoryRequirementsNV.html
27034 template <typename X, typename Y, typename... Z>
27035 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
27036 Device::getPipelineIndirectMemoryRequirementsNV( ComputePipelineCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT
27037 {
27038 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPipelineIndirectMemoryRequirementsNV &&
27039 "Function <vkGetPipelineIndirectMemoryRequirementsNV> requires <VK_NV_device_generated_commands_compute>" );
27040
27041 StructureChain<X, Y, Z...> structureChain;
27042 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
27043 getDispatcher()->vkGetPipelineIndirectMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
27044 reinterpret_cast<VkComputePipelineCreateInfo const *>( &createInfo ),
27045 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27046
27047 return structureChain;
27048 }
27049
27050 // wrapper function for command vkCmdUpdatePipelineIndirectBufferNV, see
27051 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdatePipelineIndirectBufferNV.html
27052 VULKAN_HPP_INLINE void CommandBuffer::updatePipelineIndirectBufferNV( PipelineBindPoint pipelineBindPoint,
27053 VULKAN_HPP_NAMESPACE::Pipeline pipeline ) const VULKAN_HPP_NOEXCEPT
27054 {
27055 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdUpdatePipelineIndirectBufferNV &&
27056 "Function <vkCmdUpdatePipelineIndirectBufferNV> requires <VK_NV_device_generated_commands_compute>" );
27057
27058 getDispatcher()->vkCmdUpdatePipelineIndirectBufferNV(
27059 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipeline>( pipeline ) );
27060 }
27061
27062 // wrapper function for command vkGetPipelineIndirectDeviceAddressNV, see
27063 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectDeviceAddressNV.html
27064 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceAddress
27065 Device::getPipelineIndirectAddressNV( PipelineIndirectDeviceAddressInfoNV const & info ) const VULKAN_HPP_NOEXCEPT
27066 {
27067 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPipelineIndirectDeviceAddressNV &&
27068 "Function <vkGetPipelineIndirectDeviceAddressNV> requires <VK_NV_device_generated_commands_compute>" );
27069
27070 VkDeviceAddress result = getDispatcher()->vkGetPipelineIndirectDeviceAddressNV(
27071 static_cast<VkDevice>( m_device ), reinterpret_cast<VkPipelineIndirectDeviceAddressInfoNV const *>( &info ) );
27072
27073 return static_cast<DeviceAddress>( result );
27074 }
27075
27076 # if defined( VK_USE_PLATFORM_OHOS )
27077 //=== VK_OHOS_external_memory ===
27078
27079 // wrapper function for command vkGetNativeBufferPropertiesOHOS, see
27080 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html
27081 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<NativeBufferPropertiesOHOS>::type
27082 Device::getNativeBufferPropertiesOHOS( struct OH_NativeBuffer const & buffer ) const
27083 {
27084 VULKAN_HPP_ASSERT( getDispatcher()->vkGetNativeBufferPropertiesOHOS && "Function <vkGetNativeBufferPropertiesOHOS> requires <VK_OHOS_external_memory>" );
27085
27086 NativeBufferPropertiesOHOS properties;
27087 Result result = static_cast<Result>( getDispatcher()->vkGetNativeBufferPropertiesOHOS(
27088 static_cast<VkDevice>( m_device ), &buffer, reinterpret_cast<VkNativeBufferPropertiesOHOS *>( &properties ) ) );
27089 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getNativeBufferPropertiesOHOS" );
27090
27091 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
27092 }
27093
27094 // wrapper function for command vkGetNativeBufferPropertiesOHOS, see
27095 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html
27096 template <typename X, typename Y, typename... Z>
27097 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
27098 Device::getNativeBufferPropertiesOHOS( struct OH_NativeBuffer const & buffer ) const
27099 {
27100 VULKAN_HPP_ASSERT( getDispatcher()->vkGetNativeBufferPropertiesOHOS && "Function <vkGetNativeBufferPropertiesOHOS> requires <VK_OHOS_external_memory>" );
27101
27102 StructureChain<X, Y, Z...> structureChain;
27103 NativeBufferPropertiesOHOS & properties = structureChain.template get<NativeBufferPropertiesOHOS>();
27104 Result result = static_cast<Result>( getDispatcher()->vkGetNativeBufferPropertiesOHOS(
27105 static_cast<VkDevice>( m_device ), &buffer, reinterpret_cast<VkNativeBufferPropertiesOHOS *>( &properties ) ) );
27106 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getNativeBufferPropertiesOHOS" );
27107
27108 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( structureChain ) );
27109 }
27110
27111 // wrapper function for command vkGetMemoryNativeBufferOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryNativeBufferOHOS.html
27112 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<struct OH_NativeBuffer *>::type
27113 Device::getMemoryNativeBufferOHOS( MemoryGetNativeBufferInfoOHOS const & info ) const
27114 {
27115 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryNativeBufferOHOS && "Function <vkGetMemoryNativeBufferOHOS> requires <VK_OHOS_external_memory>" );
27116
27117 struct OH_NativeBuffer * buffer;
27118 Result result = static_cast<Result>( getDispatcher()->vkGetMemoryNativeBufferOHOS(
27119 static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryGetNativeBufferInfoOHOS const *>( &info ), &buffer ) );
27120 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getMemoryNativeBufferOHOS" );
27121
27122 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( buffer ) );
27123 }
27124 # endif /*VK_USE_PLATFORM_OHOS*/
27125
27126 //=== VK_EXT_extended_dynamic_state3 ===
27127
27128 // wrapper function for command vkCmdSetDepthClampEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClampEnableEXT.html
27129 VULKAN_HPP_INLINE void CommandBuffer::setDepthClampEnableEXT( Bool32 depthClampEnable ) const VULKAN_HPP_NOEXCEPT
27130 {
27131 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthClampEnableEXT &&
27132 "Function <vkCmdSetDepthClampEnableEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27133
27134 getDispatcher()->vkCmdSetDepthClampEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthClampEnable ) );
27135 }
27136
27137 // wrapper function for command vkCmdSetPolygonModeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPolygonModeEXT.html
27138 VULKAN_HPP_INLINE void CommandBuffer::setPolygonModeEXT( PolygonMode polygonMode ) const VULKAN_HPP_NOEXCEPT
27139 {
27140 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetPolygonModeEXT &&
27141 "Function <vkCmdSetPolygonModeEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27142
27143 getDispatcher()->vkCmdSetPolygonModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPolygonMode>( polygonMode ) );
27144 }
27145
27146 // wrapper function for command vkCmdSetRasterizationSamplesEXT, see
27147 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizationSamplesEXT.html
27148 VULKAN_HPP_INLINE void CommandBuffer::setRasterizationSamplesEXT( SampleCountFlagBits rasterizationSamples ) const VULKAN_HPP_NOEXCEPT
27149 {
27150 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetRasterizationSamplesEXT &&
27151 "Function <vkCmdSetRasterizationSamplesEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27152
27153 getDispatcher()->vkCmdSetRasterizationSamplesEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27154 static_cast<VkSampleCountFlagBits>( rasterizationSamples ) );
27155 }
27156
27157 // wrapper function for command vkCmdSetSampleMaskEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleMaskEXT.html
27158 VULKAN_HPP_INLINE void CommandBuffer::setSampleMaskEXT( SampleCountFlagBits samples, ArrayProxy<SampleMask const> const & sampleMask ) const
27159 {
27160 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetSampleMaskEXT &&
27161 "Function <vkCmdSetSampleMaskEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27162 # ifdef VULKAN_HPP_NO_EXCEPTIONS
27163 VULKAN_HPP_ASSERT( sampleMask.size() == ( static_cast<uint32_t>( samples ) + 31 ) / 32 );
27164 # else
27165 if ( sampleMask.size() != ( static_cast<uint32_t>( samples ) + 31 ) / 32 )
27166 {
27167 throw LogicError( VULKAN_HPP_NAMESPACE_STRING
27168 "::CommandBuffer::setSampleMaskEXT: sampleMask.size() != ( static_cast<uint32_t>( samples ) + 31 ) / 32" );
27169 }
27170 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
27171
27172 getDispatcher()->vkCmdSetSampleMaskEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27173 static_cast<VkSampleCountFlagBits>( samples ),
27174 reinterpret_cast<VkSampleMask const *>( sampleMask.data() ) );
27175 }
27176
27177 // wrapper function for command vkCmdSetAlphaToCoverageEnableEXT, see
27178 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetAlphaToCoverageEnableEXT.html
27179 VULKAN_HPP_INLINE void CommandBuffer::setAlphaToCoverageEnableEXT( Bool32 alphaToCoverageEnable ) const VULKAN_HPP_NOEXCEPT
27180 {
27181 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetAlphaToCoverageEnableEXT &&
27182 "Function <vkCmdSetAlphaToCoverageEnableEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27183
27184 getDispatcher()->vkCmdSetAlphaToCoverageEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( alphaToCoverageEnable ) );
27185 }
27186
27187 // wrapper function for command vkCmdSetAlphaToOneEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetAlphaToOneEnableEXT.html
27188 VULKAN_HPP_INLINE void CommandBuffer::setAlphaToOneEnableEXT( Bool32 alphaToOneEnable ) const VULKAN_HPP_NOEXCEPT
27189 {
27190 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetAlphaToOneEnableEXT &&
27191 "Function <vkCmdSetAlphaToOneEnableEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27192
27193 getDispatcher()->vkCmdSetAlphaToOneEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( alphaToOneEnable ) );
27194 }
27195
27196 // wrapper function for command vkCmdSetLogicOpEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLogicOpEnableEXT.html
27197 VULKAN_HPP_INLINE void CommandBuffer::setLogicOpEnableEXT( Bool32 logicOpEnable ) const VULKAN_HPP_NOEXCEPT
27198 {
27199 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetLogicOpEnableEXT &&
27200 "Function <vkCmdSetLogicOpEnableEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27201
27202 getDispatcher()->vkCmdSetLogicOpEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( logicOpEnable ) );
27203 }
27204
27205 // wrapper function for command vkCmdSetColorBlendEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendEnableEXT.html
27206 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendEnableEXT( uint32_t firstAttachment,
27207 ArrayProxy<Bool32 const> const & colorBlendEnables ) const VULKAN_HPP_NOEXCEPT
27208 {
27209 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetColorBlendEnableEXT &&
27210 "Function <vkCmdSetColorBlendEnableEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27211
27212 getDispatcher()->vkCmdSetColorBlendEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27213 firstAttachment,
27214 colorBlendEnables.size(),
27215 reinterpret_cast<VkBool32 const *>( colorBlendEnables.data() ) );
27216 }
27217
27218 // wrapper function for command vkCmdSetColorBlendEquationEXT, see
27219 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendEquationEXT.html
27220 VULKAN_HPP_INLINE void
27221 CommandBuffer::setColorBlendEquationEXT( uint32_t firstAttachment,
27222 ArrayProxy<ColorBlendEquationEXT const> const & colorBlendEquations ) const VULKAN_HPP_NOEXCEPT
27223 {
27224 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetColorBlendEquationEXT &&
27225 "Function <vkCmdSetColorBlendEquationEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27226
27227 getDispatcher()->vkCmdSetColorBlendEquationEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27228 firstAttachment,
27229 colorBlendEquations.size(),
27230 reinterpret_cast<VkColorBlendEquationEXT const *>( colorBlendEquations.data() ) );
27231 }
27232
27233 // wrapper function for command vkCmdSetColorWriteMaskEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorWriteMaskEXT.html
27234 VULKAN_HPP_INLINE void CommandBuffer::setColorWriteMaskEXT( uint32_t firstAttachment,
27235 ArrayProxy<ColorComponentFlags const> const & colorWriteMasks ) const VULKAN_HPP_NOEXCEPT
27236 {
27237 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetColorWriteMaskEXT &&
27238 "Function <vkCmdSetColorWriteMaskEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27239
27240 getDispatcher()->vkCmdSetColorWriteMaskEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27241 firstAttachment,
27242 colorWriteMasks.size(),
27243 reinterpret_cast<VkColorComponentFlags const *>( colorWriteMasks.data() ) );
27244 }
27245
27246 // wrapper function for command vkCmdSetTessellationDomainOriginEXT, see
27247 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetTessellationDomainOriginEXT.html
27248 VULKAN_HPP_INLINE void CommandBuffer::setTessellationDomainOriginEXT( TessellationDomainOrigin domainOrigin ) const VULKAN_HPP_NOEXCEPT
27249 {
27250 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetTessellationDomainOriginEXT &&
27251 "Function <vkCmdSetTessellationDomainOriginEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27252
27253 getDispatcher()->vkCmdSetTessellationDomainOriginEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27254 static_cast<VkTessellationDomainOrigin>( domainOrigin ) );
27255 }
27256
27257 // wrapper function for command vkCmdSetRasterizationStreamEXT, see
27258 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizationStreamEXT.html
27259 VULKAN_HPP_INLINE void CommandBuffer::setRasterizationStreamEXT( uint32_t rasterizationStream ) const VULKAN_HPP_NOEXCEPT
27260 {
27261 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetRasterizationStreamEXT &&
27262 "Function <vkCmdSetRasterizationStreamEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27263
27264 getDispatcher()->vkCmdSetRasterizationStreamEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), rasterizationStream );
27265 }
27266
27267 // wrapper function for command vkCmdSetConservativeRasterizationModeEXT, see
27268 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetConservativeRasterizationModeEXT.html
27269 VULKAN_HPP_INLINE void
27270 CommandBuffer::setConservativeRasterizationModeEXT( ConservativeRasterizationModeEXT conservativeRasterizationMode ) const VULKAN_HPP_NOEXCEPT
27271 {
27272 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetConservativeRasterizationModeEXT &&
27273 "Function <vkCmdSetConservativeRasterizationModeEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27274
27275 getDispatcher()->vkCmdSetConservativeRasterizationModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27276 static_cast<VkConservativeRasterizationModeEXT>( conservativeRasterizationMode ) );
27277 }
27278
27279 // wrapper function for command vkCmdSetExtraPrimitiveOverestimationSizeEXT, see
27280 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExtraPrimitiveOverestimationSizeEXT.html
27281 VULKAN_HPP_INLINE void CommandBuffer::setExtraPrimitiveOverestimationSizeEXT( float extraPrimitiveOverestimationSize ) const VULKAN_HPP_NOEXCEPT
27282 {
27283 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetExtraPrimitiveOverestimationSizeEXT &&
27284 "Function <vkCmdSetExtraPrimitiveOverestimationSizeEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27285
27286 getDispatcher()->vkCmdSetExtraPrimitiveOverestimationSizeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), extraPrimitiveOverestimationSize );
27287 }
27288
27289 // wrapper function for command vkCmdSetDepthClipEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClipEnableEXT.html
27290 VULKAN_HPP_INLINE void CommandBuffer::setDepthClipEnableEXT( Bool32 depthClipEnable ) const VULKAN_HPP_NOEXCEPT
27291 {
27292 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthClipEnableEXT &&
27293 "Function <vkCmdSetDepthClipEnableEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27294
27295 getDispatcher()->vkCmdSetDepthClipEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthClipEnable ) );
27296 }
27297
27298 // wrapper function for command vkCmdSetSampleLocationsEnableEXT, see
27299 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleLocationsEnableEXT.html
27300 VULKAN_HPP_INLINE void CommandBuffer::setSampleLocationsEnableEXT( Bool32 sampleLocationsEnable ) const VULKAN_HPP_NOEXCEPT
27301 {
27302 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetSampleLocationsEnableEXT &&
27303 "Function <vkCmdSetSampleLocationsEnableEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27304
27305 getDispatcher()->vkCmdSetSampleLocationsEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( sampleLocationsEnable ) );
27306 }
27307
27308 // wrapper function for command vkCmdSetColorBlendAdvancedEXT, see
27309 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendAdvancedEXT.html
27310 VULKAN_HPP_INLINE void
27311 CommandBuffer::setColorBlendAdvancedEXT( uint32_t firstAttachment,
27312 ArrayProxy<ColorBlendAdvancedEXT const> const & colorBlendAdvanced ) const VULKAN_HPP_NOEXCEPT
27313 {
27314 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetColorBlendAdvancedEXT &&
27315 "Function <vkCmdSetColorBlendAdvancedEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27316
27317 getDispatcher()->vkCmdSetColorBlendAdvancedEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27318 firstAttachment,
27319 colorBlendAdvanced.size(),
27320 reinterpret_cast<VkColorBlendAdvancedEXT const *>( colorBlendAdvanced.data() ) );
27321 }
27322
27323 // wrapper function for command vkCmdSetProvokingVertexModeEXT, see
27324 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetProvokingVertexModeEXT.html
27325 VULKAN_HPP_INLINE void CommandBuffer::setProvokingVertexModeEXT( ProvokingVertexModeEXT provokingVertexMode ) const VULKAN_HPP_NOEXCEPT
27326 {
27327 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetProvokingVertexModeEXT &&
27328 "Function <vkCmdSetProvokingVertexModeEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27329
27330 getDispatcher()->vkCmdSetProvokingVertexModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27331 static_cast<VkProvokingVertexModeEXT>( provokingVertexMode ) );
27332 }
27333
27334 // wrapper function for command vkCmdSetLineRasterizationModeEXT, see
27335 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineRasterizationModeEXT.html
27336 VULKAN_HPP_INLINE void CommandBuffer::setLineRasterizationModeEXT( LineRasterizationModeEXT lineRasterizationMode ) const VULKAN_HPP_NOEXCEPT
27337 {
27338 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetLineRasterizationModeEXT &&
27339 "Function <vkCmdSetLineRasterizationModeEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27340
27341 getDispatcher()->vkCmdSetLineRasterizationModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27342 static_cast<VkLineRasterizationModeEXT>( lineRasterizationMode ) );
27343 }
27344
27345 // wrapper function for command vkCmdSetLineStippleEnableEXT, see
27346 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStippleEnableEXT.html
27347 VULKAN_HPP_INLINE void CommandBuffer::setLineStippleEnableEXT( Bool32 stippledLineEnable ) const VULKAN_HPP_NOEXCEPT
27348 {
27349 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetLineStippleEnableEXT &&
27350 "Function <vkCmdSetLineStippleEnableEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27351
27352 getDispatcher()->vkCmdSetLineStippleEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( stippledLineEnable ) );
27353 }
27354
27355 // wrapper function for command vkCmdSetDepthClipNegativeOneToOneEXT, see
27356 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClipNegativeOneToOneEXT.html
27357 VULKAN_HPP_INLINE void CommandBuffer::setDepthClipNegativeOneToOneEXT( Bool32 negativeOneToOne ) const VULKAN_HPP_NOEXCEPT
27358 {
27359 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthClipNegativeOneToOneEXT &&
27360 "Function <vkCmdSetDepthClipNegativeOneToOneEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27361
27362 getDispatcher()->vkCmdSetDepthClipNegativeOneToOneEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( negativeOneToOne ) );
27363 }
27364
27365 // wrapper function for command vkCmdSetViewportWScalingEnableNV, see
27366 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWScalingEnableNV.html
27367 VULKAN_HPP_INLINE void CommandBuffer::setViewportWScalingEnableNV( Bool32 viewportWScalingEnable ) const VULKAN_HPP_NOEXCEPT
27368 {
27369 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetViewportWScalingEnableNV &&
27370 "Function <vkCmdSetViewportWScalingEnableNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27371
27372 getDispatcher()->vkCmdSetViewportWScalingEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( viewportWScalingEnable ) );
27373 }
27374
27375 // wrapper function for command vkCmdSetViewportSwizzleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportSwizzleNV.html
27376 VULKAN_HPP_INLINE void CommandBuffer::setViewportSwizzleNV( uint32_t firstViewport,
27377 ArrayProxy<ViewportSwizzleNV const> const & viewportSwizzles ) const VULKAN_HPP_NOEXCEPT
27378 {
27379 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetViewportSwizzleNV &&
27380 "Function <vkCmdSetViewportSwizzleNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27381
27382 getDispatcher()->vkCmdSetViewportSwizzleNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
27383 firstViewport,
27384 viewportSwizzles.size(),
27385 reinterpret_cast<VkViewportSwizzleNV const *>( viewportSwizzles.data() ) );
27386 }
27387
27388 // wrapper function for command vkCmdSetCoverageToColorEnableNV, see
27389 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageToColorEnableNV.html
27390 VULKAN_HPP_INLINE void CommandBuffer::setCoverageToColorEnableNV( Bool32 coverageToColorEnable ) const VULKAN_HPP_NOEXCEPT
27391 {
27392 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetCoverageToColorEnableNV &&
27393 "Function <vkCmdSetCoverageToColorEnableNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27394
27395 getDispatcher()->vkCmdSetCoverageToColorEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( coverageToColorEnable ) );
27396 }
27397
27398 // wrapper function for command vkCmdSetCoverageToColorLocationNV, see
27399 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageToColorLocationNV.html
27400 VULKAN_HPP_INLINE void CommandBuffer::setCoverageToColorLocationNV( uint32_t coverageToColorLocation ) const VULKAN_HPP_NOEXCEPT
27401 {
27402 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetCoverageToColorLocationNV &&
27403 "Function <vkCmdSetCoverageToColorLocationNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27404
27405 getDispatcher()->vkCmdSetCoverageToColorLocationNV( static_cast<VkCommandBuffer>( m_commandBuffer ), coverageToColorLocation );
27406 }
27407
27408 // wrapper function for command vkCmdSetCoverageModulationModeNV, see
27409 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationModeNV.html
27410 VULKAN_HPP_INLINE void CommandBuffer::setCoverageModulationModeNV( CoverageModulationModeNV coverageModulationMode ) const VULKAN_HPP_NOEXCEPT
27411 {
27412 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetCoverageModulationModeNV &&
27413 "Function <vkCmdSetCoverageModulationModeNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27414
27415 getDispatcher()->vkCmdSetCoverageModulationModeNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
27416 static_cast<VkCoverageModulationModeNV>( coverageModulationMode ) );
27417 }
27418
27419 // wrapper function for command vkCmdSetCoverageModulationTableEnableNV, see
27420 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationTableEnableNV.html
27421 VULKAN_HPP_INLINE void CommandBuffer::setCoverageModulationTableEnableNV( Bool32 coverageModulationTableEnable ) const VULKAN_HPP_NOEXCEPT
27422 {
27423 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetCoverageModulationTableEnableNV &&
27424 "Function <vkCmdSetCoverageModulationTableEnableNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27425
27426 getDispatcher()->vkCmdSetCoverageModulationTableEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
27427 static_cast<VkBool32>( coverageModulationTableEnable ) );
27428 }
27429
27430 // wrapper function for command vkCmdSetCoverageModulationTableNV, see
27431 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationTableNV.html
27432 VULKAN_HPP_INLINE void CommandBuffer::setCoverageModulationTableNV( ArrayProxy<float const> const & coverageModulationTable ) const VULKAN_HPP_NOEXCEPT
27433 {
27434 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetCoverageModulationTableNV &&
27435 "Function <vkCmdSetCoverageModulationTableNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27436
27437 getDispatcher()->vkCmdSetCoverageModulationTableNV(
27438 static_cast<VkCommandBuffer>( m_commandBuffer ), coverageModulationTable.size(), coverageModulationTable.data() );
27439 }
27440
27441 // wrapper function for command vkCmdSetShadingRateImageEnableNV, see
27442 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetShadingRateImageEnableNV.html
27443 VULKAN_HPP_INLINE void CommandBuffer::setShadingRateImageEnableNV( Bool32 shadingRateImageEnable ) const VULKAN_HPP_NOEXCEPT
27444 {
27445 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetShadingRateImageEnableNV &&
27446 "Function <vkCmdSetShadingRateImageEnableNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27447
27448 getDispatcher()->vkCmdSetShadingRateImageEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( shadingRateImageEnable ) );
27449 }
27450
27451 // wrapper function for command vkCmdSetRepresentativeFragmentTestEnableNV, see
27452 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRepresentativeFragmentTestEnableNV.html
27453 VULKAN_HPP_INLINE void CommandBuffer::setRepresentativeFragmentTestEnableNV( Bool32 representativeFragmentTestEnable ) const VULKAN_HPP_NOEXCEPT
27454 {
27455 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetRepresentativeFragmentTestEnableNV &&
27456 "Function <vkCmdSetRepresentativeFragmentTestEnableNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27457
27458 getDispatcher()->vkCmdSetRepresentativeFragmentTestEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
27459 static_cast<VkBool32>( representativeFragmentTestEnable ) );
27460 }
27461
27462 // wrapper function for command vkCmdSetCoverageReductionModeNV, see
27463 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageReductionModeNV.html
27464 VULKAN_HPP_INLINE void CommandBuffer::setCoverageReductionModeNV( CoverageReductionModeNV coverageReductionMode ) const VULKAN_HPP_NOEXCEPT
27465 {
27466 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetCoverageReductionModeNV &&
27467 "Function <vkCmdSetCoverageReductionModeNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27468
27469 getDispatcher()->vkCmdSetCoverageReductionModeNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
27470 static_cast<VkCoverageReductionModeNV>( coverageReductionMode ) );
27471 }
27472
27473 //=== VK_ARM_tensors ===
27474
27475 // wrapper function for command vkCreateTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorARM.html
27476 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<TensorARM>::type
27477 Device::createTensorARM( TensorCreateInfoARM const & createInfo,
27478 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
27479 {
27480 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateTensorARM && "Function <vkCreateTensorARM> requires <VK_ARM_tensors>" );
27481
27482 VULKAN_HPP_NAMESPACE::TensorARM tensor;
27483 Result result = static_cast<Result>( getDispatcher()->vkCreateTensorARM( static_cast<VkDevice>( m_device ),
27484 reinterpret_cast<VkTensorCreateInfoARM const *>( &createInfo ),
27485 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
27486 reinterpret_cast<VkTensorARM *>( &tensor ) ) );
27487 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createTensorARM" );
27488 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, TensorARM( *this, *reinterpret_cast<VkTensorARM *>( &tensor ), allocator ) );
27489 }
27490
27491 // wrapper function for command vkCreateTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorViewARM.html
27492 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<TensorViewARM>::type
27493 Device::createTensorViewARM( TensorViewCreateInfoARM const & createInfo,
27494 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
27495 {
27496 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateTensorViewARM && "Function <vkCreateTensorViewARM> requires <VK_ARM_tensors>" );
27497
27498 VULKAN_HPP_NAMESPACE::TensorViewARM view;
27499 Result result = static_cast<Result>( getDispatcher()->vkCreateTensorViewARM( static_cast<VkDevice>( m_device ),
27500 reinterpret_cast<VkTensorViewCreateInfoARM const *>( &createInfo ),
27501 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
27502 reinterpret_cast<VkTensorViewARM *>( &view ) ) );
27503 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createTensorViewARM" );
27504 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, TensorViewARM( *this, *reinterpret_cast<VkTensorViewARM *>( &view ), allocator ) );
27505 }
27506
27507 // wrapper function for command vkGetTensorMemoryRequirementsARM, see
27508 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorMemoryRequirementsARM.html
27509 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
27510 Device::getTensorMemoryRequirementsARM( TensorMemoryRequirementsInfoARM const & info ) const VULKAN_HPP_NOEXCEPT
27511 {
27512 VULKAN_HPP_ASSERT( getDispatcher()->vkGetTensorMemoryRequirementsARM && "Function <vkGetTensorMemoryRequirementsARM> requires <VK_ARM_tensors>" );
27513
27514 MemoryRequirements2 memoryRequirements;
27515 getDispatcher()->vkGetTensorMemoryRequirementsARM( static_cast<VkDevice>( m_device ),
27516 reinterpret_cast<VkTensorMemoryRequirementsInfoARM const *>( &info ),
27517 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27518
27519 return memoryRequirements;
27520 }
27521
27522 // wrapper function for command vkGetTensorMemoryRequirementsARM, see
27523 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorMemoryRequirementsARM.html
27524 template <typename X, typename Y, typename... Z>
27525 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
27526 Device::getTensorMemoryRequirementsARM( TensorMemoryRequirementsInfoARM const & info ) const VULKAN_HPP_NOEXCEPT
27527 {
27528 VULKAN_HPP_ASSERT( getDispatcher()->vkGetTensorMemoryRequirementsARM && "Function <vkGetTensorMemoryRequirementsARM> requires <VK_ARM_tensors>" );
27529
27530 StructureChain<X, Y, Z...> structureChain;
27531 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
27532 getDispatcher()->vkGetTensorMemoryRequirementsARM( static_cast<VkDevice>( m_device ),
27533 reinterpret_cast<VkTensorMemoryRequirementsInfoARM const *>( &info ),
27534 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27535
27536 return structureChain;
27537 }
27538
27539 // wrapper function for command vkBindTensorMemoryARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindTensorMemoryARM.html
27540 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindTensorMemoryARM( ArrayProxy<BindTensorMemoryInfoARM const> const & bindInfos ) const
27541 {
27542 VULKAN_HPP_ASSERT( getDispatcher()->vkBindTensorMemoryARM && "Function <vkBindTensorMemoryARM> requires <VK_ARM_tensors>" );
27543
27544 Result result = static_cast<Result>( getDispatcher()->vkBindTensorMemoryARM(
27545 static_cast<VkDevice>( m_device ), bindInfos.size(), reinterpret_cast<VkBindTensorMemoryInfoARM const *>( bindInfos.data() ) ) );
27546 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::bindTensorMemoryARM" );
27547
27548 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
27549 }
27550
27551 // wrapper function for command vkGetDeviceTensorMemoryRequirementsARM, see
27552 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceTensorMemoryRequirementsARM.html
27553 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
27554 Device::getTensorMemoryRequirementsARM( DeviceTensorMemoryRequirementsARM const & info ) const VULKAN_HPP_NOEXCEPT
27555 {
27556 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceTensorMemoryRequirementsARM &&
27557 "Function <vkGetDeviceTensorMemoryRequirementsARM> requires <VK_ARM_tensors>" );
27558
27559 MemoryRequirements2 memoryRequirements;
27560 getDispatcher()->vkGetDeviceTensorMemoryRequirementsARM( static_cast<VkDevice>( m_device ),
27561 reinterpret_cast<VkDeviceTensorMemoryRequirementsARM const *>( &info ),
27562 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27563
27564 return memoryRequirements;
27565 }
27566
27567 // wrapper function for command vkGetDeviceTensorMemoryRequirementsARM, see
27568 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceTensorMemoryRequirementsARM.html
27569 template <typename X, typename Y, typename... Z>
27570 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
27571 Device::getTensorMemoryRequirementsARM( DeviceTensorMemoryRequirementsARM const & info ) const VULKAN_HPP_NOEXCEPT
27572 {
27573 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceTensorMemoryRequirementsARM &&
27574 "Function <vkGetDeviceTensorMemoryRequirementsARM> requires <VK_ARM_tensors>" );
27575
27576 StructureChain<X, Y, Z...> structureChain;
27577 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
27578 getDispatcher()->vkGetDeviceTensorMemoryRequirementsARM( static_cast<VkDevice>( m_device ),
27579 reinterpret_cast<VkDeviceTensorMemoryRequirementsARM const *>( &info ),
27580 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27581
27582 return structureChain;
27583 }
27584
27585 // wrapper function for command vkCmdCopyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyTensorARM.html
27586 VULKAN_HPP_INLINE void CommandBuffer::copyTensorARM( CopyTensorInfoARM const & copyTensorInfo ) const VULKAN_HPP_NOEXCEPT
27587 {
27588 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyTensorARM && "Function <vkCmdCopyTensorARM> requires <VK_ARM_tensors>" );
27589
27590 getDispatcher()->vkCmdCopyTensorARM( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkCopyTensorInfoARM const *>( &copyTensorInfo ) );
27591 }
27592
27593 // wrapper function for command vkGetPhysicalDeviceExternalTensorPropertiesARM, see
27594 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalTensorPropertiesARM.html
27595 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalTensorPropertiesARM
27596 PhysicalDevice::getExternalTensorPropertiesARM( PhysicalDeviceExternalTensorInfoARM const & externalTensorInfo ) const VULKAN_HPP_NOEXCEPT
27597 {
27598 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceExternalTensorPropertiesARM &&
27599 "Function <vkGetPhysicalDeviceExternalTensorPropertiesARM> requires <VK_ARM_tensors>" );
27600
27601 ExternalTensorPropertiesARM externalTensorProperties;
27602 getDispatcher()->vkGetPhysicalDeviceExternalTensorPropertiesARM( static_cast<VkPhysicalDevice>( m_physicalDevice ),
27603 reinterpret_cast<VkPhysicalDeviceExternalTensorInfoARM const *>( &externalTensorInfo ),
27604 reinterpret_cast<VkExternalTensorPropertiesARM *>( &externalTensorProperties ) );
27605
27606 return externalTensorProperties;
27607 }
27608
27609 // wrapper function for command vkGetTensorOpaqueCaptureDescriptorDataARM, see
27610 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDescriptorDataARM.html
27611 template <typename DataType>
27612 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
27613 Device::getTensorOpaqueCaptureDescriptorDataARM( TensorCaptureDescriptorDataInfoARM const & info ) const
27614 {
27615 VULKAN_HPP_ASSERT( getDispatcher()->vkGetTensorOpaqueCaptureDescriptorDataARM &&
27616 "Function <vkGetTensorOpaqueCaptureDescriptorDataARM> requires <VK_ARM_tensors>" );
27617
27618 DataType data;
27619 Result result = static_cast<Result>( getDispatcher()->vkGetTensorOpaqueCaptureDescriptorDataARM(
27620 static_cast<VkDevice>( m_device ), reinterpret_cast<VkTensorCaptureDescriptorDataInfoARM const *>( &info ), &data ) );
27621 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getTensorOpaqueCaptureDescriptorDataARM" );
27622
27623 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
27624 }
27625
27626 // wrapper function for command vkGetTensorViewOpaqueCaptureDescriptorDataARM, see
27627 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorViewOpaqueCaptureDescriptorDataARM.html
27628 template <typename DataType>
27629 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
27630 Device::getTensorViewOpaqueCaptureDescriptorDataARM( TensorViewCaptureDescriptorDataInfoARM const & info ) const
27631 {
27632 VULKAN_HPP_ASSERT( getDispatcher()->vkGetTensorViewOpaqueCaptureDescriptorDataARM &&
27633 "Function <vkGetTensorViewOpaqueCaptureDescriptorDataARM> requires <VK_ARM_tensors>" );
27634
27635 DataType data;
27636 Result result = static_cast<Result>( getDispatcher()->vkGetTensorViewOpaqueCaptureDescriptorDataARM(
27637 static_cast<VkDevice>( m_device ), reinterpret_cast<VkTensorViewCaptureDescriptorDataInfoARM const *>( &info ), &data ) );
27638 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getTensorViewOpaqueCaptureDescriptorDataARM" );
27639
27640 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
27641 }
27642
27643 //=== VK_EXT_shader_module_identifier ===
27644
27645 // wrapper function for command vkGetShaderModuleIdentifierEXT, see
27646 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderModuleIdentifierEXT.html
27647 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ShaderModuleIdentifierEXT ShaderModule::getIdentifierEXT() const VULKAN_HPP_NOEXCEPT
27648 {
27649 VULKAN_HPP_ASSERT( getDispatcher()->vkGetShaderModuleIdentifierEXT &&
27650 "Function <vkGetShaderModuleIdentifierEXT> requires <VK_EXT_shader_module_identifier>" );
27651
27652 ShaderModuleIdentifierEXT identifier;
27653 getDispatcher()->vkGetShaderModuleIdentifierEXT(
27654 static_cast<VkDevice>( m_device ), static_cast<VkShaderModule>( m_shaderModule ), reinterpret_cast<VkShaderModuleIdentifierEXT *>( &identifier ) );
27655
27656 return identifier;
27657 }
27658
27659 // wrapper function for command vkGetShaderModuleCreateInfoIdentifierEXT, see
27660 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderModuleCreateInfoIdentifierEXT.html
27661 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ShaderModuleIdentifierEXT
27662 Device::getShaderModuleCreateInfoIdentifierEXT( ShaderModuleCreateInfo const & createInfo ) const VULKAN_HPP_NOEXCEPT
27663 {
27664 VULKAN_HPP_ASSERT( getDispatcher()->vkGetShaderModuleCreateInfoIdentifierEXT &&
27665 "Function <vkGetShaderModuleCreateInfoIdentifierEXT> requires <VK_EXT_shader_module_identifier>" );
27666
27667 ShaderModuleIdentifierEXT identifier;
27668 getDispatcher()->vkGetShaderModuleCreateInfoIdentifierEXT( static_cast<VkDevice>( m_device ),
27669 reinterpret_cast<VkShaderModuleCreateInfo const *>( &createInfo ),
27670 reinterpret_cast<VkShaderModuleIdentifierEXT *>( &identifier ) );
27671
27672 return identifier;
27673 }
27674
27675 //=== VK_NV_optical_flow ===
27676
27677 // wrapper function for command vkGetPhysicalDeviceOpticalFlowImageFormatsNV, see
27678 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceOpticalFlowImageFormatsNV.html
27679 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<OpticalFlowImageFormatPropertiesNV>>::type
27680 PhysicalDevice::getOpticalFlowImageFormatsNV( OpticalFlowImageFormatInfoNV const & opticalFlowImageFormatInfo ) const
27681 {
27682 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceOpticalFlowImageFormatsNV &&
27683 "Function <vkGetPhysicalDeviceOpticalFlowImageFormatsNV> requires <VK_NV_optical_flow>" );
27684
27685 std::vector<OpticalFlowImageFormatPropertiesNV> imageFormatProperties;
27686 uint32_t formatCount;
27687 Result result;
27688 do
27689 {
27690 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceOpticalFlowImageFormatsNV(
27691 static_cast<VkPhysicalDevice>( m_physicalDevice ),
27692 reinterpret_cast<VkOpticalFlowImageFormatInfoNV const *>( &opticalFlowImageFormatInfo ),
27693 &formatCount,
27694 nullptr ) );
27695 if ( ( result == Result::eSuccess ) && formatCount )
27696 {
27697 imageFormatProperties.resize( formatCount );
27698 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceOpticalFlowImageFormatsNV(
27699 static_cast<VkPhysicalDevice>( m_physicalDevice ),
27700 reinterpret_cast<VkOpticalFlowImageFormatInfoNV const *>( &opticalFlowImageFormatInfo ),
27701 &formatCount,
27702 reinterpret_cast<VkOpticalFlowImageFormatPropertiesNV *>( imageFormatProperties.data() ) ) );
27703 }
27704 } while ( result == Result::eIncomplete );
27705 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getOpticalFlowImageFormatsNV" );
27706 VULKAN_HPP_ASSERT( formatCount <= imageFormatProperties.size() );
27707 if ( formatCount < imageFormatProperties.size() )
27708 {
27709 imageFormatProperties.resize( formatCount );
27710 }
27711 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( imageFormatProperties ) );
27712 }
27713
27714 // wrapper function for command vkCreateOpticalFlowSessionNV, see
27715 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateOpticalFlowSessionNV.html
27716 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<OpticalFlowSessionNV>::type
27717 Device::createOpticalFlowSessionNV( OpticalFlowSessionCreateInfoNV const & createInfo,
27718 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
27719 {
27720 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateOpticalFlowSessionNV && "Function <vkCreateOpticalFlowSessionNV> requires <VK_NV_optical_flow>" );
27721
27722 VULKAN_HPP_NAMESPACE::OpticalFlowSessionNV session;
27723 Result result =
27724 static_cast<Result>( getDispatcher()->vkCreateOpticalFlowSessionNV( static_cast<VkDevice>( m_device ),
27725 reinterpret_cast<VkOpticalFlowSessionCreateInfoNV const *>( &createInfo ),
27726 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
27727 reinterpret_cast<VkOpticalFlowSessionNV *>( &session ) ) );
27728 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createOpticalFlowSessionNV" );
27729 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
27730 result, OpticalFlowSessionNV( *this, *reinterpret_cast<VkOpticalFlowSessionNV *>( &session ), allocator ) );
27731 }
27732
27733 // wrapper function for command vkBindOpticalFlowSessionImageNV, see
27734 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindOpticalFlowSessionImageNV.html
27735 VULKAN_HPP_INLINE typename ResultValueType<void>::type
27736 OpticalFlowSessionNV::bindImage( OpticalFlowSessionBindingPointNV bindingPoint, VULKAN_HPP_NAMESPACE::ImageView view, ImageLayout layout ) const
27737 {
27738 VULKAN_HPP_ASSERT( getDispatcher()->vkBindOpticalFlowSessionImageNV && "Function <vkBindOpticalFlowSessionImageNV> requires <VK_NV_optical_flow>" );
27739
27740 Result result = static_cast<Result>( getDispatcher()->vkBindOpticalFlowSessionImageNV( static_cast<VkDevice>( m_device ),
27741 static_cast<VkOpticalFlowSessionNV>( m_opticalFlowSessionNV ),
27742 static_cast<VkOpticalFlowSessionBindingPointNV>( bindingPoint ),
27743 static_cast<VkImageView>( view ),
27744 static_cast<VkImageLayout>( layout ) ) );
27745 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::OpticalFlowSessionNV::bindImage" );
27746
27747 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
27748 }
27749
27750 // wrapper function for command vkCmdOpticalFlowExecuteNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdOpticalFlowExecuteNV.html
27751 VULKAN_HPP_INLINE void CommandBuffer::opticalFlowExecuteNV( VULKAN_HPP_NAMESPACE::OpticalFlowSessionNV session,
27752 OpticalFlowExecuteInfoNV const & executeInfo ) const VULKAN_HPP_NOEXCEPT
27753 {
27754 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdOpticalFlowExecuteNV && "Function <vkCmdOpticalFlowExecuteNV> requires <VK_NV_optical_flow>" );
27755
27756 getDispatcher()->vkCmdOpticalFlowExecuteNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
27757 static_cast<VkOpticalFlowSessionNV>( session ),
27758 reinterpret_cast<VkOpticalFlowExecuteInfoNV const *>( &executeInfo ) );
27759 }
27760
27761 //=== VK_KHR_maintenance5 ===
27762
27763 // wrapper function for command vkCmdBindIndexBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer2KHR.html
27764 VULKAN_HPP_INLINE void CommandBuffer::bindIndexBuffer2KHR( VULKAN_HPP_NAMESPACE::Buffer buffer,
27765 DeviceSize offset,
27766 DeviceSize size,
27767 IndexType indexType ) const VULKAN_HPP_NOEXCEPT
27768 {
27769 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindIndexBuffer2KHR &&
27770 "Function <vkCmdBindIndexBuffer2KHR> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
27771
27772 getDispatcher()->vkCmdBindIndexBuffer2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
27773 static_cast<VkBuffer>( buffer ),
27774 static_cast<VkDeviceSize>( offset ),
27775 static_cast<VkDeviceSize>( size ),
27776 static_cast<VkIndexType>( indexType ) );
27777 }
27778
27779 // wrapper function for command vkGetRenderingAreaGranularityKHR, see
27780 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderingAreaGranularityKHR.html
27781 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Extent2D
27782 Device::getRenderingAreaGranularityKHR( RenderingAreaInfo const & renderingAreaInfo ) const VULKAN_HPP_NOEXCEPT
27783 {
27784 VULKAN_HPP_ASSERT( getDispatcher()->vkGetRenderingAreaGranularityKHR &&
27785 "Function <vkGetRenderingAreaGranularityKHR> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
27786
27787 Extent2D granularity;
27788 getDispatcher()->vkGetRenderingAreaGranularityKHR( static_cast<VkDevice>( m_device ),
27789 reinterpret_cast<VkRenderingAreaInfo const *>( &renderingAreaInfo ),
27790 reinterpret_cast<VkExtent2D *>( &granularity ) );
27791
27792 return granularity;
27793 }
27794
27795 // wrapper function for command vkGetDeviceImageSubresourceLayoutKHR, see
27796 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayoutKHR.html
27797 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2
27798 Device::getImageSubresourceLayoutKHR( DeviceImageSubresourceInfo const & info ) const VULKAN_HPP_NOEXCEPT
27799 {
27800 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceImageSubresourceLayoutKHR &&
27801 "Function <vkGetDeviceImageSubresourceLayoutKHR> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
27802
27803 SubresourceLayout2 layout;
27804 getDispatcher()->vkGetDeviceImageSubresourceLayoutKHR( static_cast<VkDevice>( m_device ),
27805 reinterpret_cast<VkDeviceImageSubresourceInfo const *>( &info ),
27806 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
27807
27808 return layout;
27809 }
27810
27811 // wrapper function for command vkGetDeviceImageSubresourceLayoutKHR, see
27812 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayoutKHR.html
27813 template <typename X, typename Y, typename... Z>
27814 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
27815 Device::getImageSubresourceLayoutKHR( DeviceImageSubresourceInfo const & info ) const VULKAN_HPP_NOEXCEPT
27816 {
27817 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDeviceImageSubresourceLayoutKHR &&
27818 "Function <vkGetDeviceImageSubresourceLayoutKHR> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
27819
27820 StructureChain<X, Y, Z...> structureChain;
27821 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
27822 getDispatcher()->vkGetDeviceImageSubresourceLayoutKHR( static_cast<VkDevice>( m_device ),
27823 reinterpret_cast<VkDeviceImageSubresourceInfo const *>( &info ),
27824 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
27825
27826 return structureChain;
27827 }
27828
27829 // wrapper function for command vkGetImageSubresourceLayout2KHR, see
27830 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2KHR.html
27831 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Image::getSubresourceLayout2KHR( ImageSubresource2 const & subresource ) const VULKAN_HPP_NOEXCEPT
27832 {
27833 VULKAN_HPP_ASSERT(
27834 getDispatcher()->vkGetImageSubresourceLayout2KHR &&
27835 "Function <vkGetImageSubresourceLayout2KHR> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
27836
27837 SubresourceLayout2 layout;
27838 getDispatcher()->vkGetImageSubresourceLayout2KHR( static_cast<VkDevice>( m_device ),
27839 static_cast<VkImage>( m_image ),
27840 reinterpret_cast<VkImageSubresource2 const *>( &subresource ),
27841 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
27842
27843 return layout;
27844 }
27845
27846 // wrapper function for command vkGetImageSubresourceLayout2KHR, see
27847 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2KHR.html
27848 template <typename X, typename Y, typename... Z>
27849 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
27850 Image::getSubresourceLayout2KHR( ImageSubresource2 const & subresource ) const VULKAN_HPP_NOEXCEPT
27851 {
27852 VULKAN_HPP_ASSERT(
27853 getDispatcher()->vkGetImageSubresourceLayout2KHR &&
27854 "Function <vkGetImageSubresourceLayout2KHR> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
27855
27856 StructureChain<X, Y, Z...> structureChain;
27857 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
27858 getDispatcher()->vkGetImageSubresourceLayout2KHR( static_cast<VkDevice>( m_device ),
27859 static_cast<VkImage>( m_image ),
27860 reinterpret_cast<VkImageSubresource2 const *>( &subresource ),
27861 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
27862
27863 return structureChain;
27864 }
27865
27866 //=== VK_AMD_anti_lag ===
27867
27868 // wrapper function for command vkAntiLagUpdateAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAntiLagUpdateAMD.html
27869 VULKAN_HPP_INLINE void Device::antiLagUpdateAMD( AntiLagDataAMD const & data ) const VULKAN_HPP_NOEXCEPT
27870 {
27871 VULKAN_HPP_ASSERT( getDispatcher()->vkAntiLagUpdateAMD && "Function <vkAntiLagUpdateAMD> requires <VK_AMD_anti_lag>" );
27872
27873 getDispatcher()->vkAntiLagUpdateAMD( static_cast<VkDevice>( m_device ), reinterpret_cast<VkAntiLagDataAMD const *>( &data ) );
27874 }
27875
27876 //=== VK_KHR_present_wait2 ===
27877
27878 // wrapper function for command vkWaitForPresent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForPresent2KHR.html
27879 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result SwapchainKHR::waitForPresent2( PresentWait2InfoKHR const & presentWait2Info ) const
27880 {
27881 VULKAN_HPP_ASSERT( getDispatcher()->vkWaitForPresent2KHR && "Function <vkWaitForPresent2KHR> requires <VK_KHR_present_wait2>" );
27882
27883 Result result = static_cast<Result>( getDispatcher()->vkWaitForPresent2KHR( static_cast<VkDevice>( m_device ),
27884 static_cast<VkSwapchainKHR>( m_swapchainKHR ),
27885 reinterpret_cast<VkPresentWait2InfoKHR const *>( &presentWait2Info ) ) );
27886
27887 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
27888 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
27889 VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::waitForPresent2",
27890 { Result::eSuccess, Result::eTimeout, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
27891 # else
27892 VULKAN_HPP_NAMESPACE::detail::resultCheck(
27893 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::waitForPresent2", { Result::eSuccess, Result::eTimeout, Result::eSuboptimalKHR } );
27894 # endif
27895
27896 return static_cast<Result>( result );
27897 }
27898
27899 //=== VK_EXT_shader_object ===
27900
27901 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
27902 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<ShaderEXT>>::type
27903 Device::createShadersEXT( ArrayProxy<ShaderCreateInfoEXT> const & createInfos, Optional<AllocationCallbacks const> allocator ) const
27904 {
27905 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
27906
27907 std::vector<VULKAN_HPP_NAMESPACE::ShaderEXT> shaders( createInfos.size() );
27908 Result result = static_cast<Result>( getDispatcher()->vkCreateShadersEXT( static_cast<VkDevice>( m_device ),
27909 createInfos.size(),
27910 reinterpret_cast<VkShaderCreateInfoEXT const *>( createInfos.data() ),
27911 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
27912 reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) );
27913 VULKAN_HPP_NAMESPACE::detail::resultCheck(
27914 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createShadersEXT", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
27915 std::vector<ShaderEXT> shadersRAII;
27916 if ( result == Result::eSuccess )
27917 {
27918 shadersRAII.reserve( shaders.size() );
27919 for ( auto & shader : shaders )
27920 {
27921 shadersRAII.emplace_back( *this, *reinterpret_cast<VkShaderEXT *>( &shader ), allocator, result );
27922 }
27923 }
27924 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( shadersRAII ) );
27925 }
27926
27927 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
27928 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ShaderEXT>::type
27929 Device::createShaderEXT( ShaderCreateInfoEXT const & createInfo,
27930 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
27931 {
27932 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
27933
27934 VULKAN_HPP_NAMESPACE::ShaderEXT shader;
27935 Result result = static_cast<Result>( getDispatcher()->vkCreateShadersEXT( static_cast<VkDevice>( m_device ),
27936 1,
27937 reinterpret_cast<VkShaderCreateInfoEXT const *>( &createInfo ),
27938 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
27939 reinterpret_cast<VkShaderEXT *>( &shader ) ) );
27940 VULKAN_HPP_NAMESPACE::detail::resultCheck(
27941 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createShaderEXT", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
27942 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, ShaderEXT( *this, *reinterpret_cast<VkShaderEXT *>( &shader ), allocator, result ) );
27943 }
27944
27945 // wrapper function for command vkGetShaderBinaryDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderBinaryDataEXT.html
27946 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t>>::type ShaderEXT::getBinaryData() const
27947 {
27948 VULKAN_HPP_ASSERT( getDispatcher()->vkGetShaderBinaryDataEXT && "Function <vkGetShaderBinaryDataEXT> requires <VK_EXT_shader_object>" );
27949
27950 std::vector<uint8_t> data;
27951 size_t dataSize;
27952 Result result;
27953 do
27954 {
27955 result = static_cast<Result>(
27956 getDispatcher()->vkGetShaderBinaryDataEXT( static_cast<VkDevice>( m_device ), static_cast<VkShaderEXT>( m_shaderEXT ), &dataSize, nullptr ) );
27957 if ( ( result == Result::eSuccess ) && dataSize )
27958 {
27959 data.resize( dataSize );
27960 result = static_cast<Result>( getDispatcher()->vkGetShaderBinaryDataEXT(
27961 static_cast<VkDevice>( m_device ), static_cast<VkShaderEXT>( m_shaderEXT ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
27962 }
27963 } while ( result == Result::eIncomplete );
27964 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::ShaderEXT::getBinaryData" );
27965 VULKAN_HPP_ASSERT( dataSize <= data.size() );
27966 if ( dataSize < data.size() )
27967 {
27968 data.resize( dataSize );
27969 }
27970 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data ) );
27971 }
27972
27973 // wrapper function for command vkCmdBindShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindShadersEXT.html
27974 VULKAN_HPP_INLINE void CommandBuffer::bindShadersEXT( ArrayProxy<ShaderStageFlagBits const> const & stages,
27975 ArrayProxy<VULKAN_HPP_NAMESPACE::ShaderEXT const> const & shaders ) const
27976 {
27977 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindShadersEXT && "Function <vkCmdBindShadersEXT> requires <VK_EXT_shader_object>" );
27978 # ifdef VULKAN_HPP_NO_EXCEPTIONS
27979 VULKAN_HPP_ASSERT( stages.size() == shaders.size() );
27980 # else
27981 if ( stages.size() != shaders.size() )
27982 {
27983 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindShadersEXT: stages.size() != shaders.size()" );
27984 }
27985 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
27986
27987 getDispatcher()->vkCmdBindShadersEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27988 stages.size(),
27989 reinterpret_cast<VkShaderStageFlagBits const *>( stages.data() ),
27990 reinterpret_cast<VkShaderEXT const *>( shaders.data() ) );
27991 }
27992
27993 // wrapper function for command vkCmdSetDepthClampRangeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClampRangeEXT.html
27994 VULKAN_HPP_INLINE void CommandBuffer::setDepthClampRangeEXT( DepthClampModeEXT depthClampMode,
27995 Optional<DepthClampRangeEXT const> depthClampRange ) const VULKAN_HPP_NOEXCEPT
27996 {
27997 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDepthClampRangeEXT &&
27998 "Function <vkCmdSetDepthClampRangeEXT> requires <VK_EXT_depth_clamp_control> or <VK_EXT_shader_object>" );
27999
28000 getDispatcher()->vkCmdSetDepthClampRangeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
28001 static_cast<VkDepthClampModeEXT>( depthClampMode ),
28002 reinterpret_cast<VkDepthClampRangeEXT const *>( depthClampRange.get() ) );
28003 }
28004
28005 //=== VK_KHR_pipeline_binary ===
28006
28007 // wrapper function for command vkCreatePipelineBinariesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html
28008 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PipelineBinaryKHR>>::type
28009 Device::createPipelineBinariesKHR( PipelineBinaryCreateInfoKHR const & createInfo, Optional<AllocationCallbacks const> allocator ) const
28010 {
28011 VULKAN_HPP_ASSERT( getDispatcher()->vkCreatePipelineBinariesKHR && "Function <vkCreatePipelineBinariesKHR> requires <VK_KHR_pipeline_binary>" );
28012
28013 std::vector<VULKAN_HPP_NAMESPACE::PipelineBinaryKHR> pipelineBinaries;
28014 PipelineBinaryHandlesInfoKHR binaries;
28015 Result result;
28016 if ( createInfo.pKeysAndDataInfo )
28017 {
28018 VULKAN_HPP_ASSERT( !createInfo.pipeline && !createInfo.pPipelineCreateInfo );
28019 pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount );
28020 binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount;
28021 binaries.pPipelineBinaries = pipelineBinaries.data();
28022 result = static_cast<Result>( getDispatcher()->vkCreatePipelineBinariesKHR( static_cast<VkDevice>( m_device ),
28023 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
28024 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28025 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
28026 }
28027 else
28028 {
28029 VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo );
28030 result = static_cast<Result>( getDispatcher()->vkCreatePipelineBinariesKHR( static_cast<VkDevice>( m_device ),
28031 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
28032 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28033 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
28034 if ( result == Result::eSuccess )
28035 {
28036 pipelineBinaries.resize( binaries.pipelineBinaryCount );
28037 binaries.pPipelineBinaries = pipelineBinaries.data();
28038 result = static_cast<Result>( getDispatcher()->vkCreatePipelineBinariesKHR( static_cast<VkDevice>( m_device ),
28039 reinterpret_cast<VkPipelineBinaryCreateInfoKHR const *>( &createInfo ),
28040 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28041 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
28042 }
28043 }
28044
28045 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
28046 VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createPipelineBinariesKHR",
28047 { Result::eSuccess, Result::eIncomplete, Result::ePipelineBinaryMissingKHR } );
28048 std::vector<PipelineBinaryKHR> pipelineBinariesRAII;
28049 if ( result == Result::eSuccess )
28050 {
28051 pipelineBinariesRAII.reserve( pipelineBinaries.size() );
28052 for ( auto & pipelineBinary : pipelineBinaries )
28053 {
28054 pipelineBinariesRAII.emplace_back( *this, *reinterpret_cast<VkPipelineBinaryKHR *>( &pipelineBinary ), allocator, result );
28055 }
28056 }
28057 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( pipelineBinariesRAII ) );
28058 }
28059
28060 // wrapper function for command vkGetPipelineKeyKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineKeyKHR.html
28061 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PipelineBinaryKeyKHR>::type
28062 Device::getPipelineKeyKHR( Optional<PipelineCreateInfoKHR const> pipelineCreateInfo ) const
28063 {
28064 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPipelineKeyKHR && "Function <vkGetPipelineKeyKHR> requires <VK_KHR_pipeline_binary>" );
28065
28066 PipelineBinaryKeyKHR pipelineKey;
28067 Result result = static_cast<Result>( getDispatcher()->vkGetPipelineKeyKHR( static_cast<VkDevice>( m_device ),
28068 reinterpret_cast<VkPipelineCreateInfoKHR const *>( pipelineCreateInfo.get() ),
28069 reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineKey ) ) );
28070 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getPipelineKeyKHR" );
28071
28072 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( pipelineKey ) );
28073 }
28074
28075 // wrapper function for command vkGetPipelineBinaryDataKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineBinaryDataKHR.html
28076 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<PipelineBinaryKeyKHR, std::vector<uint8_t>>>::type
28077 Device::getPipelineBinaryDataKHR( PipelineBinaryDataInfoKHR const & info ) const
28078 {
28079 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPipelineBinaryDataKHR && "Function <vkGetPipelineBinaryDataKHR> requires <VK_KHR_pipeline_binary>" );
28080
28081 std::pair<PipelineBinaryKeyKHR, std::vector<uint8_t>> data_;
28082 PipelineBinaryKeyKHR & pipelineBinaryKey = data_.first;
28083 std::vector<uint8_t> & pipelineBinaryData = data_.second;
28084 size_t pipelineBinaryDataSize;
28085 Result result = static_cast<Result>( getDispatcher()->vkGetPipelineBinaryDataKHR( static_cast<VkDevice>( m_device ),
28086 reinterpret_cast<VkPipelineBinaryDataInfoKHR const *>( &info ),
28087 reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineBinaryKey ),
28088 &pipelineBinaryDataSize,
28089 nullptr ) );
28090 if ( result == Result::eSuccess )
28091 {
28092 pipelineBinaryData.resize( pipelineBinaryDataSize );
28093 result = static_cast<Result>( getDispatcher()->vkGetPipelineBinaryDataKHR( static_cast<VkDevice>( m_device ),
28094 reinterpret_cast<VkPipelineBinaryDataInfoKHR const *>( &info ),
28095 reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineBinaryKey ),
28096 &pipelineBinaryDataSize,
28097 reinterpret_cast<void *>( pipelineBinaryData.data() ) ) );
28098 }
28099
28100 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getPipelineBinaryDataKHR" );
28101
28102 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data_ ) );
28103 }
28104
28105 // wrapper function for command vkReleaseCapturedPipelineDataKHR, see
28106 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseCapturedPipelineDataKHR.html
28107 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::releaseCapturedPipelineDataKHR( ReleaseCapturedPipelineDataInfoKHR const & info,
28108 Optional<AllocationCallbacks const> allocator ) const
28109 {
28110 VULKAN_HPP_ASSERT( getDispatcher()->vkReleaseCapturedPipelineDataKHR && "Function <vkReleaseCapturedPipelineDataKHR> requires <VK_KHR_pipeline_binary>" );
28111
28112 Result result =
28113 static_cast<Result>( getDispatcher()->vkReleaseCapturedPipelineDataKHR( static_cast<VkDevice>( m_device ),
28114 reinterpret_cast<VkReleaseCapturedPipelineDataInfoKHR const *>( &info ),
28115 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ) ) );
28116 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::releaseCapturedPipelineDataKHR" );
28117
28118 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
28119 }
28120
28121 //=== VK_QCOM_tile_properties ===
28122
28123 // wrapper function for command vkGetFramebufferTilePropertiesQCOM, see
28124 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFramebufferTilePropertiesQCOM.html
28125 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TilePropertiesQCOM>>::type Framebuffer::getTilePropertiesQCOM() const
28126 {
28127 VULKAN_HPP_ASSERT( getDispatcher()->vkGetFramebufferTilePropertiesQCOM &&
28128 "Function <vkGetFramebufferTilePropertiesQCOM> requires <VK_QCOM_tile_properties>" );
28129
28130 std::vector<TilePropertiesQCOM> properties;
28131 uint32_t propertiesCount;
28132 Result result;
28133 do
28134 {
28135 result = static_cast<Result>( getDispatcher()->vkGetFramebufferTilePropertiesQCOM(
28136 static_cast<VkDevice>( m_device ), static_cast<VkFramebuffer>( m_framebuffer ), &propertiesCount, nullptr ) );
28137 if ( ( result == Result::eSuccess ) && propertiesCount )
28138 {
28139 properties.resize( propertiesCount );
28140 result = static_cast<Result>( getDispatcher()->vkGetFramebufferTilePropertiesQCOM( static_cast<VkDevice>( m_device ),
28141 static_cast<VkFramebuffer>( m_framebuffer ),
28142 &propertiesCount,
28143 reinterpret_cast<VkTilePropertiesQCOM *>( properties.data() ) ) );
28144 }
28145 } while ( result == Result::eIncomplete );
28146 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Framebuffer::getTilePropertiesQCOM" );
28147 VULKAN_HPP_ASSERT( propertiesCount <= properties.size() );
28148 if ( propertiesCount < properties.size() )
28149 {
28150 properties.resize( propertiesCount );
28151 }
28152 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
28153 }
28154
28155 // wrapper function for command vkGetDynamicRenderingTilePropertiesQCOM, see
28156 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDynamicRenderingTilePropertiesQCOM.html
28157 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<TilePropertiesQCOM>::type
28158 Device::getDynamicRenderingTilePropertiesQCOM( RenderingInfo const & renderingInfo ) const
28159 {
28160 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDynamicRenderingTilePropertiesQCOM &&
28161 "Function <vkGetDynamicRenderingTilePropertiesQCOM> requires <VK_QCOM_tile_properties>" );
28162
28163 TilePropertiesQCOM properties;
28164 Result result =
28165 static_cast<Result>( getDispatcher()->vkGetDynamicRenderingTilePropertiesQCOM( static_cast<VkDevice>( m_device ),
28166 reinterpret_cast<VkRenderingInfo const *>( &renderingInfo ),
28167 reinterpret_cast<VkTilePropertiesQCOM *>( &properties ) ) );
28168 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getDynamicRenderingTilePropertiesQCOM" );
28169
28170 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
28171 }
28172
28173 //=== VK_KHR_swapchain_maintenance1 ===
28174
28175 // wrapper function for command vkReleaseSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseSwapchainImagesKHR.html
28176 VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::releaseSwapchainImagesKHR( ReleaseSwapchainImagesInfoKHR const & releaseInfo ) const
28177 {
28178 VULKAN_HPP_ASSERT( getDispatcher()->vkReleaseSwapchainImagesKHR &&
28179 "Function <vkReleaseSwapchainImagesKHR> requires <VK_EXT_swapchain_maintenance1> or <VK_KHR_swapchain_maintenance1>" );
28180
28181 Result result = static_cast<Result>( getDispatcher()->vkReleaseSwapchainImagesKHR(
28182 static_cast<VkDevice>( m_device ), reinterpret_cast<VkReleaseSwapchainImagesInfoKHR const *>( &releaseInfo ) ) );
28183 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::releaseSwapchainImagesKHR" );
28184
28185 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
28186 }
28187
28188 //=== VK_NV_cooperative_vector ===
28189
28190 // wrapper function for command vkGetPhysicalDeviceCooperativeVectorPropertiesNV, see
28191 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeVectorPropertiesNV.html
28192 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeVectorPropertiesNV>>::type
28193 PhysicalDevice::getCooperativeVectorPropertiesNV() const
28194 {
28195 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceCooperativeVectorPropertiesNV &&
28196 "Function <vkGetPhysicalDeviceCooperativeVectorPropertiesNV> requires <VK_NV_cooperative_vector>" );
28197
28198 std::vector<CooperativeVectorPropertiesNV> properties;
28199 uint32_t propertyCount;
28200 Result result;
28201 do
28202 {
28203 result = static_cast<Result>(
28204 getDispatcher()->vkGetPhysicalDeviceCooperativeVectorPropertiesNV( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, nullptr ) );
28205 if ( ( result == Result::eSuccess ) && propertyCount )
28206 {
28207 properties.resize( propertyCount );
28208 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceCooperativeVectorPropertiesNV(
28209 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkCooperativeVectorPropertiesNV *>( properties.data() ) ) );
28210 }
28211 } while ( result == Result::eIncomplete );
28212 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getCooperativeVectorPropertiesNV" );
28213 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
28214 if ( propertyCount < properties.size() )
28215 {
28216 properties.resize( propertyCount );
28217 }
28218 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
28219 }
28220
28221 // wrapper function for command vkConvertCooperativeVectorMatrixNV, see
28222 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkConvertCooperativeVectorMatrixNV.html
28223 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::convertCooperativeVectorMatrixNV( ConvertCooperativeVectorMatrixInfoNV const & info ) const
28224 {
28225 VULKAN_HPP_ASSERT( getDispatcher()->vkConvertCooperativeVectorMatrixNV &&
28226 "Function <vkConvertCooperativeVectorMatrixNV> requires <VK_NV_cooperative_vector>" );
28227
28228 Result result = static_cast<Result>( getDispatcher()->vkConvertCooperativeVectorMatrixNV(
28229 static_cast<VkDevice>( m_device ), reinterpret_cast<VkConvertCooperativeVectorMatrixInfoNV const *>( &info ) ) );
28230 VULKAN_HPP_NAMESPACE::detail::resultCheck(
28231 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::convertCooperativeVectorMatrixNV", { Result::eSuccess, Result::eIncomplete } );
28232
28233 return static_cast<Result>( result );
28234 }
28235
28236 // wrapper function for command vkCmdConvertCooperativeVectorMatrixNV, see
28237 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdConvertCooperativeVectorMatrixNV.html
28238 VULKAN_HPP_INLINE void
28239 CommandBuffer::convertCooperativeVectorMatrixNV( ArrayProxy<ConvertCooperativeVectorMatrixInfoNV const> const & infos ) const VULKAN_HPP_NOEXCEPT
28240 {
28241 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdConvertCooperativeVectorMatrixNV &&
28242 "Function <vkCmdConvertCooperativeVectorMatrixNV> requires <VK_NV_cooperative_vector>" );
28243
28244 getDispatcher()->vkCmdConvertCooperativeVectorMatrixNV(
28245 static_cast<VkCommandBuffer>( m_commandBuffer ), infos.size(), reinterpret_cast<VkConvertCooperativeVectorMatrixInfoNV const *>( infos.data() ) );
28246 }
28247
28248 //=== VK_NV_low_latency2 ===
28249
28250 // wrapper function for command vkSetLatencySleepModeNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencySleepModeNV.html
28251 VULKAN_HPP_INLINE typename ResultValueType<void>::type SwapchainKHR::setLatencySleepModeNV( LatencySleepModeInfoNV const & sleepModeInfo ) const
28252 {
28253 VULKAN_HPP_ASSERT( getDispatcher()->vkSetLatencySleepModeNV && "Function <vkSetLatencySleepModeNV> requires <VK_NV_low_latency2>" );
28254
28255 Result result = static_cast<Result>( getDispatcher()->vkSetLatencySleepModeNV( static_cast<VkDevice>( m_device ),
28256 static_cast<VkSwapchainKHR>( m_swapchainKHR ),
28257 reinterpret_cast<VkLatencySleepModeInfoNV const *>( &sleepModeInfo ) ) );
28258 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::setLatencySleepModeNV" );
28259
28260 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
28261 }
28262
28263 // wrapper function for command vkLatencySleepNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkLatencySleepNV.html
28264 VULKAN_HPP_INLINE typename ResultValueType<void>::type SwapchainKHR::latencySleepNV( LatencySleepInfoNV const & sleepInfo ) const
28265 {
28266 VULKAN_HPP_ASSERT( getDispatcher()->vkLatencySleepNV && "Function <vkLatencySleepNV> requires <VK_NV_low_latency2>" );
28267
28268 Result result = static_cast<Result>( getDispatcher()->vkLatencySleepNV(
28269 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchainKHR ), reinterpret_cast<VkLatencySleepInfoNV const *>( &sleepInfo ) ) );
28270 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::SwapchainKHR::latencySleepNV" );
28271
28272 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
28273 }
28274
28275 // wrapper function for command vkSetLatencyMarkerNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencyMarkerNV.html
28276 VULKAN_HPP_INLINE void SwapchainKHR::setLatencyMarkerNV( SetLatencyMarkerInfoNV const & latencyMarkerInfo ) const VULKAN_HPP_NOEXCEPT
28277 {
28278 VULKAN_HPP_ASSERT( getDispatcher()->vkSetLatencyMarkerNV && "Function <vkSetLatencyMarkerNV> requires <VK_NV_low_latency2>" );
28279
28280 getDispatcher()->vkSetLatencyMarkerNV( static_cast<VkDevice>( m_device ),
28281 static_cast<VkSwapchainKHR>( m_swapchainKHR ),
28282 reinterpret_cast<VkSetLatencyMarkerInfoNV const *>( &latencyMarkerInfo ) );
28283 }
28284
28285 // wrapper function for command vkGetLatencyTimingsNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsNV.html
28286 VULKAN_HPP_INLINE void SwapchainKHR::getLatencyTimingsNV( GetLatencyMarkerInfoNV * pLatencyMarkerInfo ) const VULKAN_HPP_NOEXCEPT
28287 {
28288 VULKAN_HPP_ASSERT( getDispatcher()->vkGetLatencyTimingsNV && "Function <vkGetLatencyTimingsNV> requires <VK_NV_low_latency2>" );
28289 getDispatcher()->vkGetLatencyTimingsNV(
28290 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( m_swapchainKHR ), reinterpret_cast<VkGetLatencyMarkerInfoNV *>( pLatencyMarkerInfo ) );
28291 }
28292
28293 // wrapper function for command vkQueueNotifyOutOfBandNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueNotifyOutOfBandNV.html
28294 VULKAN_HPP_INLINE void Queue::notifyOutOfBandNV( OutOfBandQueueTypeInfoNV const & queueTypeInfo ) const VULKAN_HPP_NOEXCEPT
28295 {
28296 VULKAN_HPP_ASSERT( getDispatcher()->vkQueueNotifyOutOfBandNV && "Function <vkQueueNotifyOutOfBandNV> requires <VK_NV_low_latency2>" );
28297
28298 getDispatcher()->vkQueueNotifyOutOfBandNV( static_cast<VkQueue>( m_queue ), reinterpret_cast<VkOutOfBandQueueTypeInfoNV const *>( &queueTypeInfo ) );
28299 }
28300
28301 //=== VK_KHR_cooperative_matrix ===
28302
28303 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR, see
28304 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR.html
28305 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeMatrixPropertiesKHR>>::type
28306 PhysicalDevice::getCooperativeMatrixPropertiesKHR() const
28307 {
28308 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR &&
28309 "Function <vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR> requires <VK_KHR_cooperative_matrix>" );
28310
28311 std::vector<CooperativeMatrixPropertiesKHR> properties;
28312 uint32_t propertyCount;
28313 Result result;
28314 do
28315 {
28316 result = static_cast<Result>(
28317 getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, nullptr ) );
28318 if ( ( result == Result::eSuccess ) && propertyCount )
28319 {
28320 properties.resize( propertyCount );
28321 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR(
28322 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesKHR *>( properties.data() ) ) );
28323 }
28324 } while ( result == Result::eIncomplete );
28325 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesKHR" );
28326 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
28327 if ( propertyCount < properties.size() )
28328 {
28329 properties.resize( propertyCount );
28330 }
28331 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
28332 }
28333
28334 //=== VK_ARM_data_graph ===
28335
28336 // wrapper function for command vkCreateDataGraphPipelinesARM, see
28337 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
28338 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Pipeline>>::type
28339 Device::createDataGraphPipelinesARM( Optional<DeferredOperationKHR const> const & deferredOperation,
28340 Optional<PipelineCache const> const & pipelineCache,
28341 ArrayProxy<DataGraphPipelineCreateInfoARM> const & createInfos,
28342 Optional<AllocationCallbacks const> allocator ) const
28343 {
28344 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
28345
28346 std::vector<VULKAN_HPP_NAMESPACE::Pipeline> pipelines( createInfos.size() );
28347 Result result =
28348 static_cast<Result>( getDispatcher()->vkCreateDataGraphPipelinesARM( static_cast<VkDevice>( m_device ),
28349 deferredOperation ? static_cast<VkDeferredOperationKHR>( **deferredOperation ) : 0,
28350 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
28351 createInfos.size(),
28352 reinterpret_cast<VkDataGraphPipelineCreateInfoARM const *>( createInfos.data() ),
28353 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28354 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
28355 VULKAN_HPP_NAMESPACE::detail::resultCheck(
28356 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createDataGraphPipelinesARM", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
28357 std::vector<Pipeline> pipelinesRAII;
28358 if ( result == Result::eSuccess )
28359 {
28360 pipelinesRAII.reserve( pipelines.size() );
28361 for ( auto & pipeline : pipelines )
28362 {
28363 pipelinesRAII.emplace_back( *this, *reinterpret_cast<VkPipeline *>( &pipeline ), allocator, result );
28364 }
28365 }
28366 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( pipelinesRAII ) );
28367 }
28368
28369 // wrapper function for command vkCreateDataGraphPipelinesARM, see
28370 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
28371 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Pipeline>::type
28372 Device::createDataGraphPipelineARM( Optional<DeferredOperationKHR const> const & deferredOperation,
28373 Optional<PipelineCache const> const & pipelineCache,
28374 DataGraphPipelineCreateInfoARM const & createInfo,
28375 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
28376 {
28377 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
28378
28379 VULKAN_HPP_NAMESPACE::Pipeline pipeline;
28380 Result result =
28381 static_cast<Result>( getDispatcher()->vkCreateDataGraphPipelinesARM( static_cast<VkDevice>( m_device ),
28382 deferredOperation ? static_cast<VkDeferredOperationKHR>( **deferredOperation ) : 0,
28383 pipelineCache ? static_cast<VkPipelineCache>( **pipelineCache ) : 0,
28384 1,
28385 reinterpret_cast<VkDataGraphPipelineCreateInfoARM const *>( &createInfo ),
28386 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28387 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
28388 VULKAN_HPP_NAMESPACE::detail::resultCheck(
28389 result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createDataGraphPipelineARM", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
28390 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, Pipeline( *this, *reinterpret_cast<VkPipeline *>( &pipeline ), allocator, result ) );
28391 }
28392
28393 // wrapper function for command vkCreateDataGraphPipelineSessionARM, see
28394 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelineSessionARM.html
28395 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataGraphPipelineSessionARM>::type
28396 Device::createDataGraphPipelineSessionARM( DataGraphPipelineSessionCreateInfoARM const & createInfo,
28397 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
28398 {
28399 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateDataGraphPipelineSessionARM &&
28400 "Function <vkCreateDataGraphPipelineSessionARM> requires <VK_ARM_data_graph>" );
28401
28402 VULKAN_HPP_NAMESPACE::DataGraphPipelineSessionARM session;
28403 Result result = static_cast<Result>(
28404 getDispatcher()->vkCreateDataGraphPipelineSessionARM( static_cast<VkDevice>( m_device ),
28405 reinterpret_cast<VkDataGraphPipelineSessionCreateInfoARM const *>( &createInfo ),
28406 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28407 reinterpret_cast<VkDataGraphPipelineSessionARM *>( &session ) ) );
28408 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createDataGraphPipelineSessionARM" );
28409 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
28410 result, DataGraphPipelineSessionARM( *this, *reinterpret_cast<VkDataGraphPipelineSessionARM *>( &session ), allocator ) );
28411 }
28412
28413 // wrapper function for command vkGetDataGraphPipelineSessionBindPointRequirementsARM, see
28414 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionBindPointRequirementsARM.html
28415 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataGraphPipelineSessionBindPointRequirementARM>>::type
28416 Device::getDataGraphPipelineSessionBindPointRequirementsARM( DataGraphPipelineSessionBindPointRequirementsInfoARM const & info ) const
28417 {
28418 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDataGraphPipelineSessionBindPointRequirementsARM &&
28419 "Function <vkGetDataGraphPipelineSessionBindPointRequirementsARM> requires <VK_ARM_data_graph>" );
28420
28421 std::vector<DataGraphPipelineSessionBindPointRequirementARM> bindPointRequirements;
28422 uint32_t bindPointRequirementCount;
28423 Result result;
28424 do
28425 {
28426 result = static_cast<Result>( getDispatcher()->vkGetDataGraphPipelineSessionBindPointRequirementsARM(
28427 static_cast<VkDevice>( m_device ),
28428 reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementsInfoARM const *>( &info ),
28429 &bindPointRequirementCount,
28430 nullptr ) );
28431 if ( ( result == Result::eSuccess ) && bindPointRequirementCount )
28432 {
28433 bindPointRequirements.resize( bindPointRequirementCount );
28434 result = static_cast<Result>( getDispatcher()->vkGetDataGraphPipelineSessionBindPointRequirementsARM(
28435 static_cast<VkDevice>( m_device ),
28436 reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementsInfoARM const *>( &info ),
28437 &bindPointRequirementCount,
28438 reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementARM *>( bindPointRequirements.data() ) ) );
28439 }
28440 } while ( result == Result::eIncomplete );
28441 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getDataGraphPipelineSessionBindPointRequirementsARM" );
28442 VULKAN_HPP_ASSERT( bindPointRequirementCount <= bindPointRequirements.size() );
28443 if ( bindPointRequirementCount < bindPointRequirements.size() )
28444 {
28445 bindPointRequirements.resize( bindPointRequirementCount );
28446 }
28447 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( bindPointRequirements ) );
28448 }
28449
28450 // wrapper function for command vkGetDataGraphPipelineSessionMemoryRequirementsARM, see
28451 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionMemoryRequirementsARM.html
28452 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
28453 Device::getDataGraphPipelineSessionMemoryRequirementsARM( DataGraphPipelineSessionMemoryRequirementsInfoARM const & info ) const VULKAN_HPP_NOEXCEPT
28454 {
28455 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDataGraphPipelineSessionMemoryRequirementsARM &&
28456 "Function <vkGetDataGraphPipelineSessionMemoryRequirementsARM> requires <VK_ARM_data_graph>" );
28457
28458 MemoryRequirements2 memoryRequirements;
28459 getDispatcher()->vkGetDataGraphPipelineSessionMemoryRequirementsARM(
28460 static_cast<VkDevice>( m_device ),
28461 reinterpret_cast<VkDataGraphPipelineSessionMemoryRequirementsInfoARM const *>( &info ),
28462 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
28463
28464 return memoryRequirements;
28465 }
28466
28467 // wrapper function for command vkGetDataGraphPipelineSessionMemoryRequirementsARM, see
28468 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionMemoryRequirementsARM.html
28469 template <typename X, typename Y, typename... Z>
28470 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
28471 Device::getDataGraphPipelineSessionMemoryRequirementsARM( DataGraphPipelineSessionMemoryRequirementsInfoARM const & info ) const VULKAN_HPP_NOEXCEPT
28472 {
28473 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDataGraphPipelineSessionMemoryRequirementsARM &&
28474 "Function <vkGetDataGraphPipelineSessionMemoryRequirementsARM> requires <VK_ARM_data_graph>" );
28475
28476 StructureChain<X, Y, Z...> structureChain;
28477 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
28478 getDispatcher()->vkGetDataGraphPipelineSessionMemoryRequirementsARM(
28479 static_cast<VkDevice>( m_device ),
28480 reinterpret_cast<VkDataGraphPipelineSessionMemoryRequirementsInfoARM const *>( &info ),
28481 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
28482
28483 return structureChain;
28484 }
28485
28486 // wrapper function for command vkBindDataGraphPipelineSessionMemoryARM, see
28487 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindDataGraphPipelineSessionMemoryARM.html
28488 VULKAN_HPP_INLINE typename ResultValueType<void>::type
28489 Device::bindDataGraphPipelineSessionMemoryARM( ArrayProxy<BindDataGraphPipelineSessionMemoryInfoARM const> const & bindInfos ) const
28490 {
28491 VULKAN_HPP_ASSERT( getDispatcher()->vkBindDataGraphPipelineSessionMemoryARM &&
28492 "Function <vkBindDataGraphPipelineSessionMemoryARM> requires <VK_ARM_data_graph>" );
28493
28494 Result result = static_cast<Result>( getDispatcher()->vkBindDataGraphPipelineSessionMemoryARM(
28495 static_cast<VkDevice>( m_device ), bindInfos.size(), reinterpret_cast<VkBindDataGraphPipelineSessionMemoryInfoARM const *>( bindInfos.data() ) ) );
28496 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::bindDataGraphPipelineSessionMemoryARM" );
28497
28498 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result );
28499 }
28500
28501 // wrapper function for command vkCmdDispatchDataGraphARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchDataGraphARM.html
28502 VULKAN_HPP_INLINE void CommandBuffer::dispatchDataGraphARM( VULKAN_HPP_NAMESPACE::DataGraphPipelineSessionARM session,
28503 Optional<DataGraphPipelineDispatchInfoARM const> info ) const VULKAN_HPP_NOEXCEPT
28504 {
28505 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDispatchDataGraphARM && "Function <vkCmdDispatchDataGraphARM> requires <VK_ARM_data_graph>" );
28506
28507 getDispatcher()->vkCmdDispatchDataGraphARM( static_cast<VkCommandBuffer>( m_commandBuffer ),
28508 static_cast<VkDataGraphPipelineSessionARM>( session ),
28509 reinterpret_cast<VkDataGraphPipelineDispatchInfoARM const *>( info.get() ) );
28510 }
28511
28512 // wrapper function for command vkGetDataGraphPipelineAvailablePropertiesARM, see
28513 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineAvailablePropertiesARM.html
28514 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataGraphPipelinePropertyARM>>::type
28515 Device::getDataGraphPipelineAvailablePropertiesARM( DataGraphPipelineInfoARM const & pipelineInfo ) const
28516 {
28517 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDataGraphPipelineAvailablePropertiesARM &&
28518 "Function <vkGetDataGraphPipelineAvailablePropertiesARM> requires <VK_ARM_data_graph>" );
28519
28520 std::vector<DataGraphPipelinePropertyARM> properties;
28521 uint32_t propertiesCount;
28522 Result result;
28523 do
28524 {
28525 result = static_cast<Result>( getDispatcher()->vkGetDataGraphPipelineAvailablePropertiesARM(
28526 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDataGraphPipelineInfoARM const *>( &pipelineInfo ), &propertiesCount, nullptr ) );
28527 if ( ( result == Result::eSuccess ) && propertiesCount )
28528 {
28529 properties.resize( propertiesCount );
28530 result = static_cast<Result>(
28531 getDispatcher()->vkGetDataGraphPipelineAvailablePropertiesARM( static_cast<VkDevice>( m_device ),
28532 reinterpret_cast<VkDataGraphPipelineInfoARM const *>( &pipelineInfo ),
28533 &propertiesCount,
28534 reinterpret_cast<VkDataGraphPipelinePropertyARM *>( properties.data() ) ) );
28535 }
28536 } while ( result == Result::eIncomplete );
28537 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getDataGraphPipelineAvailablePropertiesARM" );
28538 VULKAN_HPP_ASSERT( propertiesCount <= properties.size() );
28539 if ( propertiesCount < properties.size() )
28540 {
28541 properties.resize( propertiesCount );
28542 }
28543 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
28544 }
28545
28546 // wrapper function for command vkGetDataGraphPipelinePropertiesARM, see
28547 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelinePropertiesARM.html
28548 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
28549 Device::getDataGraphPipelinePropertiesARM( DataGraphPipelineInfoARM const * pPipelineInfo,
28550 uint32_t propertiesCount,
28551 DataGraphPipelinePropertyQueryResultARM * pProperties ) const VULKAN_HPP_NOEXCEPT
28552 {
28553 VULKAN_HPP_ASSERT( getDispatcher()->vkGetDataGraphPipelinePropertiesARM &&
28554 "Function <vkGetDataGraphPipelinePropertiesARM> requires <VK_ARM_data_graph>" );
28555 return static_cast<Result>(
28556 getDispatcher()->vkGetDataGraphPipelinePropertiesARM( static_cast<VkDevice>( m_device ),
28557 reinterpret_cast<VkDataGraphPipelineInfoARM const *>( pPipelineInfo ),
28558 propertiesCount,
28559 reinterpret_cast<VkDataGraphPipelinePropertyQueryResultARM *>( pProperties ) ) );
28560 }
28561
28562 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM, see
28563 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM.html
28564 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<QueueFamilyDataGraphPropertiesARM>>::type
28565 PhysicalDevice::getQueueFamilyDataGraphPropertiesARM( uint32_t queueFamilyIndex ) const
28566 {
28567 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM &&
28568 "Function <vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM> requires <VK_ARM_data_graph>" );
28569
28570 std::vector<QueueFamilyDataGraphPropertiesARM> queueFamilyDataGraphProperties;
28571 uint32_t queueFamilyDataGraphPropertyCount;
28572 Result result;
28573 do
28574 {
28575 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM(
28576 static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &queueFamilyDataGraphPropertyCount, nullptr ) );
28577 if ( ( result == Result::eSuccess ) && queueFamilyDataGraphPropertyCount )
28578 {
28579 queueFamilyDataGraphProperties.resize( queueFamilyDataGraphPropertyCount );
28580 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM(
28581 static_cast<VkPhysicalDevice>( m_physicalDevice ),
28582 queueFamilyIndex,
28583 &queueFamilyDataGraphPropertyCount,
28584 reinterpret_cast<VkQueueFamilyDataGraphPropertiesARM *>( queueFamilyDataGraphProperties.data() ) ) );
28585 }
28586 } while ( result == Result::eIncomplete );
28587 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getQueueFamilyDataGraphPropertiesARM" );
28588 VULKAN_HPP_ASSERT( queueFamilyDataGraphPropertyCount <= queueFamilyDataGraphProperties.size() );
28589 if ( queueFamilyDataGraphPropertyCount < queueFamilyDataGraphProperties.size() )
28590 {
28591 queueFamilyDataGraphProperties.resize( queueFamilyDataGraphPropertyCount );
28592 }
28593 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( queueFamilyDataGraphProperties ) );
28594 }
28595
28596 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM, see
28597 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM.html
28598 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE QueueFamilyDataGraphProcessingEnginePropertiesARM
28599 PhysicalDevice::getQueueFamilyDataGraphProcessingEnginePropertiesARM(
28600 PhysicalDeviceQueueFamilyDataGraphProcessingEngineInfoARM const & queueFamilyDataGraphProcessingEngineInfo ) const VULKAN_HPP_NOEXCEPT
28601 {
28602 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM &&
28603 "Function <vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM> requires <VK_ARM_data_graph>" );
28604
28605 QueueFamilyDataGraphProcessingEnginePropertiesARM queueFamilyDataGraphProcessingEngineProperties;
28606 getDispatcher()->vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM(
28607 static_cast<VkPhysicalDevice>( m_physicalDevice ),
28608 reinterpret_cast<VkPhysicalDeviceQueueFamilyDataGraphProcessingEngineInfoARM const *>( &queueFamilyDataGraphProcessingEngineInfo ),
28609 reinterpret_cast<VkQueueFamilyDataGraphProcessingEnginePropertiesARM *>( &queueFamilyDataGraphProcessingEngineProperties ) );
28610
28611 return queueFamilyDataGraphProcessingEngineProperties;
28612 }
28613
28614 //=== VK_EXT_attachment_feedback_loop_dynamic_state ===
28615
28616 // wrapper function for command vkCmdSetAttachmentFeedbackLoopEnableEXT, see
28617 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetAttachmentFeedbackLoopEnableEXT.html
28618 VULKAN_HPP_INLINE void CommandBuffer::setAttachmentFeedbackLoopEnableEXT( ImageAspectFlags aspectMask ) const VULKAN_HPP_NOEXCEPT
28619 {
28620 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetAttachmentFeedbackLoopEnableEXT &&
28621 "Function <vkCmdSetAttachmentFeedbackLoopEnableEXT> requires <VK_EXT_attachment_feedback_loop_dynamic_state>" );
28622
28623 getDispatcher()->vkCmdSetAttachmentFeedbackLoopEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
28624 static_cast<VkImageAspectFlags>( aspectMask ) );
28625 }
28626
28627 # if defined( VK_USE_PLATFORM_SCREEN_QNX )
28628 //=== VK_QNX_external_memory_screen_buffer ===
28629
28630 // wrapper function for command vkGetScreenBufferPropertiesQNX, see
28631 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html
28632 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ScreenBufferPropertiesQNX>::type
28633 Device::getScreenBufferPropertiesQNX( struct _screen_buffer const & buffer ) const
28634 {
28635 VULKAN_HPP_ASSERT( getDispatcher()->vkGetScreenBufferPropertiesQNX &&
28636 "Function <vkGetScreenBufferPropertiesQNX> requires <VK_QNX_external_memory_screen_buffer>" );
28637
28638 ScreenBufferPropertiesQNX properties;
28639 Result result = static_cast<Result>( getDispatcher()->vkGetScreenBufferPropertiesQNX(
28640 static_cast<VkDevice>( m_device ), &buffer, reinterpret_cast<VkScreenBufferPropertiesQNX *>( &properties ) ) );
28641 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" );
28642
28643 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
28644 }
28645
28646 // wrapper function for command vkGetScreenBufferPropertiesQNX, see
28647 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html
28648 template <typename X, typename Y, typename... Z>
28649 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
28650 Device::getScreenBufferPropertiesQNX( struct _screen_buffer const & buffer ) const
28651 {
28652 VULKAN_HPP_ASSERT( getDispatcher()->vkGetScreenBufferPropertiesQNX &&
28653 "Function <vkGetScreenBufferPropertiesQNX> requires <VK_QNX_external_memory_screen_buffer>" );
28654
28655 StructureChain<X, Y, Z...> structureChain;
28656 ScreenBufferPropertiesQNX & properties = structureChain.template get<ScreenBufferPropertiesQNX>();
28657 Result result = static_cast<Result>( getDispatcher()->vkGetScreenBufferPropertiesQNX(
28658 static_cast<VkDevice>( m_device ), &buffer, reinterpret_cast<VkScreenBufferPropertiesQNX *>( &properties ) ) );
28659 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" );
28660
28661 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( structureChain ) );
28662 }
28663 # endif /*VK_USE_PLATFORM_SCREEN_QNX*/
28664
28665 //=== VK_KHR_line_rasterization ===
28666
28667 // wrapper function for command vkCmdSetLineStippleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStippleKHR.html
28668 VULKAN_HPP_INLINE void CommandBuffer::setLineStippleKHR( uint32_t lineStippleFactor, uint16_t lineStipplePattern ) const VULKAN_HPP_NOEXCEPT
28669 {
28670 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetLineStippleKHR &&
28671 "Function <vkCmdSetLineStippleKHR> requires <VK_EXT_line_rasterization> or <VK_KHR_line_rasterization> or <VK_VERSION_1_4>" );
28672
28673 getDispatcher()->vkCmdSetLineStippleKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), lineStippleFactor, lineStipplePattern );
28674 }
28675
28676 //=== VK_KHR_calibrated_timestamps ===
28677
28678 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsKHR, see
28679 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsKHR.html
28680 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TimeDomainKHR>>::type PhysicalDevice::getCalibrateableTimeDomainsKHR() const
28681 {
28682 VULKAN_HPP_ASSERT(
28683 getDispatcher()->vkGetPhysicalDeviceCalibrateableTimeDomainsKHR &&
28684 "Function <vkGetPhysicalDeviceCalibrateableTimeDomainsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
28685
28686 std::vector<TimeDomainKHR> timeDomains;
28687 uint32_t timeDomainCount;
28688 Result result;
28689 do
28690 {
28691 result = static_cast<Result>(
28692 getDispatcher()->vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), &timeDomainCount, nullptr ) );
28693 if ( ( result == Result::eSuccess ) && timeDomainCount )
28694 {
28695 timeDomains.resize( timeDomainCount );
28696 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceCalibrateableTimeDomainsKHR(
28697 static_cast<VkPhysicalDevice>( m_physicalDevice ), &timeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( timeDomains.data() ) ) );
28698 }
28699 } while ( result == Result::eIncomplete );
28700 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsKHR" );
28701 VULKAN_HPP_ASSERT( timeDomainCount <= timeDomains.size() );
28702 if ( timeDomainCount < timeDomains.size() )
28703 {
28704 timeDomains.resize( timeDomainCount );
28705 }
28706 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( timeDomains ) );
28707 }
28708
28709 // wrapper function for command vkGetCalibratedTimestampsKHR, see
28710 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsKHR.html
28711 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<std::vector<uint64_t>, uint64_t>>::type
28712 Device::getCalibratedTimestampsKHR( ArrayProxy<CalibratedTimestampInfoKHR const> const & timestampInfos ) const
28713 {
28714 VULKAN_HPP_ASSERT( getDispatcher()->vkGetCalibratedTimestampsKHR &&
28715 "Function <vkGetCalibratedTimestampsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
28716
28717 std::pair<std::vector<uint64_t>, uint64_t> data_( std::piecewise_construct, std::forward_as_tuple( timestampInfos.size() ), std::forward_as_tuple( 0 ) );
28718 std::vector<uint64_t> & timestamps = data_.first;
28719 uint64_t & maxDeviation = data_.second;
28720 Result result =
28721 static_cast<Result>( getDispatcher()->vkGetCalibratedTimestampsKHR( static_cast<VkDevice>( m_device ),
28722 timestampInfos.size(),
28723 reinterpret_cast<VkCalibratedTimestampInfoKHR const *>( timestampInfos.data() ),
28724 timestamps.data(),
28725 &maxDeviation ) );
28726 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getCalibratedTimestampsKHR" );
28727
28728 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data_ ) );
28729 }
28730
28731 // wrapper function for command vkGetCalibratedTimestampsKHR, see
28732 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsKHR.html
28733 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<uint64_t, uint64_t>>::type
28734 Device::getCalibratedTimestampKHR( CalibratedTimestampInfoKHR const & timestampInfo ) const
28735 {
28736 VULKAN_HPP_ASSERT( getDispatcher()->vkGetCalibratedTimestampsKHR &&
28737 "Function <vkGetCalibratedTimestampsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
28738
28739 std::pair<uint64_t, uint64_t> data_;
28740 uint64_t & timestamp = data_.first;
28741 uint64_t & maxDeviation = data_.second;
28742 Result result = static_cast<Result>( getDispatcher()->vkGetCalibratedTimestampsKHR(
28743 static_cast<VkDevice>( m_device ), 1, reinterpret_cast<VkCalibratedTimestampInfoKHR const *>( &timestampInfo ), &timestamp, &maxDeviation ) );
28744 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getCalibratedTimestampKHR" );
28745
28746 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data_ ) );
28747 }
28748
28749 //=== VK_KHR_maintenance6 ===
28750
28751 // wrapper function for command vkCmdBindDescriptorSets2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets2KHR.html
28752 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets2KHR( BindDescriptorSetsInfo const & bindDescriptorSetsInfo ) const VULKAN_HPP_NOEXCEPT
28753 {
28754 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindDescriptorSets2KHR &&
28755 "Function <vkCmdBindDescriptorSets2KHR> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
28756
28757 getDispatcher()->vkCmdBindDescriptorSets2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
28758 reinterpret_cast<VkBindDescriptorSetsInfo const *>( &bindDescriptorSetsInfo ) );
28759 }
28760
28761 // wrapper function for command vkCmdPushConstants2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants2KHR.html
28762 VULKAN_HPP_INLINE void CommandBuffer::pushConstants2KHR( PushConstantsInfo const & pushConstantsInfo ) const VULKAN_HPP_NOEXCEPT
28763 {
28764 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPushConstants2KHR && "Function <vkCmdPushConstants2KHR> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
28765
28766 getDispatcher()->vkCmdPushConstants2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
28767 reinterpret_cast<VkPushConstantsInfo const *>( &pushConstantsInfo ) );
28768 }
28769
28770 // wrapper function for command vkCmdPushDescriptorSet2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet2KHR.html
28771 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet2KHR( PushDescriptorSetInfo const & pushDescriptorSetInfo ) const VULKAN_HPP_NOEXCEPT
28772 {
28773 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPushDescriptorSet2KHR &&
28774 "Function <vkCmdPushDescriptorSet2KHR> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
28775
28776 getDispatcher()->vkCmdPushDescriptorSet2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
28777 reinterpret_cast<VkPushDescriptorSetInfo const *>( &pushDescriptorSetInfo ) );
28778 }
28779
28780 // wrapper function for command vkCmdPushDescriptorSetWithTemplate2KHR, see
28781 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate2KHR.html
28782 VULKAN_HPP_INLINE void
28783 CommandBuffer::pushDescriptorSetWithTemplate2KHR( PushDescriptorSetWithTemplateInfo const & pushDescriptorSetWithTemplateInfo ) const VULKAN_HPP_NOEXCEPT
28784 {
28785 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPushDescriptorSetWithTemplate2KHR &&
28786 "Function <vkCmdPushDescriptorSetWithTemplate2KHR> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
28787
28788 getDispatcher()->vkCmdPushDescriptorSetWithTemplate2KHR(
28789 static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkPushDescriptorSetWithTemplateInfo const *>( &pushDescriptorSetWithTemplateInfo ) );
28790 }
28791
28792 // wrapper function for command vkCmdSetDescriptorBufferOffsets2EXT, see
28793 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDescriptorBufferOffsets2EXT.html
28794 VULKAN_HPP_INLINE void
28795 CommandBuffer::setDescriptorBufferOffsets2EXT( SetDescriptorBufferOffsetsInfoEXT const & setDescriptorBufferOffsetsInfo ) const VULKAN_HPP_NOEXCEPT
28796 {
28797 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetDescriptorBufferOffsets2EXT &&
28798 "Function <vkCmdSetDescriptorBufferOffsets2EXT> requires <VK_KHR_maintenance6>" );
28799
28800 getDispatcher()->vkCmdSetDescriptorBufferOffsets2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
28801 reinterpret_cast<VkSetDescriptorBufferOffsetsInfoEXT const *>( &setDescriptorBufferOffsetsInfo ) );
28802 }
28803
28804 // wrapper function for command vkCmdBindDescriptorBufferEmbeddedSamplers2EXT, see
28805 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBufferEmbeddedSamplers2EXT.html
28806 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorBufferEmbeddedSamplers2EXT(
28807 BindDescriptorBufferEmbeddedSamplersInfoEXT const & bindDescriptorBufferEmbeddedSamplersInfo ) const VULKAN_HPP_NOEXCEPT
28808 {
28809 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindDescriptorBufferEmbeddedSamplers2EXT &&
28810 "Function <vkCmdBindDescriptorBufferEmbeddedSamplers2EXT> requires <VK_KHR_maintenance6>" );
28811
28812 getDispatcher()->vkCmdBindDescriptorBufferEmbeddedSamplers2EXT(
28813 static_cast<VkCommandBuffer>( m_commandBuffer ),
28814 reinterpret_cast<VkBindDescriptorBufferEmbeddedSamplersInfoEXT const *>( &bindDescriptorBufferEmbeddedSamplersInfo ) );
28815 }
28816
28817 //=== VK_QCOM_tile_memory_heap ===
28818
28819 // wrapper function for command vkCmdBindTileMemoryQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTileMemoryQCOM.html
28820 VULKAN_HPP_INLINE void CommandBuffer::bindTileMemoryQCOM( Optional<TileMemoryBindInfoQCOM const> tileMemoryBindInfo ) const VULKAN_HPP_NOEXCEPT
28821 {
28822 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBindTileMemoryQCOM && "Function <vkCmdBindTileMemoryQCOM> requires <VK_QCOM_tile_memory_heap>" );
28823
28824 getDispatcher()->vkCmdBindTileMemoryQCOM( static_cast<VkCommandBuffer>( m_commandBuffer ),
28825 reinterpret_cast<VkTileMemoryBindInfoQCOM const *>( tileMemoryBindInfo.get() ) );
28826 }
28827
28828 //=== VK_KHR_copy_memory_indirect ===
28829
28830 // wrapper function for command vkCmdCopyMemoryIndirectKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryIndirectKHR.html
28831 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryIndirectKHR( CopyMemoryIndirectInfoKHR const & copyMemoryIndirectInfo ) const VULKAN_HPP_NOEXCEPT
28832 {
28833 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyMemoryIndirectKHR && "Function <vkCmdCopyMemoryIndirectKHR> requires <VK_KHR_copy_memory_indirect>" );
28834
28835 getDispatcher()->vkCmdCopyMemoryIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
28836 reinterpret_cast<VkCopyMemoryIndirectInfoKHR const *>( &copyMemoryIndirectInfo ) );
28837 }
28838
28839 // wrapper function for command vkCmdCopyMemoryToImageIndirectKHR, see
28840 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageIndirectKHR.html
28841 VULKAN_HPP_INLINE void
28842 CommandBuffer::copyMemoryToImageIndirectKHR( CopyMemoryToImageIndirectInfoKHR const & copyMemoryToImageIndirectInfo ) const VULKAN_HPP_NOEXCEPT
28843 {
28844 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdCopyMemoryToImageIndirectKHR &&
28845 "Function <vkCmdCopyMemoryToImageIndirectKHR> requires <VK_KHR_copy_memory_indirect>" );
28846
28847 getDispatcher()->vkCmdCopyMemoryToImageIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
28848 reinterpret_cast<VkCopyMemoryToImageIndirectInfoKHR const *>( &copyMemoryToImageIndirectInfo ) );
28849 }
28850
28851 //=== VK_EXT_memory_decompression ===
28852
28853 // wrapper function for command vkCmdDecompressMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryEXT.html
28854 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryEXT( DecompressMemoryInfoEXT const & decompressMemoryInfoEXT ) const VULKAN_HPP_NOEXCEPT
28855 {
28856 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDecompressMemoryEXT && "Function <vkCmdDecompressMemoryEXT> requires <VK_EXT_memory_decompression>" );
28857
28858 getDispatcher()->vkCmdDecompressMemoryEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
28859 reinterpret_cast<VkDecompressMemoryInfoEXT const *>( &decompressMemoryInfoEXT ) );
28860 }
28861
28862 // wrapper function for command vkCmdDecompressMemoryIndirectCountEXT, see
28863 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryIndirectCountEXT.html
28864 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryIndirectCountEXT( MemoryDecompressionMethodFlagsEXT decompressionMethod,
28865 DeviceAddress indirectCommandsAddress,
28866 DeviceAddress indirectCommandsCountAddress,
28867 uint32_t maxDecompressionCount,
28868 uint32_t stride ) const VULKAN_HPP_NOEXCEPT
28869 {
28870 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdDecompressMemoryIndirectCountEXT &&
28871 "Function <vkCmdDecompressMemoryIndirectCountEXT> requires <VK_EXT_memory_decompression>" );
28872
28873 getDispatcher()->vkCmdDecompressMemoryIndirectCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
28874 static_cast<VkMemoryDecompressionMethodFlagsEXT>( decompressionMethod ),
28875 static_cast<VkDeviceAddress>( indirectCommandsAddress ),
28876 static_cast<VkDeviceAddress>( indirectCommandsCountAddress ),
28877 maxDecompressionCount,
28878 stride );
28879 }
28880
28881 //=== VK_NV_external_compute_queue ===
28882
28883 // wrapper function for command vkCreateExternalComputeQueueNV, see
28884 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExternalComputeQueueNV.html
28885 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ExternalComputeQueueNV>::type
28886 Device::createExternalComputeQueueNV( ExternalComputeQueueCreateInfoNV const & createInfo,
28887 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
28888 {
28889 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateExternalComputeQueueNV &&
28890 "Function <vkCreateExternalComputeQueueNV> requires <VK_NV_external_compute_queue>" );
28891
28892 VULKAN_HPP_NAMESPACE::ExternalComputeQueueNV externalQueue;
28893 Result result =
28894 static_cast<Result>( getDispatcher()->vkCreateExternalComputeQueueNV( static_cast<VkDevice>( m_device ),
28895 reinterpret_cast<VkExternalComputeQueueCreateInfoNV const *>( &createInfo ),
28896 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
28897 reinterpret_cast<VkExternalComputeQueueNV *>( &externalQueue ) ) );
28898 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createExternalComputeQueueNV" );
28899 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
28900 result, ExternalComputeQueueNV( *this, *reinterpret_cast<VkExternalComputeQueueNV *>( &externalQueue ), allocator ) );
28901 }
28902
28903 // wrapper function for command vkGetExternalComputeQueueDataNV, see
28904 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExternalComputeQueueDataNV.html
28905 template <typename DataType>
28906 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::pair<ExternalComputeQueueDataParamsNV, DataType> ExternalComputeQueueNV::getData() const VULKAN_HPP_NOEXCEPT
28907 {
28908 VULKAN_HPP_ASSERT( getDispatcher()->vkGetExternalComputeQueueDataNV &&
28909 "Function <vkGetExternalComputeQueueDataNV> requires <VK_NV_external_compute_queue>" );
28910
28911 std::pair<ExternalComputeQueueDataParamsNV, DataType> data_;
28912 ExternalComputeQueueDataParamsNV & arams = data_.first;
28913 DataType & data = data_.second;
28914 getDispatcher()->vkGetExternalComputeQueueDataNV(
28915 static_cast<VkExternalComputeQueueNV>( m_externalComputeQueueNV ), reinterpret_cast<VkExternalComputeQueueDataParamsNV *>( &arams ), &data );
28916
28917 return data_;
28918 }
28919
28920 //=== VK_NV_cluster_acceleration_structure ===
28921
28922 // wrapper function for command vkGetClusterAccelerationStructureBuildSizesNV, see
28923 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetClusterAccelerationStructureBuildSizesNV.html
28924 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureBuildSizesInfoKHR
28925 Device::getClusterAccelerationStructureBuildSizesNV( ClusterAccelerationStructureInputInfoNV const & info ) const VULKAN_HPP_NOEXCEPT
28926 {
28927 VULKAN_HPP_ASSERT( getDispatcher()->vkGetClusterAccelerationStructureBuildSizesNV &&
28928 "Function <vkGetClusterAccelerationStructureBuildSizesNV> requires <VK_NV_cluster_acceleration_structure>" );
28929
28930 AccelerationStructureBuildSizesInfoKHR sizeInfo;
28931 getDispatcher()->vkGetClusterAccelerationStructureBuildSizesNV( static_cast<VkDevice>( m_device ),
28932 reinterpret_cast<VkClusterAccelerationStructureInputInfoNV const *>( &info ),
28933 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( &sizeInfo ) );
28934
28935 return sizeInfo;
28936 }
28937
28938 // wrapper function for command vkCmdBuildClusterAccelerationStructureIndirectNV, see
28939 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildClusterAccelerationStructureIndirectNV.html
28940 VULKAN_HPP_INLINE void
28941 CommandBuffer::buildClusterAccelerationStructureIndirectNV( ClusterAccelerationStructureCommandsInfoNV const & commandInfos ) const VULKAN_HPP_NOEXCEPT
28942 {
28943 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBuildClusterAccelerationStructureIndirectNV &&
28944 "Function <vkCmdBuildClusterAccelerationStructureIndirectNV> requires <VK_NV_cluster_acceleration_structure>" );
28945
28946 getDispatcher()->vkCmdBuildClusterAccelerationStructureIndirectNV(
28947 static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<VkClusterAccelerationStructureCommandsInfoNV const *>( &commandInfos ) );
28948 }
28949
28950 //=== VK_NV_partitioned_acceleration_structure ===
28951
28952 // wrapper function for command vkGetPartitionedAccelerationStructuresBuildSizesNV, see
28953 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPartitionedAccelerationStructuresBuildSizesNV.html
28954 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureBuildSizesInfoKHR
28955 Device::getPartitionedAccelerationStructuresBuildSizesNV( PartitionedAccelerationStructureInstancesInputNV const & info ) const VULKAN_HPP_NOEXCEPT
28956 {
28957 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPartitionedAccelerationStructuresBuildSizesNV &&
28958 "Function <vkGetPartitionedAccelerationStructuresBuildSizesNV> requires <VK_NV_partitioned_acceleration_structure>" );
28959
28960 AccelerationStructureBuildSizesInfoKHR sizeInfo;
28961 getDispatcher()->vkGetPartitionedAccelerationStructuresBuildSizesNV(
28962 static_cast<VkDevice>( m_device ),
28963 reinterpret_cast<VkPartitionedAccelerationStructureInstancesInputNV const *>( &info ),
28964 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( &sizeInfo ) );
28965
28966 return sizeInfo;
28967 }
28968
28969 // wrapper function for command vkCmdBuildPartitionedAccelerationStructuresNV, see
28970 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildPartitionedAccelerationStructuresNV.html
28971 VULKAN_HPP_INLINE void
28972 CommandBuffer::buildPartitionedAccelerationStructuresNV( BuildPartitionedAccelerationStructureInfoNV const & buildInfo ) const VULKAN_HPP_NOEXCEPT
28973 {
28974 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBuildPartitionedAccelerationStructuresNV &&
28975 "Function <vkCmdBuildPartitionedAccelerationStructuresNV> requires <VK_NV_partitioned_acceleration_structure>" );
28976
28977 getDispatcher()->vkCmdBuildPartitionedAccelerationStructuresNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
28978 reinterpret_cast<VkBuildPartitionedAccelerationStructureInfoNV const *>( &buildInfo ) );
28979 }
28980
28981 //=== VK_EXT_device_generated_commands ===
28982
28983 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsEXT, see
28984 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsEXT.html
28985 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
28986 Device::getGeneratedCommandsMemoryRequirementsEXT( GeneratedCommandsMemoryRequirementsInfoEXT const & info ) const VULKAN_HPP_NOEXCEPT
28987 {
28988 VULKAN_HPP_ASSERT( getDispatcher()->vkGetGeneratedCommandsMemoryRequirementsEXT &&
28989 "Function <vkGetGeneratedCommandsMemoryRequirementsEXT> requires <VK_EXT_device_generated_commands>" );
28990
28991 MemoryRequirements2 memoryRequirements;
28992 getDispatcher()->vkGetGeneratedCommandsMemoryRequirementsEXT( static_cast<VkDevice>( m_device ),
28993 reinterpret_cast<VkGeneratedCommandsMemoryRequirementsInfoEXT const *>( &info ),
28994 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
28995
28996 return memoryRequirements;
28997 }
28998
28999 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsEXT, see
29000 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsEXT.html
29001 template <typename X, typename Y, typename... Z>
29002 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
29003 Device::getGeneratedCommandsMemoryRequirementsEXT( GeneratedCommandsMemoryRequirementsInfoEXT const & info ) const VULKAN_HPP_NOEXCEPT
29004 {
29005 VULKAN_HPP_ASSERT( getDispatcher()->vkGetGeneratedCommandsMemoryRequirementsEXT &&
29006 "Function <vkGetGeneratedCommandsMemoryRequirementsEXT> requires <VK_EXT_device_generated_commands>" );
29007
29008 StructureChain<X, Y, Z...> structureChain;
29009 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
29010 getDispatcher()->vkGetGeneratedCommandsMemoryRequirementsEXT( static_cast<VkDevice>( m_device ),
29011 reinterpret_cast<VkGeneratedCommandsMemoryRequirementsInfoEXT const *>( &info ),
29012 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
29013
29014 return structureChain;
29015 }
29016
29017 // wrapper function for command vkCmdPreprocessGeneratedCommandsEXT, see
29018 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPreprocessGeneratedCommandsEXT.html
29019 VULKAN_HPP_INLINE void CommandBuffer::preprocessGeneratedCommandsEXT( GeneratedCommandsInfoEXT const & generatedCommandsInfo,
29020 VULKAN_HPP_NAMESPACE::CommandBuffer stateCommandBuffer ) const VULKAN_HPP_NOEXCEPT
29021 {
29022 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdPreprocessGeneratedCommandsEXT &&
29023 "Function <vkCmdPreprocessGeneratedCommandsEXT> requires <VK_EXT_device_generated_commands>" );
29024
29025 getDispatcher()->vkCmdPreprocessGeneratedCommandsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
29026 reinterpret_cast<VkGeneratedCommandsInfoEXT const *>( &generatedCommandsInfo ),
29027 static_cast<VkCommandBuffer>( stateCommandBuffer ) );
29028 }
29029
29030 // wrapper function for command vkCmdExecuteGeneratedCommandsEXT, see
29031 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteGeneratedCommandsEXT.html
29032 VULKAN_HPP_INLINE void CommandBuffer::executeGeneratedCommandsEXT( Bool32 isPreprocessed,
29033 GeneratedCommandsInfoEXT const & generatedCommandsInfo ) const VULKAN_HPP_NOEXCEPT
29034 {
29035 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdExecuteGeneratedCommandsEXT &&
29036 "Function <vkCmdExecuteGeneratedCommandsEXT> requires <VK_EXT_device_generated_commands>" );
29037
29038 getDispatcher()->vkCmdExecuteGeneratedCommandsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
29039 static_cast<VkBool32>( isPreprocessed ),
29040 reinterpret_cast<VkGeneratedCommandsInfoEXT const *>( &generatedCommandsInfo ) );
29041 }
29042
29043 // wrapper function for command vkCreateIndirectCommandsLayoutEXT, see
29044 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutEXT.html
29045 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<IndirectCommandsLayoutEXT>::type
29046 Device::createIndirectCommandsLayoutEXT( IndirectCommandsLayoutCreateInfoEXT const & createInfo,
29047 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
29048 {
29049 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateIndirectCommandsLayoutEXT &&
29050 "Function <vkCreateIndirectCommandsLayoutEXT> requires <VK_EXT_device_generated_commands>" );
29051
29052 VULKAN_HPP_NAMESPACE::IndirectCommandsLayoutEXT indirectCommandsLayout;
29053 Result result =
29054 static_cast<Result>( getDispatcher()->vkCreateIndirectCommandsLayoutEXT( static_cast<VkDevice>( m_device ),
29055 reinterpret_cast<VkIndirectCommandsLayoutCreateInfoEXT const *>( &createInfo ),
29056 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29057 reinterpret_cast<VkIndirectCommandsLayoutEXT *>( &indirectCommandsLayout ) ) );
29058 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createIndirectCommandsLayoutEXT" );
29059 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
29060 result, IndirectCommandsLayoutEXT( *this, *reinterpret_cast<VkIndirectCommandsLayoutEXT *>( &indirectCommandsLayout ), allocator ) );
29061 }
29062
29063 // wrapper function for command vkCreateIndirectExecutionSetEXT, see
29064 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectExecutionSetEXT.html
29065 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<IndirectExecutionSetEXT>::type
29066 Device::createIndirectExecutionSetEXT( IndirectExecutionSetCreateInfoEXT const & createInfo,
29067 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
29068 {
29069 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateIndirectExecutionSetEXT &&
29070 "Function <vkCreateIndirectExecutionSetEXT> requires <VK_EXT_device_generated_commands>" );
29071
29072 VULKAN_HPP_NAMESPACE::IndirectExecutionSetEXT indirectExecutionSet;
29073 Result result =
29074 static_cast<Result>( getDispatcher()->vkCreateIndirectExecutionSetEXT( static_cast<VkDevice>( m_device ),
29075 reinterpret_cast<VkIndirectExecutionSetCreateInfoEXT const *>( &createInfo ),
29076 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29077 reinterpret_cast<VkIndirectExecutionSetEXT *>( &indirectExecutionSet ) ) );
29078 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createIndirectExecutionSetEXT" );
29079 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
29080 result, IndirectExecutionSetEXT( *this, *reinterpret_cast<VkIndirectExecutionSetEXT *>( &indirectExecutionSet ), allocator ) );
29081 }
29082
29083 // wrapper function for command vkUpdateIndirectExecutionSetPipelineEXT, see
29084 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateIndirectExecutionSetPipelineEXT.html
29085 VULKAN_HPP_INLINE void
29086 IndirectExecutionSetEXT::updatePipeline( ArrayProxy<WriteIndirectExecutionSetPipelineEXT const> const & executionSetWrites ) const VULKAN_HPP_NOEXCEPT
29087 {
29088 VULKAN_HPP_ASSERT( getDispatcher()->vkUpdateIndirectExecutionSetPipelineEXT &&
29089 "Function <vkUpdateIndirectExecutionSetPipelineEXT> requires <VK_EXT_device_generated_commands>" );
29090
29091 getDispatcher()->vkUpdateIndirectExecutionSetPipelineEXT( static_cast<VkDevice>( m_device ),
29092 static_cast<VkIndirectExecutionSetEXT>( m_indirectExecutionSetEXT ),
29093 executionSetWrites.size(),
29094 reinterpret_cast<VkWriteIndirectExecutionSetPipelineEXT const *>( executionSetWrites.data() ) );
29095 }
29096
29097 // wrapper function for command vkUpdateIndirectExecutionSetShaderEXT, see
29098 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateIndirectExecutionSetShaderEXT.html
29099 VULKAN_HPP_INLINE void
29100 IndirectExecutionSetEXT::updateShader( ArrayProxy<WriteIndirectExecutionSetShaderEXT const> const & executionSetWrites ) const VULKAN_HPP_NOEXCEPT
29101 {
29102 VULKAN_HPP_ASSERT( getDispatcher()->vkUpdateIndirectExecutionSetShaderEXT &&
29103 "Function <vkUpdateIndirectExecutionSetShaderEXT> requires <VK_EXT_device_generated_commands>" );
29104
29105 getDispatcher()->vkUpdateIndirectExecutionSetShaderEXT( static_cast<VkDevice>( m_device ),
29106 static_cast<VkIndirectExecutionSetEXT>( m_indirectExecutionSetEXT ),
29107 executionSetWrites.size(),
29108 reinterpret_cast<VkWriteIndirectExecutionSetShaderEXT const *>( executionSetWrites.data() ) );
29109 }
29110
29111 # if defined( VK_USE_PLATFORM_OHOS )
29112 //=== VK_OHOS_surface ===
29113
29114 // wrapper function for command vkCreateSurfaceOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSurfaceOHOS.html
29115 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
29116 Instance::createSurfaceOHOS( SurfaceCreateInfoOHOS const & createInfo,
29117 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
29118 {
29119 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateSurfaceOHOS && "Function <vkCreateSurfaceOHOS> requires <VK_OHOS_surface>" );
29120
29121 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
29122 Result result = static_cast<Result>( getDispatcher()->vkCreateSurfaceOHOS( static_cast<VkInstance>( m_instance ),
29123 reinterpret_cast<VkSurfaceCreateInfoOHOS const *>( &createInfo ),
29124 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29125 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
29126 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createSurfaceOHOS" );
29127 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
29128 }
29129 # endif /*VK_USE_PLATFORM_OHOS*/
29130
29131 //=== VK_NV_cooperative_matrix2 ===
29132
29133 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV, see
29134 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV.html
29135 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeMatrixFlexibleDimensionsPropertiesNV>>::type
29136 PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV() const
29137 {
29138 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV &&
29139 "Function <vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV> requires <VK_NV_cooperative_matrix2>" );
29140
29141 std::vector<CooperativeMatrixFlexibleDimensionsPropertiesNV> properties;
29142 uint32_t propertyCount;
29143 Result result;
29144 do
29145 {
29146 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV(
29147 static_cast<VkPhysicalDevice>( m_physicalDevice ), &propertyCount, nullptr ) );
29148 if ( ( result == Result::eSuccess ) && propertyCount )
29149 {
29150 properties.resize( propertyCount );
29151 result = static_cast<Result>( getDispatcher()->vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV(
29152 static_cast<VkPhysicalDevice>( m_physicalDevice ),
29153 &propertyCount,
29154 reinterpret_cast<VkCooperativeMatrixFlexibleDimensionsPropertiesNV *>( properties.data() ) ) );
29155 }
29156 } while ( result == Result::eIncomplete );
29157 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
29158 VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV" );
29159 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
29160 if ( propertyCount < properties.size() )
29161 {
29162 properties.resize( propertyCount );
29163 }
29164 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( properties ) );
29165 }
29166
29167 # if defined( VK_USE_PLATFORM_METAL_EXT )
29168 //=== VK_EXT_external_memory_metal ===
29169
29170 // wrapper function for command vkGetMemoryMetalHandleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryMetalHandleEXT.html
29171 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<void *>::type
29172 Device::getMemoryMetalHandleEXT( MemoryGetMetalHandleInfoEXT const & getMetalHandleInfo ) const
29173 {
29174 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryMetalHandleEXT && "Function <vkGetMemoryMetalHandleEXT> requires <VK_EXT_external_memory_metal>" );
29175
29176 void * handle;
29177 Result result = static_cast<Result>( getDispatcher()->vkGetMemoryMetalHandleEXT(
29178 static_cast<VkDevice>( m_device ), reinterpret_cast<VkMemoryGetMetalHandleInfoEXT const *>( &getMetalHandleInfo ), &handle ) );
29179 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getMemoryMetalHandleEXT" );
29180
29181 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( handle ) );
29182 }
29183
29184 // wrapper function for command vkGetMemoryMetalHandlePropertiesEXT, see
29185 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryMetalHandlePropertiesEXT.html
29186 template <typename HandleType>
29187 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryMetalHandlePropertiesEXT>::type
29188 Device::getMemoryMetalHandlePropertiesEXT( ExternalMemoryHandleTypeFlagBits handleType, HandleType const & handle ) const
29189 {
29190 VULKAN_HPP_ASSERT( getDispatcher()->vkGetMemoryMetalHandlePropertiesEXT &&
29191 "Function <vkGetMemoryMetalHandlePropertiesEXT> requires <VK_EXT_external_memory_metal>" );
29192
29193 MemoryMetalHandlePropertiesEXT memoryMetalHandleProperties;
29194 Result result = static_cast<Result>(
29195 getDispatcher()->vkGetMemoryMetalHandlePropertiesEXT( static_cast<VkDevice>( m_device ),
29196 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
29197 reinterpret_cast<void const *>( &handle ),
29198 reinterpret_cast<VkMemoryMetalHandlePropertiesEXT *>( &memoryMetalHandleProperties ) ) );
29199 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::getMemoryMetalHandlePropertiesEXT" );
29200
29201 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( memoryMetalHandleProperties ) );
29202 }
29203 # endif /*VK_USE_PLATFORM_METAL_EXT*/
29204
29205 //=== VK_ARM_performance_counters_by_region ===
29206
29207 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM, see
29208 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM.html
29209 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
29210 typename ResultValueType<std::pair<std::vector<PerformanceCounterARM>, std::vector<PerformanceCounterDescriptionARM>>>::type
29211 PhysicalDevice::enumerateQueueFamilyPerformanceCountersByRegionARM( uint32_t queueFamilyIndex ) const
29212 {
29213 VULKAN_HPP_ASSERT( getDispatcher()->vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM &&
29214 "Function <vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM> requires <VK_ARM_performance_counters_by_region>" );
29215
29216 std::pair<std::vector<PerformanceCounterARM>, std::vector<PerformanceCounterDescriptionARM>> data_;
29217 std::vector<PerformanceCounterARM> & counters = data_.first;
29218 std::vector<PerformanceCounterDescriptionARM> & counterDescriptions = data_.second;
29219 uint32_t counterCount;
29220 Result result;
29221 do
29222 {
29223 result = static_cast<Result>( getDispatcher()->vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM(
29224 static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &counterCount, nullptr, nullptr ) );
29225 if ( ( result == Result::eSuccess ) && counterCount )
29226 {
29227 counters.resize( counterCount );
29228 counterDescriptions.resize( counterCount );
29229 result = static_cast<Result>( getDispatcher()->vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM(
29230 static_cast<VkPhysicalDevice>( m_physicalDevice ),
29231 queueFamilyIndex,
29232 &counterCount,
29233 reinterpret_cast<VkPerformanceCounterARM *>( counters.data() ),
29234 reinterpret_cast<VkPerformanceCounterDescriptionARM *>( counterDescriptions.data() ) ) );
29235 }
29236 } while ( result == Result::eIncomplete );
29237 VULKAN_HPP_NAMESPACE::detail::resultCheck( result,
29238 VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::enumerateQueueFamilyPerformanceCountersByRegionARM" );
29239 VULKAN_HPP_ASSERT( counterCount <= counters.size() );
29240 if ( counterCount < counters.size() )
29241 {
29242 counters.resize( counterCount );
29243 counterDescriptions.resize( counterCount );
29244 }
29245 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( data_ ) );
29246 }
29247
29248 //=== VK_ARM_shader_instrumentation ===
29249
29250 // wrapper function for command vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM, see
29251 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM.html
29252 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<ShaderInstrumentationMetricDescriptionARM>>::type
29253 PhysicalDevice::enumerateShaderInstrumentationMetricsARM() const
29254 {
29255 VULKAN_HPP_ASSERT( getDispatcher()->vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM &&
29256 "Function <vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM> requires <VK_ARM_shader_instrumentation>" );
29257
29258 std::vector<ShaderInstrumentationMetricDescriptionARM> descriptions;
29259 uint32_t descriptionCount;
29260 Result result;
29261 do
29262 {
29263 result = static_cast<Result>( getDispatcher()->vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM(
29264 static_cast<VkPhysicalDevice>( m_physicalDevice ), &descriptionCount, nullptr ) );
29265 if ( ( result == Result::eSuccess ) && descriptionCount )
29266 {
29267 descriptions.resize( descriptionCount );
29268 result = static_cast<Result>( getDispatcher()->vkEnumeratePhysicalDeviceShaderInstrumentationMetricsARM(
29269 static_cast<VkPhysicalDevice>( m_physicalDevice ),
29270 &descriptionCount,
29271 reinterpret_cast<VkShaderInstrumentationMetricDescriptionARM *>( descriptions.data() ) ) );
29272 }
29273 } while ( result == Result::eIncomplete );
29274 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::PhysicalDevice::enumerateShaderInstrumentationMetricsARM" );
29275 VULKAN_HPP_ASSERT( descriptionCount <= descriptions.size() );
29276 if ( descriptionCount < descriptions.size() )
29277 {
29278 descriptions.resize( descriptionCount );
29279 }
29280 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, std::move( descriptions ) );
29281 }
29282
29283 // wrapper function for command vkCreateShaderInstrumentationARM, see
29284 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderInstrumentationARM.html
29285 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ShaderInstrumentationARM>::type
29286 Device::createShaderInstrumentationARM( ShaderInstrumentationCreateInfoARM const & createInfo,
29287 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
29288 {
29289 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateShaderInstrumentationARM &&
29290 "Function <vkCreateShaderInstrumentationARM> requires <VK_ARM_shader_instrumentation>" );
29291
29292 VULKAN_HPP_NAMESPACE::ShaderInstrumentationARM instrumentation;
29293 Result result =
29294 static_cast<Result>( getDispatcher()->vkCreateShaderInstrumentationARM( static_cast<VkDevice>( m_device ),
29295 reinterpret_cast<VkShaderInstrumentationCreateInfoARM const *>( &createInfo ),
29296 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29297 reinterpret_cast<VkShaderInstrumentationARM *>( &instrumentation ) ) );
29298 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Device::createShaderInstrumentationARM" );
29299 return VULKAN_HPP_NAMESPACE::detail::createResultValueType(
29300 result, ShaderInstrumentationARM( *this, *reinterpret_cast<VkShaderInstrumentationARM *>( &instrumentation ), allocator ) );
29301 }
29302
29303 // wrapper function for command vkCmdBeginShaderInstrumentationARM, see
29304 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginShaderInstrumentationARM.html
29305 VULKAN_HPP_INLINE void
29306 CommandBuffer::beginShaderInstrumentationARM( VULKAN_HPP_NAMESPACE::ShaderInstrumentationARM instrumentation ) const VULKAN_HPP_NOEXCEPT
29307 {
29308 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginShaderInstrumentationARM &&
29309 "Function <vkCmdBeginShaderInstrumentationARM> requires <VK_ARM_shader_instrumentation>" );
29310
29311 getDispatcher()->vkCmdBeginShaderInstrumentationARM( static_cast<VkCommandBuffer>( m_commandBuffer ),
29312 static_cast<VkShaderInstrumentationARM>( instrumentation ) );
29313 }
29314
29315 // wrapper function for command vkCmdEndShaderInstrumentationARM, see
29316 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndShaderInstrumentationARM.html
29317 VULKAN_HPP_INLINE void CommandBuffer::endShaderInstrumentationARM() const VULKAN_HPP_NOEXCEPT
29318 {
29319 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndShaderInstrumentationARM &&
29320 "Function <vkCmdEndShaderInstrumentationARM> requires <VK_ARM_shader_instrumentation>" );
29321
29322 getDispatcher()->vkCmdEndShaderInstrumentationARM( static_cast<VkCommandBuffer>( m_commandBuffer ) );
29323 }
29324
29325 // wrapper function for command vkGetShaderInstrumentationValuesARM, see
29326 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderInstrumentationValuesARM.html
29327 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result ShaderInstrumentationARM::getValues( uint32_t * pMetricBlockCount,
29328 void * pMetricValues,
29329 ShaderInstrumentationValuesFlagsARM flags ) const VULKAN_HPP_NOEXCEPT
29330 {
29331 VULKAN_HPP_ASSERT( getDispatcher()->vkGetShaderInstrumentationValuesARM &&
29332 "Function <vkGetShaderInstrumentationValuesARM> requires <VK_ARM_shader_instrumentation>" );
29333 return static_cast<Result>( getDispatcher()->vkGetShaderInstrumentationValuesARM( static_cast<VkDevice>( m_device ),
29334 static_cast<VkShaderInstrumentationARM>( m_shaderInstrumentationARM ),
29335 pMetricBlockCount,
29336 pMetricValues,
29337 static_cast<VkShaderInstrumentationValuesFlagsARM>( flags ) ) );
29338 }
29339
29340 // wrapper function for command vkClearShaderInstrumentationMetricsARM, see
29341 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkClearShaderInstrumentationMetricsARM.html
29342 VULKAN_HPP_INLINE void ShaderInstrumentationARM::clearMetrics() const VULKAN_HPP_NOEXCEPT
29343 {
29344 VULKAN_HPP_ASSERT( getDispatcher()->vkClearShaderInstrumentationMetricsARM &&
29345 "Function <vkClearShaderInstrumentationMetricsARM> requires <VK_ARM_shader_instrumentation>" );
29346
29347 getDispatcher()->vkClearShaderInstrumentationMetricsARM( static_cast<VkDevice>( m_device ),
29348 static_cast<VkShaderInstrumentationARM>( m_shaderInstrumentationARM ) );
29349 }
29350
29351 //=== VK_EXT_fragment_density_map_offset ===
29352
29353 // wrapper function for command vkCmdEndRendering2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering2EXT.html
29354 VULKAN_HPP_INLINE void CommandBuffer::endRendering2EXT( Optional<RenderingEndInfoKHR const> renderingEndInfo ) const VULKAN_HPP_NOEXCEPT
29355 {
29356 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndRendering2EXT &&
29357 "Function <vkCmdEndRendering2EXT> requires <VK_EXT_fragment_density_map_offset> or <VK_KHR_maintenance10>" );
29358
29359 getDispatcher()->vkCmdEndRendering2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
29360 reinterpret_cast<VkRenderingEndInfoKHR const *>( renderingEndInfo.get() ) );
29361 }
29362
29363 //=== VK_EXT_custom_resolve ===
29364
29365 // wrapper function for command vkCmdBeginCustomResolveEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginCustomResolveEXT.html
29366 VULKAN_HPP_INLINE void CommandBuffer::beginCustomResolveEXT( Optional<BeginCustomResolveInfoEXT const> beginCustomResolveInfo ) const VULKAN_HPP_NOEXCEPT
29367 {
29368 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdBeginCustomResolveEXT && "Function <vkCmdBeginCustomResolveEXT> requires <VK_EXT_custom_resolve>" );
29369
29370 getDispatcher()->vkCmdBeginCustomResolveEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
29371 reinterpret_cast<VkBeginCustomResolveInfoEXT const *>( beginCustomResolveInfo.get() ) );
29372 }
29373
29374 //=== VK_KHR_maintenance10 ===
29375
29376 // wrapper function for command vkCmdEndRendering2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering2KHR.html
29377 VULKAN_HPP_INLINE void CommandBuffer::endRendering2KHR( Optional<RenderingEndInfoKHR const> renderingEndInfo ) const VULKAN_HPP_NOEXCEPT
29378 {
29379 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdEndRendering2KHR &&
29380 "Function <vkCmdEndRendering2KHR> requires <VK_EXT_fragment_density_map_offset> or <VK_KHR_maintenance10>" );
29381
29382 getDispatcher()->vkCmdEndRendering2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
29383 reinterpret_cast<VkRenderingEndInfoKHR const *>( renderingEndInfo.get() ) );
29384 }
29385
29386 //=== VK_NV_compute_occupancy_priority ===
29387
29388 // wrapper function for command vkCmdSetComputeOccupancyPriorityNV, see
29389 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetComputeOccupancyPriorityNV.html
29390 VULKAN_HPP_INLINE void CommandBuffer::setComputeOccupancyPriorityNV( ComputeOccupancyPriorityParametersNV const & parameters ) const VULKAN_HPP_NOEXCEPT
29391 {
29392 VULKAN_HPP_ASSERT( getDispatcher()->vkCmdSetComputeOccupancyPriorityNV &&
29393 "Function <vkCmdSetComputeOccupancyPriorityNV> requires <VK_NV_compute_occupancy_priority>" );
29394
29395 getDispatcher()->vkCmdSetComputeOccupancyPriorityNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
29396 reinterpret_cast<VkComputeOccupancyPriorityParametersNV const *>( &parameters ) );
29397 }
29398
29399 # if defined( VK_USE_PLATFORM_UBM_SEC )
29400 //=== VK_SEC_ubm_surface ===
29401
29402 // wrapper function for command vkCreateUbmSurfaceSEC, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateUbmSurfaceSEC.html
29403 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
29404 Instance::createUbmSurfaceSEC( UbmSurfaceCreateInfoSEC const & createInfo,
29405 Optional<AllocationCallbacks const> allocator ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
29406 {
29407 VULKAN_HPP_ASSERT( getDispatcher()->vkCreateUbmSurfaceSEC && "Function <vkCreateUbmSurfaceSEC> requires <VK_SEC_ubm_surface>" );
29408
29409 VULKAN_HPP_NAMESPACE::SurfaceKHR surface;
29410 Result result = static_cast<Result>( getDispatcher()->vkCreateUbmSurfaceSEC( static_cast<VkInstance>( m_instance ),
29411 reinterpret_cast<VkUbmSurfaceCreateInfoSEC const *>( &createInfo ),
29412 reinterpret_cast<VkAllocationCallbacks const *>( allocator.get() ),
29413 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
29414 VULKAN_HPP_NAMESPACE::detail::resultCheck( result, VULKAN_HPP_RAII_NAMESPACE_STRING "::Instance::createUbmSurfaceSEC" );
29415 return VULKAN_HPP_NAMESPACE::detail::createResultValueType( result, SurfaceKHR( *this, *reinterpret_cast<VkSurfaceKHR *>( &surface ), allocator ) );
29416 }
29417
29418 // wrapper function for command vkGetPhysicalDeviceUbmPresentationSupportSEC, see
29419 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceUbmPresentationSupportSEC.html
29420 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::pair<Bool32, struct ubm_device>
29421 PhysicalDevice::getUbmPresentationSupportSEC( uint32_t queueFamilyIndex ) const VULKAN_HPP_NOEXCEPT
29422 {
29423 VULKAN_HPP_ASSERT( getDispatcher()->vkGetPhysicalDeviceUbmPresentationSupportSEC &&
29424 "Function <vkGetPhysicalDeviceUbmPresentationSupportSEC> requires <VK_SEC_ubm_surface>" );
29425
29426 struct ubm_device device;
29427 VkBool32 result =
29428 getDispatcher()->vkGetPhysicalDeviceUbmPresentationSupportSEC( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, &device );
29429
29430 return { result, device };
29431 }
29432 # endif /*VK_USE_PLATFORM_UBM_SEC*/
29433
29434 //====================
29435 //=== RAII Helpers ===
29436 //====================
29437
29438 template <typename RAIIType>
29439 std::vector<typename RAIIType::CppType> filterCppTypes( std::vector<RAIIType> const & raiiTypes )
29440 {
29441 std::vector<typename RAIIType::CppType> cppTypes( raiiTypes.size() );
29442 std::transform( raiiTypes.begin(), raiiTypes.end(), cppTypes.begin(), []( RAIIType const & d ) { return *d; } );
29443 return cppTypes;
29444 }
29445
29446 template <typename RAIIType, class UnaryPredicate>
29447 std::vector<typename RAIIType::CppType> filterCppTypes( std::vector<RAIIType> const & raiiTypes, UnaryPredicate p )
29448 {
29449 std::vector<typename RAIIType::CppType> cppTypes;
29450 for ( auto const & t : raiiTypes )
29451 {
29452 if ( p( t ) )
29453 {
29454 cppTypes.push_back( *t );
29455 }
29456 }
29457 return cppTypes;
29458 }
29459
29460 } // namespace VULKAN_HPP_RAII_NAMESPACE
29461 } // namespace VULKAN_HPP_NAMESPACE
29462 #endif
29463 #endif