Debian Codegraph @

vulkan-headers/include/vulkan/vulkan_funcs.hpp

raw
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_FUNCS_HPP
9 #define VULKAN_FUNCS_HPP
10
11 // include-what-you-use: make sure, vulkan.hpp is used by code-completers
12 // IWYU pragma: private, include "vulkan/vulkan.hpp"
13
14 namespace VULKAN_HPP_NAMESPACE
15 {
16
17 //===========================
18 //=== COMMAND Definitions ===
19 //===========================
20
21 //=== VK_VERSION_1_0 ===
22
23 // wrapper function for command vkCreateInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateInstance.html
24 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateInstance ), bool>::type>
25 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result createInstance( const InstanceCreateInfo * pCreateInfo,
26 const AllocationCallbacks * pAllocator,
27 Instance * pInstance,
28 Dispatch const & d ) VULKAN_HPP_NOEXCEPT
29 {
30 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31 return static_cast<Result>( d.vkCreateInstance( reinterpret_cast<const VkInstanceCreateInfo *>( pCreateInfo ),
32 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
33 reinterpret_cast<VkInstance *>( pInstance ) ) );
34 }
35
36 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
37 // wrapper function for command vkCreateInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateInstance.html
38 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateInstance ), bool>::type>
39 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Instance>::type
40 createInstance( const InstanceCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d )
41 {
42 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
43 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
44 VULKAN_HPP_ASSERT( d.vkCreateInstance && "Function <vkCreateInstance> requires <VK_VERSION_1_0>" );
45 # endif
46
47 Instance instance;
48 Result result = static_cast<Result>( d.vkCreateInstance( reinterpret_cast<const VkInstanceCreateInfo *>( &createInfo ),
49 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
50 reinterpret_cast<VkInstance *>( &instance ) ) );
51 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::createInstance" );
52
53 return detail::createResultValueType( result, std::move( instance ) );
54 }
55
56 # ifndef VULKAN_HPP_NO_SMART_HANDLE
57 // wrapper function for command vkCreateInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateInstance.html
58 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateInstance ), bool>::type>
59 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Instance, Dispatch>>::type
60 createInstanceUnique( const InstanceCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d )
61 {
62 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
63 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
64 VULKAN_HPP_ASSERT( d.vkCreateInstance && "Function <vkCreateInstance> requires <VK_VERSION_1_0>" );
65 # endif
66
67 Instance instance;
68 Result result = static_cast<Result>( d.vkCreateInstance( reinterpret_cast<const VkInstanceCreateInfo *>( &createInfo ),
69 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
70 reinterpret_cast<VkInstance *>( &instance ) ) );
71 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::createInstanceUnique" );
72
73 return detail::createResultValueType( result,
74 UniqueHandle<Instance, Dispatch>( instance, detail::ObjectDestroy<detail::NoParent, Dispatch>( allocator, d ) ) );
75 }
76 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
77 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
78
79 // wrapper function for command vkDestroyInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyInstance.html
80 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyInstance ), bool>::type>
81 VULKAN_HPP_INLINE void Instance::destroy( const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
82 {
83 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
84 d.vkDestroyInstance( static_cast<VkInstance>( m_instance ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
85 }
86
87 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
88 // wrapper function for command vkDestroyInstance, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyInstance.html
89 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyInstance ), bool>::type>
90 VULKAN_HPP_INLINE void Instance::destroy( Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
91 {
92 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
93 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
94 VULKAN_HPP_ASSERT( d.vkDestroyInstance && "Function <vkDestroyInstance> requires <VK_VERSION_1_0>" );
95 # endif
96
97 d.vkDestroyInstance( m_instance, reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
98 }
99 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
100
101 // wrapper function for command vkEnumeratePhysicalDevices, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDevices.html
102 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDevices ), bool>::type>
103 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::enumeratePhysicalDevices( uint32_t * pPhysicalDeviceCount,
104 PhysicalDevice * pPhysicalDevices,
105 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
106 {
107 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
108 return static_cast<Result>(
109 d.vkEnumeratePhysicalDevices( static_cast<VkInstance>( m_instance ), pPhysicalDeviceCount, reinterpret_cast<VkPhysicalDevice *>( pPhysicalDevices ) ) );
110 }
111
112 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
113 // wrapper function for command vkEnumeratePhysicalDevices, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDevices.html
114 template <typename PhysicalDeviceAllocator,
115 typename Dispatch,
116 typename std::enable_if<std::is_same<typename PhysicalDeviceAllocator::value_type, PhysicalDevice>::value, int>::type,
117 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDevices ), bool>::type>
118 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDevice, PhysicalDeviceAllocator>>::type
119 Instance::enumeratePhysicalDevices( Dispatch const & d ) const
120 {
121 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
122 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
123 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDevices && "Function <vkEnumeratePhysicalDevices> requires <VK_VERSION_1_0>" );
124 # endif
125
126 std::vector<PhysicalDevice, PhysicalDeviceAllocator> physicalDevices;
127 uint32_t physicalDeviceCount;
128 Result result;
129 do
130 {
131 result = static_cast<Result>( d.vkEnumeratePhysicalDevices( m_instance, &physicalDeviceCount, nullptr ) );
132 if ( ( result == Result::eSuccess ) && physicalDeviceCount )
133 {
134 physicalDevices.resize( physicalDeviceCount );
135 result = static_cast<Result>(
136 d.vkEnumeratePhysicalDevices( m_instance, &physicalDeviceCount, reinterpret_cast<VkPhysicalDevice *>( physicalDevices.data() ) ) );
137 }
138 } while ( result == Result::eIncomplete );
139 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDevices" );
140 VULKAN_HPP_ASSERT( physicalDeviceCount <= physicalDevices.size() );
141 if ( physicalDeviceCount < physicalDevices.size() )
142 {
143 physicalDevices.resize( physicalDeviceCount );
144 }
145 return detail::createResultValueType( result, std::move( physicalDevices ) );
146 }
147
148 // wrapper function for command vkEnumeratePhysicalDevices, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDevices.html
149 template <typename PhysicalDeviceAllocator,
150 typename Dispatch,
151 typename std::enable_if<std::is_same<typename PhysicalDeviceAllocator::value_type, PhysicalDevice>::value, int>::type,
152 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDevices ), bool>::type>
153 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDevice, PhysicalDeviceAllocator>>::type
154 Instance::enumeratePhysicalDevices( PhysicalDeviceAllocator const & physicalDeviceAllocator, Dispatch const & d ) const
155 {
156 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
157 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
158 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDevices && "Function <vkEnumeratePhysicalDevices> requires <VK_VERSION_1_0>" );
159 # endif
160
161 std::vector<PhysicalDevice, PhysicalDeviceAllocator> physicalDevices( physicalDeviceAllocator );
162 uint32_t physicalDeviceCount;
163 Result result;
164 do
165 {
166 result = static_cast<Result>( d.vkEnumeratePhysicalDevices( m_instance, &physicalDeviceCount, nullptr ) );
167 if ( ( result == Result::eSuccess ) && physicalDeviceCount )
168 {
169 physicalDevices.resize( physicalDeviceCount );
170 result = static_cast<Result>(
171 d.vkEnumeratePhysicalDevices( m_instance, &physicalDeviceCount, reinterpret_cast<VkPhysicalDevice *>( physicalDevices.data() ) ) );
172 }
173 } while ( result == Result::eIncomplete );
174 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDevices" );
175 VULKAN_HPP_ASSERT( physicalDeviceCount <= physicalDevices.size() );
176 if ( physicalDeviceCount < physicalDevices.size() )
177 {
178 physicalDevices.resize( physicalDeviceCount );
179 }
180 return detail::createResultValueType( result, std::move( physicalDevices ) );
181 }
182 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
183
184 // wrapper function for command vkGetPhysicalDeviceFeatures, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures.html
185 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures ), bool>::type>
186 VULKAN_HPP_INLINE void PhysicalDevice::getFeatures( PhysicalDeviceFeatures * pFeatures, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
187 {
188 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
189 d.vkGetPhysicalDeviceFeatures( static_cast<VkPhysicalDevice>( m_physicalDevice ), reinterpret_cast<VkPhysicalDeviceFeatures *>( pFeatures ) );
190 }
191
192 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
193 // wrapper function for command vkGetPhysicalDeviceFeatures, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures.html
194 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures ), bool>::type>
195 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceFeatures PhysicalDevice::getFeatures( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
196 {
197 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
198 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
199 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFeatures && "Function <vkGetPhysicalDeviceFeatures> requires <VK_VERSION_1_0>" );
200 # endif
201
202 PhysicalDeviceFeatures features;
203 d.vkGetPhysicalDeviceFeatures( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures *>( &features ) );
204
205 return features;
206 }
207 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
208
209 // wrapper function for command vkGetPhysicalDeviceFormatProperties, see
210 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties.html
211 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties ), bool>::type>
212 VULKAN_HPP_INLINE void
213 PhysicalDevice::getFormatProperties( Format format, FormatProperties * pFormatProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
214 {
215 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
216 d.vkGetPhysicalDeviceFormatProperties(
217 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties *>( pFormatProperties ) );
218 }
219
220 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
221 // wrapper function for command vkGetPhysicalDeviceFormatProperties, see
222 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties.html
223 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties ), bool>::type>
224 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE FormatProperties PhysicalDevice::getFormatProperties( Format format, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
225 {
226 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
227 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
228 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFormatProperties && "Function <vkGetPhysicalDeviceFormatProperties> requires <VK_VERSION_1_0>" );
229 # endif
230
231 FormatProperties formatProperties;
232 d.vkGetPhysicalDeviceFormatProperties( m_physicalDevice, static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties *>( &formatProperties ) );
233
234 return formatProperties;
235 }
236 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
237
238 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties, see
239 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties.html
240 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties ), bool>::type>
241 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getImageFormatProperties( Format format,
242 ImageType type,
243 ImageTiling tiling,
244 ImageUsageFlags usage,
245 ImageCreateFlags flags,
246 ImageFormatProperties * pImageFormatProperties,
247 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
248 {
249 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
250 return static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
251 static_cast<VkFormat>( format ),
252 static_cast<VkImageType>( type ),
253 static_cast<VkImageTiling>( tiling ),
254 static_cast<VkImageUsageFlags>( usage ),
255 static_cast<VkImageCreateFlags>( flags ),
256 reinterpret_cast<VkImageFormatProperties *>( pImageFormatProperties ) ) );
257 }
258
259 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
260 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties, see
261 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties.html
262 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties ), bool>::type>
263 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageFormatProperties>::type PhysicalDevice::getImageFormatProperties(
264 Format format, ImageType type, ImageTiling tiling, ImageUsageFlags usage, ImageCreateFlags flags, Dispatch const & d ) const
265 {
266 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
267 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
268 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceImageFormatProperties && "Function <vkGetPhysicalDeviceImageFormatProperties> requires <VK_VERSION_1_0>" );
269 # endif
270
271 ImageFormatProperties imageFormatProperties;
272 Result result = static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties( m_physicalDevice,
273 static_cast<VkFormat>( format ),
274 static_cast<VkImageType>( type ),
275 static_cast<VkImageTiling>( tiling ),
276 static_cast<VkImageUsageFlags>( usage ),
277 static_cast<VkImageCreateFlags>( flags ),
278 reinterpret_cast<VkImageFormatProperties *>( &imageFormatProperties ) ) );
279 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties" );
280
281 return detail::createResultValueType( result, std::move( imageFormatProperties ) );
282 }
283 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
284
285 // wrapper function for command vkGetPhysicalDeviceProperties, see
286 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties.html
287 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties ), bool>::type>
288 VULKAN_HPP_INLINE void PhysicalDevice::getProperties( PhysicalDeviceProperties * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
289 {
290 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
291 d.vkGetPhysicalDeviceProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ), reinterpret_cast<VkPhysicalDeviceProperties *>( pProperties ) );
292 }
293
294 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
295 // wrapper function for command vkGetPhysicalDeviceProperties, see
296 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties.html
297 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties ), bool>::type>
298 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceProperties PhysicalDevice::getProperties( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
299 {
300 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
301 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
302 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceProperties && "Function <vkGetPhysicalDeviceProperties> requires <VK_VERSION_1_0>" );
303 # endif
304
305 PhysicalDeviceProperties properties;
306 d.vkGetPhysicalDeviceProperties( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties *>( &properties ) );
307
308 return properties;
309 }
310 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
311
312 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties, see
313 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties.html
314 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties ), bool>::type>
315 VULKAN_HPP_INLINE void PhysicalDevice::getQueueFamilyProperties( uint32_t * pQueueFamilyPropertyCount,
316 QueueFamilyProperties * pQueueFamilyProperties,
317 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
318 {
319 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
320 d.vkGetPhysicalDeviceQueueFamilyProperties(
321 static_cast<VkPhysicalDevice>( m_physicalDevice ), pQueueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties *>( pQueueFamilyProperties ) );
322 }
323
324 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
325 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties, see
326 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties.html
327 template <typename QueueFamilyPropertiesAllocator,
328 typename Dispatch,
329 typename std::enable_if<std::is_same<typename QueueFamilyPropertiesAllocator::value_type, QueueFamilyProperties>::value, int>::type,
330 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties ), bool>::type>
331 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties, QueueFamilyPropertiesAllocator>
332 PhysicalDevice::getQueueFamilyProperties( Dispatch const & d ) const
333 {
334 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
335 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
336 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties && "Function <vkGetPhysicalDeviceQueueFamilyProperties> requires <VK_VERSION_1_0>" );
337 # endif
338
339 std::vector<QueueFamilyProperties, QueueFamilyPropertiesAllocator> queueFamilyProperties;
340 uint32_t queueFamilyPropertyCount;
341 d.vkGetPhysicalDeviceQueueFamilyProperties( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
342 queueFamilyProperties.resize( queueFamilyPropertyCount );
343 d.vkGetPhysicalDeviceQueueFamilyProperties(
344 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties *>( queueFamilyProperties.data() ) );
345
346 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
347 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
348 {
349 queueFamilyProperties.resize( queueFamilyPropertyCount );
350 }
351 return queueFamilyProperties;
352 }
353
354 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties, see
355 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties.html
356 template <typename QueueFamilyPropertiesAllocator,
357 typename Dispatch,
358 typename std::enable_if<std::is_same<typename QueueFamilyPropertiesAllocator::value_type, QueueFamilyProperties>::value, int>::type,
359 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties ), bool>::type>
360 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties, QueueFamilyPropertiesAllocator>
361 PhysicalDevice::getQueueFamilyProperties( QueueFamilyPropertiesAllocator const & queueFamilyPropertiesAllocator, Dispatch const & d ) const
362 {
363 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
364 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
365 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties && "Function <vkGetPhysicalDeviceQueueFamilyProperties> requires <VK_VERSION_1_0>" );
366 # endif
367
368 std::vector<QueueFamilyProperties, QueueFamilyPropertiesAllocator> queueFamilyProperties( queueFamilyPropertiesAllocator );
369 uint32_t queueFamilyPropertyCount;
370 d.vkGetPhysicalDeviceQueueFamilyProperties( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
371 queueFamilyProperties.resize( queueFamilyPropertyCount );
372 d.vkGetPhysicalDeviceQueueFamilyProperties(
373 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties *>( queueFamilyProperties.data() ) );
374
375 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
376 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
377 {
378 queueFamilyProperties.resize( queueFamilyPropertyCount );
379 }
380 return queueFamilyProperties;
381 }
382 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
383
384 // wrapper function for command vkGetPhysicalDeviceMemoryProperties, see
385 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties.html
386 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties ), bool>::type>
387 VULKAN_HPP_INLINE void PhysicalDevice::getMemoryProperties( PhysicalDeviceMemoryProperties * pMemoryProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
388 {
389 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
390 d.vkGetPhysicalDeviceMemoryProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
391 reinterpret_cast<VkPhysicalDeviceMemoryProperties *>( pMemoryProperties ) );
392 }
393
394 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
395 // wrapper function for command vkGetPhysicalDeviceMemoryProperties, see
396 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties.html
397 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties ), bool>::type>
398 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceMemoryProperties PhysicalDevice::getMemoryProperties( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
399 {
400 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
401 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
402 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceMemoryProperties && "Function <vkGetPhysicalDeviceMemoryProperties> requires <VK_VERSION_1_0>" );
403 # endif
404
405 PhysicalDeviceMemoryProperties memoryProperties;
406 d.vkGetPhysicalDeviceMemoryProperties( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceMemoryProperties *>( &memoryProperties ) );
407
408 return memoryProperties;
409 }
410 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
411
412 // wrapper function for command vkGetInstanceProcAddr, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetInstanceProcAddr.html
413 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetInstanceProcAddr ), bool>::type>
414 VULKAN_HPP_INLINE PFN_vkVoidFunction Instance::getProcAddr( const char * pName, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
415 {
416 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
417 return d.vkGetInstanceProcAddr( static_cast<VkInstance>( m_instance ), pName );
418 }
419
420 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
421 // wrapper function for command vkGetInstanceProcAddr, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetInstanceProcAddr.html
422 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetInstanceProcAddr ), bool>::type>
423 VULKAN_HPP_INLINE PFN_VoidFunction Instance::getProcAddr( const std::string & name, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
424 {
425 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
426 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
427 VULKAN_HPP_ASSERT( d.vkGetInstanceProcAddr && "Function <vkGetInstanceProcAddr> requires <VK_VERSION_1_0>" );
428 # endif
429
430 PFN_vkVoidFunction result = d.vkGetInstanceProcAddr( m_instance, name.c_str() );
431
432 return result;
433 }
434 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
435
436 // wrapper function for command vkGetDeviceProcAddr, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceProcAddr.html
437 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceProcAddr ), bool>::type>
438 VULKAN_HPP_INLINE PFN_vkVoidFunction Device::getProcAddr( const char * pName, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
439 {
440 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
441 return d.vkGetDeviceProcAddr( static_cast<VkDevice>( m_device ), pName );
442 }
443
444 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
445 // wrapper function for command vkGetDeviceProcAddr, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceProcAddr.html
446 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceProcAddr ), bool>::type>
447 VULKAN_HPP_INLINE PFN_VoidFunction Device::getProcAddr( const std::string & name, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
448 {
449 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
450 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
451 VULKAN_HPP_ASSERT( d.vkGetDeviceProcAddr && "Function <vkGetDeviceProcAddr> requires <VK_VERSION_1_0>" );
452 # endif
453
454 PFN_vkVoidFunction result = d.vkGetDeviceProcAddr( m_device, name.c_str() );
455
456 return result;
457 }
458 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
459
460 // wrapper function for command vkCreateDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDevice.html
461 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDevice ), bool>::type>
462 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::createDevice( const DeviceCreateInfo * pCreateInfo,
463 const AllocationCallbacks * pAllocator,
464 Device * pDevice,
465 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
466 {
467 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
468 return static_cast<Result>( d.vkCreateDevice( static_cast<VkPhysicalDevice>( m_physicalDevice ),
469 reinterpret_cast<const VkDeviceCreateInfo *>( pCreateInfo ),
470 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
471 reinterpret_cast<VkDevice *>( pDevice ) ) );
472 }
473
474 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
475 // wrapper function for command vkCreateDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDevice.html
476 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDevice ), bool>::type>
477 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Device>::type
478 PhysicalDevice::createDevice( const DeviceCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
479 {
480 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
481 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
482 VULKAN_HPP_ASSERT( d.vkCreateDevice && "Function <vkCreateDevice> requires <VK_VERSION_1_0>" );
483 # endif
484
485 Device device;
486 Result result = static_cast<Result>( d.vkCreateDevice( m_physicalDevice,
487 reinterpret_cast<const VkDeviceCreateInfo *>( &createInfo ),
488 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
489 reinterpret_cast<VkDevice *>( &device ) ) );
490 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::createDevice" );
491
492 return detail::createResultValueType( result, std::move( device ) );
493 }
494
495 # ifndef VULKAN_HPP_NO_SMART_HANDLE
496 // wrapper function for command vkCreateDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDevice.html
497 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDevice ), bool>::type>
498 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Device, Dispatch>>::type
499 PhysicalDevice::createDeviceUnique( const DeviceCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
500 {
501 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
502 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
503 VULKAN_HPP_ASSERT( d.vkCreateDevice && "Function <vkCreateDevice> requires <VK_VERSION_1_0>" );
504 # endif
505
506 Device device;
507 Result result = static_cast<Result>( d.vkCreateDevice( m_physicalDevice,
508 reinterpret_cast<const VkDeviceCreateInfo *>( &createInfo ),
509 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
510 reinterpret_cast<VkDevice *>( &device ) ) );
511 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::createDeviceUnique" );
512
513 return detail::createResultValueType( result, UniqueHandle<Device, Dispatch>( device, detail::ObjectDestroy<detail::NoParent, Dispatch>( allocator, d ) ) );
514 }
515 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
516 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
517
518 // wrapper function for command vkDestroyDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDevice.html
519 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDevice ), bool>::type>
520 VULKAN_HPP_INLINE void Device::destroy( const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
521 {
522 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
523 d.vkDestroyDevice( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
524 }
525
526 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
527 // wrapper function for command vkDestroyDevice, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDevice.html
528 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDevice ), bool>::type>
529 VULKAN_HPP_INLINE void Device::destroy( Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
530 {
531 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
532 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
533 VULKAN_HPP_ASSERT( d.vkDestroyDevice && "Function <vkDestroyDevice> requires <VK_VERSION_1_0>" );
534 # endif
535
536 d.vkDestroyDevice( m_device, reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
537 }
538 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
539
540 // wrapper function for command vkEnumerateInstanceExtensionProperties, see
541 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceExtensionProperties.html
542 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceExtensionProperties ), bool>::type>
543 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result enumerateInstanceExtensionProperties( const char * pLayerName,
544 uint32_t * pPropertyCount,
545 ExtensionProperties * pProperties,
546 Dispatch const & d ) VULKAN_HPP_NOEXCEPT
547 {
548 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
549 return static_cast<Result>(
550 d.vkEnumerateInstanceExtensionProperties( pLayerName, pPropertyCount, reinterpret_cast<VkExtensionProperties *>( pProperties ) ) );
551 }
552
553 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
554 // wrapper function for command vkEnumerateInstanceExtensionProperties, see
555 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceExtensionProperties.html
556 template <typename ExtensionPropertiesAllocator,
557 typename Dispatch,
558 typename std::enable_if<std::is_same<typename ExtensionPropertiesAllocator::value_type, ExtensionProperties>::value, int>::type,
559 typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceExtensionProperties ), bool>::type>
560 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<ExtensionProperties, ExtensionPropertiesAllocator>>::type
561 enumerateInstanceExtensionProperties( Optional<const std::string> layerName, Dispatch const & d )
562 {
563 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
564 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
565 VULKAN_HPP_ASSERT( d.vkEnumerateInstanceExtensionProperties && "Function <vkEnumerateInstanceExtensionProperties> requires <VK_VERSION_1_0>" );
566 # endif
567
568 std::vector<ExtensionProperties, ExtensionPropertiesAllocator> properties;
569 uint32_t propertyCount;
570 Result result;
571 do
572 {
573 result = static_cast<Result>( d.vkEnumerateInstanceExtensionProperties( layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) );
574 if ( ( result == Result::eSuccess ) && propertyCount )
575 {
576 properties.resize( propertyCount );
577 result = static_cast<Result>( d.vkEnumerateInstanceExtensionProperties(
578 layerName ? layerName->c_str() : nullptr, &propertyCount, reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
579 }
580 } while ( result == Result::eIncomplete );
581 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::enumerateInstanceExtensionProperties" );
582 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
583 if ( propertyCount < properties.size() )
584 {
585 properties.resize( propertyCount );
586 }
587 return detail::createResultValueType( result, std::move( properties ) );
588 }
589
590 // wrapper function for command vkEnumerateInstanceExtensionProperties, see
591 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceExtensionProperties.html
592 template <typename ExtensionPropertiesAllocator,
593 typename Dispatch,
594 typename std::enable_if<std::is_same<typename ExtensionPropertiesAllocator::value_type, ExtensionProperties>::value, int>::type,
595 typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceExtensionProperties ), bool>::type>
596 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<ExtensionProperties, ExtensionPropertiesAllocator>>::type
597 enumerateInstanceExtensionProperties( Optional<const std::string> layerName,
598 ExtensionPropertiesAllocator const & extensionPropertiesAllocator,
599 Dispatch const & d )
600 {
601 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
602 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
603 VULKAN_HPP_ASSERT( d.vkEnumerateInstanceExtensionProperties && "Function <vkEnumerateInstanceExtensionProperties> requires <VK_VERSION_1_0>" );
604 # endif
605
606 std::vector<ExtensionProperties, ExtensionPropertiesAllocator> properties( extensionPropertiesAllocator );
607 uint32_t propertyCount;
608 Result result;
609 do
610 {
611 result = static_cast<Result>( d.vkEnumerateInstanceExtensionProperties( layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) );
612 if ( ( result == Result::eSuccess ) && propertyCount )
613 {
614 properties.resize( propertyCount );
615 result = static_cast<Result>( d.vkEnumerateInstanceExtensionProperties(
616 layerName ? layerName->c_str() : nullptr, &propertyCount, reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
617 }
618 } while ( result == Result::eIncomplete );
619 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::enumerateInstanceExtensionProperties" );
620 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
621 if ( propertyCount < properties.size() )
622 {
623 properties.resize( propertyCount );
624 }
625 return detail::createResultValueType( result, std::move( properties ) );
626 }
627 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
628
629 // wrapper function for command vkEnumerateDeviceExtensionProperties, see
630 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceExtensionProperties.html
631 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumerateDeviceExtensionProperties ), bool>::type>
632 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::enumerateDeviceExtensionProperties( const char * pLayerName,
633 uint32_t * pPropertyCount,
634 ExtensionProperties * pProperties,
635 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
636 {
637 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
638 return static_cast<Result>( d.vkEnumerateDeviceExtensionProperties(
639 static_cast<VkPhysicalDevice>( m_physicalDevice ), pLayerName, pPropertyCount, reinterpret_cast<VkExtensionProperties *>( pProperties ) ) );
640 }
641
642 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
643 // wrapper function for command vkEnumerateDeviceExtensionProperties, see
644 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceExtensionProperties.html
645 template <typename ExtensionPropertiesAllocator,
646 typename Dispatch,
647 typename std::enable_if<std::is_same<typename ExtensionPropertiesAllocator::value_type, ExtensionProperties>::value, int>::type,
648 typename std::enable_if<IS_DISPATCHED( vkEnumerateDeviceExtensionProperties ), bool>::type>
649 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<ExtensionProperties, ExtensionPropertiesAllocator>>::type
650 PhysicalDevice::enumerateDeviceExtensionProperties( Optional<const std::string> layerName, Dispatch const & d ) const
651 {
652 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
653 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
654 VULKAN_HPP_ASSERT( d.vkEnumerateDeviceExtensionProperties && "Function <vkEnumerateDeviceExtensionProperties> requires <VK_VERSION_1_0>" );
655 # endif
656
657 std::vector<ExtensionProperties, ExtensionPropertiesAllocator> properties;
658 uint32_t propertyCount;
659 Result result;
660 do
661 {
662 result =
663 static_cast<Result>( d.vkEnumerateDeviceExtensionProperties( m_physicalDevice, layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) );
664 if ( ( result == Result::eSuccess ) && propertyCount )
665 {
666 properties.resize( propertyCount );
667 result = static_cast<Result>( d.vkEnumerateDeviceExtensionProperties(
668 m_physicalDevice, layerName ? layerName->c_str() : nullptr, &propertyCount, reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
669 }
670 } while ( result == Result::eIncomplete );
671 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceExtensionProperties" );
672 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
673 if ( propertyCount < properties.size() )
674 {
675 properties.resize( propertyCount );
676 }
677 return detail::createResultValueType( result, std::move( properties ) );
678 }
679
680 // wrapper function for command vkEnumerateDeviceExtensionProperties, see
681 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceExtensionProperties.html
682 template <typename ExtensionPropertiesAllocator,
683 typename Dispatch,
684 typename std::enable_if<std::is_same<typename ExtensionPropertiesAllocator::value_type, ExtensionProperties>::value, int>::type,
685 typename std::enable_if<IS_DISPATCHED( vkEnumerateDeviceExtensionProperties ), bool>::type>
686 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<ExtensionProperties, ExtensionPropertiesAllocator>>::type
687 PhysicalDevice::enumerateDeviceExtensionProperties( Optional<const std::string> layerName,
688 ExtensionPropertiesAllocator const & extensionPropertiesAllocator,
689 Dispatch const & d ) const
690 {
691 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
692 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
693 VULKAN_HPP_ASSERT( d.vkEnumerateDeviceExtensionProperties && "Function <vkEnumerateDeviceExtensionProperties> requires <VK_VERSION_1_0>" );
694 # endif
695
696 std::vector<ExtensionProperties, ExtensionPropertiesAllocator> properties( extensionPropertiesAllocator );
697 uint32_t propertyCount;
698 Result result;
699 do
700 {
701 result =
702 static_cast<Result>( d.vkEnumerateDeviceExtensionProperties( m_physicalDevice, layerName ? layerName->c_str() : nullptr, &propertyCount, nullptr ) );
703 if ( ( result == Result::eSuccess ) && propertyCount )
704 {
705 properties.resize( propertyCount );
706 result = static_cast<Result>( d.vkEnumerateDeviceExtensionProperties(
707 m_physicalDevice, layerName ? layerName->c_str() : nullptr, &propertyCount, reinterpret_cast<VkExtensionProperties *>( properties.data() ) ) );
708 }
709 } while ( result == Result::eIncomplete );
710 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceExtensionProperties" );
711 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
712 if ( propertyCount < properties.size() )
713 {
714 properties.resize( propertyCount );
715 }
716 return detail::createResultValueType( result, std::move( properties ) );
717 }
718 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
719
720 // wrapper function for command vkEnumerateInstanceLayerProperties, see
721 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceLayerProperties.html
722 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceLayerProperties ), bool>::type>
723 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result enumerateInstanceLayerProperties( uint32_t * pPropertyCount,
724 LayerProperties * pProperties,
725 Dispatch const & d ) VULKAN_HPP_NOEXCEPT
726 {
727 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
728 return static_cast<Result>( d.vkEnumerateInstanceLayerProperties( pPropertyCount, reinterpret_cast<VkLayerProperties *>( pProperties ) ) );
729 }
730
731 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
732 // wrapper function for command vkEnumerateInstanceLayerProperties, see
733 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceLayerProperties.html
734 template <typename LayerPropertiesAllocator,
735 typename Dispatch,
736 typename std::enable_if<std::is_same<typename LayerPropertiesAllocator::value_type, LayerProperties>::value, int>::type,
737 typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceLayerProperties ), bool>::type>
738 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<LayerProperties, LayerPropertiesAllocator>>::type
739 enumerateInstanceLayerProperties( Dispatch const & d )
740 {
741 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
742 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
743 VULKAN_HPP_ASSERT( d.vkEnumerateInstanceLayerProperties && "Function <vkEnumerateInstanceLayerProperties> requires <VK_VERSION_1_0>" );
744 # endif
745
746 std::vector<LayerProperties, LayerPropertiesAllocator> properties;
747 uint32_t propertyCount;
748 Result result;
749 do
750 {
751 result = static_cast<Result>( d.vkEnumerateInstanceLayerProperties( &propertyCount, nullptr ) );
752 if ( ( result == Result::eSuccess ) && propertyCount )
753 {
754 properties.resize( propertyCount );
755 result = static_cast<Result>( d.vkEnumerateInstanceLayerProperties( &propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
756 }
757 } while ( result == Result::eIncomplete );
758 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::enumerateInstanceLayerProperties" );
759 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
760 if ( propertyCount < properties.size() )
761 {
762 properties.resize( propertyCount );
763 }
764 return detail::createResultValueType( result, std::move( properties ) );
765 }
766
767 // wrapper function for command vkEnumerateInstanceLayerProperties, see
768 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceLayerProperties.html
769 template <typename LayerPropertiesAllocator,
770 typename Dispatch,
771 typename std::enable_if<std::is_same<typename LayerPropertiesAllocator::value_type, LayerProperties>::value, int>::type,
772 typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceLayerProperties ), bool>::type>
773 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<LayerProperties, LayerPropertiesAllocator>>::type
774 enumerateInstanceLayerProperties( LayerPropertiesAllocator const & layerPropertiesAllocator, Dispatch const & d )
775 {
776 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
777 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
778 VULKAN_HPP_ASSERT( d.vkEnumerateInstanceLayerProperties && "Function <vkEnumerateInstanceLayerProperties> requires <VK_VERSION_1_0>" );
779 # endif
780
781 std::vector<LayerProperties, LayerPropertiesAllocator> properties( layerPropertiesAllocator );
782 uint32_t propertyCount;
783 Result result;
784 do
785 {
786 result = static_cast<Result>( d.vkEnumerateInstanceLayerProperties( &propertyCount, nullptr ) );
787 if ( ( result == Result::eSuccess ) && propertyCount )
788 {
789 properties.resize( propertyCount );
790 result = static_cast<Result>( d.vkEnumerateInstanceLayerProperties( &propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
791 }
792 } while ( result == Result::eIncomplete );
793 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::enumerateInstanceLayerProperties" );
794 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
795 if ( propertyCount < properties.size() )
796 {
797 properties.resize( propertyCount );
798 }
799 return detail::createResultValueType( result, std::move( properties ) );
800 }
801 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
802
803 // wrapper function for command vkEnumerateDeviceLayerProperties, see
804 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceLayerProperties.html
805 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumerateDeviceLayerProperties ), bool>::type>
806 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::enumerateDeviceLayerProperties( uint32_t * pPropertyCount,
807 LayerProperties * pProperties,
808 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
809 {
810 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
811 return static_cast<Result>( d.vkEnumerateDeviceLayerProperties(
812 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkLayerProperties *>( pProperties ) ) );
813 }
814
815 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
816 // wrapper function for command vkEnumerateDeviceLayerProperties, see
817 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceLayerProperties.html
818 template <typename LayerPropertiesAllocator,
819 typename Dispatch,
820 typename std::enable_if<std::is_same<typename LayerPropertiesAllocator::value_type, LayerProperties>::value, int>::type,
821 typename std::enable_if<IS_DISPATCHED( vkEnumerateDeviceLayerProperties ), bool>::type>
822 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<LayerProperties, LayerPropertiesAllocator>>::type
823 PhysicalDevice::enumerateDeviceLayerProperties( Dispatch const & d ) const
824 {
825 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
826 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
827 VULKAN_HPP_ASSERT( d.vkEnumerateDeviceLayerProperties && "Function <vkEnumerateDeviceLayerProperties> requires <VK_VERSION_1_0>" );
828 # endif
829
830 std::vector<LayerProperties, LayerPropertiesAllocator> properties;
831 uint32_t propertyCount;
832 Result result;
833 do
834 {
835 result = static_cast<Result>( d.vkEnumerateDeviceLayerProperties( m_physicalDevice, &propertyCount, nullptr ) );
836 if ( ( result == Result::eSuccess ) && propertyCount )
837 {
838 properties.resize( propertyCount );
839 result = static_cast<Result>(
840 d.vkEnumerateDeviceLayerProperties( m_physicalDevice, &propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
841 }
842 } while ( result == Result::eIncomplete );
843 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceLayerProperties" );
844 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
845 if ( propertyCount < properties.size() )
846 {
847 properties.resize( propertyCount );
848 }
849 return detail::createResultValueType( result, std::move( properties ) );
850 }
851
852 // wrapper function for command vkEnumerateDeviceLayerProperties, see
853 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateDeviceLayerProperties.html
854 template <typename LayerPropertiesAllocator,
855 typename Dispatch,
856 typename std::enable_if<std::is_same<typename LayerPropertiesAllocator::value_type, LayerProperties>::value, int>::type,
857 typename std::enable_if<IS_DISPATCHED( vkEnumerateDeviceLayerProperties ), bool>::type>
858 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<LayerProperties, LayerPropertiesAllocator>>::type
859 PhysicalDevice::enumerateDeviceLayerProperties( LayerPropertiesAllocator const & layerPropertiesAllocator, Dispatch const & d ) const
860 {
861 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
862 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
863 VULKAN_HPP_ASSERT( d.vkEnumerateDeviceLayerProperties && "Function <vkEnumerateDeviceLayerProperties> requires <VK_VERSION_1_0>" );
864 # endif
865
866 std::vector<LayerProperties, LayerPropertiesAllocator> properties( layerPropertiesAllocator );
867 uint32_t propertyCount;
868 Result result;
869 do
870 {
871 result = static_cast<Result>( d.vkEnumerateDeviceLayerProperties( m_physicalDevice, &propertyCount, nullptr ) );
872 if ( ( result == Result::eSuccess ) && propertyCount )
873 {
874 properties.resize( propertyCount );
875 result = static_cast<Result>(
876 d.vkEnumerateDeviceLayerProperties( m_physicalDevice, &propertyCount, reinterpret_cast<VkLayerProperties *>( properties.data() ) ) );
877 }
878 } while ( result == Result::eIncomplete );
879 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateDeviceLayerProperties" );
880 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
881 if ( propertyCount < properties.size() )
882 {
883 properties.resize( propertyCount );
884 }
885 return detail::createResultValueType( result, std::move( properties ) );
886 }
887 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
888
889 // wrapper function for command vkGetDeviceQueue, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceQueue.html
890 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceQueue ), bool>::type>
891 VULKAN_HPP_INLINE void Device::getQueue( uint32_t queueFamilyIndex, uint32_t queueIndex, Queue * pQueue, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
892 {
893 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
894 d.vkGetDeviceQueue( static_cast<VkDevice>( m_device ), queueFamilyIndex, queueIndex, reinterpret_cast<VkQueue *>( pQueue ) );
895 }
896
897 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
898 // wrapper function for command vkGetDeviceQueue, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceQueue.html
899 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceQueue ), bool>::type>
900 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Queue Device::getQueue( uint32_t queueFamilyIndex, uint32_t queueIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
901 {
902 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
903 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
904 VULKAN_HPP_ASSERT( d.vkGetDeviceQueue && "Function <vkGetDeviceQueue> requires <VK_VERSION_1_0>" );
905 # endif
906
907 Queue queue;
908 d.vkGetDeviceQueue( m_device, queueFamilyIndex, queueIndex, reinterpret_cast<VkQueue *>( &queue ) );
909
910 return queue;
911 }
912 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
913
914 // wrapper function for command vkQueueSubmit, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit.html
915 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSubmit ), bool>::type>
916 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
917 Queue::submit( uint32_t submitCount, const SubmitInfo * pSubmits, Fence fence, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
918 {
919 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
920 return static_cast<Result>(
921 d.vkQueueSubmit( static_cast<VkQueue>( m_queue ), submitCount, reinterpret_cast<const VkSubmitInfo *>( pSubmits ), static_cast<VkFence>( fence ) ) );
922 }
923
924 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
925 // wrapper function for command vkQueueSubmit, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit.html
926 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSubmit ), bool>::type>
927 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
928 Queue::submit( ArrayProxy<const SubmitInfo> const & submits, Fence fence, Dispatch const & d ) const
929 {
930 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
931 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
932 VULKAN_HPP_ASSERT( d.vkQueueSubmit && "Function <vkQueueSubmit> requires <VK_VERSION_1_0>" );
933 # endif
934
935 Result result = static_cast<Result>(
936 d.vkQueueSubmit( m_queue, submits.size(), reinterpret_cast<const VkSubmitInfo *>( submits.data() ), static_cast<VkFence>( fence ) ) );
937 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::submit" );
938
939 return detail::createResultValueType( result );
940 }
941 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
942
943 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
944 // wrapper function for command vkQueueWaitIdle, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueWaitIdle.html
945 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueWaitIdle ), bool>::type>
946 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::waitIdle( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
947 {
948 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
949 return static_cast<Result>( d.vkQueueWaitIdle( static_cast<VkQueue>( m_queue ) ) );
950 }
951 #else
952 // wrapper function for command vkQueueWaitIdle, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueWaitIdle.html
953 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueWaitIdle ), bool>::type>
954 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Queue::waitIdle( Dispatch const & d ) const
955 {
956 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
957 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
958 VULKAN_HPP_ASSERT( d.vkQueueWaitIdle && "Function <vkQueueWaitIdle> requires <VK_VERSION_1_0>" );
959 # endif
960
961 Result result = static_cast<Result>( d.vkQueueWaitIdle( m_queue ) );
962 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::waitIdle" );
963
964 return detail::createResultValueType( result );
965 }
966 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
967
968 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
969 // wrapper function for command vkDeviceWaitIdle, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeviceWaitIdle.html
970 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDeviceWaitIdle ), bool>::type>
971 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitIdle( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
972 {
973 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
974 return static_cast<Result>( d.vkDeviceWaitIdle( static_cast<VkDevice>( m_device ) ) );
975 }
976 #else
977 // wrapper function for command vkDeviceWaitIdle, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeviceWaitIdle.html
978 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDeviceWaitIdle ), bool>::type>
979 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::waitIdle( Dispatch const & d ) const
980 {
981 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
982 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
983 VULKAN_HPP_ASSERT( d.vkDeviceWaitIdle && "Function <vkDeviceWaitIdle> requires <VK_VERSION_1_0>" );
984 # endif
985
986 Result result = static_cast<Result>( d.vkDeviceWaitIdle( m_device ) );
987 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitIdle" );
988
989 return detail::createResultValueType( result );
990 }
991 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
992
993 // wrapper function for command vkAllocateMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateMemory.html
994 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAllocateMemory ), bool>::type>
995 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::allocateMemory( const MemoryAllocateInfo * pAllocateInfo,
996 const AllocationCallbacks * pAllocator,
997 DeviceMemory * pMemory,
998 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
999 {
1000 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1001 return static_cast<Result>( d.vkAllocateMemory( static_cast<VkDevice>( m_device ),
1002 reinterpret_cast<const VkMemoryAllocateInfo *>( pAllocateInfo ),
1003 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
1004 reinterpret_cast<VkDeviceMemory *>( pMemory ) ) );
1005 }
1006
1007 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1008 // wrapper function for command vkAllocateMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateMemory.html
1009 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAllocateMemory ), bool>::type>
1010 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeviceMemory>::type
1011 Device::allocateMemory( const MemoryAllocateInfo & allocateInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
1012 {
1013 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1014 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1015 VULKAN_HPP_ASSERT( d.vkAllocateMemory && "Function <vkAllocateMemory> requires <VK_VERSION_1_0>" );
1016 # endif
1017
1018 DeviceMemory memory;
1019 Result result = static_cast<Result>( d.vkAllocateMemory( m_device,
1020 reinterpret_cast<const VkMemoryAllocateInfo *>( &allocateInfo ),
1021 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
1022 reinterpret_cast<VkDeviceMemory *>( &memory ) ) );
1023 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateMemory" );
1024
1025 return detail::createResultValueType( result, std::move( memory ) );
1026 }
1027
1028 # ifndef VULKAN_HPP_NO_SMART_HANDLE
1029 // wrapper function for command vkAllocateMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateMemory.html
1030 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAllocateMemory ), bool>::type>
1031 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DeviceMemory, Dispatch>>::type
1032 Device::allocateMemoryUnique( const MemoryAllocateInfo & allocateInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
1033 {
1034 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1035 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1036 VULKAN_HPP_ASSERT( d.vkAllocateMemory && "Function <vkAllocateMemory> requires <VK_VERSION_1_0>" );
1037 # endif
1038
1039 DeviceMemory memory;
1040 Result result = static_cast<Result>( d.vkAllocateMemory( m_device,
1041 reinterpret_cast<const VkMemoryAllocateInfo *>( &allocateInfo ),
1042 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
1043 reinterpret_cast<VkDeviceMemory *>( &memory ) ) );
1044 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateMemoryUnique" );
1045
1046 return detail::createResultValueType( result, UniqueHandle<DeviceMemory, Dispatch>( memory, detail::ObjectFree<Device, Dispatch>( *this, allocator, d ) ) );
1047 }
1048 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
1049 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1050
1051 // wrapper function for command vkFreeMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeMemory.html
1052 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeMemory ), bool>::type>
1053 VULKAN_HPP_INLINE void Device::freeMemory( DeviceMemory memory, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1054 {
1055 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1056 d.vkFreeMemory( static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( memory ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
1057 }
1058
1059 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1060 // wrapper function for command vkFreeMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeMemory.html
1061 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeMemory ), bool>::type>
1062 VULKAN_HPP_INLINE void Device::freeMemory( DeviceMemory memory, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1063 {
1064 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1065 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1066 VULKAN_HPP_ASSERT( d.vkFreeMemory && "Function <vkFreeMemory> requires <VK_VERSION_1_0>" );
1067 # endif
1068
1069 d.vkFreeMemory( m_device, static_cast<VkDeviceMemory>( memory ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
1070 }
1071 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1072
1073 // wrapper function for command vkFreeMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeMemory.html
1074 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeMemory ), bool>::type>
1075 VULKAN_HPP_INLINE void( Device::free )( DeviceMemory memory, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1076 {
1077 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1078 d.vkFreeMemory( static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( memory ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
1079 }
1080
1081 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1082 // wrapper function for command vkFreeMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeMemory.html
1083 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeMemory ), bool>::type>
1084 VULKAN_HPP_INLINE void( Device::free )( DeviceMemory memory, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1085 {
1086 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1087 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1088 VULKAN_HPP_ASSERT( d.vkFreeMemory && "Function <vkFreeMemory> requires <VK_VERSION_1_0>" );
1089 # endif
1090
1091 d.vkFreeMemory( m_device, static_cast<VkDeviceMemory>( memory ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
1092 }
1093 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1094
1095 // wrapper function for command vkMapMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory.html
1096 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMapMemory ), bool>::type>
1097 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::mapMemory(
1098 DeviceMemory memory, DeviceSize offset, DeviceSize size, MemoryMapFlags flags, void ** ppData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1099 {
1100 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1101 return static_cast<Result>( d.vkMapMemory( static_cast<VkDevice>( m_device ),
1102 static_cast<VkDeviceMemory>( memory ),
1103 static_cast<VkDeviceSize>( offset ),
1104 static_cast<VkDeviceSize>( size ),
1105 static_cast<VkMemoryMapFlags>( flags ),
1106 ppData ) );
1107 }
1108
1109 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1110 // wrapper function for command vkMapMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory.html
1111 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMapMemory ), bool>::type>
1112 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<void *>::type
1113 Device::mapMemory( DeviceMemory memory, DeviceSize offset, DeviceSize size, MemoryMapFlags flags, Dispatch const & d ) const
1114 {
1115 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1116 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1117 VULKAN_HPP_ASSERT( d.vkMapMemory && "Function <vkMapMemory> requires <VK_VERSION_1_0>" );
1118 # endif
1119
1120 void * pData;
1121 Result result = static_cast<Result>( d.vkMapMemory( m_device,
1122 static_cast<VkDeviceMemory>( memory ),
1123 static_cast<VkDeviceSize>( offset ),
1124 static_cast<VkDeviceSize>( size ),
1125 static_cast<VkMemoryMapFlags>( flags ),
1126 &pData ) );
1127 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mapMemory" );
1128
1129 return detail::createResultValueType( result, std::move( pData ) );
1130 }
1131 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1132
1133 // wrapper function for command vkUnmapMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory.html
1134 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUnmapMemory ), bool>::type>
1135 VULKAN_HPP_INLINE void Device::unmapMemory( DeviceMemory memory, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1136 {
1137 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1138 d.vkUnmapMemory( static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( memory ) );
1139 }
1140
1141 // wrapper function for command vkFlushMappedMemoryRanges, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFlushMappedMemoryRanges.html
1142 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFlushMappedMemoryRanges ), bool>::type>
1143 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::flushMappedMemoryRanges( uint32_t memoryRangeCount,
1144 const MappedMemoryRange * pMemoryRanges,
1145 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1146 {
1147 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1148 return static_cast<Result>(
1149 d.vkFlushMappedMemoryRanges( static_cast<VkDevice>( m_device ), memoryRangeCount, reinterpret_cast<const VkMappedMemoryRange *>( pMemoryRanges ) ) );
1150 }
1151
1152 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1153 // wrapper function for command vkFlushMappedMemoryRanges, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFlushMappedMemoryRanges.html
1154 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFlushMappedMemoryRanges ), bool>::type>
1155 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
1156 Device::flushMappedMemoryRanges( ArrayProxy<const MappedMemoryRange> const & memoryRanges, Dispatch const & d ) const
1157 {
1158 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1159 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1160 VULKAN_HPP_ASSERT( d.vkFlushMappedMemoryRanges && "Function <vkFlushMappedMemoryRanges> requires <VK_VERSION_1_0>" );
1161 # endif
1162
1163 Result result =
1164 static_cast<Result>( d.vkFlushMappedMemoryRanges( m_device, memoryRanges.size(), reinterpret_cast<const VkMappedMemoryRange *>( memoryRanges.data() ) ) );
1165 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::flushMappedMemoryRanges" );
1166
1167 return detail::createResultValueType( result );
1168 }
1169 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1170
1171 // wrapper function for command vkInvalidateMappedMemoryRanges, see
1172 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkInvalidateMappedMemoryRanges.html
1173 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkInvalidateMappedMemoryRanges ), bool>::type>
1174 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::invalidateMappedMemoryRanges( uint32_t memoryRangeCount,
1175 const MappedMemoryRange * pMemoryRanges,
1176 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1177 {
1178 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1179 return static_cast<Result>(
1180 d.vkInvalidateMappedMemoryRanges( static_cast<VkDevice>( m_device ), memoryRangeCount, reinterpret_cast<const VkMappedMemoryRange *>( pMemoryRanges ) ) );
1181 }
1182
1183 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1184 // wrapper function for command vkInvalidateMappedMemoryRanges, see
1185 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkInvalidateMappedMemoryRanges.html
1186 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkInvalidateMappedMemoryRanges ), bool>::type>
1187 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
1188 Device::invalidateMappedMemoryRanges( ArrayProxy<const MappedMemoryRange> const & memoryRanges, Dispatch const & d ) const
1189 {
1190 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1191 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1192 VULKAN_HPP_ASSERT( d.vkInvalidateMappedMemoryRanges && "Function <vkInvalidateMappedMemoryRanges> requires <VK_VERSION_1_0>" );
1193 # endif
1194
1195 Result result = static_cast<Result>(
1196 d.vkInvalidateMappedMemoryRanges( m_device, memoryRanges.size(), reinterpret_cast<const VkMappedMemoryRange *>( memoryRanges.data() ) ) );
1197 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::invalidateMappedMemoryRanges" );
1198
1199 return detail::createResultValueType( result );
1200 }
1201 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1202
1203 // wrapper function for command vkGetDeviceMemoryCommitment, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryCommitment.html
1204 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMemoryCommitment ), bool>::type>
1205 VULKAN_HPP_INLINE void Device::getMemoryCommitment( DeviceMemory memory, DeviceSize * pCommittedMemoryInBytes, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1206 {
1207 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1208 d.vkGetDeviceMemoryCommitment(
1209 static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( memory ), reinterpret_cast<VkDeviceSize *>( pCommittedMemoryInBytes ) );
1210 }
1211
1212 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1213 // wrapper function for command vkGetDeviceMemoryCommitment, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryCommitment.html
1214 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMemoryCommitment ), bool>::type>
1215 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceSize Device::getMemoryCommitment( DeviceMemory memory, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1216 {
1217 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1218 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1219 VULKAN_HPP_ASSERT( d.vkGetDeviceMemoryCommitment && "Function <vkGetDeviceMemoryCommitment> requires <VK_VERSION_1_0>" );
1220 # endif
1221
1222 DeviceSize committedMemoryInBytes;
1223 d.vkGetDeviceMemoryCommitment( m_device, static_cast<VkDeviceMemory>( memory ), reinterpret_cast<VkDeviceSize *>( &committedMemoryInBytes ) );
1224
1225 return committedMemoryInBytes;
1226 }
1227 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1228
1229 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
1230 // wrapper function for command vkBindBufferMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory.html
1231 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindBufferMemory ), bool>::type>
1232 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
1233 Device::bindBufferMemory( Buffer buffer, DeviceMemory memory, DeviceSize memoryOffset, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1234 {
1235 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1236 return static_cast<Result>( d.vkBindBufferMemory(
1237 static_cast<VkDevice>( m_device ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceMemory>( memory ), static_cast<VkDeviceSize>( memoryOffset ) ) );
1238 }
1239 #else
1240 // wrapper function for command vkBindBufferMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory.html
1241 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindBufferMemory ), bool>::type>
1242 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
1243 Device::bindBufferMemory( Buffer buffer, DeviceMemory memory, DeviceSize memoryOffset, Dispatch const & d ) const
1244 {
1245 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1246 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1247 VULKAN_HPP_ASSERT( d.vkBindBufferMemory && "Function <vkBindBufferMemory> requires <VK_VERSION_1_0>" );
1248 # endif
1249
1250 Result result = static_cast<Result>(
1251 d.vkBindBufferMemory( m_device, static_cast<VkBuffer>( buffer ), static_cast<VkDeviceMemory>( memory ), static_cast<VkDeviceSize>( memoryOffset ) ) );
1252 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindBufferMemory" );
1253
1254 return detail::createResultValueType( result );
1255 }
1256 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
1257
1258 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
1259 // wrapper function for command vkBindImageMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory.html
1260 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindImageMemory ), bool>::type>
1261 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
1262 Device::bindImageMemory( Image image, DeviceMemory memory, DeviceSize memoryOffset, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1263 {
1264 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1265 return static_cast<Result>( d.vkBindImageMemory(
1266 static_cast<VkDevice>( m_device ), static_cast<VkImage>( image ), static_cast<VkDeviceMemory>( memory ), static_cast<VkDeviceSize>( memoryOffset ) ) );
1267 }
1268 #else
1269 // wrapper function for command vkBindImageMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory.html
1270 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindImageMemory ), bool>::type>
1271 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
1272 Device::bindImageMemory( Image image, DeviceMemory memory, DeviceSize memoryOffset, Dispatch const & d ) const
1273 {
1274 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1275 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1276 VULKAN_HPP_ASSERT( d.vkBindImageMemory && "Function <vkBindImageMemory> requires <VK_VERSION_1_0>" );
1277 # endif
1278
1279 Result result = static_cast<Result>(
1280 d.vkBindImageMemory( m_device, static_cast<VkImage>( image ), static_cast<VkDeviceMemory>( memory ), static_cast<VkDeviceSize>( memoryOffset ) ) );
1281 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindImageMemory" );
1282
1283 return detail::createResultValueType( result );
1284 }
1285 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
1286
1287 // wrapper function for command vkGetBufferMemoryRequirements, see
1288 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements.html
1289 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements ), bool>::type>
1290 VULKAN_HPP_INLINE void
1291 Device::getBufferMemoryRequirements( Buffer buffer, MemoryRequirements * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1292 {
1293 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1294 d.vkGetBufferMemoryRequirements(
1295 static_cast<VkDevice>( m_device ), static_cast<VkBuffer>( buffer ), reinterpret_cast<VkMemoryRequirements *>( pMemoryRequirements ) );
1296 }
1297
1298 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1299 // wrapper function for command vkGetBufferMemoryRequirements, see
1300 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements.html
1301 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements ), bool>::type>
1302 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements Device::getBufferMemoryRequirements( Buffer buffer, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1303 {
1304 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1305 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1306 VULKAN_HPP_ASSERT( d.vkGetBufferMemoryRequirements && "Function <vkGetBufferMemoryRequirements> requires <VK_VERSION_1_0>" );
1307 # endif
1308
1309 MemoryRequirements memoryRequirements;
1310 d.vkGetBufferMemoryRequirements( m_device, static_cast<VkBuffer>( buffer ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) );
1311
1312 return memoryRequirements;
1313 }
1314 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1315
1316 // wrapper function for command vkGetImageMemoryRequirements, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements.html
1317 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements ), bool>::type>
1318 VULKAN_HPP_INLINE void
1319 Device::getImageMemoryRequirements( Image image, MemoryRequirements * pMemoryRequirements, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1320 {
1321 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1322 d.vkGetImageMemoryRequirements(
1323 static_cast<VkDevice>( m_device ), static_cast<VkImage>( image ), reinterpret_cast<VkMemoryRequirements *>( pMemoryRequirements ) );
1324 }
1325
1326 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1327 // wrapper function for command vkGetImageMemoryRequirements, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements.html
1328 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements ), bool>::type>
1329 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements Device::getImageMemoryRequirements( Image image, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1330 {
1331 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1332 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1333 VULKAN_HPP_ASSERT( d.vkGetImageMemoryRequirements && "Function <vkGetImageMemoryRequirements> requires <VK_VERSION_1_0>" );
1334 # endif
1335
1336 MemoryRequirements memoryRequirements;
1337 d.vkGetImageMemoryRequirements( m_device, static_cast<VkImage>( image ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) );
1338
1339 return memoryRequirements;
1340 }
1341 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1342
1343 // wrapper function for command vkGetImageSparseMemoryRequirements, see
1344 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements.html
1345 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements ), bool>::type>
1346 VULKAN_HPP_INLINE void Device::getImageSparseMemoryRequirements( Image image,
1347 uint32_t * pSparseMemoryRequirementCount,
1348 SparseImageMemoryRequirements * pSparseMemoryRequirements,
1349 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1350 {
1351 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1352 d.vkGetImageSparseMemoryRequirements( static_cast<VkDevice>( m_device ),
1353 static_cast<VkImage>( image ),
1354 pSparseMemoryRequirementCount,
1355 reinterpret_cast<VkSparseImageMemoryRequirements *>( pSparseMemoryRequirements ) );
1356 }
1357
1358 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1359 // wrapper function for command vkGetImageSparseMemoryRequirements, see
1360 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements.html
1361 template <typename SparseImageMemoryRequirementsAllocator,
1362 typename Dispatch,
1363 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirementsAllocator::value_type, SparseImageMemoryRequirements>::value, int>::type,
1364 typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements ), bool>::type>
1365 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements, SparseImageMemoryRequirementsAllocator>
1366 Device::getImageSparseMemoryRequirements( Image image, Dispatch const & d ) const
1367 {
1368 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1369 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1370 VULKAN_HPP_ASSERT( d.vkGetImageSparseMemoryRequirements && "Function <vkGetImageSparseMemoryRequirements> requires <VK_VERSION_1_0>" );
1371 # endif
1372
1373 std::vector<SparseImageMemoryRequirements, SparseImageMemoryRequirementsAllocator> sparseMemoryRequirements;
1374 uint32_t sparseMemoryRequirementCount;
1375 d.vkGetImageSparseMemoryRequirements( m_device, static_cast<VkImage>( image ), &sparseMemoryRequirementCount, nullptr );
1376 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
1377 d.vkGetImageSparseMemoryRequirements( m_device,
1378 static_cast<VkImage>( image ),
1379 &sparseMemoryRequirementCount,
1380 reinterpret_cast<VkSparseImageMemoryRequirements *>( sparseMemoryRequirements.data() ) );
1381
1382 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
1383 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
1384 {
1385 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
1386 }
1387 return sparseMemoryRequirements;
1388 }
1389
1390 // wrapper function for command vkGetImageSparseMemoryRequirements, see
1391 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements.html
1392 template <typename SparseImageMemoryRequirementsAllocator,
1393 typename Dispatch,
1394 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirementsAllocator::value_type, SparseImageMemoryRequirements>::value, int>::type,
1395 typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements ), bool>::type>
1396 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements, SparseImageMemoryRequirementsAllocator>
1397 Device::getImageSparseMemoryRequirements( Image image,
1398 SparseImageMemoryRequirementsAllocator const & sparseImageMemoryRequirementsAllocator,
1399 Dispatch const & d ) const
1400 {
1401 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1402 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1403 VULKAN_HPP_ASSERT( d.vkGetImageSparseMemoryRequirements && "Function <vkGetImageSparseMemoryRequirements> requires <VK_VERSION_1_0>" );
1404 # endif
1405
1406 std::vector<SparseImageMemoryRequirements, SparseImageMemoryRequirementsAllocator> sparseMemoryRequirements( sparseImageMemoryRequirementsAllocator );
1407 uint32_t sparseMemoryRequirementCount;
1408 d.vkGetImageSparseMemoryRequirements( m_device, static_cast<VkImage>( image ), &sparseMemoryRequirementCount, nullptr );
1409 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
1410 d.vkGetImageSparseMemoryRequirements( m_device,
1411 static_cast<VkImage>( image ),
1412 &sparseMemoryRequirementCount,
1413 reinterpret_cast<VkSparseImageMemoryRequirements *>( sparseMemoryRequirements.data() ) );
1414
1415 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
1416 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
1417 {
1418 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
1419 }
1420 return sparseMemoryRequirements;
1421 }
1422 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1423
1424 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties, see
1425 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties.html
1426 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties ), bool>::type>
1427 VULKAN_HPP_INLINE void PhysicalDevice::getSparseImageFormatProperties( Format format,
1428 ImageType type,
1429 SampleCountFlagBits samples,
1430 ImageUsageFlags usage,
1431 ImageTiling tiling,
1432 uint32_t * pPropertyCount,
1433 SparseImageFormatProperties * pProperties,
1434 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1435 {
1436 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1437 d.vkGetPhysicalDeviceSparseImageFormatProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
1438 static_cast<VkFormat>( format ),
1439 static_cast<VkImageType>( type ),
1440 static_cast<VkSampleCountFlagBits>( samples ),
1441 static_cast<VkImageUsageFlags>( usage ),
1442 static_cast<VkImageTiling>( tiling ),
1443 pPropertyCount,
1444 reinterpret_cast<VkSparseImageFormatProperties *>( pProperties ) );
1445 }
1446
1447 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1448 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties, see
1449 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties.html
1450 template <typename SparseImageFormatPropertiesAllocator,
1451 typename Dispatch,
1452 typename std::enable_if<std::is_same<typename SparseImageFormatPropertiesAllocator::value_type, SparseImageFormatProperties>::value, int>::type,
1453 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties ), bool>::type>
1454 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties, SparseImageFormatPropertiesAllocator>
1455 PhysicalDevice::getSparseImageFormatProperties(
1456 Format format, ImageType type, SampleCountFlagBits samples, ImageUsageFlags usage, ImageTiling tiling, Dispatch const & d ) const
1457 {
1458 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1459 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1460 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSparseImageFormatProperties &&
1461 "Function <vkGetPhysicalDeviceSparseImageFormatProperties> requires <VK_VERSION_1_0>" );
1462 # endif
1463
1464 std::vector<SparseImageFormatProperties, SparseImageFormatPropertiesAllocator> properties;
1465 uint32_t propertyCount;
1466 d.vkGetPhysicalDeviceSparseImageFormatProperties( m_physicalDevice,
1467 static_cast<VkFormat>( format ),
1468 static_cast<VkImageType>( type ),
1469 static_cast<VkSampleCountFlagBits>( samples ),
1470 static_cast<VkImageUsageFlags>( usage ),
1471 static_cast<VkImageTiling>( tiling ),
1472 &propertyCount,
1473 nullptr );
1474 properties.resize( propertyCount );
1475 d.vkGetPhysicalDeviceSparseImageFormatProperties( m_physicalDevice,
1476 static_cast<VkFormat>( format ),
1477 static_cast<VkImageType>( type ),
1478 static_cast<VkSampleCountFlagBits>( samples ),
1479 static_cast<VkImageUsageFlags>( usage ),
1480 static_cast<VkImageTiling>( tiling ),
1481 &propertyCount,
1482 reinterpret_cast<VkSparseImageFormatProperties *>( properties.data() ) );
1483
1484 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
1485 if ( propertyCount < properties.size() )
1486 {
1487 properties.resize( propertyCount );
1488 }
1489 return properties;
1490 }
1491
1492 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties, see
1493 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties.html
1494 template <typename SparseImageFormatPropertiesAllocator,
1495 typename Dispatch,
1496 typename std::enable_if<std::is_same<typename SparseImageFormatPropertiesAllocator::value_type, SparseImageFormatProperties>::value, int>::type,
1497 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties ), bool>::type>
1498 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties, SparseImageFormatPropertiesAllocator>
1499 PhysicalDevice::getSparseImageFormatProperties( Format format,
1500 ImageType type,
1501 SampleCountFlagBits samples,
1502 ImageUsageFlags usage,
1503 ImageTiling tiling,
1504 SparseImageFormatPropertiesAllocator const & sparseImageFormatPropertiesAllocator,
1505 Dispatch const & d ) const
1506 {
1507 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1508 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1509 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSparseImageFormatProperties &&
1510 "Function <vkGetPhysicalDeviceSparseImageFormatProperties> requires <VK_VERSION_1_0>" );
1511 # endif
1512
1513 std::vector<SparseImageFormatProperties, SparseImageFormatPropertiesAllocator> properties( sparseImageFormatPropertiesAllocator );
1514 uint32_t propertyCount;
1515 d.vkGetPhysicalDeviceSparseImageFormatProperties( m_physicalDevice,
1516 static_cast<VkFormat>( format ),
1517 static_cast<VkImageType>( type ),
1518 static_cast<VkSampleCountFlagBits>( samples ),
1519 static_cast<VkImageUsageFlags>( usage ),
1520 static_cast<VkImageTiling>( tiling ),
1521 &propertyCount,
1522 nullptr );
1523 properties.resize( propertyCount );
1524 d.vkGetPhysicalDeviceSparseImageFormatProperties( m_physicalDevice,
1525 static_cast<VkFormat>( format ),
1526 static_cast<VkImageType>( type ),
1527 static_cast<VkSampleCountFlagBits>( samples ),
1528 static_cast<VkImageUsageFlags>( usage ),
1529 static_cast<VkImageTiling>( tiling ),
1530 &propertyCount,
1531 reinterpret_cast<VkSparseImageFormatProperties *>( properties.data() ) );
1532
1533 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
1534 if ( propertyCount < properties.size() )
1535 {
1536 properties.resize( propertyCount );
1537 }
1538 return properties;
1539 }
1540 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1541
1542 // wrapper function for command vkQueueBindSparse, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueBindSparse.html
1543 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueBindSparse ), bool>::type>
1544 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
1545 Queue::bindSparse( uint32_t bindInfoCount, const BindSparseInfo * pBindInfo, Fence fence, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1546 {
1547 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1548 return static_cast<Result>( d.vkQueueBindSparse(
1549 static_cast<VkQueue>( m_queue ), bindInfoCount, reinterpret_cast<const VkBindSparseInfo *>( pBindInfo ), static_cast<VkFence>( fence ) ) );
1550 }
1551
1552 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1553 // wrapper function for command vkQueueBindSparse, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueBindSparse.html
1554 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueBindSparse ), bool>::type>
1555 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
1556 Queue::bindSparse( ArrayProxy<const BindSparseInfo> const & bindInfo, Fence fence, Dispatch const & d ) const
1557 {
1558 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1559 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1560 VULKAN_HPP_ASSERT( d.vkQueueBindSparse && "Function <vkQueueBindSparse> requires <VK_VERSION_1_0>" );
1561 # endif
1562
1563 Result result = static_cast<Result>(
1564 d.vkQueueBindSparse( m_queue, bindInfo.size(), reinterpret_cast<const VkBindSparseInfo *>( bindInfo.data() ), static_cast<VkFence>( fence ) ) );
1565 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::bindSparse" );
1566
1567 return detail::createResultValueType( result );
1568 }
1569 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1570
1571 // wrapper function for command vkCreateFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFence.html
1572 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateFence ), bool>::type>
1573 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createFence( const FenceCreateInfo * pCreateInfo,
1574 const AllocationCallbacks * pAllocator,
1575 Fence * pFence,
1576 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1577 {
1578 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1579 return static_cast<Result>( d.vkCreateFence( static_cast<VkDevice>( m_device ),
1580 reinterpret_cast<const VkFenceCreateInfo *>( pCreateInfo ),
1581 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
1582 reinterpret_cast<VkFence *>( pFence ) ) );
1583 }
1584
1585 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1586 // wrapper function for command vkCreateFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFence.html
1587 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateFence ), bool>::type>
1588 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Fence>::type
1589 Device::createFence( const FenceCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
1590 {
1591 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1592 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1593 VULKAN_HPP_ASSERT( d.vkCreateFence && "Function <vkCreateFence> requires <VK_VERSION_1_0>" );
1594 # endif
1595
1596 Fence fence;
1597 Result result = static_cast<Result>( d.vkCreateFence( m_device,
1598 reinterpret_cast<const VkFenceCreateInfo *>( &createInfo ),
1599 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
1600 reinterpret_cast<VkFence *>( &fence ) ) );
1601 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createFence" );
1602
1603 return detail::createResultValueType( result, std::move( fence ) );
1604 }
1605
1606 # ifndef VULKAN_HPP_NO_SMART_HANDLE
1607 // wrapper function for command vkCreateFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFence.html
1608 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateFence ), bool>::type>
1609 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Fence, Dispatch>>::type
1610 Device::createFenceUnique( const FenceCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
1611 {
1612 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1613 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1614 VULKAN_HPP_ASSERT( d.vkCreateFence && "Function <vkCreateFence> requires <VK_VERSION_1_0>" );
1615 # endif
1616
1617 Fence fence;
1618 Result result = static_cast<Result>( d.vkCreateFence( m_device,
1619 reinterpret_cast<const VkFenceCreateInfo *>( &createInfo ),
1620 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
1621 reinterpret_cast<VkFence *>( &fence ) ) );
1622 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createFenceUnique" );
1623
1624 return detail::createResultValueType( result, UniqueHandle<Fence, Dispatch>( fence, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
1625 }
1626 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
1627 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1628
1629 // wrapper function for command vkDestroyFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFence.html
1630 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFence ), bool>::type>
1631 VULKAN_HPP_INLINE void Device::destroyFence( Fence fence, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1632 {
1633 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1634 d.vkDestroyFence( static_cast<VkDevice>( m_device ), static_cast<VkFence>( fence ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
1635 }
1636
1637 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1638 // wrapper function for command vkDestroyFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFence.html
1639 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFence ), bool>::type>
1640 VULKAN_HPP_INLINE void Device::destroyFence( Fence fence, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1641 {
1642 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1643 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1644 VULKAN_HPP_ASSERT( d.vkDestroyFence && "Function <vkDestroyFence> requires <VK_VERSION_1_0>" );
1645 # endif
1646
1647 d.vkDestroyFence( m_device, static_cast<VkFence>( fence ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
1648 }
1649 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1650
1651 // wrapper function for command vkDestroyFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFence.html
1652 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFence ), bool>::type>
1653 VULKAN_HPP_INLINE void Device::destroy( Fence fence, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1654 {
1655 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1656 d.vkDestroyFence( static_cast<VkDevice>( m_device ), static_cast<VkFence>( fence ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
1657 }
1658
1659 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1660 // wrapper function for command vkDestroyFence, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFence.html
1661 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFence ), bool>::type>
1662 VULKAN_HPP_INLINE void Device::destroy( Fence fence, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1663 {
1664 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1665 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1666 VULKAN_HPP_ASSERT( d.vkDestroyFence && "Function <vkDestroyFence> requires <VK_VERSION_1_0>" );
1667 # endif
1668
1669 d.vkDestroyFence( m_device, static_cast<VkFence>( fence ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
1670 }
1671 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1672
1673 // wrapper function for command vkResetFences, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetFences.html
1674 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetFences ), bool>::type>
1675 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::resetFences( uint32_t fenceCount, const Fence * pFences, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1676 {
1677 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1678 return static_cast<Result>( d.vkResetFences( static_cast<VkDevice>( m_device ), fenceCount, reinterpret_cast<const VkFence *>( pFences ) ) );
1679 }
1680
1681 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1682 // wrapper function for command vkResetFences, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetFences.html
1683 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetFences ), bool>::type>
1684 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::resetFences( ArrayProxy<const Fence> const & fences,
1685 Dispatch const & d ) const
1686 {
1687 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1688 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1689 VULKAN_HPP_ASSERT( d.vkResetFences && "Function <vkResetFences> requires <VK_VERSION_1_0>" );
1690 # endif
1691
1692 Result result = static_cast<Result>( d.vkResetFences( m_device, fences.size(), reinterpret_cast<const VkFence *>( fences.data() ) ) );
1693 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetFences" );
1694
1695 return detail::createResultValueType( result );
1696 }
1697 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1698
1699 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
1700 // wrapper function for command vkGetFenceStatus, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceStatus.html
1701 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFenceStatus ), bool>::type>
1702 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFenceStatus( Fence fence, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1703 {
1704 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1705 return static_cast<Result>( d.vkGetFenceStatus( static_cast<VkDevice>( m_device ), static_cast<VkFence>( fence ) ) );
1706 }
1707 #else
1708 // wrapper function for command vkGetFenceStatus, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceStatus.html
1709 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFenceStatus ), bool>::type>
1710 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFenceStatus( Fence fence, Dispatch const & d ) const
1711 {
1712 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1713 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1714 VULKAN_HPP_ASSERT( d.vkGetFenceStatus && "Function <vkGetFenceStatus> requires <VK_VERSION_1_0>" );
1715 # endif
1716
1717 Result result = static_cast<Result>( d.vkGetFenceStatus( m_device, static_cast<VkFence>( fence ) ) );
1718 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceStatus", { Result::eSuccess, Result::eNotReady } );
1719
1720 return static_cast<Result>( result );
1721 }
1722 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
1723
1724 // wrapper function for command vkWaitForFences, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForFences.html
1725 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitForFences ), bool>::type>
1726 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
1727 Device::waitForFences( uint32_t fenceCount, const Fence * pFences, Bool32 waitAll, uint64_t timeout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1728 {
1729 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1730 return static_cast<Result>( d.vkWaitForFences(
1731 static_cast<VkDevice>( m_device ), fenceCount, reinterpret_cast<const VkFence *>( pFences ), static_cast<VkBool32>( waitAll ), timeout ) );
1732 }
1733
1734 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1735 // wrapper function for command vkWaitForFences, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForFences.html
1736 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitForFences ), bool>::type>
1737 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
1738 Device::waitForFences( ArrayProxy<const Fence> const & fences, Bool32 waitAll, uint64_t timeout, Dispatch const & d ) const
1739 {
1740 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1741 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1742 VULKAN_HPP_ASSERT( d.vkWaitForFences && "Function <vkWaitForFences> requires <VK_VERSION_1_0>" );
1743 # endif
1744
1745 Result result = static_cast<Result>(
1746 d.vkWaitForFences( m_device, fences.size(), reinterpret_cast<const VkFence *>( fences.data() ), static_cast<VkBool32>( waitAll ), timeout ) );
1747 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitForFences", { Result::eSuccess, Result::eTimeout } );
1748
1749 return static_cast<Result>( result );
1750 }
1751 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1752
1753 // wrapper function for command vkCreateSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSemaphore.html
1754 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSemaphore ), bool>::type>
1755 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createSemaphore( const SemaphoreCreateInfo * pCreateInfo,
1756 const AllocationCallbacks * pAllocator,
1757 Semaphore * pSemaphore,
1758 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1759 {
1760 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1761 return static_cast<Result>( d.vkCreateSemaphore( static_cast<VkDevice>( m_device ),
1762 reinterpret_cast<const VkSemaphoreCreateInfo *>( pCreateInfo ),
1763 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
1764 reinterpret_cast<VkSemaphore *>( pSemaphore ) ) );
1765 }
1766
1767 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1768 // wrapper function for command vkCreateSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSemaphore.html
1769 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSemaphore ), bool>::type>
1770 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Semaphore>::type
1771 Device::createSemaphore( const SemaphoreCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
1772 {
1773 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1774 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1775 VULKAN_HPP_ASSERT( d.vkCreateSemaphore && "Function <vkCreateSemaphore> requires <VK_VERSION_1_0>" );
1776 # endif
1777
1778 Semaphore semaphore;
1779 Result result = static_cast<Result>( d.vkCreateSemaphore( m_device,
1780 reinterpret_cast<const VkSemaphoreCreateInfo *>( &createInfo ),
1781 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
1782 reinterpret_cast<VkSemaphore *>( &semaphore ) ) );
1783 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSemaphore" );
1784
1785 return detail::createResultValueType( result, std::move( semaphore ) );
1786 }
1787
1788 # ifndef VULKAN_HPP_NO_SMART_HANDLE
1789 // wrapper function for command vkCreateSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSemaphore.html
1790 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSemaphore ), bool>::type>
1791 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Semaphore, Dispatch>>::type
1792 Device::createSemaphoreUnique( const SemaphoreCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
1793 {
1794 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1795 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1796 VULKAN_HPP_ASSERT( d.vkCreateSemaphore && "Function <vkCreateSemaphore> requires <VK_VERSION_1_0>" );
1797 # endif
1798
1799 Semaphore semaphore;
1800 Result result = static_cast<Result>( d.vkCreateSemaphore( m_device,
1801 reinterpret_cast<const VkSemaphoreCreateInfo *>( &createInfo ),
1802 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
1803 reinterpret_cast<VkSemaphore *>( &semaphore ) ) );
1804 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSemaphoreUnique" );
1805
1806 return detail::createResultValueType( result,
1807 UniqueHandle<Semaphore, Dispatch>( semaphore, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
1808 }
1809 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
1810 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1811
1812 // wrapper function for command vkDestroySemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySemaphore.html
1813 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySemaphore ), bool>::type>
1814 VULKAN_HPP_INLINE void Device::destroySemaphore( Semaphore semaphore, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1815 {
1816 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1817 d.vkDestroySemaphore(
1818 static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( semaphore ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
1819 }
1820
1821 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1822 // wrapper function for command vkDestroySemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySemaphore.html
1823 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySemaphore ), bool>::type>
1824 VULKAN_HPP_INLINE void
1825 Device::destroySemaphore( Semaphore semaphore, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1826 {
1827 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1828 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1829 VULKAN_HPP_ASSERT( d.vkDestroySemaphore && "Function <vkDestroySemaphore> requires <VK_VERSION_1_0>" );
1830 # endif
1831
1832 d.vkDestroySemaphore( m_device, static_cast<VkSemaphore>( semaphore ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
1833 }
1834 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1835
1836 // wrapper function for command vkDestroySemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySemaphore.html
1837 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySemaphore ), bool>::type>
1838 VULKAN_HPP_INLINE void Device::destroy( Semaphore semaphore, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1839 {
1840 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1841 d.vkDestroySemaphore(
1842 static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( semaphore ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
1843 }
1844
1845 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1846 // wrapper function for command vkDestroySemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySemaphore.html
1847 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySemaphore ), bool>::type>
1848 VULKAN_HPP_INLINE void Device::destroy( Semaphore semaphore, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1849 {
1850 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1851 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1852 VULKAN_HPP_ASSERT( d.vkDestroySemaphore && "Function <vkDestroySemaphore> requires <VK_VERSION_1_0>" );
1853 # endif
1854
1855 d.vkDestroySemaphore( m_device, static_cast<VkSemaphore>( semaphore ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
1856 }
1857 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1858
1859 // wrapper function for command vkCreateQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateQueryPool.html
1860 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateQueryPool ), bool>::type>
1861 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createQueryPool( const QueryPoolCreateInfo * pCreateInfo,
1862 const AllocationCallbacks * pAllocator,
1863 QueryPool * pQueryPool,
1864 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1865 {
1866 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1867 return static_cast<Result>( d.vkCreateQueryPool( static_cast<VkDevice>( m_device ),
1868 reinterpret_cast<const VkQueryPoolCreateInfo *>( pCreateInfo ),
1869 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
1870 reinterpret_cast<VkQueryPool *>( pQueryPool ) ) );
1871 }
1872
1873 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1874 // wrapper function for command vkCreateQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateQueryPool.html
1875 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateQueryPool ), bool>::type>
1876 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<QueryPool>::type
1877 Device::createQueryPool( const QueryPoolCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
1878 {
1879 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1880 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1881 VULKAN_HPP_ASSERT( d.vkCreateQueryPool && "Function <vkCreateQueryPool> requires <VK_VERSION_1_0>" );
1882 # endif
1883
1884 QueryPool queryPool;
1885 Result result = static_cast<Result>( d.vkCreateQueryPool( m_device,
1886 reinterpret_cast<const VkQueryPoolCreateInfo *>( &createInfo ),
1887 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
1888 reinterpret_cast<VkQueryPool *>( &queryPool ) ) );
1889 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createQueryPool" );
1890
1891 return detail::createResultValueType( result, std::move( queryPool ) );
1892 }
1893
1894 # ifndef VULKAN_HPP_NO_SMART_HANDLE
1895 // wrapper function for command vkCreateQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateQueryPool.html
1896 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateQueryPool ), bool>::type>
1897 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<QueryPool, Dispatch>>::type
1898 Device::createQueryPoolUnique( const QueryPoolCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
1899 {
1900 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1901 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1902 VULKAN_HPP_ASSERT( d.vkCreateQueryPool && "Function <vkCreateQueryPool> requires <VK_VERSION_1_0>" );
1903 # endif
1904
1905 QueryPool queryPool;
1906 Result result = static_cast<Result>( d.vkCreateQueryPool( m_device,
1907 reinterpret_cast<const VkQueryPoolCreateInfo *>( &createInfo ),
1908 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
1909 reinterpret_cast<VkQueryPool *>( &queryPool ) ) );
1910 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createQueryPoolUnique" );
1911
1912 return detail::createResultValueType( result,
1913 UniqueHandle<QueryPool, Dispatch>( queryPool, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
1914 }
1915 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
1916 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1917
1918 // wrapper function for command vkDestroyQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyQueryPool.html
1919 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyQueryPool ), bool>::type>
1920 VULKAN_HPP_INLINE void Device::destroyQueryPool( QueryPool queryPool, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1921 {
1922 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1923 d.vkDestroyQueryPool(
1924 static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( queryPool ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
1925 }
1926
1927 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1928 // wrapper function for command vkDestroyQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyQueryPool.html
1929 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyQueryPool ), bool>::type>
1930 VULKAN_HPP_INLINE void
1931 Device::destroyQueryPool( QueryPool queryPool, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1932 {
1933 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1934 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1935 VULKAN_HPP_ASSERT( d.vkDestroyQueryPool && "Function <vkDestroyQueryPool> requires <VK_VERSION_1_0>" );
1936 # endif
1937
1938 d.vkDestroyQueryPool( m_device, static_cast<VkQueryPool>( queryPool ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
1939 }
1940 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1941
1942 // wrapper function for command vkDestroyQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyQueryPool.html
1943 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyQueryPool ), bool>::type>
1944 VULKAN_HPP_INLINE void Device::destroy( QueryPool queryPool, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1945 {
1946 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1947 d.vkDestroyQueryPool(
1948 static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( queryPool ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
1949 }
1950
1951 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1952 // wrapper function for command vkDestroyQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyQueryPool.html
1953 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyQueryPool ), bool>::type>
1954 VULKAN_HPP_INLINE void Device::destroy( QueryPool queryPool, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1955 {
1956 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1957 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1958 VULKAN_HPP_ASSERT( d.vkDestroyQueryPool && "Function <vkDestroyQueryPool> requires <VK_VERSION_1_0>" );
1959 # endif
1960
1961 d.vkDestroyQueryPool( m_device, static_cast<VkQueryPool>( queryPool ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
1962 }
1963 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
1964
1965 // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html
1966 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetQueryPoolResults ), bool>::type>
1967 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getQueryPoolResults( QueryPool queryPool,
1968 uint32_t firstQuery,
1969 uint32_t queryCount,
1970 size_t dataSize,
1971 void * pData,
1972 DeviceSize stride,
1973 QueryResultFlags flags,
1974 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
1975 {
1976 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1977 return static_cast<Result>( d.vkGetQueryPoolResults( static_cast<VkDevice>( m_device ),
1978 static_cast<VkQueryPool>( queryPool ),
1979 firstQuery,
1980 queryCount,
1981 dataSize,
1982 pData,
1983 static_cast<VkDeviceSize>( stride ),
1984 static_cast<VkQueryResultFlags>( flags ) ) );
1985 }
1986
1987 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
1988 // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html
1989 template <typename DataType,
1990 typename DataTypeAllocator,
1991 typename Dispatch,
1992 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
1993 typename std::enable_if<IS_DISPATCHED( vkGetQueryPoolResults ), bool>::type>
1994 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<DataType, DataTypeAllocator>> Device::getQueryPoolResults(
1995 QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, DeviceSize stride, QueryResultFlags flags, Dispatch const & d ) const
1996 {
1997 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
1998 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
1999 VULKAN_HPP_ASSERT( d.vkGetQueryPoolResults && "Function <vkGetQueryPoolResults> requires <VK_VERSION_1_0>" );
2000 # endif
2001
2002 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
2003 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
2004 Result result = static_cast<Result>( d.vkGetQueryPoolResults( m_device,
2005 static_cast<VkQueryPool>( queryPool ),
2006 firstQuery,
2007 queryCount,
2008 data.size() * sizeof( DataType ),
2009 reinterpret_cast<void *>( data.data() ),
2010 static_cast<VkDeviceSize>( stride ),
2011 static_cast<VkQueryResultFlags>( flags ) ) );
2012 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getQueryPoolResults", { Result::eSuccess, Result::eNotReady } );
2013
2014 return ResultValue<std::vector<DataType, DataTypeAllocator>>( result, std::move( data ) );
2015 }
2016
2017 // wrapper function for command vkGetQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueryPoolResults.html
2018 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetQueryPoolResults ), bool>::type>
2019 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<DataType> Device::getQueryPoolResult(
2020 QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, DeviceSize stride, QueryResultFlags flags, Dispatch const & d ) const
2021 {
2022 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2023 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2024 VULKAN_HPP_ASSERT( d.vkGetQueryPoolResults && "Function <vkGetQueryPoolResults> requires <VK_VERSION_1_0>" );
2025 # endif
2026
2027 DataType data;
2028 Result result = static_cast<Result>( d.vkGetQueryPoolResults( m_device,
2029 static_cast<VkQueryPool>( queryPool ),
2030 firstQuery,
2031 queryCount,
2032 sizeof( DataType ),
2033 reinterpret_cast<void *>( &data ),
2034 static_cast<VkDeviceSize>( stride ),
2035 static_cast<VkQueryResultFlags>( flags ) ) );
2036 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getQueryPoolResult", { Result::eSuccess, Result::eNotReady } );
2037
2038 return ResultValue<DataType>( result, std::move( data ) );
2039 }
2040 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2041
2042 // wrapper function for command vkCreateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBuffer.html
2043 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBuffer ), bool>::type>
2044 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createBuffer( const BufferCreateInfo * pCreateInfo,
2045 const AllocationCallbacks * pAllocator,
2046 Buffer * pBuffer,
2047 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2048 {
2049 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2050 return static_cast<Result>( d.vkCreateBuffer( static_cast<VkDevice>( m_device ),
2051 reinterpret_cast<const VkBufferCreateInfo *>( pCreateInfo ),
2052 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
2053 reinterpret_cast<VkBuffer *>( pBuffer ) ) );
2054 }
2055
2056 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2057 // wrapper function for command vkCreateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBuffer.html
2058 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBuffer ), bool>::type>
2059 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Buffer>::type
2060 Device::createBuffer( const BufferCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
2061 {
2062 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2063 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2064 VULKAN_HPP_ASSERT( d.vkCreateBuffer && "Function <vkCreateBuffer> requires <VK_VERSION_1_0>" );
2065 # endif
2066
2067 Buffer buffer;
2068 Result result = static_cast<Result>( d.vkCreateBuffer( m_device,
2069 reinterpret_cast<const VkBufferCreateInfo *>( &createInfo ),
2070 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
2071 reinterpret_cast<VkBuffer *>( &buffer ) ) );
2072 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBuffer" );
2073
2074 return detail::createResultValueType( result, std::move( buffer ) );
2075 }
2076
2077 # ifndef VULKAN_HPP_NO_SMART_HANDLE
2078 // wrapper function for command vkCreateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBuffer.html
2079 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBuffer ), bool>::type>
2080 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Buffer, Dispatch>>::type
2081 Device::createBufferUnique( const BufferCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
2082 {
2083 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2084 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2085 VULKAN_HPP_ASSERT( d.vkCreateBuffer && "Function <vkCreateBuffer> requires <VK_VERSION_1_0>" );
2086 # endif
2087
2088 Buffer buffer;
2089 Result result = static_cast<Result>( d.vkCreateBuffer( m_device,
2090 reinterpret_cast<const VkBufferCreateInfo *>( &createInfo ),
2091 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
2092 reinterpret_cast<VkBuffer *>( &buffer ) ) );
2093 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferUnique" );
2094
2095 return detail::createResultValueType( result, UniqueHandle<Buffer, Dispatch>( buffer, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
2096 }
2097 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
2098 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2099
2100 // wrapper function for command vkDestroyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBuffer.html
2101 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBuffer ), bool>::type>
2102 VULKAN_HPP_INLINE void Device::destroyBuffer( Buffer buffer, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2103 {
2104 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2105 d.vkDestroyBuffer( static_cast<VkDevice>( m_device ), static_cast<VkBuffer>( buffer ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
2106 }
2107
2108 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2109 // wrapper function for command vkDestroyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBuffer.html
2110 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBuffer ), bool>::type>
2111 VULKAN_HPP_INLINE void Device::destroyBuffer( Buffer buffer, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2112 {
2113 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2114 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2115 VULKAN_HPP_ASSERT( d.vkDestroyBuffer && "Function <vkDestroyBuffer> requires <VK_VERSION_1_0>" );
2116 # endif
2117
2118 d.vkDestroyBuffer( m_device, static_cast<VkBuffer>( buffer ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
2119 }
2120 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2121
2122 // wrapper function for command vkDestroyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBuffer.html
2123 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBuffer ), bool>::type>
2124 VULKAN_HPP_INLINE void Device::destroy( Buffer buffer, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2125 {
2126 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2127 d.vkDestroyBuffer( static_cast<VkDevice>( m_device ), static_cast<VkBuffer>( buffer ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
2128 }
2129
2130 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2131 // wrapper function for command vkDestroyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBuffer.html
2132 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBuffer ), bool>::type>
2133 VULKAN_HPP_INLINE void Device::destroy( Buffer buffer, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2134 {
2135 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2136 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2137 VULKAN_HPP_ASSERT( d.vkDestroyBuffer && "Function <vkDestroyBuffer> requires <VK_VERSION_1_0>" );
2138 # endif
2139
2140 d.vkDestroyBuffer( m_device, static_cast<VkBuffer>( buffer ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
2141 }
2142 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2143
2144 // wrapper function for command vkCreateImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImage.html
2145 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImage ), bool>::type>
2146 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createImage( const ImageCreateInfo * pCreateInfo,
2147 const AllocationCallbacks * pAllocator,
2148 Image * pImage,
2149 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2150 {
2151 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2152 return static_cast<Result>( d.vkCreateImage( static_cast<VkDevice>( m_device ),
2153 reinterpret_cast<const VkImageCreateInfo *>( pCreateInfo ),
2154 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
2155 reinterpret_cast<VkImage *>( pImage ) ) );
2156 }
2157
2158 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2159 // wrapper function for command vkCreateImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImage.html
2160 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImage ), bool>::type>
2161 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Image>::type
2162 Device::createImage( const ImageCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
2163 {
2164 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2165 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2166 VULKAN_HPP_ASSERT( d.vkCreateImage && "Function <vkCreateImage> requires <VK_VERSION_1_0>" );
2167 # endif
2168
2169 Image image;
2170 Result result = static_cast<Result>( d.vkCreateImage( m_device,
2171 reinterpret_cast<const VkImageCreateInfo *>( &createInfo ),
2172 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
2173 reinterpret_cast<VkImage *>( &image ) ) );
2174 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createImage" );
2175
2176 return detail::createResultValueType( result, std::move( image ) );
2177 }
2178
2179 # ifndef VULKAN_HPP_NO_SMART_HANDLE
2180 // wrapper function for command vkCreateImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImage.html
2181 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImage ), bool>::type>
2182 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Image, Dispatch>>::type
2183 Device::createImageUnique( const ImageCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
2184 {
2185 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2186 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2187 VULKAN_HPP_ASSERT( d.vkCreateImage && "Function <vkCreateImage> requires <VK_VERSION_1_0>" );
2188 # endif
2189
2190 Image image;
2191 Result result = static_cast<Result>( d.vkCreateImage( m_device,
2192 reinterpret_cast<const VkImageCreateInfo *>( &createInfo ),
2193 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
2194 reinterpret_cast<VkImage *>( &image ) ) );
2195 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createImageUnique" );
2196
2197 return detail::createResultValueType( result, UniqueHandle<Image, Dispatch>( image, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
2198 }
2199 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
2200 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2201
2202 // wrapper function for command vkDestroyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImage.html
2203 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImage ), bool>::type>
2204 VULKAN_HPP_INLINE void Device::destroyImage( Image image, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2205 {
2206 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2207 d.vkDestroyImage( static_cast<VkDevice>( m_device ), static_cast<VkImage>( image ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
2208 }
2209
2210 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2211 // wrapper function for command vkDestroyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImage.html
2212 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImage ), bool>::type>
2213 VULKAN_HPP_INLINE void Device::destroyImage( Image image, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2214 {
2215 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2216 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2217 VULKAN_HPP_ASSERT( d.vkDestroyImage && "Function <vkDestroyImage> requires <VK_VERSION_1_0>" );
2218 # endif
2219
2220 d.vkDestroyImage( m_device, static_cast<VkImage>( image ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
2221 }
2222 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2223
2224 // wrapper function for command vkDestroyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImage.html
2225 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImage ), bool>::type>
2226 VULKAN_HPP_INLINE void Device::destroy( Image image, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2227 {
2228 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2229 d.vkDestroyImage( static_cast<VkDevice>( m_device ), static_cast<VkImage>( image ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
2230 }
2231
2232 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2233 // wrapper function for command vkDestroyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImage.html
2234 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImage ), bool>::type>
2235 VULKAN_HPP_INLINE void Device::destroy( Image image, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2236 {
2237 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2238 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2239 VULKAN_HPP_ASSERT( d.vkDestroyImage && "Function <vkDestroyImage> requires <VK_VERSION_1_0>" );
2240 # endif
2241
2242 d.vkDestroyImage( m_device, static_cast<VkImage>( image ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
2243 }
2244 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2245
2246 // wrapper function for command vkGetImageSubresourceLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout.html
2247 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout ), bool>::type>
2248 VULKAN_HPP_INLINE void Device::getImageSubresourceLayout( Image image,
2249 const ImageSubresource * pSubresource,
2250 SubresourceLayout * pLayout,
2251 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2252 {
2253 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2254 d.vkGetImageSubresourceLayout( static_cast<VkDevice>( m_device ),
2255 static_cast<VkImage>( image ),
2256 reinterpret_cast<const VkImageSubresource *>( pSubresource ),
2257 reinterpret_cast<VkSubresourceLayout *>( pLayout ) );
2258 }
2259
2260 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2261 // wrapper function for command vkGetImageSubresourceLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout.html
2262 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout ), bool>::type>
2263 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout Device::getImageSubresourceLayout( Image image,
2264 const ImageSubresource & subresource,
2265 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2266 {
2267 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2268 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2269 VULKAN_HPP_ASSERT( d.vkGetImageSubresourceLayout && "Function <vkGetImageSubresourceLayout> requires <VK_VERSION_1_0>" );
2270 # endif
2271
2272 SubresourceLayout layout;
2273 d.vkGetImageSubresourceLayout( m_device,
2274 static_cast<VkImage>( image ),
2275 reinterpret_cast<const VkImageSubresource *>( &subresource ),
2276 reinterpret_cast<VkSubresourceLayout *>( &layout ) );
2277
2278 return layout;
2279 }
2280 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2281
2282 // wrapper function for command vkCreateImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImageView.html
2283 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImageView ), bool>::type>
2284 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createImageView( const ImageViewCreateInfo * pCreateInfo,
2285 const AllocationCallbacks * pAllocator,
2286 ImageView * pView,
2287 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2288 {
2289 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2290 return static_cast<Result>( d.vkCreateImageView( static_cast<VkDevice>( m_device ),
2291 reinterpret_cast<const VkImageViewCreateInfo *>( pCreateInfo ),
2292 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
2293 reinterpret_cast<VkImageView *>( pView ) ) );
2294 }
2295
2296 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2297 // wrapper function for command vkCreateImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImageView.html
2298 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImageView ), bool>::type>
2299 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageView>::type
2300 Device::createImageView( const ImageViewCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
2301 {
2302 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2303 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2304 VULKAN_HPP_ASSERT( d.vkCreateImageView && "Function <vkCreateImageView> requires <VK_VERSION_1_0>" );
2305 # endif
2306
2307 ImageView view;
2308 Result result = static_cast<Result>( d.vkCreateImageView( m_device,
2309 reinterpret_cast<const VkImageViewCreateInfo *>( &createInfo ),
2310 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
2311 reinterpret_cast<VkImageView *>( &view ) ) );
2312 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createImageView" );
2313
2314 return detail::createResultValueType( result, std::move( view ) );
2315 }
2316
2317 # ifndef VULKAN_HPP_NO_SMART_HANDLE
2318 // wrapper function for command vkCreateImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImageView.html
2319 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImageView ), bool>::type>
2320 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<ImageView, Dispatch>>::type
2321 Device::createImageViewUnique( const ImageViewCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
2322 {
2323 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2324 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2325 VULKAN_HPP_ASSERT( d.vkCreateImageView && "Function <vkCreateImageView> requires <VK_VERSION_1_0>" );
2326 # endif
2327
2328 ImageView view;
2329 Result result = static_cast<Result>( d.vkCreateImageView( m_device,
2330 reinterpret_cast<const VkImageViewCreateInfo *>( &createInfo ),
2331 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
2332 reinterpret_cast<VkImageView *>( &view ) ) );
2333 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createImageViewUnique" );
2334
2335 return detail::createResultValueType( result, UniqueHandle<ImageView, Dispatch>( view, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
2336 }
2337 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
2338 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2339
2340 // wrapper function for command vkDestroyImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImageView.html
2341 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImageView ), bool>::type>
2342 VULKAN_HPP_INLINE void Device::destroyImageView( ImageView imageView, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2343 {
2344 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2345 d.vkDestroyImageView(
2346 static_cast<VkDevice>( m_device ), static_cast<VkImageView>( imageView ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
2347 }
2348
2349 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2350 // wrapper function for command vkDestroyImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImageView.html
2351 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImageView ), bool>::type>
2352 VULKAN_HPP_INLINE void
2353 Device::destroyImageView( ImageView imageView, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2354 {
2355 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2356 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2357 VULKAN_HPP_ASSERT( d.vkDestroyImageView && "Function <vkDestroyImageView> requires <VK_VERSION_1_0>" );
2358 # endif
2359
2360 d.vkDestroyImageView( m_device, static_cast<VkImageView>( imageView ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
2361 }
2362 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2363
2364 // wrapper function for command vkDestroyImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImageView.html
2365 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImageView ), bool>::type>
2366 VULKAN_HPP_INLINE void Device::destroy( ImageView imageView, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2367 {
2368 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2369 d.vkDestroyImageView(
2370 static_cast<VkDevice>( m_device ), static_cast<VkImageView>( imageView ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
2371 }
2372
2373 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2374 // wrapper function for command vkDestroyImageView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyImageView.html
2375 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyImageView ), bool>::type>
2376 VULKAN_HPP_INLINE void Device::destroy( ImageView imageView, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2377 {
2378 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2379 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2380 VULKAN_HPP_ASSERT( d.vkDestroyImageView && "Function <vkDestroyImageView> requires <VK_VERSION_1_0>" );
2381 # endif
2382
2383 d.vkDestroyImageView( m_device, static_cast<VkImageView>( imageView ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
2384 }
2385 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2386
2387 // wrapper function for command vkCreateCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCommandPool.html
2388 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCommandPool ), bool>::type>
2389 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createCommandPool( const CommandPoolCreateInfo * pCreateInfo,
2390 const AllocationCallbacks * pAllocator,
2391 CommandPool * pCommandPool,
2392 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2393 {
2394 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2395 return static_cast<Result>( d.vkCreateCommandPool( static_cast<VkDevice>( m_device ),
2396 reinterpret_cast<const VkCommandPoolCreateInfo *>( pCreateInfo ),
2397 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
2398 reinterpret_cast<VkCommandPool *>( pCommandPool ) ) );
2399 }
2400
2401 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2402 // wrapper function for command vkCreateCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCommandPool.html
2403 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCommandPool ), bool>::type>
2404 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CommandPool>::type
2405 Device::createCommandPool( const CommandPoolCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
2406 {
2407 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2408 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2409 VULKAN_HPP_ASSERT( d.vkCreateCommandPool && "Function <vkCreateCommandPool> requires <VK_VERSION_1_0>" );
2410 # endif
2411
2412 CommandPool commandPool;
2413 Result result = static_cast<Result>( d.vkCreateCommandPool( m_device,
2414 reinterpret_cast<const VkCommandPoolCreateInfo *>( &createInfo ),
2415 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
2416 reinterpret_cast<VkCommandPool *>( &commandPool ) ) );
2417 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCommandPool" );
2418
2419 return detail::createResultValueType( result, std::move( commandPool ) );
2420 }
2421
2422 # ifndef VULKAN_HPP_NO_SMART_HANDLE
2423 // wrapper function for command vkCreateCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCommandPool.html
2424 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCommandPool ), bool>::type>
2425 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<CommandPool, Dispatch>>::type
2426 Device::createCommandPoolUnique( const CommandPoolCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
2427 {
2428 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2429 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2430 VULKAN_HPP_ASSERT( d.vkCreateCommandPool && "Function <vkCreateCommandPool> requires <VK_VERSION_1_0>" );
2431 # endif
2432
2433 CommandPool commandPool;
2434 Result result = static_cast<Result>( d.vkCreateCommandPool( m_device,
2435 reinterpret_cast<const VkCommandPoolCreateInfo *>( &createInfo ),
2436 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
2437 reinterpret_cast<VkCommandPool *>( &commandPool ) ) );
2438 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCommandPoolUnique" );
2439
2440 return detail::createResultValueType( result,
2441 UniqueHandle<CommandPool, Dispatch>( commandPool, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
2442 }
2443 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
2444 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2445
2446 // wrapper function for command vkDestroyCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCommandPool.html
2447 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCommandPool ), bool>::type>
2448 VULKAN_HPP_INLINE void
2449 Device::destroyCommandPool( CommandPool commandPool, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2450 {
2451 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2452 d.vkDestroyCommandPool(
2453 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( commandPool ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
2454 }
2455
2456 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2457 // wrapper function for command vkDestroyCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCommandPool.html
2458 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCommandPool ), bool>::type>
2459 VULKAN_HPP_INLINE void
2460 Device::destroyCommandPool( CommandPool commandPool, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2461 {
2462 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2463 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2464 VULKAN_HPP_ASSERT( d.vkDestroyCommandPool && "Function <vkDestroyCommandPool> requires <VK_VERSION_1_0>" );
2465 # endif
2466
2467 d.vkDestroyCommandPool( m_device, static_cast<VkCommandPool>( commandPool ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
2468 }
2469 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2470
2471 // wrapper function for command vkDestroyCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCommandPool.html
2472 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCommandPool ), bool>::type>
2473 VULKAN_HPP_INLINE void Device::destroy( CommandPool commandPool, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2474 {
2475 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2476 d.vkDestroyCommandPool(
2477 static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( commandPool ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
2478 }
2479
2480 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2481 // wrapper function for command vkDestroyCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCommandPool.html
2482 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCommandPool ), bool>::type>
2483 VULKAN_HPP_INLINE void Device::destroy( CommandPool commandPool, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2484 {
2485 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2486 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2487 VULKAN_HPP_ASSERT( d.vkDestroyCommandPool && "Function <vkDestroyCommandPool> requires <VK_VERSION_1_0>" );
2488 # endif
2489
2490 d.vkDestroyCommandPool( m_device, static_cast<VkCommandPool>( commandPool ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
2491 }
2492 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2493
2494 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
2495 // wrapper function for command vkResetCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetCommandPool.html
2496 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetCommandPool ), bool>::type>
2497 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::resetCommandPool( CommandPool commandPool,
2498 CommandPoolResetFlags flags,
2499 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2500 {
2501 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2502 return static_cast<Result>(
2503 d.vkResetCommandPool( static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( commandPool ), static_cast<VkCommandPoolResetFlags>( flags ) ) );
2504 }
2505 #else
2506 // wrapper function for command vkResetCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetCommandPool.html
2507 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetCommandPool ), bool>::type>
2508 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
2509 Device::resetCommandPool( CommandPool commandPool, CommandPoolResetFlags flags, Dispatch const & d ) const
2510 {
2511 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2512 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2513 VULKAN_HPP_ASSERT( d.vkResetCommandPool && "Function <vkResetCommandPool> requires <VK_VERSION_1_0>" );
2514 # endif
2515
2516 Result result =
2517 static_cast<Result>( d.vkResetCommandPool( m_device, static_cast<VkCommandPool>( commandPool ), static_cast<VkCommandPoolResetFlags>( flags ) ) );
2518 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetCommandPool" );
2519
2520 return detail::createResultValueType( result );
2521 }
2522 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
2523
2524 // wrapper function for command vkAllocateCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateCommandBuffers.html
2525 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAllocateCommandBuffers ), bool>::type>
2526 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::allocateCommandBuffers( const CommandBufferAllocateInfo * pAllocateInfo,
2527 CommandBuffer * pCommandBuffers,
2528 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2529 {
2530 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2531 return static_cast<Result>( d.vkAllocateCommandBuffers( static_cast<VkDevice>( m_device ),
2532 reinterpret_cast<const VkCommandBufferAllocateInfo *>( pAllocateInfo ),
2533 reinterpret_cast<VkCommandBuffer *>( pCommandBuffers ) ) );
2534 }
2535
2536 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2537 // wrapper function for command vkAllocateCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateCommandBuffers.html
2538 template <typename CommandBufferAllocator,
2539 typename Dispatch,
2540 typename std::enable_if<std::is_same<typename CommandBufferAllocator::value_type, CommandBuffer>::value, int>::type,
2541 typename std::enable_if<IS_DISPATCHED( vkAllocateCommandBuffers ), bool>::type>
2542 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CommandBuffer, CommandBufferAllocator>>::type
2543 Device::allocateCommandBuffers( const CommandBufferAllocateInfo & allocateInfo, Dispatch const & d ) const
2544 {
2545 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2546 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2547 VULKAN_HPP_ASSERT( d.vkAllocateCommandBuffers && "Function <vkAllocateCommandBuffers> requires <VK_VERSION_1_0>" );
2548 # endif
2549
2550 std::vector<CommandBuffer, CommandBufferAllocator> commandBuffers( allocateInfo.commandBufferCount );
2551 Result result = static_cast<Result>( d.vkAllocateCommandBuffers(
2552 m_device, reinterpret_cast<const VkCommandBufferAllocateInfo *>( &allocateInfo ), reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
2553 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" );
2554
2555 return detail::createResultValueType( result, std::move( commandBuffers ) );
2556 }
2557
2558 // wrapper function for command vkAllocateCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateCommandBuffers.html
2559 template <typename CommandBufferAllocator,
2560 typename Dispatch,
2561 typename std::enable_if<std::is_same<typename CommandBufferAllocator::value_type, CommandBuffer>::value, int>::type,
2562 typename std::enable_if<IS_DISPATCHED( vkAllocateCommandBuffers ), bool>::type>
2563 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CommandBuffer, CommandBufferAllocator>>::type Device::allocateCommandBuffers(
2564 const CommandBufferAllocateInfo & allocateInfo, CommandBufferAllocator const & commandBufferAllocator, Dispatch const & d ) const
2565 {
2566 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2567 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2568 VULKAN_HPP_ASSERT( d.vkAllocateCommandBuffers && "Function <vkAllocateCommandBuffers> requires <VK_VERSION_1_0>" );
2569 # endif
2570
2571 std::vector<CommandBuffer, CommandBufferAllocator> commandBuffers( allocateInfo.commandBufferCount, {}, commandBufferAllocator );
2572 Result result = static_cast<Result>( d.vkAllocateCommandBuffers(
2573 m_device, reinterpret_cast<const VkCommandBufferAllocateInfo *>( &allocateInfo ), reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
2574 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffers" );
2575
2576 return detail::createResultValueType( result, std::move( commandBuffers ) );
2577 }
2578
2579 # ifndef VULKAN_HPP_NO_SMART_HANDLE
2580 // wrapper function for command vkAllocateCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateCommandBuffers.html
2581 template <typename Dispatch,
2582 typename CommandBufferAllocator,
2583 typename std::enable_if<std::is_same<typename CommandBufferAllocator::value_type, UniqueHandle<CommandBuffer, Dispatch>>::value, int>::type,
2584 typename std::enable_if<IS_DISPATCHED( vkAllocateCommandBuffers ), bool>::type>
2585 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator>>::type
2586 Device::allocateCommandBuffersUnique( const CommandBufferAllocateInfo & allocateInfo, Dispatch const & d ) const
2587 {
2588 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2589 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2590 VULKAN_HPP_ASSERT( d.vkAllocateCommandBuffers && "Function <vkAllocateCommandBuffers> requires <VK_VERSION_1_0>" );
2591 # endif
2592
2593 std::vector<CommandBuffer> commandBuffers( allocateInfo.commandBufferCount );
2594 Result result = static_cast<Result>( d.vkAllocateCommandBuffers(
2595 m_device, reinterpret_cast<const VkCommandBufferAllocateInfo *>( &allocateInfo ), reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
2596 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffersUnique" );
2597 std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator> uniqueCommandBuffers;
2598 uniqueCommandBuffers.reserve( allocateInfo.commandBufferCount );
2599 detail::PoolFree<Device, CommandPool, Dispatch> deleter( *this, allocateInfo.commandPool, d );
2600 for ( auto const & commandBuffer : commandBuffers )
2601 {
2602 uniqueCommandBuffers.push_back( UniqueHandle<CommandBuffer, Dispatch>( commandBuffer, deleter ) );
2603 }
2604 return detail::createResultValueType( result, std::move( uniqueCommandBuffers ) );
2605 }
2606
2607 // wrapper function for command vkAllocateCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateCommandBuffers.html
2608 template <typename Dispatch,
2609 typename CommandBufferAllocator,
2610 typename std::enable_if<std::is_same<typename CommandBufferAllocator::value_type, UniqueHandle<CommandBuffer, Dispatch>>::value, int>::type,
2611 typename std::enable_if<IS_DISPATCHED( vkAllocateCommandBuffers ), bool>::type>
2612 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator>>::type
2613 Device::allocateCommandBuffersUnique( const CommandBufferAllocateInfo & allocateInfo,
2614 CommandBufferAllocator const & commandBufferAllocator,
2615 Dispatch const & d ) const
2616 {
2617 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2618 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2619 VULKAN_HPP_ASSERT( d.vkAllocateCommandBuffers && "Function <vkAllocateCommandBuffers> requires <VK_VERSION_1_0>" );
2620 # endif
2621
2622 std::vector<CommandBuffer> commandBuffers( allocateInfo.commandBufferCount );
2623 Result result = static_cast<Result>( d.vkAllocateCommandBuffers(
2624 m_device, reinterpret_cast<const VkCommandBufferAllocateInfo *>( &allocateInfo ), reinterpret_cast<VkCommandBuffer *>( commandBuffers.data() ) ) );
2625 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateCommandBuffersUnique" );
2626 std::vector<UniqueHandle<CommandBuffer, Dispatch>, CommandBufferAllocator> uniqueCommandBuffers( commandBufferAllocator );
2627 uniqueCommandBuffers.reserve( allocateInfo.commandBufferCount );
2628 detail::PoolFree<Device, CommandPool, Dispatch> deleter( *this, allocateInfo.commandPool, d );
2629 for ( auto const & commandBuffer : commandBuffers )
2630 {
2631 uniqueCommandBuffers.push_back( UniqueHandle<CommandBuffer, Dispatch>( commandBuffer, deleter ) );
2632 }
2633 return detail::createResultValueType( result, std::move( uniqueCommandBuffers ) );
2634 }
2635 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
2636 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2637
2638 // wrapper function for command vkFreeCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeCommandBuffers.html
2639 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeCommandBuffers ), bool>::type>
2640 VULKAN_HPP_INLINE void Device::freeCommandBuffers( CommandPool commandPool,
2641 uint32_t commandBufferCount,
2642 const CommandBuffer * pCommandBuffers,
2643 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2644 {
2645 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2646 d.vkFreeCommandBuffers( static_cast<VkDevice>( m_device ),
2647 static_cast<VkCommandPool>( commandPool ),
2648 commandBufferCount,
2649 reinterpret_cast<const VkCommandBuffer *>( pCommandBuffers ) );
2650 }
2651
2652 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2653 // wrapper function for command vkFreeCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeCommandBuffers.html
2654 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeCommandBuffers ), bool>::type>
2655 VULKAN_HPP_INLINE void
2656 Device::freeCommandBuffers( CommandPool commandPool, ArrayProxy<const CommandBuffer> const & commandBuffers, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2657 {
2658 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2659 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2660 VULKAN_HPP_ASSERT( d.vkFreeCommandBuffers && "Function <vkFreeCommandBuffers> requires <VK_VERSION_1_0>" );
2661 # endif
2662
2663 d.vkFreeCommandBuffers(
2664 m_device, static_cast<VkCommandPool>( commandPool ), commandBuffers.size(), reinterpret_cast<const VkCommandBuffer *>( commandBuffers.data() ) );
2665 }
2666 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2667
2668 // wrapper function for command vkFreeCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeCommandBuffers.html
2669 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeCommandBuffers ), bool>::type>
2670 VULKAN_HPP_INLINE void( Device::free )( CommandPool commandPool,
2671 uint32_t commandBufferCount,
2672 const CommandBuffer * pCommandBuffers,
2673 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2674 {
2675 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2676 d.vkFreeCommandBuffers( static_cast<VkDevice>( m_device ),
2677 static_cast<VkCommandPool>( commandPool ),
2678 commandBufferCount,
2679 reinterpret_cast<const VkCommandBuffer *>( pCommandBuffers ) );
2680 }
2681
2682 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2683 // wrapper function for command vkFreeCommandBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeCommandBuffers.html
2684 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeCommandBuffers ), bool>::type>
2685 VULKAN_HPP_INLINE void( Device::free )( CommandPool commandPool,
2686 ArrayProxy<const CommandBuffer> const & commandBuffers,
2687 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2688 {
2689 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2690 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2691 VULKAN_HPP_ASSERT( d.vkFreeCommandBuffers && "Function <vkFreeCommandBuffers> requires <VK_VERSION_1_0>" );
2692 # endif
2693
2694 d.vkFreeCommandBuffers(
2695 m_device, static_cast<VkCommandPool>( commandPool ), commandBuffers.size(), reinterpret_cast<const VkCommandBuffer *>( commandBuffers.data() ) );
2696 }
2697 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2698
2699 // wrapper function for command vkBeginCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBeginCommandBuffer.html
2700 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBeginCommandBuffer ), bool>::type>
2701 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result CommandBuffer::begin( const CommandBufferBeginInfo * pBeginInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2702 {
2703 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2704 return static_cast<Result>(
2705 d.vkBeginCommandBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCommandBufferBeginInfo *>( pBeginInfo ) ) );
2706 }
2707
2708 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2709 // wrapper function for command vkBeginCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBeginCommandBuffer.html
2710 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBeginCommandBuffer ), bool>::type>
2711 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::begin( const CommandBufferBeginInfo & beginInfo,
2712 Dispatch const & d ) const
2713 {
2714 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2715 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2716 VULKAN_HPP_ASSERT( d.vkBeginCommandBuffer && "Function <vkBeginCommandBuffer> requires <VK_VERSION_1_0>" );
2717 # endif
2718
2719 Result result = static_cast<Result>( d.vkBeginCommandBuffer( m_commandBuffer, reinterpret_cast<const VkCommandBufferBeginInfo *>( &beginInfo ) ) );
2720 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::begin" );
2721
2722 return detail::createResultValueType( result );
2723 }
2724 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2725
2726 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
2727 // wrapper function for command vkEndCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEndCommandBuffer.html
2728 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEndCommandBuffer ), bool>::type>
2729 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result CommandBuffer::end( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2730 {
2731 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2732 return static_cast<Result>( d.vkEndCommandBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ) ) );
2733 }
2734 #else
2735 // wrapper function for command vkEndCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEndCommandBuffer.html
2736 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEndCommandBuffer ), bool>::type>
2737 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::end( Dispatch const & d ) const
2738 {
2739 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2740 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2741 VULKAN_HPP_ASSERT( d.vkEndCommandBuffer && "Function <vkEndCommandBuffer> requires <VK_VERSION_1_0>" );
2742 # endif
2743
2744 Result result = static_cast<Result>( d.vkEndCommandBuffer( m_commandBuffer ) );
2745 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::end" );
2746
2747 return detail::createResultValueType( result );
2748 }
2749 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
2750
2751 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
2752 // wrapper function for command vkResetCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetCommandBuffer.html
2753 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetCommandBuffer ), bool>::type>
2754 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result CommandBuffer::reset( CommandBufferResetFlags flags, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2755 {
2756 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2757 return static_cast<Result>( d.vkResetCommandBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCommandBufferResetFlags>( flags ) ) );
2758 }
2759 #else
2760 // wrapper function for command vkResetCommandBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetCommandBuffer.html
2761 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetCommandBuffer ), bool>::type>
2762 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type CommandBuffer::reset( CommandBufferResetFlags flags,
2763 Dispatch const & d ) const
2764 {
2765 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2766 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2767 VULKAN_HPP_ASSERT( d.vkResetCommandBuffer && "Function <vkResetCommandBuffer> requires <VK_VERSION_1_0>" );
2768 # endif
2769
2770 Result result = static_cast<Result>( d.vkResetCommandBuffer( m_commandBuffer, static_cast<VkCommandBufferResetFlags>( flags ) ) );
2771 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::reset" );
2772
2773 return detail::createResultValueType( result );
2774 }
2775 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
2776
2777 // wrapper function for command vkCmdCopyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer.html
2778 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBuffer ), bool>::type>
2779 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer(
2780 Buffer srcBuffer, Buffer dstBuffer, uint32_t regionCount, const BufferCopy * pRegions, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2781 {
2782 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2783 d.vkCmdCopyBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
2784 static_cast<VkBuffer>( srcBuffer ),
2785 static_cast<VkBuffer>( dstBuffer ),
2786 regionCount,
2787 reinterpret_cast<const VkBufferCopy *>( pRegions ) );
2788 }
2789
2790 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2791 // wrapper function for command vkCmdCopyBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer.html
2792 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBuffer ), bool>::type>
2793 VULKAN_HPP_INLINE void
2794 CommandBuffer::copyBuffer( Buffer srcBuffer, Buffer dstBuffer, ArrayProxy<const BufferCopy> const & regions, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2795 {
2796 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2797 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2798 VULKAN_HPP_ASSERT( d.vkCmdCopyBuffer && "Function <vkCmdCopyBuffer> requires <VK_VERSION_1_0>" );
2799 # endif
2800
2801 d.vkCmdCopyBuffer( m_commandBuffer,
2802 static_cast<VkBuffer>( srcBuffer ),
2803 static_cast<VkBuffer>( dstBuffer ),
2804 regions.size(),
2805 reinterpret_cast<const VkBufferCopy *>( regions.data() ) );
2806 }
2807 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2808
2809 // wrapper function for command vkCmdCopyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage.html
2810 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImage ), bool>::type>
2811 VULKAN_HPP_INLINE void CommandBuffer::copyImage( Image srcImage,
2812 ImageLayout srcImageLayout,
2813 Image dstImage,
2814 ImageLayout dstImageLayout,
2815 uint32_t regionCount,
2816 const ImageCopy * pRegions,
2817 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2818 {
2819 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2820 d.vkCmdCopyImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
2821 static_cast<VkImage>( srcImage ),
2822 static_cast<VkImageLayout>( srcImageLayout ),
2823 static_cast<VkImage>( dstImage ),
2824 static_cast<VkImageLayout>( dstImageLayout ),
2825 regionCount,
2826 reinterpret_cast<const VkImageCopy *>( pRegions ) );
2827 }
2828
2829 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2830 // wrapper function for command vkCmdCopyImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage.html
2831 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImage ), bool>::type>
2832 VULKAN_HPP_INLINE void CommandBuffer::copyImage( Image srcImage,
2833 ImageLayout srcImageLayout,
2834 Image dstImage,
2835 ImageLayout dstImageLayout,
2836 ArrayProxy<const ImageCopy> const & regions,
2837 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2838 {
2839 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2840 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2841 VULKAN_HPP_ASSERT( d.vkCmdCopyImage && "Function <vkCmdCopyImage> requires <VK_VERSION_1_0>" );
2842 # endif
2843
2844 d.vkCmdCopyImage( m_commandBuffer,
2845 static_cast<VkImage>( srcImage ),
2846 static_cast<VkImageLayout>( srcImageLayout ),
2847 static_cast<VkImage>( dstImage ),
2848 static_cast<VkImageLayout>( dstImageLayout ),
2849 regions.size(),
2850 reinterpret_cast<const VkImageCopy *>( regions.data() ) );
2851 }
2852 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2853
2854 // wrapper function for command vkCmdCopyBufferToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage.html
2855 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBufferToImage ), bool>::type>
2856 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage( Buffer srcBuffer,
2857 Image dstImage,
2858 ImageLayout dstImageLayout,
2859 uint32_t regionCount,
2860 const BufferImageCopy * pRegions,
2861 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2862 {
2863 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2864 d.vkCmdCopyBufferToImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
2865 static_cast<VkBuffer>( srcBuffer ),
2866 static_cast<VkImage>( dstImage ),
2867 static_cast<VkImageLayout>( dstImageLayout ),
2868 regionCount,
2869 reinterpret_cast<const VkBufferImageCopy *>( pRegions ) );
2870 }
2871
2872 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2873 // wrapper function for command vkCmdCopyBufferToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage.html
2874 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBufferToImage ), bool>::type>
2875 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage( Buffer srcBuffer,
2876 Image dstImage,
2877 ImageLayout dstImageLayout,
2878 ArrayProxy<const BufferImageCopy> const & regions,
2879 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2880 {
2881 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2882 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2883 VULKAN_HPP_ASSERT( d.vkCmdCopyBufferToImage && "Function <vkCmdCopyBufferToImage> requires <VK_VERSION_1_0>" );
2884 # endif
2885
2886 d.vkCmdCopyBufferToImage( m_commandBuffer,
2887 static_cast<VkBuffer>( srcBuffer ),
2888 static_cast<VkImage>( dstImage ),
2889 static_cast<VkImageLayout>( dstImageLayout ),
2890 regions.size(),
2891 reinterpret_cast<const VkBufferImageCopy *>( regions.data() ) );
2892 }
2893 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2894
2895 // wrapper function for command vkCmdCopyImageToBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer.html
2896 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToBuffer ), bool>::type>
2897 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer( Image srcImage,
2898 ImageLayout srcImageLayout,
2899 Buffer dstBuffer,
2900 uint32_t regionCount,
2901 const BufferImageCopy * pRegions,
2902 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2903 {
2904 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2905 d.vkCmdCopyImageToBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
2906 static_cast<VkImage>( srcImage ),
2907 static_cast<VkImageLayout>( srcImageLayout ),
2908 static_cast<VkBuffer>( dstBuffer ),
2909 regionCount,
2910 reinterpret_cast<const VkBufferImageCopy *>( pRegions ) );
2911 }
2912
2913 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2914 // wrapper function for command vkCmdCopyImageToBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer.html
2915 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToBuffer ), bool>::type>
2916 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer( Image srcImage,
2917 ImageLayout srcImageLayout,
2918 Buffer dstBuffer,
2919 ArrayProxy<const BufferImageCopy> const & regions,
2920 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2921 {
2922 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2923 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2924 VULKAN_HPP_ASSERT( d.vkCmdCopyImageToBuffer && "Function <vkCmdCopyImageToBuffer> requires <VK_VERSION_1_0>" );
2925 # endif
2926
2927 d.vkCmdCopyImageToBuffer( m_commandBuffer,
2928 static_cast<VkImage>( srcImage ),
2929 static_cast<VkImageLayout>( srcImageLayout ),
2930 static_cast<VkBuffer>( dstBuffer ),
2931 regions.size(),
2932 reinterpret_cast<const VkBufferImageCopy *>( regions.data() ) );
2933 }
2934 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2935
2936 // wrapper function for command vkCmdUpdateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateBuffer.html
2937 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdUpdateBuffer ), bool>::type>
2938 VULKAN_HPP_INLINE void
2939 CommandBuffer::updateBuffer( Buffer dstBuffer, DeviceSize dstOffset, DeviceSize dataSize, const void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2940 {
2941 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2942 d.vkCmdUpdateBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
2943 static_cast<VkBuffer>( dstBuffer ),
2944 static_cast<VkDeviceSize>( dstOffset ),
2945 static_cast<VkDeviceSize>( dataSize ),
2946 pData );
2947 }
2948
2949 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
2950 // wrapper function for command vkCmdUpdateBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdateBuffer.html
2951 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdUpdateBuffer ), bool>::type>
2952 VULKAN_HPP_INLINE void
2953 CommandBuffer::updateBuffer( Buffer dstBuffer, DeviceSize dstOffset, ArrayProxy<const DataType> const & data, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2954 {
2955 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2956 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
2957 VULKAN_HPP_ASSERT( d.vkCmdUpdateBuffer && "Function <vkCmdUpdateBuffer> requires <VK_VERSION_1_0>" );
2958 # endif
2959
2960 d.vkCmdUpdateBuffer( m_commandBuffer,
2961 static_cast<VkBuffer>( dstBuffer ),
2962 static_cast<VkDeviceSize>( dstOffset ),
2963 data.size() * sizeof( DataType ),
2964 reinterpret_cast<const void *>( data.data() ) );
2965 }
2966 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
2967
2968 // wrapper function for command vkCmdFillBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdFillBuffer.html
2969 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdFillBuffer ), bool>::type>
2970 VULKAN_HPP_INLINE void
2971 CommandBuffer::fillBuffer( Buffer dstBuffer, DeviceSize dstOffset, DeviceSize size, uint32_t data, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2972 {
2973 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2974 d.vkCmdFillBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
2975 static_cast<VkBuffer>( dstBuffer ),
2976 static_cast<VkDeviceSize>( dstOffset ),
2977 static_cast<VkDeviceSize>( size ),
2978 data );
2979 }
2980
2981 // wrapper function for command vkCmdPipelineBarrier, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier.html
2982 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPipelineBarrier ), bool>::type>
2983 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier( PipelineStageFlags srcStageMask,
2984 PipelineStageFlags dstStageMask,
2985 DependencyFlags dependencyFlags,
2986 uint32_t memoryBarrierCount,
2987 const MemoryBarrier * pMemoryBarriers,
2988 uint32_t bufferMemoryBarrierCount,
2989 const BufferMemoryBarrier * pBufferMemoryBarriers,
2990 uint32_t imageMemoryBarrierCount,
2991 const ImageMemoryBarrier * pImageMemoryBarriers,
2992 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
2993 {
2994 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
2995 d.vkCmdPipelineBarrier( static_cast<VkCommandBuffer>( m_commandBuffer ),
2996 static_cast<VkPipelineStageFlags>( srcStageMask ),
2997 static_cast<VkPipelineStageFlags>( dstStageMask ),
2998 static_cast<VkDependencyFlags>( dependencyFlags ),
2999 memoryBarrierCount,
3000 reinterpret_cast<const VkMemoryBarrier *>( pMemoryBarriers ),
3001 bufferMemoryBarrierCount,
3002 reinterpret_cast<const VkBufferMemoryBarrier *>( pBufferMemoryBarriers ),
3003 imageMemoryBarrierCount,
3004 reinterpret_cast<const VkImageMemoryBarrier *>( pImageMemoryBarriers ) );
3005 }
3006
3007 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3008 // wrapper function for command vkCmdPipelineBarrier, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier.html
3009 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPipelineBarrier ), bool>::type>
3010 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier( PipelineStageFlags srcStageMask,
3011 PipelineStageFlags dstStageMask,
3012 DependencyFlags dependencyFlags,
3013 ArrayProxy<const MemoryBarrier> const & memoryBarriers,
3014 ArrayProxy<const BufferMemoryBarrier> const & bufferMemoryBarriers,
3015 ArrayProxy<const ImageMemoryBarrier> const & imageMemoryBarriers,
3016 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3017 {
3018 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3019 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3020 VULKAN_HPP_ASSERT( d.vkCmdPipelineBarrier && "Function <vkCmdPipelineBarrier> requires <VK_VERSION_1_0>" );
3021 # endif
3022
3023 d.vkCmdPipelineBarrier( m_commandBuffer,
3024 static_cast<VkPipelineStageFlags>( srcStageMask ),
3025 static_cast<VkPipelineStageFlags>( dstStageMask ),
3026 static_cast<VkDependencyFlags>( dependencyFlags ),
3027 memoryBarriers.size(),
3028 reinterpret_cast<const VkMemoryBarrier *>( memoryBarriers.data() ),
3029 bufferMemoryBarriers.size(),
3030 reinterpret_cast<const VkBufferMemoryBarrier *>( bufferMemoryBarriers.data() ),
3031 imageMemoryBarriers.size(),
3032 reinterpret_cast<const VkImageMemoryBarrier *>( imageMemoryBarriers.data() ) );
3033 }
3034 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3035
3036 // wrapper function for command vkCmdBeginQuery, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginQuery.html
3037 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginQuery ), bool>::type>
3038 VULKAN_HPP_INLINE void CommandBuffer::beginQuery( QueryPool queryPool, uint32_t query, QueryControlFlags flags, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3039 {
3040 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3041 d.vkCmdBeginQuery(
3042 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), query, static_cast<VkQueryControlFlags>( flags ) );
3043 }
3044
3045 // wrapper function for command vkCmdEndQuery, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndQuery.html
3046 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndQuery ), bool>::type>
3047 VULKAN_HPP_INLINE void CommandBuffer::endQuery( QueryPool queryPool, uint32_t query, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3048 {
3049 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3050 d.vkCmdEndQuery( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), query );
3051 }
3052
3053 // wrapper function for command vkCmdResetQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetQueryPool.html
3054 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResetQueryPool ), bool>::type>
3055 VULKAN_HPP_INLINE void
3056 CommandBuffer::resetQueryPool( QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3057 {
3058 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3059 d.vkCmdResetQueryPool( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), firstQuery, queryCount );
3060 }
3061
3062 // wrapper function for command vkCmdWriteTimestamp, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteTimestamp.html
3063 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteTimestamp ), bool>::type>
3064 VULKAN_HPP_INLINE void
3065 CommandBuffer::writeTimestamp( PipelineStageFlagBits pipelineStage, QueryPool queryPool, uint32_t query, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3066 {
3067 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3068 d.vkCmdWriteTimestamp(
3069 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineStageFlagBits>( pipelineStage ), static_cast<VkQueryPool>( queryPool ), query );
3070 }
3071
3072 // wrapper function for command vkCmdCopyQueryPoolResults, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyQueryPoolResults.html
3073 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyQueryPoolResults ), bool>::type>
3074 VULKAN_HPP_INLINE void CommandBuffer::copyQueryPoolResults( QueryPool queryPool,
3075 uint32_t firstQuery,
3076 uint32_t queryCount,
3077 Buffer dstBuffer,
3078 DeviceSize dstOffset,
3079 DeviceSize stride,
3080 QueryResultFlags flags,
3081 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3082 {
3083 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3084 d.vkCmdCopyQueryPoolResults( static_cast<VkCommandBuffer>( m_commandBuffer ),
3085 static_cast<VkQueryPool>( queryPool ),
3086 firstQuery,
3087 queryCount,
3088 static_cast<VkBuffer>( dstBuffer ),
3089 static_cast<VkDeviceSize>( dstOffset ),
3090 static_cast<VkDeviceSize>( stride ),
3091 static_cast<VkQueryResultFlags>( flags ) );
3092 }
3093
3094 // wrapper function for command vkCmdExecuteCommands, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteCommands.html
3095 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdExecuteCommands ), bool>::type>
3096 VULKAN_HPP_INLINE void
3097 CommandBuffer::executeCommands( uint32_t commandBufferCount, const CommandBuffer * pCommandBuffers, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3098 {
3099 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3100 d.vkCmdExecuteCommands( static_cast<VkCommandBuffer>( m_commandBuffer ), commandBufferCount, reinterpret_cast<const VkCommandBuffer *>( pCommandBuffers ) );
3101 }
3102
3103 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3104 // wrapper function for command vkCmdExecuteCommands, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteCommands.html
3105 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdExecuteCommands ), bool>::type>
3106 VULKAN_HPP_INLINE void CommandBuffer::executeCommands( ArrayProxy<const CommandBuffer> const & commandBuffers, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3107 {
3108 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3109 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3110 VULKAN_HPP_ASSERT( d.vkCmdExecuteCommands && "Function <vkCmdExecuteCommands> requires <VK_VERSION_1_0>" );
3111 # endif
3112
3113 d.vkCmdExecuteCommands( m_commandBuffer, commandBuffers.size(), reinterpret_cast<const VkCommandBuffer *>( commandBuffers.data() ) );
3114 }
3115 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3116
3117 // wrapper function for command vkCreateEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateEvent.html
3118 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateEvent ), bool>::type>
3119 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createEvent( const EventCreateInfo * pCreateInfo,
3120 const AllocationCallbacks * pAllocator,
3121 Event * pEvent,
3122 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3123 {
3124 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3125 return static_cast<Result>( d.vkCreateEvent( static_cast<VkDevice>( m_device ),
3126 reinterpret_cast<const VkEventCreateInfo *>( pCreateInfo ),
3127 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
3128 reinterpret_cast<VkEvent *>( pEvent ) ) );
3129 }
3130
3131 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3132 // wrapper function for command vkCreateEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateEvent.html
3133 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateEvent ), bool>::type>
3134 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Event>::type
3135 Device::createEvent( const EventCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
3136 {
3137 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3138 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3139 VULKAN_HPP_ASSERT( d.vkCreateEvent && "Function <vkCreateEvent> requires <VK_VERSION_1_0>" );
3140 # endif
3141
3142 Event event;
3143 Result result = static_cast<Result>( d.vkCreateEvent( m_device,
3144 reinterpret_cast<const VkEventCreateInfo *>( &createInfo ),
3145 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3146 reinterpret_cast<VkEvent *>( &event ) ) );
3147 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createEvent" );
3148
3149 return detail::createResultValueType( result, std::move( event ) );
3150 }
3151
3152 # ifndef VULKAN_HPP_NO_SMART_HANDLE
3153 // wrapper function for command vkCreateEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateEvent.html
3154 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateEvent ), bool>::type>
3155 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Event, Dispatch>>::type
3156 Device::createEventUnique( const EventCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
3157 {
3158 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3159 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3160 VULKAN_HPP_ASSERT( d.vkCreateEvent && "Function <vkCreateEvent> requires <VK_VERSION_1_0>" );
3161 # endif
3162
3163 Event event;
3164 Result result = static_cast<Result>( d.vkCreateEvent( m_device,
3165 reinterpret_cast<const VkEventCreateInfo *>( &createInfo ),
3166 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3167 reinterpret_cast<VkEvent *>( &event ) ) );
3168 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createEventUnique" );
3169
3170 return detail::createResultValueType( result, UniqueHandle<Event, Dispatch>( event, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
3171 }
3172 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
3173 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3174
3175 // wrapper function for command vkDestroyEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyEvent.html
3176 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyEvent ), bool>::type>
3177 VULKAN_HPP_INLINE void Device::destroyEvent( Event event, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3178 {
3179 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3180 d.vkDestroyEvent( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( event ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
3181 }
3182
3183 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3184 // wrapper function for command vkDestroyEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyEvent.html
3185 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyEvent ), bool>::type>
3186 VULKAN_HPP_INLINE void Device::destroyEvent( Event event, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3187 {
3188 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3189 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3190 VULKAN_HPP_ASSERT( d.vkDestroyEvent && "Function <vkDestroyEvent> requires <VK_VERSION_1_0>" );
3191 # endif
3192
3193 d.vkDestroyEvent( m_device, static_cast<VkEvent>( event ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
3194 }
3195 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3196
3197 // wrapper function for command vkDestroyEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyEvent.html
3198 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyEvent ), bool>::type>
3199 VULKAN_HPP_INLINE void Device::destroy( Event event, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3200 {
3201 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3202 d.vkDestroyEvent( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( event ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
3203 }
3204
3205 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3206 // wrapper function for command vkDestroyEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyEvent.html
3207 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyEvent ), bool>::type>
3208 VULKAN_HPP_INLINE void Device::destroy( Event event, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3209 {
3210 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3211 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3212 VULKAN_HPP_ASSERT( d.vkDestroyEvent && "Function <vkDestroyEvent> requires <VK_VERSION_1_0>" );
3213 # endif
3214
3215 d.vkDestroyEvent( m_device, static_cast<VkEvent>( event ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
3216 }
3217 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3218
3219 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
3220 // wrapper function for command vkGetEventStatus, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEventStatus.html
3221 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetEventStatus ), bool>::type>
3222 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getEventStatus( Event event, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3223 {
3224 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3225 return static_cast<Result>( d.vkGetEventStatus( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( event ) ) );
3226 }
3227 #else
3228 // wrapper function for command vkGetEventStatus, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEventStatus.html
3229 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetEventStatus ), bool>::type>
3230 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getEventStatus( Event event, Dispatch const & d ) const
3231 {
3232 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3233 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3234 VULKAN_HPP_ASSERT( d.vkGetEventStatus && "Function <vkGetEventStatus> requires <VK_VERSION_1_0>" );
3235 # endif
3236
3237 Result result = static_cast<Result>( d.vkGetEventStatus( m_device, static_cast<VkEvent>( event ) ) );
3238 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEventStatus", { Result::eEventSet, Result::eEventReset } );
3239
3240 return static_cast<Result>( result );
3241 }
3242 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
3243
3244 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
3245 // wrapper function for command vkSetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetEvent.html
3246 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetEvent ), bool>::type>
3247 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setEvent( Event event, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3248 {
3249 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3250 return static_cast<Result>( d.vkSetEvent( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( event ) ) );
3251 }
3252 #else
3253 // wrapper function for command vkSetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetEvent.html
3254 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetEvent ), bool>::type>
3255 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setEvent( Event event, Dispatch const & d ) const
3256 {
3257 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3258 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3259 VULKAN_HPP_ASSERT( d.vkSetEvent && "Function <vkSetEvent> requires <VK_VERSION_1_0>" );
3260 # endif
3261
3262 Result result = static_cast<Result>( d.vkSetEvent( m_device, static_cast<VkEvent>( event ) ) );
3263 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setEvent" );
3264
3265 return detail::createResultValueType( result );
3266 }
3267 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
3268
3269 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
3270 // wrapper function for command vkResetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetEvent.html
3271 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetEvent ), bool>::type>
3272 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::resetEvent( Event event, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3273 {
3274 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3275 return static_cast<Result>( d.vkResetEvent( static_cast<VkDevice>( m_device ), static_cast<VkEvent>( event ) ) );
3276 }
3277 #else
3278 // wrapper function for command vkResetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetEvent.html
3279 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetEvent ), bool>::type>
3280 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::resetEvent( Event event, Dispatch const & d ) const
3281 {
3282 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3283 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3284 VULKAN_HPP_ASSERT( d.vkResetEvent && "Function <vkResetEvent> requires <VK_VERSION_1_0>" );
3285 # endif
3286
3287 Result result = static_cast<Result>( d.vkResetEvent( m_device, static_cast<VkEvent>( event ) ) );
3288 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetEvent" );
3289
3290 return detail::createResultValueType( result );
3291 }
3292 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
3293
3294 // wrapper function for command vkCreateBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferView.html
3295 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBufferView ), bool>::type>
3296 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createBufferView( const BufferViewCreateInfo * pCreateInfo,
3297 const AllocationCallbacks * pAllocator,
3298 BufferView * pView,
3299 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3300 {
3301 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3302 return static_cast<Result>( d.vkCreateBufferView( static_cast<VkDevice>( m_device ),
3303 reinterpret_cast<const VkBufferViewCreateInfo *>( pCreateInfo ),
3304 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
3305 reinterpret_cast<VkBufferView *>( pView ) ) );
3306 }
3307
3308 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3309 // wrapper function for command vkCreateBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferView.html
3310 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBufferView ), bool>::type>
3311 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<BufferView>::type
3312 Device::createBufferView( const BufferViewCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
3313 {
3314 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3315 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3316 VULKAN_HPP_ASSERT( d.vkCreateBufferView && "Function <vkCreateBufferView> requires <VK_VERSION_1_0>" );
3317 # endif
3318
3319 BufferView view;
3320 Result result = static_cast<Result>( d.vkCreateBufferView( m_device,
3321 reinterpret_cast<const VkBufferViewCreateInfo *>( &createInfo ),
3322 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3323 reinterpret_cast<VkBufferView *>( &view ) ) );
3324 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferView" );
3325
3326 return detail::createResultValueType( result, std::move( view ) );
3327 }
3328
3329 # ifndef VULKAN_HPP_NO_SMART_HANDLE
3330 // wrapper function for command vkCreateBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferView.html
3331 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBufferView ), bool>::type>
3332 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<BufferView, Dispatch>>::type
3333 Device::createBufferViewUnique( const BufferViewCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
3334 {
3335 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3336 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3337 VULKAN_HPP_ASSERT( d.vkCreateBufferView && "Function <vkCreateBufferView> requires <VK_VERSION_1_0>" );
3338 # endif
3339
3340 BufferView view;
3341 Result result = static_cast<Result>( d.vkCreateBufferView( m_device,
3342 reinterpret_cast<const VkBufferViewCreateInfo *>( &createInfo ),
3343 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3344 reinterpret_cast<VkBufferView *>( &view ) ) );
3345 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferViewUnique" );
3346
3347 return detail::createResultValueType( result, UniqueHandle<BufferView, Dispatch>( view, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
3348 }
3349 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
3350 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3351
3352 // wrapper function for command vkDestroyBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferView.html
3353 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferView ), bool>::type>
3354 VULKAN_HPP_INLINE void
3355 Device::destroyBufferView( BufferView bufferView, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3356 {
3357 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3358 d.vkDestroyBufferView(
3359 static_cast<VkDevice>( m_device ), static_cast<VkBufferView>( bufferView ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
3360 }
3361
3362 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3363 // wrapper function for command vkDestroyBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferView.html
3364 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferView ), bool>::type>
3365 VULKAN_HPP_INLINE void
3366 Device::destroyBufferView( BufferView bufferView, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3367 {
3368 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3369 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3370 VULKAN_HPP_ASSERT( d.vkDestroyBufferView && "Function <vkDestroyBufferView> requires <VK_VERSION_1_0>" );
3371 # endif
3372
3373 d.vkDestroyBufferView( m_device, static_cast<VkBufferView>( bufferView ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
3374 }
3375 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3376
3377 // wrapper function for command vkDestroyBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferView.html
3378 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferView ), bool>::type>
3379 VULKAN_HPP_INLINE void Device::destroy( BufferView bufferView, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3380 {
3381 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3382 d.vkDestroyBufferView(
3383 static_cast<VkDevice>( m_device ), static_cast<VkBufferView>( bufferView ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
3384 }
3385
3386 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3387 // wrapper function for command vkDestroyBufferView, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferView.html
3388 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferView ), bool>::type>
3389 VULKAN_HPP_INLINE void Device::destroy( BufferView bufferView, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3390 {
3391 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3392 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3393 VULKAN_HPP_ASSERT( d.vkDestroyBufferView && "Function <vkDestroyBufferView> requires <VK_VERSION_1_0>" );
3394 # endif
3395
3396 d.vkDestroyBufferView( m_device, static_cast<VkBufferView>( bufferView ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
3397 }
3398 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3399
3400 // wrapper function for command vkCreateShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderModule.html
3401 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShaderModule ), bool>::type>
3402 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createShaderModule( const ShaderModuleCreateInfo * pCreateInfo,
3403 const AllocationCallbacks * pAllocator,
3404 ShaderModule * pShaderModule,
3405 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3406 {
3407 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3408 return static_cast<Result>( d.vkCreateShaderModule( static_cast<VkDevice>( m_device ),
3409 reinterpret_cast<const VkShaderModuleCreateInfo *>( pCreateInfo ),
3410 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
3411 reinterpret_cast<VkShaderModule *>( pShaderModule ) ) );
3412 }
3413
3414 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3415 // wrapper function for command vkCreateShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderModule.html
3416 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShaderModule ), bool>::type>
3417 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ShaderModule>::type
3418 Device::createShaderModule( const ShaderModuleCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
3419 {
3420 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3421 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3422 VULKAN_HPP_ASSERT( d.vkCreateShaderModule && "Function <vkCreateShaderModule> requires <VK_VERSION_1_0>" );
3423 # endif
3424
3425 ShaderModule shaderModule;
3426 Result result = static_cast<Result>( d.vkCreateShaderModule( m_device,
3427 reinterpret_cast<const VkShaderModuleCreateInfo *>( &createInfo ),
3428 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3429 reinterpret_cast<VkShaderModule *>( &shaderModule ) ) );
3430 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderModule" );
3431
3432 return detail::createResultValueType( result, std::move( shaderModule ) );
3433 }
3434
3435 # ifndef VULKAN_HPP_NO_SMART_HANDLE
3436 // wrapper function for command vkCreateShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShaderModule.html
3437 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShaderModule ), bool>::type>
3438 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<ShaderModule, Dispatch>>::type
3439 Device::createShaderModuleUnique( const ShaderModuleCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
3440 {
3441 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3442 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3443 VULKAN_HPP_ASSERT( d.vkCreateShaderModule && "Function <vkCreateShaderModule> requires <VK_VERSION_1_0>" );
3444 # endif
3445
3446 ShaderModule shaderModule;
3447 Result result = static_cast<Result>( d.vkCreateShaderModule( m_device,
3448 reinterpret_cast<const VkShaderModuleCreateInfo *>( &createInfo ),
3449 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3450 reinterpret_cast<VkShaderModule *>( &shaderModule ) ) );
3451 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderModuleUnique" );
3452
3453 return detail::createResultValueType(
3454 result, UniqueHandle<ShaderModule, Dispatch>( shaderModule, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
3455 }
3456 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
3457 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3458
3459 // wrapper function for command vkDestroyShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderModule.html
3460 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderModule ), bool>::type>
3461 VULKAN_HPP_INLINE void
3462 Device::destroyShaderModule( ShaderModule shaderModule, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3463 {
3464 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3465 d.vkDestroyShaderModule(
3466 static_cast<VkDevice>( m_device ), static_cast<VkShaderModule>( shaderModule ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
3467 }
3468
3469 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3470 // wrapper function for command vkDestroyShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderModule.html
3471 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderModule ), bool>::type>
3472 VULKAN_HPP_INLINE void
3473 Device::destroyShaderModule( ShaderModule shaderModule, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3474 {
3475 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3476 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3477 VULKAN_HPP_ASSERT( d.vkDestroyShaderModule && "Function <vkDestroyShaderModule> requires <VK_VERSION_1_0>" );
3478 # endif
3479
3480 d.vkDestroyShaderModule( m_device, static_cast<VkShaderModule>( shaderModule ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
3481 }
3482 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3483
3484 // wrapper function for command vkDestroyShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderModule.html
3485 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderModule ), bool>::type>
3486 VULKAN_HPP_INLINE void Device::destroy( ShaderModule shaderModule, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3487 {
3488 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3489 d.vkDestroyShaderModule(
3490 static_cast<VkDevice>( m_device ), static_cast<VkShaderModule>( shaderModule ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
3491 }
3492
3493 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3494 // wrapper function for command vkDestroyShaderModule, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderModule.html
3495 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderModule ), bool>::type>
3496 VULKAN_HPP_INLINE void
3497 Device::destroy( ShaderModule shaderModule, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3498 {
3499 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3500 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3501 VULKAN_HPP_ASSERT( d.vkDestroyShaderModule && "Function <vkDestroyShaderModule> requires <VK_VERSION_1_0>" );
3502 # endif
3503
3504 d.vkDestroyShaderModule( m_device, static_cast<VkShaderModule>( shaderModule ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
3505 }
3506 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3507
3508 // wrapper function for command vkCreatePipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineCache.html
3509 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineCache ), bool>::type>
3510 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createPipelineCache( const PipelineCacheCreateInfo * pCreateInfo,
3511 const AllocationCallbacks * pAllocator,
3512 PipelineCache * pPipelineCache,
3513 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3514 {
3515 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3516 return static_cast<Result>( d.vkCreatePipelineCache( static_cast<VkDevice>( m_device ),
3517 reinterpret_cast<const VkPipelineCacheCreateInfo *>( pCreateInfo ),
3518 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
3519 reinterpret_cast<VkPipelineCache *>( pPipelineCache ) ) );
3520 }
3521
3522 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3523 // wrapper function for command vkCreatePipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineCache.html
3524 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineCache ), bool>::type>
3525 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PipelineCache>::type
3526 Device::createPipelineCache( const PipelineCacheCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
3527 {
3528 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3529 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3530 VULKAN_HPP_ASSERT( d.vkCreatePipelineCache && "Function <vkCreatePipelineCache> requires <VK_VERSION_1_0>" );
3531 # endif
3532
3533 PipelineCache pipelineCache;
3534 Result result = static_cast<Result>( d.vkCreatePipelineCache( m_device,
3535 reinterpret_cast<const VkPipelineCacheCreateInfo *>( &createInfo ),
3536 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3537 reinterpret_cast<VkPipelineCache *>( &pipelineCache ) ) );
3538 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineCache" );
3539
3540 return detail::createResultValueType( result, std::move( pipelineCache ) );
3541 }
3542
3543 # ifndef VULKAN_HPP_NO_SMART_HANDLE
3544 // wrapper function for command vkCreatePipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineCache.html
3545 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineCache ), bool>::type>
3546 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<PipelineCache, Dispatch>>::type
3547 Device::createPipelineCacheUnique( const PipelineCacheCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
3548 {
3549 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3550 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3551 VULKAN_HPP_ASSERT( d.vkCreatePipelineCache && "Function <vkCreatePipelineCache> requires <VK_VERSION_1_0>" );
3552 # endif
3553
3554 PipelineCache pipelineCache;
3555 Result result = static_cast<Result>( d.vkCreatePipelineCache( m_device,
3556 reinterpret_cast<const VkPipelineCacheCreateInfo *>( &createInfo ),
3557 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3558 reinterpret_cast<VkPipelineCache *>( &pipelineCache ) ) );
3559 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineCacheUnique" );
3560
3561 return detail::createResultValueType(
3562 result, UniqueHandle<PipelineCache, Dispatch>( pipelineCache, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
3563 }
3564 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
3565 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3566
3567 // wrapper function for command vkDestroyPipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineCache.html
3568 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineCache ), bool>::type>
3569 VULKAN_HPP_INLINE void
3570 Device::destroyPipelineCache( PipelineCache pipelineCache, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3571 {
3572 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3573 d.vkDestroyPipelineCache(
3574 static_cast<VkDevice>( m_device ), static_cast<VkPipelineCache>( pipelineCache ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
3575 }
3576
3577 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3578 // wrapper function for command vkDestroyPipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineCache.html
3579 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineCache ), bool>::type>
3580 VULKAN_HPP_INLINE void
3581 Device::destroyPipelineCache( PipelineCache pipelineCache, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3582 {
3583 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3584 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3585 VULKAN_HPP_ASSERT( d.vkDestroyPipelineCache && "Function <vkDestroyPipelineCache> requires <VK_VERSION_1_0>" );
3586 # endif
3587
3588 d.vkDestroyPipelineCache( m_device, static_cast<VkPipelineCache>( pipelineCache ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
3589 }
3590 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3591
3592 // wrapper function for command vkDestroyPipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineCache.html
3593 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineCache ), bool>::type>
3594 VULKAN_HPP_INLINE void Device::destroy( PipelineCache pipelineCache, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3595 {
3596 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3597 d.vkDestroyPipelineCache(
3598 static_cast<VkDevice>( m_device ), static_cast<VkPipelineCache>( pipelineCache ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
3599 }
3600
3601 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3602 // wrapper function for command vkDestroyPipelineCache, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineCache.html
3603 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineCache ), bool>::type>
3604 VULKAN_HPP_INLINE void
3605 Device::destroy( PipelineCache pipelineCache, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3606 {
3607 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3608 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3609 VULKAN_HPP_ASSERT( d.vkDestroyPipelineCache && "Function <vkDestroyPipelineCache> requires <VK_VERSION_1_0>" );
3610 # endif
3611
3612 d.vkDestroyPipelineCache( m_device, static_cast<VkPipelineCache>( pipelineCache ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
3613 }
3614 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3615
3616 // wrapper function for command vkGetPipelineCacheData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineCacheData.html
3617 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineCacheData ), bool>::type>
3618 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
3619 Device::getPipelineCacheData( PipelineCache pipelineCache, size_t * pDataSize, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3620 {
3621 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3622 return static_cast<Result>(
3623 d.vkGetPipelineCacheData( static_cast<VkDevice>( m_device ), static_cast<VkPipelineCache>( pipelineCache ), pDataSize, pData ) );
3624 }
3625
3626 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3627 // wrapper function for command vkGetPipelineCacheData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineCacheData.html
3628 template <typename Uint8_tAllocator,
3629 typename Dispatch,
3630 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
3631 typename std::enable_if<IS_DISPATCHED( vkGetPipelineCacheData ), bool>::type>
3632 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
3633 Device::getPipelineCacheData( PipelineCache pipelineCache, Dispatch const & d ) const
3634 {
3635 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3636 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3637 VULKAN_HPP_ASSERT( d.vkGetPipelineCacheData && "Function <vkGetPipelineCacheData> requires <VK_VERSION_1_0>" );
3638 # endif
3639
3640 std::vector<uint8_t, Uint8_tAllocator> data;
3641 size_t dataSize;
3642 Result result;
3643 do
3644 {
3645 result = static_cast<Result>( d.vkGetPipelineCacheData( m_device, static_cast<VkPipelineCache>( pipelineCache ), &dataSize, nullptr ) );
3646 if ( ( result == Result::eSuccess ) && dataSize )
3647 {
3648 data.resize( dataSize );
3649 result = static_cast<Result>(
3650 d.vkGetPipelineCacheData( m_device, static_cast<VkPipelineCache>( pipelineCache ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
3651 }
3652 } while ( result == Result::eIncomplete );
3653 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineCacheData" );
3654 VULKAN_HPP_ASSERT( dataSize <= data.size() );
3655 if ( dataSize < data.size() )
3656 {
3657 data.resize( dataSize );
3658 }
3659 return detail::createResultValueType( result, std::move( data ) );
3660 }
3661
3662 // wrapper function for command vkGetPipelineCacheData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineCacheData.html
3663 template <typename Uint8_tAllocator,
3664 typename Dispatch,
3665 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
3666 typename std::enable_if<IS_DISPATCHED( vkGetPipelineCacheData ), bool>::type>
3667 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
3668 Device::getPipelineCacheData( PipelineCache pipelineCache, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
3669 {
3670 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3671 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3672 VULKAN_HPP_ASSERT( d.vkGetPipelineCacheData && "Function <vkGetPipelineCacheData> requires <VK_VERSION_1_0>" );
3673 # endif
3674
3675 std::vector<uint8_t, Uint8_tAllocator> data( uint8_tAllocator );
3676 size_t dataSize;
3677 Result result;
3678 do
3679 {
3680 result = static_cast<Result>( d.vkGetPipelineCacheData( m_device, static_cast<VkPipelineCache>( pipelineCache ), &dataSize, nullptr ) );
3681 if ( ( result == Result::eSuccess ) && dataSize )
3682 {
3683 data.resize( dataSize );
3684 result = static_cast<Result>(
3685 d.vkGetPipelineCacheData( m_device, static_cast<VkPipelineCache>( pipelineCache ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
3686 }
3687 } while ( result == Result::eIncomplete );
3688 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineCacheData" );
3689 VULKAN_HPP_ASSERT( dataSize <= data.size() );
3690 if ( dataSize < data.size() )
3691 {
3692 data.resize( dataSize );
3693 }
3694 return detail::createResultValueType( result, std::move( data ) );
3695 }
3696 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3697
3698 // wrapper function for command vkMergePipelineCaches, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMergePipelineCaches.html
3699 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMergePipelineCaches ), bool>::type>
3700 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::mergePipelineCaches( PipelineCache dstCache,
3701 uint32_t srcCacheCount,
3702 const PipelineCache * pSrcCaches,
3703 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3704 {
3705 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3706 return static_cast<Result>( d.vkMergePipelineCaches(
3707 static_cast<VkDevice>( m_device ), static_cast<VkPipelineCache>( dstCache ), srcCacheCount, reinterpret_cast<const VkPipelineCache *>( pSrcCaches ) ) );
3708 }
3709
3710 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3711 // wrapper function for command vkMergePipelineCaches, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMergePipelineCaches.html
3712 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMergePipelineCaches ), bool>::type>
3713 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
3714 Device::mergePipelineCaches( PipelineCache dstCache, ArrayProxy<const PipelineCache> const & srcCaches, Dispatch const & d ) const
3715 {
3716 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3717 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3718 VULKAN_HPP_ASSERT( d.vkMergePipelineCaches && "Function <vkMergePipelineCaches> requires <VK_VERSION_1_0>" );
3719 # endif
3720
3721 Result result = static_cast<Result>( d.vkMergePipelineCaches(
3722 m_device, static_cast<VkPipelineCache>( dstCache ), srcCaches.size(), reinterpret_cast<const VkPipelineCache *>( srcCaches.data() ) ) );
3723 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mergePipelineCaches" );
3724
3725 return detail::createResultValueType( result );
3726 }
3727 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3728
3729 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3730 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3731 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createComputePipelines( PipelineCache pipelineCache,
3732 uint32_t createInfoCount,
3733 const ComputePipelineCreateInfo * pCreateInfos,
3734 const AllocationCallbacks * pAllocator,
3735 Pipeline * pPipelines,
3736 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3737 {
3738 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3739 return static_cast<Result>( d.vkCreateComputePipelines( static_cast<VkDevice>( m_device ),
3740 static_cast<VkPipelineCache>( pipelineCache ),
3741 createInfoCount,
3742 reinterpret_cast<const VkComputePipelineCreateInfo *>( pCreateInfos ),
3743 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
3744 reinterpret_cast<VkPipeline *>( pPipelines ) ) );
3745 }
3746
3747 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3748 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3749 template <typename PipelineAllocator,
3750 typename Dispatch,
3751 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
3752 typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3753 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>>
3754 Device::createComputePipelines( PipelineCache pipelineCache,
3755 ArrayProxy<const ComputePipelineCreateInfo> const & createInfos,
3756 Optional<const AllocationCallbacks> allocator,
3757 Dispatch const & d ) const
3758 {
3759 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3760 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3761 VULKAN_HPP_ASSERT( d.vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
3762 # endif
3763
3764 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size() );
3765 Result result = static_cast<Result>( d.vkCreateComputePipelines( m_device,
3766 static_cast<VkPipelineCache>( pipelineCache ),
3767 createInfos.size(),
3768 reinterpret_cast<const VkComputePipelineCreateInfo *>( createInfos.data() ),
3769 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3770 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
3771 detail::resultCheck( result,
3772 VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipelines",
3773 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
3774 m_device,
3775 pipelines,
3776 allocator.get(),
3777 d );
3778
3779 return ResultValue<std::vector<Pipeline, PipelineAllocator>>( result, std::move( pipelines ) );
3780 }
3781
3782 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3783 template <typename PipelineAllocator,
3784 typename Dispatch,
3785 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
3786 typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3787 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>>
3788 Device::createComputePipelines( PipelineCache pipelineCache,
3789 ArrayProxy<const ComputePipelineCreateInfo> const & createInfos,
3790 Optional<const AllocationCallbacks> allocator,
3791 PipelineAllocator const & pipelineAllocator,
3792 Dispatch const & d ) const
3793 {
3794 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3795 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3796 VULKAN_HPP_ASSERT( d.vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
3797 # endif
3798
3799 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size(), {}, pipelineAllocator );
3800 Result result = static_cast<Result>( d.vkCreateComputePipelines( m_device,
3801 static_cast<VkPipelineCache>( pipelineCache ),
3802 createInfos.size(),
3803 reinterpret_cast<const VkComputePipelineCreateInfo *>( createInfos.data() ),
3804 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3805 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
3806 detail::resultCheck( result,
3807 VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipelines",
3808 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
3809 m_device,
3810 pipelines,
3811 allocator.get(),
3812 d );
3813
3814 return ResultValue<std::vector<Pipeline, PipelineAllocator>>( result, std::move( pipelines ) );
3815 }
3816
3817 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3818 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3819 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<Pipeline> Device::createComputePipeline( PipelineCache pipelineCache,
3820 const ComputePipelineCreateInfo & createInfo,
3821 Optional<const AllocationCallbacks> allocator,
3822 Dispatch const & d ) const
3823 {
3824 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3825 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3826 VULKAN_HPP_ASSERT( d.vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
3827 # endif
3828
3829 Pipeline pipeline;
3830 Result result = static_cast<Result>( d.vkCreateComputePipelines( m_device,
3831 static_cast<VkPipelineCache>( pipelineCache ),
3832 1,
3833 reinterpret_cast<const VkComputePipelineCreateInfo *>( &createInfo ),
3834 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3835 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
3836 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipeline", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
3837
3838 return ResultValue<Pipeline>( result, std::move( pipeline ) );
3839 }
3840
3841 # ifndef VULKAN_HPP_NO_SMART_HANDLE
3842 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3843 template <typename Dispatch,
3844 typename PipelineAllocator,
3845 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
3846 typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3847 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
3848 Device::createComputePipelinesUnique( PipelineCache pipelineCache,
3849 ArrayProxy<const ComputePipelineCreateInfo> const & createInfos,
3850 Optional<const AllocationCallbacks> allocator,
3851 Dispatch const & d ) const
3852 {
3853 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3854 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3855 VULKAN_HPP_ASSERT( d.vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
3856 # endif
3857
3858 std::vector<Pipeline> pipelines( createInfos.size() );
3859 Result result = static_cast<Result>( d.vkCreateComputePipelines( m_device,
3860 static_cast<VkPipelineCache>( pipelineCache ),
3861 createInfos.size(),
3862 reinterpret_cast<const VkComputePipelineCreateInfo *>( createInfos.data() ),
3863 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3864 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
3865 detail::resultCheck( result,
3866 VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipelinesUnique",
3867 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
3868 m_device,
3869 pipelines,
3870 allocator.get(),
3871 d );
3872 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines;
3873 uniquePipelines.reserve( createInfos.size() );
3874 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
3875 for ( auto const & pipeline : pipelines )
3876 {
3877 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
3878 }
3879 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
3880 }
3881
3882 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3883 template <typename Dispatch,
3884 typename PipelineAllocator,
3885 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
3886 typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3887 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
3888 Device::createComputePipelinesUnique( PipelineCache pipelineCache,
3889 ArrayProxy<const ComputePipelineCreateInfo> const & createInfos,
3890 Optional<const AllocationCallbacks> allocator,
3891 PipelineAllocator const & pipelineAllocator,
3892 Dispatch const & d ) const
3893 {
3894 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3895 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3896 VULKAN_HPP_ASSERT( d.vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
3897 # endif
3898
3899 std::vector<Pipeline> pipelines( createInfos.size() );
3900 Result result = static_cast<Result>( d.vkCreateComputePipelines( m_device,
3901 static_cast<VkPipelineCache>( pipelineCache ),
3902 createInfos.size(),
3903 reinterpret_cast<const VkComputePipelineCreateInfo *>( createInfos.data() ),
3904 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3905 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
3906 detail::resultCheck( result,
3907 VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipelinesUnique",
3908 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
3909 m_device,
3910 pipelines,
3911 allocator.get(),
3912 d );
3913 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines( pipelineAllocator );
3914 uniquePipelines.reserve( createInfos.size() );
3915 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
3916 for ( auto const & pipeline : pipelines )
3917 {
3918 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
3919 }
3920 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
3921 }
3922
3923 // wrapper function for command vkCreateComputePipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateComputePipelines.html
3924 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateComputePipelines ), bool>::type>
3925 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<Pipeline, Dispatch>> Device::createComputePipelineUnique(
3926 PipelineCache pipelineCache, const ComputePipelineCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
3927 {
3928 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3929 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3930 VULKAN_HPP_ASSERT( d.vkCreateComputePipelines && "Function <vkCreateComputePipelines> requires <VK_VERSION_1_0>" );
3931 # endif
3932
3933 Pipeline pipeline;
3934 Result result = static_cast<Result>( d.vkCreateComputePipelines( m_device,
3935 static_cast<VkPipelineCache>( pipelineCache ),
3936 1,
3937 reinterpret_cast<const VkComputePipelineCreateInfo *>( &createInfo ),
3938 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
3939 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
3940 detail::resultCheck(
3941 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createComputePipelineUnique", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
3942
3943 return ResultValue<UniqueHandle<Pipeline, Dispatch>>(
3944 result, UniqueHandle<Pipeline, Dispatch>( pipeline, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
3945 }
3946 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
3947 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3948
3949 // wrapper function for command vkDestroyPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipeline.html
3950 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipeline ), bool>::type>
3951 VULKAN_HPP_INLINE void Device::destroyPipeline( Pipeline pipeline, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3952 {
3953 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3954 d.vkDestroyPipeline(
3955 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
3956 }
3957
3958 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3959 // wrapper function for command vkDestroyPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipeline.html
3960 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipeline ), bool>::type>
3961 VULKAN_HPP_INLINE void
3962 Device::destroyPipeline( Pipeline pipeline, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3963 {
3964 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3965 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3966 VULKAN_HPP_ASSERT( d.vkDestroyPipeline && "Function <vkDestroyPipeline> requires <VK_VERSION_1_0>" );
3967 # endif
3968
3969 d.vkDestroyPipeline( m_device, static_cast<VkPipeline>( pipeline ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
3970 }
3971 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3972
3973 // wrapper function for command vkDestroyPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipeline.html
3974 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipeline ), bool>::type>
3975 VULKAN_HPP_INLINE void Device::destroy( Pipeline pipeline, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3976 {
3977 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3978 d.vkDestroyPipeline(
3979 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
3980 }
3981
3982 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
3983 // wrapper function for command vkDestroyPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipeline.html
3984 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipeline ), bool>::type>
3985 VULKAN_HPP_INLINE void Device::destroy( Pipeline pipeline, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
3986 {
3987 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
3988 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
3989 VULKAN_HPP_ASSERT( d.vkDestroyPipeline && "Function <vkDestroyPipeline> requires <VK_VERSION_1_0>" );
3990 # endif
3991
3992 d.vkDestroyPipeline( m_device, static_cast<VkPipeline>( pipeline ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
3993 }
3994 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
3995
3996 // wrapper function for command vkCreatePipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineLayout.html
3997 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineLayout ), bool>::type>
3998 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createPipelineLayout( const PipelineLayoutCreateInfo * pCreateInfo,
3999 const AllocationCallbacks * pAllocator,
4000 PipelineLayout * pPipelineLayout,
4001 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4002 {
4003 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4004 return static_cast<Result>( d.vkCreatePipelineLayout( static_cast<VkDevice>( m_device ),
4005 reinterpret_cast<const VkPipelineLayoutCreateInfo *>( pCreateInfo ),
4006 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
4007 reinterpret_cast<VkPipelineLayout *>( pPipelineLayout ) ) );
4008 }
4009
4010 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4011 // wrapper function for command vkCreatePipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineLayout.html
4012 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineLayout ), bool>::type>
4013 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PipelineLayout>::type
4014 Device::createPipelineLayout( const PipelineLayoutCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
4015 {
4016 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4017 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4018 VULKAN_HPP_ASSERT( d.vkCreatePipelineLayout && "Function <vkCreatePipelineLayout> requires <VK_VERSION_1_0>" );
4019 # endif
4020
4021 PipelineLayout pipelineLayout;
4022 Result result = static_cast<Result>( d.vkCreatePipelineLayout( m_device,
4023 reinterpret_cast<const VkPipelineLayoutCreateInfo *>( &createInfo ),
4024 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
4025 reinterpret_cast<VkPipelineLayout *>( &pipelineLayout ) ) );
4026 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineLayout" );
4027
4028 return detail::createResultValueType( result, std::move( pipelineLayout ) );
4029 }
4030
4031 # ifndef VULKAN_HPP_NO_SMART_HANDLE
4032 // wrapper function for command vkCreatePipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineLayout.html
4033 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineLayout ), bool>::type>
4034 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<PipelineLayout, Dispatch>>::type
4035 Device::createPipelineLayoutUnique( const PipelineLayoutCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
4036 {
4037 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4038 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4039 VULKAN_HPP_ASSERT( d.vkCreatePipelineLayout && "Function <vkCreatePipelineLayout> requires <VK_VERSION_1_0>" );
4040 # endif
4041
4042 PipelineLayout pipelineLayout;
4043 Result result = static_cast<Result>( d.vkCreatePipelineLayout( m_device,
4044 reinterpret_cast<const VkPipelineLayoutCreateInfo *>( &createInfo ),
4045 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
4046 reinterpret_cast<VkPipelineLayout *>( &pipelineLayout ) ) );
4047 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineLayoutUnique" );
4048
4049 return detail::createResultValueType(
4050 result, UniqueHandle<PipelineLayout, Dispatch>( pipelineLayout, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
4051 }
4052 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
4053 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4054
4055 // wrapper function for command vkDestroyPipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineLayout.html
4056 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineLayout ), bool>::type>
4057 VULKAN_HPP_INLINE void
4058 Device::destroyPipelineLayout( PipelineLayout pipelineLayout, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4059 {
4060 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4061 d.vkDestroyPipelineLayout(
4062 static_cast<VkDevice>( m_device ), static_cast<VkPipelineLayout>( pipelineLayout ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
4063 }
4064
4065 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4066 // wrapper function for command vkDestroyPipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineLayout.html
4067 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineLayout ), bool>::type>
4068 VULKAN_HPP_INLINE void
4069 Device::destroyPipelineLayout( PipelineLayout pipelineLayout, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4070 {
4071 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4072 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4073 VULKAN_HPP_ASSERT( d.vkDestroyPipelineLayout && "Function <vkDestroyPipelineLayout> requires <VK_VERSION_1_0>" );
4074 # endif
4075
4076 d.vkDestroyPipelineLayout( m_device, static_cast<VkPipelineLayout>( pipelineLayout ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
4077 }
4078 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4079
4080 // wrapper function for command vkDestroyPipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineLayout.html
4081 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineLayout ), bool>::type>
4082 VULKAN_HPP_INLINE void Device::destroy( PipelineLayout pipelineLayout, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4083 {
4084 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4085 d.vkDestroyPipelineLayout(
4086 static_cast<VkDevice>( m_device ), static_cast<VkPipelineLayout>( pipelineLayout ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
4087 }
4088
4089 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4090 // wrapper function for command vkDestroyPipelineLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineLayout.html
4091 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineLayout ), bool>::type>
4092 VULKAN_HPP_INLINE void
4093 Device::destroy( PipelineLayout pipelineLayout, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4094 {
4095 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4096 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4097 VULKAN_HPP_ASSERT( d.vkDestroyPipelineLayout && "Function <vkDestroyPipelineLayout> requires <VK_VERSION_1_0>" );
4098 # endif
4099
4100 d.vkDestroyPipelineLayout( m_device, static_cast<VkPipelineLayout>( pipelineLayout ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
4101 }
4102 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4103
4104 // wrapper function for command vkCreateSampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSampler.html
4105 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSampler ), bool>::type>
4106 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createSampler( const SamplerCreateInfo * pCreateInfo,
4107 const AllocationCallbacks * pAllocator,
4108 Sampler * pSampler,
4109 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4110 {
4111 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4112 return static_cast<Result>( d.vkCreateSampler( static_cast<VkDevice>( m_device ),
4113 reinterpret_cast<const VkSamplerCreateInfo *>( pCreateInfo ),
4114 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
4115 reinterpret_cast<VkSampler *>( pSampler ) ) );
4116 }
4117
4118 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4119 // wrapper function for command vkCreateSampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSampler.html
4120 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSampler ), bool>::type>
4121 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Sampler>::type
4122 Device::createSampler( const SamplerCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
4123 {
4124 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4125 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4126 VULKAN_HPP_ASSERT( d.vkCreateSampler && "Function <vkCreateSampler> requires <VK_VERSION_1_0>" );
4127 # endif
4128
4129 Sampler sampler;
4130 Result result = static_cast<Result>( d.vkCreateSampler( m_device,
4131 reinterpret_cast<const VkSamplerCreateInfo *>( &createInfo ),
4132 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
4133 reinterpret_cast<VkSampler *>( &sampler ) ) );
4134 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSampler" );
4135
4136 return detail::createResultValueType( result, std::move( sampler ) );
4137 }
4138
4139 # ifndef VULKAN_HPP_NO_SMART_HANDLE
4140 // wrapper function for command vkCreateSampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSampler.html
4141 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSampler ), bool>::type>
4142 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Sampler, Dispatch>>::type
4143 Device::createSamplerUnique( const SamplerCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
4144 {
4145 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4146 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4147 VULKAN_HPP_ASSERT( d.vkCreateSampler && "Function <vkCreateSampler> requires <VK_VERSION_1_0>" );
4148 # endif
4149
4150 Sampler sampler;
4151 Result result = static_cast<Result>( d.vkCreateSampler( m_device,
4152 reinterpret_cast<const VkSamplerCreateInfo *>( &createInfo ),
4153 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
4154 reinterpret_cast<VkSampler *>( &sampler ) ) );
4155 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerUnique" );
4156
4157 return detail::createResultValueType( result, UniqueHandle<Sampler, Dispatch>( sampler, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
4158 }
4159 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
4160 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4161
4162 // wrapper function for command vkDestroySampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySampler.html
4163 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySampler ), bool>::type>
4164 VULKAN_HPP_INLINE void Device::destroySampler( Sampler sampler, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4165 {
4166 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4167 d.vkDestroySampler( static_cast<VkDevice>( m_device ), static_cast<VkSampler>( sampler ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
4168 }
4169
4170 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4171 // wrapper function for command vkDestroySampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySampler.html
4172 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySampler ), bool>::type>
4173 VULKAN_HPP_INLINE void Device::destroySampler( Sampler sampler, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4174 {
4175 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4176 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4177 VULKAN_HPP_ASSERT( d.vkDestroySampler && "Function <vkDestroySampler> requires <VK_VERSION_1_0>" );
4178 # endif
4179
4180 d.vkDestroySampler( m_device, static_cast<VkSampler>( sampler ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
4181 }
4182 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4183
4184 // wrapper function for command vkDestroySampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySampler.html
4185 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySampler ), bool>::type>
4186 VULKAN_HPP_INLINE void Device::destroy( Sampler sampler, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4187 {
4188 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4189 d.vkDestroySampler( static_cast<VkDevice>( m_device ), static_cast<VkSampler>( sampler ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
4190 }
4191
4192 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4193 // wrapper function for command vkDestroySampler, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySampler.html
4194 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySampler ), bool>::type>
4195 VULKAN_HPP_INLINE void Device::destroy( Sampler sampler, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4196 {
4197 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4198 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4199 VULKAN_HPP_ASSERT( d.vkDestroySampler && "Function <vkDestroySampler> requires <VK_VERSION_1_0>" );
4200 # endif
4201
4202 d.vkDestroySampler( m_device, static_cast<VkSampler>( sampler ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
4203 }
4204 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4205
4206 // wrapper function for command vkCreateDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorSetLayout.html
4207 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorSetLayout ), bool>::type>
4208 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDescriptorSetLayout( const DescriptorSetLayoutCreateInfo * pCreateInfo,
4209 const AllocationCallbacks * pAllocator,
4210 DescriptorSetLayout * pSetLayout,
4211 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4212 {
4213 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4214 return static_cast<Result>( d.vkCreateDescriptorSetLayout( static_cast<VkDevice>( m_device ),
4215 reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( pCreateInfo ),
4216 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
4217 reinterpret_cast<VkDescriptorSetLayout *>( pSetLayout ) ) );
4218 }
4219
4220 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4221 // wrapper function for command vkCreateDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorSetLayout.html
4222 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorSetLayout ), bool>::type>
4223 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DescriptorSetLayout>::type Device::createDescriptorSetLayout(
4224 const DescriptorSetLayoutCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
4225 {
4226 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4227 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4228 VULKAN_HPP_ASSERT( d.vkCreateDescriptorSetLayout && "Function <vkCreateDescriptorSetLayout> requires <VK_VERSION_1_0>" );
4229 # endif
4230
4231 DescriptorSetLayout setLayout;
4232 Result result = static_cast<Result>( d.vkCreateDescriptorSetLayout( m_device,
4233 reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( &createInfo ),
4234 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
4235 reinterpret_cast<VkDescriptorSetLayout *>( &setLayout ) ) );
4236 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorSetLayout" );
4237
4238 return detail::createResultValueType( result, std::move( setLayout ) );
4239 }
4240
4241 # ifndef VULKAN_HPP_NO_SMART_HANDLE
4242 // wrapper function for command vkCreateDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorSetLayout.html
4243 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorSetLayout ), bool>::type>
4244 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DescriptorSetLayout, Dispatch>>::type Device::createDescriptorSetLayoutUnique(
4245 const DescriptorSetLayoutCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
4246 {
4247 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4248 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4249 VULKAN_HPP_ASSERT( d.vkCreateDescriptorSetLayout && "Function <vkCreateDescriptorSetLayout> requires <VK_VERSION_1_0>" );
4250 # endif
4251
4252 DescriptorSetLayout setLayout;
4253 Result result = static_cast<Result>( d.vkCreateDescriptorSetLayout( m_device,
4254 reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( &createInfo ),
4255 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
4256 reinterpret_cast<VkDescriptorSetLayout *>( &setLayout ) ) );
4257 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorSetLayoutUnique" );
4258
4259 return detail::createResultValueType(
4260 result, UniqueHandle<DescriptorSetLayout, Dispatch>( setLayout, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
4261 }
4262 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
4263 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4264
4265 // wrapper function for command vkDestroyDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorSetLayout.html
4266 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorSetLayout ), bool>::type>
4267 VULKAN_HPP_INLINE void Device::destroyDescriptorSetLayout( DescriptorSetLayout descriptorSetLayout,
4268 const AllocationCallbacks * pAllocator,
4269 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4270 {
4271 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4272 d.vkDestroyDescriptorSetLayout( static_cast<VkDevice>( m_device ),
4273 static_cast<VkDescriptorSetLayout>( descriptorSetLayout ),
4274 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
4275 }
4276
4277 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4278 // wrapper function for command vkDestroyDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorSetLayout.html
4279 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorSetLayout ), bool>::type>
4280 VULKAN_HPP_INLINE void Device::destroyDescriptorSetLayout( DescriptorSetLayout descriptorSetLayout,
4281 Optional<const AllocationCallbacks> allocator,
4282 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4283 {
4284 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4285 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4286 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorSetLayout && "Function <vkDestroyDescriptorSetLayout> requires <VK_VERSION_1_0>" );
4287 # endif
4288
4289 d.vkDestroyDescriptorSetLayout(
4290 m_device, static_cast<VkDescriptorSetLayout>( descriptorSetLayout ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
4291 }
4292 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4293
4294 // wrapper function for command vkDestroyDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorSetLayout.html
4295 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorSetLayout ), bool>::type>
4296 VULKAN_HPP_INLINE void
4297 Device::destroy( DescriptorSetLayout descriptorSetLayout, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4298 {
4299 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4300 d.vkDestroyDescriptorSetLayout( static_cast<VkDevice>( m_device ),
4301 static_cast<VkDescriptorSetLayout>( descriptorSetLayout ),
4302 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
4303 }
4304
4305 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4306 // wrapper function for command vkDestroyDescriptorSetLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorSetLayout.html
4307 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorSetLayout ), bool>::type>
4308 VULKAN_HPP_INLINE void
4309 Device::destroy( DescriptorSetLayout descriptorSetLayout, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4310 {
4311 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4312 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4313 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorSetLayout && "Function <vkDestroyDescriptorSetLayout> requires <VK_VERSION_1_0>" );
4314 # endif
4315
4316 d.vkDestroyDescriptorSetLayout(
4317 m_device, static_cast<VkDescriptorSetLayout>( descriptorSetLayout ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
4318 }
4319 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4320
4321 // wrapper function for command vkCreateDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorPool.html
4322 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorPool ), bool>::type>
4323 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDescriptorPool( const DescriptorPoolCreateInfo * pCreateInfo,
4324 const AllocationCallbacks * pAllocator,
4325 DescriptorPool * pDescriptorPool,
4326 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4327 {
4328 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4329 return static_cast<Result>( d.vkCreateDescriptorPool( static_cast<VkDevice>( m_device ),
4330 reinterpret_cast<const VkDescriptorPoolCreateInfo *>( pCreateInfo ),
4331 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
4332 reinterpret_cast<VkDescriptorPool *>( pDescriptorPool ) ) );
4333 }
4334
4335 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4336 // wrapper function for command vkCreateDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorPool.html
4337 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorPool ), bool>::type>
4338 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DescriptorPool>::type
4339 Device::createDescriptorPool( const DescriptorPoolCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
4340 {
4341 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4342 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4343 VULKAN_HPP_ASSERT( d.vkCreateDescriptorPool && "Function <vkCreateDescriptorPool> requires <VK_VERSION_1_0>" );
4344 # endif
4345
4346 DescriptorPool descriptorPool;
4347 Result result = static_cast<Result>( d.vkCreateDescriptorPool( m_device,
4348 reinterpret_cast<const VkDescriptorPoolCreateInfo *>( &createInfo ),
4349 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
4350 reinterpret_cast<VkDescriptorPool *>( &descriptorPool ) ) );
4351 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorPool" );
4352
4353 return detail::createResultValueType( result, std::move( descriptorPool ) );
4354 }
4355
4356 # ifndef VULKAN_HPP_NO_SMART_HANDLE
4357 // wrapper function for command vkCreateDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorPool.html
4358 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorPool ), bool>::type>
4359 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DescriptorPool, Dispatch>>::type
4360 Device::createDescriptorPoolUnique( const DescriptorPoolCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
4361 {
4362 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4363 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4364 VULKAN_HPP_ASSERT( d.vkCreateDescriptorPool && "Function <vkCreateDescriptorPool> requires <VK_VERSION_1_0>" );
4365 # endif
4366
4367 DescriptorPool descriptorPool;
4368 Result result = static_cast<Result>( d.vkCreateDescriptorPool( m_device,
4369 reinterpret_cast<const VkDescriptorPoolCreateInfo *>( &createInfo ),
4370 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
4371 reinterpret_cast<VkDescriptorPool *>( &descriptorPool ) ) );
4372 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorPoolUnique" );
4373
4374 return detail::createResultValueType(
4375 result, UniqueHandle<DescriptorPool, Dispatch>( descriptorPool, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
4376 }
4377 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
4378 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4379
4380 // wrapper function for command vkDestroyDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorPool.html
4381 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorPool ), bool>::type>
4382 VULKAN_HPP_INLINE void
4383 Device::destroyDescriptorPool( DescriptorPool descriptorPool, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4384 {
4385 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4386 d.vkDestroyDescriptorPool(
4387 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorPool>( descriptorPool ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
4388 }
4389
4390 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4391 // wrapper function for command vkDestroyDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorPool.html
4392 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorPool ), bool>::type>
4393 VULKAN_HPP_INLINE void
4394 Device::destroyDescriptorPool( DescriptorPool descriptorPool, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4395 {
4396 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4397 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4398 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorPool && "Function <vkDestroyDescriptorPool> requires <VK_VERSION_1_0>" );
4399 # endif
4400
4401 d.vkDestroyDescriptorPool( m_device, static_cast<VkDescriptorPool>( descriptorPool ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
4402 }
4403 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4404
4405 // wrapper function for command vkDestroyDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorPool.html
4406 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorPool ), bool>::type>
4407 VULKAN_HPP_INLINE void Device::destroy( DescriptorPool descriptorPool, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4408 {
4409 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4410 d.vkDestroyDescriptorPool(
4411 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorPool>( descriptorPool ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
4412 }
4413
4414 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4415 // wrapper function for command vkDestroyDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorPool.html
4416 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorPool ), bool>::type>
4417 VULKAN_HPP_INLINE void
4418 Device::destroy( DescriptorPool descriptorPool, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4419 {
4420 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4421 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4422 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorPool && "Function <vkDestroyDescriptorPool> requires <VK_VERSION_1_0>" );
4423 # endif
4424
4425 d.vkDestroyDescriptorPool( m_device, static_cast<VkDescriptorPool>( descriptorPool ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
4426 }
4427 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4428
4429 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
4430 // wrapper function for command vkResetDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetDescriptorPool.html
4431 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetDescriptorPool ), bool>::type>
4432 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::resetDescriptorPool( DescriptorPool descriptorPool,
4433 DescriptorPoolResetFlags flags,
4434 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4435 {
4436 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4437 return static_cast<Result>( d.vkResetDescriptorPool(
4438 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorPool>( descriptorPool ), static_cast<VkDescriptorPoolResetFlags>( flags ) ) );
4439 }
4440 #else
4441 // wrapper function for command vkResetDescriptorPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetDescriptorPool.html
4442 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetDescriptorPool ), bool>::type>
4443 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
4444 Device::resetDescriptorPool( DescriptorPool descriptorPool, DescriptorPoolResetFlags flags, Dispatch const & d ) const
4445 {
4446 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4447 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4448 VULKAN_HPP_ASSERT( d.vkResetDescriptorPool && "Function <vkResetDescriptorPool> requires <VK_VERSION_1_0>" );
4449 # endif
4450
4451 Result result = static_cast<Result>(
4452 d.vkResetDescriptorPool( m_device, static_cast<VkDescriptorPool>( descriptorPool ), static_cast<VkDescriptorPoolResetFlags>( flags ) ) );
4453 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::resetDescriptorPool" );
4454
4455 return detail::createResultValueType( result );
4456 }
4457 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
4458
4459 // wrapper function for command vkAllocateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateDescriptorSets.html
4460 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAllocateDescriptorSets ), bool>::type>
4461 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::allocateDescriptorSets( const DescriptorSetAllocateInfo * pAllocateInfo,
4462 DescriptorSet * pDescriptorSets,
4463 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4464 {
4465 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4466 return static_cast<Result>( d.vkAllocateDescriptorSets( static_cast<VkDevice>( m_device ),
4467 reinterpret_cast<const VkDescriptorSetAllocateInfo *>( pAllocateInfo ),
4468 reinterpret_cast<VkDescriptorSet *>( pDescriptorSets ) ) );
4469 }
4470
4471 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4472 // wrapper function for command vkAllocateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateDescriptorSets.html
4473 template <typename DescriptorSetAllocator,
4474 typename Dispatch,
4475 typename std::enable_if<std::is_same<typename DescriptorSetAllocator::value_type, DescriptorSet>::value, int>::type,
4476 typename std::enable_if<IS_DISPATCHED( vkAllocateDescriptorSets ), bool>::type>
4477 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DescriptorSet, DescriptorSetAllocator>>::type
4478 Device::allocateDescriptorSets( const DescriptorSetAllocateInfo & allocateInfo, Dispatch const & d ) const
4479 {
4480 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4481 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4482 VULKAN_HPP_ASSERT( d.vkAllocateDescriptorSets && "Function <vkAllocateDescriptorSets> requires <VK_VERSION_1_0>" );
4483 # endif
4484
4485 std::vector<DescriptorSet, DescriptorSetAllocator> descriptorSets( allocateInfo.descriptorSetCount );
4486 Result result = static_cast<Result>( d.vkAllocateDescriptorSets(
4487 m_device, reinterpret_cast<const VkDescriptorSetAllocateInfo *>( &allocateInfo ), reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
4488 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" );
4489
4490 return detail::createResultValueType( result, std::move( descriptorSets ) );
4491 }
4492
4493 // wrapper function for command vkAllocateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateDescriptorSets.html
4494 template <typename DescriptorSetAllocator,
4495 typename Dispatch,
4496 typename std::enable_if<std::is_same<typename DescriptorSetAllocator::value_type, DescriptorSet>::value, int>::type,
4497 typename std::enable_if<IS_DISPATCHED( vkAllocateDescriptorSets ), bool>::type>
4498 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DescriptorSet, DescriptorSetAllocator>>::type Device::allocateDescriptorSets(
4499 const DescriptorSetAllocateInfo & allocateInfo, DescriptorSetAllocator const & descriptorSetAllocator, Dispatch const & d ) const
4500 {
4501 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4502 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4503 VULKAN_HPP_ASSERT( d.vkAllocateDescriptorSets && "Function <vkAllocateDescriptorSets> requires <VK_VERSION_1_0>" );
4504 # endif
4505
4506 std::vector<DescriptorSet, DescriptorSetAllocator> descriptorSets( allocateInfo.descriptorSetCount, {}, descriptorSetAllocator );
4507 Result result = static_cast<Result>( d.vkAllocateDescriptorSets(
4508 m_device, reinterpret_cast<const VkDescriptorSetAllocateInfo *>( &allocateInfo ), reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
4509 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSets" );
4510
4511 return detail::createResultValueType( result, std::move( descriptorSets ) );
4512 }
4513
4514 # ifndef VULKAN_HPP_NO_SMART_HANDLE
4515 // wrapper function for command vkAllocateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateDescriptorSets.html
4516 template <typename Dispatch,
4517 typename DescriptorSetAllocator,
4518 typename std::enable_if<std::is_same<typename DescriptorSetAllocator::value_type, UniqueHandle<DescriptorSet, Dispatch>>::value, int>::type,
4519 typename std::enable_if<IS_DISPATCHED( vkAllocateDescriptorSets ), bool>::type>
4520 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator>>::type
4521 Device::allocateDescriptorSetsUnique( const DescriptorSetAllocateInfo & allocateInfo, Dispatch const & d ) const
4522 {
4523 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4524 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4525 VULKAN_HPP_ASSERT( d.vkAllocateDescriptorSets && "Function <vkAllocateDescriptorSets> requires <VK_VERSION_1_0>" );
4526 # endif
4527
4528 std::vector<DescriptorSet> descriptorSets( allocateInfo.descriptorSetCount );
4529 Result result = static_cast<Result>( d.vkAllocateDescriptorSets(
4530 m_device, reinterpret_cast<const VkDescriptorSetAllocateInfo *>( &allocateInfo ), reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
4531 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSetsUnique" );
4532 std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator> uniqueDescriptorSets;
4533 uniqueDescriptorSets.reserve( allocateInfo.descriptorSetCount );
4534 detail::PoolFree<Device, DescriptorPool, Dispatch> deleter( *this, allocateInfo.descriptorPool, d );
4535 for ( auto const & descriptorSet : descriptorSets )
4536 {
4537 uniqueDescriptorSets.push_back( UniqueHandle<DescriptorSet, Dispatch>( descriptorSet, deleter ) );
4538 }
4539 return detail::createResultValueType( result, std::move( uniqueDescriptorSets ) );
4540 }
4541
4542 // wrapper function for command vkAllocateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAllocateDescriptorSets.html
4543 template <typename Dispatch,
4544 typename DescriptorSetAllocator,
4545 typename std::enable_if<std::is_same<typename DescriptorSetAllocator::value_type, UniqueHandle<DescriptorSet, Dispatch>>::value, int>::type,
4546 typename std::enable_if<IS_DISPATCHED( vkAllocateDescriptorSets ), bool>::type>
4547 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator>>::type
4548 Device::allocateDescriptorSetsUnique( const DescriptorSetAllocateInfo & allocateInfo,
4549 DescriptorSetAllocator const & descriptorSetAllocator,
4550 Dispatch const & d ) const
4551 {
4552 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4553 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4554 VULKAN_HPP_ASSERT( d.vkAllocateDescriptorSets && "Function <vkAllocateDescriptorSets> requires <VK_VERSION_1_0>" );
4555 # endif
4556
4557 std::vector<DescriptorSet> descriptorSets( allocateInfo.descriptorSetCount );
4558 Result result = static_cast<Result>( d.vkAllocateDescriptorSets(
4559 m_device, reinterpret_cast<const VkDescriptorSetAllocateInfo *>( &allocateInfo ), reinterpret_cast<VkDescriptorSet *>( descriptorSets.data() ) ) );
4560 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::allocateDescriptorSetsUnique" );
4561 std::vector<UniqueHandle<DescriptorSet, Dispatch>, DescriptorSetAllocator> uniqueDescriptorSets( descriptorSetAllocator );
4562 uniqueDescriptorSets.reserve( allocateInfo.descriptorSetCount );
4563 detail::PoolFree<Device, DescriptorPool, Dispatch> deleter( *this, allocateInfo.descriptorPool, d );
4564 for ( auto const & descriptorSet : descriptorSets )
4565 {
4566 uniqueDescriptorSets.push_back( UniqueHandle<DescriptorSet, Dispatch>( descriptorSet, deleter ) );
4567 }
4568 return detail::createResultValueType( result, std::move( uniqueDescriptorSets ) );
4569 }
4570 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
4571 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4572
4573 // wrapper function for command vkFreeDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeDescriptorSets.html
4574 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeDescriptorSets ), bool>::type>
4575 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::freeDescriptorSets( DescriptorPool descriptorPool,
4576 uint32_t descriptorSetCount,
4577 const DescriptorSet * pDescriptorSets,
4578 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4579 {
4580 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4581 return static_cast<Result>( d.vkFreeDescriptorSets( static_cast<VkDevice>( m_device ),
4582 static_cast<VkDescriptorPool>( descriptorPool ),
4583 descriptorSetCount,
4584 reinterpret_cast<const VkDescriptorSet *>( pDescriptorSets ) ) );
4585 }
4586
4587 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4588 // wrapper function for command vkFreeDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeDescriptorSets.html
4589 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeDescriptorSets ), bool>::type>
4590 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
4591 Device::freeDescriptorSets( DescriptorPool descriptorPool, ArrayProxy<const DescriptorSet> const & descriptorSets, Dispatch const & d ) const
4592 {
4593 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4594 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4595 VULKAN_HPP_ASSERT( d.vkFreeDescriptorSets && "Function <vkFreeDescriptorSets> requires <VK_VERSION_1_0>" );
4596 # endif
4597
4598 Result result = static_cast<Result>( d.vkFreeDescriptorSets(
4599 m_device, static_cast<VkDescriptorPool>( descriptorPool ), descriptorSets.size(), reinterpret_cast<const VkDescriptorSet *>( descriptorSets.data() ) ) );
4600 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::freeDescriptorSets" );
4601
4602 return detail::createResultValueType( result );
4603 }
4604 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4605
4606 // wrapper function for command vkFreeDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeDescriptorSets.html
4607 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeDescriptorSets ), bool>::type>
4608 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result( Device::free )( DescriptorPool descriptorPool,
4609 uint32_t descriptorSetCount,
4610 const DescriptorSet * pDescriptorSets,
4611 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4612 {
4613 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4614 return static_cast<Result>( d.vkFreeDescriptorSets( static_cast<VkDevice>( m_device ),
4615 static_cast<VkDescriptorPool>( descriptorPool ),
4616 descriptorSetCount,
4617 reinterpret_cast<const VkDescriptorSet *>( pDescriptorSets ) ) );
4618 }
4619
4620 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4621 // wrapper function for command vkFreeDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkFreeDescriptorSets.html
4622 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkFreeDescriptorSets ), bool>::type>
4623 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE
4624 typename ResultValueType<void>::type( Device::free )( DescriptorPool descriptorPool,
4625 ArrayProxy<const DescriptorSet> const & descriptorSets,
4626 Dispatch const & d ) const
4627 {
4628 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4629 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4630 VULKAN_HPP_ASSERT( d.vkFreeDescriptorSets && "Function <vkFreeDescriptorSets> requires <VK_VERSION_1_0>" );
4631 # endif
4632
4633 Result result = static_cast<Result>( d.vkFreeDescriptorSets(
4634 m_device, static_cast<VkDescriptorPool>( descriptorPool ), descriptorSets.size(), reinterpret_cast<const VkDescriptorSet *>( descriptorSets.data() ) ) );
4635 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::( Device::free )" );
4636
4637 return detail::createResultValueType( result );
4638 }
4639 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4640
4641 // wrapper function for command vkUpdateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSets.html
4642 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateDescriptorSets ), bool>::type>
4643 VULKAN_HPP_INLINE void Device::updateDescriptorSets( uint32_t descriptorWriteCount,
4644 const WriteDescriptorSet * pDescriptorWrites,
4645 uint32_t descriptorCopyCount,
4646 const CopyDescriptorSet * pDescriptorCopies,
4647 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4648 {
4649 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4650 d.vkUpdateDescriptorSets( static_cast<VkDevice>( m_device ),
4651 descriptorWriteCount,
4652 reinterpret_cast<const VkWriteDescriptorSet *>( pDescriptorWrites ),
4653 descriptorCopyCount,
4654 reinterpret_cast<const VkCopyDescriptorSet *>( pDescriptorCopies ) );
4655 }
4656
4657 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4658 // wrapper function for command vkUpdateDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSets.html
4659 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateDescriptorSets ), bool>::type>
4660 VULKAN_HPP_INLINE void Device::updateDescriptorSets( ArrayProxy<const WriteDescriptorSet> const & descriptorWrites,
4661 ArrayProxy<const CopyDescriptorSet> const & descriptorCopies,
4662 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4663 {
4664 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4665 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4666 VULKAN_HPP_ASSERT( d.vkUpdateDescriptorSets && "Function <vkUpdateDescriptorSets> requires <VK_VERSION_1_0>" );
4667 # endif
4668
4669 d.vkUpdateDescriptorSets( m_device,
4670 descriptorWrites.size(),
4671 reinterpret_cast<const VkWriteDescriptorSet *>( descriptorWrites.data() ),
4672 descriptorCopies.size(),
4673 reinterpret_cast<const VkCopyDescriptorSet *>( descriptorCopies.data() ) );
4674 }
4675 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4676
4677 // wrapper function for command vkCmdBindPipeline, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindPipeline.html
4678 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindPipeline ), bool>::type>
4679 VULKAN_HPP_INLINE void CommandBuffer::bindPipeline( PipelineBindPoint pipelineBindPoint, Pipeline pipeline, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4680 {
4681 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4682 d.vkCmdBindPipeline(
4683 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipeline>( pipeline ) );
4684 }
4685
4686 // wrapper function for command vkCmdBindDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets.html
4687 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorSets ), bool>::type>
4688 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets( PipelineBindPoint pipelineBindPoint,
4689 PipelineLayout layout,
4690 uint32_t firstSet,
4691 uint32_t descriptorSetCount,
4692 const DescriptorSet * pDescriptorSets,
4693 uint32_t dynamicOffsetCount,
4694 const uint32_t * pDynamicOffsets,
4695 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4696 {
4697 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4698 d.vkCmdBindDescriptorSets( static_cast<VkCommandBuffer>( m_commandBuffer ),
4699 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
4700 static_cast<VkPipelineLayout>( layout ),
4701 firstSet,
4702 descriptorSetCount,
4703 reinterpret_cast<const VkDescriptorSet *>( pDescriptorSets ),
4704 dynamicOffsetCount,
4705 pDynamicOffsets );
4706 }
4707
4708 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4709 // wrapper function for command vkCmdBindDescriptorSets, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets.html
4710 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorSets ), bool>::type>
4711 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets( PipelineBindPoint pipelineBindPoint,
4712 PipelineLayout layout,
4713 uint32_t firstSet,
4714 ArrayProxy<const DescriptorSet> const & descriptorSets,
4715 ArrayProxy<const uint32_t> const & dynamicOffsets,
4716 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4717 {
4718 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4719 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4720 VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorSets && "Function <vkCmdBindDescriptorSets> requires <VK_VERSION_1_0>" );
4721 # endif
4722
4723 d.vkCmdBindDescriptorSets( m_commandBuffer,
4724 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
4725 static_cast<VkPipelineLayout>( layout ),
4726 firstSet,
4727 descriptorSets.size(),
4728 reinterpret_cast<const VkDescriptorSet *>( descriptorSets.data() ),
4729 dynamicOffsets.size(),
4730 dynamicOffsets.data() );
4731 }
4732 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4733
4734 // wrapper function for command vkCmdClearColorImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearColorImage.html
4735 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdClearColorImage ), bool>::type>
4736 VULKAN_HPP_INLINE void CommandBuffer::clearColorImage( Image image,
4737 ImageLayout imageLayout,
4738 const ClearColorValue * pColor,
4739 uint32_t rangeCount,
4740 const ImageSubresourceRange * pRanges,
4741 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4742 {
4743 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4744 d.vkCmdClearColorImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
4745 static_cast<VkImage>( image ),
4746 static_cast<VkImageLayout>( imageLayout ),
4747 reinterpret_cast<const VkClearColorValue *>( pColor ),
4748 rangeCount,
4749 reinterpret_cast<const VkImageSubresourceRange *>( pRanges ) );
4750 }
4751
4752 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4753 // wrapper function for command vkCmdClearColorImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearColorImage.html
4754 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdClearColorImage ), bool>::type>
4755 VULKAN_HPP_INLINE void CommandBuffer::clearColorImage( Image image,
4756 ImageLayout imageLayout,
4757 const ClearColorValue & color,
4758 ArrayProxy<const ImageSubresourceRange> const & ranges,
4759 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4760 {
4761 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4762 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4763 VULKAN_HPP_ASSERT( d.vkCmdClearColorImage && "Function <vkCmdClearColorImage> requires <VK_VERSION_1_0>" );
4764 # endif
4765
4766 d.vkCmdClearColorImage( m_commandBuffer,
4767 static_cast<VkImage>( image ),
4768 static_cast<VkImageLayout>( imageLayout ),
4769 reinterpret_cast<const VkClearColorValue *>( &color ),
4770 ranges.size(),
4771 reinterpret_cast<const VkImageSubresourceRange *>( ranges.data() ) );
4772 }
4773 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4774
4775 // wrapper function for command vkCmdDispatch, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatch.html
4776 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatch ), bool>::type>
4777 VULKAN_HPP_INLINE void
4778 CommandBuffer::dispatch( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4779 {
4780 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4781 d.vkCmdDispatch( static_cast<VkCommandBuffer>( m_commandBuffer ), groupCountX, groupCountY, groupCountZ );
4782 }
4783
4784 // wrapper function for command vkCmdDispatchIndirect, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchIndirect.html
4785 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchIndirect ), bool>::type>
4786 VULKAN_HPP_INLINE void CommandBuffer::dispatchIndirect( Buffer buffer, DeviceSize offset, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4787 {
4788 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4789 d.vkCmdDispatchIndirect( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ) );
4790 }
4791
4792 // wrapper function for command vkCmdSetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent.html
4793 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetEvent ), bool>::type>
4794 VULKAN_HPP_INLINE void CommandBuffer::setEvent( Event event, PipelineStageFlags stageMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4795 {
4796 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4797 d.vkCmdSetEvent( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), static_cast<VkPipelineStageFlags>( stageMask ) );
4798 }
4799
4800 // wrapper function for command vkCmdResetEvent, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetEvent.html
4801 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResetEvent ), bool>::type>
4802 VULKAN_HPP_INLINE void CommandBuffer::resetEvent( Event event, PipelineStageFlags stageMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4803 {
4804 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4805 d.vkCmdResetEvent( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), static_cast<VkPipelineStageFlags>( stageMask ) );
4806 }
4807
4808 // wrapper function for command vkCmdWaitEvents, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents.html
4809 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWaitEvents ), bool>::type>
4810 VULKAN_HPP_INLINE void CommandBuffer::waitEvents( uint32_t eventCount,
4811 const Event * pEvents,
4812 PipelineStageFlags srcStageMask,
4813 PipelineStageFlags dstStageMask,
4814 uint32_t memoryBarrierCount,
4815 const MemoryBarrier * pMemoryBarriers,
4816 uint32_t bufferMemoryBarrierCount,
4817 const BufferMemoryBarrier * pBufferMemoryBarriers,
4818 uint32_t imageMemoryBarrierCount,
4819 const ImageMemoryBarrier * pImageMemoryBarriers,
4820 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4821 {
4822 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4823 d.vkCmdWaitEvents( static_cast<VkCommandBuffer>( m_commandBuffer ),
4824 eventCount,
4825 reinterpret_cast<const VkEvent *>( pEvents ),
4826 static_cast<VkPipelineStageFlags>( srcStageMask ),
4827 static_cast<VkPipelineStageFlags>( dstStageMask ),
4828 memoryBarrierCount,
4829 reinterpret_cast<const VkMemoryBarrier *>( pMemoryBarriers ),
4830 bufferMemoryBarrierCount,
4831 reinterpret_cast<const VkBufferMemoryBarrier *>( pBufferMemoryBarriers ),
4832 imageMemoryBarrierCount,
4833 reinterpret_cast<const VkImageMemoryBarrier *>( pImageMemoryBarriers ) );
4834 }
4835
4836 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4837 // wrapper function for command vkCmdWaitEvents, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents.html
4838 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWaitEvents ), bool>::type>
4839 VULKAN_HPP_INLINE void CommandBuffer::waitEvents( ArrayProxy<const Event> const & events,
4840 PipelineStageFlags srcStageMask,
4841 PipelineStageFlags dstStageMask,
4842 ArrayProxy<const MemoryBarrier> const & memoryBarriers,
4843 ArrayProxy<const BufferMemoryBarrier> const & bufferMemoryBarriers,
4844 ArrayProxy<const ImageMemoryBarrier> const & imageMemoryBarriers,
4845 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4846 {
4847 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4848 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4849 VULKAN_HPP_ASSERT( d.vkCmdWaitEvents && "Function <vkCmdWaitEvents> requires <VK_VERSION_1_0>" );
4850 # endif
4851
4852 d.vkCmdWaitEvents( m_commandBuffer,
4853 events.size(),
4854 reinterpret_cast<const VkEvent *>( events.data() ),
4855 static_cast<VkPipelineStageFlags>( srcStageMask ),
4856 static_cast<VkPipelineStageFlags>( dstStageMask ),
4857 memoryBarriers.size(),
4858 reinterpret_cast<const VkMemoryBarrier *>( memoryBarriers.data() ),
4859 bufferMemoryBarriers.size(),
4860 reinterpret_cast<const VkBufferMemoryBarrier *>( bufferMemoryBarriers.data() ),
4861 imageMemoryBarriers.size(),
4862 reinterpret_cast<const VkImageMemoryBarrier *>( imageMemoryBarriers.data() ) );
4863 }
4864 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4865
4866 // wrapper function for command vkCmdPushConstants, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants.html
4867 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushConstants ), bool>::type>
4868 VULKAN_HPP_INLINE void CommandBuffer::pushConstants(
4869 PipelineLayout layout, ShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void * pValues, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4870 {
4871 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4872 d.vkCmdPushConstants( static_cast<VkCommandBuffer>( m_commandBuffer ),
4873 static_cast<VkPipelineLayout>( layout ),
4874 static_cast<VkShaderStageFlags>( stageFlags ),
4875 offset,
4876 size,
4877 pValues );
4878 }
4879
4880 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4881 // wrapper function for command vkCmdPushConstants, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants.html
4882 template <typename ValuesType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushConstants ), bool>::type>
4883 VULKAN_HPP_INLINE void CommandBuffer::pushConstants( PipelineLayout layout,
4884 ShaderStageFlags stageFlags,
4885 uint32_t offset,
4886 ArrayProxy<const ValuesType> const & values,
4887 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4888 {
4889 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4890 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4891 VULKAN_HPP_ASSERT( d.vkCmdPushConstants && "Function <vkCmdPushConstants> requires <VK_VERSION_1_0>" );
4892 # endif
4893
4894 d.vkCmdPushConstants( m_commandBuffer,
4895 static_cast<VkPipelineLayout>( layout ),
4896 static_cast<VkShaderStageFlags>( stageFlags ),
4897 offset,
4898 values.size() * sizeof( ValuesType ),
4899 reinterpret_cast<const void *>( values.data() ) );
4900 }
4901 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
4902
4903 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
4904 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
4905 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createGraphicsPipelines( PipelineCache pipelineCache,
4906 uint32_t createInfoCount,
4907 const GraphicsPipelineCreateInfo * pCreateInfos,
4908 const AllocationCallbacks * pAllocator,
4909 Pipeline * pPipelines,
4910 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
4911 {
4912 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4913 return static_cast<Result>( d.vkCreateGraphicsPipelines( static_cast<VkDevice>( m_device ),
4914 static_cast<VkPipelineCache>( pipelineCache ),
4915 createInfoCount,
4916 reinterpret_cast<const VkGraphicsPipelineCreateInfo *>( pCreateInfos ),
4917 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
4918 reinterpret_cast<VkPipeline *>( pPipelines ) ) );
4919 }
4920
4921 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
4922 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
4923 template <typename PipelineAllocator,
4924 typename Dispatch,
4925 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
4926 typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
4927 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>>
4928 Device::createGraphicsPipelines( PipelineCache pipelineCache,
4929 ArrayProxy<const GraphicsPipelineCreateInfo> const & createInfos,
4930 Optional<const AllocationCallbacks> allocator,
4931 Dispatch const & d ) const
4932 {
4933 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4934 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4935 VULKAN_HPP_ASSERT( d.vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
4936 # endif
4937
4938 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size() );
4939 Result result = static_cast<Result>( d.vkCreateGraphicsPipelines( m_device,
4940 static_cast<VkPipelineCache>( pipelineCache ),
4941 createInfos.size(),
4942 reinterpret_cast<const VkGraphicsPipelineCreateInfo *>( createInfos.data() ),
4943 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
4944 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
4945 detail::resultCheck( result,
4946 VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipelines",
4947 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
4948 m_device,
4949 pipelines,
4950 allocator.get(),
4951 d );
4952
4953 return ResultValue<std::vector<Pipeline, PipelineAllocator>>( result, std::move( pipelines ) );
4954 }
4955
4956 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
4957 template <typename PipelineAllocator,
4958 typename Dispatch,
4959 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
4960 typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
4961 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>>
4962 Device::createGraphicsPipelines( PipelineCache pipelineCache,
4963 ArrayProxy<const GraphicsPipelineCreateInfo> const & createInfos,
4964 Optional<const AllocationCallbacks> allocator,
4965 PipelineAllocator const & pipelineAllocator,
4966 Dispatch const & d ) const
4967 {
4968 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4969 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
4970 VULKAN_HPP_ASSERT( d.vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
4971 # endif
4972
4973 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size(), {}, pipelineAllocator );
4974 Result result = static_cast<Result>( d.vkCreateGraphicsPipelines( m_device,
4975 static_cast<VkPipelineCache>( pipelineCache ),
4976 createInfos.size(),
4977 reinterpret_cast<const VkGraphicsPipelineCreateInfo *>( createInfos.data() ),
4978 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
4979 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
4980 detail::resultCheck( result,
4981 VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipelines",
4982 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
4983 m_device,
4984 pipelines,
4985 allocator.get(),
4986 d );
4987
4988 return ResultValue<std::vector<Pipeline, PipelineAllocator>>( result, std::move( pipelines ) );
4989 }
4990
4991 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
4992 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
4993 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<Pipeline> Device::createGraphicsPipeline( PipelineCache pipelineCache,
4994 const GraphicsPipelineCreateInfo & createInfo,
4995 Optional<const AllocationCallbacks> allocator,
4996 Dispatch const & d ) const
4997 {
4998 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
4999 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5000 VULKAN_HPP_ASSERT( d.vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
5001 # endif
5002
5003 Pipeline pipeline;
5004 Result result = static_cast<Result>( d.vkCreateGraphicsPipelines( m_device,
5005 static_cast<VkPipelineCache>( pipelineCache ),
5006 1,
5007 reinterpret_cast<const VkGraphicsPipelineCreateInfo *>( &createInfo ),
5008 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
5009 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
5010 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipeline", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
5011
5012 return ResultValue<Pipeline>( result, std::move( pipeline ) );
5013 }
5014
5015 # ifndef VULKAN_HPP_NO_SMART_HANDLE
5016 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
5017 template <typename Dispatch,
5018 typename PipelineAllocator,
5019 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
5020 typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
5021 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
5022 Device::createGraphicsPipelinesUnique( PipelineCache pipelineCache,
5023 ArrayProxy<const GraphicsPipelineCreateInfo> const & createInfos,
5024 Optional<const AllocationCallbacks> allocator,
5025 Dispatch const & d ) const
5026 {
5027 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5028 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5029 VULKAN_HPP_ASSERT( d.vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
5030 # endif
5031
5032 std::vector<Pipeline> pipelines( createInfos.size() );
5033 Result result = static_cast<Result>( d.vkCreateGraphicsPipelines( m_device,
5034 static_cast<VkPipelineCache>( pipelineCache ),
5035 createInfos.size(),
5036 reinterpret_cast<const VkGraphicsPipelineCreateInfo *>( createInfos.data() ),
5037 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
5038 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
5039 detail::resultCheck( result,
5040 VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipelinesUnique",
5041 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
5042 m_device,
5043 pipelines,
5044 allocator.get(),
5045 d );
5046 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines;
5047 uniquePipelines.reserve( createInfos.size() );
5048 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
5049 for ( auto const & pipeline : pipelines )
5050 {
5051 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
5052 }
5053 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
5054 }
5055
5056 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
5057 template <typename Dispatch,
5058 typename PipelineAllocator,
5059 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
5060 typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
5061 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
5062 Device::createGraphicsPipelinesUnique( PipelineCache pipelineCache,
5063 ArrayProxy<const GraphicsPipelineCreateInfo> const & createInfos,
5064 Optional<const AllocationCallbacks> allocator,
5065 PipelineAllocator const & pipelineAllocator,
5066 Dispatch const & d ) const
5067 {
5068 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5069 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5070 VULKAN_HPP_ASSERT( d.vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
5071 # endif
5072
5073 std::vector<Pipeline> pipelines( createInfos.size() );
5074 Result result = static_cast<Result>( d.vkCreateGraphicsPipelines( m_device,
5075 static_cast<VkPipelineCache>( pipelineCache ),
5076 createInfos.size(),
5077 reinterpret_cast<const VkGraphicsPipelineCreateInfo *>( createInfos.data() ),
5078 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
5079 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
5080 detail::resultCheck( result,
5081 VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipelinesUnique",
5082 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
5083 m_device,
5084 pipelines,
5085 allocator.get(),
5086 d );
5087 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines( pipelineAllocator );
5088 uniquePipelines.reserve( createInfos.size() );
5089 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
5090 for ( auto const & pipeline : pipelines )
5091 {
5092 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
5093 }
5094 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
5095 }
5096
5097 // wrapper function for command vkCreateGraphicsPipelines, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateGraphicsPipelines.html
5098 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateGraphicsPipelines ), bool>::type>
5099 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<Pipeline, Dispatch>> Device::createGraphicsPipelineUnique(
5100 PipelineCache pipelineCache, const GraphicsPipelineCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
5101 {
5102 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5103 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5104 VULKAN_HPP_ASSERT( d.vkCreateGraphicsPipelines && "Function <vkCreateGraphicsPipelines> requires <VK_VERSION_1_0>" );
5105 # endif
5106
5107 Pipeline pipeline;
5108 Result result = static_cast<Result>( d.vkCreateGraphicsPipelines( m_device,
5109 static_cast<VkPipelineCache>( pipelineCache ),
5110 1,
5111 reinterpret_cast<const VkGraphicsPipelineCreateInfo *>( &createInfo ),
5112 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
5113 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
5114 detail::resultCheck(
5115 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createGraphicsPipelineUnique", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
5116
5117 return ResultValue<UniqueHandle<Pipeline, Dispatch>>(
5118 result, UniqueHandle<Pipeline, Dispatch>( pipeline, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
5119 }
5120 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
5121 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5122
5123 // wrapper function for command vkCreateFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFramebuffer.html
5124 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateFramebuffer ), bool>::type>
5125 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createFramebuffer( const FramebufferCreateInfo * pCreateInfo,
5126 const AllocationCallbacks * pAllocator,
5127 Framebuffer * pFramebuffer,
5128 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5129 {
5130 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5131 return static_cast<Result>( d.vkCreateFramebuffer( static_cast<VkDevice>( m_device ),
5132 reinterpret_cast<const VkFramebufferCreateInfo *>( pCreateInfo ),
5133 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
5134 reinterpret_cast<VkFramebuffer *>( pFramebuffer ) ) );
5135 }
5136
5137 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5138 // wrapper function for command vkCreateFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFramebuffer.html
5139 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateFramebuffer ), bool>::type>
5140 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Framebuffer>::type
5141 Device::createFramebuffer( const FramebufferCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
5142 {
5143 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5144 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5145 VULKAN_HPP_ASSERT( d.vkCreateFramebuffer && "Function <vkCreateFramebuffer> requires <VK_VERSION_1_0>" );
5146 # endif
5147
5148 Framebuffer framebuffer;
5149 Result result = static_cast<Result>( d.vkCreateFramebuffer( m_device,
5150 reinterpret_cast<const VkFramebufferCreateInfo *>( &createInfo ),
5151 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
5152 reinterpret_cast<VkFramebuffer *>( &framebuffer ) ) );
5153 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createFramebuffer" );
5154
5155 return detail::createResultValueType( result, std::move( framebuffer ) );
5156 }
5157
5158 # ifndef VULKAN_HPP_NO_SMART_HANDLE
5159 // wrapper function for command vkCreateFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateFramebuffer.html
5160 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateFramebuffer ), bool>::type>
5161 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Framebuffer, Dispatch>>::type
5162 Device::createFramebufferUnique( const FramebufferCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
5163 {
5164 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5165 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5166 VULKAN_HPP_ASSERT( d.vkCreateFramebuffer && "Function <vkCreateFramebuffer> requires <VK_VERSION_1_0>" );
5167 # endif
5168
5169 Framebuffer framebuffer;
5170 Result result = static_cast<Result>( d.vkCreateFramebuffer( m_device,
5171 reinterpret_cast<const VkFramebufferCreateInfo *>( &createInfo ),
5172 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
5173 reinterpret_cast<VkFramebuffer *>( &framebuffer ) ) );
5174 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createFramebufferUnique" );
5175
5176 return detail::createResultValueType( result,
5177 UniqueHandle<Framebuffer, Dispatch>( framebuffer, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
5178 }
5179 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
5180 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5181
5182 // wrapper function for command vkDestroyFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFramebuffer.html
5183 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFramebuffer ), bool>::type>
5184 VULKAN_HPP_INLINE void
5185 Device::destroyFramebuffer( Framebuffer framebuffer, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5186 {
5187 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5188 d.vkDestroyFramebuffer(
5189 static_cast<VkDevice>( m_device ), static_cast<VkFramebuffer>( framebuffer ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
5190 }
5191
5192 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5193 // wrapper function for command vkDestroyFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFramebuffer.html
5194 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFramebuffer ), bool>::type>
5195 VULKAN_HPP_INLINE void
5196 Device::destroyFramebuffer( Framebuffer framebuffer, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5197 {
5198 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5199 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5200 VULKAN_HPP_ASSERT( d.vkDestroyFramebuffer && "Function <vkDestroyFramebuffer> requires <VK_VERSION_1_0>" );
5201 # endif
5202
5203 d.vkDestroyFramebuffer( m_device, static_cast<VkFramebuffer>( framebuffer ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
5204 }
5205 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5206
5207 // wrapper function for command vkDestroyFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFramebuffer.html
5208 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFramebuffer ), bool>::type>
5209 VULKAN_HPP_INLINE void Device::destroy( Framebuffer framebuffer, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5210 {
5211 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5212 d.vkDestroyFramebuffer(
5213 static_cast<VkDevice>( m_device ), static_cast<VkFramebuffer>( framebuffer ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
5214 }
5215
5216 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5217 // wrapper function for command vkDestroyFramebuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyFramebuffer.html
5218 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyFramebuffer ), bool>::type>
5219 VULKAN_HPP_INLINE void Device::destroy( Framebuffer framebuffer, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5220 {
5221 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5222 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5223 VULKAN_HPP_ASSERT( d.vkDestroyFramebuffer && "Function <vkDestroyFramebuffer> requires <VK_VERSION_1_0>" );
5224 # endif
5225
5226 d.vkDestroyFramebuffer( m_device, static_cast<VkFramebuffer>( framebuffer ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
5227 }
5228 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5229
5230 // wrapper function for command vkCreateRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass.html
5231 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass ), bool>::type>
5232 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createRenderPass( const RenderPassCreateInfo * pCreateInfo,
5233 const AllocationCallbacks * pAllocator,
5234 RenderPass * pRenderPass,
5235 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5236 {
5237 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5238 return static_cast<Result>( d.vkCreateRenderPass( static_cast<VkDevice>( m_device ),
5239 reinterpret_cast<const VkRenderPassCreateInfo *>( pCreateInfo ),
5240 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
5241 reinterpret_cast<VkRenderPass *>( pRenderPass ) ) );
5242 }
5243
5244 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5245 // wrapper function for command vkCreateRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass.html
5246 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass ), bool>::type>
5247 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RenderPass>::type
5248 Device::createRenderPass( const RenderPassCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
5249 {
5250 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5251 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5252 VULKAN_HPP_ASSERT( d.vkCreateRenderPass && "Function <vkCreateRenderPass> requires <VK_VERSION_1_0>" );
5253 # endif
5254
5255 RenderPass renderPass;
5256 Result result = static_cast<Result>( d.vkCreateRenderPass( m_device,
5257 reinterpret_cast<const VkRenderPassCreateInfo *>( &createInfo ),
5258 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
5259 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
5260 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass" );
5261
5262 return detail::createResultValueType( result, std::move( renderPass ) );
5263 }
5264
5265 # ifndef VULKAN_HPP_NO_SMART_HANDLE
5266 // wrapper function for command vkCreateRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass.html
5267 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass ), bool>::type>
5268 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<RenderPass, Dispatch>>::type
5269 Device::createRenderPassUnique( const RenderPassCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
5270 {
5271 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5272 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5273 VULKAN_HPP_ASSERT( d.vkCreateRenderPass && "Function <vkCreateRenderPass> requires <VK_VERSION_1_0>" );
5274 # endif
5275
5276 RenderPass renderPass;
5277 Result result = static_cast<Result>( d.vkCreateRenderPass( m_device,
5278 reinterpret_cast<const VkRenderPassCreateInfo *>( &createInfo ),
5279 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
5280 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
5281 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPassUnique" );
5282
5283 return detail::createResultValueType( result,
5284 UniqueHandle<RenderPass, Dispatch>( renderPass, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
5285 }
5286 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
5287 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5288
5289 // wrapper function for command vkDestroyRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyRenderPass.html
5290 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyRenderPass ), bool>::type>
5291 VULKAN_HPP_INLINE void
5292 Device::destroyRenderPass( RenderPass renderPass, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5293 {
5294 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5295 d.vkDestroyRenderPass(
5296 static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( renderPass ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
5297 }
5298
5299 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5300 // wrapper function for command vkDestroyRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyRenderPass.html
5301 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyRenderPass ), bool>::type>
5302 VULKAN_HPP_INLINE void
5303 Device::destroyRenderPass( RenderPass renderPass, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5304 {
5305 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5306 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5307 VULKAN_HPP_ASSERT( d.vkDestroyRenderPass && "Function <vkDestroyRenderPass> requires <VK_VERSION_1_0>" );
5308 # endif
5309
5310 d.vkDestroyRenderPass( m_device, static_cast<VkRenderPass>( renderPass ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
5311 }
5312 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5313
5314 // wrapper function for command vkDestroyRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyRenderPass.html
5315 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyRenderPass ), bool>::type>
5316 VULKAN_HPP_INLINE void Device::destroy( RenderPass renderPass, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5317 {
5318 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5319 d.vkDestroyRenderPass(
5320 static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( renderPass ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
5321 }
5322
5323 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5324 // wrapper function for command vkDestroyRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyRenderPass.html
5325 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyRenderPass ), bool>::type>
5326 VULKAN_HPP_INLINE void Device::destroy( RenderPass renderPass, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5327 {
5328 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5329 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5330 VULKAN_HPP_ASSERT( d.vkDestroyRenderPass && "Function <vkDestroyRenderPass> requires <VK_VERSION_1_0>" );
5331 # endif
5332
5333 d.vkDestroyRenderPass( m_device, static_cast<VkRenderPass>( renderPass ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
5334 }
5335 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5336
5337 // wrapper function for command vkGetRenderAreaGranularity, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderAreaGranularity.html
5338 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRenderAreaGranularity ), bool>::type>
5339 VULKAN_HPP_INLINE void Device::getRenderAreaGranularity( RenderPass renderPass, Extent2D * pGranularity, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5340 {
5341 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5342 d.vkGetRenderAreaGranularity( static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( renderPass ), reinterpret_cast<VkExtent2D *>( pGranularity ) );
5343 }
5344
5345 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5346 // wrapper function for command vkGetRenderAreaGranularity, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderAreaGranularity.html
5347 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRenderAreaGranularity ), bool>::type>
5348 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Extent2D Device::getRenderAreaGranularity( RenderPass renderPass, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5349 {
5350 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5351 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5352 VULKAN_HPP_ASSERT( d.vkGetRenderAreaGranularity && "Function <vkGetRenderAreaGranularity> requires <VK_VERSION_1_0>" );
5353 # endif
5354
5355 Extent2D granularity;
5356 d.vkGetRenderAreaGranularity( m_device, static_cast<VkRenderPass>( renderPass ), reinterpret_cast<VkExtent2D *>( &granularity ) );
5357
5358 return granularity;
5359 }
5360 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5361
5362 // wrapper function for command vkCmdSetViewport, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewport.html
5363 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewport ), bool>::type>
5364 VULKAN_HPP_INLINE void
5365 CommandBuffer::setViewport( uint32_t firstViewport, uint32_t viewportCount, const Viewport * pViewports, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5366 {
5367 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5368 d.vkCmdSetViewport( static_cast<VkCommandBuffer>( m_commandBuffer ), firstViewport, viewportCount, reinterpret_cast<const VkViewport *>( pViewports ) );
5369 }
5370
5371 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5372 // wrapper function for command vkCmdSetViewport, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewport.html
5373 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewport ), bool>::type>
5374 VULKAN_HPP_INLINE void
5375 CommandBuffer::setViewport( uint32_t firstViewport, ArrayProxy<const Viewport> const & viewports, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5376 {
5377 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5378 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5379 VULKAN_HPP_ASSERT( d.vkCmdSetViewport && "Function <vkCmdSetViewport> requires <VK_VERSION_1_0>" );
5380 # endif
5381
5382 d.vkCmdSetViewport( m_commandBuffer, firstViewport, viewports.size(), reinterpret_cast<const VkViewport *>( viewports.data() ) );
5383 }
5384 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5385
5386 // wrapper function for command vkCmdSetScissor, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissor.html
5387 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetScissor ), bool>::type>
5388 VULKAN_HPP_INLINE void
5389 CommandBuffer::setScissor( uint32_t firstScissor, uint32_t scissorCount, const Rect2D * pScissors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5390 {
5391 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5392 d.vkCmdSetScissor( static_cast<VkCommandBuffer>( m_commandBuffer ), firstScissor, scissorCount, reinterpret_cast<const VkRect2D *>( pScissors ) );
5393 }
5394
5395 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5396 // wrapper function for command vkCmdSetScissor, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissor.html
5397 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetScissor ), bool>::type>
5398 VULKAN_HPP_INLINE void
5399 CommandBuffer::setScissor( uint32_t firstScissor, ArrayProxy<const Rect2D> const & scissors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5400 {
5401 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5402 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5403 VULKAN_HPP_ASSERT( d.vkCmdSetScissor && "Function <vkCmdSetScissor> requires <VK_VERSION_1_0>" );
5404 # endif
5405
5406 d.vkCmdSetScissor( m_commandBuffer, firstScissor, scissors.size(), reinterpret_cast<const VkRect2D *>( scissors.data() ) );
5407 }
5408 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5409
5410 // wrapper function for command vkCmdSetLineWidth, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineWidth.html
5411 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLineWidth ), bool>::type>
5412 VULKAN_HPP_INLINE void CommandBuffer::setLineWidth( float lineWidth, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5413 {
5414 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5415 d.vkCmdSetLineWidth( static_cast<VkCommandBuffer>( m_commandBuffer ), lineWidth );
5416 }
5417
5418 // wrapper function for command vkCmdSetDepthBias, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBias.html
5419 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBias ), bool>::type>
5420 VULKAN_HPP_INLINE void
5421 CommandBuffer::setDepthBias( float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5422 {
5423 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5424 d.vkCmdSetDepthBias( static_cast<VkCommandBuffer>( m_commandBuffer ), depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor );
5425 }
5426
5427 // wrapper function for command vkCmdSetBlendConstants, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetBlendConstants.html
5428 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetBlendConstants ), bool>::type>
5429 VULKAN_HPP_INLINE void CommandBuffer::setBlendConstants( const float blendConstants[4], Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5430 {
5431 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5432 d.vkCmdSetBlendConstants( static_cast<VkCommandBuffer>( m_commandBuffer ), blendConstants );
5433 }
5434
5435 // wrapper function for command vkCmdSetDepthBounds, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBounds.html
5436 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBounds ), bool>::type>
5437 VULKAN_HPP_INLINE void CommandBuffer::setDepthBounds( float minDepthBounds, float maxDepthBounds, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5438 {
5439 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5440 d.vkCmdSetDepthBounds( static_cast<VkCommandBuffer>( m_commandBuffer ), minDepthBounds, maxDepthBounds );
5441 }
5442
5443 // wrapper function for command vkCmdSetStencilCompareMask, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilCompareMask.html
5444 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilCompareMask ), bool>::type>
5445 VULKAN_HPP_INLINE void CommandBuffer::setStencilCompareMask( StencilFaceFlags faceMask, uint32_t compareMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5446 {
5447 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5448 d.vkCmdSetStencilCompareMask( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ), compareMask );
5449 }
5450
5451 // wrapper function for command vkCmdSetStencilWriteMask, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilWriteMask.html
5452 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilWriteMask ), bool>::type>
5453 VULKAN_HPP_INLINE void CommandBuffer::setStencilWriteMask( StencilFaceFlags faceMask, uint32_t writeMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5454 {
5455 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5456 d.vkCmdSetStencilWriteMask( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ), writeMask );
5457 }
5458
5459 // wrapper function for command vkCmdSetStencilReference, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilReference.html
5460 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilReference ), bool>::type>
5461 VULKAN_HPP_INLINE void CommandBuffer::setStencilReference( StencilFaceFlags faceMask, uint32_t reference, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5462 {
5463 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5464 d.vkCmdSetStencilReference( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkStencilFaceFlags>( faceMask ), reference );
5465 }
5466
5467 // wrapper function for command vkCmdBindIndexBuffer, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer.html
5468 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindIndexBuffer ), bool>::type>
5469 VULKAN_HPP_INLINE void CommandBuffer::bindIndexBuffer( Buffer buffer, DeviceSize offset, IndexType indexType, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5470 {
5471 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5472 d.vkCmdBindIndexBuffer( static_cast<VkCommandBuffer>( m_commandBuffer ),
5473 static_cast<VkBuffer>( buffer ),
5474 static_cast<VkDeviceSize>( offset ),
5475 static_cast<VkIndexType>( indexType ) );
5476 }
5477
5478 // wrapper function for command vkCmdBindVertexBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers.html
5479 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers ), bool>::type>
5480 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers(
5481 uint32_t firstBinding, uint32_t bindingCount, const Buffer * pBuffers, const DeviceSize * pOffsets, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5482 {
5483 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5484 d.vkCmdBindVertexBuffers( static_cast<VkCommandBuffer>( m_commandBuffer ),
5485 firstBinding,
5486 bindingCount,
5487 reinterpret_cast<const VkBuffer *>( pBuffers ),
5488 reinterpret_cast<const VkDeviceSize *>( pOffsets ) );
5489 }
5490
5491 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5492 // wrapper function for command vkCmdBindVertexBuffers, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers.html
5493 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers ), bool>::type>
5494 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers( uint32_t firstBinding,
5495 ArrayProxy<const Buffer> const & buffers,
5496 ArrayProxy<const DeviceSize> const & offsets,
5497 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
5498 {
5499 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5500 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5501 VULKAN_HPP_ASSERT( d.vkCmdBindVertexBuffers && "Function <vkCmdBindVertexBuffers> requires <VK_VERSION_1_0>" );
5502 # endif
5503 # ifdef VULKAN_HPP_NO_EXCEPTIONS
5504 VULKAN_HPP_ASSERT( buffers.size() == offsets.size() );
5505 # else
5506 if ( buffers.size() != offsets.size() )
5507 {
5508 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers: buffers.size() != offsets.size()" );
5509 }
5510 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
5511
5512 d.vkCmdBindVertexBuffers( m_commandBuffer,
5513 firstBinding,
5514 buffers.size(),
5515 reinterpret_cast<const VkBuffer *>( buffers.data() ),
5516 reinterpret_cast<const VkDeviceSize *>( offsets.data() ) );
5517 }
5518 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5519
5520 // wrapper function for command vkCmdDraw, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDraw.html
5521 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDraw ), bool>::type>
5522 VULKAN_HPP_INLINE void CommandBuffer::draw(
5523 uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5524 {
5525 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5526 d.vkCmdDraw( static_cast<VkCommandBuffer>( m_commandBuffer ), vertexCount, instanceCount, firstVertex, firstInstance );
5527 }
5528
5529 // wrapper function for command vkCmdDrawIndexed, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexed.html
5530 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexed ), bool>::type>
5531 VULKAN_HPP_INLINE void CommandBuffer::drawIndexed( uint32_t indexCount,
5532 uint32_t instanceCount,
5533 uint32_t firstIndex,
5534 int32_t vertexOffset,
5535 uint32_t firstInstance,
5536 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5537 {
5538 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5539 d.vkCmdDrawIndexed( static_cast<VkCommandBuffer>( m_commandBuffer ), indexCount, instanceCount, firstIndex, vertexOffset, firstInstance );
5540 }
5541
5542 // wrapper function for command vkCmdDrawIndirect, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirect.html
5543 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirect ), bool>::type>
5544 VULKAN_HPP_INLINE void
5545 CommandBuffer::drawIndirect( Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5546 {
5547 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5548 d.vkCmdDrawIndirect(
5549 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ), drawCount, stride );
5550 }
5551
5552 // wrapper function for command vkCmdDrawIndexedIndirect, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirect.html
5553 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexedIndirect ), bool>::type>
5554 VULKAN_HPP_INLINE void
5555 CommandBuffer::drawIndexedIndirect( Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5556 {
5557 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5558 d.vkCmdDrawIndexedIndirect(
5559 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ), drawCount, stride );
5560 }
5561
5562 // wrapper function for command vkCmdBlitImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage.html
5563 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBlitImage ), bool>::type>
5564 VULKAN_HPP_INLINE void CommandBuffer::blitImage( Image srcImage,
5565 ImageLayout srcImageLayout,
5566 Image dstImage,
5567 ImageLayout dstImageLayout,
5568 uint32_t regionCount,
5569 const ImageBlit * pRegions,
5570 Filter filter,
5571 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5572 {
5573 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5574 d.vkCmdBlitImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
5575 static_cast<VkImage>( srcImage ),
5576 static_cast<VkImageLayout>( srcImageLayout ),
5577 static_cast<VkImage>( dstImage ),
5578 static_cast<VkImageLayout>( dstImageLayout ),
5579 regionCount,
5580 reinterpret_cast<const VkImageBlit *>( pRegions ),
5581 static_cast<VkFilter>( filter ) );
5582 }
5583
5584 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5585 // wrapper function for command vkCmdBlitImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage.html
5586 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBlitImage ), bool>::type>
5587 VULKAN_HPP_INLINE void CommandBuffer::blitImage( Image srcImage,
5588 ImageLayout srcImageLayout,
5589 Image dstImage,
5590 ImageLayout dstImageLayout,
5591 ArrayProxy<const ImageBlit> const & regions,
5592 Filter filter,
5593 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5594 {
5595 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5596 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5597 VULKAN_HPP_ASSERT( d.vkCmdBlitImage && "Function <vkCmdBlitImage> requires <VK_VERSION_1_0>" );
5598 # endif
5599
5600 d.vkCmdBlitImage( m_commandBuffer,
5601 static_cast<VkImage>( srcImage ),
5602 static_cast<VkImageLayout>( srcImageLayout ),
5603 static_cast<VkImage>( dstImage ),
5604 static_cast<VkImageLayout>( dstImageLayout ),
5605 regions.size(),
5606 reinterpret_cast<const VkImageBlit *>( regions.data() ),
5607 static_cast<VkFilter>( filter ) );
5608 }
5609 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5610
5611 // wrapper function for command vkCmdClearDepthStencilImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearDepthStencilImage.html
5612 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdClearDepthStencilImage ), bool>::type>
5613 VULKAN_HPP_INLINE void CommandBuffer::clearDepthStencilImage( Image image,
5614 ImageLayout imageLayout,
5615 const ClearDepthStencilValue * pDepthStencil,
5616 uint32_t rangeCount,
5617 const ImageSubresourceRange * pRanges,
5618 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5619 {
5620 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5621 d.vkCmdClearDepthStencilImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
5622 static_cast<VkImage>( image ),
5623 static_cast<VkImageLayout>( imageLayout ),
5624 reinterpret_cast<const VkClearDepthStencilValue *>( pDepthStencil ),
5625 rangeCount,
5626 reinterpret_cast<const VkImageSubresourceRange *>( pRanges ) );
5627 }
5628
5629 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5630 // wrapper function for command vkCmdClearDepthStencilImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearDepthStencilImage.html
5631 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdClearDepthStencilImage ), bool>::type>
5632 VULKAN_HPP_INLINE void CommandBuffer::clearDepthStencilImage( Image image,
5633 ImageLayout imageLayout,
5634 const ClearDepthStencilValue & depthStencil,
5635 ArrayProxy<const ImageSubresourceRange> const & ranges,
5636 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5637 {
5638 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5639 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5640 VULKAN_HPP_ASSERT( d.vkCmdClearDepthStencilImage && "Function <vkCmdClearDepthStencilImage> requires <VK_VERSION_1_0>" );
5641 # endif
5642
5643 d.vkCmdClearDepthStencilImage( m_commandBuffer,
5644 static_cast<VkImage>( image ),
5645 static_cast<VkImageLayout>( imageLayout ),
5646 reinterpret_cast<const VkClearDepthStencilValue *>( &depthStencil ),
5647 ranges.size(),
5648 reinterpret_cast<const VkImageSubresourceRange *>( ranges.data() ) );
5649 }
5650 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5651
5652 // wrapper function for command vkCmdClearAttachments, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearAttachments.html
5653 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdClearAttachments ), bool>::type>
5654 VULKAN_HPP_INLINE void CommandBuffer::clearAttachments(
5655 uint32_t attachmentCount, const ClearAttachment * pAttachments, uint32_t rectCount, const ClearRect * pRects, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5656 {
5657 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5658 d.vkCmdClearAttachments( static_cast<VkCommandBuffer>( m_commandBuffer ),
5659 attachmentCount,
5660 reinterpret_cast<const VkClearAttachment *>( pAttachments ),
5661 rectCount,
5662 reinterpret_cast<const VkClearRect *>( pRects ) );
5663 }
5664
5665 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5666 // wrapper function for command vkCmdClearAttachments, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdClearAttachments.html
5667 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdClearAttachments ), bool>::type>
5668 VULKAN_HPP_INLINE void CommandBuffer::clearAttachments( ArrayProxy<const ClearAttachment> const & attachments,
5669 ArrayProxy<const ClearRect> const & rects,
5670 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5671 {
5672 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5673 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5674 VULKAN_HPP_ASSERT( d.vkCmdClearAttachments && "Function <vkCmdClearAttachments> requires <VK_VERSION_1_0>" );
5675 # endif
5676
5677 d.vkCmdClearAttachments( m_commandBuffer,
5678 attachments.size(),
5679 reinterpret_cast<const VkClearAttachment *>( attachments.data() ),
5680 rects.size(),
5681 reinterpret_cast<const VkClearRect *>( rects.data() ) );
5682 }
5683 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5684
5685 // wrapper function for command vkCmdResolveImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage.html
5686 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResolveImage ), bool>::type>
5687 VULKAN_HPP_INLINE void CommandBuffer::resolveImage( Image srcImage,
5688 ImageLayout srcImageLayout,
5689 Image dstImage,
5690 ImageLayout dstImageLayout,
5691 uint32_t regionCount,
5692 const ImageResolve * pRegions,
5693 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5694 {
5695 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5696 d.vkCmdResolveImage( static_cast<VkCommandBuffer>( m_commandBuffer ),
5697 static_cast<VkImage>( srcImage ),
5698 static_cast<VkImageLayout>( srcImageLayout ),
5699 static_cast<VkImage>( dstImage ),
5700 static_cast<VkImageLayout>( dstImageLayout ),
5701 regionCount,
5702 reinterpret_cast<const VkImageResolve *>( pRegions ) );
5703 }
5704
5705 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5706 // wrapper function for command vkCmdResolveImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage.html
5707 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResolveImage ), bool>::type>
5708 VULKAN_HPP_INLINE void CommandBuffer::resolveImage( Image srcImage,
5709 ImageLayout srcImageLayout,
5710 Image dstImage,
5711 ImageLayout dstImageLayout,
5712 ArrayProxy<const ImageResolve> const & regions,
5713 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5714 {
5715 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5716 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5717 VULKAN_HPP_ASSERT( d.vkCmdResolveImage && "Function <vkCmdResolveImage> requires <VK_VERSION_1_0>" );
5718 # endif
5719
5720 d.vkCmdResolveImage( m_commandBuffer,
5721 static_cast<VkImage>( srcImage ),
5722 static_cast<VkImageLayout>( srcImageLayout ),
5723 static_cast<VkImage>( dstImage ),
5724 static_cast<VkImageLayout>( dstImageLayout ),
5725 regions.size(),
5726 reinterpret_cast<const VkImageResolve *>( regions.data() ) );
5727 }
5728 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5729
5730 // wrapper function for command vkCmdBeginRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass.html
5731 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderPass ), bool>::type>
5732 VULKAN_HPP_INLINE void
5733 CommandBuffer::beginRenderPass( const RenderPassBeginInfo * pRenderPassBegin, SubpassContents contents, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5734 {
5735 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5736 d.vkCmdBeginRenderPass( static_cast<VkCommandBuffer>( m_commandBuffer ),
5737 reinterpret_cast<const VkRenderPassBeginInfo *>( pRenderPassBegin ),
5738 static_cast<VkSubpassContents>( contents ) );
5739 }
5740
5741 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5742 // wrapper function for command vkCmdBeginRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass.html
5743 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderPass ), bool>::type>
5744 VULKAN_HPP_INLINE void
5745 CommandBuffer::beginRenderPass( const RenderPassBeginInfo & renderPassBegin, SubpassContents contents, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5746 {
5747 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5748 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5749 VULKAN_HPP_ASSERT( d.vkCmdBeginRenderPass && "Function <vkCmdBeginRenderPass> requires <VK_VERSION_1_0>" );
5750 # endif
5751
5752 d.vkCmdBeginRenderPass( m_commandBuffer, reinterpret_cast<const VkRenderPassBeginInfo *>( &renderPassBegin ), static_cast<VkSubpassContents>( contents ) );
5753 }
5754 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5755
5756 // wrapper function for command vkCmdNextSubpass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass.html
5757 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdNextSubpass ), bool>::type>
5758 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass( SubpassContents contents, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5759 {
5760 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5761 d.vkCmdNextSubpass( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkSubpassContents>( contents ) );
5762 }
5763
5764 // wrapper function for command vkCmdEndRenderPass, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass.html
5765 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRenderPass ), bool>::type>
5766 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5767 {
5768 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5769 d.vkCmdEndRenderPass( static_cast<VkCommandBuffer>( m_commandBuffer ) );
5770 }
5771
5772 //=== VK_VERSION_1_1 ===
5773
5774 // wrapper function for command vkEnumerateInstanceVersion, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceVersion.html
5775 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceVersion ), bool>::type>
5776 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result enumerateInstanceVersion( uint32_t * pApiVersion, Dispatch const & d ) VULKAN_HPP_NOEXCEPT
5777 {
5778 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5779 return static_cast<Result>( d.vkEnumerateInstanceVersion( pApiVersion ) );
5780 }
5781
5782 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5783 // wrapper function for command vkEnumerateInstanceVersion, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumerateInstanceVersion.html
5784 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumerateInstanceVersion ), bool>::type>
5785 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint32_t>::type enumerateInstanceVersion( Dispatch const & d )
5786 {
5787 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5788 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5789 VULKAN_HPP_ASSERT( d.vkEnumerateInstanceVersion && "Function <vkEnumerateInstanceVersion> requires <VK_VERSION_1_1>" );
5790 # endif
5791
5792 uint32_t apiVersion;
5793 Result result = static_cast<Result>( d.vkEnumerateInstanceVersion( &apiVersion ) );
5794 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::enumerateInstanceVersion" );
5795
5796 return detail::createResultValueType( result, std::move( apiVersion ) );
5797 }
5798 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5799
5800 // wrapper function for command vkBindBufferMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory2.html
5801 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindBufferMemory2 ), bool>::type>
5802 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindBufferMemory2( uint32_t bindInfoCount,
5803 const BindBufferMemoryInfo * pBindInfos,
5804 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5805 {
5806 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5807 return static_cast<Result>(
5808 d.vkBindBufferMemory2( static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<const VkBindBufferMemoryInfo *>( pBindInfos ) ) );
5809 }
5810
5811 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5812 // wrapper function for command vkBindBufferMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory2.html
5813 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindBufferMemory2 ), bool>::type>
5814 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
5815 Device::bindBufferMemory2( ArrayProxy<const BindBufferMemoryInfo> const & bindInfos, Dispatch const & d ) const
5816 {
5817 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5818 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5819 VULKAN_HPP_ASSERT( d.vkBindBufferMemory2 && "Function <vkBindBufferMemory2> requires <VK_KHR_bind_memory2> or <VK_VERSION_1_1>" );
5820 # endif
5821
5822 Result result =
5823 static_cast<Result>( d.vkBindBufferMemory2( m_device, bindInfos.size(), reinterpret_cast<const VkBindBufferMemoryInfo *>( bindInfos.data() ) ) );
5824 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindBufferMemory2" );
5825
5826 return detail::createResultValueType( result );
5827 }
5828 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5829
5830 // wrapper function for command vkBindImageMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory2.html
5831 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindImageMemory2 ), bool>::type>
5832 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindImageMemory2( uint32_t bindInfoCount,
5833 const BindImageMemoryInfo * pBindInfos,
5834 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5835 {
5836 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5837 return static_cast<Result>(
5838 d.vkBindImageMemory2( static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<const VkBindImageMemoryInfo *>( pBindInfos ) ) );
5839 }
5840
5841 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5842 // wrapper function for command vkBindImageMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory2.html
5843 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindImageMemory2 ), bool>::type>
5844 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
5845 Device::bindImageMemory2( ArrayProxy<const BindImageMemoryInfo> const & bindInfos, Dispatch const & d ) const
5846 {
5847 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5848 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5849 VULKAN_HPP_ASSERT( d.vkBindImageMemory2 && "Function <vkBindImageMemory2> requires <VK_KHR_bind_memory2> or <VK_VERSION_1_1>" );
5850 # endif
5851
5852 Result result =
5853 static_cast<Result>( d.vkBindImageMemory2( m_device, bindInfos.size(), reinterpret_cast<const VkBindImageMemoryInfo *>( bindInfos.data() ) ) );
5854 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindImageMemory2" );
5855
5856 return detail::createResultValueType( result );
5857 }
5858 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5859
5860 // wrapper function for command vkGetDeviceGroupPeerMemoryFeatures, see
5861 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPeerMemoryFeatures.html
5862 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupPeerMemoryFeatures ), bool>::type>
5863 VULKAN_HPP_INLINE void Device::getGroupPeerMemoryFeatures( uint32_t heapIndex,
5864 uint32_t localDeviceIndex,
5865 uint32_t remoteDeviceIndex,
5866 PeerMemoryFeatureFlags * pPeerMemoryFeatures,
5867 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5868 {
5869 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5870 d.vkGetDeviceGroupPeerMemoryFeatures(
5871 static_cast<VkDevice>( m_device ), heapIndex, localDeviceIndex, remoteDeviceIndex, reinterpret_cast<VkPeerMemoryFeatureFlags *>( pPeerMemoryFeatures ) );
5872 }
5873
5874 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5875 // wrapper function for command vkGetDeviceGroupPeerMemoryFeatures, see
5876 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPeerMemoryFeatures.html
5877 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupPeerMemoryFeatures ), bool>::type>
5878 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PeerMemoryFeatureFlags Device::getGroupPeerMemoryFeatures( uint32_t heapIndex,
5879 uint32_t localDeviceIndex,
5880 uint32_t remoteDeviceIndex,
5881 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5882 {
5883 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5884 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5885 VULKAN_HPP_ASSERT( d.vkGetDeviceGroupPeerMemoryFeatures &&
5886 "Function <vkGetDeviceGroupPeerMemoryFeatures> requires <VK_KHR_device_group> or <VK_VERSION_1_1>" );
5887 # endif
5888
5889 PeerMemoryFeatureFlags peerMemoryFeatures;
5890 d.vkGetDeviceGroupPeerMemoryFeatures(
5891 m_device, heapIndex, localDeviceIndex, remoteDeviceIndex, reinterpret_cast<VkPeerMemoryFeatureFlags *>( &peerMemoryFeatures ) );
5892
5893 return peerMemoryFeatures;
5894 }
5895 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5896
5897 // wrapper function for command vkCmdSetDeviceMask, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDeviceMask.html
5898 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDeviceMask ), bool>::type>
5899 VULKAN_HPP_INLINE void CommandBuffer::setDeviceMask( uint32_t deviceMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5900 {
5901 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5902 d.vkCmdSetDeviceMask( static_cast<VkCommandBuffer>( m_commandBuffer ), deviceMask );
5903 }
5904
5905 // wrapper function for command vkEnumeratePhysicalDeviceGroups, see
5906 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroups.html
5907 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceGroups ), bool>::type>
5908 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::enumeratePhysicalDeviceGroups( uint32_t * pPhysicalDeviceGroupCount,
5909 PhysicalDeviceGroupProperties * pPhysicalDeviceGroupProperties,
5910 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
5911 {
5912 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5913 return static_cast<Result>( d.vkEnumeratePhysicalDeviceGroups( static_cast<VkInstance>( m_instance ),
5914 pPhysicalDeviceGroupCount,
5915 reinterpret_cast<VkPhysicalDeviceGroupProperties *>( pPhysicalDeviceGroupProperties ) ) );
5916 }
5917
5918 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
5919 // wrapper function for command vkEnumeratePhysicalDeviceGroups, see
5920 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroups.html
5921 template <typename PhysicalDeviceGroupPropertiesAllocator,
5922 typename Dispatch,
5923 typename std::enable_if<std::is_same<typename PhysicalDeviceGroupPropertiesAllocator::value_type, PhysicalDeviceGroupProperties>::value, int>::type,
5924 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceGroups ), bool>::type>
5925 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator>>::type
5926 Instance::enumeratePhysicalDeviceGroups( Dispatch const & d ) const
5927 {
5928 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5929 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5930 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceGroups &&
5931 "Function <vkEnumeratePhysicalDeviceGroups> requires <VK_KHR_device_group_creation> or <VK_VERSION_1_1>" );
5932 # endif
5933
5934 std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator> physicalDeviceGroupProperties;
5935 uint32_t physicalDeviceGroupCount;
5936 Result result;
5937 do
5938 {
5939 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroups( m_instance, &physicalDeviceGroupCount, nullptr ) );
5940 if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount )
5941 {
5942 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
5943 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroups(
5944 m_instance, &physicalDeviceGroupCount, reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
5945 }
5946 } while ( result == Result::eIncomplete );
5947 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroups" );
5948 VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
5949 if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
5950 {
5951 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
5952 }
5953 return detail::createResultValueType( result, std::move( physicalDeviceGroupProperties ) );
5954 }
5955
5956 // wrapper function for command vkEnumeratePhysicalDeviceGroups, see
5957 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroups.html
5958 template <typename PhysicalDeviceGroupPropertiesAllocator,
5959 typename Dispatch,
5960 typename std::enable_if<std::is_same<typename PhysicalDeviceGroupPropertiesAllocator::value_type, PhysicalDeviceGroupProperties>::value, int>::type,
5961 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceGroups ), bool>::type>
5962 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator>>::type
5963 Instance::enumeratePhysicalDeviceGroups( PhysicalDeviceGroupPropertiesAllocator const & physicalDeviceGroupPropertiesAllocator, Dispatch const & d ) const
5964 {
5965 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
5966 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
5967 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceGroups &&
5968 "Function <vkEnumeratePhysicalDeviceGroups> requires <VK_KHR_device_group_creation> or <VK_VERSION_1_1>" );
5969 # endif
5970
5971 std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator> physicalDeviceGroupProperties( physicalDeviceGroupPropertiesAllocator );
5972 uint32_t physicalDeviceGroupCount;
5973 Result result;
5974 do
5975 {
5976 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroups( m_instance, &physicalDeviceGroupCount, nullptr ) );
5977 if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount )
5978 {
5979 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
5980 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroups(
5981 m_instance, &physicalDeviceGroupCount, reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
5982 }
5983 } while ( result == Result::eIncomplete );
5984 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroups" );
5985 VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
5986 if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
5987 {
5988 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
5989 }
5990 return detail::createResultValueType( result, std::move( physicalDeviceGroupProperties ) );
5991 }
5992 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
5993
5994 // wrapper function for command vkGetImageMemoryRequirements2, see
5995 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2.html
5996 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements2 ), bool>::type>
5997 VULKAN_HPP_INLINE void Device::getImageMemoryRequirements2( const ImageMemoryRequirementsInfo2 * pInfo,
5998 MemoryRequirements2 * pMemoryRequirements,
5999 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6000 {
6001 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6002 d.vkGetImageMemoryRequirements2( static_cast<VkDevice>( m_device ),
6003 reinterpret_cast<const VkImageMemoryRequirementsInfo2 *>( pInfo ),
6004 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
6005 }
6006
6007 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6008 // wrapper function for command vkGetImageMemoryRequirements2, see
6009 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2.html
6010 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements2 ), bool>::type>
6011 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getImageMemoryRequirements2( const ImageMemoryRequirementsInfo2 & info,
6012 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6013 {
6014 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6015 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6016 VULKAN_HPP_ASSERT( d.vkGetImageMemoryRequirements2 &&
6017 "Function <vkGetImageMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
6018 # endif
6019
6020 MemoryRequirements2 memoryRequirements;
6021 d.vkGetImageMemoryRequirements2(
6022 m_device, reinterpret_cast<const VkImageMemoryRequirementsInfo2 *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
6023
6024 return memoryRequirements;
6025 }
6026
6027 // wrapper function for command vkGetImageMemoryRequirements2, see
6028 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2.html
6029 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements2 ), bool>::type>
6030 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageMemoryRequirements2( const ImageMemoryRequirementsInfo2 & info,
6031 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6032 {
6033 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6034 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6035 VULKAN_HPP_ASSERT( d.vkGetImageMemoryRequirements2 &&
6036 "Function <vkGetImageMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
6037 # endif
6038
6039 StructureChain<X, Y, Z...> structureChain;
6040 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
6041 d.vkGetImageMemoryRequirements2(
6042 m_device, reinterpret_cast<const VkImageMemoryRequirementsInfo2 *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
6043
6044 return structureChain;
6045 }
6046 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6047
6048 // wrapper function for command vkGetBufferMemoryRequirements2, see
6049 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2.html
6050 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements2 ), bool>::type>
6051 VULKAN_HPP_INLINE void Device::getBufferMemoryRequirements2( const BufferMemoryRequirementsInfo2 * pInfo,
6052 MemoryRequirements2 * pMemoryRequirements,
6053 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6054 {
6055 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6056 d.vkGetBufferMemoryRequirements2( static_cast<VkDevice>( m_device ),
6057 reinterpret_cast<const VkBufferMemoryRequirementsInfo2 *>( pInfo ),
6058 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
6059 }
6060
6061 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6062 // wrapper function for command vkGetBufferMemoryRequirements2, see
6063 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2.html
6064 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements2 ), bool>::type>
6065 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getBufferMemoryRequirements2( const BufferMemoryRequirementsInfo2 & info,
6066 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6067 {
6068 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6069 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6070 VULKAN_HPP_ASSERT( d.vkGetBufferMemoryRequirements2 &&
6071 "Function <vkGetBufferMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
6072 # endif
6073
6074 MemoryRequirements2 memoryRequirements;
6075 d.vkGetBufferMemoryRequirements2(
6076 m_device, reinterpret_cast<const VkBufferMemoryRequirementsInfo2 *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
6077
6078 return memoryRequirements;
6079 }
6080
6081 // wrapper function for command vkGetBufferMemoryRequirements2, see
6082 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2.html
6083 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements2 ), bool>::type>
6084 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getBufferMemoryRequirements2( const BufferMemoryRequirementsInfo2 & info,
6085 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6086 {
6087 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6088 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6089 VULKAN_HPP_ASSERT( d.vkGetBufferMemoryRequirements2 &&
6090 "Function <vkGetBufferMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
6091 # endif
6092
6093 StructureChain<X, Y, Z...> structureChain;
6094 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
6095 d.vkGetBufferMemoryRequirements2(
6096 m_device, reinterpret_cast<const VkBufferMemoryRequirementsInfo2 *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
6097
6098 return structureChain;
6099 }
6100 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6101
6102 // wrapper function for command vkGetImageSparseMemoryRequirements2, see
6103 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2.html
6104 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements2 ), bool>::type>
6105 VULKAN_HPP_INLINE void Device::getImageSparseMemoryRequirements2( const ImageSparseMemoryRequirementsInfo2 * pInfo,
6106 uint32_t * pSparseMemoryRequirementCount,
6107 SparseImageMemoryRequirements2 * pSparseMemoryRequirements,
6108 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6109 {
6110 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6111 d.vkGetImageSparseMemoryRequirements2( static_cast<VkDevice>( m_device ),
6112 reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( pInfo ),
6113 pSparseMemoryRequirementCount,
6114 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( pSparseMemoryRequirements ) );
6115 }
6116
6117 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6118 // wrapper function for command vkGetImageSparseMemoryRequirements2, see
6119 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2.html
6120 template <
6121 typename SparseImageMemoryRequirements2Allocator,
6122 typename Dispatch,
6123 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
6124 typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements2 ), bool>::type>
6125 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
6126 Device::getImageSparseMemoryRequirements2( const ImageSparseMemoryRequirementsInfo2 & info, Dispatch const & d ) const
6127 {
6128 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6129 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6130 VULKAN_HPP_ASSERT( d.vkGetImageSparseMemoryRequirements2 &&
6131 "Function <vkGetImageSparseMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
6132 # endif
6133
6134 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements;
6135 uint32_t sparseMemoryRequirementCount;
6136 d.vkGetImageSparseMemoryRequirements2(
6137 m_device, reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( &info ), &sparseMemoryRequirementCount, nullptr );
6138 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
6139 d.vkGetImageSparseMemoryRequirements2( m_device,
6140 reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( &info ),
6141 &sparseMemoryRequirementCount,
6142 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
6143
6144 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
6145 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
6146 {
6147 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
6148 }
6149 return sparseMemoryRequirements;
6150 }
6151
6152 // wrapper function for command vkGetImageSparseMemoryRequirements2, see
6153 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2.html
6154 template <
6155 typename SparseImageMemoryRequirements2Allocator,
6156 typename Dispatch,
6157 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
6158 typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements2 ), bool>::type>
6159 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
6160 Device::getImageSparseMemoryRequirements2( const ImageSparseMemoryRequirementsInfo2 & info,
6161 SparseImageMemoryRequirements2Allocator const & sparseImageMemoryRequirements2Allocator,
6162 Dispatch const & d ) const
6163 {
6164 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6165 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6166 VULKAN_HPP_ASSERT( d.vkGetImageSparseMemoryRequirements2 &&
6167 "Function <vkGetImageSparseMemoryRequirements2> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
6168 # endif
6169
6170 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements( sparseImageMemoryRequirements2Allocator );
6171 uint32_t sparseMemoryRequirementCount;
6172 d.vkGetImageSparseMemoryRequirements2(
6173 m_device, reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( &info ), &sparseMemoryRequirementCount, nullptr );
6174 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
6175 d.vkGetImageSparseMemoryRequirements2( m_device,
6176 reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( &info ),
6177 &sparseMemoryRequirementCount,
6178 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
6179
6180 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
6181 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
6182 {
6183 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
6184 }
6185 return sparseMemoryRequirements;
6186 }
6187 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6188
6189 // wrapper function for command vkGetPhysicalDeviceFeatures2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2.html
6190 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures2 ), bool>::type>
6191 VULKAN_HPP_INLINE void PhysicalDevice::getFeatures2( PhysicalDeviceFeatures2 * pFeatures, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6192 {
6193 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6194 d.vkGetPhysicalDeviceFeatures2( static_cast<VkPhysicalDevice>( m_physicalDevice ), reinterpret_cast<VkPhysicalDeviceFeatures2 *>( pFeatures ) );
6195 }
6196
6197 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6198 // wrapper function for command vkGetPhysicalDeviceFeatures2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2.html
6199 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures2 ), bool>::type>
6200 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceFeatures2 PhysicalDevice::getFeatures2( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6201 {
6202 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6203 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6204 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFeatures2 &&
6205 "Function <vkGetPhysicalDeviceFeatures2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6206 # endif
6207
6208 PhysicalDeviceFeatures2 features;
6209 d.vkGetPhysicalDeviceFeatures2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
6210
6211 return features;
6212 }
6213
6214 // wrapper function for command vkGetPhysicalDeviceFeatures2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2.html
6215 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures2 ), bool>::type>
6216 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFeatures2( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6217 {
6218 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6219 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6220 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFeatures2 &&
6221 "Function <vkGetPhysicalDeviceFeatures2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6222 # endif
6223
6224 StructureChain<X, Y, Z...> structureChain;
6225 PhysicalDeviceFeatures2 & features = structureChain.template get<PhysicalDeviceFeatures2>();
6226 d.vkGetPhysicalDeviceFeatures2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
6227
6228 return structureChain;
6229 }
6230 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6231
6232 // wrapper function for command vkGetPhysicalDeviceProperties2, see
6233 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html
6234 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties2 ), bool>::type>
6235 VULKAN_HPP_INLINE void PhysicalDevice::getProperties2( PhysicalDeviceProperties2 * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6236 {
6237 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6238 d.vkGetPhysicalDeviceProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ), reinterpret_cast<VkPhysicalDeviceProperties2 *>( pProperties ) );
6239 }
6240
6241 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6242 // wrapper function for command vkGetPhysicalDeviceProperties2, see
6243 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html
6244 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties2 ), bool>::type>
6245 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceProperties2 PhysicalDevice::getProperties2( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6246 {
6247 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6248 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6249 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceProperties2 &&
6250 "Function <vkGetPhysicalDeviceProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6251 # endif
6252
6253 PhysicalDeviceProperties2 properties;
6254 d.vkGetPhysicalDeviceProperties2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
6255
6256 return properties;
6257 }
6258
6259 // wrapper function for command vkGetPhysicalDeviceProperties2, see
6260 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2.html
6261 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties2 ), bool>::type>
6262 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getProperties2( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6263 {
6264 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6265 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6266 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceProperties2 &&
6267 "Function <vkGetPhysicalDeviceProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6268 # endif
6269
6270 StructureChain<X, Y, Z...> structureChain;
6271 PhysicalDeviceProperties2 & properties = structureChain.template get<PhysicalDeviceProperties2>();
6272 d.vkGetPhysicalDeviceProperties2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
6273
6274 return structureChain;
6275 }
6276 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6277
6278 // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see
6279 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html
6280 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties2 ), bool>::type>
6281 VULKAN_HPP_INLINE void
6282 PhysicalDevice::getFormatProperties2( Format format, FormatProperties2 * pFormatProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6283 {
6284 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6285 d.vkGetPhysicalDeviceFormatProperties2(
6286 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( pFormatProperties ) );
6287 }
6288
6289 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6290 // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see
6291 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html
6292 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties2 ), bool>::type>
6293 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE FormatProperties2 PhysicalDevice::getFormatProperties2( Format format, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6294 {
6295 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6296 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6297 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFormatProperties2 &&
6298 "Function <vkGetPhysicalDeviceFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6299 # endif
6300
6301 FormatProperties2 formatProperties;
6302 d.vkGetPhysicalDeviceFormatProperties2( m_physicalDevice, static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
6303
6304 return formatProperties;
6305 }
6306
6307 // wrapper function for command vkGetPhysicalDeviceFormatProperties2, see
6308 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2.html
6309 template <typename X,
6310 typename Y,
6311 typename... Z,
6312 typename Dispatch,
6313 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties2 ), bool>::type>
6314 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFormatProperties2( Format format,
6315 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6316 {
6317 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6318 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6319 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFormatProperties2 &&
6320 "Function <vkGetPhysicalDeviceFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6321 # endif
6322
6323 StructureChain<X, Y, Z...> structureChain;
6324 FormatProperties2 & formatProperties = structureChain.template get<FormatProperties2>();
6325 d.vkGetPhysicalDeviceFormatProperties2( m_physicalDevice, static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
6326
6327 return structureChain;
6328 }
6329 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6330
6331 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see
6332 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html
6333 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties2 ), bool>::type>
6334 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getImageFormatProperties2( const PhysicalDeviceImageFormatInfo2 * pImageFormatInfo,
6335 ImageFormatProperties2 * pImageFormatProperties,
6336 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6337 {
6338 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6339 return static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
6340 reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2 *>( pImageFormatInfo ),
6341 reinterpret_cast<VkImageFormatProperties2 *>( pImageFormatProperties ) ) );
6342 }
6343
6344 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6345 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see
6346 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html
6347 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties2 ), bool>::type>
6348 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageFormatProperties2>::type
6349 PhysicalDevice::getImageFormatProperties2( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const & d ) const
6350 {
6351 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6352 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6353 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceImageFormatProperties2 &&
6354 "Function <vkGetPhysicalDeviceImageFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6355 # endif
6356
6357 ImageFormatProperties2 imageFormatProperties;
6358 Result result =
6359 static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2( m_physicalDevice,
6360 reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2 *>( &imageFormatInfo ),
6361 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) );
6362 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" );
6363
6364 return detail::createResultValueType( result, std::move( imageFormatProperties ) );
6365 }
6366
6367 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2, see
6368 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2.html
6369 template <typename X,
6370 typename Y,
6371 typename... Z,
6372 typename Dispatch,
6373 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties2 ), bool>::type>
6374 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
6375 PhysicalDevice::getImageFormatProperties2( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const & d ) const
6376 {
6377 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6378 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6379 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceImageFormatProperties2 &&
6380 "Function <vkGetPhysicalDeviceImageFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6381 # endif
6382
6383 StructureChain<X, Y, Z...> structureChain;
6384 ImageFormatProperties2 & imageFormatProperties = structureChain.template get<ImageFormatProperties2>();
6385 Result result =
6386 static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2( m_physicalDevice,
6387 reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2 *>( &imageFormatInfo ),
6388 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) );
6389 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2" );
6390
6391 return detail::createResultValueType( result, std::move( structureChain ) );
6392 }
6393 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6394
6395 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
6396 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
6397 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2 ), bool>::type>
6398 VULKAN_HPP_INLINE void PhysicalDevice::getQueueFamilyProperties2( uint32_t * pQueueFamilyPropertyCount,
6399 QueueFamilyProperties2 * pQueueFamilyProperties,
6400 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6401 {
6402 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6403 d.vkGetPhysicalDeviceQueueFamilyProperties2(
6404 static_cast<VkPhysicalDevice>( m_physicalDevice ), pQueueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( pQueueFamilyProperties ) );
6405 }
6406
6407 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6408 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
6409 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
6410 template <typename QueueFamilyProperties2Allocator,
6411 typename Dispatch,
6412 typename std::enable_if<std::is_same<typename QueueFamilyProperties2Allocator::value_type, QueueFamilyProperties2>::value, int>::type,
6413 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2 ), bool>::type>
6414 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator>
6415 PhysicalDevice::getQueueFamilyProperties2( Dispatch const & d ) const
6416 {
6417 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6418 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6419 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2 &&
6420 "Function <vkGetPhysicalDeviceQueueFamilyProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6421 # endif
6422
6423 std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator> queueFamilyProperties;
6424 uint32_t queueFamilyPropertyCount;
6425 d.vkGetPhysicalDeviceQueueFamilyProperties2( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
6426 queueFamilyProperties.resize( queueFamilyPropertyCount );
6427 d.vkGetPhysicalDeviceQueueFamilyProperties2(
6428 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
6429
6430 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
6431 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
6432 {
6433 queueFamilyProperties.resize( queueFamilyPropertyCount );
6434 }
6435 return queueFamilyProperties;
6436 }
6437
6438 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
6439 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
6440 template <typename QueueFamilyProperties2Allocator,
6441 typename Dispatch,
6442 typename std::enable_if<std::is_same<typename QueueFamilyProperties2Allocator::value_type, QueueFamilyProperties2>::value, int>::type,
6443 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2 ), bool>::type>
6444 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator>
6445 PhysicalDevice::getQueueFamilyProperties2( QueueFamilyProperties2Allocator const & queueFamilyProperties2Allocator, Dispatch const & d ) const
6446 {
6447 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6448 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6449 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2 &&
6450 "Function <vkGetPhysicalDeviceQueueFamilyProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6451 # endif
6452
6453 std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator> queueFamilyProperties( queueFamilyProperties2Allocator );
6454 uint32_t queueFamilyPropertyCount;
6455 d.vkGetPhysicalDeviceQueueFamilyProperties2( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
6456 queueFamilyProperties.resize( queueFamilyPropertyCount );
6457 d.vkGetPhysicalDeviceQueueFamilyProperties2(
6458 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
6459
6460 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
6461 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
6462 {
6463 queueFamilyProperties.resize( queueFamilyPropertyCount );
6464 }
6465 return queueFamilyProperties;
6466 }
6467
6468 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
6469 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
6470 template <typename StructureChain,
6471 typename StructureChainAllocator,
6472 typename Dispatch,
6473 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
6474 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2 ), bool>::type>
6475 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<StructureChain, StructureChainAllocator>
6476 PhysicalDevice::getQueueFamilyProperties2( Dispatch const & d ) const
6477 {
6478 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6479 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6480 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2 &&
6481 "Function <vkGetPhysicalDeviceQueueFamilyProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6482 # endif
6483
6484 std::vector<StructureChain, StructureChainAllocator> structureChains;
6485 std::vector<QueueFamilyProperties2> queueFamilyProperties;
6486 uint32_t queueFamilyPropertyCount;
6487 d.vkGetPhysicalDeviceQueueFamilyProperties2( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
6488 structureChains.resize( queueFamilyPropertyCount );
6489 queueFamilyProperties.resize( queueFamilyPropertyCount );
6490 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
6491 {
6492 queueFamilyProperties[i].pNext = structureChains[i].template get<QueueFamilyProperties2>().pNext;
6493 }
6494 d.vkGetPhysicalDeviceQueueFamilyProperties2(
6495 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
6496
6497 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
6498 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
6499 {
6500 structureChains.resize( queueFamilyPropertyCount );
6501 }
6502 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
6503 {
6504 structureChains[i].template get<QueueFamilyProperties2>() = queueFamilyProperties[i];
6505 }
6506 return structureChains;
6507 }
6508
6509 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2, see
6510 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2.html
6511 template <typename StructureChain,
6512 typename StructureChainAllocator,
6513 typename Dispatch,
6514 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
6515 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2 ), bool>::type>
6516 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<StructureChain, StructureChainAllocator>
6517 PhysicalDevice::getQueueFamilyProperties2( StructureChainAllocator & structureChainAllocator, Dispatch const & d ) const
6518 {
6519 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6520 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6521 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2 &&
6522 "Function <vkGetPhysicalDeviceQueueFamilyProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6523 # endif
6524
6525 std::vector<StructureChain, StructureChainAllocator> structureChains( structureChainAllocator );
6526 std::vector<QueueFamilyProperties2> queueFamilyProperties;
6527 uint32_t queueFamilyPropertyCount;
6528 d.vkGetPhysicalDeviceQueueFamilyProperties2( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
6529 structureChains.resize( queueFamilyPropertyCount );
6530 queueFamilyProperties.resize( queueFamilyPropertyCount );
6531 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
6532 {
6533 queueFamilyProperties[i].pNext = structureChains[i].template get<QueueFamilyProperties2>().pNext;
6534 }
6535 d.vkGetPhysicalDeviceQueueFamilyProperties2(
6536 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
6537
6538 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
6539 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
6540 {
6541 structureChains.resize( queueFamilyPropertyCount );
6542 }
6543 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
6544 {
6545 structureChains[i].template get<QueueFamilyProperties2>() = queueFamilyProperties[i];
6546 }
6547 return structureChains;
6548 }
6549 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6550
6551 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2, see
6552 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2.html
6553 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties2 ), bool>::type>
6554 VULKAN_HPP_INLINE void PhysicalDevice::getMemoryProperties2( PhysicalDeviceMemoryProperties2 * pMemoryProperties,
6555 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6556 {
6557 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6558 d.vkGetPhysicalDeviceMemoryProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
6559 reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( pMemoryProperties ) );
6560 }
6561
6562 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6563 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2, see
6564 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2.html
6565 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties2 ), bool>::type>
6566 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceMemoryProperties2 PhysicalDevice::getMemoryProperties2( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6567 {
6568 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6569 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6570 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceMemoryProperties2 &&
6571 "Function <vkGetPhysicalDeviceMemoryProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6572 # endif
6573
6574 PhysicalDeviceMemoryProperties2 memoryProperties;
6575 d.vkGetPhysicalDeviceMemoryProperties2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
6576
6577 return memoryProperties;
6578 }
6579
6580 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2, see
6581 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2.html
6582 template <typename X,
6583 typename Y,
6584 typename... Z,
6585 typename Dispatch,
6586 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties2 ), bool>::type>
6587 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getMemoryProperties2( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6588 {
6589 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6590 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6591 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceMemoryProperties2 &&
6592 "Function <vkGetPhysicalDeviceMemoryProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6593 # endif
6594
6595 StructureChain<X, Y, Z...> structureChain;
6596 PhysicalDeviceMemoryProperties2 & memoryProperties = structureChain.template get<PhysicalDeviceMemoryProperties2>();
6597 d.vkGetPhysicalDeviceMemoryProperties2( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
6598
6599 return structureChain;
6600 }
6601 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6602
6603 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2, see
6604 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2.html
6605 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties2 ), bool>::type>
6606 VULKAN_HPP_INLINE void PhysicalDevice::getSparseImageFormatProperties2( const PhysicalDeviceSparseImageFormatInfo2 * pFormatInfo,
6607 uint32_t * pPropertyCount,
6608 SparseImageFormatProperties2 * pProperties,
6609 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6610 {
6611 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6612 d.vkGetPhysicalDeviceSparseImageFormatProperties2( static_cast<VkPhysicalDevice>( m_physicalDevice ),
6613 reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( pFormatInfo ),
6614 pPropertyCount,
6615 reinterpret_cast<VkSparseImageFormatProperties2 *>( pProperties ) );
6616 }
6617
6618 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6619 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2, see
6620 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2.html
6621 template <typename SparseImageFormatProperties2Allocator,
6622 typename Dispatch,
6623 typename std::enable_if<std::is_same<typename SparseImageFormatProperties2Allocator::value_type, SparseImageFormatProperties2>::value, int>::type,
6624 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties2 ), bool>::type>
6625 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator>
6626 PhysicalDevice::getSparseImageFormatProperties2( const PhysicalDeviceSparseImageFormatInfo2 & formatInfo, Dispatch const & d ) const
6627 {
6628 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6629 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6630 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSparseImageFormatProperties2 &&
6631 "Function <vkGetPhysicalDeviceSparseImageFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6632 # endif
6633
6634 std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator> properties;
6635 uint32_t propertyCount;
6636 d.vkGetPhysicalDeviceSparseImageFormatProperties2(
6637 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( &formatInfo ), &propertyCount, nullptr );
6638 properties.resize( propertyCount );
6639 d.vkGetPhysicalDeviceSparseImageFormatProperties2( m_physicalDevice,
6640 reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( &formatInfo ),
6641 &propertyCount,
6642 reinterpret_cast<VkSparseImageFormatProperties2 *>( properties.data() ) );
6643
6644 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
6645 if ( propertyCount < properties.size() )
6646 {
6647 properties.resize( propertyCount );
6648 }
6649 return properties;
6650 }
6651
6652 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2, see
6653 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2.html
6654 template <typename SparseImageFormatProperties2Allocator,
6655 typename Dispatch,
6656 typename std::enable_if<std::is_same<typename SparseImageFormatProperties2Allocator::value_type, SparseImageFormatProperties2>::value, int>::type,
6657 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties2 ), bool>::type>
6658 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator>
6659 PhysicalDevice::getSparseImageFormatProperties2( const PhysicalDeviceSparseImageFormatInfo2 & formatInfo,
6660 SparseImageFormatProperties2Allocator const & sparseImageFormatProperties2Allocator,
6661 Dispatch const & d ) const
6662 {
6663 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6664 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6665 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSparseImageFormatProperties2 &&
6666 "Function <vkGetPhysicalDeviceSparseImageFormatProperties2> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
6667 # endif
6668
6669 std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator> properties( sparseImageFormatProperties2Allocator );
6670 uint32_t propertyCount;
6671 d.vkGetPhysicalDeviceSparseImageFormatProperties2(
6672 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( &formatInfo ), &propertyCount, nullptr );
6673 properties.resize( propertyCount );
6674 d.vkGetPhysicalDeviceSparseImageFormatProperties2( m_physicalDevice,
6675 reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( &formatInfo ),
6676 &propertyCount,
6677 reinterpret_cast<VkSparseImageFormatProperties2 *>( properties.data() ) );
6678
6679 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
6680 if ( propertyCount < properties.size() )
6681 {
6682 properties.resize( propertyCount );
6683 }
6684 return properties;
6685 }
6686 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6687
6688 // wrapper function for command vkTrimCommandPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTrimCommandPool.html
6689 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkTrimCommandPool ), bool>::type>
6690 VULKAN_HPP_INLINE void Device::trimCommandPool( CommandPool commandPool, CommandPoolTrimFlags flags, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6691 {
6692 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6693 d.vkTrimCommandPool( static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( commandPool ), static_cast<VkCommandPoolTrimFlags>( flags ) );
6694 }
6695
6696 // wrapper function for command vkGetDeviceQueue2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceQueue2.html
6697 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceQueue2 ), bool>::type>
6698 VULKAN_HPP_INLINE void Device::getQueue2( const DeviceQueueInfo2 * pQueueInfo, Queue * pQueue, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6699 {
6700 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6701 d.vkGetDeviceQueue2( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkDeviceQueueInfo2 *>( pQueueInfo ), reinterpret_cast<VkQueue *>( pQueue ) );
6702 }
6703
6704 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6705 // wrapper function for command vkGetDeviceQueue2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceQueue2.html
6706 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceQueue2 ), bool>::type>
6707 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Queue Device::getQueue2( const DeviceQueueInfo2 & queueInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6708 {
6709 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6710 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6711 VULKAN_HPP_ASSERT( d.vkGetDeviceQueue2 && "Function <vkGetDeviceQueue2> requires <VK_VERSION_1_1>" );
6712 # endif
6713
6714 Queue queue;
6715 d.vkGetDeviceQueue2( m_device, reinterpret_cast<const VkDeviceQueueInfo2 *>( &queueInfo ), reinterpret_cast<VkQueue *>( &queue ) );
6716
6717 return queue;
6718 }
6719 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6720
6721 // wrapper function for command vkGetPhysicalDeviceExternalBufferProperties, see
6722 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalBufferProperties.html
6723 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalBufferProperties ), bool>::type>
6724 VULKAN_HPP_INLINE void PhysicalDevice::getExternalBufferProperties( const PhysicalDeviceExternalBufferInfo * pExternalBufferInfo,
6725 ExternalBufferProperties * pExternalBufferProperties,
6726 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6727 {
6728 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6729 d.vkGetPhysicalDeviceExternalBufferProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
6730 reinterpret_cast<const VkPhysicalDeviceExternalBufferInfo *>( pExternalBufferInfo ),
6731 reinterpret_cast<VkExternalBufferProperties *>( pExternalBufferProperties ) );
6732 }
6733
6734 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6735 // wrapper function for command vkGetPhysicalDeviceExternalBufferProperties, see
6736 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalBufferProperties.html
6737 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalBufferProperties ), bool>::type>
6738 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalBufferProperties
6739 PhysicalDevice::getExternalBufferProperties( const PhysicalDeviceExternalBufferInfo & externalBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6740 {
6741 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6742 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6743 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalBufferProperties &&
6744 "Function <vkGetPhysicalDeviceExternalBufferProperties> requires <VK_KHR_external_memory_capabilities> or <VK_VERSION_1_1>" );
6745 # endif
6746
6747 ExternalBufferProperties externalBufferProperties;
6748 d.vkGetPhysicalDeviceExternalBufferProperties( m_physicalDevice,
6749 reinterpret_cast<const VkPhysicalDeviceExternalBufferInfo *>( &externalBufferInfo ),
6750 reinterpret_cast<VkExternalBufferProperties *>( &externalBufferProperties ) );
6751
6752 return externalBufferProperties;
6753 }
6754 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6755
6756 // wrapper function for command vkGetPhysicalDeviceExternalFenceProperties, see
6757 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalFenceProperties.html
6758 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalFenceProperties ), bool>::type>
6759 VULKAN_HPP_INLINE void PhysicalDevice::getExternalFenceProperties( const PhysicalDeviceExternalFenceInfo * pExternalFenceInfo,
6760 ExternalFenceProperties * pExternalFenceProperties,
6761 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6762 {
6763 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6764 d.vkGetPhysicalDeviceExternalFenceProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
6765 reinterpret_cast<const VkPhysicalDeviceExternalFenceInfo *>( pExternalFenceInfo ),
6766 reinterpret_cast<VkExternalFenceProperties *>( pExternalFenceProperties ) );
6767 }
6768
6769 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6770 // wrapper function for command vkGetPhysicalDeviceExternalFenceProperties, see
6771 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalFenceProperties.html
6772 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalFenceProperties ), bool>::type>
6773 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalFenceProperties
6774 PhysicalDevice::getExternalFenceProperties( const PhysicalDeviceExternalFenceInfo & externalFenceInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6775 {
6776 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6777 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6778 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalFenceProperties &&
6779 "Function <vkGetPhysicalDeviceExternalFenceProperties> requires <VK_KHR_external_fence_capabilities> or <VK_VERSION_1_1>" );
6780 # endif
6781
6782 ExternalFenceProperties externalFenceProperties;
6783 d.vkGetPhysicalDeviceExternalFenceProperties( m_physicalDevice,
6784 reinterpret_cast<const VkPhysicalDeviceExternalFenceInfo *>( &externalFenceInfo ),
6785 reinterpret_cast<VkExternalFenceProperties *>( &externalFenceProperties ) );
6786
6787 return externalFenceProperties;
6788 }
6789 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6790
6791 // wrapper function for command vkGetPhysicalDeviceExternalSemaphoreProperties, see
6792 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalSemaphoreProperties.html
6793 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalSemaphoreProperties ), bool>::type>
6794 VULKAN_HPP_INLINE void PhysicalDevice::getExternalSemaphoreProperties( const PhysicalDeviceExternalSemaphoreInfo * pExternalSemaphoreInfo,
6795 ExternalSemaphoreProperties * pExternalSemaphoreProperties,
6796 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6797 {
6798 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6799 d.vkGetPhysicalDeviceExternalSemaphoreProperties( static_cast<VkPhysicalDevice>( m_physicalDevice ),
6800 reinterpret_cast<const VkPhysicalDeviceExternalSemaphoreInfo *>( pExternalSemaphoreInfo ),
6801 reinterpret_cast<VkExternalSemaphoreProperties *>( pExternalSemaphoreProperties ) );
6802 }
6803
6804 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6805 // wrapper function for command vkGetPhysicalDeviceExternalSemaphoreProperties, see
6806 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalSemaphoreProperties.html
6807 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalSemaphoreProperties ), bool>::type>
6808 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalSemaphoreProperties PhysicalDevice::getExternalSemaphoreProperties(
6809 const PhysicalDeviceExternalSemaphoreInfo & externalSemaphoreInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6810 {
6811 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6812 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6813 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalSemaphoreProperties &&
6814 "Function <vkGetPhysicalDeviceExternalSemaphoreProperties> requires <VK_KHR_external_semaphore_capabilities> or <VK_VERSION_1_1>" );
6815 # endif
6816
6817 ExternalSemaphoreProperties externalSemaphoreProperties;
6818 d.vkGetPhysicalDeviceExternalSemaphoreProperties( m_physicalDevice,
6819 reinterpret_cast<const VkPhysicalDeviceExternalSemaphoreInfo *>( &externalSemaphoreInfo ),
6820 reinterpret_cast<VkExternalSemaphoreProperties *>( &externalSemaphoreProperties ) );
6821
6822 return externalSemaphoreProperties;
6823 }
6824 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6825
6826 // wrapper function for command vkCmdDispatchBase, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchBase.html
6827 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchBase ), bool>::type>
6828 VULKAN_HPP_INLINE void CommandBuffer::dispatchBase( uint32_t baseGroupX,
6829 uint32_t baseGroupY,
6830 uint32_t baseGroupZ,
6831 uint32_t groupCountX,
6832 uint32_t groupCountY,
6833 uint32_t groupCountZ,
6834 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6835 {
6836 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6837 d.vkCmdDispatchBase( static_cast<VkCommandBuffer>( m_commandBuffer ), baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ );
6838 }
6839
6840 // wrapper function for command vkCreateDescriptorUpdateTemplate, see
6841 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplate.html
6842 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorUpdateTemplate ), bool>::type>
6843 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDescriptorUpdateTemplate( const DescriptorUpdateTemplateCreateInfo * pCreateInfo,
6844 const AllocationCallbacks * pAllocator,
6845 DescriptorUpdateTemplate * pDescriptorUpdateTemplate,
6846 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6847 {
6848 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6849 return static_cast<Result>( d.vkCreateDescriptorUpdateTemplate( static_cast<VkDevice>( m_device ),
6850 reinterpret_cast<const VkDescriptorUpdateTemplateCreateInfo *>( pCreateInfo ),
6851 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
6852 reinterpret_cast<VkDescriptorUpdateTemplate *>( pDescriptorUpdateTemplate ) ) );
6853 }
6854
6855 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6856 // wrapper function for command vkCreateDescriptorUpdateTemplate, see
6857 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplate.html
6858 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorUpdateTemplate ), bool>::type>
6859 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DescriptorUpdateTemplate>::type Device::createDescriptorUpdateTemplate(
6860 const DescriptorUpdateTemplateCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
6861 {
6862 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6863 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6864 VULKAN_HPP_ASSERT( d.vkCreateDescriptorUpdateTemplate &&
6865 "Function <vkCreateDescriptorUpdateTemplate> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
6866 # endif
6867
6868 DescriptorUpdateTemplate descriptorUpdateTemplate;
6869 Result result = static_cast<Result>( d.vkCreateDescriptorUpdateTemplate( m_device,
6870 reinterpret_cast<const VkDescriptorUpdateTemplateCreateInfo *>( &createInfo ),
6871 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
6872 reinterpret_cast<VkDescriptorUpdateTemplate *>( &descriptorUpdateTemplate ) ) );
6873 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorUpdateTemplate" );
6874
6875 return detail::createResultValueType( result, std::move( descriptorUpdateTemplate ) );
6876 }
6877
6878 # ifndef VULKAN_HPP_NO_SMART_HANDLE
6879 // wrapper function for command vkCreateDescriptorUpdateTemplate, see
6880 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplate.html
6881 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorUpdateTemplate ), bool>::type>
6882 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DescriptorUpdateTemplate, Dispatch>>::type
6883 Device::createDescriptorUpdateTemplateUnique( const DescriptorUpdateTemplateCreateInfo & createInfo,
6884 Optional<const AllocationCallbacks> allocator,
6885 Dispatch const & d ) const
6886 {
6887 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6888 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6889 VULKAN_HPP_ASSERT( d.vkCreateDescriptorUpdateTemplate &&
6890 "Function <vkCreateDescriptorUpdateTemplate> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
6891 # endif
6892
6893 DescriptorUpdateTemplate descriptorUpdateTemplate;
6894 Result result = static_cast<Result>( d.vkCreateDescriptorUpdateTemplate( m_device,
6895 reinterpret_cast<const VkDescriptorUpdateTemplateCreateInfo *>( &createInfo ),
6896 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
6897 reinterpret_cast<VkDescriptorUpdateTemplate *>( &descriptorUpdateTemplate ) ) );
6898 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorUpdateTemplateUnique" );
6899
6900 return detail::createResultValueType(
6901 result, UniqueHandle<DescriptorUpdateTemplate, Dispatch>( descriptorUpdateTemplate, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
6902 }
6903 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
6904 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6905
6906 // wrapper function for command vkDestroyDescriptorUpdateTemplate, see
6907 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplate.html
6908 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorUpdateTemplate ), bool>::type>
6909 VULKAN_HPP_INLINE void Device::destroyDescriptorUpdateTemplate( DescriptorUpdateTemplate descriptorUpdateTemplate,
6910 const AllocationCallbacks * pAllocator,
6911 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6912 {
6913 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6914 d.vkDestroyDescriptorUpdateTemplate( static_cast<VkDevice>( m_device ),
6915 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
6916 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
6917 }
6918
6919 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6920 // wrapper function for command vkDestroyDescriptorUpdateTemplate, see
6921 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplate.html
6922 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorUpdateTemplate ), bool>::type>
6923 VULKAN_HPP_INLINE void Device::destroyDescriptorUpdateTemplate( DescriptorUpdateTemplate descriptorUpdateTemplate,
6924 Optional<const AllocationCallbacks> allocator,
6925 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6926 {
6927 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6928 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6929 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorUpdateTemplate &&
6930 "Function <vkDestroyDescriptorUpdateTemplate> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
6931 # endif
6932
6933 d.vkDestroyDescriptorUpdateTemplate(
6934 m_device, static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
6935 }
6936 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6937
6938 // wrapper function for command vkDestroyDescriptorUpdateTemplate, see
6939 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplate.html
6940 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorUpdateTemplate ), bool>::type>
6941 VULKAN_HPP_INLINE void
6942 Device::destroy( DescriptorUpdateTemplate descriptorUpdateTemplate, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6943 {
6944 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6945 d.vkDestroyDescriptorUpdateTemplate( static_cast<VkDevice>( m_device ),
6946 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
6947 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
6948 }
6949
6950 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6951 // wrapper function for command vkDestroyDescriptorUpdateTemplate, see
6952 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplate.html
6953 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorUpdateTemplate ), bool>::type>
6954 VULKAN_HPP_INLINE void Device::destroy( DescriptorUpdateTemplate descriptorUpdateTemplate,
6955 Optional<const AllocationCallbacks> allocator,
6956 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6957 {
6958 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6959 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6960 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorUpdateTemplate &&
6961 "Function <vkDestroyDescriptorUpdateTemplate> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
6962 # endif
6963
6964 d.vkDestroyDescriptorUpdateTemplate(
6965 m_device, static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
6966 }
6967 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
6968
6969 // wrapper function for command vkUpdateDescriptorSetWithTemplate, see
6970 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSetWithTemplate.html
6971 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateDescriptorSetWithTemplate ), bool>::type>
6972 VULKAN_HPP_INLINE void Device::updateDescriptorSetWithTemplate( DescriptorSet descriptorSet,
6973 DescriptorUpdateTemplate descriptorUpdateTemplate,
6974 const void * pData,
6975 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6976 {
6977 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6978 d.vkUpdateDescriptorSetWithTemplate( static_cast<VkDevice>( m_device ),
6979 static_cast<VkDescriptorSet>( descriptorSet ),
6980 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
6981 pData );
6982 }
6983
6984 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
6985 // wrapper function for command vkUpdateDescriptorSetWithTemplate, see
6986 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSetWithTemplate.html
6987 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateDescriptorSetWithTemplate ), bool>::type>
6988 VULKAN_HPP_INLINE void Device::updateDescriptorSetWithTemplate( DescriptorSet descriptorSet,
6989 DescriptorUpdateTemplate descriptorUpdateTemplate,
6990 DataType const & data,
6991 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
6992 {
6993 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
6994 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
6995 VULKAN_HPP_ASSERT( d.vkUpdateDescriptorSetWithTemplate &&
6996 "Function <vkUpdateDescriptorSetWithTemplate> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
6997 # endif
6998
6999 d.vkUpdateDescriptorSetWithTemplate( m_device,
7000 static_cast<VkDescriptorSet>( descriptorSet ),
7001 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
7002 reinterpret_cast<const void *>( &data ) );
7003 }
7004 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7005
7006 // wrapper function for command vkGetDescriptorSetLayoutSupport, see
7007 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupport.html
7008 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSupport ), bool>::type>
7009 VULKAN_HPP_INLINE void Device::getDescriptorSetLayoutSupport( const DescriptorSetLayoutCreateInfo * pCreateInfo,
7010 DescriptorSetLayoutSupport * pSupport,
7011 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7012 {
7013 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7014 d.vkGetDescriptorSetLayoutSupport( static_cast<VkDevice>( m_device ),
7015 reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( pCreateInfo ),
7016 reinterpret_cast<VkDescriptorSetLayoutSupport *>( pSupport ) );
7017 }
7018
7019 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7020 // wrapper function for command vkGetDescriptorSetLayoutSupport, see
7021 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupport.html
7022 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSupport ), bool>::type>
7023 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DescriptorSetLayoutSupport Device::getDescriptorSetLayoutSupport( const DescriptorSetLayoutCreateInfo & createInfo,
7024 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7025 {
7026 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7027 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7028 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutSupport && "Function <vkGetDescriptorSetLayoutSupport> requires <VK_KHR_maintenance3> or <VK_VERSION_1_1>" );
7029 # endif
7030
7031 DescriptorSetLayoutSupport support;
7032 d.vkGetDescriptorSetLayoutSupport(
7033 m_device, reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( &createInfo ), reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
7034
7035 return support;
7036 }
7037
7038 // wrapper function for command vkGetDescriptorSetLayoutSupport, see
7039 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupport.html
7040 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSupport ), bool>::type>
7041 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getDescriptorSetLayoutSupport( const DescriptorSetLayoutCreateInfo & createInfo,
7042 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7043 {
7044 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7045 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7046 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutSupport && "Function <vkGetDescriptorSetLayoutSupport> requires <VK_KHR_maintenance3> or <VK_VERSION_1_1>" );
7047 # endif
7048
7049 StructureChain<X, Y, Z...> structureChain;
7050 DescriptorSetLayoutSupport & support = structureChain.template get<DescriptorSetLayoutSupport>();
7051 d.vkGetDescriptorSetLayoutSupport(
7052 m_device, reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( &createInfo ), reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
7053
7054 return structureChain;
7055 }
7056 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7057
7058 // wrapper function for command vkCreateSamplerYcbcrConversion, see
7059 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversion.html
7060 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSamplerYcbcrConversion ), bool>::type>
7061 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createSamplerYcbcrConversion( const SamplerYcbcrConversionCreateInfo * pCreateInfo,
7062 const AllocationCallbacks * pAllocator,
7063 SamplerYcbcrConversion * pYcbcrConversion,
7064 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7065 {
7066 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7067 return static_cast<Result>( d.vkCreateSamplerYcbcrConversion( static_cast<VkDevice>( m_device ),
7068 reinterpret_cast<const VkSamplerYcbcrConversionCreateInfo *>( pCreateInfo ),
7069 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
7070 reinterpret_cast<VkSamplerYcbcrConversion *>( pYcbcrConversion ) ) );
7071 }
7072
7073 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7074 // wrapper function for command vkCreateSamplerYcbcrConversion, see
7075 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversion.html
7076 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSamplerYcbcrConversion ), bool>::type>
7077 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SamplerYcbcrConversion>::type Device::createSamplerYcbcrConversion(
7078 const SamplerYcbcrConversionCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
7079 {
7080 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7081 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7082 VULKAN_HPP_ASSERT( d.vkCreateSamplerYcbcrConversion &&
7083 "Function <vkCreateSamplerYcbcrConversion> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
7084 # endif
7085
7086 SamplerYcbcrConversion ycbcrConversion;
7087 Result result = static_cast<Result>( d.vkCreateSamplerYcbcrConversion( m_device,
7088 reinterpret_cast<const VkSamplerYcbcrConversionCreateInfo *>( &createInfo ),
7089 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
7090 reinterpret_cast<VkSamplerYcbcrConversion *>( &ycbcrConversion ) ) );
7091 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerYcbcrConversion" );
7092
7093 return detail::createResultValueType( result, std::move( ycbcrConversion ) );
7094 }
7095
7096 # ifndef VULKAN_HPP_NO_SMART_HANDLE
7097 // wrapper function for command vkCreateSamplerYcbcrConversion, see
7098 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversion.html
7099 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSamplerYcbcrConversion ), bool>::type>
7100 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SamplerYcbcrConversion, Dispatch>>::type
7101 Device::createSamplerYcbcrConversionUnique( const SamplerYcbcrConversionCreateInfo & createInfo,
7102 Optional<const AllocationCallbacks> allocator,
7103 Dispatch const & d ) const
7104 {
7105 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7106 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7107 VULKAN_HPP_ASSERT( d.vkCreateSamplerYcbcrConversion &&
7108 "Function <vkCreateSamplerYcbcrConversion> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
7109 # endif
7110
7111 SamplerYcbcrConversion ycbcrConversion;
7112 Result result = static_cast<Result>( d.vkCreateSamplerYcbcrConversion( m_device,
7113 reinterpret_cast<const VkSamplerYcbcrConversionCreateInfo *>( &createInfo ),
7114 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
7115 reinterpret_cast<VkSamplerYcbcrConversion *>( &ycbcrConversion ) ) );
7116 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerYcbcrConversionUnique" );
7117
7118 return detail::createResultValueType(
7119 result, UniqueHandle<SamplerYcbcrConversion, Dispatch>( ycbcrConversion, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
7120 }
7121 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
7122 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7123
7124 // wrapper function for command vkDestroySamplerYcbcrConversion, see
7125 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversion.html
7126 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySamplerYcbcrConversion ), bool>::type>
7127 VULKAN_HPP_INLINE void Device::destroySamplerYcbcrConversion( SamplerYcbcrConversion ycbcrConversion,
7128 const AllocationCallbacks * pAllocator,
7129 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7130 {
7131 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7132 d.vkDestroySamplerYcbcrConversion( static_cast<VkDevice>( m_device ),
7133 static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ),
7134 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
7135 }
7136
7137 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7138 // wrapper function for command vkDestroySamplerYcbcrConversion, see
7139 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversion.html
7140 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySamplerYcbcrConversion ), bool>::type>
7141 VULKAN_HPP_INLINE void Device::destroySamplerYcbcrConversion( SamplerYcbcrConversion ycbcrConversion,
7142 Optional<const AllocationCallbacks> allocator,
7143 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7144 {
7145 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7146 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7147 VULKAN_HPP_ASSERT( d.vkDestroySamplerYcbcrConversion &&
7148 "Function <vkDestroySamplerYcbcrConversion> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
7149 # endif
7150
7151 d.vkDestroySamplerYcbcrConversion(
7152 m_device, static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
7153 }
7154 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7155
7156 // wrapper function for command vkDestroySamplerYcbcrConversion, see
7157 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversion.html
7158 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySamplerYcbcrConversion ), bool>::type>
7159 VULKAN_HPP_INLINE void
7160 Device::destroy( SamplerYcbcrConversion ycbcrConversion, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7161 {
7162 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7163 d.vkDestroySamplerYcbcrConversion( static_cast<VkDevice>( m_device ),
7164 static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ),
7165 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
7166 }
7167
7168 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7169 // wrapper function for command vkDestroySamplerYcbcrConversion, see
7170 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversion.html
7171 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySamplerYcbcrConversion ), bool>::type>
7172 VULKAN_HPP_INLINE void
7173 Device::destroy( SamplerYcbcrConversion ycbcrConversion, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7174 {
7175 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7176 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7177 VULKAN_HPP_ASSERT( d.vkDestroySamplerYcbcrConversion &&
7178 "Function <vkDestroySamplerYcbcrConversion> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
7179 # endif
7180
7181 d.vkDestroySamplerYcbcrConversion(
7182 m_device, static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
7183 }
7184 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7185
7186 //=== VK_VERSION_1_2 ===
7187
7188 // wrapper function for command vkResetQueryPool, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetQueryPool.html
7189 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetQueryPool ), bool>::type>
7190 VULKAN_HPP_INLINE void Device::resetQueryPool( QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7191 {
7192 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7193 d.vkResetQueryPool( static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( queryPool ), firstQuery, queryCount );
7194 }
7195
7196 // wrapper function for command vkGetSemaphoreCounterValue, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValue.html
7197 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreCounterValue ), bool>::type>
7198 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSemaphoreCounterValue( Semaphore semaphore,
7199 uint64_t * pValue,
7200 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7201 {
7202 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7203 return static_cast<Result>( d.vkGetSemaphoreCounterValue( static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( semaphore ), pValue ) );
7204 }
7205
7206 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7207 // wrapper function for command vkGetSemaphoreCounterValue, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValue.html
7208 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreCounterValue ), bool>::type>
7209 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint64_t>::type Device::getSemaphoreCounterValue( Semaphore semaphore,
7210 Dispatch const & d ) const
7211 {
7212 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7213 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7214 VULKAN_HPP_ASSERT( d.vkGetSemaphoreCounterValue && "Function <vkGetSemaphoreCounterValue> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
7215 # endif
7216
7217 uint64_t value;
7218 Result result = static_cast<Result>( d.vkGetSemaphoreCounterValue( m_device, static_cast<VkSemaphore>( semaphore ), &value ) );
7219 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreCounterValue" );
7220
7221 return detail::createResultValueType( result, std::move( value ) );
7222 }
7223 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7224
7225 // wrapper function for command vkWaitSemaphores, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitSemaphores.html
7226 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitSemaphores ), bool>::type>
7227 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitSemaphores( const SemaphoreWaitInfo * pWaitInfo,
7228 uint64_t timeout,
7229 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7230 {
7231 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7232 return static_cast<Result>( d.vkWaitSemaphores( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreWaitInfo *>( pWaitInfo ), timeout ) );
7233 }
7234
7235 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7236 // wrapper function for command vkWaitSemaphores, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitSemaphores.html
7237 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitSemaphores ), bool>::type>
7238 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitSemaphores( const SemaphoreWaitInfo & waitInfo, uint64_t timeout, Dispatch const & d ) const
7239 {
7240 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7241 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7242 VULKAN_HPP_ASSERT( d.vkWaitSemaphores && "Function <vkWaitSemaphores> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
7243 # endif
7244
7245 Result result = static_cast<Result>( d.vkWaitSemaphores( m_device, reinterpret_cast<const VkSemaphoreWaitInfo *>( &waitInfo ), timeout ) );
7246 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitSemaphores", { Result::eSuccess, Result::eTimeout } );
7247
7248 return static_cast<Result>( result );
7249 }
7250 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7251
7252 // wrapper function for command vkSignalSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSignalSemaphore.html
7253 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSignalSemaphore ), bool>::type>
7254 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::signalSemaphore( const SemaphoreSignalInfo * pSignalInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7255 {
7256 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7257 return static_cast<Result>( d.vkSignalSemaphore( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreSignalInfo *>( pSignalInfo ) ) );
7258 }
7259
7260 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7261 // wrapper function for command vkSignalSemaphore, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSignalSemaphore.html
7262 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSignalSemaphore ), bool>::type>
7263 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
7264 Device::signalSemaphore( const SemaphoreSignalInfo & signalInfo, Dispatch const & d ) const
7265 {
7266 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7267 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7268 VULKAN_HPP_ASSERT( d.vkSignalSemaphore && "Function <vkSignalSemaphore> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
7269 # endif
7270
7271 Result result = static_cast<Result>( d.vkSignalSemaphore( m_device, reinterpret_cast<const VkSemaphoreSignalInfo *>( &signalInfo ) ) );
7272 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::signalSemaphore" );
7273
7274 return detail::createResultValueType( result );
7275 }
7276 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7277
7278 // wrapper function for command vkGetBufferDeviceAddress, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddress.html
7279 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferDeviceAddress ), bool>::type>
7280 VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddress( const BufferDeviceAddressInfo * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7281 {
7282 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7283 return static_cast<DeviceAddress>(
7284 d.vkGetBufferDeviceAddress( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkBufferDeviceAddressInfo *>( pInfo ) ) );
7285 }
7286
7287 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7288 // wrapper function for command vkGetBufferDeviceAddress, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddress.html
7289 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferDeviceAddress ), bool>::type>
7290 VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddress( const BufferDeviceAddressInfo & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7291 {
7292 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7293 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7294 VULKAN_HPP_ASSERT( d.vkGetBufferDeviceAddress &&
7295 "Function <vkGetBufferDeviceAddress> requires <VK_EXT_buffer_device_address> or <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
7296 # endif
7297
7298 VkDeviceAddress result = d.vkGetBufferDeviceAddress( m_device, reinterpret_cast<const VkBufferDeviceAddressInfo *>( &info ) );
7299
7300 return static_cast<DeviceAddress>( result );
7301 }
7302 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7303
7304 // wrapper function for command vkGetBufferOpaqueCaptureAddress, see
7305 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureAddress.html
7306 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferOpaqueCaptureAddress ), bool>::type>
7307 VULKAN_HPP_INLINE uint64_t Device::getBufferOpaqueCaptureAddress( const BufferDeviceAddressInfo * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7308 {
7309 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7310 return d.vkGetBufferOpaqueCaptureAddress( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkBufferDeviceAddressInfo *>( pInfo ) );
7311 }
7312
7313 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7314 // wrapper function for command vkGetBufferOpaqueCaptureAddress, see
7315 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureAddress.html
7316 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferOpaqueCaptureAddress ), bool>::type>
7317 VULKAN_HPP_INLINE uint64_t Device::getBufferOpaqueCaptureAddress( const BufferDeviceAddressInfo & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7318 {
7319 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7320 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7321 VULKAN_HPP_ASSERT( d.vkGetBufferOpaqueCaptureAddress &&
7322 "Function <vkGetBufferOpaqueCaptureAddress> requires <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
7323 # endif
7324
7325 uint64_t result = d.vkGetBufferOpaqueCaptureAddress( m_device, reinterpret_cast<const VkBufferDeviceAddressInfo *>( &info ) );
7326
7327 return result;
7328 }
7329 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7330
7331 // wrapper function for command vkGetDeviceMemoryOpaqueCaptureAddress, see
7332 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryOpaqueCaptureAddress.html
7333 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMemoryOpaqueCaptureAddress ), bool>::type>
7334 VULKAN_HPP_INLINE uint64_t Device::getMemoryOpaqueCaptureAddress( const DeviceMemoryOpaqueCaptureAddressInfo * pInfo,
7335 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7336 {
7337 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7338 return d.vkGetDeviceMemoryOpaqueCaptureAddress( static_cast<VkDevice>( m_device ),
7339 reinterpret_cast<const VkDeviceMemoryOpaqueCaptureAddressInfo *>( pInfo ) );
7340 }
7341
7342 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7343 // wrapper function for command vkGetDeviceMemoryOpaqueCaptureAddress, see
7344 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryOpaqueCaptureAddress.html
7345 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMemoryOpaqueCaptureAddress ), bool>::type>
7346 VULKAN_HPP_INLINE uint64_t Device::getMemoryOpaqueCaptureAddress( const DeviceMemoryOpaqueCaptureAddressInfo & info,
7347 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7348 {
7349 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7350 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7351 VULKAN_HPP_ASSERT( d.vkGetDeviceMemoryOpaqueCaptureAddress &&
7352 "Function <vkGetDeviceMemoryOpaqueCaptureAddress> requires <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
7353 # endif
7354
7355 uint64_t result = d.vkGetDeviceMemoryOpaqueCaptureAddress( m_device, reinterpret_cast<const VkDeviceMemoryOpaqueCaptureAddressInfo *>( &info ) );
7356
7357 return result;
7358 }
7359 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7360
7361 // wrapper function for command vkCmdDrawIndirectCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCount.html
7362 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirectCount ), bool>::type>
7363 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectCount( Buffer buffer,
7364 DeviceSize offset,
7365 Buffer countBuffer,
7366 DeviceSize countBufferOffset,
7367 uint32_t maxDrawCount,
7368 uint32_t stride,
7369 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7370 {
7371 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7372 d.vkCmdDrawIndirectCount( static_cast<VkCommandBuffer>( m_commandBuffer ),
7373 static_cast<VkBuffer>( buffer ),
7374 static_cast<VkDeviceSize>( offset ),
7375 static_cast<VkBuffer>( countBuffer ),
7376 static_cast<VkDeviceSize>( countBufferOffset ),
7377 maxDrawCount,
7378 stride );
7379 }
7380
7381 // wrapper function for command vkCmdDrawIndexedIndirectCount, see
7382 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCount.html
7383 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexedIndirectCount ), bool>::type>
7384 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirectCount( Buffer buffer,
7385 DeviceSize offset,
7386 Buffer countBuffer,
7387 DeviceSize countBufferOffset,
7388 uint32_t maxDrawCount,
7389 uint32_t stride,
7390 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7391 {
7392 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7393 d.vkCmdDrawIndexedIndirectCount( static_cast<VkCommandBuffer>( m_commandBuffer ),
7394 static_cast<VkBuffer>( buffer ),
7395 static_cast<VkDeviceSize>( offset ),
7396 static_cast<VkBuffer>( countBuffer ),
7397 static_cast<VkDeviceSize>( countBufferOffset ),
7398 maxDrawCount,
7399 stride );
7400 }
7401
7402 // wrapper function for command vkCreateRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2.html
7403 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass2 ), bool>::type>
7404 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createRenderPass2( const RenderPassCreateInfo2 * pCreateInfo,
7405 const AllocationCallbacks * pAllocator,
7406 RenderPass * pRenderPass,
7407 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7408 {
7409 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7410 return static_cast<Result>( d.vkCreateRenderPass2( static_cast<VkDevice>( m_device ),
7411 reinterpret_cast<const VkRenderPassCreateInfo2 *>( pCreateInfo ),
7412 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
7413 reinterpret_cast<VkRenderPass *>( pRenderPass ) ) );
7414 }
7415
7416 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7417 // wrapper function for command vkCreateRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2.html
7418 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass2 ), bool>::type>
7419 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RenderPass>::type
7420 Device::createRenderPass2( const RenderPassCreateInfo2 & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
7421 {
7422 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7423 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7424 VULKAN_HPP_ASSERT( d.vkCreateRenderPass2 && "Function <vkCreateRenderPass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
7425 # endif
7426
7427 RenderPass renderPass;
7428 Result result = static_cast<Result>( d.vkCreateRenderPass2( m_device,
7429 reinterpret_cast<const VkRenderPassCreateInfo2 *>( &createInfo ),
7430 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
7431 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
7432 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass2" );
7433
7434 return detail::createResultValueType( result, std::move( renderPass ) );
7435 }
7436
7437 # ifndef VULKAN_HPP_NO_SMART_HANDLE
7438 // wrapper function for command vkCreateRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2.html
7439 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass2 ), bool>::type>
7440 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<RenderPass, Dispatch>>::type
7441 Device::createRenderPass2Unique( const RenderPassCreateInfo2 & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
7442 {
7443 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7444 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7445 VULKAN_HPP_ASSERT( d.vkCreateRenderPass2 && "Function <vkCreateRenderPass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
7446 # endif
7447
7448 RenderPass renderPass;
7449 Result result = static_cast<Result>( d.vkCreateRenderPass2( m_device,
7450 reinterpret_cast<const VkRenderPassCreateInfo2 *>( &createInfo ),
7451 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
7452 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
7453 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass2Unique" );
7454
7455 return detail::createResultValueType( result,
7456 UniqueHandle<RenderPass, Dispatch>( renderPass, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
7457 }
7458 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
7459 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7460
7461 // wrapper function for command vkCmdBeginRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass2.html
7462 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderPass2 ), bool>::type>
7463 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass2( const RenderPassBeginInfo * pRenderPassBegin,
7464 const SubpassBeginInfo * pSubpassBeginInfo,
7465 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7466 {
7467 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7468 d.vkCmdBeginRenderPass2( static_cast<VkCommandBuffer>( m_commandBuffer ),
7469 reinterpret_cast<const VkRenderPassBeginInfo *>( pRenderPassBegin ),
7470 reinterpret_cast<const VkSubpassBeginInfo *>( pSubpassBeginInfo ) );
7471 }
7472
7473 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7474 // wrapper function for command vkCmdBeginRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass2.html
7475 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderPass2 ), bool>::type>
7476 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass2( const RenderPassBeginInfo & renderPassBegin,
7477 const SubpassBeginInfo & subpassBeginInfo,
7478 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7479 {
7480 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7481 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7482 VULKAN_HPP_ASSERT( d.vkCmdBeginRenderPass2 && "Function <vkCmdBeginRenderPass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
7483 # endif
7484
7485 d.vkCmdBeginRenderPass2(
7486 m_commandBuffer, reinterpret_cast<const VkRenderPassBeginInfo *>( &renderPassBegin ), reinterpret_cast<const VkSubpassBeginInfo *>( &subpassBeginInfo ) );
7487 }
7488 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7489
7490 // wrapper function for command vkCmdNextSubpass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass2.html
7491 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdNextSubpass2 ), bool>::type>
7492 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass2( const SubpassBeginInfo * pSubpassBeginInfo,
7493 const SubpassEndInfo * pSubpassEndInfo,
7494 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7495 {
7496 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7497 d.vkCmdNextSubpass2( static_cast<VkCommandBuffer>( m_commandBuffer ),
7498 reinterpret_cast<const VkSubpassBeginInfo *>( pSubpassBeginInfo ),
7499 reinterpret_cast<const VkSubpassEndInfo *>( pSubpassEndInfo ) );
7500 }
7501
7502 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7503 // wrapper function for command vkCmdNextSubpass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass2.html
7504 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdNextSubpass2 ), bool>::type>
7505 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass2( const SubpassBeginInfo & subpassBeginInfo,
7506 const SubpassEndInfo & subpassEndInfo,
7507 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7508 {
7509 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7510 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7511 VULKAN_HPP_ASSERT( d.vkCmdNextSubpass2 && "Function <vkCmdNextSubpass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
7512 # endif
7513
7514 d.vkCmdNextSubpass2(
7515 m_commandBuffer, reinterpret_cast<const VkSubpassBeginInfo *>( &subpassBeginInfo ), reinterpret_cast<const VkSubpassEndInfo *>( &subpassEndInfo ) );
7516 }
7517 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7518
7519 // wrapper function for command vkCmdEndRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass2.html
7520 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRenderPass2 ), bool>::type>
7521 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass2( const SubpassEndInfo * pSubpassEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7522 {
7523 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7524 d.vkCmdEndRenderPass2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkSubpassEndInfo *>( pSubpassEndInfo ) );
7525 }
7526
7527 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7528 // wrapper function for command vkCmdEndRenderPass2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass2.html
7529 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRenderPass2 ), bool>::type>
7530 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass2( const SubpassEndInfo & subpassEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7531 {
7532 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7533 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7534 VULKAN_HPP_ASSERT( d.vkCmdEndRenderPass2 && "Function <vkCmdEndRenderPass2> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
7535 # endif
7536
7537 d.vkCmdEndRenderPass2( m_commandBuffer, reinterpret_cast<const VkSubpassEndInfo *>( &subpassEndInfo ) );
7538 }
7539 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7540
7541 //=== VK_VERSION_1_3 ===
7542
7543 // wrapper function for command vkGetPhysicalDeviceToolProperties, see
7544 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolProperties.html
7545 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceToolProperties ), bool>::type>
7546 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getToolProperties( uint32_t * pToolCount,
7547 PhysicalDeviceToolProperties * pToolProperties,
7548 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7549 {
7550 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7551 return static_cast<Result>( d.vkGetPhysicalDeviceToolProperties(
7552 static_cast<VkPhysicalDevice>( m_physicalDevice ), pToolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( pToolProperties ) ) );
7553 }
7554
7555 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7556 // wrapper function for command vkGetPhysicalDeviceToolProperties, see
7557 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolProperties.html
7558 template <typename PhysicalDeviceToolPropertiesAllocator,
7559 typename Dispatch,
7560 typename std::enable_if<std::is_same<typename PhysicalDeviceToolPropertiesAllocator::value_type, PhysicalDeviceToolProperties>::value, int>::type,
7561 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceToolProperties ), bool>::type>
7562 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator>>::type
7563 PhysicalDevice::getToolProperties( Dispatch const & d ) const
7564 {
7565 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7566 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7567 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceToolProperties &&
7568 "Function <vkGetPhysicalDeviceToolProperties> requires <VK_EXT_tooling_info> or <VK_VERSION_1_3>" );
7569 # endif
7570
7571 std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator> toolProperties;
7572 uint32_t toolCount;
7573 Result result;
7574 do
7575 {
7576 result = static_cast<Result>( d.vkGetPhysicalDeviceToolProperties( m_physicalDevice, &toolCount, nullptr ) );
7577 if ( ( result == Result::eSuccess ) && toolCount )
7578 {
7579 toolProperties.resize( toolCount );
7580 result = static_cast<Result>(
7581 d.vkGetPhysicalDeviceToolProperties( m_physicalDevice, &toolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( toolProperties.data() ) ) );
7582 }
7583 } while ( result == Result::eIncomplete );
7584 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolProperties" );
7585 VULKAN_HPP_ASSERT( toolCount <= toolProperties.size() );
7586 if ( toolCount < toolProperties.size() )
7587 {
7588 toolProperties.resize( toolCount );
7589 }
7590 return detail::createResultValueType( result, std::move( toolProperties ) );
7591 }
7592
7593 // wrapper function for command vkGetPhysicalDeviceToolProperties, see
7594 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolProperties.html
7595 template <typename PhysicalDeviceToolPropertiesAllocator,
7596 typename Dispatch,
7597 typename std::enable_if<std::is_same<typename PhysicalDeviceToolPropertiesAllocator::value_type, PhysicalDeviceToolProperties>::value, int>::type,
7598 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceToolProperties ), bool>::type>
7599 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator>>::type
7600 PhysicalDevice::getToolProperties( PhysicalDeviceToolPropertiesAllocator const & physicalDeviceToolPropertiesAllocator, Dispatch const & d ) const
7601 {
7602 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7603 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7604 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceToolProperties &&
7605 "Function <vkGetPhysicalDeviceToolProperties> requires <VK_EXT_tooling_info> or <VK_VERSION_1_3>" );
7606 # endif
7607
7608 std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator> toolProperties( physicalDeviceToolPropertiesAllocator );
7609 uint32_t toolCount;
7610 Result result;
7611 do
7612 {
7613 result = static_cast<Result>( d.vkGetPhysicalDeviceToolProperties( m_physicalDevice, &toolCount, nullptr ) );
7614 if ( ( result == Result::eSuccess ) && toolCount )
7615 {
7616 toolProperties.resize( toolCount );
7617 result = static_cast<Result>(
7618 d.vkGetPhysicalDeviceToolProperties( m_physicalDevice, &toolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( toolProperties.data() ) ) );
7619 }
7620 } while ( result == Result::eIncomplete );
7621 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolProperties" );
7622 VULKAN_HPP_ASSERT( toolCount <= toolProperties.size() );
7623 if ( toolCount < toolProperties.size() )
7624 {
7625 toolProperties.resize( toolCount );
7626 }
7627 return detail::createResultValueType( result, std::move( toolProperties ) );
7628 }
7629 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7630
7631 // wrapper function for command vkCreatePrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlot.html
7632 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePrivateDataSlot ), bool>::type>
7633 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createPrivateDataSlot( const PrivateDataSlotCreateInfo * pCreateInfo,
7634 const AllocationCallbacks * pAllocator,
7635 PrivateDataSlot * pPrivateDataSlot,
7636 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7637 {
7638 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7639 return static_cast<Result>( d.vkCreatePrivateDataSlot( static_cast<VkDevice>( m_device ),
7640 reinterpret_cast<const VkPrivateDataSlotCreateInfo *>( pCreateInfo ),
7641 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
7642 reinterpret_cast<VkPrivateDataSlot *>( pPrivateDataSlot ) ) );
7643 }
7644
7645 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7646 // wrapper function for command vkCreatePrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlot.html
7647 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePrivateDataSlot ), bool>::type>
7648 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PrivateDataSlot>::type
7649 Device::createPrivateDataSlot( const PrivateDataSlotCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
7650 {
7651 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7652 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7653 VULKAN_HPP_ASSERT( d.vkCreatePrivateDataSlot && "Function <vkCreatePrivateDataSlot> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
7654 # endif
7655
7656 PrivateDataSlot privateDataSlot;
7657 Result result = static_cast<Result>( d.vkCreatePrivateDataSlot( m_device,
7658 reinterpret_cast<const VkPrivateDataSlotCreateInfo *>( &createInfo ),
7659 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
7660 reinterpret_cast<VkPrivateDataSlot *>( &privateDataSlot ) ) );
7661 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPrivateDataSlot" );
7662
7663 return detail::createResultValueType( result, std::move( privateDataSlot ) );
7664 }
7665
7666 # ifndef VULKAN_HPP_NO_SMART_HANDLE
7667 // wrapper function for command vkCreatePrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlot.html
7668 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePrivateDataSlot ), bool>::type>
7669 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<PrivateDataSlot, Dispatch>>::type
7670 Device::createPrivateDataSlotUnique( const PrivateDataSlotCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
7671 {
7672 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7673 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7674 VULKAN_HPP_ASSERT( d.vkCreatePrivateDataSlot && "Function <vkCreatePrivateDataSlot> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
7675 # endif
7676
7677 PrivateDataSlot privateDataSlot;
7678 Result result = static_cast<Result>( d.vkCreatePrivateDataSlot( m_device,
7679 reinterpret_cast<const VkPrivateDataSlotCreateInfo *>( &createInfo ),
7680 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
7681 reinterpret_cast<VkPrivateDataSlot *>( &privateDataSlot ) ) );
7682 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPrivateDataSlotUnique" );
7683
7684 return detail::createResultValueType(
7685 result, UniqueHandle<PrivateDataSlot, Dispatch>( privateDataSlot, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
7686 }
7687 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
7688 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7689
7690 // wrapper function for command vkDestroyPrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlot.html
7691 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPrivateDataSlot ), bool>::type>
7692 VULKAN_HPP_INLINE void
7693 Device::destroyPrivateDataSlot( PrivateDataSlot privateDataSlot, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7694 {
7695 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7696 d.vkDestroyPrivateDataSlot(
7697 static_cast<VkDevice>( m_device ), static_cast<VkPrivateDataSlot>( privateDataSlot ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
7698 }
7699
7700 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7701 // wrapper function for command vkDestroyPrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlot.html
7702 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPrivateDataSlot ), bool>::type>
7703 VULKAN_HPP_INLINE void Device::destroyPrivateDataSlot( PrivateDataSlot privateDataSlot,
7704 Optional<const AllocationCallbacks> allocator,
7705 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7706 {
7707 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7708 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7709 VULKAN_HPP_ASSERT( d.vkDestroyPrivateDataSlot && "Function <vkDestroyPrivateDataSlot> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
7710 # endif
7711
7712 d.vkDestroyPrivateDataSlot(
7713 m_device, static_cast<VkPrivateDataSlot>( privateDataSlot ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
7714 }
7715 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7716
7717 // wrapper function for command vkDestroyPrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlot.html
7718 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPrivateDataSlot ), bool>::type>
7719 VULKAN_HPP_INLINE void
7720 Device::destroy( PrivateDataSlot privateDataSlot, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7721 {
7722 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7723 d.vkDestroyPrivateDataSlot(
7724 static_cast<VkDevice>( m_device ), static_cast<VkPrivateDataSlot>( privateDataSlot ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
7725 }
7726
7727 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7728 // wrapper function for command vkDestroyPrivateDataSlot, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlot.html
7729 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPrivateDataSlot ), bool>::type>
7730 VULKAN_HPP_INLINE void
7731 Device::destroy( PrivateDataSlot privateDataSlot, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7732 {
7733 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7734 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7735 VULKAN_HPP_ASSERT( d.vkDestroyPrivateDataSlot && "Function <vkDestroyPrivateDataSlot> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
7736 # endif
7737
7738 d.vkDestroyPrivateDataSlot(
7739 m_device, static_cast<VkPrivateDataSlot>( privateDataSlot ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
7740 }
7741 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7742
7743 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
7744 // wrapper function for command vkSetPrivateData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetPrivateData.html
7745 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetPrivateData ), bool>::type>
7746 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setPrivateData(
7747 ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, uint64_t data, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7748 {
7749 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7750 return static_cast<Result>( d.vkSetPrivateData(
7751 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), data ) );
7752 }
7753 #else
7754 // wrapper function for command vkSetPrivateData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetPrivateData.html
7755 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetPrivateData ), bool>::type>
7756 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
7757 Device::setPrivateData( ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, uint64_t data, Dispatch const & d ) const
7758 {
7759 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7760 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7761 VULKAN_HPP_ASSERT( d.vkSetPrivateData && "Function <vkSetPrivateData> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
7762 # endif
7763
7764 Result result = static_cast<Result>(
7765 d.vkSetPrivateData( m_device, static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), data ) );
7766 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setPrivateData" );
7767
7768 return detail::createResultValueType( result );
7769 }
7770 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
7771
7772 // wrapper function for command vkGetPrivateData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPrivateData.html
7773 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPrivateData ), bool>::type>
7774 VULKAN_HPP_INLINE void Device::getPrivateData(
7775 ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, uint64_t * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7776 {
7777 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7778 d.vkGetPrivateData(
7779 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), pData );
7780 }
7781
7782 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7783 // wrapper function for command vkGetPrivateData, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPrivateData.html
7784 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPrivateData ), bool>::type>
7785 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint64_t
7786 Device::getPrivateData( ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7787 {
7788 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7789 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7790 VULKAN_HPP_ASSERT( d.vkGetPrivateData && "Function <vkGetPrivateData> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
7791 # endif
7792
7793 uint64_t data;
7794 d.vkGetPrivateData( m_device, static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), &data );
7795
7796 return data;
7797 }
7798 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7799
7800 // wrapper function for command vkCmdPipelineBarrier2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier2.html
7801 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPipelineBarrier2 ), bool>::type>
7802 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier2( const DependencyInfo * pDependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7803 {
7804 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7805 d.vkCmdPipelineBarrier2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkDependencyInfo *>( pDependencyInfo ) );
7806 }
7807
7808 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7809 // wrapper function for command vkCmdPipelineBarrier2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier2.html
7810 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPipelineBarrier2 ), bool>::type>
7811 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier2( const DependencyInfo & dependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7812 {
7813 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7814 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7815 VULKAN_HPP_ASSERT( d.vkCmdPipelineBarrier2 && "Function <vkCmdPipelineBarrier2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
7816 # endif
7817
7818 d.vkCmdPipelineBarrier2( m_commandBuffer, reinterpret_cast<const VkDependencyInfo *>( &dependencyInfo ) );
7819 }
7820 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7821
7822 // wrapper function for command vkCmdWriteTimestamp2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteTimestamp2.html
7823 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteTimestamp2 ), bool>::type>
7824 VULKAN_HPP_INLINE void
7825 CommandBuffer::writeTimestamp2( PipelineStageFlags2 stage, QueryPool queryPool, uint32_t query, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7826 {
7827 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7828 d.vkCmdWriteTimestamp2(
7829 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineStageFlags2>( stage ), static_cast<VkQueryPool>( queryPool ), query );
7830 }
7831
7832 // wrapper function for command vkQueueSubmit2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2.html
7833 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSubmit2 ), bool>::type>
7834 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
7835 Queue::submit2( uint32_t submitCount, const SubmitInfo2 * pSubmits, Fence fence, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7836 {
7837 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7838 return static_cast<Result>(
7839 d.vkQueueSubmit2( static_cast<VkQueue>( m_queue ), submitCount, reinterpret_cast<const VkSubmitInfo2 *>( pSubmits ), static_cast<VkFence>( fence ) ) );
7840 }
7841
7842 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7843 // wrapper function for command vkQueueSubmit2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2.html
7844 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSubmit2 ), bool>::type>
7845 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
7846 Queue::submit2( ArrayProxy<const SubmitInfo2> const & submits, Fence fence, Dispatch const & d ) const
7847 {
7848 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7849 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7850 VULKAN_HPP_ASSERT( d.vkQueueSubmit2 && "Function <vkQueueSubmit2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
7851 # endif
7852
7853 Result result = static_cast<Result>(
7854 d.vkQueueSubmit2( m_queue, submits.size(), reinterpret_cast<const VkSubmitInfo2 *>( submits.data() ), static_cast<VkFence>( fence ) ) );
7855 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::submit2" );
7856
7857 return detail::createResultValueType( result );
7858 }
7859 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7860
7861 // wrapper function for command vkCmdCopyBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer2.html
7862 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBuffer2 ), bool>::type>
7863 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer2( const CopyBufferInfo2 * pCopyBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7864 {
7865 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7866 d.vkCmdCopyBuffer2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyBufferInfo2 *>( pCopyBufferInfo ) );
7867 }
7868
7869 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7870 // wrapper function for command vkCmdCopyBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer2.html
7871 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBuffer2 ), bool>::type>
7872 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer2( const CopyBufferInfo2 & copyBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7873 {
7874 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7875 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7876 VULKAN_HPP_ASSERT( d.vkCmdCopyBuffer2 && "Function <vkCmdCopyBuffer2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
7877 # endif
7878
7879 d.vkCmdCopyBuffer2( m_commandBuffer, reinterpret_cast<const VkCopyBufferInfo2 *>( &copyBufferInfo ) );
7880 }
7881 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7882
7883 // wrapper function for command vkCmdCopyImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage2.html
7884 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImage2 ), bool>::type>
7885 VULKAN_HPP_INLINE void CommandBuffer::copyImage2( const CopyImageInfo2 * pCopyImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7886 {
7887 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7888 d.vkCmdCopyImage2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyImageInfo2 *>( pCopyImageInfo ) );
7889 }
7890
7891 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7892 // wrapper function for command vkCmdCopyImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage2.html
7893 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImage2 ), bool>::type>
7894 VULKAN_HPP_INLINE void CommandBuffer::copyImage2( const CopyImageInfo2 & copyImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7895 {
7896 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7897 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7898 VULKAN_HPP_ASSERT( d.vkCmdCopyImage2 && "Function <vkCmdCopyImage2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
7899 # endif
7900
7901 d.vkCmdCopyImage2( m_commandBuffer, reinterpret_cast<const VkCopyImageInfo2 *>( &copyImageInfo ) );
7902 }
7903 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7904
7905 // wrapper function for command vkCmdCopyBufferToImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage2.html
7906 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBufferToImage2 ), bool>::type>
7907 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage2( const CopyBufferToImageInfo2 * pCopyBufferToImageInfo,
7908 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7909 {
7910 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7911 d.vkCmdCopyBufferToImage2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyBufferToImageInfo2 *>( pCopyBufferToImageInfo ) );
7912 }
7913
7914 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7915 // wrapper function for command vkCmdCopyBufferToImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage2.html
7916 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBufferToImage2 ), bool>::type>
7917 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage2( const CopyBufferToImageInfo2 & copyBufferToImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7918 {
7919 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7920 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7921 VULKAN_HPP_ASSERT( d.vkCmdCopyBufferToImage2 && "Function <vkCmdCopyBufferToImage2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
7922 # endif
7923
7924 d.vkCmdCopyBufferToImage2( m_commandBuffer, reinterpret_cast<const VkCopyBufferToImageInfo2 *>( &copyBufferToImageInfo ) );
7925 }
7926 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7927
7928 // wrapper function for command vkCmdCopyImageToBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer2.html
7929 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToBuffer2 ), bool>::type>
7930 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer2( const CopyImageToBufferInfo2 * pCopyImageToBufferInfo,
7931 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7932 {
7933 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7934 d.vkCmdCopyImageToBuffer2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyImageToBufferInfo2 *>( pCopyImageToBufferInfo ) );
7935 }
7936
7937 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7938 // wrapper function for command vkCmdCopyImageToBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer2.html
7939 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToBuffer2 ), bool>::type>
7940 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer2( const CopyImageToBufferInfo2 & copyImageToBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7941 {
7942 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7943 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7944 VULKAN_HPP_ASSERT( d.vkCmdCopyImageToBuffer2 && "Function <vkCmdCopyImageToBuffer2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
7945 # endif
7946
7947 d.vkCmdCopyImageToBuffer2( m_commandBuffer, reinterpret_cast<const VkCopyImageToBufferInfo2 *>( &copyImageToBufferInfo ) );
7948 }
7949 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
7950
7951 // wrapper function for command vkGetDeviceBufferMemoryRequirements, see
7952 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirements.html
7953 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceBufferMemoryRequirements ), bool>::type>
7954 VULKAN_HPP_INLINE void Device::getBufferMemoryRequirements( const DeviceBufferMemoryRequirements * pInfo,
7955 MemoryRequirements2 * pMemoryRequirements,
7956 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7957 {
7958 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7959 d.vkGetDeviceBufferMemoryRequirements( static_cast<VkDevice>( m_device ),
7960 reinterpret_cast<const VkDeviceBufferMemoryRequirements *>( pInfo ),
7961 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
7962 }
7963
7964 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
7965 // wrapper function for command vkGetDeviceBufferMemoryRequirements, see
7966 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirements.html
7967 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceBufferMemoryRequirements ), bool>::type>
7968 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getBufferMemoryRequirements( const DeviceBufferMemoryRequirements & info,
7969 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7970 {
7971 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7972 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7973 VULKAN_HPP_ASSERT( d.vkGetDeviceBufferMemoryRequirements &&
7974 "Function <vkGetDeviceBufferMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
7975 # endif
7976
7977 MemoryRequirements2 memoryRequirements;
7978 d.vkGetDeviceBufferMemoryRequirements(
7979 m_device, reinterpret_cast<const VkDeviceBufferMemoryRequirements *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
7980
7981 return memoryRequirements;
7982 }
7983
7984 // wrapper function for command vkGetDeviceBufferMemoryRequirements, see
7985 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirements.html
7986 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceBufferMemoryRequirements ), bool>::type>
7987 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getBufferMemoryRequirements( const DeviceBufferMemoryRequirements & info,
7988 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
7989 {
7990 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
7991 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
7992 VULKAN_HPP_ASSERT( d.vkGetDeviceBufferMemoryRequirements &&
7993 "Function <vkGetDeviceBufferMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
7994 # endif
7995
7996 StructureChain<X, Y, Z...> structureChain;
7997 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
7998 d.vkGetDeviceBufferMemoryRequirements(
7999 m_device, reinterpret_cast<const VkDeviceBufferMemoryRequirements *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
8000
8001 return structureChain;
8002 }
8003 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8004
8005 // wrapper function for command vkGetDeviceImageMemoryRequirements, see
8006 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirements.html
8007 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageMemoryRequirements ), bool>::type>
8008 VULKAN_HPP_INLINE void Device::getImageMemoryRequirements( const DeviceImageMemoryRequirements * pInfo,
8009 MemoryRequirements2 * pMemoryRequirements,
8010 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8011 {
8012 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8013 d.vkGetDeviceImageMemoryRequirements( static_cast<VkDevice>( m_device ),
8014 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( pInfo ),
8015 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
8016 }
8017
8018 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8019 // wrapper function for command vkGetDeviceImageMemoryRequirements, see
8020 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirements.html
8021 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageMemoryRequirements ), bool>::type>
8022 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getImageMemoryRequirements( const DeviceImageMemoryRequirements & info,
8023 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8024 {
8025 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8026 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8027 VULKAN_HPP_ASSERT( d.vkGetDeviceImageMemoryRequirements &&
8028 "Function <vkGetDeviceImageMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
8029 # endif
8030
8031 MemoryRequirements2 memoryRequirements;
8032 d.vkGetDeviceImageMemoryRequirements(
8033 m_device, reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
8034
8035 return memoryRequirements;
8036 }
8037
8038 // wrapper function for command vkGetDeviceImageMemoryRequirements, see
8039 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirements.html
8040 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageMemoryRequirements ), bool>::type>
8041 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageMemoryRequirements( const DeviceImageMemoryRequirements & info,
8042 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8043 {
8044 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8045 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8046 VULKAN_HPP_ASSERT( d.vkGetDeviceImageMemoryRequirements &&
8047 "Function <vkGetDeviceImageMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
8048 # endif
8049
8050 StructureChain<X, Y, Z...> structureChain;
8051 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
8052 d.vkGetDeviceImageMemoryRequirements(
8053 m_device, reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
8054
8055 return structureChain;
8056 }
8057 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8058
8059 // wrapper function for command vkGetDeviceImageSparseMemoryRequirements, see
8060 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirements.html
8061 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSparseMemoryRequirements ), bool>::type>
8062 VULKAN_HPP_INLINE void Device::getImageSparseMemoryRequirements( const DeviceImageMemoryRequirements * pInfo,
8063 uint32_t * pSparseMemoryRequirementCount,
8064 SparseImageMemoryRequirements2 * pSparseMemoryRequirements,
8065 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8066 {
8067 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8068 d.vkGetDeviceImageSparseMemoryRequirements( static_cast<VkDevice>( m_device ),
8069 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( pInfo ),
8070 pSparseMemoryRequirementCount,
8071 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( pSparseMemoryRequirements ) );
8072 }
8073
8074 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8075 // wrapper function for command vkGetDeviceImageSparseMemoryRequirements, see
8076 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirements.html
8077 template <
8078 typename SparseImageMemoryRequirements2Allocator,
8079 typename Dispatch,
8080 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
8081 typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSparseMemoryRequirements ), bool>::type>
8082 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
8083 Device::getImageSparseMemoryRequirements( const DeviceImageMemoryRequirements & info, Dispatch const & d ) const
8084 {
8085 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8086 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8087 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSparseMemoryRequirements &&
8088 "Function <vkGetDeviceImageSparseMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
8089 # endif
8090
8091 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements;
8092 uint32_t sparseMemoryRequirementCount;
8093 d.vkGetDeviceImageSparseMemoryRequirements(
8094 m_device, reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ), &sparseMemoryRequirementCount, nullptr );
8095 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
8096 d.vkGetDeviceImageSparseMemoryRequirements( m_device,
8097 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ),
8098 &sparseMemoryRequirementCount,
8099 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
8100
8101 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
8102 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
8103 {
8104 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
8105 }
8106 return sparseMemoryRequirements;
8107 }
8108
8109 // wrapper function for command vkGetDeviceImageSparseMemoryRequirements, see
8110 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirements.html
8111 template <
8112 typename SparseImageMemoryRequirements2Allocator,
8113 typename Dispatch,
8114 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
8115 typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSparseMemoryRequirements ), bool>::type>
8116 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
8117 Device::getImageSparseMemoryRequirements( const DeviceImageMemoryRequirements & info,
8118 SparseImageMemoryRequirements2Allocator const & sparseImageMemoryRequirements2Allocator,
8119 Dispatch const & d ) const
8120 {
8121 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8122 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8123 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSparseMemoryRequirements &&
8124 "Function <vkGetDeviceImageSparseMemoryRequirements> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
8125 # endif
8126
8127 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements( sparseImageMemoryRequirements2Allocator );
8128 uint32_t sparseMemoryRequirementCount;
8129 d.vkGetDeviceImageSparseMemoryRequirements(
8130 m_device, reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ), &sparseMemoryRequirementCount, nullptr );
8131 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
8132 d.vkGetDeviceImageSparseMemoryRequirements( m_device,
8133 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ),
8134 &sparseMemoryRequirementCount,
8135 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
8136
8137 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
8138 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
8139 {
8140 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
8141 }
8142 return sparseMemoryRequirements;
8143 }
8144 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8145
8146 // wrapper function for command vkCmdSetEvent2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent2.html
8147 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetEvent2 ), bool>::type>
8148 VULKAN_HPP_INLINE void CommandBuffer::setEvent2( Event event, const DependencyInfo * pDependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8149 {
8150 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8151 d.vkCmdSetEvent2(
8152 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), reinterpret_cast<const VkDependencyInfo *>( pDependencyInfo ) );
8153 }
8154
8155 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8156 // wrapper function for command vkCmdSetEvent2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent2.html
8157 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetEvent2 ), bool>::type>
8158 VULKAN_HPP_INLINE void CommandBuffer::setEvent2( Event event, const DependencyInfo & dependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8159 {
8160 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8161 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8162 VULKAN_HPP_ASSERT( d.vkCmdSetEvent2 && "Function <vkCmdSetEvent2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
8163 # endif
8164
8165 d.vkCmdSetEvent2( m_commandBuffer, static_cast<VkEvent>( event ), reinterpret_cast<const VkDependencyInfo *>( &dependencyInfo ) );
8166 }
8167 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8168
8169 // wrapper function for command vkCmdResetEvent2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetEvent2.html
8170 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResetEvent2 ), bool>::type>
8171 VULKAN_HPP_INLINE void CommandBuffer::resetEvent2( Event event, PipelineStageFlags2 stageMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8172 {
8173 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8174 d.vkCmdResetEvent2( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), static_cast<VkPipelineStageFlags2>( stageMask ) );
8175 }
8176
8177 // wrapper function for command vkCmdWaitEvents2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents2.html
8178 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWaitEvents2 ), bool>::type>
8179 VULKAN_HPP_INLINE void CommandBuffer::waitEvents2( uint32_t eventCount,
8180 const Event * pEvents,
8181 const DependencyInfo * pDependencyInfos,
8182 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8183 {
8184 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8185 d.vkCmdWaitEvents2( static_cast<VkCommandBuffer>( m_commandBuffer ),
8186 eventCount,
8187 reinterpret_cast<const VkEvent *>( pEvents ),
8188 reinterpret_cast<const VkDependencyInfo *>( pDependencyInfos ) );
8189 }
8190
8191 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8192 // wrapper function for command vkCmdWaitEvents2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents2.html
8193 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWaitEvents2 ), bool>::type>
8194 VULKAN_HPP_INLINE void CommandBuffer::waitEvents2( ArrayProxy<const Event> const & events,
8195 ArrayProxy<const DependencyInfo> const & dependencyInfos,
8196 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
8197 {
8198 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8199 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8200 VULKAN_HPP_ASSERT( d.vkCmdWaitEvents2 && "Function <vkCmdWaitEvents2> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
8201 # endif
8202 # ifdef VULKAN_HPP_NO_EXCEPTIONS
8203 VULKAN_HPP_ASSERT( events.size() == dependencyInfos.size() );
8204 # else
8205 if ( events.size() != dependencyInfos.size() )
8206 {
8207 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::waitEvents2: events.size() != dependencyInfos.size()" );
8208 }
8209 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
8210
8211 d.vkCmdWaitEvents2( m_commandBuffer,
8212 events.size(),
8213 reinterpret_cast<const VkEvent *>( events.data() ),
8214 reinterpret_cast<const VkDependencyInfo *>( dependencyInfos.data() ) );
8215 }
8216 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8217
8218 // wrapper function for command vkCmdBlitImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage2.html
8219 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBlitImage2 ), bool>::type>
8220 VULKAN_HPP_INLINE void CommandBuffer::blitImage2( const BlitImageInfo2 * pBlitImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8221 {
8222 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8223 d.vkCmdBlitImage2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkBlitImageInfo2 *>( pBlitImageInfo ) );
8224 }
8225
8226 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8227 // wrapper function for command vkCmdBlitImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage2.html
8228 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBlitImage2 ), bool>::type>
8229 VULKAN_HPP_INLINE void CommandBuffer::blitImage2( const BlitImageInfo2 & blitImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8230 {
8231 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8232 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8233 VULKAN_HPP_ASSERT( d.vkCmdBlitImage2 && "Function <vkCmdBlitImage2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
8234 # endif
8235
8236 d.vkCmdBlitImage2( m_commandBuffer, reinterpret_cast<const VkBlitImageInfo2 *>( &blitImageInfo ) );
8237 }
8238 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8239
8240 // wrapper function for command vkCmdResolveImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage2.html
8241 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResolveImage2 ), bool>::type>
8242 VULKAN_HPP_INLINE void CommandBuffer::resolveImage2( const ResolveImageInfo2 * pResolveImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8243 {
8244 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8245 d.vkCmdResolveImage2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkResolveImageInfo2 *>( pResolveImageInfo ) );
8246 }
8247
8248 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8249 // wrapper function for command vkCmdResolveImage2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage2.html
8250 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResolveImage2 ), bool>::type>
8251 VULKAN_HPP_INLINE void CommandBuffer::resolveImage2( const ResolveImageInfo2 & resolveImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8252 {
8253 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8254 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8255 VULKAN_HPP_ASSERT( d.vkCmdResolveImage2 && "Function <vkCmdResolveImage2> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
8256 # endif
8257
8258 d.vkCmdResolveImage2( m_commandBuffer, reinterpret_cast<const VkResolveImageInfo2 *>( &resolveImageInfo ) );
8259 }
8260 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8261
8262 // wrapper function for command vkCmdBeginRendering, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRendering.html
8263 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRendering ), bool>::type>
8264 VULKAN_HPP_INLINE void CommandBuffer::beginRendering( const RenderingInfo * pRenderingInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8265 {
8266 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8267 d.vkCmdBeginRendering( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkRenderingInfo *>( pRenderingInfo ) );
8268 }
8269
8270 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8271 // wrapper function for command vkCmdBeginRendering, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRendering.html
8272 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRendering ), bool>::type>
8273 VULKAN_HPP_INLINE void CommandBuffer::beginRendering( const RenderingInfo & renderingInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8274 {
8275 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8276 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8277 VULKAN_HPP_ASSERT( d.vkCmdBeginRendering && "Function <vkCmdBeginRendering> requires <VK_KHR_dynamic_rendering> or <VK_VERSION_1_3>" );
8278 # endif
8279
8280 d.vkCmdBeginRendering( m_commandBuffer, reinterpret_cast<const VkRenderingInfo *>( &renderingInfo ) );
8281 }
8282 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8283
8284 // wrapper function for command vkCmdEndRendering, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering.html
8285 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRendering ), bool>::type>
8286 VULKAN_HPP_INLINE void CommandBuffer::endRendering( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8287 {
8288 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8289 d.vkCmdEndRendering( static_cast<VkCommandBuffer>( m_commandBuffer ) );
8290 }
8291
8292 // wrapper function for command vkCmdSetCullMode, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCullMode.html
8293 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCullMode ), bool>::type>
8294 VULKAN_HPP_INLINE void CommandBuffer::setCullMode( CullModeFlags cullMode, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8295 {
8296 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8297 d.vkCmdSetCullMode( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCullModeFlags>( cullMode ) );
8298 }
8299
8300 // wrapper function for command vkCmdSetFrontFace, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFrontFace.html
8301 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetFrontFace ), bool>::type>
8302 VULKAN_HPP_INLINE void CommandBuffer::setFrontFace( FrontFace frontFace, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8303 {
8304 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8305 d.vkCmdSetFrontFace( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkFrontFace>( frontFace ) );
8306 }
8307
8308 // wrapper function for command vkCmdSetPrimitiveTopology, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveTopology.html
8309 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPrimitiveTopology ), bool>::type>
8310 VULKAN_HPP_INLINE void CommandBuffer::setPrimitiveTopology( PrimitiveTopology primitiveTopology, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8311 {
8312 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8313 d.vkCmdSetPrimitiveTopology( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPrimitiveTopology>( primitiveTopology ) );
8314 }
8315
8316 // wrapper function for command vkCmdSetViewportWithCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWithCount.html
8317 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWithCount ), bool>::type>
8318 VULKAN_HPP_INLINE void
8319 CommandBuffer::setViewportWithCount( uint32_t viewportCount, const Viewport * pViewports, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8320 {
8321 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8322 d.vkCmdSetViewportWithCount( static_cast<VkCommandBuffer>( m_commandBuffer ), viewportCount, reinterpret_cast<const VkViewport *>( pViewports ) );
8323 }
8324
8325 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8326 // wrapper function for command vkCmdSetViewportWithCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWithCount.html
8327 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWithCount ), bool>::type>
8328 VULKAN_HPP_INLINE void CommandBuffer::setViewportWithCount( ArrayProxy<const Viewport> const & viewports, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8329 {
8330 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8331 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8332 VULKAN_HPP_ASSERT( d.vkCmdSetViewportWithCount &&
8333 "Function <vkCmdSetViewportWithCount> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
8334 # endif
8335
8336 d.vkCmdSetViewportWithCount( m_commandBuffer, viewports.size(), reinterpret_cast<const VkViewport *>( viewports.data() ) );
8337 }
8338 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8339
8340 // wrapper function for command vkCmdSetScissorWithCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissorWithCount.html
8341 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetScissorWithCount ), bool>::type>
8342 VULKAN_HPP_INLINE void CommandBuffer::setScissorWithCount( uint32_t scissorCount, const Rect2D * pScissors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8343 {
8344 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8345 d.vkCmdSetScissorWithCount( static_cast<VkCommandBuffer>( m_commandBuffer ), scissorCount, reinterpret_cast<const VkRect2D *>( pScissors ) );
8346 }
8347
8348 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8349 // wrapper function for command vkCmdSetScissorWithCount, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissorWithCount.html
8350 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetScissorWithCount ), bool>::type>
8351 VULKAN_HPP_INLINE void CommandBuffer::setScissorWithCount( ArrayProxy<const Rect2D> const & scissors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8352 {
8353 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8354 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8355 VULKAN_HPP_ASSERT( d.vkCmdSetScissorWithCount &&
8356 "Function <vkCmdSetScissorWithCount> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
8357 # endif
8358
8359 d.vkCmdSetScissorWithCount( m_commandBuffer, scissors.size(), reinterpret_cast<const VkRect2D *>( scissors.data() ) );
8360 }
8361 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8362
8363 // wrapper function for command vkCmdBindVertexBuffers2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers2.html
8364 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers2 ), bool>::type>
8365 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers2( uint32_t firstBinding,
8366 uint32_t bindingCount,
8367 const Buffer * pBuffers,
8368 const DeviceSize * pOffsets,
8369 const DeviceSize * pSizes,
8370 const DeviceSize * pStrides,
8371 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8372 {
8373 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8374 d.vkCmdBindVertexBuffers2( static_cast<VkCommandBuffer>( m_commandBuffer ),
8375 firstBinding,
8376 bindingCount,
8377 reinterpret_cast<const VkBuffer *>( pBuffers ),
8378 reinterpret_cast<const VkDeviceSize *>( pOffsets ),
8379 reinterpret_cast<const VkDeviceSize *>( pSizes ),
8380 reinterpret_cast<const VkDeviceSize *>( pStrides ) );
8381 }
8382
8383 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8384 // wrapper function for command vkCmdBindVertexBuffers2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers2.html
8385 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers2 ), bool>::type>
8386 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers2( uint32_t firstBinding,
8387 ArrayProxy<const Buffer> const & buffers,
8388 ArrayProxy<const DeviceSize> const & offsets,
8389 ArrayProxy<const DeviceSize> const & sizes,
8390 ArrayProxy<const DeviceSize> const & strides,
8391 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
8392 {
8393 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8394 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8395 VULKAN_HPP_ASSERT( d.vkCmdBindVertexBuffers2 &&
8396 "Function <vkCmdBindVertexBuffers2> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
8397 # endif
8398 # ifdef VULKAN_HPP_NO_EXCEPTIONS
8399 VULKAN_HPP_ASSERT( buffers.size() == offsets.size() );
8400 VULKAN_HPP_ASSERT( sizes.empty() || buffers.size() == sizes.size() );
8401 VULKAN_HPP_ASSERT( strides.empty() || buffers.size() == strides.size() );
8402 # else
8403 if ( buffers.size() != offsets.size() )
8404 {
8405 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2: buffers.size() != offsets.size()" );
8406 }
8407 if ( !sizes.empty() && buffers.size() != sizes.size() )
8408 {
8409 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2: buffers.size() != sizes.size()" );
8410 }
8411 if ( !strides.empty() && buffers.size() != strides.size() )
8412 {
8413 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2: buffers.size() != strides.size()" );
8414 }
8415 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
8416
8417 d.vkCmdBindVertexBuffers2( m_commandBuffer,
8418 firstBinding,
8419 buffers.size(),
8420 reinterpret_cast<const VkBuffer *>( buffers.data() ),
8421 reinterpret_cast<const VkDeviceSize *>( offsets.data() ),
8422 reinterpret_cast<const VkDeviceSize *>( sizes.data() ),
8423 reinterpret_cast<const VkDeviceSize *>( strides.data() ) );
8424 }
8425 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8426
8427 // wrapper function for command vkCmdSetDepthTestEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthTestEnable.html
8428 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthTestEnable ), bool>::type>
8429 VULKAN_HPP_INLINE void CommandBuffer::setDepthTestEnable( Bool32 depthTestEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8430 {
8431 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8432 d.vkCmdSetDepthTestEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthTestEnable ) );
8433 }
8434
8435 // wrapper function for command vkCmdSetDepthWriteEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthWriteEnable.html
8436 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthWriteEnable ), bool>::type>
8437 VULKAN_HPP_INLINE void CommandBuffer::setDepthWriteEnable( Bool32 depthWriteEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8438 {
8439 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8440 d.vkCmdSetDepthWriteEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthWriteEnable ) );
8441 }
8442
8443 // wrapper function for command vkCmdSetDepthCompareOp, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthCompareOp.html
8444 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthCompareOp ), bool>::type>
8445 VULKAN_HPP_INLINE void CommandBuffer::setDepthCompareOp( CompareOp depthCompareOp, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8446 {
8447 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8448 d.vkCmdSetDepthCompareOp( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCompareOp>( depthCompareOp ) );
8449 }
8450
8451 // wrapper function for command vkCmdSetDepthBoundsTestEnable, see
8452 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBoundsTestEnable.html
8453 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBoundsTestEnable ), bool>::type>
8454 VULKAN_HPP_INLINE void CommandBuffer::setDepthBoundsTestEnable( Bool32 depthBoundsTestEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8455 {
8456 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8457 d.vkCmdSetDepthBoundsTestEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBoundsTestEnable ) );
8458 }
8459
8460 // wrapper function for command vkCmdSetStencilTestEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilTestEnable.html
8461 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilTestEnable ), bool>::type>
8462 VULKAN_HPP_INLINE void CommandBuffer::setStencilTestEnable( Bool32 stencilTestEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8463 {
8464 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8465 d.vkCmdSetStencilTestEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( stencilTestEnable ) );
8466 }
8467
8468 // wrapper function for command vkCmdSetStencilOp, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilOp.html
8469 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilOp ), bool>::type>
8470 VULKAN_HPP_INLINE void CommandBuffer::setStencilOp(
8471 StencilFaceFlags faceMask, StencilOp failOp, StencilOp passOp, StencilOp depthFailOp, CompareOp compareOp, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8472 {
8473 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8474 d.vkCmdSetStencilOp( static_cast<VkCommandBuffer>( m_commandBuffer ),
8475 static_cast<VkStencilFaceFlags>( faceMask ),
8476 static_cast<VkStencilOp>( failOp ),
8477 static_cast<VkStencilOp>( passOp ),
8478 static_cast<VkStencilOp>( depthFailOp ),
8479 static_cast<VkCompareOp>( compareOp ) );
8480 }
8481
8482 // wrapper function for command vkCmdSetRasterizerDiscardEnable, see
8483 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizerDiscardEnable.html
8484 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRasterizerDiscardEnable ), bool>::type>
8485 VULKAN_HPP_INLINE void CommandBuffer::setRasterizerDiscardEnable( Bool32 rasterizerDiscardEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8486 {
8487 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8488 d.vkCmdSetRasterizerDiscardEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( rasterizerDiscardEnable ) );
8489 }
8490
8491 // wrapper function for command vkCmdSetDepthBiasEnable, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBiasEnable.html
8492 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBiasEnable ), bool>::type>
8493 VULKAN_HPP_INLINE void CommandBuffer::setDepthBiasEnable( Bool32 depthBiasEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8494 {
8495 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8496 d.vkCmdSetDepthBiasEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBiasEnable ) );
8497 }
8498
8499 // wrapper function for command vkCmdSetPrimitiveRestartEnable, see
8500 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveRestartEnable.html
8501 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPrimitiveRestartEnable ), bool>::type>
8502 VULKAN_HPP_INLINE void CommandBuffer::setPrimitiveRestartEnable( Bool32 primitiveRestartEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8503 {
8504 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8505 d.vkCmdSetPrimitiveRestartEnable( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( primitiveRestartEnable ) );
8506 }
8507
8508 //=== VK_VERSION_1_4 ===
8509
8510 // wrapper function for command vkMapMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory2.html
8511 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMapMemory2 ), bool>::type>
8512 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::mapMemory2( const MemoryMapInfo * pMemoryMapInfo,
8513 void ** ppData,
8514 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8515 {
8516 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8517 return static_cast<Result>( d.vkMapMemory2( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryMapInfo *>( pMemoryMapInfo ), ppData ) );
8518 }
8519
8520 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8521 // wrapper function for command vkMapMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory2.html
8522 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMapMemory2 ), bool>::type>
8523 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<void *>::type Device::mapMemory2( const MemoryMapInfo & memoryMapInfo,
8524 Dispatch const & d ) const
8525 {
8526 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8527 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8528 VULKAN_HPP_ASSERT( d.vkMapMemory2 && "Function <vkMapMemory2> requires <VK_KHR_map_memory2> or <VK_VERSION_1_4>" );
8529 # endif
8530
8531 void * pData;
8532 Result result = static_cast<Result>( d.vkMapMemory2( m_device, reinterpret_cast<const VkMemoryMapInfo *>( &memoryMapInfo ), &pData ) );
8533 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mapMemory2" );
8534
8535 return detail::createResultValueType( result, std::move( pData ) );
8536 }
8537 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8538
8539 // wrapper function for command vkUnmapMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory2.html
8540 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUnmapMemory2 ), bool>::type>
8541 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::unmapMemory2( const MemoryUnmapInfo * pMemoryUnmapInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8542 {
8543 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8544 return static_cast<Result>( d.vkUnmapMemory2( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryUnmapInfo *>( pMemoryUnmapInfo ) ) );
8545 }
8546
8547 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8548 // wrapper function for command vkUnmapMemory2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory2.html
8549 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUnmapMemory2 ), bool>::type>
8550 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::unmapMemory2( const MemoryUnmapInfo & memoryUnmapInfo,
8551 Dispatch const & d ) const
8552 {
8553 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8554 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8555 VULKAN_HPP_ASSERT( d.vkUnmapMemory2 && "Function <vkUnmapMemory2> requires <VK_KHR_map_memory2> or <VK_VERSION_1_4>" );
8556 # endif
8557
8558 Result result = static_cast<Result>( d.vkUnmapMemory2( m_device, reinterpret_cast<const VkMemoryUnmapInfo *>( &memoryUnmapInfo ) ) );
8559 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::unmapMemory2" );
8560
8561 return detail::createResultValueType( result );
8562 }
8563 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8564
8565 // wrapper function for command vkGetDeviceImageSubresourceLayout, see
8566 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayout.html
8567 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSubresourceLayout ), bool>::type>
8568 VULKAN_HPP_INLINE void
8569 Device::getImageSubresourceLayout( const DeviceImageSubresourceInfo * pInfo, SubresourceLayout2 * pLayout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8570 {
8571 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8572 d.vkGetDeviceImageSubresourceLayout(
8573 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkDeviceImageSubresourceInfo *>( pInfo ), reinterpret_cast<VkSubresourceLayout2 *>( pLayout ) );
8574 }
8575
8576 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8577 // wrapper function for command vkGetDeviceImageSubresourceLayout, see
8578 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayout.html
8579 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSubresourceLayout ), bool>::type>
8580 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Device::getImageSubresourceLayout( const DeviceImageSubresourceInfo & info,
8581 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8582 {
8583 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8584 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8585 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSubresourceLayout &&
8586 "Function <vkGetDeviceImageSubresourceLayout> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
8587 # endif
8588
8589 SubresourceLayout2 layout;
8590 d.vkGetDeviceImageSubresourceLayout(
8591 m_device, reinterpret_cast<const VkDeviceImageSubresourceInfo *>( &info ), reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
8592
8593 return layout;
8594 }
8595
8596 // wrapper function for command vkGetDeviceImageSubresourceLayout, see
8597 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayout.html
8598 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSubresourceLayout ), bool>::type>
8599 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageSubresourceLayout( const DeviceImageSubresourceInfo & info,
8600 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8601 {
8602 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8603 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8604 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSubresourceLayout &&
8605 "Function <vkGetDeviceImageSubresourceLayout> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
8606 # endif
8607
8608 StructureChain<X, Y, Z...> structureChain;
8609 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
8610 d.vkGetDeviceImageSubresourceLayout(
8611 m_device, reinterpret_cast<const VkDeviceImageSubresourceInfo *>( &info ), reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
8612
8613 return structureChain;
8614 }
8615 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8616
8617 // wrapper function for command vkGetImageSubresourceLayout2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2.html
8618 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2 ), bool>::type>
8619 VULKAN_HPP_INLINE void Device::getImageSubresourceLayout2( Image image,
8620 const ImageSubresource2 * pSubresource,
8621 SubresourceLayout2 * pLayout,
8622 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8623 {
8624 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8625 d.vkGetImageSubresourceLayout2( static_cast<VkDevice>( m_device ),
8626 static_cast<VkImage>( image ),
8627 reinterpret_cast<const VkImageSubresource2 *>( pSubresource ),
8628 reinterpret_cast<VkSubresourceLayout2 *>( pLayout ) );
8629 }
8630
8631 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8632 // wrapper function for command vkGetImageSubresourceLayout2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2.html
8633 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2 ), bool>::type>
8634 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Device::getImageSubresourceLayout2( Image image,
8635 const ImageSubresource2 & subresource,
8636 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8637 {
8638 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8639 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8640 VULKAN_HPP_ASSERT(
8641 d.vkGetImageSubresourceLayout2 &&
8642 "Function <vkGetImageSubresourceLayout2> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
8643 # endif
8644
8645 SubresourceLayout2 layout;
8646 d.vkGetImageSubresourceLayout2( m_device,
8647 static_cast<VkImage>( image ),
8648 reinterpret_cast<const VkImageSubresource2 *>( &subresource ),
8649 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
8650
8651 return layout;
8652 }
8653
8654 // wrapper function for command vkGetImageSubresourceLayout2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2.html
8655 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2 ), bool>::type>
8656 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
8657 Device::getImageSubresourceLayout2( Image image, const ImageSubresource2 & subresource, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8658 {
8659 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8660 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8661 VULKAN_HPP_ASSERT(
8662 d.vkGetImageSubresourceLayout2 &&
8663 "Function <vkGetImageSubresourceLayout2> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
8664 # endif
8665
8666 StructureChain<X, Y, Z...> structureChain;
8667 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
8668 d.vkGetImageSubresourceLayout2( m_device,
8669 static_cast<VkImage>( image ),
8670 reinterpret_cast<const VkImageSubresource2 *>( &subresource ),
8671 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
8672
8673 return structureChain;
8674 }
8675 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8676
8677 // wrapper function for command vkCopyMemoryToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImage.html
8678 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToImage ), bool>::type>
8679 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToImage( const CopyMemoryToImageInfo * pCopyMemoryToImageInfo,
8680 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8681 {
8682 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8683 return static_cast<Result>(
8684 d.vkCopyMemoryToImage( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkCopyMemoryToImageInfo *>( pCopyMemoryToImageInfo ) ) );
8685 }
8686
8687 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8688 // wrapper function for command vkCopyMemoryToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImage.html
8689 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToImage ), bool>::type>
8690 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
8691 Device::copyMemoryToImage( const CopyMemoryToImageInfo & copyMemoryToImageInfo, Dispatch const & d ) const
8692 {
8693 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8694 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8695 VULKAN_HPP_ASSERT( d.vkCopyMemoryToImage && "Function <vkCopyMemoryToImage> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
8696 # endif
8697
8698 Result result = static_cast<Result>( d.vkCopyMemoryToImage( m_device, reinterpret_cast<const VkCopyMemoryToImageInfo *>( &copyMemoryToImageInfo ) ) );
8699 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyMemoryToImage" );
8700
8701 return detail::createResultValueType( result );
8702 }
8703 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8704
8705 // wrapper function for command vkCopyImageToMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToMemory.html
8706 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToMemory ), bool>::type>
8707 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyImageToMemory( const CopyImageToMemoryInfo * pCopyImageToMemoryInfo,
8708 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8709 {
8710 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8711 return static_cast<Result>(
8712 d.vkCopyImageToMemory( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkCopyImageToMemoryInfo *>( pCopyImageToMemoryInfo ) ) );
8713 }
8714
8715 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8716 // wrapper function for command vkCopyImageToMemory, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToMemory.html
8717 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToMemory ), bool>::type>
8718 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
8719 Device::copyImageToMemory( const CopyImageToMemoryInfo & copyImageToMemoryInfo, Dispatch const & d ) const
8720 {
8721 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8722 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8723 VULKAN_HPP_ASSERT( d.vkCopyImageToMemory && "Function <vkCopyImageToMemory> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
8724 # endif
8725
8726 Result result = static_cast<Result>( d.vkCopyImageToMemory( m_device, reinterpret_cast<const VkCopyImageToMemoryInfo *>( &copyImageToMemoryInfo ) ) );
8727 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyImageToMemory" );
8728
8729 return detail::createResultValueType( result );
8730 }
8731 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8732
8733 // wrapper function for command vkCopyImageToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToImage.html
8734 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToImage ), bool>::type>
8735 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyImageToImage( const CopyImageToImageInfo * pCopyImageToImageInfo,
8736 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8737 {
8738 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8739 return static_cast<Result>(
8740 d.vkCopyImageToImage( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkCopyImageToImageInfo *>( pCopyImageToImageInfo ) ) );
8741 }
8742
8743 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8744 // wrapper function for command vkCopyImageToImage, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToImage.html
8745 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToImage ), bool>::type>
8746 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
8747 Device::copyImageToImage( const CopyImageToImageInfo & copyImageToImageInfo, Dispatch const & d ) const
8748 {
8749 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8750 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8751 VULKAN_HPP_ASSERT( d.vkCopyImageToImage && "Function <vkCopyImageToImage> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
8752 # endif
8753
8754 Result result = static_cast<Result>( d.vkCopyImageToImage( m_device, reinterpret_cast<const VkCopyImageToImageInfo *>( &copyImageToImageInfo ) ) );
8755 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyImageToImage" );
8756
8757 return detail::createResultValueType( result );
8758 }
8759 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8760
8761 // wrapper function for command vkTransitionImageLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTransitionImageLayout.html
8762 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkTransitionImageLayout ), bool>::type>
8763 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::transitionImageLayout( uint32_t transitionCount,
8764 const HostImageLayoutTransitionInfo * pTransitions,
8765 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8766 {
8767 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8768 return static_cast<Result>( d.vkTransitionImageLayout(
8769 static_cast<VkDevice>( m_device ), transitionCount, reinterpret_cast<const VkHostImageLayoutTransitionInfo *>( pTransitions ) ) );
8770 }
8771
8772 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8773 // wrapper function for command vkTransitionImageLayout, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTransitionImageLayout.html
8774 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkTransitionImageLayout ), bool>::type>
8775 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
8776 Device::transitionImageLayout( ArrayProxy<const HostImageLayoutTransitionInfo> const & transitions, Dispatch const & d ) const
8777 {
8778 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8779 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8780 VULKAN_HPP_ASSERT( d.vkTransitionImageLayout && "Function <vkTransitionImageLayout> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
8781 # endif
8782
8783 Result result = static_cast<Result>(
8784 d.vkTransitionImageLayout( m_device, transitions.size(), reinterpret_cast<const VkHostImageLayoutTransitionInfo *>( transitions.data() ) ) );
8785 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::transitionImageLayout" );
8786
8787 return detail::createResultValueType( result );
8788 }
8789 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8790
8791 // wrapper function for command vkCmdPushDescriptorSet, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet.html
8792 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSet ), bool>::type>
8793 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet( PipelineBindPoint pipelineBindPoint,
8794 PipelineLayout layout,
8795 uint32_t set,
8796 uint32_t descriptorWriteCount,
8797 const WriteDescriptorSet * pDescriptorWrites,
8798 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8799 {
8800 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8801 d.vkCmdPushDescriptorSet( static_cast<VkCommandBuffer>( m_commandBuffer ),
8802 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
8803 static_cast<VkPipelineLayout>( layout ),
8804 set,
8805 descriptorWriteCount,
8806 reinterpret_cast<const VkWriteDescriptorSet *>( pDescriptorWrites ) );
8807 }
8808
8809 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8810 // wrapper function for command vkCmdPushDescriptorSet, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet.html
8811 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSet ), bool>::type>
8812 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet( PipelineBindPoint pipelineBindPoint,
8813 PipelineLayout layout,
8814 uint32_t set,
8815 ArrayProxy<const WriteDescriptorSet> const & descriptorWrites,
8816 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8817 {
8818 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8819 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8820 VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSet && "Function <vkCmdPushDescriptorSet> requires <VK_KHR_push_descriptor> or <VK_VERSION_1_4>" );
8821 # endif
8822
8823 d.vkCmdPushDescriptorSet( m_commandBuffer,
8824 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
8825 static_cast<VkPipelineLayout>( layout ),
8826 set,
8827 descriptorWrites.size(),
8828 reinterpret_cast<const VkWriteDescriptorSet *>( descriptorWrites.data() ) );
8829 }
8830 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8831
8832 // wrapper function for command vkCmdPushDescriptorSetWithTemplate, see
8833 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate.html
8834 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplate ), bool>::type>
8835 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate(
8836 DescriptorUpdateTemplate descriptorUpdateTemplate, PipelineLayout layout, uint32_t set, const void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8837 {
8838 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8839 d.vkCmdPushDescriptorSetWithTemplate( static_cast<VkCommandBuffer>( m_commandBuffer ),
8840 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
8841 static_cast<VkPipelineLayout>( layout ),
8842 set,
8843 pData );
8844 }
8845
8846 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8847 // wrapper function for command vkCmdPushDescriptorSetWithTemplate, see
8848 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate.html
8849 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplate ), bool>::type>
8850 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate( DescriptorUpdateTemplate descriptorUpdateTemplate,
8851 PipelineLayout layout,
8852 uint32_t set,
8853 DataType const & data,
8854 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8855 {
8856 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8857 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8858 VULKAN_HPP_ASSERT(
8859 d.vkCmdPushDescriptorSetWithTemplate &&
8860 "Function <vkCmdPushDescriptorSetWithTemplate> requires <VK_KHR_descriptor_update_template> or <VK_KHR_push_descriptor> or <VK_VERSION_1_4>" );
8861 # endif
8862
8863 d.vkCmdPushDescriptorSetWithTemplate( m_commandBuffer,
8864 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
8865 static_cast<VkPipelineLayout>( layout ),
8866 set,
8867 reinterpret_cast<const void *>( &data ) );
8868 }
8869 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8870
8871 // wrapper function for command vkCmdBindDescriptorSets2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets2.html
8872 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorSets2 ), bool>::type>
8873 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets2( const BindDescriptorSetsInfo * pBindDescriptorSetsInfo,
8874 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8875 {
8876 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8877 d.vkCmdBindDescriptorSets2( static_cast<VkCommandBuffer>( m_commandBuffer ),
8878 reinterpret_cast<const VkBindDescriptorSetsInfo *>( pBindDescriptorSetsInfo ) );
8879 }
8880
8881 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8882 // wrapper function for command vkCmdBindDescriptorSets2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets2.html
8883 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorSets2 ), bool>::type>
8884 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets2( const BindDescriptorSetsInfo & bindDescriptorSetsInfo,
8885 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8886 {
8887 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8888 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8889 VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorSets2 && "Function <vkCmdBindDescriptorSets2> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
8890 # endif
8891
8892 d.vkCmdBindDescriptorSets2( m_commandBuffer, reinterpret_cast<const VkBindDescriptorSetsInfo *>( &bindDescriptorSetsInfo ) );
8893 }
8894 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8895
8896 // wrapper function for command vkCmdPushConstants2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants2.html
8897 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushConstants2 ), bool>::type>
8898 VULKAN_HPP_INLINE void CommandBuffer::pushConstants2( const PushConstantsInfo * pPushConstantsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8899 {
8900 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8901 d.vkCmdPushConstants2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkPushConstantsInfo *>( pPushConstantsInfo ) );
8902 }
8903
8904 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8905 // wrapper function for command vkCmdPushConstants2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants2.html
8906 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushConstants2 ), bool>::type>
8907 VULKAN_HPP_INLINE void CommandBuffer::pushConstants2( const PushConstantsInfo & pushConstantsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8908 {
8909 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8910 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8911 VULKAN_HPP_ASSERT( d.vkCmdPushConstants2 && "Function <vkCmdPushConstants2> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
8912 # endif
8913
8914 d.vkCmdPushConstants2( m_commandBuffer, reinterpret_cast<const VkPushConstantsInfo *>( &pushConstantsInfo ) );
8915 }
8916 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8917
8918 // wrapper function for command vkCmdPushDescriptorSet2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet2.html
8919 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSet2 ), bool>::type>
8920 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet2( const PushDescriptorSetInfo * pPushDescriptorSetInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8921 {
8922 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8923 d.vkCmdPushDescriptorSet2( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkPushDescriptorSetInfo *>( pPushDescriptorSetInfo ) );
8924 }
8925
8926 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8927 // wrapper function for command vkCmdPushDescriptorSet2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet2.html
8928 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSet2 ), bool>::type>
8929 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet2( const PushDescriptorSetInfo & pushDescriptorSetInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8930 {
8931 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8932 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8933 VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSet2 && "Function <vkCmdPushDescriptorSet2> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
8934 # endif
8935
8936 d.vkCmdPushDescriptorSet2( m_commandBuffer, reinterpret_cast<const VkPushDescriptorSetInfo *>( &pushDescriptorSetInfo ) );
8937 }
8938 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8939
8940 // wrapper function for command vkCmdPushDescriptorSetWithTemplate2, see
8941 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate2.html
8942 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplate2 ), bool>::type>
8943 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate2( const PushDescriptorSetWithTemplateInfo * pPushDescriptorSetWithTemplateInfo,
8944 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8945 {
8946 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8947 d.vkCmdPushDescriptorSetWithTemplate2( static_cast<VkCommandBuffer>( m_commandBuffer ),
8948 reinterpret_cast<const VkPushDescriptorSetWithTemplateInfo *>( pPushDescriptorSetWithTemplateInfo ) );
8949 }
8950
8951 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
8952 // wrapper function for command vkCmdPushDescriptorSetWithTemplate2, see
8953 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate2.html
8954 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplate2 ), bool>::type>
8955 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate2( const PushDescriptorSetWithTemplateInfo & pushDescriptorSetWithTemplateInfo,
8956 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8957 {
8958 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8959 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
8960 VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSetWithTemplate2 &&
8961 "Function <vkCmdPushDescriptorSetWithTemplate2> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
8962 # endif
8963
8964 d.vkCmdPushDescriptorSetWithTemplate2( m_commandBuffer,
8965 reinterpret_cast<const VkPushDescriptorSetWithTemplateInfo *>( &pushDescriptorSetWithTemplateInfo ) );
8966 }
8967 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
8968
8969 // wrapper function for command vkCmdSetLineStipple, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStipple.html
8970 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLineStipple ), bool>::type>
8971 VULKAN_HPP_INLINE void CommandBuffer::setLineStipple( uint32_t lineStippleFactor, uint16_t lineStipplePattern, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8972 {
8973 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8974 d.vkCmdSetLineStipple( static_cast<VkCommandBuffer>( m_commandBuffer ), lineStippleFactor, lineStipplePattern );
8975 }
8976
8977 // wrapper function for command vkCmdBindIndexBuffer2, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer2.html
8978 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindIndexBuffer2 ), bool>::type>
8979 VULKAN_HPP_INLINE void
8980 CommandBuffer::bindIndexBuffer2( Buffer buffer, DeviceSize offset, DeviceSize size, IndexType indexType, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8981 {
8982 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8983 d.vkCmdBindIndexBuffer2( static_cast<VkCommandBuffer>( m_commandBuffer ),
8984 static_cast<VkBuffer>( buffer ),
8985 static_cast<VkDeviceSize>( offset ),
8986 static_cast<VkDeviceSize>( size ),
8987 static_cast<VkIndexType>( indexType ) );
8988 }
8989
8990 // wrapper function for command vkGetRenderingAreaGranularity, see
8991 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderingAreaGranularity.html
8992 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRenderingAreaGranularity ), bool>::type>
8993 VULKAN_HPP_INLINE void
8994 Device::getRenderingAreaGranularity( const RenderingAreaInfo * pRenderingAreaInfo, Extent2D * pGranularity, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
8995 {
8996 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
8997 d.vkGetRenderingAreaGranularity(
8998 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkRenderingAreaInfo *>( pRenderingAreaInfo ), reinterpret_cast<VkExtent2D *>( pGranularity ) );
8999 }
9000
9001 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9002 // wrapper function for command vkGetRenderingAreaGranularity, see
9003 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderingAreaGranularity.html
9004 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRenderingAreaGranularity ), bool>::type>
9005 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Extent2D Device::getRenderingAreaGranularity( const RenderingAreaInfo & renderingAreaInfo,
9006 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9007 {
9008 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9009 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9010 VULKAN_HPP_ASSERT( d.vkGetRenderingAreaGranularity && "Function <vkGetRenderingAreaGranularity> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
9011 # endif
9012
9013 Extent2D granularity;
9014 d.vkGetRenderingAreaGranularity(
9015 m_device, reinterpret_cast<const VkRenderingAreaInfo *>( &renderingAreaInfo ), reinterpret_cast<VkExtent2D *>( &granularity ) );
9016
9017 return granularity;
9018 }
9019 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9020
9021 // wrapper function for command vkCmdSetRenderingAttachmentLocations, see
9022 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingAttachmentLocations.html
9023 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingAttachmentLocations ), bool>::type>
9024 VULKAN_HPP_INLINE void CommandBuffer::setRenderingAttachmentLocations( const RenderingAttachmentLocationInfo * pLocationInfo,
9025 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9026 {
9027 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9028 d.vkCmdSetRenderingAttachmentLocations( static_cast<VkCommandBuffer>( m_commandBuffer ),
9029 reinterpret_cast<const VkRenderingAttachmentLocationInfo *>( pLocationInfo ) );
9030 }
9031
9032 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9033 // wrapper function for command vkCmdSetRenderingAttachmentLocations, see
9034 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingAttachmentLocations.html
9035 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingAttachmentLocations ), bool>::type>
9036 VULKAN_HPP_INLINE void CommandBuffer::setRenderingAttachmentLocations( const RenderingAttachmentLocationInfo & locationInfo,
9037 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9038 {
9039 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9040 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9041 VULKAN_HPP_ASSERT( d.vkCmdSetRenderingAttachmentLocations &&
9042 "Function <vkCmdSetRenderingAttachmentLocations> requires <VK_KHR_dynamic_rendering_local_read> or <VK_VERSION_1_4>" );
9043 # endif
9044
9045 d.vkCmdSetRenderingAttachmentLocations( m_commandBuffer, reinterpret_cast<const VkRenderingAttachmentLocationInfo *>( &locationInfo ) );
9046 }
9047 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9048
9049 // wrapper function for command vkCmdSetRenderingInputAttachmentIndices, see
9050 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingInputAttachmentIndices.html
9051 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingInputAttachmentIndices ), bool>::type>
9052 VULKAN_HPP_INLINE void CommandBuffer::setRenderingInputAttachmentIndices( const RenderingInputAttachmentIndexInfo * pInputAttachmentIndexInfo,
9053 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9054 {
9055 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9056 d.vkCmdSetRenderingInputAttachmentIndices( static_cast<VkCommandBuffer>( m_commandBuffer ),
9057 reinterpret_cast<const VkRenderingInputAttachmentIndexInfo *>( pInputAttachmentIndexInfo ) );
9058 }
9059
9060 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9061 // wrapper function for command vkCmdSetRenderingInputAttachmentIndices, see
9062 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingInputAttachmentIndices.html
9063 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingInputAttachmentIndices ), bool>::type>
9064 VULKAN_HPP_INLINE void CommandBuffer::setRenderingInputAttachmentIndices( const RenderingInputAttachmentIndexInfo & inputAttachmentIndexInfo,
9065 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9066 {
9067 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9068 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9069 VULKAN_HPP_ASSERT( d.vkCmdSetRenderingInputAttachmentIndices &&
9070 "Function <vkCmdSetRenderingInputAttachmentIndices> requires <VK_KHR_dynamic_rendering_local_read> or <VK_VERSION_1_4>" );
9071 # endif
9072
9073 d.vkCmdSetRenderingInputAttachmentIndices( m_commandBuffer, reinterpret_cast<const VkRenderingInputAttachmentIndexInfo *>( &inputAttachmentIndexInfo ) );
9074 }
9075 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9076
9077 //=== VK_KHR_surface ===
9078
9079 // wrapper function for command vkDestroySurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySurfaceKHR.html
9080 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySurfaceKHR ), bool>::type>
9081 VULKAN_HPP_INLINE void Instance::destroySurfaceKHR( SurfaceKHR surface, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9082 {
9083 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9084 d.vkDestroySurfaceKHR(
9085 static_cast<VkInstance>( m_instance ), static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
9086 }
9087
9088 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9089 // wrapper function for command vkDestroySurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySurfaceKHR.html
9090 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySurfaceKHR ), bool>::type>
9091 VULKAN_HPP_INLINE void
9092 Instance::destroySurfaceKHR( SurfaceKHR surface, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9093 {
9094 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9095 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9096 VULKAN_HPP_ASSERT( d.vkDestroySurfaceKHR && "Function <vkDestroySurfaceKHR> requires <VK_KHR_surface>" );
9097 # endif
9098
9099 d.vkDestroySurfaceKHR( m_instance, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
9100 }
9101 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9102
9103 // wrapper function for command vkDestroySurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySurfaceKHR.html
9104 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySurfaceKHR ), bool>::type>
9105 VULKAN_HPP_INLINE void Instance::destroy( SurfaceKHR surface, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9106 {
9107 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9108 d.vkDestroySurfaceKHR(
9109 static_cast<VkInstance>( m_instance ), static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
9110 }
9111
9112 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9113 // wrapper function for command vkDestroySurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySurfaceKHR.html
9114 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySurfaceKHR ), bool>::type>
9115 VULKAN_HPP_INLINE void Instance::destroy( SurfaceKHR surface, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9116 {
9117 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9118 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9119 VULKAN_HPP_ASSERT( d.vkDestroySurfaceKHR && "Function <vkDestroySurfaceKHR> requires <VK_KHR_surface>" );
9120 # endif
9121
9122 d.vkDestroySurfaceKHR( m_instance, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
9123 }
9124 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9125
9126 // wrapper function for command vkGetPhysicalDeviceSurfaceSupportKHR, see
9127 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceSupportKHR.html
9128 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceSupportKHR ), bool>::type>
9129 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
9130 PhysicalDevice::getSurfaceSupportKHR( uint32_t queueFamilyIndex, SurfaceKHR surface, Bool32 * pSupported, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9131 {
9132 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9133 return static_cast<Result>( d.vkGetPhysicalDeviceSurfaceSupportKHR(
9134 static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkBool32 *>( pSupported ) ) );
9135 }
9136
9137 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9138 // wrapper function for command vkGetPhysicalDeviceSurfaceSupportKHR, see
9139 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceSupportKHR.html
9140 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceSupportKHR ), bool>::type>
9141 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Bool32>::type
9142 PhysicalDevice::getSurfaceSupportKHR( uint32_t queueFamilyIndex, SurfaceKHR surface, Dispatch const & d ) const
9143 {
9144 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9145 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9146 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceSupportKHR && "Function <vkGetPhysicalDeviceSurfaceSupportKHR> requires <VK_KHR_surface>" );
9147 # endif
9148
9149 Bool32 supported;
9150 Result result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceSupportKHR(
9151 m_physicalDevice, queueFamilyIndex, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkBool32 *>( &supported ) ) );
9152 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceSupportKHR" );
9153
9154 return detail::createResultValueType( result, std::move( supported ) );
9155 }
9156 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9157
9158 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilitiesKHR, see
9159 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilitiesKHR.html
9160 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilitiesKHR ), bool>::type>
9161 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceCapabilitiesKHR( SurfaceKHR surface,
9162 SurfaceCapabilitiesKHR * pSurfaceCapabilities,
9163 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9164 {
9165 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9166 return static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
9167 static_cast<VkSurfaceKHR>( surface ),
9168 reinterpret_cast<VkSurfaceCapabilitiesKHR *>( pSurfaceCapabilities ) ) );
9169 }
9170
9171 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9172 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilitiesKHR, see
9173 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilitiesKHR.html
9174 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilitiesKHR ), bool>::type>
9175 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceCapabilitiesKHR>::type
9176 PhysicalDevice::getSurfaceCapabilitiesKHR( SurfaceKHR surface, Dispatch const & d ) const
9177 {
9178 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9179 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9180 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceCapabilitiesKHR && "Function <vkGetPhysicalDeviceSurfaceCapabilitiesKHR> requires <VK_KHR_surface>" );
9181 # endif
9182
9183 SurfaceCapabilitiesKHR surfaceCapabilities;
9184 Result result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
9185 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkSurfaceCapabilitiesKHR *>( &surfaceCapabilities ) ) );
9186 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilitiesKHR" );
9187
9188 return detail::createResultValueType( result, std::move( surfaceCapabilities ) );
9189 }
9190 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9191
9192 // wrapper function for command vkGetPhysicalDeviceSurfaceFormatsKHR, see
9193 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormatsKHR.html
9194 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormatsKHR ), bool>::type>
9195 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceFormatsKHR( SurfaceKHR surface,
9196 uint32_t * pSurfaceFormatCount,
9197 SurfaceFormatKHR * pSurfaceFormats,
9198 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9199 {
9200 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9201 return static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormatsKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
9202 static_cast<VkSurfaceKHR>( surface ),
9203 pSurfaceFormatCount,
9204 reinterpret_cast<VkSurfaceFormatKHR *>( pSurfaceFormats ) ) );
9205 }
9206
9207 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9208 // wrapper function for command vkGetPhysicalDeviceSurfaceFormatsKHR, see
9209 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormatsKHR.html
9210 template <typename SurfaceFormatKHRAllocator,
9211 typename Dispatch,
9212 typename std::enable_if<std::is_same<typename SurfaceFormatKHRAllocator::value_type, SurfaceFormatKHR>::value, int>::type,
9213 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormatsKHR ), bool>::type>
9214 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SurfaceFormatKHR, SurfaceFormatKHRAllocator>>::type
9215 PhysicalDevice::getSurfaceFormatsKHR( SurfaceKHR surface, Dispatch const & d ) const
9216 {
9217 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9218 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9219 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceFormatsKHR && "Function <vkGetPhysicalDeviceSurfaceFormatsKHR> requires <VK_KHR_surface>" );
9220 # endif
9221
9222 std::vector<SurfaceFormatKHR, SurfaceFormatKHRAllocator> surfaceFormats;
9223 uint32_t surfaceFormatCount;
9224 Result result;
9225 do
9226 {
9227 result =
9228 static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormatsKHR( m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &surfaceFormatCount, nullptr ) );
9229 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
9230 {
9231 surfaceFormats.resize( surfaceFormatCount );
9232 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormatsKHR(
9233 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &surfaceFormatCount, reinterpret_cast<VkSurfaceFormatKHR *>( surfaceFormats.data() ) ) );
9234 }
9235 } while ( result == Result::eIncomplete );
9236 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormatsKHR" );
9237 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
9238 if ( surfaceFormatCount < surfaceFormats.size() )
9239 {
9240 surfaceFormats.resize( surfaceFormatCount );
9241 }
9242 return detail::createResultValueType( result, std::move( surfaceFormats ) );
9243 }
9244
9245 // wrapper function for command vkGetPhysicalDeviceSurfaceFormatsKHR, see
9246 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormatsKHR.html
9247 template <typename SurfaceFormatKHRAllocator,
9248 typename Dispatch,
9249 typename std::enable_if<std::is_same<typename SurfaceFormatKHRAllocator::value_type, SurfaceFormatKHR>::value, int>::type,
9250 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormatsKHR ), bool>::type>
9251 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SurfaceFormatKHR, SurfaceFormatKHRAllocator>>::type
9252 PhysicalDevice::getSurfaceFormatsKHR( SurfaceKHR surface, SurfaceFormatKHRAllocator const & surfaceFormatKHRAllocator, Dispatch const & d ) const
9253 {
9254 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9255 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9256 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceFormatsKHR && "Function <vkGetPhysicalDeviceSurfaceFormatsKHR> requires <VK_KHR_surface>" );
9257 # endif
9258
9259 std::vector<SurfaceFormatKHR, SurfaceFormatKHRAllocator> surfaceFormats( surfaceFormatKHRAllocator );
9260 uint32_t surfaceFormatCount;
9261 Result result;
9262 do
9263 {
9264 result =
9265 static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormatsKHR( m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &surfaceFormatCount, nullptr ) );
9266 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
9267 {
9268 surfaceFormats.resize( surfaceFormatCount );
9269 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormatsKHR(
9270 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &surfaceFormatCount, reinterpret_cast<VkSurfaceFormatKHR *>( surfaceFormats.data() ) ) );
9271 }
9272 } while ( result == Result::eIncomplete );
9273 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormatsKHR" );
9274 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
9275 if ( surfaceFormatCount < surfaceFormats.size() )
9276 {
9277 surfaceFormats.resize( surfaceFormatCount );
9278 }
9279 return detail::createResultValueType( result, std::move( surfaceFormats ) );
9280 }
9281 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9282
9283 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModesKHR, see
9284 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModesKHR.html
9285 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfacePresentModesKHR ), bool>::type>
9286 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfacePresentModesKHR( SurfaceKHR surface,
9287 uint32_t * pPresentModeCount,
9288 PresentModeKHR * pPresentModes,
9289 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9290 {
9291 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9292 return static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
9293 static_cast<VkSurfaceKHR>( surface ),
9294 pPresentModeCount,
9295 reinterpret_cast<VkPresentModeKHR *>( pPresentModes ) ) );
9296 }
9297
9298 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9299 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModesKHR, see
9300 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModesKHR.html
9301 template <typename PresentModeKHRAllocator,
9302 typename Dispatch,
9303 typename std::enable_if<std::is_same<typename PresentModeKHRAllocator::value_type, PresentModeKHR>::value, int>::type,
9304 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfacePresentModesKHR ), bool>::type>
9305 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PresentModeKHR, PresentModeKHRAllocator>>::type
9306 PhysicalDevice::getSurfacePresentModesKHR( SurfaceKHR surface, Dispatch const & d ) const
9307 {
9308 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9309 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9310 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfacePresentModesKHR && "Function <vkGetPhysicalDeviceSurfacePresentModesKHR> requires <VK_KHR_surface>" );
9311 # endif
9312
9313 std::vector<PresentModeKHR, PresentModeKHRAllocator> presentModes;
9314 uint32_t presentModeCount;
9315 Result result;
9316 do
9317 {
9318 result = static_cast<Result>(
9319 d.vkGetPhysicalDeviceSurfacePresentModesKHR( m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &presentModeCount, nullptr ) );
9320 if ( ( result == Result::eSuccess ) && presentModeCount )
9321 {
9322 presentModes.resize( presentModeCount );
9323 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModesKHR(
9324 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &presentModeCount, reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
9325 }
9326 } while ( result == Result::eIncomplete );
9327 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModesKHR" );
9328 VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
9329 if ( presentModeCount < presentModes.size() )
9330 {
9331 presentModes.resize( presentModeCount );
9332 }
9333 return detail::createResultValueType( result, std::move( presentModes ) );
9334 }
9335
9336 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModesKHR, see
9337 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModesKHR.html
9338 template <typename PresentModeKHRAllocator,
9339 typename Dispatch,
9340 typename std::enable_if<std::is_same<typename PresentModeKHRAllocator::value_type, PresentModeKHR>::value, int>::type,
9341 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfacePresentModesKHR ), bool>::type>
9342 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PresentModeKHR, PresentModeKHRAllocator>>::type
9343 PhysicalDevice::getSurfacePresentModesKHR( SurfaceKHR surface, PresentModeKHRAllocator const & presentModeKHRAllocator, Dispatch const & d ) const
9344 {
9345 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9346 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9347 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfacePresentModesKHR && "Function <vkGetPhysicalDeviceSurfacePresentModesKHR> requires <VK_KHR_surface>" );
9348 # endif
9349
9350 std::vector<PresentModeKHR, PresentModeKHRAllocator> presentModes( presentModeKHRAllocator );
9351 uint32_t presentModeCount;
9352 Result result;
9353 do
9354 {
9355 result = static_cast<Result>(
9356 d.vkGetPhysicalDeviceSurfacePresentModesKHR( m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &presentModeCount, nullptr ) );
9357 if ( ( result == Result::eSuccess ) && presentModeCount )
9358 {
9359 presentModes.resize( presentModeCount );
9360 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModesKHR(
9361 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &presentModeCount, reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
9362 }
9363 } while ( result == Result::eIncomplete );
9364 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModesKHR" );
9365 VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
9366 if ( presentModeCount < presentModes.size() )
9367 {
9368 presentModes.resize( presentModeCount );
9369 }
9370 return detail::createResultValueType( result, std::move( presentModes ) );
9371 }
9372 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9373
9374 //=== VK_KHR_swapchain ===
9375
9376 // wrapper function for command vkCreateSwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSwapchainKHR.html
9377 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSwapchainKHR ), bool>::type>
9378 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createSwapchainKHR( const SwapchainCreateInfoKHR * pCreateInfo,
9379 const AllocationCallbacks * pAllocator,
9380 SwapchainKHR * pSwapchain,
9381 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9382 {
9383 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9384 return static_cast<Result>( d.vkCreateSwapchainKHR( static_cast<VkDevice>( m_device ),
9385 reinterpret_cast<const VkSwapchainCreateInfoKHR *>( pCreateInfo ),
9386 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
9387 reinterpret_cast<VkSwapchainKHR *>( pSwapchain ) ) );
9388 }
9389
9390 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9391 // wrapper function for command vkCreateSwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSwapchainKHR.html
9392 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSwapchainKHR ), bool>::type>
9393 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SwapchainKHR>::type
9394 Device::createSwapchainKHR( const SwapchainCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
9395 {
9396 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9397 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9398 VULKAN_HPP_ASSERT( d.vkCreateSwapchainKHR && "Function <vkCreateSwapchainKHR> requires <VK_KHR_swapchain>" );
9399 # endif
9400
9401 SwapchainKHR swapchain;
9402 Result result = static_cast<Result>( d.vkCreateSwapchainKHR( m_device,
9403 reinterpret_cast<const VkSwapchainCreateInfoKHR *>( &createInfo ),
9404 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
9405 reinterpret_cast<VkSwapchainKHR *>( &swapchain ) ) );
9406 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSwapchainKHR" );
9407
9408 return detail::createResultValueType( result, std::move( swapchain ) );
9409 }
9410
9411 # ifndef VULKAN_HPP_NO_SMART_HANDLE
9412 // wrapper function for command vkCreateSwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSwapchainKHR.html
9413 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSwapchainKHR ), bool>::type>
9414 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SwapchainKHR, Dispatch>>::type
9415 Device::createSwapchainKHRUnique( const SwapchainCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
9416 {
9417 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9418 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9419 VULKAN_HPP_ASSERT( d.vkCreateSwapchainKHR && "Function <vkCreateSwapchainKHR> requires <VK_KHR_swapchain>" );
9420 # endif
9421
9422 SwapchainKHR swapchain;
9423 Result result = static_cast<Result>( d.vkCreateSwapchainKHR( m_device,
9424 reinterpret_cast<const VkSwapchainCreateInfoKHR *>( &createInfo ),
9425 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
9426 reinterpret_cast<VkSwapchainKHR *>( &swapchain ) ) );
9427 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSwapchainKHRUnique" );
9428
9429 return detail::createResultValueType( result,
9430 UniqueHandle<SwapchainKHR, Dispatch>( swapchain, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
9431 }
9432 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
9433 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9434
9435 // wrapper function for command vkDestroySwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySwapchainKHR.html
9436 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySwapchainKHR ), bool>::type>
9437 VULKAN_HPP_INLINE void
9438 Device::destroySwapchainKHR( SwapchainKHR swapchain, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9439 {
9440 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9441 d.vkDestroySwapchainKHR(
9442 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
9443 }
9444
9445 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9446 // wrapper function for command vkDestroySwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySwapchainKHR.html
9447 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySwapchainKHR ), bool>::type>
9448 VULKAN_HPP_INLINE void
9449 Device::destroySwapchainKHR( SwapchainKHR swapchain, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9450 {
9451 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9452 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9453 VULKAN_HPP_ASSERT( d.vkDestroySwapchainKHR && "Function <vkDestroySwapchainKHR> requires <VK_KHR_swapchain>" );
9454 # endif
9455
9456 d.vkDestroySwapchainKHR( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
9457 }
9458 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9459
9460 // wrapper function for command vkDestroySwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySwapchainKHR.html
9461 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySwapchainKHR ), bool>::type>
9462 VULKAN_HPP_INLINE void Device::destroy( SwapchainKHR swapchain, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9463 {
9464 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9465 d.vkDestroySwapchainKHR(
9466 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
9467 }
9468
9469 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9470 // wrapper function for command vkDestroySwapchainKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySwapchainKHR.html
9471 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySwapchainKHR ), bool>::type>
9472 VULKAN_HPP_INLINE void Device::destroy( SwapchainKHR swapchain, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9473 {
9474 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9475 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9476 VULKAN_HPP_ASSERT( d.vkDestroySwapchainKHR && "Function <vkDestroySwapchainKHR> requires <VK_KHR_swapchain>" );
9477 # endif
9478
9479 d.vkDestroySwapchainKHR( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
9480 }
9481 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9482
9483 // wrapper function for command vkGetSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainImagesKHR.html
9484 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainImagesKHR ), bool>::type>
9485 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSwapchainImagesKHR( SwapchainKHR swapchain,
9486 uint32_t * pSwapchainImageCount,
9487 Image * pSwapchainImages,
9488 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9489 {
9490 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9491 return static_cast<Result>( d.vkGetSwapchainImagesKHR(
9492 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), pSwapchainImageCount, reinterpret_cast<VkImage *>( pSwapchainImages ) ) );
9493 }
9494
9495 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9496 // wrapper function for command vkGetSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainImagesKHR.html
9497 template <typename ImageAllocator,
9498 typename Dispatch,
9499 typename std::enable_if<std::is_same<typename ImageAllocator::value_type, Image>::value, int>::type,
9500 typename std::enable_if<IS_DISPATCHED( vkGetSwapchainImagesKHR ), bool>::type>
9501 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Image, ImageAllocator>>::type
9502 Device::getSwapchainImagesKHR( SwapchainKHR swapchain, Dispatch const & d ) const
9503 {
9504 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9505 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9506 VULKAN_HPP_ASSERT( d.vkGetSwapchainImagesKHR && "Function <vkGetSwapchainImagesKHR> requires <VK_KHR_swapchain>" );
9507 # endif
9508
9509 std::vector<Image, ImageAllocator> swapchainImages;
9510 uint32_t swapchainImageCount;
9511 Result result;
9512 do
9513 {
9514 result = static_cast<Result>( d.vkGetSwapchainImagesKHR( m_device, static_cast<VkSwapchainKHR>( swapchain ), &swapchainImageCount, nullptr ) );
9515 if ( ( result == Result::eSuccess ) && swapchainImageCount )
9516 {
9517 swapchainImages.resize( swapchainImageCount );
9518 result = static_cast<Result>( d.vkGetSwapchainImagesKHR(
9519 m_device, static_cast<VkSwapchainKHR>( swapchain ), &swapchainImageCount, reinterpret_cast<VkImage *>( swapchainImages.data() ) ) );
9520 }
9521 } while ( result == Result::eIncomplete );
9522 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainImagesKHR" );
9523 VULKAN_HPP_ASSERT( swapchainImageCount <= swapchainImages.size() );
9524 if ( swapchainImageCount < swapchainImages.size() )
9525 {
9526 swapchainImages.resize( swapchainImageCount );
9527 }
9528 return detail::createResultValueType( result, std::move( swapchainImages ) );
9529 }
9530
9531 // wrapper function for command vkGetSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainImagesKHR.html
9532 template <typename ImageAllocator,
9533 typename Dispatch,
9534 typename std::enable_if<std::is_same<typename ImageAllocator::value_type, Image>::value, int>::type,
9535 typename std::enable_if<IS_DISPATCHED( vkGetSwapchainImagesKHR ), bool>::type>
9536 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Image, ImageAllocator>>::type
9537 Device::getSwapchainImagesKHR( SwapchainKHR swapchain, ImageAllocator const & imageAllocator, Dispatch const & d ) const
9538 {
9539 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9540 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9541 VULKAN_HPP_ASSERT( d.vkGetSwapchainImagesKHR && "Function <vkGetSwapchainImagesKHR> requires <VK_KHR_swapchain>" );
9542 # endif
9543
9544 std::vector<Image, ImageAllocator> swapchainImages( imageAllocator );
9545 uint32_t swapchainImageCount;
9546 Result result;
9547 do
9548 {
9549 result = static_cast<Result>( d.vkGetSwapchainImagesKHR( m_device, static_cast<VkSwapchainKHR>( swapchain ), &swapchainImageCount, nullptr ) );
9550 if ( ( result == Result::eSuccess ) && swapchainImageCount )
9551 {
9552 swapchainImages.resize( swapchainImageCount );
9553 result = static_cast<Result>( d.vkGetSwapchainImagesKHR(
9554 m_device, static_cast<VkSwapchainKHR>( swapchain ), &swapchainImageCount, reinterpret_cast<VkImage *>( swapchainImages.data() ) ) );
9555 }
9556 } while ( result == Result::eIncomplete );
9557 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainImagesKHR" );
9558 VULKAN_HPP_ASSERT( swapchainImageCount <= swapchainImages.size() );
9559 if ( swapchainImageCount < swapchainImages.size() )
9560 {
9561 swapchainImages.resize( swapchainImageCount );
9562 }
9563 return detail::createResultValueType( result, std::move( swapchainImages ) );
9564 }
9565 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9566
9567 // wrapper function for command vkAcquireNextImageKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireNextImageKHR.html
9568 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireNextImageKHR ), bool>::type>
9569 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::acquireNextImageKHR(
9570 SwapchainKHR swapchain, uint64_t timeout, Semaphore semaphore, Fence fence, uint32_t * pImageIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9571 {
9572 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9573 return static_cast<Result>( d.vkAcquireNextImageKHR( static_cast<VkDevice>( m_device ),
9574 static_cast<VkSwapchainKHR>( swapchain ),
9575 timeout,
9576 static_cast<VkSemaphore>( semaphore ),
9577 static_cast<VkFence>( fence ),
9578 pImageIndex ) );
9579 }
9580
9581 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9582 // wrapper function for command vkAcquireNextImageKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireNextImageKHR.html
9583 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireNextImageKHR ), bool>::type>
9584 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<uint32_t>
9585 Device::acquireNextImageKHR( SwapchainKHR swapchain, uint64_t timeout, Semaphore semaphore, Fence fence, Dispatch const & d ) const
9586 {
9587 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9588 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9589 VULKAN_HPP_ASSERT( d.vkAcquireNextImageKHR && "Function <vkAcquireNextImageKHR> requires <VK_KHR_swapchain>" );
9590 # endif
9591
9592 uint32_t imageIndex;
9593 Result result = static_cast<Result>( d.vkAcquireNextImageKHR(
9594 m_device, static_cast<VkSwapchainKHR>( swapchain ), timeout, static_cast<VkSemaphore>( semaphore ), static_cast<VkFence>( fence ), &imageIndex ) );
9595
9596 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
9597 detail::resultCheck( result,
9598 VULKAN_HPP_NAMESPACE_STRING "::Device::acquireNextImageKHR",
9599 { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
9600 # else
9601 detail::resultCheck(
9602 result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquireNextImageKHR", { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR } );
9603 # endif
9604
9605 return ResultValue<uint32_t>( result, std::move( imageIndex ) );
9606 }
9607 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9608
9609 // wrapper function for command vkQueuePresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueuePresentKHR.html
9610 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueuePresentKHR ), bool>::type>
9611 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::presentKHR( const PresentInfoKHR * pPresentInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9612 {
9613 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9614 return static_cast<Result>( d.vkQueuePresentKHR( static_cast<VkQueue>( m_queue ), reinterpret_cast<const VkPresentInfoKHR *>( pPresentInfo ) ) );
9615 }
9616
9617 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9618 // wrapper function for command vkQueuePresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueuePresentKHR.html
9619 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueuePresentKHR ), bool>::type>
9620 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::presentKHR( const PresentInfoKHR & presentInfo, Dispatch const & d ) const
9621 {
9622 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9623 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9624 VULKAN_HPP_ASSERT( d.vkQueuePresentKHR && "Function <vkQueuePresentKHR> requires <VK_KHR_swapchain>" );
9625 # endif
9626
9627 Result result = static_cast<Result>( d.vkQueuePresentKHR( m_queue, reinterpret_cast<const VkPresentInfoKHR *>( &presentInfo ) ) );
9628
9629 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
9630 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::presentKHR", { Result::eSuccess, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
9631 # else
9632 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::presentKHR", { Result::eSuccess, Result::eSuboptimalKHR } );
9633 # endif
9634
9635 return static_cast<Result>( result );
9636 }
9637 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9638
9639 // wrapper function for command vkGetDeviceGroupPresentCapabilitiesKHR, see
9640 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPresentCapabilitiesKHR.html
9641 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupPresentCapabilitiesKHR ), bool>::type>
9642 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getGroupPresentCapabilitiesKHR( DeviceGroupPresentCapabilitiesKHR * pDeviceGroupPresentCapabilities,
9643 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9644 {
9645 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9646 return static_cast<Result>( d.vkGetDeviceGroupPresentCapabilitiesKHR(
9647 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceGroupPresentCapabilitiesKHR *>( pDeviceGroupPresentCapabilities ) ) );
9648 }
9649
9650 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9651 // wrapper function for command vkGetDeviceGroupPresentCapabilitiesKHR, see
9652 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPresentCapabilitiesKHR.html
9653 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupPresentCapabilitiesKHR ), bool>::type>
9654 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeviceGroupPresentCapabilitiesKHR>::type
9655 Device::getGroupPresentCapabilitiesKHR( Dispatch const & d ) const
9656 {
9657 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9658 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9659 VULKAN_HPP_ASSERT( d.vkGetDeviceGroupPresentCapabilitiesKHR &&
9660 "Function <vkGetDeviceGroupPresentCapabilitiesKHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
9661 # endif
9662
9663 DeviceGroupPresentCapabilitiesKHR deviceGroupPresentCapabilities;
9664 Result result = static_cast<Result>(
9665 d.vkGetDeviceGroupPresentCapabilitiesKHR( m_device, reinterpret_cast<VkDeviceGroupPresentCapabilitiesKHR *>( &deviceGroupPresentCapabilities ) ) );
9666 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupPresentCapabilitiesKHR" );
9667
9668 return detail::createResultValueType( result, std::move( deviceGroupPresentCapabilities ) );
9669 }
9670 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9671
9672 // wrapper function for command vkGetDeviceGroupSurfacePresentModesKHR, see
9673 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupSurfacePresentModesKHR.html
9674 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupSurfacePresentModesKHR ), bool>::type>
9675 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getGroupSurfacePresentModesKHR( SurfaceKHR surface,
9676 DeviceGroupPresentModeFlagsKHR * pModes,
9677 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9678 {
9679 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9680 return static_cast<Result>( d.vkGetDeviceGroupSurfacePresentModesKHR(
9681 static_cast<VkDevice>( m_device ), static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( pModes ) ) );
9682 }
9683
9684 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9685 // wrapper function for command vkGetDeviceGroupSurfacePresentModesKHR, see
9686 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupSurfacePresentModesKHR.html
9687 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupSurfacePresentModesKHR ), bool>::type>
9688 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeviceGroupPresentModeFlagsKHR>::type
9689 Device::getGroupSurfacePresentModesKHR( SurfaceKHR surface, Dispatch const & d ) const
9690 {
9691 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9692 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9693 VULKAN_HPP_ASSERT( d.vkGetDeviceGroupSurfacePresentModesKHR &&
9694 "Function <vkGetDeviceGroupSurfacePresentModesKHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
9695 # endif
9696
9697 DeviceGroupPresentModeFlagsKHR modes;
9698 Result result = static_cast<Result>( d.vkGetDeviceGroupSurfacePresentModesKHR(
9699 m_device, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( &modes ) ) );
9700 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupSurfacePresentModesKHR" );
9701
9702 return detail::createResultValueType( result, std::move( modes ) );
9703 }
9704 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9705
9706 // wrapper function for command vkGetPhysicalDevicePresentRectanglesKHR, see
9707 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDevicePresentRectanglesKHR.html
9708 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDevicePresentRectanglesKHR ), bool>::type>
9709 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
9710 PhysicalDevice::getPresentRectanglesKHR( SurfaceKHR surface, uint32_t * pRectCount, Rect2D * pRects, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9711 {
9712 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9713 return static_cast<Result>( d.vkGetPhysicalDevicePresentRectanglesKHR(
9714 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkSurfaceKHR>( surface ), pRectCount, reinterpret_cast<VkRect2D *>( pRects ) ) );
9715 }
9716
9717 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9718 // wrapper function for command vkGetPhysicalDevicePresentRectanglesKHR, see
9719 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDevicePresentRectanglesKHR.html
9720 template <typename Rect2DAllocator,
9721 typename Dispatch,
9722 typename std::enable_if<std::is_same<typename Rect2DAllocator::value_type, Rect2D>::value, int>::type,
9723 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDevicePresentRectanglesKHR ), bool>::type>
9724 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Rect2D, Rect2DAllocator>>::type
9725 PhysicalDevice::getPresentRectanglesKHR( SurfaceKHR surface, Dispatch const & d ) const
9726 {
9727 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9728 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9729 VULKAN_HPP_ASSERT( d.vkGetPhysicalDevicePresentRectanglesKHR &&
9730 "Function <vkGetPhysicalDevicePresentRectanglesKHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
9731 # endif
9732
9733 std::vector<Rect2D, Rect2DAllocator> rects;
9734 uint32_t rectCount;
9735 Result result;
9736 do
9737 {
9738 result = static_cast<Result>( d.vkGetPhysicalDevicePresentRectanglesKHR( m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &rectCount, nullptr ) );
9739 if ( ( result == Result::eSuccess ) && rectCount )
9740 {
9741 rects.resize( rectCount );
9742 result = static_cast<Result>( d.vkGetPhysicalDevicePresentRectanglesKHR(
9743 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &rectCount, reinterpret_cast<VkRect2D *>( rects.data() ) ) );
9744 }
9745 } while ( result == Result::eIncomplete );
9746 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getPresentRectanglesKHR" );
9747 VULKAN_HPP_ASSERT( rectCount <= rects.size() );
9748 if ( rectCount < rects.size() )
9749 {
9750 rects.resize( rectCount );
9751 }
9752 return detail::createResultValueType( result, std::move( rects ) );
9753 }
9754
9755 // wrapper function for command vkGetPhysicalDevicePresentRectanglesKHR, see
9756 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDevicePresentRectanglesKHR.html
9757 template <typename Rect2DAllocator,
9758 typename Dispatch,
9759 typename std::enable_if<std::is_same<typename Rect2DAllocator::value_type, Rect2D>::value, int>::type,
9760 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDevicePresentRectanglesKHR ), bool>::type>
9761 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<Rect2D, Rect2DAllocator>>::type
9762 PhysicalDevice::getPresentRectanglesKHR( SurfaceKHR surface, Rect2DAllocator const & rect2DAllocator, Dispatch const & d ) const
9763 {
9764 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9765 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9766 VULKAN_HPP_ASSERT( d.vkGetPhysicalDevicePresentRectanglesKHR &&
9767 "Function <vkGetPhysicalDevicePresentRectanglesKHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
9768 # endif
9769
9770 std::vector<Rect2D, Rect2DAllocator> rects( rect2DAllocator );
9771 uint32_t rectCount;
9772 Result result;
9773 do
9774 {
9775 result = static_cast<Result>( d.vkGetPhysicalDevicePresentRectanglesKHR( m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &rectCount, nullptr ) );
9776 if ( ( result == Result::eSuccess ) && rectCount )
9777 {
9778 rects.resize( rectCount );
9779 result = static_cast<Result>( d.vkGetPhysicalDevicePresentRectanglesKHR(
9780 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), &rectCount, reinterpret_cast<VkRect2D *>( rects.data() ) ) );
9781 }
9782 } while ( result == Result::eIncomplete );
9783 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getPresentRectanglesKHR" );
9784 VULKAN_HPP_ASSERT( rectCount <= rects.size() );
9785 if ( rectCount < rects.size() )
9786 {
9787 rects.resize( rectCount );
9788 }
9789 return detail::createResultValueType( result, std::move( rects ) );
9790 }
9791 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9792
9793 // wrapper function for command vkAcquireNextImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireNextImage2KHR.html
9794 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireNextImage2KHR ), bool>::type>
9795 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::acquireNextImage2KHR( const AcquireNextImageInfoKHR * pAcquireInfo,
9796 uint32_t * pImageIndex,
9797 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9798 {
9799 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9800 return static_cast<Result>(
9801 d.vkAcquireNextImage2KHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkAcquireNextImageInfoKHR *>( pAcquireInfo ), pImageIndex ) );
9802 }
9803
9804 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9805 // wrapper function for command vkAcquireNextImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireNextImage2KHR.html
9806 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireNextImage2KHR ), bool>::type>
9807 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<uint32_t> Device::acquireNextImage2KHR( const AcquireNextImageInfoKHR & acquireInfo,
9808 Dispatch const & d ) const
9809 {
9810 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9811 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9812 VULKAN_HPP_ASSERT( d.vkAcquireNextImage2KHR && "Function <vkAcquireNextImage2KHR> requires <VK_KHR_device_group> or <VK_KHR_swapchain>" );
9813 # endif
9814
9815 uint32_t imageIndex;
9816 Result result =
9817 static_cast<Result>( d.vkAcquireNextImage2KHR( m_device, reinterpret_cast<const VkAcquireNextImageInfoKHR *>( &acquireInfo ), &imageIndex ) );
9818
9819 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
9820 detail::resultCheck( result,
9821 VULKAN_HPP_NAMESPACE_STRING "::Device::acquireNextImage2KHR",
9822 { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
9823 # else
9824 detail::resultCheck(
9825 result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquireNextImage2KHR", { Result::eSuccess, Result::eTimeout, Result::eNotReady, Result::eSuboptimalKHR } );
9826 # endif
9827
9828 return ResultValue<uint32_t>( result, std::move( imageIndex ) );
9829 }
9830 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9831
9832 //=== VK_KHR_display ===
9833
9834 // wrapper function for command vkGetPhysicalDeviceDisplayPropertiesKHR, see
9835 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPropertiesKHR.html
9836 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPropertiesKHR ), bool>::type>
9837 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayPropertiesKHR( uint32_t * pPropertyCount,
9838 DisplayPropertiesKHR * pProperties,
9839 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9840 {
9841 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9842 return static_cast<Result>( d.vkGetPhysicalDeviceDisplayPropertiesKHR(
9843 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkDisplayPropertiesKHR *>( pProperties ) ) );
9844 }
9845
9846 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9847 // wrapper function for command vkGetPhysicalDeviceDisplayPropertiesKHR, see
9848 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPropertiesKHR.html
9849 template <typename DisplayPropertiesKHRAllocator,
9850 typename Dispatch,
9851 typename std::enable_if<std::is_same<typename DisplayPropertiesKHRAllocator::value_type, DisplayPropertiesKHR>::value, int>::type,
9852 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPropertiesKHR ), bool>::type>
9853 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPropertiesKHR, DisplayPropertiesKHRAllocator>>::type
9854 PhysicalDevice::getDisplayPropertiesKHR( Dispatch const & d ) const
9855 {
9856 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9857 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9858 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayPropertiesKHR && "Function <vkGetPhysicalDeviceDisplayPropertiesKHR> requires <VK_KHR_display>" );
9859 # endif
9860
9861 std::vector<DisplayPropertiesKHR, DisplayPropertiesKHRAllocator> properties;
9862 uint32_t propertyCount;
9863 Result result;
9864 do
9865 {
9866 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
9867 if ( ( result == Result::eSuccess ) && propertyCount )
9868 {
9869 properties.resize( propertyCount );
9870 result = static_cast<Result>(
9871 d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPropertiesKHR *>( properties.data() ) ) );
9872 }
9873 } while ( result == Result::eIncomplete );
9874 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPropertiesKHR" );
9875 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
9876 if ( propertyCount < properties.size() )
9877 {
9878 properties.resize( propertyCount );
9879 }
9880 return detail::createResultValueType( result, std::move( properties ) );
9881 }
9882
9883 // wrapper function for command vkGetPhysicalDeviceDisplayPropertiesKHR, see
9884 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPropertiesKHR.html
9885 template <typename DisplayPropertiesKHRAllocator,
9886 typename Dispatch,
9887 typename std::enable_if<std::is_same<typename DisplayPropertiesKHRAllocator::value_type, DisplayPropertiesKHR>::value, int>::type,
9888 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPropertiesKHR ), bool>::type>
9889 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPropertiesKHR, DisplayPropertiesKHRAllocator>>::type
9890 PhysicalDevice::getDisplayPropertiesKHR( DisplayPropertiesKHRAllocator const & displayPropertiesKHRAllocator, Dispatch const & d ) const
9891 {
9892 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9893 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9894 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayPropertiesKHR && "Function <vkGetPhysicalDeviceDisplayPropertiesKHR> requires <VK_KHR_display>" );
9895 # endif
9896
9897 std::vector<DisplayPropertiesKHR, DisplayPropertiesKHRAllocator> properties( displayPropertiesKHRAllocator );
9898 uint32_t propertyCount;
9899 Result result;
9900 do
9901 {
9902 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
9903 if ( ( result == Result::eSuccess ) && propertyCount )
9904 {
9905 properties.resize( propertyCount );
9906 result = static_cast<Result>(
9907 d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPropertiesKHR *>( properties.data() ) ) );
9908 }
9909 } while ( result == Result::eIncomplete );
9910 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPropertiesKHR" );
9911 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
9912 if ( propertyCount < properties.size() )
9913 {
9914 properties.resize( propertyCount );
9915 }
9916 return detail::createResultValueType( result, std::move( properties ) );
9917 }
9918 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
9919
9920 // wrapper function for command vkGetPhysicalDeviceDisplayPlanePropertiesKHR, see
9921 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlanePropertiesKHR.html
9922 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPlanePropertiesKHR ), bool>::type>
9923 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayPlanePropertiesKHR( uint32_t * pPropertyCount,
9924 DisplayPlanePropertiesKHR * pProperties,
9925 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
9926 {
9927 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9928 return static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
9929 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkDisplayPlanePropertiesKHR *>( pProperties ) ) );
9930 }
9931
9932 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
9933 // wrapper function for command vkGetPhysicalDeviceDisplayPlanePropertiesKHR, see
9934 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlanePropertiesKHR.html
9935 template <typename DisplayPlanePropertiesKHRAllocator,
9936 typename Dispatch,
9937 typename std::enable_if<std::is_same<typename DisplayPlanePropertiesKHRAllocator::value_type, DisplayPlanePropertiesKHR>::value, int>::type,
9938 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPlanePropertiesKHR ), bool>::type>
9939 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPlanePropertiesKHR, DisplayPlanePropertiesKHRAllocator>>::type
9940 PhysicalDevice::getDisplayPlanePropertiesKHR( Dispatch const & d ) const
9941 {
9942 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9943 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9944 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR && "Function <vkGetPhysicalDeviceDisplayPlanePropertiesKHR> requires <VK_KHR_display>" );
9945 # endif
9946
9947 std::vector<DisplayPlanePropertiesKHR, DisplayPlanePropertiesKHRAllocator> properties;
9948 uint32_t propertyCount;
9949 Result result;
9950 do
9951 {
9952 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
9953 if ( ( result == Result::eSuccess ) && propertyCount )
9954 {
9955 properties.resize( propertyCount );
9956 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
9957 m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPlanePropertiesKHR *>( properties.data() ) ) );
9958 }
9959 } while ( result == Result::eIncomplete );
9960 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlanePropertiesKHR" );
9961 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
9962 if ( propertyCount < properties.size() )
9963 {
9964 properties.resize( propertyCount );
9965 }
9966 return detail::createResultValueType( result, std::move( properties ) );
9967 }
9968
9969 // wrapper function for command vkGetPhysicalDeviceDisplayPlanePropertiesKHR, see
9970 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlanePropertiesKHR.html
9971 template <typename DisplayPlanePropertiesKHRAllocator,
9972 typename Dispatch,
9973 typename std::enable_if<std::is_same<typename DisplayPlanePropertiesKHRAllocator::value_type, DisplayPlanePropertiesKHR>::value, int>::type,
9974 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPlanePropertiesKHR ), bool>::type>
9975 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPlanePropertiesKHR, DisplayPlanePropertiesKHRAllocator>>::type
9976 PhysicalDevice::getDisplayPlanePropertiesKHR( DisplayPlanePropertiesKHRAllocator const & displayPlanePropertiesKHRAllocator, Dispatch const & d ) const
9977 {
9978 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
9979 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
9980 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR && "Function <vkGetPhysicalDeviceDisplayPlanePropertiesKHR> requires <VK_KHR_display>" );
9981 # endif
9982
9983 std::vector<DisplayPlanePropertiesKHR, DisplayPlanePropertiesKHRAllocator> properties( displayPlanePropertiesKHRAllocator );
9984 uint32_t propertyCount;
9985 Result result;
9986 do
9987 {
9988 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
9989 if ( ( result == Result::eSuccess ) && propertyCount )
9990 {
9991 properties.resize( propertyCount );
9992 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlanePropertiesKHR(
9993 m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPlanePropertiesKHR *>( properties.data() ) ) );
9994 }
9995 } while ( result == Result::eIncomplete );
9996 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlanePropertiesKHR" );
9997 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
9998 if ( propertyCount < properties.size() )
9999 {
10000 properties.resize( propertyCount );
10001 }
10002 return detail::createResultValueType( result, std::move( properties ) );
10003 }
10004 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10005
10006 // wrapper function for command vkGetDisplayPlaneSupportedDisplaysKHR, see
10007 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneSupportedDisplaysKHR.html
10008 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneSupportedDisplaysKHR ), bool>::type>
10009 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR( uint32_t planeIndex,
10010 uint32_t * pDisplayCount,
10011 DisplayKHR * pDisplays,
10012 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10013 {
10014 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10015 return static_cast<Result>( d.vkGetDisplayPlaneSupportedDisplaysKHR(
10016 static_cast<VkPhysicalDevice>( m_physicalDevice ), planeIndex, pDisplayCount, reinterpret_cast<VkDisplayKHR *>( pDisplays ) ) );
10017 }
10018
10019 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10020 // wrapper function for command vkGetDisplayPlaneSupportedDisplaysKHR, see
10021 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneSupportedDisplaysKHR.html
10022 template <typename DisplayKHRAllocator,
10023 typename Dispatch,
10024 typename std::enable_if<std::is_same<typename DisplayKHRAllocator::value_type, DisplayKHR>::value, int>::type,
10025 typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneSupportedDisplaysKHR ), bool>::type>
10026 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayKHR, DisplayKHRAllocator>>::type
10027 PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR( uint32_t planeIndex, Dispatch const & d ) const
10028 {
10029 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10030 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10031 VULKAN_HPP_ASSERT( d.vkGetDisplayPlaneSupportedDisplaysKHR && "Function <vkGetDisplayPlaneSupportedDisplaysKHR> requires <VK_KHR_display>" );
10032 # endif
10033
10034 std::vector<DisplayKHR, DisplayKHRAllocator> displays;
10035 uint32_t displayCount;
10036 Result result;
10037 do
10038 {
10039 result = static_cast<Result>( d.vkGetDisplayPlaneSupportedDisplaysKHR( m_physicalDevice, planeIndex, &displayCount, nullptr ) );
10040 if ( ( result == Result::eSuccess ) && displayCount )
10041 {
10042 displays.resize( displayCount );
10043 result = static_cast<Result>(
10044 d.vkGetDisplayPlaneSupportedDisplaysKHR( m_physicalDevice, planeIndex, &displayCount, reinterpret_cast<VkDisplayKHR *>( displays.data() ) ) );
10045 }
10046 } while ( result == Result::eIncomplete );
10047 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR" );
10048 VULKAN_HPP_ASSERT( displayCount <= displays.size() );
10049 if ( displayCount < displays.size() )
10050 {
10051 displays.resize( displayCount );
10052 }
10053 return detail::createResultValueType( result, std::move( displays ) );
10054 }
10055
10056 // wrapper function for command vkGetDisplayPlaneSupportedDisplaysKHR, see
10057 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneSupportedDisplaysKHR.html
10058 template <typename DisplayKHRAllocator,
10059 typename Dispatch,
10060 typename std::enable_if<std::is_same<typename DisplayKHRAllocator::value_type, DisplayKHR>::value, int>::type,
10061 typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneSupportedDisplaysKHR ), bool>::type>
10062 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayKHR, DisplayKHRAllocator>>::type
10063 PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR( uint32_t planeIndex, DisplayKHRAllocator const & displayKHRAllocator, Dispatch const & d ) const
10064 {
10065 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10066 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10067 VULKAN_HPP_ASSERT( d.vkGetDisplayPlaneSupportedDisplaysKHR && "Function <vkGetDisplayPlaneSupportedDisplaysKHR> requires <VK_KHR_display>" );
10068 # endif
10069
10070 std::vector<DisplayKHR, DisplayKHRAllocator> displays( displayKHRAllocator );
10071 uint32_t displayCount;
10072 Result result;
10073 do
10074 {
10075 result = static_cast<Result>( d.vkGetDisplayPlaneSupportedDisplaysKHR( m_physicalDevice, planeIndex, &displayCount, nullptr ) );
10076 if ( ( result == Result::eSuccess ) && displayCount )
10077 {
10078 displays.resize( displayCount );
10079 result = static_cast<Result>(
10080 d.vkGetDisplayPlaneSupportedDisplaysKHR( m_physicalDevice, planeIndex, &displayCount, reinterpret_cast<VkDisplayKHR *>( displays.data() ) ) );
10081 }
10082 } while ( result == Result::eIncomplete );
10083 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneSupportedDisplaysKHR" );
10084 VULKAN_HPP_ASSERT( displayCount <= displays.size() );
10085 if ( displayCount < displays.size() )
10086 {
10087 displays.resize( displayCount );
10088 }
10089 return detail::createResultValueType( result, std::move( displays ) );
10090 }
10091 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10092
10093 // wrapper function for command vkGetDisplayModePropertiesKHR, see
10094 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModePropertiesKHR.html
10095 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayModePropertiesKHR ), bool>::type>
10096 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayModePropertiesKHR( DisplayKHR display,
10097 uint32_t * pPropertyCount,
10098 DisplayModePropertiesKHR * pProperties,
10099 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10100 {
10101 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10102 return static_cast<Result>( d.vkGetDisplayModePropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
10103 static_cast<VkDisplayKHR>( display ),
10104 pPropertyCount,
10105 reinterpret_cast<VkDisplayModePropertiesKHR *>( pProperties ) ) );
10106 }
10107
10108 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10109 // wrapper function for command vkGetDisplayModePropertiesKHR, see
10110 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModePropertiesKHR.html
10111 template <typename DisplayModePropertiesKHRAllocator,
10112 typename Dispatch,
10113 typename std::enable_if<std::is_same<typename DisplayModePropertiesKHRAllocator::value_type, DisplayModePropertiesKHR>::value, int>::type,
10114 typename std::enable_if<IS_DISPATCHED( vkGetDisplayModePropertiesKHR ), bool>::type>
10115 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayModePropertiesKHR, DisplayModePropertiesKHRAllocator>>::type
10116 PhysicalDevice::getDisplayModePropertiesKHR( DisplayKHR display, Dispatch const & d ) const
10117 {
10118 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10119 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10120 VULKAN_HPP_ASSERT( d.vkGetDisplayModePropertiesKHR && "Function <vkGetDisplayModePropertiesKHR> requires <VK_KHR_display>" );
10121 # endif
10122
10123 std::vector<DisplayModePropertiesKHR, DisplayModePropertiesKHRAllocator> properties;
10124 uint32_t propertyCount;
10125 Result result;
10126 do
10127 {
10128 result = static_cast<Result>( d.vkGetDisplayModePropertiesKHR( m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, nullptr ) );
10129 if ( ( result == Result::eSuccess ) && propertyCount )
10130 {
10131 properties.resize( propertyCount );
10132 result = static_cast<Result>( d.vkGetDisplayModePropertiesKHR(
10133 m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, reinterpret_cast<VkDisplayModePropertiesKHR *>( properties.data() ) ) );
10134 }
10135 } while ( result == Result::eIncomplete );
10136 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModePropertiesKHR" );
10137 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
10138 if ( propertyCount < properties.size() )
10139 {
10140 properties.resize( propertyCount );
10141 }
10142 return detail::createResultValueType( result, std::move( properties ) );
10143 }
10144
10145 // wrapper function for command vkGetDisplayModePropertiesKHR, see
10146 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModePropertiesKHR.html
10147 template <typename DisplayModePropertiesKHRAllocator,
10148 typename Dispatch,
10149 typename std::enable_if<std::is_same<typename DisplayModePropertiesKHRAllocator::value_type, DisplayModePropertiesKHR>::value, int>::type,
10150 typename std::enable_if<IS_DISPATCHED( vkGetDisplayModePropertiesKHR ), bool>::type>
10151 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayModePropertiesKHR, DisplayModePropertiesKHRAllocator>>::type
10152 PhysicalDevice::getDisplayModePropertiesKHR( DisplayKHR display,
10153 DisplayModePropertiesKHRAllocator const & displayModePropertiesKHRAllocator,
10154 Dispatch const & d ) const
10155 {
10156 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10157 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10158 VULKAN_HPP_ASSERT( d.vkGetDisplayModePropertiesKHR && "Function <vkGetDisplayModePropertiesKHR> requires <VK_KHR_display>" );
10159 # endif
10160
10161 std::vector<DisplayModePropertiesKHR, DisplayModePropertiesKHRAllocator> properties( displayModePropertiesKHRAllocator );
10162 uint32_t propertyCount;
10163 Result result;
10164 do
10165 {
10166 result = static_cast<Result>( d.vkGetDisplayModePropertiesKHR( m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, nullptr ) );
10167 if ( ( result == Result::eSuccess ) && propertyCount )
10168 {
10169 properties.resize( propertyCount );
10170 result = static_cast<Result>( d.vkGetDisplayModePropertiesKHR(
10171 m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, reinterpret_cast<VkDisplayModePropertiesKHR *>( properties.data() ) ) );
10172 }
10173 } while ( result == Result::eIncomplete );
10174 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModePropertiesKHR" );
10175 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
10176 if ( propertyCount < properties.size() )
10177 {
10178 properties.resize( propertyCount );
10179 }
10180 return detail::createResultValueType( result, std::move( properties ) );
10181 }
10182 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10183
10184 // wrapper function for command vkCreateDisplayModeKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayModeKHR.html
10185 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDisplayModeKHR ), bool>::type>
10186 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::createDisplayModeKHR( DisplayKHR display,
10187 const DisplayModeCreateInfoKHR * pCreateInfo,
10188 const AllocationCallbacks * pAllocator,
10189 DisplayModeKHR * pMode,
10190 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10191 {
10192 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10193 return static_cast<Result>( d.vkCreateDisplayModeKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
10194 static_cast<VkDisplayKHR>( display ),
10195 reinterpret_cast<const VkDisplayModeCreateInfoKHR *>( pCreateInfo ),
10196 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
10197 reinterpret_cast<VkDisplayModeKHR *>( pMode ) ) );
10198 }
10199
10200 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10201 // wrapper function for command vkCreateDisplayModeKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayModeKHR.html
10202 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDisplayModeKHR ), bool>::type>
10203 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayModeKHR>::type PhysicalDevice::createDisplayModeKHR(
10204 DisplayKHR display, const DisplayModeCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10205 {
10206 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10207 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10208 VULKAN_HPP_ASSERT( d.vkCreateDisplayModeKHR && "Function <vkCreateDisplayModeKHR> requires <VK_KHR_display>" );
10209 # endif
10210
10211 DisplayModeKHR mode;
10212 Result result = static_cast<Result>( d.vkCreateDisplayModeKHR( m_physicalDevice,
10213 static_cast<VkDisplayKHR>( display ),
10214 reinterpret_cast<const VkDisplayModeCreateInfoKHR *>( &createInfo ),
10215 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10216 reinterpret_cast<VkDisplayModeKHR *>( &mode ) ) );
10217 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::createDisplayModeKHR" );
10218
10219 return detail::createResultValueType( result, std::move( mode ) );
10220 }
10221
10222 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10223 // wrapper function for command vkCreateDisplayModeKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayModeKHR.html
10224 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDisplayModeKHR ), bool>::type>
10225 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DisplayModeKHR, Dispatch>>::type PhysicalDevice::createDisplayModeKHRUnique(
10226 DisplayKHR display, const DisplayModeCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10227 {
10228 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10229 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10230 VULKAN_HPP_ASSERT( d.vkCreateDisplayModeKHR && "Function <vkCreateDisplayModeKHR> requires <VK_KHR_display>" );
10231 # endif
10232
10233 DisplayModeKHR mode;
10234 Result result = static_cast<Result>( d.vkCreateDisplayModeKHR( m_physicalDevice,
10235 static_cast<VkDisplayKHR>( display ),
10236 reinterpret_cast<const VkDisplayModeCreateInfoKHR *>( &createInfo ),
10237 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10238 reinterpret_cast<VkDisplayModeKHR *>( &mode ) ) );
10239 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::createDisplayModeKHRUnique" );
10240
10241 return detail::createResultValueType(
10242 result, UniqueHandle<DisplayModeKHR, Dispatch>( mode, detail::ObjectDestroy<PhysicalDevice, Dispatch>( *this, allocator, d ) ) );
10243 }
10244 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10245 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10246
10247 // wrapper function for command vkGetDisplayPlaneCapabilitiesKHR, see
10248 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneCapabilitiesKHR.html
10249 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneCapabilitiesKHR ), bool>::type>
10250 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayPlaneCapabilitiesKHR( DisplayModeKHR mode,
10251 uint32_t planeIndex,
10252 DisplayPlaneCapabilitiesKHR * pCapabilities,
10253 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10254 {
10255 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10256 return static_cast<Result>( d.vkGetDisplayPlaneCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
10257 static_cast<VkDisplayModeKHR>( mode ),
10258 planeIndex,
10259 reinterpret_cast<VkDisplayPlaneCapabilitiesKHR *>( pCapabilities ) ) );
10260 }
10261
10262 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10263 // wrapper function for command vkGetDisplayPlaneCapabilitiesKHR, see
10264 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneCapabilitiesKHR.html
10265 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneCapabilitiesKHR ), bool>::type>
10266 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayPlaneCapabilitiesKHR>::type
10267 PhysicalDevice::getDisplayPlaneCapabilitiesKHR( DisplayModeKHR mode, uint32_t planeIndex, Dispatch const & d ) const
10268 {
10269 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10270 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10271 VULKAN_HPP_ASSERT( d.vkGetDisplayPlaneCapabilitiesKHR && "Function <vkGetDisplayPlaneCapabilitiesKHR> requires <VK_KHR_display>" );
10272 # endif
10273
10274 DisplayPlaneCapabilitiesKHR capabilities;
10275 Result result = static_cast<Result>( d.vkGetDisplayPlaneCapabilitiesKHR(
10276 m_physicalDevice, static_cast<VkDisplayModeKHR>( mode ), planeIndex, reinterpret_cast<VkDisplayPlaneCapabilitiesKHR *>( &capabilities ) ) );
10277 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneCapabilitiesKHR" );
10278
10279 return detail::createResultValueType( result, std::move( capabilities ) );
10280 }
10281 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10282
10283 // wrapper function for command vkCreateDisplayPlaneSurfaceKHR, see
10284 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayPlaneSurfaceKHR.html
10285 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDisplayPlaneSurfaceKHR ), bool>::type>
10286 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createDisplayPlaneSurfaceKHR( const DisplaySurfaceCreateInfoKHR * pCreateInfo,
10287 const AllocationCallbacks * pAllocator,
10288 SurfaceKHR * pSurface,
10289 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10290 {
10291 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10292 return static_cast<Result>( d.vkCreateDisplayPlaneSurfaceKHR( static_cast<VkInstance>( m_instance ),
10293 reinterpret_cast<const VkDisplaySurfaceCreateInfoKHR *>( pCreateInfo ),
10294 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
10295 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
10296 }
10297
10298 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10299 // wrapper function for command vkCreateDisplayPlaneSurfaceKHR, see
10300 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayPlaneSurfaceKHR.html
10301 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDisplayPlaneSurfaceKHR ), bool>::type>
10302 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createDisplayPlaneSurfaceKHR(
10303 const DisplaySurfaceCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10304 {
10305 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10306 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10307 VULKAN_HPP_ASSERT( d.vkCreateDisplayPlaneSurfaceKHR && "Function <vkCreateDisplayPlaneSurfaceKHR> requires <VK_KHR_display>" );
10308 # endif
10309
10310 SurfaceKHR surface;
10311 Result result = static_cast<Result>( d.vkCreateDisplayPlaneSurfaceKHR( m_instance,
10312 reinterpret_cast<const VkDisplaySurfaceCreateInfoKHR *>( &createInfo ),
10313 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10314 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10315 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDisplayPlaneSurfaceKHR" );
10316
10317 return detail::createResultValueType( result, std::move( surface ) );
10318 }
10319
10320 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10321 // wrapper function for command vkCreateDisplayPlaneSurfaceKHR, see
10322 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDisplayPlaneSurfaceKHR.html
10323 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDisplayPlaneSurfaceKHR ), bool>::type>
10324 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createDisplayPlaneSurfaceKHRUnique(
10325 const DisplaySurfaceCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10326 {
10327 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10328 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10329 VULKAN_HPP_ASSERT( d.vkCreateDisplayPlaneSurfaceKHR && "Function <vkCreateDisplayPlaneSurfaceKHR> requires <VK_KHR_display>" );
10330 # endif
10331
10332 SurfaceKHR surface;
10333 Result result = static_cast<Result>( d.vkCreateDisplayPlaneSurfaceKHR( m_instance,
10334 reinterpret_cast<const VkDisplaySurfaceCreateInfoKHR *>( &createInfo ),
10335 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10336 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10337 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDisplayPlaneSurfaceKHRUnique" );
10338
10339 return detail::createResultValueType( result,
10340 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10341 }
10342 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10343 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10344
10345 //=== VK_KHR_display_swapchain ===
10346
10347 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10348 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10349 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createSharedSwapchainsKHR( uint32_t swapchainCount,
10350 const SwapchainCreateInfoKHR * pCreateInfos,
10351 const AllocationCallbacks * pAllocator,
10352 SwapchainKHR * pSwapchains,
10353 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10354 {
10355 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10356 return static_cast<Result>( d.vkCreateSharedSwapchainsKHR( static_cast<VkDevice>( m_device ),
10357 swapchainCount,
10358 reinterpret_cast<const VkSwapchainCreateInfoKHR *>( pCreateInfos ),
10359 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
10360 reinterpret_cast<VkSwapchainKHR *>( pSwapchains ) ) );
10361 }
10362
10363 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10364 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10365 template <typename SwapchainKHRAllocator,
10366 typename Dispatch,
10367 typename std::enable_if<std::is_same<typename SwapchainKHRAllocator::value_type, SwapchainKHR>::value, int>::type,
10368 typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10369 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SwapchainKHR, SwapchainKHRAllocator>>::type Device::createSharedSwapchainsKHR(
10370 ArrayProxy<const SwapchainCreateInfoKHR> const & createInfos, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10371 {
10372 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10373 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10374 VULKAN_HPP_ASSERT( d.vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
10375 # endif
10376
10377 std::vector<SwapchainKHR, SwapchainKHRAllocator> swapchains( createInfos.size() );
10378 Result result = static_cast<Result>( d.vkCreateSharedSwapchainsKHR( m_device,
10379 createInfos.size(),
10380 reinterpret_cast<const VkSwapchainCreateInfoKHR *>( createInfos.data() ),
10381 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10382 reinterpret_cast<VkSwapchainKHR *>( swapchains.data() ) ) );
10383 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHR" );
10384
10385 return detail::createResultValueType( result, std::move( swapchains ) );
10386 }
10387
10388 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10389 template <typename SwapchainKHRAllocator,
10390 typename Dispatch,
10391 typename std::enable_if<std::is_same<typename SwapchainKHRAllocator::value_type, SwapchainKHR>::value, int>::type,
10392 typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10393 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SwapchainKHR, SwapchainKHRAllocator>>::type
10394 Device::createSharedSwapchainsKHR( ArrayProxy<const SwapchainCreateInfoKHR> const & createInfos,
10395 Optional<const AllocationCallbacks> allocator,
10396 SwapchainKHRAllocator const & swapchainKHRAllocator,
10397 Dispatch const & d ) const
10398 {
10399 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10400 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10401 VULKAN_HPP_ASSERT( d.vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
10402 # endif
10403
10404 std::vector<SwapchainKHR, SwapchainKHRAllocator> swapchains( createInfos.size(), {}, swapchainKHRAllocator );
10405 Result result = static_cast<Result>( d.vkCreateSharedSwapchainsKHR( m_device,
10406 createInfos.size(),
10407 reinterpret_cast<const VkSwapchainCreateInfoKHR *>( createInfos.data() ),
10408 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10409 reinterpret_cast<VkSwapchainKHR *>( swapchains.data() ) ) );
10410 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHR" );
10411
10412 return detail::createResultValueType( result, std::move( swapchains ) );
10413 }
10414
10415 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10416 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10417 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SwapchainKHR>::type
10418 Device::createSharedSwapchainKHR( const SwapchainCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10419 {
10420 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10421 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10422 VULKAN_HPP_ASSERT( d.vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
10423 # endif
10424
10425 SwapchainKHR swapchain;
10426 Result result = static_cast<Result>( d.vkCreateSharedSwapchainsKHR( m_device,
10427 1,
10428 reinterpret_cast<const VkSwapchainCreateInfoKHR *>( &createInfo ),
10429 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10430 reinterpret_cast<VkSwapchainKHR *>( &swapchain ) ) );
10431 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainKHR" );
10432
10433 return detail::createResultValueType( result, std::move( swapchain ) );
10434 }
10435
10436 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10437 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10438 template <typename Dispatch,
10439 typename SwapchainKHRAllocator,
10440 typename std::enable_if<std::is_same<typename SwapchainKHRAllocator::value_type, UniqueHandle<SwapchainKHR, Dispatch>>::value, int>::type,
10441 typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10442 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<UniqueHandle<SwapchainKHR, Dispatch>, SwapchainKHRAllocator>>::type
10443 Device::createSharedSwapchainsKHRUnique( ArrayProxy<const SwapchainCreateInfoKHR> const & createInfos,
10444 Optional<const AllocationCallbacks> allocator,
10445 Dispatch const & d ) const
10446 {
10447 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10448 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10449 VULKAN_HPP_ASSERT( d.vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
10450 # endif
10451
10452 std::vector<SwapchainKHR> swapchains( createInfos.size() );
10453 Result result = static_cast<Result>( d.vkCreateSharedSwapchainsKHR( m_device,
10454 createInfos.size(),
10455 reinterpret_cast<const VkSwapchainCreateInfoKHR *>( createInfos.data() ),
10456 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10457 reinterpret_cast<VkSwapchainKHR *>( swapchains.data() ) ) );
10458 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHRUnique" );
10459 std::vector<UniqueHandle<SwapchainKHR, Dispatch>, SwapchainKHRAllocator> uniqueSwapchains;
10460 uniqueSwapchains.reserve( createInfos.size() );
10461 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
10462 for ( auto const & swapchain : swapchains )
10463 {
10464 uniqueSwapchains.push_back( UniqueHandle<SwapchainKHR, Dispatch>( swapchain, deleter ) );
10465 }
10466 return detail::createResultValueType( result, std::move( uniqueSwapchains ) );
10467 }
10468
10469 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10470 template <typename Dispatch,
10471 typename SwapchainKHRAllocator,
10472 typename std::enable_if<std::is_same<typename SwapchainKHRAllocator::value_type, UniqueHandle<SwapchainKHR, Dispatch>>::value, int>::type,
10473 typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10474 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<UniqueHandle<SwapchainKHR, Dispatch>, SwapchainKHRAllocator>>::type
10475 Device::createSharedSwapchainsKHRUnique( ArrayProxy<const SwapchainCreateInfoKHR> const & createInfos,
10476 Optional<const AllocationCallbacks> allocator,
10477 SwapchainKHRAllocator const & swapchainKHRAllocator,
10478 Dispatch const & d ) const
10479 {
10480 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10481 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10482 VULKAN_HPP_ASSERT( d.vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
10483 # endif
10484
10485 std::vector<SwapchainKHR> swapchains( createInfos.size() );
10486 Result result = static_cast<Result>( d.vkCreateSharedSwapchainsKHR( m_device,
10487 createInfos.size(),
10488 reinterpret_cast<const VkSwapchainCreateInfoKHR *>( createInfos.data() ),
10489 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10490 reinterpret_cast<VkSwapchainKHR *>( swapchains.data() ) ) );
10491 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainsKHRUnique" );
10492 std::vector<UniqueHandle<SwapchainKHR, Dispatch>, SwapchainKHRAllocator> uniqueSwapchains( swapchainKHRAllocator );
10493 uniqueSwapchains.reserve( createInfos.size() );
10494 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
10495 for ( auto const & swapchain : swapchains )
10496 {
10497 uniqueSwapchains.push_back( UniqueHandle<SwapchainKHR, Dispatch>( swapchain, deleter ) );
10498 }
10499 return detail::createResultValueType( result, std::move( uniqueSwapchains ) );
10500 }
10501
10502 // wrapper function for command vkCreateSharedSwapchainsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSharedSwapchainsKHR.html
10503 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSharedSwapchainsKHR ), bool>::type>
10504 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SwapchainKHR, Dispatch>>::type
10505 Device::createSharedSwapchainKHRUnique( const SwapchainCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10506 {
10507 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10508 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10509 VULKAN_HPP_ASSERT( d.vkCreateSharedSwapchainsKHR && "Function <vkCreateSharedSwapchainsKHR> requires <VK_KHR_display_swapchain>" );
10510 # endif
10511
10512 SwapchainKHR swapchain;
10513 Result result = static_cast<Result>( d.vkCreateSharedSwapchainsKHR( m_device,
10514 1,
10515 reinterpret_cast<const VkSwapchainCreateInfoKHR *>( &createInfo ),
10516 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10517 reinterpret_cast<VkSwapchainKHR *>( &swapchain ) ) );
10518 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSharedSwapchainKHRUnique" );
10519
10520 return detail::createResultValueType( result,
10521 UniqueHandle<SwapchainKHR, Dispatch>( swapchain, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
10522 }
10523 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10524 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10525
10526 #if defined( VK_USE_PLATFORM_XLIB_KHR )
10527 //=== VK_KHR_xlib_surface ===
10528
10529 // wrapper function for command vkCreateXlibSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXlibSurfaceKHR.html
10530 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateXlibSurfaceKHR ), bool>::type>
10531 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createXlibSurfaceKHR( const XlibSurfaceCreateInfoKHR * pCreateInfo,
10532 const AllocationCallbacks * pAllocator,
10533 SurfaceKHR * pSurface,
10534 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10535 {
10536 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10537 return static_cast<Result>( d.vkCreateXlibSurfaceKHR( static_cast<VkInstance>( m_instance ),
10538 reinterpret_cast<const VkXlibSurfaceCreateInfoKHR *>( pCreateInfo ),
10539 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
10540 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
10541 }
10542
10543 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10544 // wrapper function for command vkCreateXlibSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXlibSurfaceKHR.html
10545 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateXlibSurfaceKHR ), bool>::type>
10546 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
10547 Instance::createXlibSurfaceKHR( const XlibSurfaceCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10548 {
10549 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10550 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10551 VULKAN_HPP_ASSERT( d.vkCreateXlibSurfaceKHR && "Function <vkCreateXlibSurfaceKHR> requires <VK_KHR_xlib_surface>" );
10552 # endif
10553
10554 SurfaceKHR surface;
10555 Result result = static_cast<Result>( d.vkCreateXlibSurfaceKHR( m_instance,
10556 reinterpret_cast<const VkXlibSurfaceCreateInfoKHR *>( &createInfo ),
10557 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10558 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10559 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createXlibSurfaceKHR" );
10560
10561 return detail::createResultValueType( result, std::move( surface ) );
10562 }
10563
10564 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10565 // wrapper function for command vkCreateXlibSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXlibSurfaceKHR.html
10566 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateXlibSurfaceKHR ), bool>::type>
10567 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type
10568 Instance::createXlibSurfaceKHRUnique( const XlibSurfaceCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10569 {
10570 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10571 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10572 VULKAN_HPP_ASSERT( d.vkCreateXlibSurfaceKHR && "Function <vkCreateXlibSurfaceKHR> requires <VK_KHR_xlib_surface>" );
10573 # endif
10574
10575 SurfaceKHR surface;
10576 Result result = static_cast<Result>( d.vkCreateXlibSurfaceKHR( m_instance,
10577 reinterpret_cast<const VkXlibSurfaceCreateInfoKHR *>( &createInfo ),
10578 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10579 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10580 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createXlibSurfaceKHRUnique" );
10581
10582 return detail::createResultValueType( result,
10583 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10584 }
10585 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10586 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10587
10588 // wrapper function for command vkGetPhysicalDeviceXlibPresentationSupportKHR, see
10589 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceXlibPresentationSupportKHR.html
10590 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceXlibPresentationSupportKHR ), bool>::type>
10591 VULKAN_HPP_INLINE Bool32
10592 PhysicalDevice::getXlibPresentationSupportKHR( uint32_t queueFamilyIndex, Display * dpy, VisualID visualID, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10593 {
10594 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10595 return static_cast<Bool32>(
10596 d.vkGetPhysicalDeviceXlibPresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, dpy, visualID ) );
10597 }
10598
10599 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10600 // wrapper function for command vkGetPhysicalDeviceXlibPresentationSupportKHR, see
10601 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceXlibPresentationSupportKHR.html
10602 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceXlibPresentationSupportKHR ), bool>::type>
10603 VULKAN_HPP_INLINE Bool32
10604 PhysicalDevice::getXlibPresentationSupportKHR( uint32_t queueFamilyIndex, Display & dpy, VisualID visualID, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10605 {
10606 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10607 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10608 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceXlibPresentationSupportKHR &&
10609 "Function <vkGetPhysicalDeviceXlibPresentationSupportKHR> requires <VK_KHR_xlib_surface>" );
10610 # endif
10611
10612 VkBool32 result = d.vkGetPhysicalDeviceXlibPresentationSupportKHR( m_physicalDevice, queueFamilyIndex, &dpy, visualID );
10613
10614 return static_cast<Bool32>( result );
10615 }
10616 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10617 #endif /*VK_USE_PLATFORM_XLIB_KHR*/
10618
10619 #if defined( VK_USE_PLATFORM_XCB_KHR )
10620 //=== VK_KHR_xcb_surface ===
10621
10622 // wrapper function for command vkCreateXcbSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXcbSurfaceKHR.html
10623 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateXcbSurfaceKHR ), bool>::type>
10624 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createXcbSurfaceKHR( const XcbSurfaceCreateInfoKHR * pCreateInfo,
10625 const AllocationCallbacks * pAllocator,
10626 SurfaceKHR * pSurface,
10627 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10628 {
10629 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10630 return static_cast<Result>( d.vkCreateXcbSurfaceKHR( static_cast<VkInstance>( m_instance ),
10631 reinterpret_cast<const VkXcbSurfaceCreateInfoKHR *>( pCreateInfo ),
10632 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
10633 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
10634 }
10635
10636 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10637 // wrapper function for command vkCreateXcbSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXcbSurfaceKHR.html
10638 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateXcbSurfaceKHR ), bool>::type>
10639 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
10640 Instance::createXcbSurfaceKHR( const XcbSurfaceCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10641 {
10642 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10643 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10644 VULKAN_HPP_ASSERT( d.vkCreateXcbSurfaceKHR && "Function <vkCreateXcbSurfaceKHR> requires <VK_KHR_xcb_surface>" );
10645 # endif
10646
10647 SurfaceKHR surface;
10648 Result result = static_cast<Result>( d.vkCreateXcbSurfaceKHR( m_instance,
10649 reinterpret_cast<const VkXcbSurfaceCreateInfoKHR *>( &createInfo ),
10650 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10651 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10652 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createXcbSurfaceKHR" );
10653
10654 return detail::createResultValueType( result, std::move( surface ) );
10655 }
10656
10657 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10658 // wrapper function for command vkCreateXcbSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateXcbSurfaceKHR.html
10659 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateXcbSurfaceKHR ), bool>::type>
10660 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type
10661 Instance::createXcbSurfaceKHRUnique( const XcbSurfaceCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10662 {
10663 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10664 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10665 VULKAN_HPP_ASSERT( d.vkCreateXcbSurfaceKHR && "Function <vkCreateXcbSurfaceKHR> requires <VK_KHR_xcb_surface>" );
10666 # endif
10667
10668 SurfaceKHR surface;
10669 Result result = static_cast<Result>( d.vkCreateXcbSurfaceKHR( m_instance,
10670 reinterpret_cast<const VkXcbSurfaceCreateInfoKHR *>( &createInfo ),
10671 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10672 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10673 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createXcbSurfaceKHRUnique" );
10674
10675 return detail::createResultValueType( result,
10676 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10677 }
10678 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10679 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10680
10681 // wrapper function for command vkGetPhysicalDeviceXcbPresentationSupportKHR, see
10682 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceXcbPresentationSupportKHR.html
10683 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceXcbPresentationSupportKHR ), bool>::type>
10684 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getXcbPresentationSupportKHR( uint32_t queueFamilyIndex,
10685 xcb_connection_t * connection,
10686 xcb_visualid_t visual_id,
10687 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10688 {
10689 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10690 return static_cast<Bool32>(
10691 d.vkGetPhysicalDeviceXcbPresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, connection, visual_id ) );
10692 }
10693
10694 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10695 // wrapper function for command vkGetPhysicalDeviceXcbPresentationSupportKHR, see
10696 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceXcbPresentationSupportKHR.html
10697 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceXcbPresentationSupportKHR ), bool>::type>
10698 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getXcbPresentationSupportKHR( uint32_t queueFamilyIndex,
10699 xcb_connection_t & connection,
10700 xcb_visualid_t visual_id,
10701 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10702 {
10703 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10704 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10705 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceXcbPresentationSupportKHR &&
10706 "Function <vkGetPhysicalDeviceXcbPresentationSupportKHR> requires <VK_KHR_xcb_surface>" );
10707 # endif
10708
10709 VkBool32 result = d.vkGetPhysicalDeviceXcbPresentationSupportKHR( m_physicalDevice, queueFamilyIndex, &connection, visual_id );
10710
10711 return static_cast<Bool32>( result );
10712 }
10713 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10714 #endif /*VK_USE_PLATFORM_XCB_KHR*/
10715
10716 #if defined( VK_USE_PLATFORM_WAYLAND_KHR )
10717 //=== VK_KHR_wayland_surface ===
10718
10719 // wrapper function for command vkCreateWaylandSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWaylandSurfaceKHR.html
10720 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateWaylandSurfaceKHR ), bool>::type>
10721 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createWaylandSurfaceKHR( const WaylandSurfaceCreateInfoKHR * pCreateInfo,
10722 const AllocationCallbacks * pAllocator,
10723 SurfaceKHR * pSurface,
10724 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10725 {
10726 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10727 return static_cast<Result>( d.vkCreateWaylandSurfaceKHR( static_cast<VkInstance>( m_instance ),
10728 reinterpret_cast<const VkWaylandSurfaceCreateInfoKHR *>( pCreateInfo ),
10729 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
10730 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
10731 }
10732
10733 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10734 // wrapper function for command vkCreateWaylandSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWaylandSurfaceKHR.html
10735 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateWaylandSurfaceKHR ), bool>::type>
10736 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
10737 Instance::createWaylandSurfaceKHR( const WaylandSurfaceCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10738 {
10739 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10740 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10741 VULKAN_HPP_ASSERT( d.vkCreateWaylandSurfaceKHR && "Function <vkCreateWaylandSurfaceKHR> requires <VK_KHR_wayland_surface>" );
10742 # endif
10743
10744 SurfaceKHR surface;
10745 Result result = static_cast<Result>( d.vkCreateWaylandSurfaceKHR( m_instance,
10746 reinterpret_cast<const VkWaylandSurfaceCreateInfoKHR *>( &createInfo ),
10747 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10748 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10749 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createWaylandSurfaceKHR" );
10750
10751 return detail::createResultValueType( result, std::move( surface ) );
10752 }
10753
10754 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10755 // wrapper function for command vkCreateWaylandSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWaylandSurfaceKHR.html
10756 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateWaylandSurfaceKHR ), bool>::type>
10757 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createWaylandSurfaceKHRUnique(
10758 const WaylandSurfaceCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10759 {
10760 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10761 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10762 VULKAN_HPP_ASSERT( d.vkCreateWaylandSurfaceKHR && "Function <vkCreateWaylandSurfaceKHR> requires <VK_KHR_wayland_surface>" );
10763 # endif
10764
10765 SurfaceKHR surface;
10766 Result result = static_cast<Result>( d.vkCreateWaylandSurfaceKHR( m_instance,
10767 reinterpret_cast<const VkWaylandSurfaceCreateInfoKHR *>( &createInfo ),
10768 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10769 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10770 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createWaylandSurfaceKHRUnique" );
10771
10772 return detail::createResultValueType( result,
10773 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10774 }
10775 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10776 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10777
10778 // wrapper function for command vkGetPhysicalDeviceWaylandPresentationSupportKHR, see
10779 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceWaylandPresentationSupportKHR.html
10780 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceWaylandPresentationSupportKHR ), bool>::type>
10781 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getWaylandPresentationSupportKHR( uint32_t queueFamilyIndex,
10782 struct wl_display * display,
10783 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10784 {
10785 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10786 return static_cast<Bool32>(
10787 d.vkGetPhysicalDeviceWaylandPresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, display ) );
10788 }
10789
10790 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10791 // wrapper function for command vkGetPhysicalDeviceWaylandPresentationSupportKHR, see
10792 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceWaylandPresentationSupportKHR.html
10793 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceWaylandPresentationSupportKHR ), bool>::type>
10794 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getWaylandPresentationSupportKHR( uint32_t queueFamilyIndex,
10795 struct wl_display & display,
10796 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10797 {
10798 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10799 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10800 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceWaylandPresentationSupportKHR &&
10801 "Function <vkGetPhysicalDeviceWaylandPresentationSupportKHR> requires <VK_KHR_wayland_surface>" );
10802 # endif
10803
10804 VkBool32 result = d.vkGetPhysicalDeviceWaylandPresentationSupportKHR( m_physicalDevice, queueFamilyIndex, &display );
10805
10806 return static_cast<Bool32>( result );
10807 }
10808 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10809 #endif /*VK_USE_PLATFORM_WAYLAND_KHR*/
10810
10811 #if defined( VK_USE_PLATFORM_ANDROID_KHR )
10812 //=== VK_KHR_android_surface ===
10813
10814 // wrapper function for command vkCreateAndroidSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAndroidSurfaceKHR.html
10815 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAndroidSurfaceKHR ), bool>::type>
10816 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createAndroidSurfaceKHR( const AndroidSurfaceCreateInfoKHR * pCreateInfo,
10817 const AllocationCallbacks * pAllocator,
10818 SurfaceKHR * pSurface,
10819 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10820 {
10821 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10822 return static_cast<Result>( d.vkCreateAndroidSurfaceKHR( static_cast<VkInstance>( m_instance ),
10823 reinterpret_cast<const VkAndroidSurfaceCreateInfoKHR *>( pCreateInfo ),
10824 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
10825 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
10826 }
10827
10828 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10829 // wrapper function for command vkCreateAndroidSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAndroidSurfaceKHR.html
10830 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAndroidSurfaceKHR ), bool>::type>
10831 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
10832 Instance::createAndroidSurfaceKHR( const AndroidSurfaceCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10833 {
10834 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10835 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10836 VULKAN_HPP_ASSERT( d.vkCreateAndroidSurfaceKHR && "Function <vkCreateAndroidSurfaceKHR> requires <VK_KHR_android_surface>" );
10837 # endif
10838
10839 SurfaceKHR surface;
10840 Result result = static_cast<Result>( d.vkCreateAndroidSurfaceKHR( m_instance,
10841 reinterpret_cast<const VkAndroidSurfaceCreateInfoKHR *>( &createInfo ),
10842 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10843 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10844 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createAndroidSurfaceKHR" );
10845
10846 return detail::createResultValueType( result, std::move( surface ) );
10847 }
10848
10849 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10850 // wrapper function for command vkCreateAndroidSurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAndroidSurfaceKHR.html
10851 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAndroidSurfaceKHR ), bool>::type>
10852 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createAndroidSurfaceKHRUnique(
10853 const AndroidSurfaceCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10854 {
10855 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10856 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10857 VULKAN_HPP_ASSERT( d.vkCreateAndroidSurfaceKHR && "Function <vkCreateAndroidSurfaceKHR> requires <VK_KHR_android_surface>" );
10858 # endif
10859
10860 SurfaceKHR surface;
10861 Result result = static_cast<Result>( d.vkCreateAndroidSurfaceKHR( m_instance,
10862 reinterpret_cast<const VkAndroidSurfaceCreateInfoKHR *>( &createInfo ),
10863 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10864 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10865 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createAndroidSurfaceKHRUnique" );
10866
10867 return detail::createResultValueType( result,
10868 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10869 }
10870 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10871 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10872 #endif /*VK_USE_PLATFORM_ANDROID_KHR*/
10873
10874 #if defined( VK_USE_PLATFORM_WIN32_KHR )
10875 //=== VK_KHR_win32_surface ===
10876
10877 // wrapper function for command vkCreateWin32SurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWin32SurfaceKHR.html
10878 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateWin32SurfaceKHR ), bool>::type>
10879 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createWin32SurfaceKHR( const Win32SurfaceCreateInfoKHR * pCreateInfo,
10880 const AllocationCallbacks * pAllocator,
10881 SurfaceKHR * pSurface,
10882 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10883 {
10884 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10885 return static_cast<Result>( d.vkCreateWin32SurfaceKHR( static_cast<VkInstance>( m_instance ),
10886 reinterpret_cast<const VkWin32SurfaceCreateInfoKHR *>( pCreateInfo ),
10887 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
10888 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
10889 }
10890
10891 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10892 // wrapper function for command vkCreateWin32SurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWin32SurfaceKHR.html
10893 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateWin32SurfaceKHR ), bool>::type>
10894 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
10895 Instance::createWin32SurfaceKHR( const Win32SurfaceCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10896 {
10897 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10898 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10899 VULKAN_HPP_ASSERT( d.vkCreateWin32SurfaceKHR && "Function <vkCreateWin32SurfaceKHR> requires <VK_KHR_win32_surface>" );
10900 # endif
10901
10902 SurfaceKHR surface;
10903 Result result = static_cast<Result>( d.vkCreateWin32SurfaceKHR( m_instance,
10904 reinterpret_cast<const VkWin32SurfaceCreateInfoKHR *>( &createInfo ),
10905 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10906 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10907 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createWin32SurfaceKHR" );
10908
10909 return detail::createResultValueType( result, std::move( surface ) );
10910 }
10911
10912 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10913 // wrapper function for command vkCreateWin32SurfaceKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateWin32SurfaceKHR.html
10914 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateWin32SurfaceKHR ), bool>::type>
10915 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createWin32SurfaceKHRUnique(
10916 const Win32SurfaceCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10917 {
10918 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10919 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10920 VULKAN_HPP_ASSERT( d.vkCreateWin32SurfaceKHR && "Function <vkCreateWin32SurfaceKHR> requires <VK_KHR_win32_surface>" );
10921 # endif
10922
10923 SurfaceKHR surface;
10924 Result result = static_cast<Result>( d.vkCreateWin32SurfaceKHR( m_instance,
10925 reinterpret_cast<const VkWin32SurfaceCreateInfoKHR *>( &createInfo ),
10926 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10927 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
10928 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createWin32SurfaceKHRUnique" );
10929
10930 return detail::createResultValueType( result,
10931 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
10932 }
10933 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
10934 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
10935
10936 // wrapper function for command vkGetPhysicalDeviceWin32PresentationSupportKHR, see
10937 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceWin32PresentationSupportKHR.html
10938 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceWin32PresentationSupportKHR ), bool>::type>
10939 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getWin32PresentationSupportKHR( uint32_t queueFamilyIndex, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10940 {
10941 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10942 return static_cast<Bool32>( d.vkGetPhysicalDeviceWin32PresentationSupportKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex ) );
10943 }
10944 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
10945
10946 //=== VK_EXT_debug_report ===
10947
10948 // wrapper function for command vkCreateDebugReportCallbackEXT, see
10949 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugReportCallbackEXT.html
10950 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDebugReportCallbackEXT ), bool>::type>
10951 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createDebugReportCallbackEXT( const DebugReportCallbackCreateInfoEXT * pCreateInfo,
10952 const AllocationCallbacks * pAllocator,
10953 DebugReportCallbackEXT * pCallback,
10954 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
10955 {
10956 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10957 return static_cast<Result>( d.vkCreateDebugReportCallbackEXT( static_cast<VkInstance>( m_instance ),
10958 reinterpret_cast<const VkDebugReportCallbackCreateInfoEXT *>( pCreateInfo ),
10959 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
10960 reinterpret_cast<VkDebugReportCallbackEXT *>( pCallback ) ) );
10961 }
10962
10963 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
10964 // wrapper function for command vkCreateDebugReportCallbackEXT, see
10965 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugReportCallbackEXT.html
10966 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDebugReportCallbackEXT ), bool>::type>
10967 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DebugReportCallbackEXT>::type Instance::createDebugReportCallbackEXT(
10968 const DebugReportCallbackCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
10969 {
10970 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10971 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10972 VULKAN_HPP_ASSERT( d.vkCreateDebugReportCallbackEXT && "Function <vkCreateDebugReportCallbackEXT> requires <VK_EXT_debug_report>" );
10973 # endif
10974
10975 DebugReportCallbackEXT callback;
10976 Result result = static_cast<Result>( d.vkCreateDebugReportCallbackEXT( m_instance,
10977 reinterpret_cast<const VkDebugReportCallbackCreateInfoEXT *>( &createInfo ),
10978 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
10979 reinterpret_cast<VkDebugReportCallbackEXT *>( &callback ) ) );
10980 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDebugReportCallbackEXT" );
10981
10982 return detail::createResultValueType( result, std::move( callback ) );
10983 }
10984
10985 # ifndef VULKAN_HPP_NO_SMART_HANDLE
10986 // wrapper function for command vkCreateDebugReportCallbackEXT, see
10987 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugReportCallbackEXT.html
10988 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDebugReportCallbackEXT ), bool>::type>
10989 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DebugReportCallbackEXT, Dispatch>>::type
10990 Instance::createDebugReportCallbackEXTUnique( const DebugReportCallbackCreateInfoEXT & createInfo,
10991 Optional<const AllocationCallbacks> allocator,
10992 Dispatch const & d ) const
10993 {
10994 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
10995 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
10996 VULKAN_HPP_ASSERT( d.vkCreateDebugReportCallbackEXT && "Function <vkCreateDebugReportCallbackEXT> requires <VK_EXT_debug_report>" );
10997 # endif
10998
10999 DebugReportCallbackEXT callback;
11000 Result result = static_cast<Result>( d.vkCreateDebugReportCallbackEXT( m_instance,
11001 reinterpret_cast<const VkDebugReportCallbackCreateInfoEXT *>( &createInfo ),
11002 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
11003 reinterpret_cast<VkDebugReportCallbackEXT *>( &callback ) ) );
11004 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDebugReportCallbackEXTUnique" );
11005
11006 return detail::createResultValueType(
11007 result, UniqueHandle<DebugReportCallbackEXT, Dispatch>( callback, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
11008 }
11009 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
11010 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11011
11012 // wrapper function for command vkDestroyDebugReportCallbackEXT, see
11013 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugReportCallbackEXT.html
11014 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugReportCallbackEXT ), bool>::type>
11015 VULKAN_HPP_INLINE void Instance::destroyDebugReportCallbackEXT( DebugReportCallbackEXT callback,
11016 const AllocationCallbacks * pAllocator,
11017 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11018 {
11019 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11020 d.vkDestroyDebugReportCallbackEXT(
11021 static_cast<VkInstance>( m_instance ), static_cast<VkDebugReportCallbackEXT>( callback ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
11022 }
11023
11024 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11025 // wrapper function for command vkDestroyDebugReportCallbackEXT, see
11026 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugReportCallbackEXT.html
11027 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugReportCallbackEXT ), bool>::type>
11028 VULKAN_HPP_INLINE void Instance::destroyDebugReportCallbackEXT( DebugReportCallbackEXT callback,
11029 Optional<const AllocationCallbacks> allocator,
11030 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11031 {
11032 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11033 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11034 VULKAN_HPP_ASSERT( d.vkDestroyDebugReportCallbackEXT && "Function <vkDestroyDebugReportCallbackEXT> requires <VK_EXT_debug_report>" );
11035 # endif
11036
11037 d.vkDestroyDebugReportCallbackEXT(
11038 m_instance, static_cast<VkDebugReportCallbackEXT>( callback ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
11039 }
11040 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11041
11042 // wrapper function for command vkDestroyDebugReportCallbackEXT, see
11043 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugReportCallbackEXT.html
11044 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugReportCallbackEXT ), bool>::type>
11045 VULKAN_HPP_INLINE void
11046 Instance::destroy( DebugReportCallbackEXT callback, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11047 {
11048 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11049 d.vkDestroyDebugReportCallbackEXT(
11050 static_cast<VkInstance>( m_instance ), static_cast<VkDebugReportCallbackEXT>( callback ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
11051 }
11052
11053 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11054 // wrapper function for command vkDestroyDebugReportCallbackEXT, see
11055 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugReportCallbackEXT.html
11056 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugReportCallbackEXT ), bool>::type>
11057 VULKAN_HPP_INLINE void
11058 Instance::destroy( DebugReportCallbackEXT callback, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11059 {
11060 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11061 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11062 VULKAN_HPP_ASSERT( d.vkDestroyDebugReportCallbackEXT && "Function <vkDestroyDebugReportCallbackEXT> requires <VK_EXT_debug_report>" );
11063 # endif
11064
11065 d.vkDestroyDebugReportCallbackEXT(
11066 m_instance, static_cast<VkDebugReportCallbackEXT>( callback ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
11067 }
11068 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11069
11070 // wrapper function for command vkDebugReportMessageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugReportMessageEXT.html
11071 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDebugReportMessageEXT ), bool>::type>
11072 VULKAN_HPP_INLINE void Instance::debugReportMessageEXT( DebugReportFlagsEXT flags,
11073 DebugReportObjectTypeEXT objectType_,
11074 uint64_t object,
11075 size_t location,
11076 int32_t messageCode,
11077 const char * pLayerPrefix,
11078 const char * pMessage,
11079 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11080 {
11081 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11082 d.vkDebugReportMessageEXT( static_cast<VkInstance>( m_instance ),
11083 static_cast<VkDebugReportFlagsEXT>( flags ),
11084 static_cast<VkDebugReportObjectTypeEXT>( objectType_ ),
11085 object,
11086 location,
11087 messageCode,
11088 pLayerPrefix,
11089 pMessage );
11090 }
11091
11092 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11093 // wrapper function for command vkDebugReportMessageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugReportMessageEXT.html
11094 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDebugReportMessageEXT ), bool>::type>
11095 VULKAN_HPP_INLINE void Instance::debugReportMessageEXT( DebugReportFlagsEXT flags,
11096 DebugReportObjectTypeEXT objectType_,
11097 uint64_t object,
11098 size_t location,
11099 int32_t messageCode,
11100 const std::string & layerPrefix,
11101 const std::string & message,
11102 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11103 {
11104 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11105 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11106 VULKAN_HPP_ASSERT( d.vkDebugReportMessageEXT && "Function <vkDebugReportMessageEXT> requires <VK_EXT_debug_report>" );
11107 # endif
11108
11109 d.vkDebugReportMessageEXT( m_instance,
11110 static_cast<VkDebugReportFlagsEXT>( flags ),
11111 static_cast<VkDebugReportObjectTypeEXT>( objectType_ ),
11112 object,
11113 location,
11114 messageCode,
11115 layerPrefix.c_str(),
11116 message.c_str() );
11117 }
11118 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11119
11120 //=== VK_EXT_debug_marker ===
11121
11122 // wrapper function for command vkDebugMarkerSetObjectTagEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugMarkerSetObjectTagEXT.html
11123 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDebugMarkerSetObjectTagEXT ), bool>::type>
11124 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::debugMarkerSetObjectTagEXT( const DebugMarkerObjectTagInfoEXT * pTagInfo,
11125 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11126 {
11127 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11128 return static_cast<Result>(
11129 d.vkDebugMarkerSetObjectTagEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkDebugMarkerObjectTagInfoEXT *>( pTagInfo ) ) );
11130 }
11131
11132 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11133 // wrapper function for command vkDebugMarkerSetObjectTagEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugMarkerSetObjectTagEXT.html
11134 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDebugMarkerSetObjectTagEXT ), bool>::type>
11135 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
11136 Device::debugMarkerSetObjectTagEXT( const DebugMarkerObjectTagInfoEXT & tagInfo, Dispatch const & d ) const
11137 {
11138 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11139 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11140 VULKAN_HPP_ASSERT( d.vkDebugMarkerSetObjectTagEXT && "Function <vkDebugMarkerSetObjectTagEXT> requires <VK_EXT_debug_marker>" );
11141 # endif
11142
11143 Result result = static_cast<Result>( d.vkDebugMarkerSetObjectTagEXT( m_device, reinterpret_cast<const VkDebugMarkerObjectTagInfoEXT *>( &tagInfo ) ) );
11144 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::debugMarkerSetObjectTagEXT" );
11145
11146 return detail::createResultValueType( result );
11147 }
11148 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11149
11150 // wrapper function for command vkDebugMarkerSetObjectNameEXT, see
11151 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugMarkerSetObjectNameEXT.html
11152 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDebugMarkerSetObjectNameEXT ), bool>::type>
11153 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::debugMarkerSetObjectNameEXT( const DebugMarkerObjectNameInfoEXT * pNameInfo,
11154 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11155 {
11156 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11157 return static_cast<Result>(
11158 d.vkDebugMarkerSetObjectNameEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkDebugMarkerObjectNameInfoEXT *>( pNameInfo ) ) );
11159 }
11160
11161 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11162 // wrapper function for command vkDebugMarkerSetObjectNameEXT, see
11163 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDebugMarkerSetObjectNameEXT.html
11164 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDebugMarkerSetObjectNameEXT ), bool>::type>
11165 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
11166 Device::debugMarkerSetObjectNameEXT( const DebugMarkerObjectNameInfoEXT & nameInfo, Dispatch const & d ) const
11167 {
11168 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11169 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11170 VULKAN_HPP_ASSERT( d.vkDebugMarkerSetObjectNameEXT && "Function <vkDebugMarkerSetObjectNameEXT> requires <VK_EXT_debug_marker>" );
11171 # endif
11172
11173 Result result = static_cast<Result>( d.vkDebugMarkerSetObjectNameEXT( m_device, reinterpret_cast<const VkDebugMarkerObjectNameInfoEXT *>( &nameInfo ) ) );
11174 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::debugMarkerSetObjectNameEXT" );
11175
11176 return detail::createResultValueType( result );
11177 }
11178 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11179
11180 // wrapper function for command vkCmdDebugMarkerBeginEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerBeginEXT.html
11181 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDebugMarkerBeginEXT ), bool>::type>
11182 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerBeginEXT( const DebugMarkerMarkerInfoEXT * pMarkerInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11183 {
11184 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11185 d.vkCmdDebugMarkerBeginEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkDebugMarkerMarkerInfoEXT *>( pMarkerInfo ) );
11186 }
11187
11188 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11189 // wrapper function for command vkCmdDebugMarkerBeginEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerBeginEXT.html
11190 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDebugMarkerBeginEXT ), bool>::type>
11191 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerBeginEXT( const DebugMarkerMarkerInfoEXT & markerInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11192 {
11193 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11194 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11195 VULKAN_HPP_ASSERT( d.vkCmdDebugMarkerBeginEXT && "Function <vkCmdDebugMarkerBeginEXT> requires <VK_EXT_debug_marker>" );
11196 # endif
11197
11198 d.vkCmdDebugMarkerBeginEXT( m_commandBuffer, reinterpret_cast<const VkDebugMarkerMarkerInfoEXT *>( &markerInfo ) );
11199 }
11200 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11201
11202 // wrapper function for command vkCmdDebugMarkerEndEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerEndEXT.html
11203 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDebugMarkerEndEXT ), bool>::type>
11204 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerEndEXT( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11205 {
11206 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11207 d.vkCmdDebugMarkerEndEXT( static_cast<VkCommandBuffer>( m_commandBuffer ) );
11208 }
11209
11210 // wrapper function for command vkCmdDebugMarkerInsertEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerInsertEXT.html
11211 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDebugMarkerInsertEXT ), bool>::type>
11212 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerInsertEXT( const DebugMarkerMarkerInfoEXT * pMarkerInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11213 {
11214 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11215 d.vkCmdDebugMarkerInsertEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkDebugMarkerMarkerInfoEXT *>( pMarkerInfo ) );
11216 }
11217
11218 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11219 // wrapper function for command vkCmdDebugMarkerInsertEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDebugMarkerInsertEXT.html
11220 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDebugMarkerInsertEXT ), bool>::type>
11221 VULKAN_HPP_INLINE void CommandBuffer::debugMarkerInsertEXT( const DebugMarkerMarkerInfoEXT & markerInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11222 {
11223 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11224 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11225 VULKAN_HPP_ASSERT( d.vkCmdDebugMarkerInsertEXT && "Function <vkCmdDebugMarkerInsertEXT> requires <VK_EXT_debug_marker>" );
11226 # endif
11227
11228 d.vkCmdDebugMarkerInsertEXT( m_commandBuffer, reinterpret_cast<const VkDebugMarkerMarkerInfoEXT *>( &markerInfo ) );
11229 }
11230 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11231
11232 //=== VK_KHR_video_queue ===
11233
11234 // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see
11235 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html
11236 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoCapabilitiesKHR ), bool>::type>
11237 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getVideoCapabilitiesKHR( const VideoProfileInfoKHR * pVideoProfile,
11238 VideoCapabilitiesKHR * pCapabilities,
11239 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11240 {
11241 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11242 return static_cast<Result>( d.vkGetPhysicalDeviceVideoCapabilitiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
11243 reinterpret_cast<const VkVideoProfileInfoKHR *>( pVideoProfile ),
11244 reinterpret_cast<VkVideoCapabilitiesKHR *>( pCapabilities ) ) );
11245 }
11246
11247 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11248 // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see
11249 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html
11250 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoCapabilitiesKHR ), bool>::type>
11251 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VideoCapabilitiesKHR>::type
11252 PhysicalDevice::getVideoCapabilitiesKHR( const VideoProfileInfoKHR & videoProfile, Dispatch const & d ) const
11253 {
11254 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11255 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11256 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoCapabilitiesKHR && "Function <vkGetPhysicalDeviceVideoCapabilitiesKHR> requires <VK_KHR_video_queue>" );
11257 # endif
11258
11259 VideoCapabilitiesKHR capabilities;
11260 Result result = static_cast<Result>( d.vkGetPhysicalDeviceVideoCapabilitiesKHR(
11261 m_physicalDevice, reinterpret_cast<const VkVideoProfileInfoKHR *>( &videoProfile ), reinterpret_cast<VkVideoCapabilitiesKHR *>( &capabilities ) ) );
11262 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" );
11263
11264 return detail::createResultValueType( result, std::move( capabilities ) );
11265 }
11266
11267 // wrapper function for command vkGetPhysicalDeviceVideoCapabilitiesKHR, see
11268 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoCapabilitiesKHR.html
11269 template <typename X,
11270 typename Y,
11271 typename... Z,
11272 typename Dispatch,
11273 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoCapabilitiesKHR ), bool>::type>
11274 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
11275 PhysicalDevice::getVideoCapabilitiesKHR( const VideoProfileInfoKHR & videoProfile, Dispatch const & d ) const
11276 {
11277 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11278 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11279 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoCapabilitiesKHR && "Function <vkGetPhysicalDeviceVideoCapabilitiesKHR> requires <VK_KHR_video_queue>" );
11280 # endif
11281
11282 StructureChain<X, Y, Z...> structureChain;
11283 VideoCapabilitiesKHR & capabilities = structureChain.template get<VideoCapabilitiesKHR>();
11284 Result result = static_cast<Result>( d.vkGetPhysicalDeviceVideoCapabilitiesKHR(
11285 m_physicalDevice, reinterpret_cast<const VkVideoProfileInfoKHR *>( &videoProfile ), reinterpret_cast<VkVideoCapabilitiesKHR *>( &capabilities ) ) );
11286 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoCapabilitiesKHR" );
11287
11288 return detail::createResultValueType( result, std::move( structureChain ) );
11289 }
11290 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11291
11292 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
11293 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
11294 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoFormatPropertiesKHR ), bool>::type>
11295 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getVideoFormatPropertiesKHR( const PhysicalDeviceVideoFormatInfoKHR * pVideoFormatInfo,
11296 uint32_t * pVideoFormatPropertyCount,
11297 VideoFormatPropertiesKHR * pVideoFormatProperties,
11298 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11299 {
11300 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11301 return static_cast<Result>( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
11302 reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( pVideoFormatInfo ),
11303 pVideoFormatPropertyCount,
11304 reinterpret_cast<VkVideoFormatPropertiesKHR *>( pVideoFormatProperties ) ) );
11305 }
11306
11307 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11308 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
11309 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
11310 template <typename VideoFormatPropertiesKHRAllocator,
11311 typename Dispatch,
11312 typename std::enable_if<std::is_same<typename VideoFormatPropertiesKHRAllocator::value_type, VideoFormatPropertiesKHR>::value, int>::type,
11313 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoFormatPropertiesKHR ), bool>::type>
11314 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<VideoFormatPropertiesKHR, VideoFormatPropertiesKHRAllocator>>::type
11315 PhysicalDevice::getVideoFormatPropertiesKHR( const PhysicalDeviceVideoFormatInfoKHR & videoFormatInfo, Dispatch const & d ) const
11316 {
11317 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11318 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11319 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR &&
11320 "Function <vkGetPhysicalDeviceVideoFormatPropertiesKHR> requires <VK_KHR_video_queue>" );
11321 # endif
11322
11323 std::vector<VideoFormatPropertiesKHR, VideoFormatPropertiesKHRAllocator> videoFormatProperties;
11324 uint32_t videoFormatPropertyCount;
11325 Result result;
11326 do
11327 {
11328 result = static_cast<Result>( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR(
11329 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ), &videoFormatPropertyCount, nullptr ) );
11330 if ( ( result == Result::eSuccess ) && videoFormatPropertyCount )
11331 {
11332 videoFormatProperties.resize( videoFormatPropertyCount );
11333 result = static_cast<Result>(
11334 d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( m_physicalDevice,
11335 reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ),
11336 &videoFormatPropertyCount,
11337 reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
11338 }
11339 } while ( result == Result::eIncomplete );
11340 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
11341 VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
11342 if ( videoFormatPropertyCount < videoFormatProperties.size() )
11343 {
11344 videoFormatProperties.resize( videoFormatPropertyCount );
11345 }
11346 return detail::createResultValueType( result, std::move( videoFormatProperties ) );
11347 }
11348
11349 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
11350 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
11351 template <typename VideoFormatPropertiesKHRAllocator,
11352 typename Dispatch,
11353 typename std::enable_if<std::is_same<typename VideoFormatPropertiesKHRAllocator::value_type, VideoFormatPropertiesKHR>::value, int>::type,
11354 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoFormatPropertiesKHR ), bool>::type>
11355 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<VideoFormatPropertiesKHR, VideoFormatPropertiesKHRAllocator>>::type
11356 PhysicalDevice::getVideoFormatPropertiesKHR( const PhysicalDeviceVideoFormatInfoKHR & videoFormatInfo,
11357 VideoFormatPropertiesKHRAllocator const & videoFormatPropertiesKHRAllocator,
11358 Dispatch const & d ) const
11359 {
11360 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11361 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11362 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR &&
11363 "Function <vkGetPhysicalDeviceVideoFormatPropertiesKHR> requires <VK_KHR_video_queue>" );
11364 # endif
11365
11366 std::vector<VideoFormatPropertiesKHR, VideoFormatPropertiesKHRAllocator> videoFormatProperties( videoFormatPropertiesKHRAllocator );
11367 uint32_t videoFormatPropertyCount;
11368 Result result;
11369 do
11370 {
11371 result = static_cast<Result>( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR(
11372 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ), &videoFormatPropertyCount, nullptr ) );
11373 if ( ( result == Result::eSuccess ) && videoFormatPropertyCount )
11374 {
11375 videoFormatProperties.resize( videoFormatPropertyCount );
11376 result = static_cast<Result>(
11377 d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( m_physicalDevice,
11378 reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ),
11379 &videoFormatPropertyCount,
11380 reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
11381 }
11382 } while ( result == Result::eIncomplete );
11383 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
11384 VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
11385 if ( videoFormatPropertyCount < videoFormatProperties.size() )
11386 {
11387 videoFormatProperties.resize( videoFormatPropertyCount );
11388 }
11389 return detail::createResultValueType( result, std::move( videoFormatProperties ) );
11390 }
11391
11392 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
11393 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
11394 template <typename StructureChain,
11395 typename StructureChainAllocator,
11396 typename Dispatch,
11397 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
11398 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoFormatPropertiesKHR ), bool>::type>
11399 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain, StructureChainAllocator>>::type
11400 PhysicalDevice::getVideoFormatPropertiesKHR( const PhysicalDeviceVideoFormatInfoKHR & videoFormatInfo, Dispatch const & d ) const
11401 {
11402 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11403 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11404 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR &&
11405 "Function <vkGetPhysicalDeviceVideoFormatPropertiesKHR> requires <VK_KHR_video_queue>" );
11406 # endif
11407
11408 std::vector<StructureChain, StructureChainAllocator> structureChains;
11409 std::vector<VideoFormatPropertiesKHR> videoFormatProperties;
11410 uint32_t videoFormatPropertyCount;
11411 Result result;
11412 do
11413 {
11414 result = static_cast<Result>( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR(
11415 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ), &videoFormatPropertyCount, nullptr ) );
11416 if ( ( result == Result::eSuccess ) && videoFormatPropertyCount )
11417 {
11418 structureChains.resize( videoFormatPropertyCount );
11419 videoFormatProperties.resize( videoFormatPropertyCount );
11420 for ( uint32_t i = 0; i < videoFormatPropertyCount; i++ )
11421 {
11422 videoFormatProperties[i].pNext = structureChains[i].template get<VideoFormatPropertiesKHR>().pNext;
11423 }
11424 result = static_cast<Result>(
11425 d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( m_physicalDevice,
11426 reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ),
11427 &videoFormatPropertyCount,
11428 reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
11429 }
11430 } while ( result == Result::eIncomplete );
11431 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
11432 VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
11433 if ( videoFormatPropertyCount < videoFormatProperties.size() )
11434 {
11435 structureChains.resize( videoFormatPropertyCount );
11436 }
11437 for ( uint32_t i = 0; i < videoFormatPropertyCount; i++ )
11438 {
11439 structureChains[i].template get<VideoFormatPropertiesKHR>() = videoFormatProperties[i];
11440 }
11441 return detail::createResultValueType( result, std::move( structureChains ) );
11442 }
11443
11444 // wrapper function for command vkGetPhysicalDeviceVideoFormatPropertiesKHR, see
11445 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoFormatPropertiesKHR.html
11446 template <typename StructureChain,
11447 typename StructureChainAllocator,
11448 typename Dispatch,
11449 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
11450 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoFormatPropertiesKHR ), bool>::type>
11451 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain, StructureChainAllocator>>::type
11452 PhysicalDevice::getVideoFormatPropertiesKHR( const PhysicalDeviceVideoFormatInfoKHR & videoFormatInfo,
11453 StructureChainAllocator & structureChainAllocator,
11454 Dispatch const & d ) const
11455 {
11456 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11457 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11458 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR &&
11459 "Function <vkGetPhysicalDeviceVideoFormatPropertiesKHR> requires <VK_KHR_video_queue>" );
11460 # endif
11461
11462 std::vector<StructureChain, StructureChainAllocator> structureChains( structureChainAllocator );
11463 std::vector<VideoFormatPropertiesKHR> videoFormatProperties;
11464 uint32_t videoFormatPropertyCount;
11465 Result result;
11466 do
11467 {
11468 result = static_cast<Result>( d.vkGetPhysicalDeviceVideoFormatPropertiesKHR(
11469 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ), &videoFormatPropertyCount, nullptr ) );
11470 if ( ( result == Result::eSuccess ) && videoFormatPropertyCount )
11471 {
11472 structureChains.resize( videoFormatPropertyCount );
11473 videoFormatProperties.resize( videoFormatPropertyCount );
11474 for ( uint32_t i = 0; i < videoFormatPropertyCount; i++ )
11475 {
11476 videoFormatProperties[i].pNext = structureChains[i].template get<VideoFormatPropertiesKHR>().pNext;
11477 }
11478 result = static_cast<Result>(
11479 d.vkGetPhysicalDeviceVideoFormatPropertiesKHR( m_physicalDevice,
11480 reinterpret_cast<const VkPhysicalDeviceVideoFormatInfoKHR *>( &videoFormatInfo ),
11481 &videoFormatPropertyCount,
11482 reinterpret_cast<VkVideoFormatPropertiesKHR *>( videoFormatProperties.data() ) ) );
11483 }
11484 } while ( result == Result::eIncomplete );
11485 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoFormatPropertiesKHR" );
11486 VULKAN_HPP_ASSERT( videoFormatPropertyCount <= videoFormatProperties.size() );
11487 if ( videoFormatPropertyCount < videoFormatProperties.size() )
11488 {
11489 structureChains.resize( videoFormatPropertyCount );
11490 }
11491 for ( uint32_t i = 0; i < videoFormatPropertyCount; i++ )
11492 {
11493 structureChains[i].template get<VideoFormatPropertiesKHR>() = videoFormatProperties[i];
11494 }
11495 return detail::createResultValueType( result, std::move( structureChains ) );
11496 }
11497 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11498
11499 // wrapper function for command vkCreateVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionKHR.html
11500 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateVideoSessionKHR ), bool>::type>
11501 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createVideoSessionKHR( const VideoSessionCreateInfoKHR * pCreateInfo,
11502 const AllocationCallbacks * pAllocator,
11503 VideoSessionKHR * pVideoSession,
11504 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11505 {
11506 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11507 return static_cast<Result>( d.vkCreateVideoSessionKHR( static_cast<VkDevice>( m_device ),
11508 reinterpret_cast<const VkVideoSessionCreateInfoKHR *>( pCreateInfo ),
11509 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
11510 reinterpret_cast<VkVideoSessionKHR *>( pVideoSession ) ) );
11511 }
11512
11513 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11514 // wrapper function for command vkCreateVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionKHR.html
11515 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateVideoSessionKHR ), bool>::type>
11516 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VideoSessionKHR>::type
11517 Device::createVideoSessionKHR( const VideoSessionCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
11518 {
11519 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11520 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11521 VULKAN_HPP_ASSERT( d.vkCreateVideoSessionKHR && "Function <vkCreateVideoSessionKHR> requires <VK_KHR_video_queue>" );
11522 # endif
11523
11524 VideoSessionKHR videoSession;
11525 Result result = static_cast<Result>( d.vkCreateVideoSessionKHR( m_device,
11526 reinterpret_cast<const VkVideoSessionCreateInfoKHR *>( &createInfo ),
11527 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
11528 reinterpret_cast<VkVideoSessionKHR *>( &videoSession ) ) );
11529 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createVideoSessionKHR" );
11530
11531 return detail::createResultValueType( result, std::move( videoSession ) );
11532 }
11533
11534 # ifndef VULKAN_HPP_NO_SMART_HANDLE
11535 // wrapper function for command vkCreateVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionKHR.html
11536 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateVideoSessionKHR ), bool>::type>
11537 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<VideoSessionKHR, Dispatch>>::type
11538 Device::createVideoSessionKHRUnique( const VideoSessionCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
11539 {
11540 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11541 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11542 VULKAN_HPP_ASSERT( d.vkCreateVideoSessionKHR && "Function <vkCreateVideoSessionKHR> requires <VK_KHR_video_queue>" );
11543 # endif
11544
11545 VideoSessionKHR videoSession;
11546 Result result = static_cast<Result>( d.vkCreateVideoSessionKHR( m_device,
11547 reinterpret_cast<const VkVideoSessionCreateInfoKHR *>( &createInfo ),
11548 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
11549 reinterpret_cast<VkVideoSessionKHR *>( &videoSession ) ) );
11550 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createVideoSessionKHRUnique" );
11551
11552 return detail::createResultValueType(
11553 result, UniqueHandle<VideoSessionKHR, Dispatch>( videoSession, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
11554 }
11555 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
11556 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11557
11558 // wrapper function for command vkDestroyVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionKHR.html
11559 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionKHR ), bool>::type>
11560 VULKAN_HPP_INLINE void
11561 Device::destroyVideoSessionKHR( VideoSessionKHR videoSession, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11562 {
11563 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11564 d.vkDestroyVideoSessionKHR(
11565 static_cast<VkDevice>( m_device ), static_cast<VkVideoSessionKHR>( videoSession ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
11566 }
11567
11568 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11569 // wrapper function for command vkDestroyVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionKHR.html
11570 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionKHR ), bool>::type>
11571 VULKAN_HPP_INLINE void
11572 Device::destroyVideoSessionKHR( VideoSessionKHR videoSession, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11573 {
11574 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11575 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11576 VULKAN_HPP_ASSERT( d.vkDestroyVideoSessionKHR && "Function <vkDestroyVideoSessionKHR> requires <VK_KHR_video_queue>" );
11577 # endif
11578
11579 d.vkDestroyVideoSessionKHR( m_device, static_cast<VkVideoSessionKHR>( videoSession ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
11580 }
11581 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11582
11583 // wrapper function for command vkDestroyVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionKHR.html
11584 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionKHR ), bool>::type>
11585 VULKAN_HPP_INLINE void Device::destroy( VideoSessionKHR videoSession, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11586 {
11587 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11588 d.vkDestroyVideoSessionKHR(
11589 static_cast<VkDevice>( m_device ), static_cast<VkVideoSessionKHR>( videoSession ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
11590 }
11591
11592 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11593 // wrapper function for command vkDestroyVideoSessionKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionKHR.html
11594 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionKHR ), bool>::type>
11595 VULKAN_HPP_INLINE void
11596 Device::destroy( VideoSessionKHR videoSession, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11597 {
11598 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11599 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11600 VULKAN_HPP_ASSERT( d.vkDestroyVideoSessionKHR && "Function <vkDestroyVideoSessionKHR> requires <VK_KHR_video_queue>" );
11601 # endif
11602
11603 d.vkDestroyVideoSessionKHR( m_device, static_cast<VkVideoSessionKHR>( videoSession ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
11604 }
11605 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11606
11607 // wrapper function for command vkGetVideoSessionMemoryRequirementsKHR, see
11608 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetVideoSessionMemoryRequirementsKHR.html
11609 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetVideoSessionMemoryRequirementsKHR ), bool>::type>
11610 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getVideoSessionMemoryRequirementsKHR( VideoSessionKHR videoSession,
11611 uint32_t * pMemoryRequirementsCount,
11612 VideoSessionMemoryRequirementsKHR * pMemoryRequirements,
11613 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11614 {
11615 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11616 return static_cast<Result>( d.vkGetVideoSessionMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
11617 static_cast<VkVideoSessionKHR>( videoSession ),
11618 pMemoryRequirementsCount,
11619 reinterpret_cast<VkVideoSessionMemoryRequirementsKHR *>( pMemoryRequirements ) ) );
11620 }
11621
11622 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11623 // wrapper function for command vkGetVideoSessionMemoryRequirementsKHR, see
11624 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetVideoSessionMemoryRequirementsKHR.html
11625 template <
11626 typename VideoSessionMemoryRequirementsKHRAllocator,
11627 typename Dispatch,
11628 typename std::enable_if<std::is_same<typename VideoSessionMemoryRequirementsKHRAllocator::value_type, VideoSessionMemoryRequirementsKHR>::value, int>::type,
11629 typename std::enable_if<IS_DISPATCHED( vkGetVideoSessionMemoryRequirementsKHR ), bool>::type>
11630 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
11631 typename ResultValueType<std::vector<VideoSessionMemoryRequirementsKHR, VideoSessionMemoryRequirementsKHRAllocator>>::type
11632 Device::getVideoSessionMemoryRequirementsKHR( VideoSessionKHR videoSession, Dispatch const & d ) const
11633 {
11634 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11635 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11636 VULKAN_HPP_ASSERT( d.vkGetVideoSessionMemoryRequirementsKHR && "Function <vkGetVideoSessionMemoryRequirementsKHR> requires <VK_KHR_video_queue>" );
11637 # endif
11638
11639 std::vector<VideoSessionMemoryRequirementsKHR, VideoSessionMemoryRequirementsKHRAllocator> memoryRequirements;
11640 uint32_t memoryRequirementsCount;
11641 Result result;
11642 do
11643 {
11644 result = static_cast<Result>(
11645 d.vkGetVideoSessionMemoryRequirementsKHR( m_device, static_cast<VkVideoSessionKHR>( videoSession ), &memoryRequirementsCount, nullptr ) );
11646 if ( ( result == Result::eSuccess ) && memoryRequirementsCount )
11647 {
11648 memoryRequirements.resize( memoryRequirementsCount );
11649 result = static_cast<Result>(
11650 d.vkGetVideoSessionMemoryRequirementsKHR( m_device,
11651 static_cast<VkVideoSessionKHR>( videoSession ),
11652 &memoryRequirementsCount,
11653 reinterpret_cast<VkVideoSessionMemoryRequirementsKHR *>( memoryRequirements.data() ) ) );
11654 }
11655 } while ( result == Result::eIncomplete );
11656 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getVideoSessionMemoryRequirementsKHR" );
11657 VULKAN_HPP_ASSERT( memoryRequirementsCount <= memoryRequirements.size() );
11658 if ( memoryRequirementsCount < memoryRequirements.size() )
11659 {
11660 memoryRequirements.resize( memoryRequirementsCount );
11661 }
11662 return detail::createResultValueType( result, std::move( memoryRequirements ) );
11663 }
11664
11665 // wrapper function for command vkGetVideoSessionMemoryRequirementsKHR, see
11666 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetVideoSessionMemoryRequirementsKHR.html
11667 template <
11668 typename VideoSessionMemoryRequirementsKHRAllocator,
11669 typename Dispatch,
11670 typename std::enable_if<std::is_same<typename VideoSessionMemoryRequirementsKHRAllocator::value_type, VideoSessionMemoryRequirementsKHR>::value, int>::type,
11671 typename std::enable_if<IS_DISPATCHED( vkGetVideoSessionMemoryRequirementsKHR ), bool>::type>
11672 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
11673 typename ResultValueType<std::vector<VideoSessionMemoryRequirementsKHR, VideoSessionMemoryRequirementsKHRAllocator>>::type
11674 Device::getVideoSessionMemoryRequirementsKHR( VideoSessionKHR videoSession,
11675 VideoSessionMemoryRequirementsKHRAllocator const & videoSessionMemoryRequirementsKHRAllocator,
11676 Dispatch const & d ) const
11677 {
11678 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11679 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11680 VULKAN_HPP_ASSERT( d.vkGetVideoSessionMemoryRequirementsKHR && "Function <vkGetVideoSessionMemoryRequirementsKHR> requires <VK_KHR_video_queue>" );
11681 # endif
11682
11683 std::vector<VideoSessionMemoryRequirementsKHR, VideoSessionMemoryRequirementsKHRAllocator> memoryRequirements( videoSessionMemoryRequirementsKHRAllocator );
11684 uint32_t memoryRequirementsCount;
11685 Result result;
11686 do
11687 {
11688 result = static_cast<Result>(
11689 d.vkGetVideoSessionMemoryRequirementsKHR( m_device, static_cast<VkVideoSessionKHR>( videoSession ), &memoryRequirementsCount, nullptr ) );
11690 if ( ( result == Result::eSuccess ) && memoryRequirementsCount )
11691 {
11692 memoryRequirements.resize( memoryRequirementsCount );
11693 result = static_cast<Result>(
11694 d.vkGetVideoSessionMemoryRequirementsKHR( m_device,
11695 static_cast<VkVideoSessionKHR>( videoSession ),
11696 &memoryRequirementsCount,
11697 reinterpret_cast<VkVideoSessionMemoryRequirementsKHR *>( memoryRequirements.data() ) ) );
11698 }
11699 } while ( result == Result::eIncomplete );
11700 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getVideoSessionMemoryRequirementsKHR" );
11701 VULKAN_HPP_ASSERT( memoryRequirementsCount <= memoryRequirements.size() );
11702 if ( memoryRequirementsCount < memoryRequirements.size() )
11703 {
11704 memoryRequirements.resize( memoryRequirementsCount );
11705 }
11706 return detail::createResultValueType( result, std::move( memoryRequirements ) );
11707 }
11708 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11709
11710 // wrapper function for command vkBindVideoSessionMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindVideoSessionMemoryKHR.html
11711 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindVideoSessionMemoryKHR ), bool>::type>
11712 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindVideoSessionMemoryKHR( VideoSessionKHR videoSession,
11713 uint32_t bindSessionMemoryInfoCount,
11714 const BindVideoSessionMemoryInfoKHR * pBindSessionMemoryInfos,
11715 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11716 {
11717 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11718 return static_cast<Result>( d.vkBindVideoSessionMemoryKHR( static_cast<VkDevice>( m_device ),
11719 static_cast<VkVideoSessionKHR>( videoSession ),
11720 bindSessionMemoryInfoCount,
11721 reinterpret_cast<const VkBindVideoSessionMemoryInfoKHR *>( pBindSessionMemoryInfos ) ) );
11722 }
11723
11724 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11725 // wrapper function for command vkBindVideoSessionMemoryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindVideoSessionMemoryKHR.html
11726 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindVideoSessionMemoryKHR ), bool>::type>
11727 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindVideoSessionMemoryKHR(
11728 VideoSessionKHR videoSession, ArrayProxy<const BindVideoSessionMemoryInfoKHR> const & bindSessionMemoryInfos, Dispatch const & d ) const
11729 {
11730 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11731 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11732 VULKAN_HPP_ASSERT( d.vkBindVideoSessionMemoryKHR && "Function <vkBindVideoSessionMemoryKHR> requires <VK_KHR_video_queue>" );
11733 # endif
11734
11735 Result result =
11736 static_cast<Result>( d.vkBindVideoSessionMemoryKHR( m_device,
11737 static_cast<VkVideoSessionKHR>( videoSession ),
11738 bindSessionMemoryInfos.size(),
11739 reinterpret_cast<const VkBindVideoSessionMemoryInfoKHR *>( bindSessionMemoryInfos.data() ) ) );
11740 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindVideoSessionMemoryKHR" );
11741
11742 return detail::createResultValueType( result );
11743 }
11744 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11745
11746 // wrapper function for command vkCreateVideoSessionParametersKHR, see
11747 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionParametersKHR.html
11748 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateVideoSessionParametersKHR ), bool>::type>
11749 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createVideoSessionParametersKHR( const VideoSessionParametersCreateInfoKHR * pCreateInfo,
11750 const AllocationCallbacks * pAllocator,
11751 VideoSessionParametersKHR * pVideoSessionParameters,
11752 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11753 {
11754 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11755 return static_cast<Result>( d.vkCreateVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
11756 reinterpret_cast<const VkVideoSessionParametersCreateInfoKHR *>( pCreateInfo ),
11757 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
11758 reinterpret_cast<VkVideoSessionParametersKHR *>( pVideoSessionParameters ) ) );
11759 }
11760
11761 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11762 // wrapper function for command vkCreateVideoSessionParametersKHR, see
11763 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionParametersKHR.html
11764 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateVideoSessionParametersKHR ), bool>::type>
11765 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VideoSessionParametersKHR>::type Device::createVideoSessionParametersKHR(
11766 const VideoSessionParametersCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
11767 {
11768 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11769 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11770 VULKAN_HPP_ASSERT( d.vkCreateVideoSessionParametersKHR && "Function <vkCreateVideoSessionParametersKHR> requires <VK_KHR_video_queue>" );
11771 # endif
11772
11773 VideoSessionParametersKHR videoSessionParameters;
11774 Result result = static_cast<Result>( d.vkCreateVideoSessionParametersKHR( m_device,
11775 reinterpret_cast<const VkVideoSessionParametersCreateInfoKHR *>( &createInfo ),
11776 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
11777 reinterpret_cast<VkVideoSessionParametersKHR *>( &videoSessionParameters ) ) );
11778 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createVideoSessionParametersKHR" );
11779
11780 return detail::createResultValueType( result, std::move( videoSessionParameters ) );
11781 }
11782
11783 # ifndef VULKAN_HPP_NO_SMART_HANDLE
11784 // wrapper function for command vkCreateVideoSessionParametersKHR, see
11785 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateVideoSessionParametersKHR.html
11786 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateVideoSessionParametersKHR ), bool>::type>
11787 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<VideoSessionParametersKHR, Dispatch>>::type
11788 Device::createVideoSessionParametersKHRUnique( const VideoSessionParametersCreateInfoKHR & createInfo,
11789 Optional<const AllocationCallbacks> allocator,
11790 Dispatch const & d ) const
11791 {
11792 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11793 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11794 VULKAN_HPP_ASSERT( d.vkCreateVideoSessionParametersKHR && "Function <vkCreateVideoSessionParametersKHR> requires <VK_KHR_video_queue>" );
11795 # endif
11796
11797 VideoSessionParametersKHR videoSessionParameters;
11798 Result result = static_cast<Result>( d.vkCreateVideoSessionParametersKHR( m_device,
11799 reinterpret_cast<const VkVideoSessionParametersCreateInfoKHR *>( &createInfo ),
11800 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
11801 reinterpret_cast<VkVideoSessionParametersKHR *>( &videoSessionParameters ) ) );
11802 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createVideoSessionParametersKHRUnique" );
11803
11804 return detail::createResultValueType(
11805 result, UniqueHandle<VideoSessionParametersKHR, Dispatch>( videoSessionParameters, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
11806 }
11807 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
11808 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11809
11810 // wrapper function for command vkUpdateVideoSessionParametersKHR, see
11811 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateVideoSessionParametersKHR.html
11812 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateVideoSessionParametersKHR ), bool>::type>
11813 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::updateVideoSessionParametersKHR( VideoSessionParametersKHR videoSessionParameters,
11814 const VideoSessionParametersUpdateInfoKHR * pUpdateInfo,
11815 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11816 {
11817 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11818 return static_cast<Result>( d.vkUpdateVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
11819 static_cast<VkVideoSessionParametersKHR>( videoSessionParameters ),
11820 reinterpret_cast<const VkVideoSessionParametersUpdateInfoKHR *>( pUpdateInfo ) ) );
11821 }
11822
11823 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11824 // wrapper function for command vkUpdateVideoSessionParametersKHR, see
11825 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateVideoSessionParametersKHR.html
11826 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateVideoSessionParametersKHR ), bool>::type>
11827 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::updateVideoSessionParametersKHR(
11828 VideoSessionParametersKHR videoSessionParameters, const VideoSessionParametersUpdateInfoKHR & updateInfo, Dispatch const & d ) const
11829 {
11830 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11831 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11832 VULKAN_HPP_ASSERT( d.vkUpdateVideoSessionParametersKHR && "Function <vkUpdateVideoSessionParametersKHR> requires <VK_KHR_video_queue>" );
11833 # endif
11834
11835 Result result =
11836 static_cast<Result>( d.vkUpdateVideoSessionParametersKHR( m_device,
11837 static_cast<VkVideoSessionParametersKHR>( videoSessionParameters ),
11838 reinterpret_cast<const VkVideoSessionParametersUpdateInfoKHR *>( &updateInfo ) ) );
11839 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::updateVideoSessionParametersKHR" );
11840
11841 return detail::createResultValueType( result );
11842 }
11843 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11844
11845 // wrapper function for command vkDestroyVideoSessionParametersKHR, see
11846 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionParametersKHR.html
11847 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionParametersKHR ), bool>::type>
11848 VULKAN_HPP_INLINE void Device::destroyVideoSessionParametersKHR( VideoSessionParametersKHR videoSessionParameters,
11849 const AllocationCallbacks * pAllocator,
11850 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11851 {
11852 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11853 d.vkDestroyVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
11854 static_cast<VkVideoSessionParametersKHR>( videoSessionParameters ),
11855 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
11856 }
11857
11858 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11859 // wrapper function for command vkDestroyVideoSessionParametersKHR, see
11860 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionParametersKHR.html
11861 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionParametersKHR ), bool>::type>
11862 VULKAN_HPP_INLINE void Device::destroyVideoSessionParametersKHR( VideoSessionParametersKHR videoSessionParameters,
11863 Optional<const AllocationCallbacks> allocator,
11864 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11865 {
11866 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11867 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11868 VULKAN_HPP_ASSERT( d.vkDestroyVideoSessionParametersKHR && "Function <vkDestroyVideoSessionParametersKHR> requires <VK_KHR_video_queue>" );
11869 # endif
11870
11871 d.vkDestroyVideoSessionParametersKHR(
11872 m_device, static_cast<VkVideoSessionParametersKHR>( videoSessionParameters ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
11873 }
11874 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11875
11876 // wrapper function for command vkDestroyVideoSessionParametersKHR, see
11877 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionParametersKHR.html
11878 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionParametersKHR ), bool>::type>
11879 VULKAN_HPP_INLINE void
11880 Device::destroy( VideoSessionParametersKHR videoSessionParameters, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11881 {
11882 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11883 d.vkDestroyVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
11884 static_cast<VkVideoSessionParametersKHR>( videoSessionParameters ),
11885 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
11886 }
11887
11888 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11889 // wrapper function for command vkDestroyVideoSessionParametersKHR, see
11890 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyVideoSessionParametersKHR.html
11891 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyVideoSessionParametersKHR ), bool>::type>
11892 VULKAN_HPP_INLINE void Device::destroy( VideoSessionParametersKHR videoSessionParameters,
11893 Optional<const AllocationCallbacks> allocator,
11894 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11895 {
11896 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11897 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11898 VULKAN_HPP_ASSERT( d.vkDestroyVideoSessionParametersKHR && "Function <vkDestroyVideoSessionParametersKHR> requires <VK_KHR_video_queue>" );
11899 # endif
11900
11901 d.vkDestroyVideoSessionParametersKHR(
11902 m_device, static_cast<VkVideoSessionParametersKHR>( videoSessionParameters ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
11903 }
11904 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11905
11906 // wrapper function for command vkCmdBeginVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginVideoCodingKHR.html
11907 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginVideoCodingKHR ), bool>::type>
11908 VULKAN_HPP_INLINE void CommandBuffer::beginVideoCodingKHR( const VideoBeginCodingInfoKHR * pBeginInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11909 {
11910 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11911 d.vkCmdBeginVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkVideoBeginCodingInfoKHR *>( pBeginInfo ) );
11912 }
11913
11914 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11915 // wrapper function for command vkCmdBeginVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginVideoCodingKHR.html
11916 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginVideoCodingKHR ), bool>::type>
11917 VULKAN_HPP_INLINE void CommandBuffer::beginVideoCodingKHR( const VideoBeginCodingInfoKHR & beginInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11918 {
11919 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11920 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11921 VULKAN_HPP_ASSERT( d.vkCmdBeginVideoCodingKHR && "Function <vkCmdBeginVideoCodingKHR> requires <VK_KHR_video_queue>" );
11922 # endif
11923
11924 d.vkCmdBeginVideoCodingKHR( m_commandBuffer, reinterpret_cast<const VkVideoBeginCodingInfoKHR *>( &beginInfo ) );
11925 }
11926 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11927
11928 // wrapper function for command vkCmdEndVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndVideoCodingKHR.html
11929 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndVideoCodingKHR ), bool>::type>
11930 VULKAN_HPP_INLINE void CommandBuffer::endVideoCodingKHR( const VideoEndCodingInfoKHR * pEndCodingInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11931 {
11932 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11933 d.vkCmdEndVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkVideoEndCodingInfoKHR *>( pEndCodingInfo ) );
11934 }
11935
11936 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11937 // wrapper function for command vkCmdEndVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndVideoCodingKHR.html
11938 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndVideoCodingKHR ), bool>::type>
11939 VULKAN_HPP_INLINE void CommandBuffer::endVideoCodingKHR( const VideoEndCodingInfoKHR & endCodingInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11940 {
11941 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11942 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11943 VULKAN_HPP_ASSERT( d.vkCmdEndVideoCodingKHR && "Function <vkCmdEndVideoCodingKHR> requires <VK_KHR_video_queue>" );
11944 # endif
11945
11946 d.vkCmdEndVideoCodingKHR( m_commandBuffer, reinterpret_cast<const VkVideoEndCodingInfoKHR *>( &endCodingInfo ) );
11947 }
11948 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11949
11950 // wrapper function for command vkCmdControlVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdControlVideoCodingKHR.html
11951 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdControlVideoCodingKHR ), bool>::type>
11952 VULKAN_HPP_INLINE void CommandBuffer::controlVideoCodingKHR( const VideoCodingControlInfoKHR * pCodingControlInfo,
11953 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11954 {
11955 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11956 d.vkCmdControlVideoCodingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
11957 reinterpret_cast<const VkVideoCodingControlInfoKHR *>( pCodingControlInfo ) );
11958 }
11959
11960 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11961 // wrapper function for command vkCmdControlVideoCodingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdControlVideoCodingKHR.html
11962 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdControlVideoCodingKHR ), bool>::type>
11963 VULKAN_HPP_INLINE void CommandBuffer::controlVideoCodingKHR( const VideoCodingControlInfoKHR & codingControlInfo,
11964 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11965 {
11966 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11967 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11968 VULKAN_HPP_ASSERT( d.vkCmdControlVideoCodingKHR && "Function <vkCmdControlVideoCodingKHR> requires <VK_KHR_video_queue>" );
11969 # endif
11970
11971 d.vkCmdControlVideoCodingKHR( m_commandBuffer, reinterpret_cast<const VkVideoCodingControlInfoKHR *>( &codingControlInfo ) );
11972 }
11973 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11974
11975 //=== VK_KHR_video_decode_queue ===
11976
11977 // wrapper function for command vkCmdDecodeVideoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecodeVideoKHR.html
11978 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecodeVideoKHR ), bool>::type>
11979 VULKAN_HPP_INLINE void CommandBuffer::decodeVideoKHR( const VideoDecodeInfoKHR * pDecodeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11980 {
11981 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11982 d.vkCmdDecodeVideoKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkVideoDecodeInfoKHR *>( pDecodeInfo ) );
11983 }
11984
11985 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
11986 // wrapper function for command vkCmdDecodeVideoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecodeVideoKHR.html
11987 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecodeVideoKHR ), bool>::type>
11988 VULKAN_HPP_INLINE void CommandBuffer::decodeVideoKHR( const VideoDecodeInfoKHR & decodeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
11989 {
11990 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
11991 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
11992 VULKAN_HPP_ASSERT( d.vkCmdDecodeVideoKHR && "Function <vkCmdDecodeVideoKHR> requires <VK_KHR_video_decode_queue>" );
11993 # endif
11994
11995 d.vkCmdDecodeVideoKHR( m_commandBuffer, reinterpret_cast<const VkVideoDecodeInfoKHR *>( &decodeInfo ) );
11996 }
11997 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
11998
11999 //=== VK_EXT_transform_feedback ===
12000
12001 // wrapper function for command vkCmdBindTransformFeedbackBuffersEXT, see
12002 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTransformFeedbackBuffersEXT.html
12003 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindTransformFeedbackBuffersEXT ), bool>::type>
12004 VULKAN_HPP_INLINE void CommandBuffer::bindTransformFeedbackBuffersEXT( uint32_t firstBinding,
12005 uint32_t bindingCount,
12006 const Buffer * pBuffers,
12007 const DeviceSize * pOffsets,
12008 const DeviceSize * pSizes,
12009 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12010 {
12011 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12012 d.vkCmdBindTransformFeedbackBuffersEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
12013 firstBinding,
12014 bindingCount,
12015 reinterpret_cast<const VkBuffer *>( pBuffers ),
12016 reinterpret_cast<const VkDeviceSize *>( pOffsets ),
12017 reinterpret_cast<const VkDeviceSize *>( pSizes ) );
12018 }
12019
12020 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12021 // wrapper function for command vkCmdBindTransformFeedbackBuffersEXT, see
12022 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTransformFeedbackBuffersEXT.html
12023 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindTransformFeedbackBuffersEXT ), bool>::type>
12024 VULKAN_HPP_INLINE void CommandBuffer::bindTransformFeedbackBuffersEXT( uint32_t firstBinding,
12025 ArrayProxy<const Buffer> const & buffers,
12026 ArrayProxy<const DeviceSize> const & offsets,
12027 ArrayProxy<const DeviceSize> const & sizes,
12028 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
12029 {
12030 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12031 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12032 VULKAN_HPP_ASSERT( d.vkCmdBindTransformFeedbackBuffersEXT && "Function <vkCmdBindTransformFeedbackBuffersEXT> requires <VK_EXT_transform_feedback>" );
12033 # endif
12034 # ifdef VULKAN_HPP_NO_EXCEPTIONS
12035 VULKAN_HPP_ASSERT( buffers.size() == offsets.size() );
12036 VULKAN_HPP_ASSERT( sizes.empty() || buffers.size() == sizes.size() );
12037 # else
12038 if ( buffers.size() != offsets.size() )
12039 {
12040 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindTransformFeedbackBuffersEXT: buffers.size() != offsets.size()" );
12041 }
12042 if ( !sizes.empty() && buffers.size() != sizes.size() )
12043 {
12044 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindTransformFeedbackBuffersEXT: buffers.size() != sizes.size()" );
12045 }
12046 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
12047
12048 d.vkCmdBindTransformFeedbackBuffersEXT( m_commandBuffer,
12049 firstBinding,
12050 buffers.size(),
12051 reinterpret_cast<const VkBuffer *>( buffers.data() ),
12052 reinterpret_cast<const VkDeviceSize *>( offsets.data() ),
12053 reinterpret_cast<const VkDeviceSize *>( sizes.data() ) );
12054 }
12055 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12056
12057 // wrapper function for command vkCmdBeginTransformFeedbackEXT, see
12058 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginTransformFeedbackEXT.html
12059 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginTransformFeedbackEXT ), bool>::type>
12060 VULKAN_HPP_INLINE void CommandBuffer::beginTransformFeedbackEXT( uint32_t firstCounterBuffer,
12061 uint32_t counterBufferCount,
12062 const Buffer * pCounterBuffers,
12063 const DeviceSize * pCounterBufferOffsets,
12064 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12065 {
12066 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12067 d.vkCmdBeginTransformFeedbackEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
12068 firstCounterBuffer,
12069 counterBufferCount,
12070 reinterpret_cast<const VkBuffer *>( pCounterBuffers ),
12071 reinterpret_cast<const VkDeviceSize *>( pCounterBufferOffsets ) );
12072 }
12073
12074 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12075 // wrapper function for command vkCmdBeginTransformFeedbackEXT, see
12076 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginTransformFeedbackEXT.html
12077 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginTransformFeedbackEXT ), bool>::type>
12078 VULKAN_HPP_INLINE void CommandBuffer::beginTransformFeedbackEXT( uint32_t firstCounterBuffer,
12079 ArrayProxy<const Buffer> const & counterBuffers,
12080 ArrayProxy<const DeviceSize> const & counterBufferOffsets,
12081 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
12082 {
12083 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12084 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12085 VULKAN_HPP_ASSERT( d.vkCmdBeginTransformFeedbackEXT && "Function <vkCmdBeginTransformFeedbackEXT> requires <VK_EXT_transform_feedback>" );
12086 # endif
12087 # ifdef VULKAN_HPP_NO_EXCEPTIONS
12088 VULKAN_HPP_ASSERT( counterBufferOffsets.empty() || counterBuffers.size() == counterBufferOffsets.size() );
12089 # else
12090 if ( !counterBufferOffsets.empty() && counterBuffers.size() != counterBufferOffsets.size() )
12091 {
12092 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::beginTransformFeedbackEXT: counterBuffers.size() != counterBufferOffsets.size()" );
12093 }
12094 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
12095
12096 d.vkCmdBeginTransformFeedbackEXT( m_commandBuffer,
12097 firstCounterBuffer,
12098 counterBuffers.size(),
12099 reinterpret_cast<const VkBuffer *>( counterBuffers.data() ),
12100 reinterpret_cast<const VkDeviceSize *>( counterBufferOffsets.data() ) );
12101 }
12102 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12103
12104 // wrapper function for command vkCmdEndTransformFeedbackEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndTransformFeedbackEXT.html
12105 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndTransformFeedbackEXT ), bool>::type>
12106 VULKAN_HPP_INLINE void CommandBuffer::endTransformFeedbackEXT( uint32_t firstCounterBuffer,
12107 uint32_t counterBufferCount,
12108 const Buffer * pCounterBuffers,
12109 const DeviceSize * pCounterBufferOffsets,
12110 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12111 {
12112 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12113 d.vkCmdEndTransformFeedbackEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
12114 firstCounterBuffer,
12115 counterBufferCount,
12116 reinterpret_cast<const VkBuffer *>( pCounterBuffers ),
12117 reinterpret_cast<const VkDeviceSize *>( pCounterBufferOffsets ) );
12118 }
12119
12120 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12121 // wrapper function for command vkCmdEndTransformFeedbackEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndTransformFeedbackEXT.html
12122 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndTransformFeedbackEXT ), bool>::type>
12123 VULKAN_HPP_INLINE void CommandBuffer::endTransformFeedbackEXT( uint32_t firstCounterBuffer,
12124 ArrayProxy<const Buffer> const & counterBuffers,
12125 ArrayProxy<const DeviceSize> const & counterBufferOffsets,
12126 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
12127 {
12128 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12129 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12130 VULKAN_HPP_ASSERT( d.vkCmdEndTransformFeedbackEXT && "Function <vkCmdEndTransformFeedbackEXT> requires <VK_EXT_transform_feedback>" );
12131 # endif
12132 # ifdef VULKAN_HPP_NO_EXCEPTIONS
12133 VULKAN_HPP_ASSERT( counterBufferOffsets.empty() || counterBuffers.size() == counterBufferOffsets.size() );
12134 # else
12135 if ( !counterBufferOffsets.empty() && counterBuffers.size() != counterBufferOffsets.size() )
12136 {
12137 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::endTransformFeedbackEXT: counterBuffers.size() != counterBufferOffsets.size()" );
12138 }
12139 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
12140
12141 d.vkCmdEndTransformFeedbackEXT( m_commandBuffer,
12142 firstCounterBuffer,
12143 counterBuffers.size(),
12144 reinterpret_cast<const VkBuffer *>( counterBuffers.data() ),
12145 reinterpret_cast<const VkDeviceSize *>( counterBufferOffsets.data() ) );
12146 }
12147 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12148
12149 // wrapper function for command vkCmdBeginQueryIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginQueryIndexedEXT.html
12150 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginQueryIndexedEXT ), bool>::type>
12151 VULKAN_HPP_INLINE void CommandBuffer::beginQueryIndexedEXT(
12152 QueryPool queryPool, uint32_t query, QueryControlFlags flags, uint32_t index, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12153 {
12154 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12155 d.vkCmdBeginQueryIndexedEXT(
12156 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), query, static_cast<VkQueryControlFlags>( flags ), index );
12157 }
12158
12159 // wrapper function for command vkCmdEndQueryIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndQueryIndexedEXT.html
12160 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndQueryIndexedEXT ), bool>::type>
12161 VULKAN_HPP_INLINE void CommandBuffer::endQueryIndexedEXT( QueryPool queryPool, uint32_t query, uint32_t index, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12162 {
12163 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12164 d.vkCmdEndQueryIndexedEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkQueryPool>( queryPool ), query, index );
12165 }
12166
12167 // wrapper function for command vkCmdDrawIndirectByteCountEXT, see
12168 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectByteCountEXT.html
12169 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirectByteCountEXT ), bool>::type>
12170 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectByteCountEXT( uint32_t instanceCount,
12171 uint32_t firstInstance,
12172 Buffer counterBuffer,
12173 DeviceSize counterBufferOffset,
12174 uint32_t counterOffset,
12175 uint32_t vertexStride,
12176 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12177 {
12178 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12179 d.vkCmdDrawIndirectByteCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
12180 instanceCount,
12181 firstInstance,
12182 static_cast<VkBuffer>( counterBuffer ),
12183 static_cast<VkDeviceSize>( counterBufferOffset ),
12184 counterOffset,
12185 vertexStride );
12186 }
12187
12188 //=== VK_NVX_binary_import ===
12189
12190 // wrapper function for command vkCreateCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuModuleNVX.html
12191 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCuModuleNVX ), bool>::type>
12192 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createCuModuleNVX( const CuModuleCreateInfoNVX * pCreateInfo,
12193 const AllocationCallbacks * pAllocator,
12194 CuModuleNVX * pModule,
12195 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12196 {
12197 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12198 return static_cast<Result>( d.vkCreateCuModuleNVX( static_cast<VkDevice>( m_device ),
12199 reinterpret_cast<const VkCuModuleCreateInfoNVX *>( pCreateInfo ),
12200 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
12201 reinterpret_cast<VkCuModuleNVX *>( pModule ) ) );
12202 }
12203
12204 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12205 // wrapper function for command vkCreateCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuModuleNVX.html
12206 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCuModuleNVX ), bool>::type>
12207 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CuModuleNVX>::type
12208 Device::createCuModuleNVX( const CuModuleCreateInfoNVX & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
12209 {
12210 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12211 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12212 VULKAN_HPP_ASSERT( d.vkCreateCuModuleNVX && "Function <vkCreateCuModuleNVX> requires <VK_NVX_binary_import>" );
12213 # endif
12214
12215 CuModuleNVX module;
12216 Result result = static_cast<Result>( d.vkCreateCuModuleNVX( m_device,
12217 reinterpret_cast<const VkCuModuleCreateInfoNVX *>( &createInfo ),
12218 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
12219 reinterpret_cast<VkCuModuleNVX *>( &module ) ) );
12220 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCuModuleNVX" );
12221
12222 return detail::createResultValueType( result, std::move( module ) );
12223 }
12224
12225 # ifndef VULKAN_HPP_NO_SMART_HANDLE
12226 // wrapper function for command vkCreateCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuModuleNVX.html
12227 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCuModuleNVX ), bool>::type>
12228 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<CuModuleNVX, Dispatch>>::type
12229 Device::createCuModuleNVXUnique( const CuModuleCreateInfoNVX & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
12230 {
12231 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12232 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12233 VULKAN_HPP_ASSERT( d.vkCreateCuModuleNVX && "Function <vkCreateCuModuleNVX> requires <VK_NVX_binary_import>" );
12234 # endif
12235
12236 CuModuleNVX module;
12237 Result result = static_cast<Result>( d.vkCreateCuModuleNVX( m_device,
12238 reinterpret_cast<const VkCuModuleCreateInfoNVX *>( &createInfo ),
12239 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
12240 reinterpret_cast<VkCuModuleNVX *>( &module ) ) );
12241 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCuModuleNVXUnique" );
12242
12243 return detail::createResultValueType( result,
12244 UniqueHandle<CuModuleNVX, Dispatch>( module, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
12245 }
12246 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
12247 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12248
12249 // wrapper function for command vkCreateCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuFunctionNVX.html
12250 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCuFunctionNVX ), bool>::type>
12251 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createCuFunctionNVX( const CuFunctionCreateInfoNVX * pCreateInfo,
12252 const AllocationCallbacks * pAllocator,
12253 CuFunctionNVX * pFunction,
12254 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12255 {
12256 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12257 return static_cast<Result>( d.vkCreateCuFunctionNVX( static_cast<VkDevice>( m_device ),
12258 reinterpret_cast<const VkCuFunctionCreateInfoNVX *>( pCreateInfo ),
12259 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
12260 reinterpret_cast<VkCuFunctionNVX *>( pFunction ) ) );
12261 }
12262
12263 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12264 // wrapper function for command vkCreateCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuFunctionNVX.html
12265 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCuFunctionNVX ), bool>::type>
12266 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CuFunctionNVX>::type
12267 Device::createCuFunctionNVX( const CuFunctionCreateInfoNVX & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
12268 {
12269 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12270 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12271 VULKAN_HPP_ASSERT( d.vkCreateCuFunctionNVX && "Function <vkCreateCuFunctionNVX> requires <VK_NVX_binary_import>" );
12272 # endif
12273
12274 CuFunctionNVX function;
12275 Result result = static_cast<Result>( d.vkCreateCuFunctionNVX( m_device,
12276 reinterpret_cast<const VkCuFunctionCreateInfoNVX *>( &createInfo ),
12277 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
12278 reinterpret_cast<VkCuFunctionNVX *>( &function ) ) );
12279 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCuFunctionNVX" );
12280
12281 return detail::createResultValueType( result, std::move( function ) );
12282 }
12283
12284 # ifndef VULKAN_HPP_NO_SMART_HANDLE
12285 // wrapper function for command vkCreateCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCuFunctionNVX.html
12286 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCuFunctionNVX ), bool>::type>
12287 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<CuFunctionNVX, Dispatch>>::type
12288 Device::createCuFunctionNVXUnique( const CuFunctionCreateInfoNVX & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
12289 {
12290 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12291 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12292 VULKAN_HPP_ASSERT( d.vkCreateCuFunctionNVX && "Function <vkCreateCuFunctionNVX> requires <VK_NVX_binary_import>" );
12293 # endif
12294
12295 CuFunctionNVX function;
12296 Result result = static_cast<Result>( d.vkCreateCuFunctionNVX( m_device,
12297 reinterpret_cast<const VkCuFunctionCreateInfoNVX *>( &createInfo ),
12298 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
12299 reinterpret_cast<VkCuFunctionNVX *>( &function ) ) );
12300 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCuFunctionNVXUnique" );
12301
12302 return detail::createResultValueType( result,
12303 UniqueHandle<CuFunctionNVX, Dispatch>( function, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
12304 }
12305 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
12306 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12307
12308 // wrapper function for command vkDestroyCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuModuleNVX.html
12309 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuModuleNVX ), bool>::type>
12310 VULKAN_HPP_INLINE void Device::destroyCuModuleNVX( CuModuleNVX module, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12311 {
12312 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12313 d.vkDestroyCuModuleNVX(
12314 static_cast<VkDevice>( m_device ), static_cast<VkCuModuleNVX>( module ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
12315 }
12316
12317 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12318 // wrapper function for command vkDestroyCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuModuleNVX.html
12319 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuModuleNVX ), bool>::type>
12320 VULKAN_HPP_INLINE void
12321 Device::destroyCuModuleNVX( CuModuleNVX module, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12322 {
12323 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12324 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12325 VULKAN_HPP_ASSERT( d.vkDestroyCuModuleNVX && "Function <vkDestroyCuModuleNVX> requires <VK_NVX_binary_import>" );
12326 # endif
12327
12328 d.vkDestroyCuModuleNVX( m_device, static_cast<VkCuModuleNVX>( module ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
12329 }
12330 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12331
12332 // wrapper function for command vkDestroyCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuModuleNVX.html
12333 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuModuleNVX ), bool>::type>
12334 VULKAN_HPP_INLINE void Device::destroy( CuModuleNVX module, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12335 {
12336 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12337 d.vkDestroyCuModuleNVX(
12338 static_cast<VkDevice>( m_device ), static_cast<VkCuModuleNVX>( module ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
12339 }
12340
12341 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12342 // wrapper function for command vkDestroyCuModuleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuModuleNVX.html
12343 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuModuleNVX ), bool>::type>
12344 VULKAN_HPP_INLINE void Device::destroy( CuModuleNVX module, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12345 {
12346 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12347 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12348 VULKAN_HPP_ASSERT( d.vkDestroyCuModuleNVX && "Function <vkDestroyCuModuleNVX> requires <VK_NVX_binary_import>" );
12349 # endif
12350
12351 d.vkDestroyCuModuleNVX( m_device, static_cast<VkCuModuleNVX>( module ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
12352 }
12353 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12354
12355 // wrapper function for command vkDestroyCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuFunctionNVX.html
12356 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuFunctionNVX ), bool>::type>
12357 VULKAN_HPP_INLINE void
12358 Device::destroyCuFunctionNVX( CuFunctionNVX function, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12359 {
12360 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12361 d.vkDestroyCuFunctionNVX(
12362 static_cast<VkDevice>( m_device ), static_cast<VkCuFunctionNVX>( function ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
12363 }
12364
12365 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12366 // wrapper function for command vkDestroyCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuFunctionNVX.html
12367 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuFunctionNVX ), bool>::type>
12368 VULKAN_HPP_INLINE void
12369 Device::destroyCuFunctionNVX( CuFunctionNVX function, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12370 {
12371 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12372 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12373 VULKAN_HPP_ASSERT( d.vkDestroyCuFunctionNVX && "Function <vkDestroyCuFunctionNVX> requires <VK_NVX_binary_import>" );
12374 # endif
12375
12376 d.vkDestroyCuFunctionNVX( m_device, static_cast<VkCuFunctionNVX>( function ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
12377 }
12378 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12379
12380 // wrapper function for command vkDestroyCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuFunctionNVX.html
12381 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuFunctionNVX ), bool>::type>
12382 VULKAN_HPP_INLINE void Device::destroy( CuFunctionNVX function, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12383 {
12384 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12385 d.vkDestroyCuFunctionNVX(
12386 static_cast<VkDevice>( m_device ), static_cast<VkCuFunctionNVX>( function ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
12387 }
12388
12389 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12390 // wrapper function for command vkDestroyCuFunctionNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCuFunctionNVX.html
12391 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCuFunctionNVX ), bool>::type>
12392 VULKAN_HPP_INLINE void Device::destroy( CuFunctionNVX function, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12393 {
12394 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12395 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12396 VULKAN_HPP_ASSERT( d.vkDestroyCuFunctionNVX && "Function <vkDestroyCuFunctionNVX> requires <VK_NVX_binary_import>" );
12397 # endif
12398
12399 d.vkDestroyCuFunctionNVX( m_device, static_cast<VkCuFunctionNVX>( function ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
12400 }
12401 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12402
12403 // wrapper function for command vkCmdCuLaunchKernelNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCuLaunchKernelNVX.html
12404 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCuLaunchKernelNVX ), bool>::type>
12405 VULKAN_HPP_INLINE void CommandBuffer::cuLaunchKernelNVX( const CuLaunchInfoNVX * pLaunchInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12406 {
12407 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12408 d.vkCmdCuLaunchKernelNVX( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCuLaunchInfoNVX *>( pLaunchInfo ) );
12409 }
12410
12411 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12412 // wrapper function for command vkCmdCuLaunchKernelNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCuLaunchKernelNVX.html
12413 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCuLaunchKernelNVX ), bool>::type>
12414 VULKAN_HPP_INLINE void CommandBuffer::cuLaunchKernelNVX( const CuLaunchInfoNVX & launchInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12415 {
12416 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12417 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12418 VULKAN_HPP_ASSERT( d.vkCmdCuLaunchKernelNVX && "Function <vkCmdCuLaunchKernelNVX> requires <VK_NVX_binary_import>" );
12419 # endif
12420
12421 d.vkCmdCuLaunchKernelNVX( m_commandBuffer, reinterpret_cast<const VkCuLaunchInfoNVX *>( &launchInfo ) );
12422 }
12423 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12424
12425 //=== VK_NVX_image_view_handle ===
12426
12427 // wrapper function for command vkGetImageViewHandleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewHandleNVX.html
12428 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewHandleNVX ), bool>::type>
12429 VULKAN_HPP_INLINE uint32_t Device::getImageViewHandleNVX( const ImageViewHandleInfoNVX * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12430 {
12431 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12432 return d.vkGetImageViewHandleNVX( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImageViewHandleInfoNVX *>( pInfo ) );
12433 }
12434
12435 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12436 // wrapper function for command vkGetImageViewHandleNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewHandleNVX.html
12437 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewHandleNVX ), bool>::type>
12438 VULKAN_HPP_INLINE uint32_t Device::getImageViewHandleNVX( const ImageViewHandleInfoNVX & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12439 {
12440 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12441 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12442 VULKAN_HPP_ASSERT( d.vkGetImageViewHandleNVX && "Function <vkGetImageViewHandleNVX> requires <VK_NVX_image_view_handle>" );
12443 # endif
12444
12445 uint32_t result = d.vkGetImageViewHandleNVX( m_device, reinterpret_cast<const VkImageViewHandleInfoNVX *>( &info ) );
12446
12447 return result;
12448 }
12449 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12450
12451 // wrapper function for command vkGetImageViewHandle64NVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewHandle64NVX.html
12452 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewHandle64NVX ), bool>::type>
12453 VULKAN_HPP_INLINE uint64_t Device::getImageViewHandle64NVX( const ImageViewHandleInfoNVX * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12454 {
12455 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12456 return d.vkGetImageViewHandle64NVX( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImageViewHandleInfoNVX *>( pInfo ) );
12457 }
12458
12459 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12460 // wrapper function for command vkGetImageViewHandle64NVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewHandle64NVX.html
12461 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewHandle64NVX ), bool>::type>
12462 VULKAN_HPP_INLINE uint64_t Device::getImageViewHandle64NVX( const ImageViewHandleInfoNVX & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12463 {
12464 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12465 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12466 VULKAN_HPP_ASSERT( d.vkGetImageViewHandle64NVX && "Function <vkGetImageViewHandle64NVX> requires <VK_NVX_image_view_handle>" );
12467 # endif
12468
12469 uint64_t result = d.vkGetImageViewHandle64NVX( m_device, reinterpret_cast<const VkImageViewHandleInfoNVX *>( &info ) );
12470
12471 return result;
12472 }
12473 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12474
12475 // wrapper function for command vkGetImageViewAddressNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewAddressNVX.html
12476 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewAddressNVX ), bool>::type>
12477 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getImageViewAddressNVX( ImageView imageView,
12478 ImageViewAddressPropertiesNVX * pProperties,
12479 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12480 {
12481 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12482 return static_cast<Result>( d.vkGetImageViewAddressNVX(
12483 static_cast<VkDevice>( m_device ), static_cast<VkImageView>( imageView ), reinterpret_cast<VkImageViewAddressPropertiesNVX *>( pProperties ) ) );
12484 }
12485
12486 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12487 // wrapper function for command vkGetImageViewAddressNVX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewAddressNVX.html
12488 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewAddressNVX ), bool>::type>
12489 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageViewAddressPropertiesNVX>::type
12490 Device::getImageViewAddressNVX( ImageView imageView, Dispatch const & d ) const
12491 {
12492 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12493 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12494 VULKAN_HPP_ASSERT( d.vkGetImageViewAddressNVX && "Function <vkGetImageViewAddressNVX> requires <VK_NVX_image_view_handle>" );
12495 # endif
12496
12497 ImageViewAddressPropertiesNVX properties;
12498 Result result = static_cast<Result>(
12499 d.vkGetImageViewAddressNVX( m_device, static_cast<VkImageView>( imageView ), reinterpret_cast<VkImageViewAddressPropertiesNVX *>( &properties ) ) );
12500 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageViewAddressNVX" );
12501
12502 return detail::createResultValueType( result, std::move( properties ) );
12503 }
12504 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12505
12506 // wrapper function for command vkGetDeviceCombinedImageSamplerIndexNVX, see
12507 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceCombinedImageSamplerIndexNVX.html
12508 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceCombinedImageSamplerIndexNVX ), bool>::type>
12509 VULKAN_HPP_INLINE uint64_t Device::getCombinedImageSamplerIndexNVX( uint64_t imageViewIndex,
12510 uint64_t samplerIndex,
12511 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12512 {
12513 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12514 return d.vkGetDeviceCombinedImageSamplerIndexNVX( static_cast<VkDevice>( m_device ), imageViewIndex, samplerIndex );
12515 }
12516
12517 //=== VK_AMD_draw_indirect_count ===
12518
12519 // wrapper function for command vkCmdDrawIndirectCountAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCountAMD.html
12520 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirectCountAMD ), bool>::type>
12521 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectCountAMD( Buffer buffer,
12522 DeviceSize offset,
12523 Buffer countBuffer,
12524 DeviceSize countBufferOffset,
12525 uint32_t maxDrawCount,
12526 uint32_t stride,
12527 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12528 {
12529 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12530 d.vkCmdDrawIndirectCountAMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
12531 static_cast<VkBuffer>( buffer ),
12532 static_cast<VkDeviceSize>( offset ),
12533 static_cast<VkBuffer>( countBuffer ),
12534 static_cast<VkDeviceSize>( countBufferOffset ),
12535 maxDrawCount,
12536 stride );
12537 }
12538
12539 // wrapper function for command vkCmdDrawIndexedIndirectCountAMD, see
12540 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCountAMD.html
12541 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexedIndirectCountAMD ), bool>::type>
12542 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirectCountAMD( Buffer buffer,
12543 DeviceSize offset,
12544 Buffer countBuffer,
12545 DeviceSize countBufferOffset,
12546 uint32_t maxDrawCount,
12547 uint32_t stride,
12548 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12549 {
12550 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12551 d.vkCmdDrawIndexedIndirectCountAMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
12552 static_cast<VkBuffer>( buffer ),
12553 static_cast<VkDeviceSize>( offset ),
12554 static_cast<VkBuffer>( countBuffer ),
12555 static_cast<VkDeviceSize>( countBufferOffset ),
12556 maxDrawCount,
12557 stride );
12558 }
12559
12560 //=== VK_AMD_shader_info ===
12561
12562 // wrapper function for command vkGetShaderInfoAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderInfoAMD.html
12563 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderInfoAMD ), bool>::type>
12564 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getShaderInfoAMD( Pipeline pipeline,
12565 ShaderStageFlagBits shaderStage,
12566 ShaderInfoTypeAMD infoType,
12567 size_t * pInfoSize,
12568 void * pInfo,
12569 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12570 {
12571 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12572 return static_cast<Result>( d.vkGetShaderInfoAMD( static_cast<VkDevice>( m_device ),
12573 static_cast<VkPipeline>( pipeline ),
12574 static_cast<VkShaderStageFlagBits>( shaderStage ),
12575 static_cast<VkShaderInfoTypeAMD>( infoType ),
12576 pInfoSize,
12577 pInfo ) );
12578 }
12579
12580 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12581 // wrapper function for command vkGetShaderInfoAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderInfoAMD.html
12582 template <typename Uint8_tAllocator,
12583 typename Dispatch,
12584 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
12585 typename std::enable_if<IS_DISPATCHED( vkGetShaderInfoAMD ), bool>::type>
12586 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
12587 Device::getShaderInfoAMD( Pipeline pipeline, ShaderStageFlagBits shaderStage, ShaderInfoTypeAMD infoType, Dispatch const & d ) const
12588 {
12589 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12590 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12591 VULKAN_HPP_ASSERT( d.vkGetShaderInfoAMD && "Function <vkGetShaderInfoAMD> requires <VK_AMD_shader_info>" );
12592 # endif
12593
12594 std::vector<uint8_t, Uint8_tAllocator> info;
12595 size_t infoSize;
12596 Result result;
12597 do
12598 {
12599 result = static_cast<Result>( d.vkGetShaderInfoAMD( m_device,
12600 static_cast<VkPipeline>( pipeline ),
12601 static_cast<VkShaderStageFlagBits>( shaderStage ),
12602 static_cast<VkShaderInfoTypeAMD>( infoType ),
12603 &infoSize,
12604 nullptr ) );
12605 if ( ( result == Result::eSuccess ) && infoSize )
12606 {
12607 info.resize( infoSize );
12608 result = static_cast<Result>( d.vkGetShaderInfoAMD( m_device,
12609 static_cast<VkPipeline>( pipeline ),
12610 static_cast<VkShaderStageFlagBits>( shaderStage ),
12611 static_cast<VkShaderInfoTypeAMD>( infoType ),
12612 &infoSize,
12613 reinterpret_cast<void *>( info.data() ) ) );
12614 }
12615 } while ( result == Result::eIncomplete );
12616 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getShaderInfoAMD" );
12617 VULKAN_HPP_ASSERT( infoSize <= info.size() );
12618 if ( infoSize < info.size() )
12619 {
12620 info.resize( infoSize );
12621 }
12622 return detail::createResultValueType( result, std::move( info ) );
12623 }
12624
12625 // wrapper function for command vkGetShaderInfoAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderInfoAMD.html
12626 template <typename Uint8_tAllocator,
12627 typename Dispatch,
12628 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
12629 typename std::enable_if<IS_DISPATCHED( vkGetShaderInfoAMD ), bool>::type>
12630 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type Device::getShaderInfoAMD(
12631 Pipeline pipeline, ShaderStageFlagBits shaderStage, ShaderInfoTypeAMD infoType, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
12632 {
12633 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12634 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12635 VULKAN_HPP_ASSERT( d.vkGetShaderInfoAMD && "Function <vkGetShaderInfoAMD> requires <VK_AMD_shader_info>" );
12636 # endif
12637
12638 std::vector<uint8_t, Uint8_tAllocator> info( uint8_tAllocator );
12639 size_t infoSize;
12640 Result result;
12641 do
12642 {
12643 result = static_cast<Result>( d.vkGetShaderInfoAMD( m_device,
12644 static_cast<VkPipeline>( pipeline ),
12645 static_cast<VkShaderStageFlagBits>( shaderStage ),
12646 static_cast<VkShaderInfoTypeAMD>( infoType ),
12647 &infoSize,
12648 nullptr ) );
12649 if ( ( result == Result::eSuccess ) && infoSize )
12650 {
12651 info.resize( infoSize );
12652 result = static_cast<Result>( d.vkGetShaderInfoAMD( m_device,
12653 static_cast<VkPipeline>( pipeline ),
12654 static_cast<VkShaderStageFlagBits>( shaderStage ),
12655 static_cast<VkShaderInfoTypeAMD>( infoType ),
12656 &infoSize,
12657 reinterpret_cast<void *>( info.data() ) ) );
12658 }
12659 } while ( result == Result::eIncomplete );
12660 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getShaderInfoAMD" );
12661 VULKAN_HPP_ASSERT( infoSize <= info.size() );
12662 if ( infoSize < info.size() )
12663 {
12664 info.resize( infoSize );
12665 }
12666 return detail::createResultValueType( result, std::move( info ) );
12667 }
12668 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12669
12670 //=== VK_KHR_dynamic_rendering ===
12671
12672 // wrapper function for command vkCmdBeginRenderingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderingKHR.html
12673 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderingKHR ), bool>::type>
12674 VULKAN_HPP_INLINE void CommandBuffer::beginRenderingKHR( const RenderingInfo * pRenderingInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12675 {
12676 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12677 d.vkCmdBeginRenderingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkRenderingInfo *>( pRenderingInfo ) );
12678 }
12679
12680 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12681 // wrapper function for command vkCmdBeginRenderingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderingKHR.html
12682 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderingKHR ), bool>::type>
12683 VULKAN_HPP_INLINE void CommandBuffer::beginRenderingKHR( const RenderingInfo & renderingInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12684 {
12685 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12686 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12687 VULKAN_HPP_ASSERT( d.vkCmdBeginRenderingKHR && "Function <vkCmdBeginRenderingKHR> requires <VK_KHR_dynamic_rendering> or <VK_VERSION_1_3>" );
12688 # endif
12689
12690 d.vkCmdBeginRenderingKHR( m_commandBuffer, reinterpret_cast<const VkRenderingInfo *>( &renderingInfo ) );
12691 }
12692 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12693
12694 // wrapper function for command vkCmdEndRenderingKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderingKHR.html
12695 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRenderingKHR ), bool>::type>
12696 VULKAN_HPP_INLINE void CommandBuffer::endRenderingKHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12697 {
12698 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12699 d.vkCmdEndRenderingKHR( static_cast<VkCommandBuffer>( m_commandBuffer ) );
12700 }
12701
12702 #if defined( VK_USE_PLATFORM_GGP )
12703 //=== VK_GGP_stream_descriptor_surface ===
12704
12705 // wrapper function for command vkCreateStreamDescriptorSurfaceGGP, see
12706 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateStreamDescriptorSurfaceGGP.html
12707 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateStreamDescriptorSurfaceGGP ), bool>::type>
12708 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createStreamDescriptorSurfaceGGP( const StreamDescriptorSurfaceCreateInfoGGP * pCreateInfo,
12709 const AllocationCallbacks * pAllocator,
12710 SurfaceKHR * pSurface,
12711 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12712 {
12713 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12714 return static_cast<Result>( d.vkCreateStreamDescriptorSurfaceGGP( static_cast<VkInstance>( m_instance ),
12715 reinterpret_cast<const VkStreamDescriptorSurfaceCreateInfoGGP *>( pCreateInfo ),
12716 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
12717 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
12718 }
12719
12720 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12721 // wrapper function for command vkCreateStreamDescriptorSurfaceGGP, see
12722 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateStreamDescriptorSurfaceGGP.html
12723 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateStreamDescriptorSurfaceGGP ), bool>::type>
12724 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createStreamDescriptorSurfaceGGP(
12725 const StreamDescriptorSurfaceCreateInfoGGP & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
12726 {
12727 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12728 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12729 VULKAN_HPP_ASSERT( d.vkCreateStreamDescriptorSurfaceGGP && "Function <vkCreateStreamDescriptorSurfaceGGP> requires <VK_GGP_stream_descriptor_surface>" );
12730 # endif
12731
12732 SurfaceKHR surface;
12733 Result result = static_cast<Result>( d.vkCreateStreamDescriptorSurfaceGGP( m_instance,
12734 reinterpret_cast<const VkStreamDescriptorSurfaceCreateInfoGGP *>( &createInfo ),
12735 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
12736 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
12737 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createStreamDescriptorSurfaceGGP" );
12738
12739 return detail::createResultValueType( result, std::move( surface ) );
12740 }
12741
12742 # ifndef VULKAN_HPP_NO_SMART_HANDLE
12743 // wrapper function for command vkCreateStreamDescriptorSurfaceGGP, see
12744 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateStreamDescriptorSurfaceGGP.html
12745 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateStreamDescriptorSurfaceGGP ), bool>::type>
12746 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createStreamDescriptorSurfaceGGPUnique(
12747 const StreamDescriptorSurfaceCreateInfoGGP & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
12748 {
12749 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12750 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12751 VULKAN_HPP_ASSERT( d.vkCreateStreamDescriptorSurfaceGGP && "Function <vkCreateStreamDescriptorSurfaceGGP> requires <VK_GGP_stream_descriptor_surface>" );
12752 # endif
12753
12754 SurfaceKHR surface;
12755 Result result = static_cast<Result>( d.vkCreateStreamDescriptorSurfaceGGP( m_instance,
12756 reinterpret_cast<const VkStreamDescriptorSurfaceCreateInfoGGP *>( &createInfo ),
12757 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
12758 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
12759 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createStreamDescriptorSurfaceGGPUnique" );
12760
12761 return detail::createResultValueType( result,
12762 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
12763 }
12764 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
12765 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12766 #endif /*VK_USE_PLATFORM_GGP*/
12767
12768 //=== VK_NV_external_memory_capabilities ===
12769
12770 // wrapper function for command vkGetPhysicalDeviceExternalImageFormatPropertiesNV, see
12771 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalImageFormatPropertiesNV.html
12772 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalImageFormatPropertiesNV ), bool>::type>
12773 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
12774 PhysicalDevice::getExternalImageFormatPropertiesNV( Format format,
12775 ImageType type,
12776 ImageTiling tiling,
12777 ImageUsageFlags usage,
12778 ImageCreateFlags flags,
12779 ExternalMemoryHandleTypeFlagsNV externalHandleType,
12780 ExternalImageFormatPropertiesNV * pExternalImageFormatProperties,
12781 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12782 {
12783 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12784 return static_cast<Result>(
12785 d.vkGetPhysicalDeviceExternalImageFormatPropertiesNV( static_cast<VkPhysicalDevice>( m_physicalDevice ),
12786 static_cast<VkFormat>( format ),
12787 static_cast<VkImageType>( type ),
12788 static_cast<VkImageTiling>( tiling ),
12789 static_cast<VkImageUsageFlags>( usage ),
12790 static_cast<VkImageCreateFlags>( flags ),
12791 static_cast<VkExternalMemoryHandleTypeFlagsNV>( externalHandleType ),
12792 reinterpret_cast<VkExternalImageFormatPropertiesNV *>( pExternalImageFormatProperties ) ) );
12793 }
12794
12795 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12796 // wrapper function for command vkGetPhysicalDeviceExternalImageFormatPropertiesNV, see
12797 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalImageFormatPropertiesNV.html
12798 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalImageFormatPropertiesNV ), bool>::type>
12799 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ExternalImageFormatPropertiesNV>::type
12800 PhysicalDevice::getExternalImageFormatPropertiesNV( Format format,
12801 ImageType type,
12802 ImageTiling tiling,
12803 ImageUsageFlags usage,
12804 ImageCreateFlags flags,
12805 ExternalMemoryHandleTypeFlagsNV externalHandleType,
12806 Dispatch const & d ) const
12807 {
12808 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12809 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12810 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalImageFormatPropertiesNV &&
12811 "Function <vkGetPhysicalDeviceExternalImageFormatPropertiesNV> requires <VK_NV_external_memory_capabilities>" );
12812 # endif
12813
12814 ExternalImageFormatPropertiesNV externalImageFormatProperties;
12815 Result result = static_cast<Result>(
12816 d.vkGetPhysicalDeviceExternalImageFormatPropertiesNV( m_physicalDevice,
12817 static_cast<VkFormat>( format ),
12818 static_cast<VkImageType>( type ),
12819 static_cast<VkImageTiling>( tiling ),
12820 static_cast<VkImageUsageFlags>( usage ),
12821 static_cast<VkImageCreateFlags>( flags ),
12822 static_cast<VkExternalMemoryHandleTypeFlagsNV>( externalHandleType ),
12823 reinterpret_cast<VkExternalImageFormatPropertiesNV *>( &externalImageFormatProperties ) ) );
12824 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getExternalImageFormatPropertiesNV" );
12825
12826 return detail::createResultValueType( result, std::move( externalImageFormatProperties ) );
12827 }
12828 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12829
12830 #if defined( VK_USE_PLATFORM_WIN32_KHR )
12831 //=== VK_NV_external_memory_win32 ===
12832
12833 // wrapper function for command vkGetMemoryWin32HandleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandleNV.html
12834 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryWin32HandleNV ), bool>::type>
12835 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryWin32HandleNV( DeviceMemory memory,
12836 ExternalMemoryHandleTypeFlagsNV handleType,
12837 HANDLE * pHandle,
12838 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12839 {
12840 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12841 return static_cast<Result>( d.vkGetMemoryWin32HandleNV(
12842 static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( memory ), static_cast<VkExternalMemoryHandleTypeFlagsNV>( handleType ), pHandle ) );
12843 }
12844
12845 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12846 // wrapper function for command vkGetMemoryWin32HandleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandleNV.html
12847 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryWin32HandleNV ), bool>::type>
12848 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HANDLE>::type
12849 Device::getMemoryWin32HandleNV( DeviceMemory memory, ExternalMemoryHandleTypeFlagsNV handleType, Dispatch const & d ) const
12850 {
12851 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12852 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12853 VULKAN_HPP_ASSERT( d.vkGetMemoryWin32HandleNV && "Function <vkGetMemoryWin32HandleNV> requires <VK_NV_external_memory_win32>" );
12854 # endif
12855
12856 HANDLE handle;
12857 Result result = static_cast<Result>(
12858 d.vkGetMemoryWin32HandleNV( m_device, static_cast<VkDeviceMemory>( memory ), static_cast<VkExternalMemoryHandleTypeFlagsNV>( handleType ), &handle ) );
12859 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryWin32HandleNV" );
12860
12861 return detail::createResultValueType( result, std::move( handle ) );
12862 }
12863 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12864 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
12865
12866 //=== VK_KHR_get_physical_device_properties2 ===
12867
12868 // wrapper function for command vkGetPhysicalDeviceFeatures2KHR, see
12869 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2KHR.html
12870 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures2KHR ), bool>::type>
12871 VULKAN_HPP_INLINE void PhysicalDevice::getFeatures2KHR( PhysicalDeviceFeatures2 * pFeatures, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12872 {
12873 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12874 d.vkGetPhysicalDeviceFeatures2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), reinterpret_cast<VkPhysicalDeviceFeatures2 *>( pFeatures ) );
12875 }
12876
12877 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12878 // wrapper function for command vkGetPhysicalDeviceFeatures2KHR, see
12879 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2KHR.html
12880 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures2KHR ), bool>::type>
12881 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceFeatures2 PhysicalDevice::getFeatures2KHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12882 {
12883 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12884 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12885 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFeatures2KHR &&
12886 "Function <vkGetPhysicalDeviceFeatures2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12887 # endif
12888
12889 PhysicalDeviceFeatures2 features;
12890 d.vkGetPhysicalDeviceFeatures2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
12891
12892 return features;
12893 }
12894
12895 // wrapper function for command vkGetPhysicalDeviceFeatures2KHR, see
12896 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFeatures2KHR.html
12897 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFeatures2KHR ), bool>::type>
12898 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFeatures2KHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12899 {
12900 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12901 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12902 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFeatures2KHR &&
12903 "Function <vkGetPhysicalDeviceFeatures2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12904 # endif
12905
12906 StructureChain<X, Y, Z...> structureChain;
12907 PhysicalDeviceFeatures2 & features = structureChain.template get<PhysicalDeviceFeatures2>();
12908 d.vkGetPhysicalDeviceFeatures2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceFeatures2 *>( &features ) );
12909
12910 return structureChain;
12911 }
12912 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12913
12914 // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see
12915 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html
12916 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties2KHR ), bool>::type>
12917 VULKAN_HPP_INLINE void PhysicalDevice::getProperties2KHR( PhysicalDeviceProperties2 * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12918 {
12919 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12920 d.vkGetPhysicalDeviceProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ), reinterpret_cast<VkPhysicalDeviceProperties2 *>( pProperties ) );
12921 }
12922
12923 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12924 // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see
12925 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html
12926 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties2KHR ), bool>::type>
12927 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceProperties2 PhysicalDevice::getProperties2KHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12928 {
12929 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12930 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12931 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceProperties2KHR &&
12932 "Function <vkGetPhysicalDeviceProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12933 # endif
12934
12935 PhysicalDeviceProperties2 properties;
12936 d.vkGetPhysicalDeviceProperties2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
12937
12938 return properties;
12939 }
12940
12941 // wrapper function for command vkGetPhysicalDeviceProperties2KHR, see
12942 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceProperties2KHR.html
12943 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceProperties2KHR ), bool>::type>
12944 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getProperties2KHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12945 {
12946 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12947 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12948 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceProperties2KHR &&
12949 "Function <vkGetPhysicalDeviceProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12950 # endif
12951
12952 StructureChain<X, Y, Z...> structureChain;
12953 PhysicalDeviceProperties2 & properties = structureChain.template get<PhysicalDeviceProperties2>();
12954 d.vkGetPhysicalDeviceProperties2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceProperties2 *>( &properties ) );
12955
12956 return structureChain;
12957 }
12958 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
12959
12960 // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see
12961 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html
12962 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties2KHR ), bool>::type>
12963 VULKAN_HPP_INLINE void
12964 PhysicalDevice::getFormatProperties2KHR( Format format, FormatProperties2 * pFormatProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12965 {
12966 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12967 d.vkGetPhysicalDeviceFormatProperties2KHR(
12968 static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( pFormatProperties ) );
12969 }
12970
12971 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
12972 // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see
12973 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html
12974 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties2KHR ), bool>::type>
12975 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE FormatProperties2 PhysicalDevice::getFormatProperties2KHR( Format format,
12976 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
12977 {
12978 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
12979 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
12980 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFormatProperties2KHR &&
12981 "Function <vkGetPhysicalDeviceFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
12982 # endif
12983
12984 FormatProperties2 formatProperties;
12985 d.vkGetPhysicalDeviceFormatProperties2KHR(
12986 m_physicalDevice, static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
12987
12988 return formatProperties;
12989 }
12990
12991 // wrapper function for command vkGetPhysicalDeviceFormatProperties2KHR, see
12992 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFormatProperties2KHR.html
12993 template <typename X,
12994 typename Y,
12995 typename... Z,
12996 typename Dispatch,
12997 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFormatProperties2KHR ), bool>::type>
12998 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getFormatProperties2KHR( Format format,
12999 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13000 {
13001 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13002 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13003 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFormatProperties2KHR &&
13004 "Function <vkGetPhysicalDeviceFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13005 # endif
13006
13007 StructureChain<X, Y, Z...> structureChain;
13008 FormatProperties2 & formatProperties = structureChain.template get<FormatProperties2>();
13009 d.vkGetPhysicalDeviceFormatProperties2KHR(
13010 m_physicalDevice, static_cast<VkFormat>( format ), reinterpret_cast<VkFormatProperties2 *>( &formatProperties ) );
13011
13012 return structureChain;
13013 }
13014 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13015
13016 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see
13017 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html
13018 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties2KHR ), bool>::type>
13019 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getImageFormatProperties2KHR( const PhysicalDeviceImageFormatInfo2 * pImageFormatInfo,
13020 ImageFormatProperties2 * pImageFormatProperties,
13021 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13022 {
13023 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13024 return static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13025 reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2 *>( pImageFormatInfo ),
13026 reinterpret_cast<VkImageFormatProperties2 *>( pImageFormatProperties ) ) );
13027 }
13028
13029 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13030 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see
13031 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html
13032 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties2KHR ), bool>::type>
13033 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageFormatProperties2>::type
13034 PhysicalDevice::getImageFormatProperties2KHR( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const & d ) const
13035 {
13036 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13037 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13038 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceImageFormatProperties2KHR &&
13039 "Function <vkGetPhysicalDeviceImageFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13040 # endif
13041
13042 ImageFormatProperties2 imageFormatProperties;
13043 Result result =
13044 static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2KHR( m_physicalDevice,
13045 reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2 *>( &imageFormatInfo ),
13046 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) );
13047 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2KHR" );
13048
13049 return detail::createResultValueType( result, std::move( imageFormatProperties ) );
13050 }
13051
13052 // wrapper function for command vkGetPhysicalDeviceImageFormatProperties2KHR, see
13053 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceImageFormatProperties2KHR.html
13054 template <typename X,
13055 typename Y,
13056 typename... Z,
13057 typename Dispatch,
13058 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceImageFormatProperties2KHR ), bool>::type>
13059 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
13060 PhysicalDevice::getImageFormatProperties2KHR( const PhysicalDeviceImageFormatInfo2 & imageFormatInfo, Dispatch const & d ) const
13061 {
13062 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13063 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13064 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceImageFormatProperties2KHR &&
13065 "Function <vkGetPhysicalDeviceImageFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13066 # endif
13067
13068 StructureChain<X, Y, Z...> structureChain;
13069 ImageFormatProperties2 & imageFormatProperties = structureChain.template get<ImageFormatProperties2>();
13070 Result result =
13071 static_cast<Result>( d.vkGetPhysicalDeviceImageFormatProperties2KHR( m_physicalDevice,
13072 reinterpret_cast<const VkPhysicalDeviceImageFormatInfo2 *>( &imageFormatInfo ),
13073 reinterpret_cast<VkImageFormatProperties2 *>( &imageFormatProperties ) ) );
13074 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getImageFormatProperties2KHR" );
13075
13076 return detail::createResultValueType( result, std::move( structureChain ) );
13077 }
13078 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13079
13080 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
13081 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
13082 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2KHR ), bool>::type>
13083 VULKAN_HPP_INLINE void PhysicalDevice::getQueueFamilyProperties2KHR( uint32_t * pQueueFamilyPropertyCount,
13084 QueueFamilyProperties2 * pQueueFamilyProperties,
13085 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13086 {
13087 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13088 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR(
13089 static_cast<VkPhysicalDevice>( m_physicalDevice ), pQueueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( pQueueFamilyProperties ) );
13090 }
13091
13092 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13093 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
13094 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
13095 template <typename QueueFamilyProperties2Allocator,
13096 typename Dispatch,
13097 typename std::enable_if<std::is_same<typename QueueFamilyProperties2Allocator::value_type, QueueFamilyProperties2>::value, int>::type,
13098 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2KHR ), bool>::type>
13099 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator>
13100 PhysicalDevice::getQueueFamilyProperties2KHR( Dispatch const & d ) const
13101 {
13102 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13103 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13104 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2KHR &&
13105 "Function <vkGetPhysicalDeviceQueueFamilyProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13106 # endif
13107
13108 std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator> queueFamilyProperties;
13109 uint32_t queueFamilyPropertyCount;
13110 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
13111 queueFamilyProperties.resize( queueFamilyPropertyCount );
13112 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR(
13113 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
13114
13115 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
13116 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
13117 {
13118 queueFamilyProperties.resize( queueFamilyPropertyCount );
13119 }
13120 return queueFamilyProperties;
13121 }
13122
13123 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
13124 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
13125 template <typename QueueFamilyProperties2Allocator,
13126 typename Dispatch,
13127 typename std::enable_if<std::is_same<typename QueueFamilyProperties2Allocator::value_type, QueueFamilyProperties2>::value, int>::type,
13128 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2KHR ), bool>::type>
13129 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator>
13130 PhysicalDevice::getQueueFamilyProperties2KHR( QueueFamilyProperties2Allocator const & queueFamilyProperties2Allocator, Dispatch const & d ) const
13131 {
13132 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13133 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13134 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2KHR &&
13135 "Function <vkGetPhysicalDeviceQueueFamilyProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13136 # endif
13137
13138 std::vector<QueueFamilyProperties2, QueueFamilyProperties2Allocator> queueFamilyProperties( queueFamilyProperties2Allocator );
13139 uint32_t queueFamilyPropertyCount;
13140 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
13141 queueFamilyProperties.resize( queueFamilyPropertyCount );
13142 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR(
13143 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
13144
13145 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
13146 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
13147 {
13148 queueFamilyProperties.resize( queueFamilyPropertyCount );
13149 }
13150 return queueFamilyProperties;
13151 }
13152
13153 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
13154 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
13155 template <typename StructureChain,
13156 typename StructureChainAllocator,
13157 typename Dispatch,
13158 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
13159 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2KHR ), bool>::type>
13160 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<StructureChain, StructureChainAllocator>
13161 PhysicalDevice::getQueueFamilyProperties2KHR( Dispatch const & d ) const
13162 {
13163 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13164 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13165 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2KHR &&
13166 "Function <vkGetPhysicalDeviceQueueFamilyProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13167 # endif
13168
13169 std::vector<StructureChain, StructureChainAllocator> structureChains;
13170 std::vector<QueueFamilyProperties2> queueFamilyProperties;
13171 uint32_t queueFamilyPropertyCount;
13172 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
13173 structureChains.resize( queueFamilyPropertyCount );
13174 queueFamilyProperties.resize( queueFamilyPropertyCount );
13175 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
13176 {
13177 queueFamilyProperties[i].pNext = structureChains[i].template get<QueueFamilyProperties2>().pNext;
13178 }
13179 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR(
13180 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
13181
13182 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
13183 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
13184 {
13185 structureChains.resize( queueFamilyPropertyCount );
13186 }
13187 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
13188 {
13189 structureChains[i].template get<QueueFamilyProperties2>() = queueFamilyProperties[i];
13190 }
13191 return structureChains;
13192 }
13193
13194 // wrapper function for command vkGetPhysicalDeviceQueueFamilyProperties2KHR, see
13195 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyProperties2KHR.html
13196 template <typename StructureChain,
13197 typename StructureChainAllocator,
13198 typename Dispatch,
13199 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
13200 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyProperties2KHR ), bool>::type>
13201 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<StructureChain, StructureChainAllocator>
13202 PhysicalDevice::getQueueFamilyProperties2KHR( StructureChainAllocator & structureChainAllocator, Dispatch const & d ) const
13203 {
13204 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13205 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13206 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyProperties2KHR &&
13207 "Function <vkGetPhysicalDeviceQueueFamilyProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13208 # endif
13209
13210 std::vector<StructureChain, StructureChainAllocator> structureChains( structureChainAllocator );
13211 std::vector<QueueFamilyProperties2> queueFamilyProperties;
13212 uint32_t queueFamilyPropertyCount;
13213 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR( m_physicalDevice, &queueFamilyPropertyCount, nullptr );
13214 structureChains.resize( queueFamilyPropertyCount );
13215 queueFamilyProperties.resize( queueFamilyPropertyCount );
13216 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
13217 {
13218 queueFamilyProperties[i].pNext = structureChains[i].template get<QueueFamilyProperties2>().pNext;
13219 }
13220 d.vkGetPhysicalDeviceQueueFamilyProperties2KHR(
13221 m_physicalDevice, &queueFamilyPropertyCount, reinterpret_cast<VkQueueFamilyProperties2 *>( queueFamilyProperties.data() ) );
13222
13223 VULKAN_HPP_ASSERT( queueFamilyPropertyCount <= queueFamilyProperties.size() );
13224 if ( queueFamilyPropertyCount < queueFamilyProperties.size() )
13225 {
13226 structureChains.resize( queueFamilyPropertyCount );
13227 }
13228 for ( uint32_t i = 0; i < queueFamilyPropertyCount; i++ )
13229 {
13230 structureChains[i].template get<QueueFamilyProperties2>() = queueFamilyProperties[i];
13231 }
13232 return structureChains;
13233 }
13234 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13235
13236 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2KHR, see
13237 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2KHR.html
13238 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties2KHR ), bool>::type>
13239 VULKAN_HPP_INLINE void PhysicalDevice::getMemoryProperties2KHR( PhysicalDeviceMemoryProperties2 * pMemoryProperties,
13240 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13241 {
13242 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13243 d.vkGetPhysicalDeviceMemoryProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13244 reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( pMemoryProperties ) );
13245 }
13246
13247 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13248 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2KHR, see
13249 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2KHR.html
13250 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties2KHR ), bool>::type>
13251 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PhysicalDeviceMemoryProperties2 PhysicalDevice::getMemoryProperties2KHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13252 {
13253 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13254 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13255 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceMemoryProperties2KHR &&
13256 "Function <vkGetPhysicalDeviceMemoryProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13257 # endif
13258
13259 PhysicalDeviceMemoryProperties2 memoryProperties;
13260 d.vkGetPhysicalDeviceMemoryProperties2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
13261
13262 return memoryProperties;
13263 }
13264
13265 // wrapper function for command vkGetPhysicalDeviceMemoryProperties2KHR, see
13266 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMemoryProperties2KHR.html
13267 template <typename X,
13268 typename Y,
13269 typename... Z,
13270 typename Dispatch,
13271 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMemoryProperties2KHR ), bool>::type>
13272 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> PhysicalDevice::getMemoryProperties2KHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13273 {
13274 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13275 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13276 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceMemoryProperties2KHR &&
13277 "Function <vkGetPhysicalDeviceMemoryProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13278 # endif
13279
13280 StructureChain<X, Y, Z...> structureChain;
13281 PhysicalDeviceMemoryProperties2 & memoryProperties = structureChain.template get<PhysicalDeviceMemoryProperties2>();
13282 d.vkGetPhysicalDeviceMemoryProperties2KHR( m_physicalDevice, reinterpret_cast<VkPhysicalDeviceMemoryProperties2 *>( &memoryProperties ) );
13283
13284 return structureChain;
13285 }
13286 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13287
13288 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2KHR, see
13289 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2KHR.html
13290 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties2KHR ), bool>::type>
13291 VULKAN_HPP_INLINE void PhysicalDevice::getSparseImageFormatProperties2KHR( const PhysicalDeviceSparseImageFormatInfo2 * pFormatInfo,
13292 uint32_t * pPropertyCount,
13293 SparseImageFormatProperties2 * pProperties,
13294 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13295 {
13296 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13297 d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13298 reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( pFormatInfo ),
13299 pPropertyCount,
13300 reinterpret_cast<VkSparseImageFormatProperties2 *>( pProperties ) );
13301 }
13302
13303 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13304 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2KHR, see
13305 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2KHR.html
13306 template <typename SparseImageFormatProperties2Allocator,
13307 typename Dispatch,
13308 typename std::enable_if<std::is_same<typename SparseImageFormatProperties2Allocator::value_type, SparseImageFormatProperties2>::value, int>::type,
13309 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties2KHR ), bool>::type>
13310 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator>
13311 PhysicalDevice::getSparseImageFormatProperties2KHR( const PhysicalDeviceSparseImageFormatInfo2 & formatInfo, Dispatch const & d ) const
13312 {
13313 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13314 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13315 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR &&
13316 "Function <vkGetPhysicalDeviceSparseImageFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13317 # endif
13318
13319 std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator> properties;
13320 uint32_t propertyCount;
13321 d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR(
13322 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( &formatInfo ), &propertyCount, nullptr );
13323 properties.resize( propertyCount );
13324 d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( m_physicalDevice,
13325 reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( &formatInfo ),
13326 &propertyCount,
13327 reinterpret_cast<VkSparseImageFormatProperties2 *>( properties.data() ) );
13328
13329 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
13330 if ( propertyCount < properties.size() )
13331 {
13332 properties.resize( propertyCount );
13333 }
13334 return properties;
13335 }
13336
13337 // wrapper function for command vkGetPhysicalDeviceSparseImageFormatProperties2KHR, see
13338 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSparseImageFormatProperties2KHR.html
13339 template <typename SparseImageFormatProperties2Allocator,
13340 typename Dispatch,
13341 typename std::enable_if<std::is_same<typename SparseImageFormatProperties2Allocator::value_type, SparseImageFormatProperties2>::value, int>::type,
13342 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSparseImageFormatProperties2KHR ), bool>::type>
13343 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator>
13344 PhysicalDevice::getSparseImageFormatProperties2KHR( const PhysicalDeviceSparseImageFormatInfo2 & formatInfo,
13345 SparseImageFormatProperties2Allocator const & sparseImageFormatProperties2Allocator,
13346 Dispatch const & d ) const
13347 {
13348 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13349 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13350 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR &&
13351 "Function <vkGetPhysicalDeviceSparseImageFormatProperties2KHR> requires <VK_KHR_get_physical_device_properties2> or <VK_VERSION_1_1>" );
13352 # endif
13353
13354 std::vector<SparseImageFormatProperties2, SparseImageFormatProperties2Allocator> properties( sparseImageFormatProperties2Allocator );
13355 uint32_t propertyCount;
13356 d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR(
13357 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( &formatInfo ), &propertyCount, nullptr );
13358 properties.resize( propertyCount );
13359 d.vkGetPhysicalDeviceSparseImageFormatProperties2KHR( m_physicalDevice,
13360 reinterpret_cast<const VkPhysicalDeviceSparseImageFormatInfo2 *>( &formatInfo ),
13361 &propertyCount,
13362 reinterpret_cast<VkSparseImageFormatProperties2 *>( properties.data() ) );
13363
13364 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
13365 if ( propertyCount < properties.size() )
13366 {
13367 properties.resize( propertyCount );
13368 }
13369 return properties;
13370 }
13371 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13372
13373 //=== VK_KHR_device_group ===
13374
13375 // wrapper function for command vkGetDeviceGroupPeerMemoryFeaturesKHR, see
13376 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPeerMemoryFeaturesKHR.html
13377 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupPeerMemoryFeaturesKHR ), bool>::type>
13378 VULKAN_HPP_INLINE void Device::getGroupPeerMemoryFeaturesKHR( uint32_t heapIndex,
13379 uint32_t localDeviceIndex,
13380 uint32_t remoteDeviceIndex,
13381 PeerMemoryFeatureFlags * pPeerMemoryFeatures,
13382 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13383 {
13384 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13385 d.vkGetDeviceGroupPeerMemoryFeaturesKHR(
13386 static_cast<VkDevice>( m_device ), heapIndex, localDeviceIndex, remoteDeviceIndex, reinterpret_cast<VkPeerMemoryFeatureFlags *>( pPeerMemoryFeatures ) );
13387 }
13388
13389 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13390 // wrapper function for command vkGetDeviceGroupPeerMemoryFeaturesKHR, see
13391 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupPeerMemoryFeaturesKHR.html
13392 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupPeerMemoryFeaturesKHR ), bool>::type>
13393 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE PeerMemoryFeatureFlags Device::getGroupPeerMemoryFeaturesKHR( uint32_t heapIndex,
13394 uint32_t localDeviceIndex,
13395 uint32_t remoteDeviceIndex,
13396 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13397 {
13398 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13399 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13400 VULKAN_HPP_ASSERT( d.vkGetDeviceGroupPeerMemoryFeaturesKHR &&
13401 "Function <vkGetDeviceGroupPeerMemoryFeaturesKHR> requires <VK_KHR_device_group> or <VK_VERSION_1_1>" );
13402 # endif
13403
13404 PeerMemoryFeatureFlags peerMemoryFeatures;
13405 d.vkGetDeviceGroupPeerMemoryFeaturesKHR(
13406 m_device, heapIndex, localDeviceIndex, remoteDeviceIndex, reinterpret_cast<VkPeerMemoryFeatureFlags *>( &peerMemoryFeatures ) );
13407
13408 return peerMemoryFeatures;
13409 }
13410 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13411
13412 // wrapper function for command vkCmdSetDeviceMaskKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDeviceMaskKHR.html
13413 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDeviceMaskKHR ), bool>::type>
13414 VULKAN_HPP_INLINE void CommandBuffer::setDeviceMaskKHR( uint32_t deviceMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13415 {
13416 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13417 d.vkCmdSetDeviceMaskKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), deviceMask );
13418 }
13419
13420 // wrapper function for command vkCmdDispatchBaseKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchBaseKHR.html
13421 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchBaseKHR ), bool>::type>
13422 VULKAN_HPP_INLINE void CommandBuffer::dispatchBaseKHR( uint32_t baseGroupX,
13423 uint32_t baseGroupY,
13424 uint32_t baseGroupZ,
13425 uint32_t groupCountX,
13426 uint32_t groupCountY,
13427 uint32_t groupCountZ,
13428 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13429 {
13430 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13431 d.vkCmdDispatchBaseKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ );
13432 }
13433
13434 #if defined( VK_USE_PLATFORM_VI_NN )
13435 //=== VK_NN_vi_surface ===
13436
13437 // wrapper function for command vkCreateViSurfaceNN, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateViSurfaceNN.html
13438 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateViSurfaceNN ), bool>::type>
13439 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createViSurfaceNN( const ViSurfaceCreateInfoNN * pCreateInfo,
13440 const AllocationCallbacks * pAllocator,
13441 SurfaceKHR * pSurface,
13442 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13443 {
13444 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13445 return static_cast<Result>( d.vkCreateViSurfaceNN( static_cast<VkInstance>( m_instance ),
13446 reinterpret_cast<const VkViSurfaceCreateInfoNN *>( pCreateInfo ),
13447 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
13448 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
13449 }
13450
13451 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13452 // wrapper function for command vkCreateViSurfaceNN, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateViSurfaceNN.html
13453 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateViSurfaceNN ), bool>::type>
13454 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
13455 Instance::createViSurfaceNN( const ViSurfaceCreateInfoNN & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
13456 {
13457 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13458 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13459 VULKAN_HPP_ASSERT( d.vkCreateViSurfaceNN && "Function <vkCreateViSurfaceNN> requires <VK_NN_vi_surface>" );
13460 # endif
13461
13462 SurfaceKHR surface;
13463 Result result = static_cast<Result>( d.vkCreateViSurfaceNN( m_instance,
13464 reinterpret_cast<const VkViSurfaceCreateInfoNN *>( &createInfo ),
13465 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
13466 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
13467 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createViSurfaceNN" );
13468
13469 return detail::createResultValueType( result, std::move( surface ) );
13470 }
13471
13472 # ifndef VULKAN_HPP_NO_SMART_HANDLE
13473 // wrapper function for command vkCreateViSurfaceNN, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateViSurfaceNN.html
13474 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateViSurfaceNN ), bool>::type>
13475 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type
13476 Instance::createViSurfaceNNUnique( const ViSurfaceCreateInfoNN & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
13477 {
13478 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13479 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13480 VULKAN_HPP_ASSERT( d.vkCreateViSurfaceNN && "Function <vkCreateViSurfaceNN> requires <VK_NN_vi_surface>" );
13481 # endif
13482
13483 SurfaceKHR surface;
13484 Result result = static_cast<Result>( d.vkCreateViSurfaceNN( m_instance,
13485 reinterpret_cast<const VkViSurfaceCreateInfoNN *>( &createInfo ),
13486 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
13487 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
13488 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createViSurfaceNNUnique" );
13489
13490 return detail::createResultValueType( result,
13491 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
13492 }
13493 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
13494 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13495 #endif /*VK_USE_PLATFORM_VI_NN*/
13496
13497 //=== VK_KHR_maintenance1 ===
13498
13499 // wrapper function for command vkTrimCommandPoolKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTrimCommandPoolKHR.html
13500 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkTrimCommandPoolKHR ), bool>::type>
13501 VULKAN_HPP_INLINE void Device::trimCommandPoolKHR( CommandPool commandPool, CommandPoolTrimFlags flags, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13502 {
13503 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13504 d.vkTrimCommandPoolKHR( static_cast<VkDevice>( m_device ), static_cast<VkCommandPool>( commandPool ), static_cast<VkCommandPoolTrimFlags>( flags ) );
13505 }
13506
13507 //=== VK_KHR_device_group_creation ===
13508
13509 // wrapper function for command vkEnumeratePhysicalDeviceGroupsKHR, see
13510 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroupsKHR.html
13511 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceGroupsKHR ), bool>::type>
13512 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::enumeratePhysicalDeviceGroupsKHR( uint32_t * pPhysicalDeviceGroupCount,
13513 PhysicalDeviceGroupProperties * pPhysicalDeviceGroupProperties,
13514 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13515 {
13516 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13517 return static_cast<Result>( d.vkEnumeratePhysicalDeviceGroupsKHR( static_cast<VkInstance>( m_instance ),
13518 pPhysicalDeviceGroupCount,
13519 reinterpret_cast<VkPhysicalDeviceGroupProperties *>( pPhysicalDeviceGroupProperties ) ) );
13520 }
13521
13522 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13523 // wrapper function for command vkEnumeratePhysicalDeviceGroupsKHR, see
13524 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroupsKHR.html
13525 template <typename PhysicalDeviceGroupPropertiesAllocator,
13526 typename Dispatch,
13527 typename std::enable_if<std::is_same<typename PhysicalDeviceGroupPropertiesAllocator::value_type, PhysicalDeviceGroupProperties>::value, int>::type,
13528 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceGroupsKHR ), bool>::type>
13529 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator>>::type
13530 Instance::enumeratePhysicalDeviceGroupsKHR( Dispatch const & d ) const
13531 {
13532 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13533 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13534 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceGroupsKHR &&
13535 "Function <vkEnumeratePhysicalDeviceGroupsKHR> requires <VK_KHR_device_group_creation> or <VK_VERSION_1_1>" );
13536 # endif
13537
13538 std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator> physicalDeviceGroupProperties;
13539 uint32_t physicalDeviceGroupCount;
13540 Result result;
13541 do
13542 {
13543 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroupsKHR( m_instance, &physicalDeviceGroupCount, nullptr ) );
13544 if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount )
13545 {
13546 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
13547 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroupsKHR(
13548 m_instance, &physicalDeviceGroupCount, reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
13549 }
13550 } while ( result == Result::eIncomplete );
13551 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroupsKHR" );
13552 VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
13553 if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
13554 {
13555 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
13556 }
13557 return detail::createResultValueType( result, std::move( physicalDeviceGroupProperties ) );
13558 }
13559
13560 // wrapper function for command vkEnumeratePhysicalDeviceGroupsKHR, see
13561 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceGroupsKHR.html
13562 template <typename PhysicalDeviceGroupPropertiesAllocator,
13563 typename Dispatch,
13564 typename std::enable_if<std::is_same<typename PhysicalDeviceGroupPropertiesAllocator::value_type, PhysicalDeviceGroupProperties>::value, int>::type,
13565 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceGroupsKHR ), bool>::type>
13566 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator>>::type
13567 Instance::enumeratePhysicalDeviceGroupsKHR( PhysicalDeviceGroupPropertiesAllocator const & physicalDeviceGroupPropertiesAllocator,
13568 Dispatch const & d ) const
13569 {
13570 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13571 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13572 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceGroupsKHR &&
13573 "Function <vkEnumeratePhysicalDeviceGroupsKHR> requires <VK_KHR_device_group_creation> or <VK_VERSION_1_1>" );
13574 # endif
13575
13576 std::vector<PhysicalDeviceGroupProperties, PhysicalDeviceGroupPropertiesAllocator> physicalDeviceGroupProperties( physicalDeviceGroupPropertiesAllocator );
13577 uint32_t physicalDeviceGroupCount;
13578 Result result;
13579 do
13580 {
13581 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroupsKHR( m_instance, &physicalDeviceGroupCount, nullptr ) );
13582 if ( ( result == Result::eSuccess ) && physicalDeviceGroupCount )
13583 {
13584 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
13585 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceGroupsKHR(
13586 m_instance, &physicalDeviceGroupCount, reinterpret_cast<VkPhysicalDeviceGroupProperties *>( physicalDeviceGroupProperties.data() ) ) );
13587 }
13588 } while ( result == Result::eIncomplete );
13589 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::enumeratePhysicalDeviceGroupsKHR" );
13590 VULKAN_HPP_ASSERT( physicalDeviceGroupCount <= physicalDeviceGroupProperties.size() );
13591 if ( physicalDeviceGroupCount < physicalDeviceGroupProperties.size() )
13592 {
13593 physicalDeviceGroupProperties.resize( physicalDeviceGroupCount );
13594 }
13595 return detail::createResultValueType( result, std::move( physicalDeviceGroupProperties ) );
13596 }
13597 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13598
13599 //=== VK_KHR_external_memory_capabilities ===
13600
13601 // wrapper function for command vkGetPhysicalDeviceExternalBufferPropertiesKHR, see
13602 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalBufferPropertiesKHR.html
13603 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalBufferPropertiesKHR ), bool>::type>
13604 VULKAN_HPP_INLINE void PhysicalDevice::getExternalBufferPropertiesKHR( const PhysicalDeviceExternalBufferInfo * pExternalBufferInfo,
13605 ExternalBufferProperties * pExternalBufferProperties,
13606 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13607 {
13608 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13609 d.vkGetPhysicalDeviceExternalBufferPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13610 reinterpret_cast<const VkPhysicalDeviceExternalBufferInfo *>( pExternalBufferInfo ),
13611 reinterpret_cast<VkExternalBufferProperties *>( pExternalBufferProperties ) );
13612 }
13613
13614 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13615 // wrapper function for command vkGetPhysicalDeviceExternalBufferPropertiesKHR, see
13616 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalBufferPropertiesKHR.html
13617 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalBufferPropertiesKHR ), bool>::type>
13618 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalBufferProperties
13619 PhysicalDevice::getExternalBufferPropertiesKHR( const PhysicalDeviceExternalBufferInfo & externalBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13620 {
13621 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13622 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13623 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalBufferPropertiesKHR &&
13624 "Function <vkGetPhysicalDeviceExternalBufferPropertiesKHR> requires <VK_KHR_external_memory_capabilities> or <VK_VERSION_1_1>" );
13625 # endif
13626
13627 ExternalBufferProperties externalBufferProperties;
13628 d.vkGetPhysicalDeviceExternalBufferPropertiesKHR( m_physicalDevice,
13629 reinterpret_cast<const VkPhysicalDeviceExternalBufferInfo *>( &externalBufferInfo ),
13630 reinterpret_cast<VkExternalBufferProperties *>( &externalBufferProperties ) );
13631
13632 return externalBufferProperties;
13633 }
13634 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13635
13636 #if defined( VK_USE_PLATFORM_WIN32_KHR )
13637 //=== VK_KHR_external_memory_win32 ===
13638
13639 // wrapper function for command vkGetMemoryWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandleKHR.html
13640 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryWin32HandleKHR ), bool>::type>
13641 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryWin32HandleKHR( const MemoryGetWin32HandleInfoKHR * pGetWin32HandleInfo,
13642 HANDLE * pHandle,
13643 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13644 {
13645 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13646 return static_cast<Result>( d.vkGetMemoryWin32HandleKHR(
13647 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryGetWin32HandleInfoKHR *>( pGetWin32HandleInfo ), pHandle ) );
13648 }
13649
13650 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13651 // wrapper function for command vkGetMemoryWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandleKHR.html
13652 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryWin32HandleKHR ), bool>::type>
13653 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HANDLE>::type
13654 Device::getMemoryWin32HandleKHR( const MemoryGetWin32HandleInfoKHR & getWin32HandleInfo, Dispatch const & d ) const
13655 {
13656 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13657 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13658 VULKAN_HPP_ASSERT( d.vkGetMemoryWin32HandleKHR && "Function <vkGetMemoryWin32HandleKHR> requires <VK_KHR_external_memory_win32>" );
13659 # endif
13660
13661 HANDLE handle;
13662 Result result =
13663 static_cast<Result>( d.vkGetMemoryWin32HandleKHR( m_device, reinterpret_cast<const VkMemoryGetWin32HandleInfoKHR *>( &getWin32HandleInfo ), &handle ) );
13664 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryWin32HandleKHR" );
13665
13666 return detail::createResultValueType( result, std::move( handle ) );
13667 }
13668 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13669
13670 // wrapper function for command vkGetMemoryWin32HandlePropertiesKHR, see
13671 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandlePropertiesKHR.html
13672 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryWin32HandlePropertiesKHR ), bool>::type>
13673 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryWin32HandlePropertiesKHR( ExternalMemoryHandleTypeFlagBits handleType,
13674 HANDLE handle,
13675 MemoryWin32HandlePropertiesKHR * pMemoryWin32HandleProperties,
13676 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13677 {
13678 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13679 return static_cast<Result>( d.vkGetMemoryWin32HandlePropertiesKHR( static_cast<VkDevice>( m_device ),
13680 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
13681 handle,
13682 reinterpret_cast<VkMemoryWin32HandlePropertiesKHR *>( pMemoryWin32HandleProperties ) ) );
13683 }
13684
13685 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13686 // wrapper function for command vkGetMemoryWin32HandlePropertiesKHR, see
13687 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryWin32HandlePropertiesKHR.html
13688 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryWin32HandlePropertiesKHR ), bool>::type>
13689 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryWin32HandlePropertiesKHR>::type
13690 Device::getMemoryWin32HandlePropertiesKHR( ExternalMemoryHandleTypeFlagBits handleType, HANDLE handle, Dispatch const & d ) const
13691 {
13692 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13693 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13694 VULKAN_HPP_ASSERT( d.vkGetMemoryWin32HandlePropertiesKHR && "Function <vkGetMemoryWin32HandlePropertiesKHR> requires <VK_KHR_external_memory_win32>" );
13695 # endif
13696
13697 MemoryWin32HandlePropertiesKHR memoryWin32HandleProperties;
13698 Result result =
13699 static_cast<Result>( d.vkGetMemoryWin32HandlePropertiesKHR( m_device,
13700 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
13701 handle,
13702 reinterpret_cast<VkMemoryWin32HandlePropertiesKHR *>( &memoryWin32HandleProperties ) ) );
13703 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryWin32HandlePropertiesKHR" );
13704
13705 return detail::createResultValueType( result, std::move( memoryWin32HandleProperties ) );
13706 }
13707 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13708 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
13709
13710 //=== VK_KHR_external_memory_fd ===
13711
13712 // wrapper function for command vkGetMemoryFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryFdKHR.html
13713 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryFdKHR ), bool>::type>
13714 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryFdKHR( const MemoryGetFdInfoKHR * pGetFdInfo,
13715 int * pFd,
13716 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13717 {
13718 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13719 return static_cast<Result>( d.vkGetMemoryFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryGetFdInfoKHR *>( pGetFdInfo ), pFd ) );
13720 }
13721
13722 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13723 // wrapper function for command vkGetMemoryFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryFdKHR.html
13724 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryFdKHR ), bool>::type>
13725 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<int>::type Device::getMemoryFdKHR( const MemoryGetFdInfoKHR & getFdInfo,
13726 Dispatch const & d ) const
13727 {
13728 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13729 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13730 VULKAN_HPP_ASSERT( d.vkGetMemoryFdKHR && "Function <vkGetMemoryFdKHR> requires <VK_KHR_external_memory_fd>" );
13731 # endif
13732
13733 int fd;
13734 Result result = static_cast<Result>( d.vkGetMemoryFdKHR( m_device, reinterpret_cast<const VkMemoryGetFdInfoKHR *>( &getFdInfo ), &fd ) );
13735 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryFdKHR" );
13736
13737 return detail::createResultValueType( result, std::move( fd ) );
13738 }
13739 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13740
13741 // wrapper function for command vkGetMemoryFdPropertiesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryFdPropertiesKHR.html
13742 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryFdPropertiesKHR ), bool>::type>
13743 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryFdPropertiesKHR( ExternalMemoryHandleTypeFlagBits handleType,
13744 int fd,
13745 MemoryFdPropertiesKHR * pMemoryFdProperties,
13746 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13747 {
13748 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13749 return static_cast<Result>( d.vkGetMemoryFdPropertiesKHR( static_cast<VkDevice>( m_device ),
13750 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
13751 fd,
13752 reinterpret_cast<VkMemoryFdPropertiesKHR *>( pMemoryFdProperties ) ) );
13753 }
13754
13755 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13756 // wrapper function for command vkGetMemoryFdPropertiesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryFdPropertiesKHR.html
13757 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryFdPropertiesKHR ), bool>::type>
13758 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryFdPropertiesKHR>::type
13759 Device::getMemoryFdPropertiesKHR( ExternalMemoryHandleTypeFlagBits handleType, int fd, Dispatch const & d ) const
13760 {
13761 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13762 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13763 VULKAN_HPP_ASSERT( d.vkGetMemoryFdPropertiesKHR && "Function <vkGetMemoryFdPropertiesKHR> requires <VK_KHR_external_memory_fd>" );
13764 # endif
13765
13766 MemoryFdPropertiesKHR memoryFdProperties;
13767 Result result = static_cast<Result>( d.vkGetMemoryFdPropertiesKHR(
13768 m_device, static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ), fd, reinterpret_cast<VkMemoryFdPropertiesKHR *>( &memoryFdProperties ) ) );
13769 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryFdPropertiesKHR" );
13770
13771 return detail::createResultValueType( result, std::move( memoryFdProperties ) );
13772 }
13773 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13774
13775 //=== VK_KHR_external_semaphore_capabilities ===
13776
13777 // wrapper function for command vkGetPhysicalDeviceExternalSemaphorePropertiesKHR, see
13778 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalSemaphorePropertiesKHR.html
13779 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalSemaphorePropertiesKHR ), bool>::type>
13780 VULKAN_HPP_INLINE void PhysicalDevice::getExternalSemaphorePropertiesKHR( const PhysicalDeviceExternalSemaphoreInfo * pExternalSemaphoreInfo,
13781 ExternalSemaphoreProperties * pExternalSemaphoreProperties,
13782 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13783 {
13784 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13785 d.vkGetPhysicalDeviceExternalSemaphorePropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
13786 reinterpret_cast<const VkPhysicalDeviceExternalSemaphoreInfo *>( pExternalSemaphoreInfo ),
13787 reinterpret_cast<VkExternalSemaphoreProperties *>( pExternalSemaphoreProperties ) );
13788 }
13789
13790 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13791 // wrapper function for command vkGetPhysicalDeviceExternalSemaphorePropertiesKHR, see
13792 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalSemaphorePropertiesKHR.html
13793 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalSemaphorePropertiesKHR ), bool>::type>
13794 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalSemaphoreProperties PhysicalDevice::getExternalSemaphorePropertiesKHR(
13795 const PhysicalDeviceExternalSemaphoreInfo & externalSemaphoreInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13796 {
13797 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13798 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13799 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalSemaphorePropertiesKHR &&
13800 "Function <vkGetPhysicalDeviceExternalSemaphorePropertiesKHR> requires <VK_KHR_external_semaphore_capabilities> or <VK_VERSION_1_1>" );
13801 # endif
13802
13803 ExternalSemaphoreProperties externalSemaphoreProperties;
13804 d.vkGetPhysicalDeviceExternalSemaphorePropertiesKHR( m_physicalDevice,
13805 reinterpret_cast<const VkPhysicalDeviceExternalSemaphoreInfo *>( &externalSemaphoreInfo ),
13806 reinterpret_cast<VkExternalSemaphoreProperties *>( &externalSemaphoreProperties ) );
13807
13808 return externalSemaphoreProperties;
13809 }
13810 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13811
13812 #if defined( VK_USE_PLATFORM_WIN32_KHR )
13813 //=== VK_KHR_external_semaphore_win32 ===
13814
13815 // wrapper function for command vkImportSemaphoreWin32HandleKHR, see
13816 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreWin32HandleKHR.html
13817 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportSemaphoreWin32HandleKHR ), bool>::type>
13818 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::importSemaphoreWin32HandleKHR(
13819 const ImportSemaphoreWin32HandleInfoKHR * pImportSemaphoreWin32HandleInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13820 {
13821 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13822 return static_cast<Result>( d.vkImportSemaphoreWin32HandleKHR(
13823 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImportSemaphoreWin32HandleInfoKHR *>( pImportSemaphoreWin32HandleInfo ) ) );
13824 }
13825
13826 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13827 // wrapper function for command vkImportSemaphoreWin32HandleKHR, see
13828 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreWin32HandleKHR.html
13829 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportSemaphoreWin32HandleKHR ), bool>::type>
13830 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
13831 Device::importSemaphoreWin32HandleKHR( const ImportSemaphoreWin32HandleInfoKHR & importSemaphoreWin32HandleInfo, Dispatch const & d ) const
13832 {
13833 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13834 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13835 VULKAN_HPP_ASSERT( d.vkImportSemaphoreWin32HandleKHR && "Function <vkImportSemaphoreWin32HandleKHR> requires <VK_KHR_external_semaphore_win32>" );
13836 # endif
13837
13838 Result result = static_cast<Result>(
13839 d.vkImportSemaphoreWin32HandleKHR( m_device, reinterpret_cast<const VkImportSemaphoreWin32HandleInfoKHR *>( &importSemaphoreWin32HandleInfo ) ) );
13840 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importSemaphoreWin32HandleKHR" );
13841
13842 return detail::createResultValueType( result );
13843 }
13844 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13845
13846 // wrapper function for command vkGetSemaphoreWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreWin32HandleKHR.html
13847 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreWin32HandleKHR ), bool>::type>
13848 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSemaphoreWin32HandleKHR( const SemaphoreGetWin32HandleInfoKHR * pGetWin32HandleInfo,
13849 HANDLE * pHandle,
13850 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13851 {
13852 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13853 return static_cast<Result>( d.vkGetSemaphoreWin32HandleKHR(
13854 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreGetWin32HandleInfoKHR *>( pGetWin32HandleInfo ), pHandle ) );
13855 }
13856
13857 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13858 // wrapper function for command vkGetSemaphoreWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreWin32HandleKHR.html
13859 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreWin32HandleKHR ), bool>::type>
13860 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HANDLE>::type
13861 Device::getSemaphoreWin32HandleKHR( const SemaphoreGetWin32HandleInfoKHR & getWin32HandleInfo, Dispatch const & d ) const
13862 {
13863 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13864 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13865 VULKAN_HPP_ASSERT( d.vkGetSemaphoreWin32HandleKHR && "Function <vkGetSemaphoreWin32HandleKHR> requires <VK_KHR_external_semaphore_win32>" );
13866 # endif
13867
13868 HANDLE handle;
13869 Result result = static_cast<Result>(
13870 d.vkGetSemaphoreWin32HandleKHR( m_device, reinterpret_cast<const VkSemaphoreGetWin32HandleInfoKHR *>( &getWin32HandleInfo ), &handle ) );
13871 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreWin32HandleKHR" );
13872
13873 return detail::createResultValueType( result, std::move( handle ) );
13874 }
13875 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13876 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
13877
13878 //=== VK_KHR_external_semaphore_fd ===
13879
13880 // wrapper function for command vkImportSemaphoreFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreFdKHR.html
13881 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportSemaphoreFdKHR ), bool>::type>
13882 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::importSemaphoreFdKHR( const ImportSemaphoreFdInfoKHR * pImportSemaphoreFdInfo,
13883 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13884 {
13885 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13886 return static_cast<Result>(
13887 d.vkImportSemaphoreFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImportSemaphoreFdInfoKHR *>( pImportSemaphoreFdInfo ) ) );
13888 }
13889
13890 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13891 // wrapper function for command vkImportSemaphoreFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreFdKHR.html
13892 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportSemaphoreFdKHR ), bool>::type>
13893 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
13894 Device::importSemaphoreFdKHR( const ImportSemaphoreFdInfoKHR & importSemaphoreFdInfo, Dispatch const & d ) const
13895 {
13896 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13897 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13898 VULKAN_HPP_ASSERT( d.vkImportSemaphoreFdKHR && "Function <vkImportSemaphoreFdKHR> requires <VK_KHR_external_semaphore_fd>" );
13899 # endif
13900
13901 Result result = static_cast<Result>( d.vkImportSemaphoreFdKHR( m_device, reinterpret_cast<const VkImportSemaphoreFdInfoKHR *>( &importSemaphoreFdInfo ) ) );
13902 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importSemaphoreFdKHR" );
13903
13904 return detail::createResultValueType( result );
13905 }
13906 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13907
13908 // wrapper function for command vkGetSemaphoreFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreFdKHR.html
13909 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreFdKHR ), bool>::type>
13910 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSemaphoreFdKHR( const SemaphoreGetFdInfoKHR * pGetFdInfo,
13911 int * pFd,
13912 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13913 {
13914 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13915 return static_cast<Result>(
13916 d.vkGetSemaphoreFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreGetFdInfoKHR *>( pGetFdInfo ), pFd ) );
13917 }
13918
13919 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13920 // wrapper function for command vkGetSemaphoreFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreFdKHR.html
13921 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreFdKHR ), bool>::type>
13922 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<int>::type Device::getSemaphoreFdKHR( const SemaphoreGetFdInfoKHR & getFdInfo,
13923 Dispatch const & d ) const
13924 {
13925 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13926 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13927 VULKAN_HPP_ASSERT( d.vkGetSemaphoreFdKHR && "Function <vkGetSemaphoreFdKHR> requires <VK_KHR_external_semaphore_fd>" );
13928 # endif
13929
13930 int fd;
13931 Result result = static_cast<Result>( d.vkGetSemaphoreFdKHR( m_device, reinterpret_cast<const VkSemaphoreGetFdInfoKHR *>( &getFdInfo ), &fd ) );
13932 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreFdKHR" );
13933
13934 return detail::createResultValueType( result, std::move( fd ) );
13935 }
13936 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13937
13938 //=== VK_KHR_push_descriptor ===
13939
13940 // wrapper function for command vkCmdPushDescriptorSetKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetKHR.html
13941 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetKHR ), bool>::type>
13942 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetKHR( PipelineBindPoint pipelineBindPoint,
13943 PipelineLayout layout,
13944 uint32_t set,
13945 uint32_t descriptorWriteCount,
13946 const WriteDescriptorSet * pDescriptorWrites,
13947 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13948 {
13949 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13950 d.vkCmdPushDescriptorSetKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
13951 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
13952 static_cast<VkPipelineLayout>( layout ),
13953 set,
13954 descriptorWriteCount,
13955 reinterpret_cast<const VkWriteDescriptorSet *>( pDescriptorWrites ) );
13956 }
13957
13958 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13959 // wrapper function for command vkCmdPushDescriptorSetKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetKHR.html
13960 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetKHR ), bool>::type>
13961 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetKHR( PipelineBindPoint pipelineBindPoint,
13962 PipelineLayout layout,
13963 uint32_t set,
13964 ArrayProxy<const WriteDescriptorSet> const & descriptorWrites,
13965 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13966 {
13967 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13968 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
13969 VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSetKHR && "Function <vkCmdPushDescriptorSetKHR> requires <VK_KHR_push_descriptor> or <VK_VERSION_1_4>" );
13970 # endif
13971
13972 d.vkCmdPushDescriptorSetKHR( m_commandBuffer,
13973 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
13974 static_cast<VkPipelineLayout>( layout ),
13975 set,
13976 descriptorWrites.size(),
13977 reinterpret_cast<const VkWriteDescriptorSet *>( descriptorWrites.data() ) );
13978 }
13979 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
13980
13981 // wrapper function for command vkCmdPushDescriptorSetWithTemplateKHR, see
13982 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplateKHR.html
13983 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplateKHR ), bool>::type>
13984 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplateKHR(
13985 DescriptorUpdateTemplate descriptorUpdateTemplate, PipelineLayout layout, uint32_t set, const void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
13986 {
13987 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
13988 d.vkCmdPushDescriptorSetWithTemplateKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
13989 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
13990 static_cast<VkPipelineLayout>( layout ),
13991 set,
13992 pData );
13993 }
13994
13995 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
13996 // wrapper function for command vkCmdPushDescriptorSetWithTemplateKHR, see
13997 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplateKHR.html
13998 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplateKHR ), bool>::type>
13999 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplateKHR( DescriptorUpdateTemplate descriptorUpdateTemplate,
14000 PipelineLayout layout,
14001 uint32_t set,
14002 DataType const & data,
14003 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14004 {
14005 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14006 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14007 VULKAN_HPP_ASSERT(
14008 d.vkCmdPushDescriptorSetWithTemplateKHR &&
14009 "Function <vkCmdPushDescriptorSetWithTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_KHR_push_descriptor> or <VK_VERSION_1_4>" );
14010 # endif
14011
14012 d.vkCmdPushDescriptorSetWithTemplateKHR( m_commandBuffer,
14013 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
14014 static_cast<VkPipelineLayout>( layout ),
14015 set,
14016 reinterpret_cast<const void *>( &data ) );
14017 }
14018 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14019
14020 //=== VK_EXT_conditional_rendering ===
14021
14022 // wrapper function for command vkCmdBeginConditionalRenderingEXT, see
14023 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginConditionalRenderingEXT.html
14024 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginConditionalRenderingEXT ), bool>::type>
14025 VULKAN_HPP_INLINE void CommandBuffer::beginConditionalRenderingEXT( const ConditionalRenderingBeginInfoEXT * pConditionalRenderingBegin,
14026 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14027 {
14028 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14029 d.vkCmdBeginConditionalRenderingEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
14030 reinterpret_cast<const VkConditionalRenderingBeginInfoEXT *>( pConditionalRenderingBegin ) );
14031 }
14032
14033 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14034 // wrapper function for command vkCmdBeginConditionalRenderingEXT, see
14035 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginConditionalRenderingEXT.html
14036 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginConditionalRenderingEXT ), bool>::type>
14037 VULKAN_HPP_INLINE void CommandBuffer::beginConditionalRenderingEXT( const ConditionalRenderingBeginInfoEXT & conditionalRenderingBegin,
14038 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14039 {
14040 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14041 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14042 VULKAN_HPP_ASSERT( d.vkCmdBeginConditionalRenderingEXT && "Function <vkCmdBeginConditionalRenderingEXT> requires <VK_EXT_conditional_rendering>" );
14043 # endif
14044
14045 d.vkCmdBeginConditionalRenderingEXT( m_commandBuffer, reinterpret_cast<const VkConditionalRenderingBeginInfoEXT *>( &conditionalRenderingBegin ) );
14046 }
14047 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14048
14049 // wrapper function for command vkCmdEndConditionalRenderingEXT, see
14050 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndConditionalRenderingEXT.html
14051 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndConditionalRenderingEXT ), bool>::type>
14052 VULKAN_HPP_INLINE void CommandBuffer::endConditionalRenderingEXT( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14053 {
14054 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14055 d.vkCmdEndConditionalRenderingEXT( static_cast<VkCommandBuffer>( m_commandBuffer ) );
14056 }
14057
14058 //=== VK_KHR_descriptor_update_template ===
14059
14060 // wrapper function for command vkCreateDescriptorUpdateTemplateKHR, see
14061 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplateKHR.html
14062 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorUpdateTemplateKHR ), bool>::type>
14063 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDescriptorUpdateTemplateKHR( const DescriptorUpdateTemplateCreateInfo * pCreateInfo,
14064 const AllocationCallbacks * pAllocator,
14065 DescriptorUpdateTemplate * pDescriptorUpdateTemplate,
14066 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14067 {
14068 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14069 return static_cast<Result>( d.vkCreateDescriptorUpdateTemplateKHR( static_cast<VkDevice>( m_device ),
14070 reinterpret_cast<const VkDescriptorUpdateTemplateCreateInfo *>( pCreateInfo ),
14071 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
14072 reinterpret_cast<VkDescriptorUpdateTemplate *>( pDescriptorUpdateTemplate ) ) );
14073 }
14074
14075 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14076 // wrapper function for command vkCreateDescriptorUpdateTemplateKHR, see
14077 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplateKHR.html
14078 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorUpdateTemplateKHR ), bool>::type>
14079 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DescriptorUpdateTemplate>::type Device::createDescriptorUpdateTemplateKHR(
14080 const DescriptorUpdateTemplateCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
14081 {
14082 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14083 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14084 VULKAN_HPP_ASSERT( d.vkCreateDescriptorUpdateTemplateKHR &&
14085 "Function <vkCreateDescriptorUpdateTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
14086 # endif
14087
14088 DescriptorUpdateTemplate descriptorUpdateTemplate;
14089 Result result = static_cast<Result>( d.vkCreateDescriptorUpdateTemplateKHR( m_device,
14090 reinterpret_cast<const VkDescriptorUpdateTemplateCreateInfo *>( &createInfo ),
14091 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
14092 reinterpret_cast<VkDescriptorUpdateTemplate *>( &descriptorUpdateTemplate ) ) );
14093 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorUpdateTemplateKHR" );
14094
14095 return detail::createResultValueType( result, std::move( descriptorUpdateTemplate ) );
14096 }
14097
14098 # ifndef VULKAN_HPP_NO_SMART_HANDLE
14099 // wrapper function for command vkCreateDescriptorUpdateTemplateKHR, see
14100 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDescriptorUpdateTemplateKHR.html
14101 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDescriptorUpdateTemplateKHR ), bool>::type>
14102 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DescriptorUpdateTemplate, Dispatch>>::type
14103 Device::createDescriptorUpdateTemplateKHRUnique( const DescriptorUpdateTemplateCreateInfo & createInfo,
14104 Optional<const AllocationCallbacks> allocator,
14105 Dispatch const & d ) const
14106 {
14107 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14108 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14109 VULKAN_HPP_ASSERT( d.vkCreateDescriptorUpdateTemplateKHR &&
14110 "Function <vkCreateDescriptorUpdateTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
14111 # endif
14112
14113 DescriptorUpdateTemplate descriptorUpdateTemplate;
14114 Result result = static_cast<Result>( d.vkCreateDescriptorUpdateTemplateKHR( m_device,
14115 reinterpret_cast<const VkDescriptorUpdateTemplateCreateInfo *>( &createInfo ),
14116 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
14117 reinterpret_cast<VkDescriptorUpdateTemplate *>( &descriptorUpdateTemplate ) ) );
14118 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDescriptorUpdateTemplateKHRUnique" );
14119
14120 return detail::createResultValueType(
14121 result, UniqueHandle<DescriptorUpdateTemplate, Dispatch>( descriptorUpdateTemplate, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
14122 }
14123 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
14124 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14125
14126 // wrapper function for command vkDestroyDescriptorUpdateTemplateKHR, see
14127 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplateKHR.html
14128 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorUpdateTemplateKHR ), bool>::type>
14129 VULKAN_HPP_INLINE void Device::destroyDescriptorUpdateTemplateKHR( DescriptorUpdateTemplate descriptorUpdateTemplate,
14130 const AllocationCallbacks * pAllocator,
14131 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14132 {
14133 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14134 d.vkDestroyDescriptorUpdateTemplateKHR( static_cast<VkDevice>( m_device ),
14135 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
14136 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
14137 }
14138
14139 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14140 // wrapper function for command vkDestroyDescriptorUpdateTemplateKHR, see
14141 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDescriptorUpdateTemplateKHR.html
14142 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDescriptorUpdateTemplateKHR ), bool>::type>
14143 VULKAN_HPP_INLINE void Device::destroyDescriptorUpdateTemplateKHR( DescriptorUpdateTemplate descriptorUpdateTemplate,
14144 Optional<const AllocationCallbacks> allocator,
14145 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14146 {
14147 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14148 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14149 VULKAN_HPP_ASSERT( d.vkDestroyDescriptorUpdateTemplateKHR &&
14150 "Function <vkDestroyDescriptorUpdateTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
14151 # endif
14152
14153 d.vkDestroyDescriptorUpdateTemplateKHR(
14154 m_device, static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
14155 }
14156 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14157
14158 // wrapper function for command vkUpdateDescriptorSetWithTemplateKHR, see
14159 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSetWithTemplateKHR.html
14160 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateDescriptorSetWithTemplateKHR ), bool>::type>
14161 VULKAN_HPP_INLINE void Device::updateDescriptorSetWithTemplateKHR( DescriptorSet descriptorSet,
14162 DescriptorUpdateTemplate descriptorUpdateTemplate,
14163 const void * pData,
14164 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14165 {
14166 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14167 d.vkUpdateDescriptorSetWithTemplateKHR( static_cast<VkDevice>( m_device ),
14168 static_cast<VkDescriptorSet>( descriptorSet ),
14169 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
14170 pData );
14171 }
14172
14173 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14174 // wrapper function for command vkUpdateDescriptorSetWithTemplateKHR, see
14175 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateDescriptorSetWithTemplateKHR.html
14176 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateDescriptorSetWithTemplateKHR ), bool>::type>
14177 VULKAN_HPP_INLINE void Device::updateDescriptorSetWithTemplateKHR( DescriptorSet descriptorSet,
14178 DescriptorUpdateTemplate descriptorUpdateTemplate,
14179 DataType const & data,
14180 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14181 {
14182 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14183 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14184 VULKAN_HPP_ASSERT( d.vkUpdateDescriptorSetWithTemplateKHR &&
14185 "Function <vkUpdateDescriptorSetWithTemplateKHR> requires <VK_KHR_descriptor_update_template> or <VK_VERSION_1_1>" );
14186 # endif
14187
14188 d.vkUpdateDescriptorSetWithTemplateKHR( m_device,
14189 static_cast<VkDescriptorSet>( descriptorSet ),
14190 static_cast<VkDescriptorUpdateTemplate>( descriptorUpdateTemplate ),
14191 reinterpret_cast<const void *>( &data ) );
14192 }
14193 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14194
14195 //=== VK_NV_clip_space_w_scaling ===
14196
14197 // wrapper function for command vkCmdSetViewportWScalingNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWScalingNV.html
14198 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWScalingNV ), bool>::type>
14199 VULKAN_HPP_INLINE void CommandBuffer::setViewportWScalingNV( uint32_t firstViewport,
14200 uint32_t viewportCount,
14201 const ViewportWScalingNV * pViewportWScalings,
14202 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14203 {
14204 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14205 d.vkCmdSetViewportWScalingNV(
14206 static_cast<VkCommandBuffer>( m_commandBuffer ), firstViewport, viewportCount, reinterpret_cast<const VkViewportWScalingNV *>( pViewportWScalings ) );
14207 }
14208
14209 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14210 // wrapper function for command vkCmdSetViewportWScalingNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWScalingNV.html
14211 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWScalingNV ), bool>::type>
14212 VULKAN_HPP_INLINE void CommandBuffer::setViewportWScalingNV( uint32_t firstViewport,
14213 ArrayProxy<const ViewportWScalingNV> const & viewportWScalings,
14214 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14215 {
14216 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14217 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14218 VULKAN_HPP_ASSERT( d.vkCmdSetViewportWScalingNV && "Function <vkCmdSetViewportWScalingNV> requires <VK_NV_clip_space_w_scaling>" );
14219 # endif
14220
14221 d.vkCmdSetViewportWScalingNV(
14222 m_commandBuffer, firstViewport, viewportWScalings.size(), reinterpret_cast<const VkViewportWScalingNV *>( viewportWScalings.data() ) );
14223 }
14224 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14225
14226 //=== VK_EXT_direct_mode_display ===
14227
14228 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
14229 // wrapper function for command vkReleaseDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseDisplayEXT.html
14230 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseDisplayEXT ), bool>::type>
14231 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::releaseDisplayEXT( DisplayKHR display, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14232 {
14233 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14234 return static_cast<Result>( d.vkReleaseDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( display ) ) );
14235 }
14236 #else
14237 // wrapper function for command vkReleaseDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseDisplayEXT.html
14238 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseDisplayEXT ), bool>::type>
14239 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type PhysicalDevice::releaseDisplayEXT( DisplayKHR display,
14240 Dispatch const & d ) const
14241 {
14242 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14243 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14244 VULKAN_HPP_ASSERT( d.vkReleaseDisplayEXT && "Function <vkReleaseDisplayEXT> requires <VK_EXT_direct_mode_display>" );
14245 # endif
14246
14247 Result result = static_cast<Result>( d.vkReleaseDisplayEXT( m_physicalDevice, static_cast<VkDisplayKHR>( display ) ) );
14248 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::releaseDisplayEXT" );
14249
14250 return detail::createResultValueType( result );
14251 }
14252 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
14253
14254 #if defined( VK_USE_PLATFORM_XLIB_XRANDR_EXT )
14255 //=== VK_EXT_acquire_xlib_display ===
14256
14257 // wrapper function for command vkAcquireXlibDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireXlibDisplayEXT.html
14258 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireXlibDisplayEXT ), bool>::type>
14259 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::acquireXlibDisplayEXT( Display * dpy,
14260 DisplayKHR display,
14261 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14262 {
14263 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14264 return static_cast<Result>( d.vkAcquireXlibDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), dpy, static_cast<VkDisplayKHR>( display ) ) );
14265 }
14266
14267 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14268 // wrapper function for command vkAcquireXlibDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireXlibDisplayEXT.html
14269 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireXlibDisplayEXT ), bool>::type>
14270 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
14271 PhysicalDevice::acquireXlibDisplayEXT( Display & dpy, DisplayKHR display, Dispatch const & d ) const
14272 {
14273 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14274 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14275 VULKAN_HPP_ASSERT( d.vkAcquireXlibDisplayEXT && "Function <vkAcquireXlibDisplayEXT> requires <VK_EXT_acquire_xlib_display>" );
14276 # endif
14277
14278 Result result = static_cast<Result>( d.vkAcquireXlibDisplayEXT( m_physicalDevice, &dpy, static_cast<VkDisplayKHR>( display ) ) );
14279 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::acquireXlibDisplayEXT" );
14280
14281 return detail::createResultValueType( result );
14282 }
14283 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14284
14285 // wrapper function for command vkGetRandROutputDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRandROutputDisplayEXT.html
14286 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRandROutputDisplayEXT ), bool>::type>
14287 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
14288 PhysicalDevice::getRandROutputDisplayEXT( Display * dpy, RROutput rrOutput, DisplayKHR * pDisplay, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14289 {
14290 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14291 return static_cast<Result>(
14292 d.vkGetRandROutputDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), dpy, rrOutput, reinterpret_cast<VkDisplayKHR *>( pDisplay ) ) );
14293 }
14294
14295 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14296 // wrapper function for command vkGetRandROutputDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRandROutputDisplayEXT.html
14297 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRandROutputDisplayEXT ), bool>::type>
14298 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayKHR>::type
14299 PhysicalDevice::getRandROutputDisplayEXT( Display & dpy, RROutput rrOutput, Dispatch const & d ) const
14300 {
14301 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14302 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14303 VULKAN_HPP_ASSERT( d.vkGetRandROutputDisplayEXT && "Function <vkGetRandROutputDisplayEXT> requires <VK_EXT_acquire_xlib_display>" );
14304 # endif
14305
14306 DisplayKHR display;
14307 Result result = static_cast<Result>( d.vkGetRandROutputDisplayEXT( m_physicalDevice, &dpy, rrOutput, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
14308 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getRandROutputDisplayEXT" );
14309
14310 return detail::createResultValueType( result, std::move( display ) );
14311 }
14312
14313 # ifndef VULKAN_HPP_NO_SMART_HANDLE
14314 // wrapper function for command vkGetRandROutputDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRandROutputDisplayEXT.html
14315 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRandROutputDisplayEXT ), bool>::type>
14316 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DisplayKHR, Dispatch>>::type
14317 PhysicalDevice::getRandROutputDisplayEXTUnique( Display & dpy, RROutput rrOutput, Dispatch const & d ) const
14318 {
14319 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14320 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14321 VULKAN_HPP_ASSERT( d.vkGetRandROutputDisplayEXT && "Function <vkGetRandROutputDisplayEXT> requires <VK_EXT_acquire_xlib_display>" );
14322 # endif
14323
14324 DisplayKHR display;
14325 Result result = static_cast<Result>( d.vkGetRandROutputDisplayEXT( m_physicalDevice, &dpy, rrOutput, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
14326 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getRandROutputDisplayEXTUnique" );
14327
14328 return detail::createResultValueType( result, UniqueHandle<DisplayKHR, Dispatch>( display, detail::ObjectRelease<PhysicalDevice, Dispatch>( *this, d ) ) );
14329 }
14330 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
14331 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14332 #endif /*VK_USE_PLATFORM_XLIB_XRANDR_EXT*/
14333
14334 //=== VK_EXT_display_surface_counter ===
14335
14336 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2EXT, see
14337 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2EXT.html
14338 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilities2EXT ), bool>::type>
14339 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceCapabilities2EXT( SurfaceKHR surface,
14340 SurfaceCapabilities2EXT * pSurfaceCapabilities,
14341 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14342 {
14343 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14344 return static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilities2EXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
14345 static_cast<VkSurfaceKHR>( surface ),
14346 reinterpret_cast<VkSurfaceCapabilities2EXT *>( pSurfaceCapabilities ) ) );
14347 }
14348
14349 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14350 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2EXT, see
14351 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2EXT.html
14352 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilities2EXT ), bool>::type>
14353 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceCapabilities2EXT>::type
14354 PhysicalDevice::getSurfaceCapabilities2EXT( SurfaceKHR surface, Dispatch const & d ) const
14355 {
14356 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14357 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14358 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceCapabilities2EXT &&
14359 "Function <vkGetPhysicalDeviceSurfaceCapabilities2EXT> requires <VK_EXT_display_surface_counter>" );
14360 # endif
14361
14362 SurfaceCapabilities2EXT surfaceCapabilities;
14363 Result result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilities2EXT(
14364 m_physicalDevice, static_cast<VkSurfaceKHR>( surface ), reinterpret_cast<VkSurfaceCapabilities2EXT *>( &surfaceCapabilities ) ) );
14365 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2EXT" );
14366
14367 return detail::createResultValueType( result, std::move( surfaceCapabilities ) );
14368 }
14369 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14370
14371 //=== VK_EXT_display_control ===
14372
14373 // wrapper function for command vkDisplayPowerControlEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDisplayPowerControlEXT.html
14374 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDisplayPowerControlEXT ), bool>::type>
14375 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::displayPowerControlEXT( DisplayKHR display,
14376 const DisplayPowerInfoEXT * pDisplayPowerInfo,
14377 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14378 {
14379 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14380 return static_cast<Result>( d.vkDisplayPowerControlEXT(
14381 static_cast<VkDevice>( m_device ), static_cast<VkDisplayKHR>( display ), reinterpret_cast<const VkDisplayPowerInfoEXT *>( pDisplayPowerInfo ) ) );
14382 }
14383
14384 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14385 // wrapper function for command vkDisplayPowerControlEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDisplayPowerControlEXT.html
14386 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDisplayPowerControlEXT ), bool>::type>
14387 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
14388 Device::displayPowerControlEXT( DisplayKHR display, const DisplayPowerInfoEXT & displayPowerInfo, Dispatch const & d ) const
14389 {
14390 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14391 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14392 VULKAN_HPP_ASSERT( d.vkDisplayPowerControlEXT && "Function <vkDisplayPowerControlEXT> requires <VK_EXT_display_control>" );
14393 # endif
14394
14395 Result result = static_cast<Result>(
14396 d.vkDisplayPowerControlEXT( m_device, static_cast<VkDisplayKHR>( display ), reinterpret_cast<const VkDisplayPowerInfoEXT *>( &displayPowerInfo ) ) );
14397 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::displayPowerControlEXT" );
14398
14399 return detail::createResultValueType( result );
14400 }
14401 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14402
14403 // wrapper function for command vkRegisterDeviceEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDeviceEventEXT.html
14404 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterDeviceEventEXT ), bool>::type>
14405 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::registerEventEXT( const DeviceEventInfoEXT * pDeviceEventInfo,
14406 const AllocationCallbacks * pAllocator,
14407 Fence * pFence,
14408 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14409 {
14410 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14411 return static_cast<Result>( d.vkRegisterDeviceEventEXT( static_cast<VkDevice>( m_device ),
14412 reinterpret_cast<const VkDeviceEventInfoEXT *>( pDeviceEventInfo ),
14413 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
14414 reinterpret_cast<VkFence *>( pFence ) ) );
14415 }
14416
14417 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14418 // wrapper function for command vkRegisterDeviceEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDeviceEventEXT.html
14419 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterDeviceEventEXT ), bool>::type>
14420 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Fence>::type
14421 Device::registerEventEXT( const DeviceEventInfoEXT & deviceEventInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
14422 {
14423 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14424 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14425 VULKAN_HPP_ASSERT( d.vkRegisterDeviceEventEXT && "Function <vkRegisterDeviceEventEXT> requires <VK_EXT_display_control>" );
14426 # endif
14427
14428 Fence fence;
14429 Result result = static_cast<Result>( d.vkRegisterDeviceEventEXT( m_device,
14430 reinterpret_cast<const VkDeviceEventInfoEXT *>( &deviceEventInfo ),
14431 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
14432 reinterpret_cast<VkFence *>( &fence ) ) );
14433 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerEventEXT" );
14434
14435 return detail::createResultValueType( result, std::move( fence ) );
14436 }
14437
14438 # ifndef VULKAN_HPP_NO_SMART_HANDLE
14439 // wrapper function for command vkRegisterDeviceEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDeviceEventEXT.html
14440 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterDeviceEventEXT ), bool>::type>
14441 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Fence, Dispatch>>::type
14442 Device::registerEventEXTUnique( const DeviceEventInfoEXT & deviceEventInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
14443 {
14444 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14445 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14446 VULKAN_HPP_ASSERT( d.vkRegisterDeviceEventEXT && "Function <vkRegisterDeviceEventEXT> requires <VK_EXT_display_control>" );
14447 # endif
14448
14449 Fence fence;
14450 Result result = static_cast<Result>( d.vkRegisterDeviceEventEXT( m_device,
14451 reinterpret_cast<const VkDeviceEventInfoEXT *>( &deviceEventInfo ),
14452 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
14453 reinterpret_cast<VkFence *>( &fence ) ) );
14454 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerEventEXTUnique" );
14455
14456 return detail::createResultValueType( result, UniqueHandle<Fence, Dispatch>( fence, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
14457 }
14458 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
14459 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14460
14461 // wrapper function for command vkRegisterDisplayEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDisplayEventEXT.html
14462 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterDisplayEventEXT ), bool>::type>
14463 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::registerDisplayEventEXT( DisplayKHR display,
14464 const DisplayEventInfoEXT * pDisplayEventInfo,
14465 const AllocationCallbacks * pAllocator,
14466 Fence * pFence,
14467 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14468 {
14469 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14470 return static_cast<Result>( d.vkRegisterDisplayEventEXT( static_cast<VkDevice>( m_device ),
14471 static_cast<VkDisplayKHR>( display ),
14472 reinterpret_cast<const VkDisplayEventInfoEXT *>( pDisplayEventInfo ),
14473 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
14474 reinterpret_cast<VkFence *>( pFence ) ) );
14475 }
14476
14477 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14478 // wrapper function for command vkRegisterDisplayEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDisplayEventEXT.html
14479 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterDisplayEventEXT ), bool>::type>
14480 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Fence>::type Device::registerDisplayEventEXT( DisplayKHR display,
14481 const DisplayEventInfoEXT & displayEventInfo,
14482 Optional<const AllocationCallbacks> allocator,
14483 Dispatch const & d ) const
14484 {
14485 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14486 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14487 VULKAN_HPP_ASSERT( d.vkRegisterDisplayEventEXT && "Function <vkRegisterDisplayEventEXT> requires <VK_EXT_display_control>" );
14488 # endif
14489
14490 Fence fence;
14491 Result result = static_cast<Result>( d.vkRegisterDisplayEventEXT( m_device,
14492 static_cast<VkDisplayKHR>( display ),
14493 reinterpret_cast<const VkDisplayEventInfoEXT *>( &displayEventInfo ),
14494 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
14495 reinterpret_cast<VkFence *>( &fence ) ) );
14496 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerDisplayEventEXT" );
14497
14498 return detail::createResultValueType( result, std::move( fence ) );
14499 }
14500
14501 # ifndef VULKAN_HPP_NO_SMART_HANDLE
14502 // wrapper function for command vkRegisterDisplayEventEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterDisplayEventEXT.html
14503 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterDisplayEventEXT ), bool>::type>
14504 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<Fence, Dispatch>>::type Device::registerDisplayEventEXTUnique(
14505 DisplayKHR display, const DisplayEventInfoEXT & displayEventInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
14506 {
14507 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14508 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14509 VULKAN_HPP_ASSERT( d.vkRegisterDisplayEventEXT && "Function <vkRegisterDisplayEventEXT> requires <VK_EXT_display_control>" );
14510 # endif
14511
14512 Fence fence;
14513 Result result = static_cast<Result>( d.vkRegisterDisplayEventEXT( m_device,
14514 static_cast<VkDisplayKHR>( display ),
14515 reinterpret_cast<const VkDisplayEventInfoEXT *>( &displayEventInfo ),
14516 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
14517 reinterpret_cast<VkFence *>( &fence ) ) );
14518 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerDisplayEventEXTUnique" );
14519
14520 return detail::createResultValueType( result, UniqueHandle<Fence, Dispatch>( fence, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
14521 }
14522 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
14523 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14524
14525 // wrapper function for command vkGetSwapchainCounterEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainCounterEXT.html
14526 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainCounterEXT ), bool>::type>
14527 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSwapchainCounterEXT( SwapchainKHR swapchain,
14528 SurfaceCounterFlagBitsEXT counter,
14529 uint64_t * pCounterValue,
14530 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14531 {
14532 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14533 return static_cast<Result>( d.vkGetSwapchainCounterEXT(
14534 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), static_cast<VkSurfaceCounterFlagBitsEXT>( counter ), pCounterValue ) );
14535 }
14536
14537 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14538 // wrapper function for command vkGetSwapchainCounterEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainCounterEXT.html
14539 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainCounterEXT ), bool>::type>
14540 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
14541 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14542 ResultValue<uint64_t>
14543 # else
14544 typename ResultValueType<uint64_t>::type
14545 # endif
14546 Device::getSwapchainCounterEXT( SwapchainKHR swapchain, SurfaceCounterFlagBitsEXT counter, Dispatch const & d ) const
14547 {
14548 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14549 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14550 VULKAN_HPP_ASSERT( d.vkGetSwapchainCounterEXT && "Function <vkGetSwapchainCounterEXT> requires <VK_EXT_display_control>" );
14551 # endif
14552
14553 uint64_t counterValue;
14554 Result result = static_cast<Result>(
14555 d.vkGetSwapchainCounterEXT( m_device, static_cast<VkSwapchainKHR>( swapchain ), static_cast<VkSurfaceCounterFlagBitsEXT>( counter ), &counterValue ) );
14556
14557 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14558 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainCounterEXT", { Result::eSuccess, Result::eErrorOutOfDateKHR } );
14559 # else
14560 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainCounterEXT" );
14561 # endif
14562
14563 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14564 return ResultValue<uint64_t>( result, std::move( counterValue ) );
14565 # else
14566 return detail::createResultValueType( result, std::move( counterValue ) );
14567 # endif
14568 }
14569 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14570
14571 //=== VK_GOOGLE_display_timing ===
14572
14573 // wrapper function for command vkGetRefreshCycleDurationGOOGLE, see
14574 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRefreshCycleDurationGOOGLE.html
14575 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRefreshCycleDurationGOOGLE ), bool>::type>
14576 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getRefreshCycleDurationGOOGLE( SwapchainKHR swapchain,
14577 RefreshCycleDurationGOOGLE * pDisplayTimingProperties,
14578 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14579 {
14580 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14581 return static_cast<Result>( d.vkGetRefreshCycleDurationGOOGLE( static_cast<VkDevice>( m_device ),
14582 static_cast<VkSwapchainKHR>( swapchain ),
14583 reinterpret_cast<VkRefreshCycleDurationGOOGLE *>( pDisplayTimingProperties ) ) );
14584 }
14585
14586 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14587 // wrapper function for command vkGetRefreshCycleDurationGOOGLE, see
14588 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRefreshCycleDurationGOOGLE.html
14589 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRefreshCycleDurationGOOGLE ), bool>::type>
14590 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RefreshCycleDurationGOOGLE>::type
14591 Device::getRefreshCycleDurationGOOGLE( SwapchainKHR swapchain, Dispatch const & d ) const
14592 {
14593 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14594 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14595 VULKAN_HPP_ASSERT( d.vkGetRefreshCycleDurationGOOGLE && "Function <vkGetRefreshCycleDurationGOOGLE> requires <VK_GOOGLE_display_timing>" );
14596 # endif
14597
14598 RefreshCycleDurationGOOGLE displayTimingProperties;
14599 Result result = static_cast<Result>( d.vkGetRefreshCycleDurationGOOGLE(
14600 m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkRefreshCycleDurationGOOGLE *>( &displayTimingProperties ) ) );
14601 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRefreshCycleDurationGOOGLE" );
14602
14603 return detail::createResultValueType( result, std::move( displayTimingProperties ) );
14604 }
14605 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14606
14607 // wrapper function for command vkGetPastPresentationTimingGOOGLE, see
14608 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPastPresentationTimingGOOGLE.html
14609 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPastPresentationTimingGOOGLE ), bool>::type>
14610 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPastPresentationTimingGOOGLE( SwapchainKHR swapchain,
14611 uint32_t * pPresentationTimingCount,
14612 PastPresentationTimingGOOGLE * pPresentationTimings,
14613 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14614 {
14615 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14616 return static_cast<Result>( d.vkGetPastPresentationTimingGOOGLE( static_cast<VkDevice>( m_device ),
14617 static_cast<VkSwapchainKHR>( swapchain ),
14618 pPresentationTimingCount,
14619 reinterpret_cast<VkPastPresentationTimingGOOGLE *>( pPresentationTimings ) ) );
14620 }
14621
14622 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14623 // wrapper function for command vkGetPastPresentationTimingGOOGLE, see
14624 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPastPresentationTimingGOOGLE.html
14625 template <typename PastPresentationTimingGOOGLEAllocator,
14626 typename Dispatch,
14627 typename std::enable_if<std::is_same<typename PastPresentationTimingGOOGLEAllocator::value_type, PastPresentationTimingGOOGLE>::value, int>::type,
14628 typename std::enable_if<IS_DISPATCHED( vkGetPastPresentationTimingGOOGLE ), bool>::type>
14629 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
14630 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14631 ResultValue<std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator>>
14632 # else
14633 typename ResultValueType<std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator>>::type
14634 # endif
14635 Device::getPastPresentationTimingGOOGLE( SwapchainKHR swapchain, Dispatch const & d ) const
14636 {
14637 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14638 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14639 VULKAN_HPP_ASSERT( d.vkGetPastPresentationTimingGOOGLE && "Function <vkGetPastPresentationTimingGOOGLE> requires <VK_GOOGLE_display_timing>" );
14640 # endif
14641
14642 std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator> presentationTimings;
14643 uint32_t presentationTimingCount;
14644 Result result;
14645 do
14646 {
14647 result =
14648 static_cast<Result>( d.vkGetPastPresentationTimingGOOGLE( m_device, static_cast<VkSwapchainKHR>( swapchain ), &presentationTimingCount, nullptr ) );
14649 if ( ( result == Result::eSuccess ) && presentationTimingCount )
14650 {
14651 presentationTimings.resize( presentationTimingCount );
14652 result = static_cast<Result>( d.vkGetPastPresentationTimingGOOGLE( m_device,
14653 static_cast<VkSwapchainKHR>( swapchain ),
14654 &presentationTimingCount,
14655 reinterpret_cast<VkPastPresentationTimingGOOGLE *>( presentationTimings.data() ) ) );
14656 }
14657 } while ( result == Result::eIncomplete );
14658
14659 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14660 detail::resultCheck(
14661 result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPastPresentationTimingGOOGLE", { Result::eSuccess, Result::eIncomplete, Result::eErrorOutOfDateKHR } );
14662 # else
14663 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPastPresentationTimingGOOGLE" );
14664 # endif
14665
14666 VULKAN_HPP_ASSERT( presentationTimingCount <= presentationTimings.size() );
14667 if ( presentationTimingCount < presentationTimings.size() )
14668 {
14669 presentationTimings.resize( presentationTimingCount );
14670 }
14671
14672 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14673 return ResultValue<std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator>>( result, std::move( presentationTimings ) );
14674 # else
14675 return detail::createResultValueType( result, std::move( presentationTimings ) );
14676 # endif
14677 }
14678
14679 // wrapper function for command vkGetPastPresentationTimingGOOGLE, see
14680 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPastPresentationTimingGOOGLE.html
14681 template <typename PastPresentationTimingGOOGLEAllocator,
14682 typename Dispatch,
14683 typename std::enable_if<std::is_same<typename PastPresentationTimingGOOGLEAllocator::value_type, PastPresentationTimingGOOGLE>::value, int>::type,
14684 typename std::enable_if<IS_DISPATCHED( vkGetPastPresentationTimingGOOGLE ), bool>::type>
14685 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
14686 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14687 ResultValue<std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator>>
14688 # else
14689 typename ResultValueType<std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator>>::type
14690 # endif
14691 Device::getPastPresentationTimingGOOGLE( SwapchainKHR swapchain,
14692 PastPresentationTimingGOOGLEAllocator const & pastPresentationTimingGOOGLEAllocator,
14693 Dispatch const & d ) const
14694 {
14695 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14696 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14697 VULKAN_HPP_ASSERT( d.vkGetPastPresentationTimingGOOGLE && "Function <vkGetPastPresentationTimingGOOGLE> requires <VK_GOOGLE_display_timing>" );
14698 # endif
14699
14700 std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator> presentationTimings( pastPresentationTimingGOOGLEAllocator );
14701 uint32_t presentationTimingCount;
14702 Result result;
14703 do
14704 {
14705 result =
14706 static_cast<Result>( d.vkGetPastPresentationTimingGOOGLE( m_device, static_cast<VkSwapchainKHR>( swapchain ), &presentationTimingCount, nullptr ) );
14707 if ( ( result == Result::eSuccess ) && presentationTimingCount )
14708 {
14709 presentationTimings.resize( presentationTimingCount );
14710 result = static_cast<Result>( d.vkGetPastPresentationTimingGOOGLE( m_device,
14711 static_cast<VkSwapchainKHR>( swapchain ),
14712 &presentationTimingCount,
14713 reinterpret_cast<VkPastPresentationTimingGOOGLE *>( presentationTimings.data() ) ) );
14714 }
14715 } while ( result == Result::eIncomplete );
14716
14717 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14718 detail::resultCheck(
14719 result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPastPresentationTimingGOOGLE", { Result::eSuccess, Result::eIncomplete, Result::eErrorOutOfDateKHR } );
14720 # else
14721 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPastPresentationTimingGOOGLE" );
14722 # endif
14723
14724 VULKAN_HPP_ASSERT( presentationTimingCount <= presentationTimings.size() );
14725 if ( presentationTimingCount < presentationTimings.size() )
14726 {
14727 presentationTimings.resize( presentationTimingCount );
14728 }
14729
14730 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14731 return ResultValue<std::vector<PastPresentationTimingGOOGLE, PastPresentationTimingGOOGLEAllocator>>( result, std::move( presentationTimings ) );
14732 # else
14733 return detail::createResultValueType( result, std::move( presentationTimings ) );
14734 # endif
14735 }
14736 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14737
14738 //=== VK_EXT_discard_rectangles ===
14739
14740 // wrapper function for command vkCmdSetDiscardRectangleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleEXT.html
14741 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDiscardRectangleEXT ), bool>::type>
14742 VULKAN_HPP_INLINE void CommandBuffer::setDiscardRectangleEXT( uint32_t firstDiscardRectangle,
14743 uint32_t discardRectangleCount,
14744 const Rect2D * pDiscardRectangles,
14745 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14746 {
14747 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14748 d.vkCmdSetDiscardRectangleEXT(
14749 static_cast<VkCommandBuffer>( m_commandBuffer ), firstDiscardRectangle, discardRectangleCount, reinterpret_cast<const VkRect2D *>( pDiscardRectangles ) );
14750 }
14751
14752 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14753 // wrapper function for command vkCmdSetDiscardRectangleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleEXT.html
14754 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDiscardRectangleEXT ), bool>::type>
14755 VULKAN_HPP_INLINE void CommandBuffer::setDiscardRectangleEXT( uint32_t firstDiscardRectangle,
14756 ArrayProxy<const Rect2D> const & discardRectangles,
14757 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14758 {
14759 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14760 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14761 VULKAN_HPP_ASSERT( d.vkCmdSetDiscardRectangleEXT && "Function <vkCmdSetDiscardRectangleEXT> requires <VK_EXT_discard_rectangles>" );
14762 # endif
14763
14764 d.vkCmdSetDiscardRectangleEXT(
14765 m_commandBuffer, firstDiscardRectangle, discardRectangles.size(), reinterpret_cast<const VkRect2D *>( discardRectangles.data() ) );
14766 }
14767 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14768
14769 // wrapper function for command vkCmdSetDiscardRectangleEnableEXT, see
14770 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleEnableEXT.html
14771 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDiscardRectangleEnableEXT ), bool>::type>
14772 VULKAN_HPP_INLINE void CommandBuffer::setDiscardRectangleEnableEXT( Bool32 discardRectangleEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14773 {
14774 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14775 d.vkCmdSetDiscardRectangleEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( discardRectangleEnable ) );
14776 }
14777
14778 // wrapper function for command vkCmdSetDiscardRectangleModeEXT, see
14779 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDiscardRectangleModeEXT.html
14780 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDiscardRectangleModeEXT ), bool>::type>
14781 VULKAN_HPP_INLINE void CommandBuffer::setDiscardRectangleModeEXT( DiscardRectangleModeEXT discardRectangleMode, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14782 {
14783 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14784 d.vkCmdSetDiscardRectangleModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkDiscardRectangleModeEXT>( discardRectangleMode ) );
14785 }
14786
14787 //=== VK_EXT_hdr_metadata ===
14788
14789 // wrapper function for command vkSetHdrMetadataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetHdrMetadataEXT.html
14790 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetHdrMetadataEXT ), bool>::type>
14791 VULKAN_HPP_INLINE void Device::setHdrMetadataEXT( uint32_t swapchainCount,
14792 const SwapchainKHR * pSwapchains,
14793 const HdrMetadataEXT * pMetadata,
14794 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14795 {
14796 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14797 d.vkSetHdrMetadataEXT( static_cast<VkDevice>( m_device ),
14798 swapchainCount,
14799 reinterpret_cast<const VkSwapchainKHR *>( pSwapchains ),
14800 reinterpret_cast<const VkHdrMetadataEXT *>( pMetadata ) );
14801 }
14802
14803 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14804 // wrapper function for command vkSetHdrMetadataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetHdrMetadataEXT.html
14805 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetHdrMetadataEXT ), bool>::type>
14806 VULKAN_HPP_INLINE void Device::setHdrMetadataEXT( ArrayProxy<const SwapchainKHR> const & swapchains,
14807 ArrayProxy<const HdrMetadataEXT> const & metadata,
14808 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
14809 {
14810 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14811 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14812 VULKAN_HPP_ASSERT( d.vkSetHdrMetadataEXT && "Function <vkSetHdrMetadataEXT> requires <VK_EXT_hdr_metadata>" );
14813 # endif
14814 # ifdef VULKAN_HPP_NO_EXCEPTIONS
14815 VULKAN_HPP_ASSERT( swapchains.size() == metadata.size() );
14816 # else
14817 if ( swapchains.size() != metadata.size() )
14818 {
14819 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::setHdrMetadataEXT: swapchains.size() != metadata.size()" );
14820 }
14821 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
14822
14823 d.vkSetHdrMetadataEXT( m_device,
14824 swapchains.size(),
14825 reinterpret_cast<const VkSwapchainKHR *>( swapchains.data() ),
14826 reinterpret_cast<const VkHdrMetadataEXT *>( metadata.data() ) );
14827 }
14828 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14829
14830 //=== VK_KHR_create_renderpass2 ===
14831
14832 // wrapper function for command vkCreateRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2KHR.html
14833 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass2KHR ), bool>::type>
14834 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createRenderPass2KHR( const RenderPassCreateInfo2 * pCreateInfo,
14835 const AllocationCallbacks * pAllocator,
14836 RenderPass * pRenderPass,
14837 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14838 {
14839 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14840 return static_cast<Result>( d.vkCreateRenderPass2KHR( static_cast<VkDevice>( m_device ),
14841 reinterpret_cast<const VkRenderPassCreateInfo2 *>( pCreateInfo ),
14842 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
14843 reinterpret_cast<VkRenderPass *>( pRenderPass ) ) );
14844 }
14845
14846 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14847 // wrapper function for command vkCreateRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2KHR.html
14848 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass2KHR ), bool>::type>
14849 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RenderPass>::type
14850 Device::createRenderPass2KHR( const RenderPassCreateInfo2 & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
14851 {
14852 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14853 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14854 VULKAN_HPP_ASSERT( d.vkCreateRenderPass2KHR && "Function <vkCreateRenderPass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
14855 # endif
14856
14857 RenderPass renderPass;
14858 Result result = static_cast<Result>( d.vkCreateRenderPass2KHR( m_device,
14859 reinterpret_cast<const VkRenderPassCreateInfo2 *>( &createInfo ),
14860 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
14861 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
14862 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass2KHR" );
14863
14864 return detail::createResultValueType( result, std::move( renderPass ) );
14865 }
14866
14867 # ifndef VULKAN_HPP_NO_SMART_HANDLE
14868 // wrapper function for command vkCreateRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRenderPass2KHR.html
14869 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRenderPass2KHR ), bool>::type>
14870 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<RenderPass, Dispatch>>::type
14871 Device::createRenderPass2KHRUnique( const RenderPassCreateInfo2 & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
14872 {
14873 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14874 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14875 VULKAN_HPP_ASSERT( d.vkCreateRenderPass2KHR && "Function <vkCreateRenderPass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
14876 # endif
14877
14878 RenderPass renderPass;
14879 Result result = static_cast<Result>( d.vkCreateRenderPass2KHR( m_device,
14880 reinterpret_cast<const VkRenderPassCreateInfo2 *>( &createInfo ),
14881 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
14882 reinterpret_cast<VkRenderPass *>( &renderPass ) ) );
14883 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRenderPass2KHRUnique" );
14884
14885 return detail::createResultValueType( result,
14886 UniqueHandle<RenderPass, Dispatch>( renderPass, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
14887 }
14888 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
14889 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14890
14891 // wrapper function for command vkCmdBeginRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass2KHR.html
14892 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderPass2KHR ), bool>::type>
14893 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass2KHR( const RenderPassBeginInfo * pRenderPassBegin,
14894 const SubpassBeginInfo * pSubpassBeginInfo,
14895 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14896 {
14897 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14898 d.vkCmdBeginRenderPass2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
14899 reinterpret_cast<const VkRenderPassBeginInfo *>( pRenderPassBegin ),
14900 reinterpret_cast<const VkSubpassBeginInfo *>( pSubpassBeginInfo ) );
14901 }
14902
14903 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14904 // wrapper function for command vkCmdBeginRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginRenderPass2KHR.html
14905 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginRenderPass2KHR ), bool>::type>
14906 VULKAN_HPP_INLINE void CommandBuffer::beginRenderPass2KHR( const RenderPassBeginInfo & renderPassBegin,
14907 const SubpassBeginInfo & subpassBeginInfo,
14908 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14909 {
14910 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14911 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14912 VULKAN_HPP_ASSERT( d.vkCmdBeginRenderPass2KHR && "Function <vkCmdBeginRenderPass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
14913 # endif
14914
14915 d.vkCmdBeginRenderPass2KHR(
14916 m_commandBuffer, reinterpret_cast<const VkRenderPassBeginInfo *>( &renderPassBegin ), reinterpret_cast<const VkSubpassBeginInfo *>( &subpassBeginInfo ) );
14917 }
14918 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14919
14920 // wrapper function for command vkCmdNextSubpass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass2KHR.html
14921 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdNextSubpass2KHR ), bool>::type>
14922 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass2KHR( const SubpassBeginInfo * pSubpassBeginInfo,
14923 const SubpassEndInfo * pSubpassEndInfo,
14924 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14925 {
14926 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14927 d.vkCmdNextSubpass2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
14928 reinterpret_cast<const VkSubpassBeginInfo *>( pSubpassBeginInfo ),
14929 reinterpret_cast<const VkSubpassEndInfo *>( pSubpassEndInfo ) );
14930 }
14931
14932 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14933 // wrapper function for command vkCmdNextSubpass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdNextSubpass2KHR.html
14934 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdNextSubpass2KHR ), bool>::type>
14935 VULKAN_HPP_INLINE void CommandBuffer::nextSubpass2KHR( const SubpassBeginInfo & subpassBeginInfo,
14936 const SubpassEndInfo & subpassEndInfo,
14937 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14938 {
14939 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14940 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14941 VULKAN_HPP_ASSERT( d.vkCmdNextSubpass2KHR && "Function <vkCmdNextSubpass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
14942 # endif
14943
14944 d.vkCmdNextSubpass2KHR(
14945 m_commandBuffer, reinterpret_cast<const VkSubpassBeginInfo *>( &subpassBeginInfo ), reinterpret_cast<const VkSubpassEndInfo *>( &subpassEndInfo ) );
14946 }
14947 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14948
14949 // wrapper function for command vkCmdEndRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass2KHR.html
14950 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRenderPass2KHR ), bool>::type>
14951 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass2KHR( const SubpassEndInfo * pSubpassEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14952 {
14953 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14954 d.vkCmdEndRenderPass2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkSubpassEndInfo *>( pSubpassEndInfo ) );
14955 }
14956
14957 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
14958 // wrapper function for command vkCmdEndRenderPass2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRenderPass2KHR.html
14959 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRenderPass2KHR ), bool>::type>
14960 VULKAN_HPP_INLINE void CommandBuffer::endRenderPass2KHR( const SubpassEndInfo & subpassEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14961 {
14962 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14963 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14964 VULKAN_HPP_ASSERT( d.vkCmdEndRenderPass2KHR && "Function <vkCmdEndRenderPass2KHR> requires <VK_KHR_create_renderpass2> or <VK_VERSION_1_2>" );
14965 # endif
14966
14967 d.vkCmdEndRenderPass2KHR( m_commandBuffer, reinterpret_cast<const VkSubpassEndInfo *>( &subpassEndInfo ) );
14968 }
14969 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
14970
14971 //=== VK_KHR_shared_presentable_image ===
14972
14973 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
14974 // wrapper function for command vkGetSwapchainStatusKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainStatusKHR.html
14975 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainStatusKHR ), bool>::type>
14976 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSwapchainStatusKHR( SwapchainKHR swapchain, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
14977 {
14978 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14979 return static_cast<Result>( d.vkGetSwapchainStatusKHR( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ) ) );
14980 }
14981 #else
14982 // wrapper function for command vkGetSwapchainStatusKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainStatusKHR.html
14983 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainStatusKHR ), bool>::type>
14984 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSwapchainStatusKHR( SwapchainKHR swapchain, Dispatch const & d ) const
14985 {
14986 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
14987 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
14988 VULKAN_HPP_ASSERT( d.vkGetSwapchainStatusKHR && "Function <vkGetSwapchainStatusKHR> requires <VK_KHR_shared_presentable_image>" );
14989 # endif
14990
14991 Result result = static_cast<Result>( d.vkGetSwapchainStatusKHR( m_device, static_cast<VkSwapchainKHR>( swapchain ) ) );
14992
14993 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
14994 detail::resultCheck(
14995 result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainStatusKHR", { Result::eSuccess, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
14996 # else
14997 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainStatusKHR", { Result::eSuccess, Result::eSuboptimalKHR } );
14998 # endif
14999
15000 return static_cast<Result>( result );
15001 }
15002 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
15003
15004 //=== VK_KHR_external_fence_capabilities ===
15005
15006 // wrapper function for command vkGetPhysicalDeviceExternalFencePropertiesKHR, see
15007 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalFencePropertiesKHR.html
15008 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalFencePropertiesKHR ), bool>::type>
15009 VULKAN_HPP_INLINE void PhysicalDevice::getExternalFencePropertiesKHR( const PhysicalDeviceExternalFenceInfo * pExternalFenceInfo,
15010 ExternalFenceProperties * pExternalFenceProperties,
15011 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15012 {
15013 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15014 d.vkGetPhysicalDeviceExternalFencePropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15015 reinterpret_cast<const VkPhysicalDeviceExternalFenceInfo *>( pExternalFenceInfo ),
15016 reinterpret_cast<VkExternalFenceProperties *>( pExternalFenceProperties ) );
15017 }
15018
15019 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15020 // wrapper function for command vkGetPhysicalDeviceExternalFencePropertiesKHR, see
15021 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalFencePropertiesKHR.html
15022 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalFencePropertiesKHR ), bool>::type>
15023 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalFenceProperties
15024 PhysicalDevice::getExternalFencePropertiesKHR( const PhysicalDeviceExternalFenceInfo & externalFenceInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15025 {
15026 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15027 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15028 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalFencePropertiesKHR &&
15029 "Function <vkGetPhysicalDeviceExternalFencePropertiesKHR> requires <VK_KHR_external_fence_capabilities> or <VK_VERSION_1_1>" );
15030 # endif
15031
15032 ExternalFenceProperties externalFenceProperties;
15033 d.vkGetPhysicalDeviceExternalFencePropertiesKHR( m_physicalDevice,
15034 reinterpret_cast<const VkPhysicalDeviceExternalFenceInfo *>( &externalFenceInfo ),
15035 reinterpret_cast<VkExternalFenceProperties *>( &externalFenceProperties ) );
15036
15037 return externalFenceProperties;
15038 }
15039 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15040
15041 #if defined( VK_USE_PLATFORM_WIN32_KHR )
15042 //=== VK_KHR_external_fence_win32 ===
15043
15044 // wrapper function for command vkImportFenceWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportFenceWin32HandleKHR.html
15045 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportFenceWin32HandleKHR ), bool>::type>
15046 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::importFenceWin32HandleKHR( const ImportFenceWin32HandleInfoKHR * pImportFenceWin32HandleInfo,
15047 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15048 {
15049 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15050 return static_cast<Result>( d.vkImportFenceWin32HandleKHR( static_cast<VkDevice>( m_device ),
15051 reinterpret_cast<const VkImportFenceWin32HandleInfoKHR *>( pImportFenceWin32HandleInfo ) ) );
15052 }
15053
15054 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15055 // wrapper function for command vkImportFenceWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportFenceWin32HandleKHR.html
15056 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportFenceWin32HandleKHR ), bool>::type>
15057 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
15058 Device::importFenceWin32HandleKHR( const ImportFenceWin32HandleInfoKHR & importFenceWin32HandleInfo, Dispatch const & d ) const
15059 {
15060 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15061 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15062 VULKAN_HPP_ASSERT( d.vkImportFenceWin32HandleKHR && "Function <vkImportFenceWin32HandleKHR> requires <VK_KHR_external_fence_win32>" );
15063 # endif
15064
15065 Result result = static_cast<Result>(
15066 d.vkImportFenceWin32HandleKHR( m_device, reinterpret_cast<const VkImportFenceWin32HandleInfoKHR *>( &importFenceWin32HandleInfo ) ) );
15067 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importFenceWin32HandleKHR" );
15068
15069 return detail::createResultValueType( result );
15070 }
15071 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15072
15073 // wrapper function for command vkGetFenceWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceWin32HandleKHR.html
15074 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFenceWin32HandleKHR ), bool>::type>
15075 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFenceWin32HandleKHR( const FenceGetWin32HandleInfoKHR * pGetWin32HandleInfo,
15076 HANDLE * pHandle,
15077 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15078 {
15079 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15080 return static_cast<Result>(
15081 d.vkGetFenceWin32HandleKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkFenceGetWin32HandleInfoKHR *>( pGetWin32HandleInfo ), pHandle ) );
15082 }
15083
15084 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15085 // wrapper function for command vkGetFenceWin32HandleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceWin32HandleKHR.html
15086 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFenceWin32HandleKHR ), bool>::type>
15087 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HANDLE>::type
15088 Device::getFenceWin32HandleKHR( const FenceGetWin32HandleInfoKHR & getWin32HandleInfo, Dispatch const & d ) const
15089 {
15090 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15091 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15092 VULKAN_HPP_ASSERT( d.vkGetFenceWin32HandleKHR && "Function <vkGetFenceWin32HandleKHR> requires <VK_KHR_external_fence_win32>" );
15093 # endif
15094
15095 HANDLE handle;
15096 Result result =
15097 static_cast<Result>( d.vkGetFenceWin32HandleKHR( m_device, reinterpret_cast<const VkFenceGetWin32HandleInfoKHR *>( &getWin32HandleInfo ), &handle ) );
15098 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceWin32HandleKHR" );
15099
15100 return detail::createResultValueType( result, std::move( handle ) );
15101 }
15102 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15103 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
15104
15105 //=== VK_KHR_external_fence_fd ===
15106
15107 // wrapper function for command vkImportFenceFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportFenceFdKHR.html
15108 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportFenceFdKHR ), bool>::type>
15109 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::importFenceFdKHR( const ImportFenceFdInfoKHR * pImportFenceFdInfo,
15110 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15111 {
15112 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15113 return static_cast<Result>(
15114 d.vkImportFenceFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImportFenceFdInfoKHR *>( pImportFenceFdInfo ) ) );
15115 }
15116
15117 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15118 // wrapper function for command vkImportFenceFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportFenceFdKHR.html
15119 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportFenceFdKHR ), bool>::type>
15120 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
15121 Device::importFenceFdKHR( const ImportFenceFdInfoKHR & importFenceFdInfo, Dispatch const & d ) const
15122 {
15123 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15124 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15125 VULKAN_HPP_ASSERT( d.vkImportFenceFdKHR && "Function <vkImportFenceFdKHR> requires <VK_KHR_external_fence_fd>" );
15126 # endif
15127
15128 Result result = static_cast<Result>( d.vkImportFenceFdKHR( m_device, reinterpret_cast<const VkImportFenceFdInfoKHR *>( &importFenceFdInfo ) ) );
15129 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importFenceFdKHR" );
15130
15131 return detail::createResultValueType( result );
15132 }
15133 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15134
15135 // wrapper function for command vkGetFenceFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceFdKHR.html
15136 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFenceFdKHR ), bool>::type>
15137 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFenceFdKHR( const FenceGetFdInfoKHR * pGetFdInfo,
15138 int * pFd,
15139 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15140 {
15141 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15142 return static_cast<Result>( d.vkGetFenceFdKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkFenceGetFdInfoKHR *>( pGetFdInfo ), pFd ) );
15143 }
15144
15145 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15146 // wrapper function for command vkGetFenceFdKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFenceFdKHR.html
15147 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFenceFdKHR ), bool>::type>
15148 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<int>::type Device::getFenceFdKHR( const FenceGetFdInfoKHR & getFdInfo,
15149 Dispatch const & d ) const
15150 {
15151 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15152 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15153 VULKAN_HPP_ASSERT( d.vkGetFenceFdKHR && "Function <vkGetFenceFdKHR> requires <VK_KHR_external_fence_fd>" );
15154 # endif
15155
15156 int fd;
15157 Result result = static_cast<Result>( d.vkGetFenceFdKHR( m_device, reinterpret_cast<const VkFenceGetFdInfoKHR *>( &getFdInfo ), &fd ) );
15158 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFenceFdKHR" );
15159
15160 return detail::createResultValueType( result, std::move( fd ) );
15161 }
15162 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15163
15164 //=== VK_KHR_performance_query ===
15165
15166 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR, see
15167 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR.html
15168 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR ), bool>::type>
15169 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
15170 PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR( uint32_t queueFamilyIndex,
15171 uint32_t * pCounterCount,
15172 PerformanceCounterKHR * pCounters,
15173 PerformanceCounterDescriptionKHR * pCounterDescriptions,
15174 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15175 {
15176 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15177 return static_cast<Result>(
15178 d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15179 queueFamilyIndex,
15180 pCounterCount,
15181 reinterpret_cast<VkPerformanceCounterKHR *>( pCounters ),
15182 reinterpret_cast<VkPerformanceCounterDescriptionKHR *>( pCounterDescriptions ) ) );
15183 }
15184
15185 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15186 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR, see
15187 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR.html
15188 template <typename PerformanceCounterKHRAllocator,
15189 typename PerformanceCounterDescriptionKHRAllocator,
15190 typename Dispatch,
15191 typename std::enable_if<std::is_same<typename PerformanceCounterKHRAllocator::value_type, PerformanceCounterKHR>::value &&
15192 std::is_same<typename PerformanceCounterDescriptionKHRAllocator::value_type, PerformanceCounterDescriptionKHR>::value,
15193 int>::type,
15194 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR ), bool>::type>
15195 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
15196 typename ResultValueType<std::pair<std::vector<PerformanceCounterKHR, PerformanceCounterKHRAllocator>,
15197 std::vector<PerformanceCounterDescriptionKHR, PerformanceCounterDescriptionKHRAllocator>>>::type
15198 PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR( uint32_t queueFamilyIndex, Dispatch const & d ) const
15199 {
15200 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15201 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15202 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR &&
15203 "Function <vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR> requires <VK_KHR_performance_query>" );
15204 # endif
15205
15206 std::pair<std::vector<PerformanceCounterKHR, PerformanceCounterKHRAllocator>,
15207 std::vector<PerformanceCounterDescriptionKHR, PerformanceCounterDescriptionKHRAllocator>>
15208 data_;
15209 std::vector<PerformanceCounterKHR, PerformanceCounterKHRAllocator> & counters = data_.first;
15210 std::vector<PerformanceCounterDescriptionKHR, PerformanceCounterDescriptionKHRAllocator> & counterDescriptions = data_.second;
15211 uint32_t counterCount;
15212 Result result;
15213 do
15214 {
15215 result = static_cast<Result>(
15216 d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( m_physicalDevice, queueFamilyIndex, &counterCount, nullptr, nullptr ) );
15217 if ( ( result == Result::eSuccess ) && counterCount )
15218 {
15219 counters.resize( counterCount );
15220 counterDescriptions.resize( counterCount );
15221 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(
15222 m_physicalDevice,
15223 queueFamilyIndex,
15224 &counterCount,
15225 reinterpret_cast<VkPerformanceCounterKHR *>( counters.data() ),
15226 reinterpret_cast<VkPerformanceCounterDescriptionKHR *>( counterDescriptions.data() ) ) );
15227 }
15228 } while ( result == Result::eIncomplete );
15229 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR" );
15230 VULKAN_HPP_ASSERT( counterCount <= counters.size() );
15231 if ( counterCount < counters.size() )
15232 {
15233 counters.resize( counterCount );
15234 counterDescriptions.resize( counterCount );
15235 }
15236 return detail::createResultValueType( result, std::move( data_ ) );
15237 }
15238
15239 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR, see
15240 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR.html
15241 template <typename PerformanceCounterKHRAllocator,
15242 typename PerformanceCounterDescriptionKHRAllocator,
15243 typename Dispatch,
15244 typename std::enable_if<std::is_same<typename PerformanceCounterKHRAllocator::value_type, PerformanceCounterKHR>::value &&
15245 std::is_same<typename PerformanceCounterDescriptionKHRAllocator::value_type, PerformanceCounterDescriptionKHR>::value,
15246 int>::type,
15247 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR ), bool>::type>
15248 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
15249 typename ResultValueType<std::pair<std::vector<PerformanceCounterKHR, PerformanceCounterKHRAllocator>,
15250 std::vector<PerformanceCounterDescriptionKHR, PerformanceCounterDescriptionKHRAllocator>>>::type
15251 PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR(
15252 uint32_t queueFamilyIndex,
15253 PerformanceCounterKHRAllocator const & performanceCounterKHRAllocator,
15254 PerformanceCounterDescriptionKHRAllocator const & performanceCounterDescriptionKHRAllocator,
15255 Dispatch const & d ) const
15256 {
15257 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15258 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15259 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR &&
15260 "Function <vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR> requires <VK_KHR_performance_query>" );
15261 # endif
15262
15263 std::pair<std::vector<PerformanceCounterKHR, PerformanceCounterKHRAllocator>,
15264 std::vector<PerformanceCounterDescriptionKHR, PerformanceCounterDescriptionKHRAllocator>>
15265 data_(
15266 std::piecewise_construct, std::forward_as_tuple( performanceCounterKHRAllocator ), std::forward_as_tuple( performanceCounterDescriptionKHRAllocator ) );
15267 std::vector<PerformanceCounterKHR, PerformanceCounterKHRAllocator> & counters = data_.first;
15268 std::vector<PerformanceCounterDescriptionKHR, PerformanceCounterDescriptionKHRAllocator> & counterDescriptions = data_.second;
15269 uint32_t counterCount;
15270 Result result;
15271 do
15272 {
15273 result = static_cast<Result>(
15274 d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR( m_physicalDevice, queueFamilyIndex, &counterCount, nullptr, nullptr ) );
15275 if ( ( result == Result::eSuccess ) && counterCount )
15276 {
15277 counters.resize( counterCount );
15278 counterDescriptions.resize( counterCount );
15279 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(
15280 m_physicalDevice,
15281 queueFamilyIndex,
15282 &counterCount,
15283 reinterpret_cast<VkPerformanceCounterKHR *>( counters.data() ),
15284 reinterpret_cast<VkPerformanceCounterDescriptionKHR *>( counterDescriptions.data() ) ) );
15285 }
15286 } while ( result == Result::eIncomplete );
15287 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateQueueFamilyPerformanceQueryCountersKHR" );
15288 VULKAN_HPP_ASSERT( counterCount <= counters.size() );
15289 if ( counterCount < counters.size() )
15290 {
15291 counters.resize( counterCount );
15292 counterDescriptions.resize( counterCount );
15293 }
15294 return detail::createResultValueType( result, std::move( data_ ) );
15295 }
15296 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15297
15298 // wrapper function for command vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR, see
15299 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR.html
15300 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR ), bool>::type>
15301 VULKAN_HPP_INLINE void PhysicalDevice::getQueueFamilyPerformanceQueryPassesKHR( const QueryPoolPerformanceCreateInfoKHR * pPerformanceQueryCreateInfo,
15302 uint32_t * pNumPasses,
15303 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15304 {
15305 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15306 d.vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15307 reinterpret_cast<const VkQueryPoolPerformanceCreateInfoKHR *>( pPerformanceQueryCreateInfo ),
15308 pNumPasses );
15309 }
15310
15311 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15312 // wrapper function for command vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR, see
15313 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR.html
15314 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR ), bool>::type>
15315 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint32_t PhysicalDevice::getQueueFamilyPerformanceQueryPassesKHR(
15316 const QueryPoolPerformanceCreateInfoKHR & performanceQueryCreateInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15317 {
15318 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15319 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15320 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR &&
15321 "Function <vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR> requires <VK_KHR_performance_query>" );
15322 # endif
15323
15324 uint32_t numPasses;
15325 d.vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR(
15326 m_physicalDevice, reinterpret_cast<const VkQueryPoolPerformanceCreateInfoKHR *>( &performanceQueryCreateInfo ), &numPasses );
15327
15328 return numPasses;
15329 }
15330 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15331
15332 // wrapper function for command vkAcquireProfilingLockKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireProfilingLockKHR.html
15333 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireProfilingLockKHR ), bool>::type>
15334 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::acquireProfilingLockKHR( const AcquireProfilingLockInfoKHR * pInfo,
15335 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15336 {
15337 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15338 return static_cast<Result>(
15339 d.vkAcquireProfilingLockKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkAcquireProfilingLockInfoKHR *>( pInfo ) ) );
15340 }
15341
15342 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15343 // wrapper function for command vkAcquireProfilingLockKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireProfilingLockKHR.html
15344 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireProfilingLockKHR ), bool>::type>
15345 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
15346 Device::acquireProfilingLockKHR( const AcquireProfilingLockInfoKHR & info, Dispatch const & d ) const
15347 {
15348 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15349 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15350 VULKAN_HPP_ASSERT( d.vkAcquireProfilingLockKHR && "Function <vkAcquireProfilingLockKHR> requires <VK_KHR_performance_query>" );
15351 # endif
15352
15353 Result result = static_cast<Result>( d.vkAcquireProfilingLockKHR( m_device, reinterpret_cast<const VkAcquireProfilingLockInfoKHR *>( &info ) ) );
15354 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquireProfilingLockKHR" );
15355
15356 return detail::createResultValueType( result );
15357 }
15358 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15359
15360 // wrapper function for command vkReleaseProfilingLockKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseProfilingLockKHR.html
15361 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseProfilingLockKHR ), bool>::type>
15362 VULKAN_HPP_INLINE void Device::releaseProfilingLockKHR( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15363 {
15364 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15365 d.vkReleaseProfilingLockKHR( static_cast<VkDevice>( m_device ) );
15366 }
15367
15368 //=== VK_KHR_get_surface_capabilities2 ===
15369
15370 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2KHR, see
15371 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html
15372 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilities2KHR ), bool>::type>
15373 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceCapabilities2KHR( const PhysicalDeviceSurfaceInfo2KHR * pSurfaceInfo,
15374 SurfaceCapabilities2KHR * pSurfaceCapabilities,
15375 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15376 {
15377 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15378 return static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15379 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( pSurfaceInfo ),
15380 reinterpret_cast<VkSurfaceCapabilities2KHR *>( pSurfaceCapabilities ) ) );
15381 }
15382
15383 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15384 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2KHR, see
15385 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html
15386 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilities2KHR ), bool>::type>
15387 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceCapabilities2KHR>::type
15388 PhysicalDevice::getSurfaceCapabilities2KHR( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo, Dispatch const & d ) const
15389 {
15390 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15391 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15392 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR &&
15393 "Function <vkGetPhysicalDeviceSurfaceCapabilities2KHR> requires <VK_KHR_get_surface_capabilities2>" );
15394 # endif
15395
15396 SurfaceCapabilities2KHR surfaceCapabilities;
15397 Result result =
15398 static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR( m_physicalDevice,
15399 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
15400 reinterpret_cast<VkSurfaceCapabilities2KHR *>( &surfaceCapabilities ) ) );
15401 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" );
15402
15403 return detail::createResultValueType( result, std::move( surfaceCapabilities ) );
15404 }
15405
15406 // wrapper function for command vkGetPhysicalDeviceSurfaceCapabilities2KHR, see
15407 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceCapabilities2KHR.html
15408 template <typename X,
15409 typename Y,
15410 typename... Z,
15411 typename Dispatch,
15412 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceCapabilities2KHR ), bool>::type>
15413 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
15414 PhysicalDevice::getSurfaceCapabilities2KHR( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo, Dispatch const & d ) const
15415 {
15416 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15417 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15418 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR &&
15419 "Function <vkGetPhysicalDeviceSurfaceCapabilities2KHR> requires <VK_KHR_get_surface_capabilities2>" );
15420 # endif
15421
15422 StructureChain<X, Y, Z...> structureChain;
15423 SurfaceCapabilities2KHR & surfaceCapabilities = structureChain.template get<SurfaceCapabilities2KHR>();
15424 Result result =
15425 static_cast<Result>( d.vkGetPhysicalDeviceSurfaceCapabilities2KHR( m_physicalDevice,
15426 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
15427 reinterpret_cast<VkSurfaceCapabilities2KHR *>( &surfaceCapabilities ) ) );
15428 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceCapabilities2KHR" );
15429
15430 return detail::createResultValueType( result, std::move( structureChain ) );
15431 }
15432 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15433
15434 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
15435 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
15436 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormats2KHR ), bool>::type>
15437 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfaceFormats2KHR( const PhysicalDeviceSurfaceInfo2KHR * pSurfaceInfo,
15438 uint32_t * pSurfaceFormatCount,
15439 SurfaceFormat2KHR * pSurfaceFormats,
15440 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15441 {
15442 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15443 return static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15444 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( pSurfaceInfo ),
15445 pSurfaceFormatCount,
15446 reinterpret_cast<VkSurfaceFormat2KHR *>( pSurfaceFormats ) ) );
15447 }
15448
15449 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15450 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
15451 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
15452 template <typename SurfaceFormat2KHRAllocator,
15453 typename Dispatch,
15454 typename std::enable_if<std::is_same<typename SurfaceFormat2KHRAllocator::value_type, SurfaceFormat2KHR>::value, int>::type,
15455 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormats2KHR ), bool>::type>
15456 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SurfaceFormat2KHR, SurfaceFormat2KHRAllocator>>::type
15457 PhysicalDevice::getSurfaceFormats2KHR( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo, Dispatch const & d ) const
15458 {
15459 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15460 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15461 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceFormats2KHR &&
15462 "Function <vkGetPhysicalDeviceSurfaceFormats2KHR> requires <VK_KHR_get_surface_capabilities2>" );
15463 # endif
15464
15465 std::vector<SurfaceFormat2KHR, SurfaceFormat2KHRAllocator> surfaceFormats;
15466 uint32_t surfaceFormatCount;
15467 Result result;
15468 do
15469 {
15470 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR(
15471 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ), &surfaceFormatCount, nullptr ) );
15472 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
15473 {
15474 surfaceFormats.resize( surfaceFormatCount );
15475 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR( m_physicalDevice,
15476 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
15477 &surfaceFormatCount,
15478 reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) ) );
15479 }
15480 } while ( result == Result::eIncomplete );
15481 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormats2KHR" );
15482 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
15483 if ( surfaceFormatCount < surfaceFormats.size() )
15484 {
15485 surfaceFormats.resize( surfaceFormatCount );
15486 }
15487 return detail::createResultValueType( result, std::move( surfaceFormats ) );
15488 }
15489
15490 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
15491 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
15492 template <typename SurfaceFormat2KHRAllocator,
15493 typename Dispatch,
15494 typename std::enable_if<std::is_same<typename SurfaceFormat2KHRAllocator::value_type, SurfaceFormat2KHR>::value, int>::type,
15495 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormats2KHR ), bool>::type>
15496 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<SurfaceFormat2KHR, SurfaceFormat2KHRAllocator>>::type
15497 PhysicalDevice::getSurfaceFormats2KHR( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo,
15498 SurfaceFormat2KHRAllocator const & surfaceFormat2KHRAllocator,
15499 Dispatch const & d ) const
15500 {
15501 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15502 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15503 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceFormats2KHR &&
15504 "Function <vkGetPhysicalDeviceSurfaceFormats2KHR> requires <VK_KHR_get_surface_capabilities2>" );
15505 # endif
15506
15507 std::vector<SurfaceFormat2KHR, SurfaceFormat2KHRAllocator> surfaceFormats( surfaceFormat2KHRAllocator );
15508 uint32_t surfaceFormatCount;
15509 Result result;
15510 do
15511 {
15512 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR(
15513 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ), &surfaceFormatCount, nullptr ) );
15514 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
15515 {
15516 surfaceFormats.resize( surfaceFormatCount );
15517 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR( m_physicalDevice,
15518 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
15519 &surfaceFormatCount,
15520 reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) ) );
15521 }
15522 } while ( result == Result::eIncomplete );
15523 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormats2KHR" );
15524 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
15525 if ( surfaceFormatCount < surfaceFormats.size() )
15526 {
15527 surfaceFormats.resize( surfaceFormatCount );
15528 }
15529 return detail::createResultValueType( result, std::move( surfaceFormats ) );
15530 }
15531
15532 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
15533 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
15534 template <typename StructureChain,
15535 typename StructureChainAllocator,
15536 typename Dispatch,
15537 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
15538 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormats2KHR ), bool>::type>
15539 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain, StructureChainAllocator>>::type
15540 PhysicalDevice::getSurfaceFormats2KHR( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo, Dispatch const & d ) const
15541 {
15542 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15543 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15544 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceFormats2KHR &&
15545 "Function <vkGetPhysicalDeviceSurfaceFormats2KHR> requires <VK_KHR_get_surface_capabilities2>" );
15546 # endif
15547
15548 std::vector<StructureChain, StructureChainAllocator> structureChains;
15549 std::vector<SurfaceFormat2KHR> surfaceFormats;
15550 uint32_t surfaceFormatCount;
15551 Result result;
15552 do
15553 {
15554 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR(
15555 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ), &surfaceFormatCount, nullptr ) );
15556 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
15557 {
15558 structureChains.resize( surfaceFormatCount );
15559 surfaceFormats.resize( surfaceFormatCount );
15560 for ( uint32_t i = 0; i < surfaceFormatCount; i++ )
15561 {
15562 surfaceFormats[i].pNext = structureChains[i].template get<SurfaceFormat2KHR>().pNext;
15563 }
15564 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR( m_physicalDevice,
15565 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
15566 &surfaceFormatCount,
15567 reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) ) );
15568 }
15569 } while ( result == Result::eIncomplete );
15570 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormats2KHR" );
15571 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
15572 if ( surfaceFormatCount < surfaceFormats.size() )
15573 {
15574 structureChains.resize( surfaceFormatCount );
15575 }
15576 for ( uint32_t i = 0; i < surfaceFormatCount; i++ )
15577 {
15578 structureChains[i].template get<SurfaceFormat2KHR>() = surfaceFormats[i];
15579 }
15580 return detail::createResultValueType( result, std::move( structureChains ) );
15581 }
15582
15583 // wrapper function for command vkGetPhysicalDeviceSurfaceFormats2KHR, see
15584 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfaceFormats2KHR.html
15585 template <typename StructureChain,
15586 typename StructureChainAllocator,
15587 typename Dispatch,
15588 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
15589 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfaceFormats2KHR ), bool>::type>
15590 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain, StructureChainAllocator>>::type
15591 PhysicalDevice::getSurfaceFormats2KHR( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo,
15592 StructureChainAllocator & structureChainAllocator,
15593 Dispatch const & d ) const
15594 {
15595 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15596 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15597 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfaceFormats2KHR &&
15598 "Function <vkGetPhysicalDeviceSurfaceFormats2KHR> requires <VK_KHR_get_surface_capabilities2>" );
15599 # endif
15600
15601 std::vector<StructureChain, StructureChainAllocator> structureChains( structureChainAllocator );
15602 std::vector<SurfaceFormat2KHR> surfaceFormats;
15603 uint32_t surfaceFormatCount;
15604 Result result;
15605 do
15606 {
15607 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR(
15608 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ), &surfaceFormatCount, nullptr ) );
15609 if ( ( result == Result::eSuccess ) && surfaceFormatCount )
15610 {
15611 structureChains.resize( surfaceFormatCount );
15612 surfaceFormats.resize( surfaceFormatCount );
15613 for ( uint32_t i = 0; i < surfaceFormatCount; i++ )
15614 {
15615 surfaceFormats[i].pNext = structureChains[i].template get<SurfaceFormat2KHR>().pNext;
15616 }
15617 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfaceFormats2KHR( m_physicalDevice,
15618 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
15619 &surfaceFormatCount,
15620 reinterpret_cast<VkSurfaceFormat2KHR *>( surfaceFormats.data() ) ) );
15621 }
15622 } while ( result == Result::eIncomplete );
15623 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfaceFormats2KHR" );
15624 VULKAN_HPP_ASSERT( surfaceFormatCount <= surfaceFormats.size() );
15625 if ( surfaceFormatCount < surfaceFormats.size() )
15626 {
15627 structureChains.resize( surfaceFormatCount );
15628 }
15629 for ( uint32_t i = 0; i < surfaceFormatCount; i++ )
15630 {
15631 structureChains[i].template get<SurfaceFormat2KHR>() = surfaceFormats[i];
15632 }
15633 return detail::createResultValueType( result, std::move( structureChains ) );
15634 }
15635 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15636
15637 //=== VK_KHR_get_display_properties2 ===
15638
15639 // wrapper function for command vkGetPhysicalDeviceDisplayProperties2KHR, see
15640 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayProperties2KHR.html
15641 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayProperties2KHR ), bool>::type>
15642 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayProperties2KHR( uint32_t * pPropertyCount,
15643 DisplayProperties2KHR * pProperties,
15644 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15645 {
15646 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15647 return static_cast<Result>( d.vkGetPhysicalDeviceDisplayProperties2KHR(
15648 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkDisplayProperties2KHR *>( pProperties ) ) );
15649 }
15650
15651 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15652 // wrapper function for command vkGetPhysicalDeviceDisplayProperties2KHR, see
15653 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayProperties2KHR.html
15654 template <typename DisplayProperties2KHRAllocator,
15655 typename Dispatch,
15656 typename std::enable_if<std::is_same<typename DisplayProperties2KHRAllocator::value_type, DisplayProperties2KHR>::value, int>::type,
15657 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayProperties2KHR ), bool>::type>
15658 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayProperties2KHR, DisplayProperties2KHRAllocator>>::type
15659 PhysicalDevice::getDisplayProperties2KHR( Dispatch const & d ) const
15660 {
15661 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15662 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15663 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayProperties2KHR &&
15664 "Function <vkGetPhysicalDeviceDisplayProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15665 # endif
15666
15667 std::vector<DisplayProperties2KHR, DisplayProperties2KHRAllocator> properties;
15668 uint32_t propertyCount;
15669 Result result;
15670 do
15671 {
15672 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayProperties2KHR( m_physicalDevice, &propertyCount, nullptr ) );
15673 if ( ( result == Result::eSuccess ) && propertyCount )
15674 {
15675 properties.resize( propertyCount );
15676 result = static_cast<Result>(
15677 d.vkGetPhysicalDeviceDisplayProperties2KHR( m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayProperties2KHR *>( properties.data() ) ) );
15678 }
15679 } while ( result == Result::eIncomplete );
15680 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayProperties2KHR" );
15681 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15682 if ( propertyCount < properties.size() )
15683 {
15684 properties.resize( propertyCount );
15685 }
15686 return detail::createResultValueType( result, std::move( properties ) );
15687 }
15688
15689 // wrapper function for command vkGetPhysicalDeviceDisplayProperties2KHR, see
15690 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayProperties2KHR.html
15691 template <typename DisplayProperties2KHRAllocator,
15692 typename Dispatch,
15693 typename std::enable_if<std::is_same<typename DisplayProperties2KHRAllocator::value_type, DisplayProperties2KHR>::value, int>::type,
15694 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayProperties2KHR ), bool>::type>
15695 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayProperties2KHR, DisplayProperties2KHRAllocator>>::type
15696 PhysicalDevice::getDisplayProperties2KHR( DisplayProperties2KHRAllocator const & displayProperties2KHRAllocator, Dispatch const & d ) const
15697 {
15698 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15699 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15700 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayProperties2KHR &&
15701 "Function <vkGetPhysicalDeviceDisplayProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15702 # endif
15703
15704 std::vector<DisplayProperties2KHR, DisplayProperties2KHRAllocator> properties( displayProperties2KHRAllocator );
15705 uint32_t propertyCount;
15706 Result result;
15707 do
15708 {
15709 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayProperties2KHR( m_physicalDevice, &propertyCount, nullptr ) );
15710 if ( ( result == Result::eSuccess ) && propertyCount )
15711 {
15712 properties.resize( propertyCount );
15713 result = static_cast<Result>(
15714 d.vkGetPhysicalDeviceDisplayProperties2KHR( m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayProperties2KHR *>( properties.data() ) ) );
15715 }
15716 } while ( result == Result::eIncomplete );
15717 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayProperties2KHR" );
15718 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15719 if ( propertyCount < properties.size() )
15720 {
15721 properties.resize( propertyCount );
15722 }
15723 return detail::createResultValueType( result, std::move( properties ) );
15724 }
15725 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15726
15727 // wrapper function for command vkGetPhysicalDeviceDisplayPlaneProperties2KHR, see
15728 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlaneProperties2KHR.html
15729 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPlaneProperties2KHR ), bool>::type>
15730 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayPlaneProperties2KHR( uint32_t * pPropertyCount,
15731 DisplayPlaneProperties2KHR * pProperties,
15732 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15733 {
15734 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15735 return static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR(
15736 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkDisplayPlaneProperties2KHR *>( pProperties ) ) );
15737 }
15738
15739 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15740 // wrapper function for command vkGetPhysicalDeviceDisplayPlaneProperties2KHR, see
15741 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlaneProperties2KHR.html
15742 template <typename DisplayPlaneProperties2KHRAllocator,
15743 typename Dispatch,
15744 typename std::enable_if<std::is_same<typename DisplayPlaneProperties2KHRAllocator::value_type, DisplayPlaneProperties2KHR>::value, int>::type,
15745 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPlaneProperties2KHR ), bool>::type>
15746 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPlaneProperties2KHR, DisplayPlaneProperties2KHRAllocator>>::type
15747 PhysicalDevice::getDisplayPlaneProperties2KHR( Dispatch const & d ) const
15748 {
15749 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15750 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15751 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR &&
15752 "Function <vkGetPhysicalDeviceDisplayPlaneProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15753 # endif
15754
15755 std::vector<DisplayPlaneProperties2KHR, DisplayPlaneProperties2KHRAllocator> properties;
15756 uint32_t propertyCount;
15757 Result result;
15758 do
15759 {
15760 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR( m_physicalDevice, &propertyCount, nullptr ) );
15761 if ( ( result == Result::eSuccess ) && propertyCount )
15762 {
15763 properties.resize( propertyCount );
15764 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR(
15765 m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPlaneProperties2KHR *>( properties.data() ) ) );
15766 }
15767 } while ( result == Result::eIncomplete );
15768 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneProperties2KHR" );
15769 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15770 if ( propertyCount < properties.size() )
15771 {
15772 properties.resize( propertyCount );
15773 }
15774 return detail::createResultValueType( result, std::move( properties ) );
15775 }
15776
15777 // wrapper function for command vkGetPhysicalDeviceDisplayPlaneProperties2KHR, see
15778 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDisplayPlaneProperties2KHR.html
15779 template <typename DisplayPlaneProperties2KHRAllocator,
15780 typename Dispatch,
15781 typename std::enable_if<std::is_same<typename DisplayPlaneProperties2KHRAllocator::value_type, DisplayPlaneProperties2KHR>::value, int>::type,
15782 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDisplayPlaneProperties2KHR ), bool>::type>
15783 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayPlaneProperties2KHR, DisplayPlaneProperties2KHRAllocator>>::type
15784 PhysicalDevice::getDisplayPlaneProperties2KHR( DisplayPlaneProperties2KHRAllocator const & displayPlaneProperties2KHRAllocator, Dispatch const & d ) const
15785 {
15786 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15787 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15788 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR &&
15789 "Function <vkGetPhysicalDeviceDisplayPlaneProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15790 # endif
15791
15792 std::vector<DisplayPlaneProperties2KHR, DisplayPlaneProperties2KHRAllocator> properties( displayPlaneProperties2KHRAllocator );
15793 uint32_t propertyCount;
15794 Result result;
15795 do
15796 {
15797 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR( m_physicalDevice, &propertyCount, nullptr ) );
15798 if ( ( result == Result::eSuccess ) && propertyCount )
15799 {
15800 properties.resize( propertyCount );
15801 result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPlaneProperties2KHR(
15802 m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPlaneProperties2KHR *>( properties.data() ) ) );
15803 }
15804 } while ( result == Result::eIncomplete );
15805 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneProperties2KHR" );
15806 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15807 if ( propertyCount < properties.size() )
15808 {
15809 properties.resize( propertyCount );
15810 }
15811 return detail::createResultValueType( result, std::move( properties ) );
15812 }
15813 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15814
15815 // wrapper function for command vkGetDisplayModeProperties2KHR, see
15816 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
15817 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayModeProperties2KHR ), bool>::type>
15818 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayModeProperties2KHR( DisplayKHR display,
15819 uint32_t * pPropertyCount,
15820 DisplayModeProperties2KHR * pProperties,
15821 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
15822 {
15823 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15824 return static_cast<Result>( d.vkGetDisplayModeProperties2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
15825 static_cast<VkDisplayKHR>( display ),
15826 pPropertyCount,
15827 reinterpret_cast<VkDisplayModeProperties2KHR *>( pProperties ) ) );
15828 }
15829
15830 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
15831 // wrapper function for command vkGetDisplayModeProperties2KHR, see
15832 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
15833 template <typename DisplayModeProperties2KHRAllocator,
15834 typename Dispatch,
15835 typename std::enable_if<std::is_same<typename DisplayModeProperties2KHRAllocator::value_type, DisplayModeProperties2KHR>::value, int>::type,
15836 typename std::enable_if<IS_DISPATCHED( vkGetDisplayModeProperties2KHR ), bool>::type>
15837 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayModeProperties2KHR, DisplayModeProperties2KHRAllocator>>::type
15838 PhysicalDevice::getDisplayModeProperties2KHR( DisplayKHR display, Dispatch const & d ) const
15839 {
15840 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15841 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15842 VULKAN_HPP_ASSERT( d.vkGetDisplayModeProperties2KHR && "Function <vkGetDisplayModeProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15843 # endif
15844
15845 std::vector<DisplayModeProperties2KHR, DisplayModeProperties2KHRAllocator> properties;
15846 uint32_t propertyCount;
15847 Result result;
15848 do
15849 {
15850 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR( m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, nullptr ) );
15851 if ( ( result == Result::eSuccess ) && propertyCount )
15852 {
15853 properties.resize( propertyCount );
15854 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR(
15855 m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) ) );
15856 }
15857 } while ( result == Result::eIncomplete );
15858 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModeProperties2KHR" );
15859 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15860 if ( propertyCount < properties.size() )
15861 {
15862 properties.resize( propertyCount );
15863 }
15864 return detail::createResultValueType( result, std::move( properties ) );
15865 }
15866
15867 // wrapper function for command vkGetDisplayModeProperties2KHR, see
15868 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
15869 template <typename DisplayModeProperties2KHRAllocator,
15870 typename Dispatch,
15871 typename std::enable_if<std::is_same<typename DisplayModeProperties2KHRAllocator::value_type, DisplayModeProperties2KHR>::value, int>::type,
15872 typename std::enable_if<IS_DISPATCHED( vkGetDisplayModeProperties2KHR ), bool>::type>
15873 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DisplayModeProperties2KHR, DisplayModeProperties2KHRAllocator>>::type
15874 PhysicalDevice::getDisplayModeProperties2KHR( DisplayKHR display,
15875 DisplayModeProperties2KHRAllocator const & displayModeProperties2KHRAllocator,
15876 Dispatch const & d ) const
15877 {
15878 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15879 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15880 VULKAN_HPP_ASSERT( d.vkGetDisplayModeProperties2KHR && "Function <vkGetDisplayModeProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15881 # endif
15882
15883 std::vector<DisplayModeProperties2KHR, DisplayModeProperties2KHRAllocator> properties( displayModeProperties2KHRAllocator );
15884 uint32_t propertyCount;
15885 Result result;
15886 do
15887 {
15888 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR( m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, nullptr ) );
15889 if ( ( result == Result::eSuccess ) && propertyCount )
15890 {
15891 properties.resize( propertyCount );
15892 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR(
15893 m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) ) );
15894 }
15895 } while ( result == Result::eIncomplete );
15896 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModeProperties2KHR" );
15897 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15898 if ( propertyCount < properties.size() )
15899 {
15900 properties.resize( propertyCount );
15901 }
15902 return detail::createResultValueType( result, std::move( properties ) );
15903 }
15904
15905 // wrapper function for command vkGetDisplayModeProperties2KHR, see
15906 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
15907 template <typename StructureChain,
15908 typename StructureChainAllocator,
15909 typename Dispatch,
15910 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
15911 typename std::enable_if<IS_DISPATCHED( vkGetDisplayModeProperties2KHR ), bool>::type>
15912 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain, StructureChainAllocator>>::type
15913 PhysicalDevice::getDisplayModeProperties2KHR( DisplayKHR display, Dispatch const & d ) const
15914 {
15915 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15916 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15917 VULKAN_HPP_ASSERT( d.vkGetDisplayModeProperties2KHR && "Function <vkGetDisplayModeProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15918 # endif
15919
15920 std::vector<StructureChain, StructureChainAllocator> structureChains;
15921 std::vector<DisplayModeProperties2KHR> properties;
15922 uint32_t propertyCount;
15923 Result result;
15924 do
15925 {
15926 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR( m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, nullptr ) );
15927 if ( ( result == Result::eSuccess ) && propertyCount )
15928 {
15929 structureChains.resize( propertyCount );
15930 properties.resize( propertyCount );
15931 for ( uint32_t i = 0; i < propertyCount; i++ )
15932 {
15933 properties[i].pNext = structureChains[i].template get<DisplayModeProperties2KHR>().pNext;
15934 }
15935 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR(
15936 m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) ) );
15937 }
15938 } while ( result == Result::eIncomplete );
15939 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModeProperties2KHR" );
15940 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15941 if ( propertyCount < properties.size() )
15942 {
15943 structureChains.resize( propertyCount );
15944 }
15945 for ( uint32_t i = 0; i < propertyCount; i++ )
15946 {
15947 structureChains[i].template get<DisplayModeProperties2KHR>() = properties[i];
15948 }
15949 return detail::createResultValueType( result, std::move( structureChains ) );
15950 }
15951
15952 // wrapper function for command vkGetDisplayModeProperties2KHR, see
15953 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayModeProperties2KHR.html
15954 template <typename StructureChain,
15955 typename StructureChainAllocator,
15956 typename Dispatch,
15957 typename std::enable_if<std::is_same<typename StructureChainAllocator::value_type, StructureChain>::value, int>::type,
15958 typename std::enable_if<IS_DISPATCHED( vkGetDisplayModeProperties2KHR ), bool>::type>
15959 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<StructureChain, StructureChainAllocator>>::type
15960 PhysicalDevice::getDisplayModeProperties2KHR( DisplayKHR display, StructureChainAllocator & structureChainAllocator, Dispatch const & d ) const
15961 {
15962 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
15963 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
15964 VULKAN_HPP_ASSERT( d.vkGetDisplayModeProperties2KHR && "Function <vkGetDisplayModeProperties2KHR> requires <VK_KHR_get_display_properties2>" );
15965 # endif
15966
15967 std::vector<StructureChain, StructureChainAllocator> structureChains( structureChainAllocator );
15968 std::vector<DisplayModeProperties2KHR> properties;
15969 uint32_t propertyCount;
15970 Result result;
15971 do
15972 {
15973 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR( m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, nullptr ) );
15974 if ( ( result == Result::eSuccess ) && propertyCount )
15975 {
15976 structureChains.resize( propertyCount );
15977 properties.resize( propertyCount );
15978 for ( uint32_t i = 0; i < propertyCount; i++ )
15979 {
15980 properties[i].pNext = structureChains[i].template get<DisplayModeProperties2KHR>().pNext;
15981 }
15982 result = static_cast<Result>( d.vkGetDisplayModeProperties2KHR(
15983 m_physicalDevice, static_cast<VkDisplayKHR>( display ), &propertyCount, reinterpret_cast<VkDisplayModeProperties2KHR *>( properties.data() ) ) );
15984 }
15985 } while ( result == Result::eIncomplete );
15986 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayModeProperties2KHR" );
15987 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
15988 if ( propertyCount < properties.size() )
15989 {
15990 structureChains.resize( propertyCount );
15991 }
15992 for ( uint32_t i = 0; i < propertyCount; i++ )
15993 {
15994 structureChains[i].template get<DisplayModeProperties2KHR>() = properties[i];
15995 }
15996 return detail::createResultValueType( result, std::move( structureChains ) );
15997 }
15998 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
15999
16000 // wrapper function for command vkGetDisplayPlaneCapabilities2KHR, see
16001 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneCapabilities2KHR.html
16002 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneCapabilities2KHR ), bool>::type>
16003 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getDisplayPlaneCapabilities2KHR( const DisplayPlaneInfo2KHR * pDisplayPlaneInfo,
16004 DisplayPlaneCapabilities2KHR * pCapabilities,
16005 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16006 {
16007 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16008 return static_cast<Result>( d.vkGetDisplayPlaneCapabilities2KHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
16009 reinterpret_cast<const VkDisplayPlaneInfo2KHR *>( pDisplayPlaneInfo ),
16010 reinterpret_cast<VkDisplayPlaneCapabilities2KHR *>( pCapabilities ) ) );
16011 }
16012
16013 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16014 // wrapper function for command vkGetDisplayPlaneCapabilities2KHR, see
16015 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDisplayPlaneCapabilities2KHR.html
16016 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDisplayPlaneCapabilities2KHR ), bool>::type>
16017 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayPlaneCapabilities2KHR>::type
16018 PhysicalDevice::getDisplayPlaneCapabilities2KHR( const DisplayPlaneInfo2KHR & displayPlaneInfo, Dispatch const & d ) const
16019 {
16020 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16021 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16022 VULKAN_HPP_ASSERT( d.vkGetDisplayPlaneCapabilities2KHR && "Function <vkGetDisplayPlaneCapabilities2KHR> requires <VK_KHR_get_display_properties2>" );
16023 # endif
16024
16025 DisplayPlaneCapabilities2KHR capabilities;
16026 Result result = static_cast<Result>( d.vkGetDisplayPlaneCapabilities2KHR( m_physicalDevice,
16027 reinterpret_cast<const VkDisplayPlaneInfo2KHR *>( &displayPlaneInfo ),
16028 reinterpret_cast<VkDisplayPlaneCapabilities2KHR *>( &capabilities ) ) );
16029 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDisplayPlaneCapabilities2KHR" );
16030
16031 return detail::createResultValueType( result, std::move( capabilities ) );
16032 }
16033 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16034
16035 #if defined( VK_USE_PLATFORM_IOS_MVK )
16036 //=== VK_MVK_ios_surface ===
16037
16038 // wrapper function for command vkCreateIOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIOSSurfaceMVK.html
16039 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIOSSurfaceMVK ), bool>::type>
16040 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createIOSSurfaceMVK( const IOSSurfaceCreateInfoMVK * pCreateInfo,
16041 const AllocationCallbacks * pAllocator,
16042 SurfaceKHR * pSurface,
16043 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16044 {
16045 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16046 return static_cast<Result>( d.vkCreateIOSSurfaceMVK( static_cast<VkInstance>( m_instance ),
16047 reinterpret_cast<const VkIOSSurfaceCreateInfoMVK *>( pCreateInfo ),
16048 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
16049 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
16050 }
16051
16052 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16053 // wrapper function for command vkCreateIOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIOSSurfaceMVK.html
16054 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIOSSurfaceMVK ), bool>::type>
16055 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
16056 Instance::createIOSSurfaceMVK( const IOSSurfaceCreateInfoMVK & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
16057 {
16058 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16059 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16060 VULKAN_HPP_ASSERT( d.vkCreateIOSSurfaceMVK && "Function <vkCreateIOSSurfaceMVK> requires <VK_MVK_ios_surface>" );
16061 # endif
16062
16063 SurfaceKHR surface;
16064 Result result = static_cast<Result>( d.vkCreateIOSSurfaceMVK( m_instance,
16065 reinterpret_cast<const VkIOSSurfaceCreateInfoMVK *>( &createInfo ),
16066 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
16067 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
16068 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createIOSSurfaceMVK" );
16069
16070 return detail::createResultValueType( result, std::move( surface ) );
16071 }
16072
16073 # ifndef VULKAN_HPP_NO_SMART_HANDLE
16074 // wrapper function for command vkCreateIOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIOSSurfaceMVK.html
16075 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIOSSurfaceMVK ), bool>::type>
16076 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type
16077 Instance::createIOSSurfaceMVKUnique( const IOSSurfaceCreateInfoMVK & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
16078 {
16079 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16080 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16081 VULKAN_HPP_ASSERT( d.vkCreateIOSSurfaceMVK && "Function <vkCreateIOSSurfaceMVK> requires <VK_MVK_ios_surface>" );
16082 # endif
16083
16084 SurfaceKHR surface;
16085 Result result = static_cast<Result>( d.vkCreateIOSSurfaceMVK( m_instance,
16086 reinterpret_cast<const VkIOSSurfaceCreateInfoMVK *>( &createInfo ),
16087 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
16088 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
16089 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createIOSSurfaceMVKUnique" );
16090
16091 return detail::createResultValueType( result,
16092 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
16093 }
16094 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
16095 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16096 #endif /*VK_USE_PLATFORM_IOS_MVK*/
16097
16098 #if defined( VK_USE_PLATFORM_MACOS_MVK )
16099 //=== VK_MVK_macos_surface ===
16100
16101 // wrapper function for command vkCreateMacOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMacOSSurfaceMVK.html
16102 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMacOSSurfaceMVK ), bool>::type>
16103 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createMacOSSurfaceMVK( const MacOSSurfaceCreateInfoMVK * pCreateInfo,
16104 const AllocationCallbacks * pAllocator,
16105 SurfaceKHR * pSurface,
16106 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16107 {
16108 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16109 return static_cast<Result>( d.vkCreateMacOSSurfaceMVK( static_cast<VkInstance>( m_instance ),
16110 reinterpret_cast<const VkMacOSSurfaceCreateInfoMVK *>( pCreateInfo ),
16111 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
16112 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
16113 }
16114
16115 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16116 // wrapper function for command vkCreateMacOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMacOSSurfaceMVK.html
16117 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMacOSSurfaceMVK ), bool>::type>
16118 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
16119 Instance::createMacOSSurfaceMVK( const MacOSSurfaceCreateInfoMVK & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
16120 {
16121 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16122 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16123 VULKAN_HPP_ASSERT( d.vkCreateMacOSSurfaceMVK && "Function <vkCreateMacOSSurfaceMVK> requires <VK_MVK_macos_surface>" );
16124 # endif
16125
16126 SurfaceKHR surface;
16127 Result result = static_cast<Result>( d.vkCreateMacOSSurfaceMVK( m_instance,
16128 reinterpret_cast<const VkMacOSSurfaceCreateInfoMVK *>( &createInfo ),
16129 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
16130 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
16131 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createMacOSSurfaceMVK" );
16132
16133 return detail::createResultValueType( result, std::move( surface ) );
16134 }
16135
16136 # ifndef VULKAN_HPP_NO_SMART_HANDLE
16137 // wrapper function for command vkCreateMacOSSurfaceMVK, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMacOSSurfaceMVK.html
16138 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMacOSSurfaceMVK ), bool>::type>
16139 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createMacOSSurfaceMVKUnique(
16140 const MacOSSurfaceCreateInfoMVK & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
16141 {
16142 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16143 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16144 VULKAN_HPP_ASSERT( d.vkCreateMacOSSurfaceMVK && "Function <vkCreateMacOSSurfaceMVK> requires <VK_MVK_macos_surface>" );
16145 # endif
16146
16147 SurfaceKHR surface;
16148 Result result = static_cast<Result>( d.vkCreateMacOSSurfaceMVK( m_instance,
16149 reinterpret_cast<const VkMacOSSurfaceCreateInfoMVK *>( &createInfo ),
16150 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
16151 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
16152 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createMacOSSurfaceMVKUnique" );
16153
16154 return detail::createResultValueType( result,
16155 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
16156 }
16157 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
16158 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16159 #endif /*VK_USE_PLATFORM_MACOS_MVK*/
16160
16161 //=== VK_EXT_debug_utils ===
16162
16163 // wrapper function for command vkSetDebugUtilsObjectNameEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectNameEXT.html
16164 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDebugUtilsObjectNameEXT ), bool>::type>
16165 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setDebugUtilsObjectNameEXT( const DebugUtilsObjectNameInfoEXT * pNameInfo,
16166 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16167 {
16168 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16169 return static_cast<Result>(
16170 d.vkSetDebugUtilsObjectNameEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkDebugUtilsObjectNameInfoEXT *>( pNameInfo ) ) );
16171 }
16172
16173 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16174 // wrapper function for command vkSetDebugUtilsObjectNameEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectNameEXT.html
16175 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDebugUtilsObjectNameEXT ), bool>::type>
16176 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
16177 Device::setDebugUtilsObjectNameEXT( const DebugUtilsObjectNameInfoEXT & nameInfo, Dispatch const & d ) const
16178 {
16179 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16180 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16181 VULKAN_HPP_ASSERT( d.vkSetDebugUtilsObjectNameEXT && "Function <vkSetDebugUtilsObjectNameEXT> requires <VK_EXT_debug_utils>" );
16182 # endif
16183
16184 Result result = static_cast<Result>( d.vkSetDebugUtilsObjectNameEXT( m_device, reinterpret_cast<const VkDebugUtilsObjectNameInfoEXT *>( &nameInfo ) ) );
16185 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setDebugUtilsObjectNameEXT" );
16186
16187 return detail::createResultValueType( result );
16188 }
16189
16190 // wrapper function for command vkSetDebugUtilsObjectNameEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectNameEXT.html
16191 template <typename HandleType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDebugUtilsObjectNameEXT ), bool>::type>
16192 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
16193 Device::setDebugUtilsObjectNameEXT( HandleType const & handle, std::string const & name, Dispatch const & d ) const
16194 {
16195 VULKAN_HPP_STATIC_ASSERT( VULKAN_HPP_NAMESPACE::isVulkanHandleType<HandleType>::value, "HandleType must be a Vulkan handle type" );
16196 // It might be, that neither constructors, nor setters, nor designated initializers are available... need to explicitly set member by member
16197 VULKAN_HPP_NAMESPACE::DebugUtilsObjectNameInfoEXT nameInfo;
16198 nameInfo.objectType = handle.objectType;
16199 nameInfo.objectHandle = reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) );
16200 nameInfo.pObjectName = name.c_str();
16201 return setDebugUtilsObjectNameEXT( nameInfo, d );
16202 }
16203 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16204
16205 // wrapper function for command vkSetDebugUtilsObjectTagEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectTagEXT.html
16206 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDebugUtilsObjectTagEXT ), bool>::type>
16207 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setDebugUtilsObjectTagEXT( const DebugUtilsObjectTagInfoEXT * pTagInfo,
16208 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16209 {
16210 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16211 return static_cast<Result>(
16212 d.vkSetDebugUtilsObjectTagEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkDebugUtilsObjectTagInfoEXT *>( pTagInfo ) ) );
16213 }
16214
16215 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16216 // wrapper function for command vkSetDebugUtilsObjectTagEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectTagEXT.html
16217 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDebugUtilsObjectTagEXT ), bool>::type>
16218 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
16219 Device::setDebugUtilsObjectTagEXT( const DebugUtilsObjectTagInfoEXT & tagInfo, Dispatch const & d ) const
16220 {
16221 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16222 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16223 VULKAN_HPP_ASSERT( d.vkSetDebugUtilsObjectTagEXT && "Function <vkSetDebugUtilsObjectTagEXT> requires <VK_EXT_debug_utils>" );
16224 # endif
16225
16226 Result result = static_cast<Result>( d.vkSetDebugUtilsObjectTagEXT( m_device, reinterpret_cast<const VkDebugUtilsObjectTagInfoEXT *>( &tagInfo ) ) );
16227 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setDebugUtilsObjectTagEXT" );
16228
16229 return detail::createResultValueType( result );
16230 }
16231
16232 // wrapper function for command vkSetDebugUtilsObjectTagEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDebugUtilsObjectTagEXT.html
16233 template <typename HandleType, typename TagType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDebugUtilsObjectNameEXT ), bool>::type>
16234 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
16235 Device::setDebugUtilsObjectTagEXT( HandleType const & handle, uint64_t name, TagType const & tag, Dispatch const & d ) const
16236 {
16237 VULKAN_HPP_STATIC_ASSERT( VULKAN_HPP_NAMESPACE::isVulkanHandleType<HandleType>::value, "HandleType must be a Vulkan handle type" );
16238 // It might be, that neither constructors, nor setters, nor designated initializers are available... need to explicitly set member by member
16239 VULKAN_HPP_NAMESPACE::DebugUtilsObjectTagInfoEXT tagInfo;
16240 tagInfo.objectType = handle.objectType;
16241 tagInfo.objectHandle = reinterpret_cast<uint64_t>( static_cast<typename HandleType::CType>( handle ) );
16242 tagInfo.tagName = name;
16243 tagInfo.tagSize = sizeof( TagType );
16244 tagInfo.pTag = &tag;
16245 return setDebugUtilsObjectTagEXT( tagInfo, d );
16246 }
16247 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16248
16249 // wrapper function for command vkQueueBeginDebugUtilsLabelEXT, see
16250 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueBeginDebugUtilsLabelEXT.html
16251 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueBeginDebugUtilsLabelEXT ), bool>::type>
16252 VULKAN_HPP_INLINE void Queue::beginDebugUtilsLabelEXT( const DebugUtilsLabelEXT * pLabelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16253 {
16254 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16255 d.vkQueueBeginDebugUtilsLabelEXT( static_cast<VkQueue>( m_queue ), reinterpret_cast<const VkDebugUtilsLabelEXT *>( pLabelInfo ) );
16256 }
16257
16258 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16259 // wrapper function for command vkQueueBeginDebugUtilsLabelEXT, see
16260 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueBeginDebugUtilsLabelEXT.html
16261 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueBeginDebugUtilsLabelEXT ), bool>::type>
16262 VULKAN_HPP_INLINE void Queue::beginDebugUtilsLabelEXT( const DebugUtilsLabelEXT & labelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16263 {
16264 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16265 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16266 VULKAN_HPP_ASSERT( d.vkQueueBeginDebugUtilsLabelEXT && "Function <vkQueueBeginDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
16267 # endif
16268
16269 d.vkQueueBeginDebugUtilsLabelEXT( m_queue, reinterpret_cast<const VkDebugUtilsLabelEXT *>( &labelInfo ) );
16270 }
16271 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16272
16273 // wrapper function for command vkQueueEndDebugUtilsLabelEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueEndDebugUtilsLabelEXT.html
16274 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueEndDebugUtilsLabelEXT ), bool>::type>
16275 VULKAN_HPP_INLINE void Queue::endDebugUtilsLabelEXT( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16276 {
16277 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16278 d.vkQueueEndDebugUtilsLabelEXT( static_cast<VkQueue>( m_queue ) );
16279 }
16280
16281 // wrapper function for command vkQueueInsertDebugUtilsLabelEXT, see
16282 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueInsertDebugUtilsLabelEXT.html
16283 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueInsertDebugUtilsLabelEXT ), bool>::type>
16284 VULKAN_HPP_INLINE void Queue::insertDebugUtilsLabelEXT( const DebugUtilsLabelEXT * pLabelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16285 {
16286 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16287 d.vkQueueInsertDebugUtilsLabelEXT( static_cast<VkQueue>( m_queue ), reinterpret_cast<const VkDebugUtilsLabelEXT *>( pLabelInfo ) );
16288 }
16289
16290 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16291 // wrapper function for command vkQueueInsertDebugUtilsLabelEXT, see
16292 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueInsertDebugUtilsLabelEXT.html
16293 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueInsertDebugUtilsLabelEXT ), bool>::type>
16294 VULKAN_HPP_INLINE void Queue::insertDebugUtilsLabelEXT( const DebugUtilsLabelEXT & labelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16295 {
16296 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16297 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16298 VULKAN_HPP_ASSERT( d.vkQueueInsertDebugUtilsLabelEXT && "Function <vkQueueInsertDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
16299 # endif
16300
16301 d.vkQueueInsertDebugUtilsLabelEXT( m_queue, reinterpret_cast<const VkDebugUtilsLabelEXT *>( &labelInfo ) );
16302 }
16303 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16304
16305 // wrapper function for command vkCmdBeginDebugUtilsLabelEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginDebugUtilsLabelEXT.html
16306 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginDebugUtilsLabelEXT ), bool>::type>
16307 VULKAN_HPP_INLINE void CommandBuffer::beginDebugUtilsLabelEXT( const DebugUtilsLabelEXT * pLabelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16308 {
16309 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16310 d.vkCmdBeginDebugUtilsLabelEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkDebugUtilsLabelEXT *>( pLabelInfo ) );
16311 }
16312
16313 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16314 // wrapper function for command vkCmdBeginDebugUtilsLabelEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginDebugUtilsLabelEXT.html
16315 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginDebugUtilsLabelEXT ), bool>::type>
16316 VULKAN_HPP_INLINE void CommandBuffer::beginDebugUtilsLabelEXT( const DebugUtilsLabelEXT & labelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16317 {
16318 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16319 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16320 VULKAN_HPP_ASSERT( d.vkCmdBeginDebugUtilsLabelEXT && "Function <vkCmdBeginDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
16321 # endif
16322
16323 d.vkCmdBeginDebugUtilsLabelEXT( m_commandBuffer, reinterpret_cast<const VkDebugUtilsLabelEXT *>( &labelInfo ) );
16324 }
16325 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16326
16327 // wrapper function for command vkCmdEndDebugUtilsLabelEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndDebugUtilsLabelEXT.html
16328 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndDebugUtilsLabelEXT ), bool>::type>
16329 VULKAN_HPP_INLINE void CommandBuffer::endDebugUtilsLabelEXT( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16330 {
16331 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16332 d.vkCmdEndDebugUtilsLabelEXT( static_cast<VkCommandBuffer>( m_commandBuffer ) );
16333 }
16334
16335 // wrapper function for command vkCmdInsertDebugUtilsLabelEXT, see
16336 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdInsertDebugUtilsLabelEXT.html
16337 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdInsertDebugUtilsLabelEXT ), bool>::type>
16338 VULKAN_HPP_INLINE void CommandBuffer::insertDebugUtilsLabelEXT( const DebugUtilsLabelEXT * pLabelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16339 {
16340 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16341 d.vkCmdInsertDebugUtilsLabelEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkDebugUtilsLabelEXT *>( pLabelInfo ) );
16342 }
16343
16344 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16345 // wrapper function for command vkCmdInsertDebugUtilsLabelEXT, see
16346 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdInsertDebugUtilsLabelEXT.html
16347 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdInsertDebugUtilsLabelEXT ), bool>::type>
16348 VULKAN_HPP_INLINE void CommandBuffer::insertDebugUtilsLabelEXT( const DebugUtilsLabelEXT & labelInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16349 {
16350 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16351 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16352 VULKAN_HPP_ASSERT( d.vkCmdInsertDebugUtilsLabelEXT && "Function <vkCmdInsertDebugUtilsLabelEXT> requires <VK_EXT_debug_utils>" );
16353 # endif
16354
16355 d.vkCmdInsertDebugUtilsLabelEXT( m_commandBuffer, reinterpret_cast<const VkDebugUtilsLabelEXT *>( &labelInfo ) );
16356 }
16357 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16358
16359 // wrapper function for command vkCreateDebugUtilsMessengerEXT, see
16360 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugUtilsMessengerEXT.html
16361 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDebugUtilsMessengerEXT ), bool>::type>
16362 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createDebugUtilsMessengerEXT( const DebugUtilsMessengerCreateInfoEXT * pCreateInfo,
16363 const AllocationCallbacks * pAllocator,
16364 DebugUtilsMessengerEXT * pMessenger,
16365 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16366 {
16367 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16368 return static_cast<Result>( d.vkCreateDebugUtilsMessengerEXT( static_cast<VkInstance>( m_instance ),
16369 reinterpret_cast<const VkDebugUtilsMessengerCreateInfoEXT *>( pCreateInfo ),
16370 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
16371 reinterpret_cast<VkDebugUtilsMessengerEXT *>( pMessenger ) ) );
16372 }
16373
16374 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16375 // wrapper function for command vkCreateDebugUtilsMessengerEXT, see
16376 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugUtilsMessengerEXT.html
16377 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDebugUtilsMessengerEXT ), bool>::type>
16378 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DebugUtilsMessengerEXT>::type Instance::createDebugUtilsMessengerEXT(
16379 const DebugUtilsMessengerCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
16380 {
16381 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16382 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16383 VULKAN_HPP_ASSERT( d.vkCreateDebugUtilsMessengerEXT && "Function <vkCreateDebugUtilsMessengerEXT> requires <VK_EXT_debug_utils>" );
16384 # endif
16385
16386 DebugUtilsMessengerEXT messenger;
16387 Result result = static_cast<Result>( d.vkCreateDebugUtilsMessengerEXT( m_instance,
16388 reinterpret_cast<const VkDebugUtilsMessengerCreateInfoEXT *>( &createInfo ),
16389 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
16390 reinterpret_cast<VkDebugUtilsMessengerEXT *>( &messenger ) ) );
16391 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDebugUtilsMessengerEXT" );
16392
16393 return detail::createResultValueType( result, std::move( messenger ) );
16394 }
16395
16396 # ifndef VULKAN_HPP_NO_SMART_HANDLE
16397 // wrapper function for command vkCreateDebugUtilsMessengerEXT, see
16398 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDebugUtilsMessengerEXT.html
16399 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDebugUtilsMessengerEXT ), bool>::type>
16400 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DebugUtilsMessengerEXT, Dispatch>>::type
16401 Instance::createDebugUtilsMessengerEXTUnique( const DebugUtilsMessengerCreateInfoEXT & createInfo,
16402 Optional<const AllocationCallbacks> allocator,
16403 Dispatch const & d ) const
16404 {
16405 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16406 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16407 VULKAN_HPP_ASSERT( d.vkCreateDebugUtilsMessengerEXT && "Function <vkCreateDebugUtilsMessengerEXT> requires <VK_EXT_debug_utils>" );
16408 # endif
16409
16410 DebugUtilsMessengerEXT messenger;
16411 Result result = static_cast<Result>( d.vkCreateDebugUtilsMessengerEXT( m_instance,
16412 reinterpret_cast<const VkDebugUtilsMessengerCreateInfoEXT *>( &createInfo ),
16413 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
16414 reinterpret_cast<VkDebugUtilsMessengerEXT *>( &messenger ) ) );
16415 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDebugUtilsMessengerEXTUnique" );
16416
16417 return detail::createResultValueType(
16418 result, UniqueHandle<DebugUtilsMessengerEXT, Dispatch>( messenger, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
16419 }
16420 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
16421 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16422
16423 // wrapper function for command vkDestroyDebugUtilsMessengerEXT, see
16424 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugUtilsMessengerEXT.html
16425 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugUtilsMessengerEXT ), bool>::type>
16426 VULKAN_HPP_INLINE void Instance::destroyDebugUtilsMessengerEXT( DebugUtilsMessengerEXT messenger,
16427 const AllocationCallbacks * pAllocator,
16428 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16429 {
16430 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16431 d.vkDestroyDebugUtilsMessengerEXT( static_cast<VkInstance>( m_instance ),
16432 static_cast<VkDebugUtilsMessengerEXT>( messenger ),
16433 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
16434 }
16435
16436 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16437 // wrapper function for command vkDestroyDebugUtilsMessengerEXT, see
16438 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugUtilsMessengerEXT.html
16439 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugUtilsMessengerEXT ), bool>::type>
16440 VULKAN_HPP_INLINE void Instance::destroyDebugUtilsMessengerEXT( DebugUtilsMessengerEXT messenger,
16441 Optional<const AllocationCallbacks> allocator,
16442 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16443 {
16444 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16445 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16446 VULKAN_HPP_ASSERT( d.vkDestroyDebugUtilsMessengerEXT && "Function <vkDestroyDebugUtilsMessengerEXT> requires <VK_EXT_debug_utils>" );
16447 # endif
16448
16449 d.vkDestroyDebugUtilsMessengerEXT(
16450 m_instance, static_cast<VkDebugUtilsMessengerEXT>( messenger ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
16451 }
16452 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16453
16454 // wrapper function for command vkDestroyDebugUtilsMessengerEXT, see
16455 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugUtilsMessengerEXT.html
16456 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugUtilsMessengerEXT ), bool>::type>
16457 VULKAN_HPP_INLINE void
16458 Instance::destroy( DebugUtilsMessengerEXT messenger, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16459 {
16460 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16461 d.vkDestroyDebugUtilsMessengerEXT( static_cast<VkInstance>( m_instance ),
16462 static_cast<VkDebugUtilsMessengerEXT>( messenger ),
16463 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
16464 }
16465
16466 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16467 // wrapper function for command vkDestroyDebugUtilsMessengerEXT, see
16468 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDebugUtilsMessengerEXT.html
16469 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDebugUtilsMessengerEXT ), bool>::type>
16470 VULKAN_HPP_INLINE void
16471 Instance::destroy( DebugUtilsMessengerEXT messenger, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16472 {
16473 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16474 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16475 VULKAN_HPP_ASSERT( d.vkDestroyDebugUtilsMessengerEXT && "Function <vkDestroyDebugUtilsMessengerEXT> requires <VK_EXT_debug_utils>" );
16476 # endif
16477
16478 d.vkDestroyDebugUtilsMessengerEXT(
16479 m_instance, static_cast<VkDebugUtilsMessengerEXT>( messenger ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
16480 }
16481 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16482
16483 // wrapper function for command vkSubmitDebugUtilsMessageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSubmitDebugUtilsMessageEXT.html
16484 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSubmitDebugUtilsMessageEXT ), bool>::type>
16485 VULKAN_HPP_INLINE void Instance::submitDebugUtilsMessageEXT( DebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
16486 DebugUtilsMessageTypeFlagsEXT messageTypes,
16487 const DebugUtilsMessengerCallbackDataEXT * pCallbackData,
16488 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16489 {
16490 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16491 d.vkSubmitDebugUtilsMessageEXT( static_cast<VkInstance>( m_instance ),
16492 static_cast<VkDebugUtilsMessageSeverityFlagBitsEXT>( messageSeverity ),
16493 static_cast<VkDebugUtilsMessageTypeFlagsEXT>( messageTypes ),
16494 reinterpret_cast<const VkDebugUtilsMessengerCallbackDataEXT *>( pCallbackData ) );
16495 }
16496
16497 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16498 // wrapper function for command vkSubmitDebugUtilsMessageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSubmitDebugUtilsMessageEXT.html
16499 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSubmitDebugUtilsMessageEXT ), bool>::type>
16500 VULKAN_HPP_INLINE void Instance::submitDebugUtilsMessageEXT( DebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
16501 DebugUtilsMessageTypeFlagsEXT messageTypes,
16502 const DebugUtilsMessengerCallbackDataEXT & callbackData,
16503 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16504 {
16505 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16506 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16507 VULKAN_HPP_ASSERT( d.vkSubmitDebugUtilsMessageEXT && "Function <vkSubmitDebugUtilsMessageEXT> requires <VK_EXT_debug_utils>" );
16508 # endif
16509
16510 d.vkSubmitDebugUtilsMessageEXT( m_instance,
16511 static_cast<VkDebugUtilsMessageSeverityFlagBitsEXT>( messageSeverity ),
16512 static_cast<VkDebugUtilsMessageTypeFlagsEXT>( messageTypes ),
16513 reinterpret_cast<const VkDebugUtilsMessengerCallbackDataEXT *>( &callbackData ) );
16514 }
16515 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16516
16517 #if defined( VK_USE_PLATFORM_ANDROID_KHR )
16518 //=== VK_ANDROID_external_memory_android_hardware_buffer ===
16519
16520 // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see
16521 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html
16522 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAndroidHardwareBufferPropertiesANDROID ), bool>::type>
16523 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getAndroidHardwareBufferPropertiesANDROID( const struct AHardwareBuffer * buffer,
16524 AndroidHardwareBufferPropertiesANDROID * pProperties,
16525 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16526 {
16527 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16528 return static_cast<Result>( d.vkGetAndroidHardwareBufferPropertiesANDROID(
16529 static_cast<VkDevice>( m_device ), buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID *>( pProperties ) ) );
16530 }
16531
16532 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16533 // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see
16534 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html
16535 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAndroidHardwareBufferPropertiesANDROID ), bool>::type>
16536 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<AndroidHardwareBufferPropertiesANDROID>::type
16537 Device::getAndroidHardwareBufferPropertiesANDROID( const struct AHardwareBuffer & buffer, Dispatch const & d ) const
16538 {
16539 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16540 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16541 VULKAN_HPP_ASSERT( d.vkGetAndroidHardwareBufferPropertiesANDROID &&
16542 "Function <vkGetAndroidHardwareBufferPropertiesANDROID> requires <VK_ANDROID_external_memory_android_hardware_buffer>" );
16543 # endif
16544
16545 AndroidHardwareBufferPropertiesANDROID properties;
16546 Result result = static_cast<Result>(
16547 d.vkGetAndroidHardwareBufferPropertiesANDROID( m_device, &buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID *>( &properties ) ) );
16548 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAndroidHardwareBufferPropertiesANDROID" );
16549
16550 return detail::createResultValueType( result, std::move( properties ) );
16551 }
16552
16553 // wrapper function for command vkGetAndroidHardwareBufferPropertiesANDROID, see
16554 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAndroidHardwareBufferPropertiesANDROID.html
16555 template <typename X,
16556 typename Y,
16557 typename... Z,
16558 typename Dispatch,
16559 typename std::enable_if<IS_DISPATCHED( vkGetAndroidHardwareBufferPropertiesANDROID ), bool>::type>
16560 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
16561 Device::getAndroidHardwareBufferPropertiesANDROID( const struct AHardwareBuffer & buffer, Dispatch const & d ) const
16562 {
16563 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16564 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16565 VULKAN_HPP_ASSERT( d.vkGetAndroidHardwareBufferPropertiesANDROID &&
16566 "Function <vkGetAndroidHardwareBufferPropertiesANDROID> requires <VK_ANDROID_external_memory_android_hardware_buffer>" );
16567 # endif
16568
16569 StructureChain<X, Y, Z...> structureChain;
16570 AndroidHardwareBufferPropertiesANDROID & properties = structureChain.template get<AndroidHardwareBufferPropertiesANDROID>();
16571 Result result = static_cast<Result>(
16572 d.vkGetAndroidHardwareBufferPropertiesANDROID( m_device, &buffer, reinterpret_cast<VkAndroidHardwareBufferPropertiesANDROID *>( &properties ) ) );
16573 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAndroidHardwareBufferPropertiesANDROID" );
16574
16575 return detail::createResultValueType( result, std::move( structureChain ) );
16576 }
16577 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16578
16579 // wrapper function for command vkGetMemoryAndroidHardwareBufferANDROID, see
16580 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryAndroidHardwareBufferANDROID.html
16581 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryAndroidHardwareBufferANDROID ), bool>::type>
16582 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryAndroidHardwareBufferANDROID( const MemoryGetAndroidHardwareBufferInfoANDROID * pInfo,
16583 struct AHardwareBuffer ** pBuffer,
16584 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16585 {
16586 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16587 return static_cast<Result>( d.vkGetMemoryAndroidHardwareBufferANDROID(
16588 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryGetAndroidHardwareBufferInfoANDROID *>( pInfo ), pBuffer ) );
16589 }
16590
16591 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16592 // wrapper function for command vkGetMemoryAndroidHardwareBufferANDROID, see
16593 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryAndroidHardwareBufferANDROID.html
16594 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryAndroidHardwareBufferANDROID ), bool>::type>
16595 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<struct AHardwareBuffer *>::type
16596 Device::getMemoryAndroidHardwareBufferANDROID( const MemoryGetAndroidHardwareBufferInfoANDROID & info, Dispatch const & d ) const
16597 {
16598 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16599 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16600 VULKAN_HPP_ASSERT( d.vkGetMemoryAndroidHardwareBufferANDROID &&
16601 "Function <vkGetMemoryAndroidHardwareBufferANDROID> requires <VK_ANDROID_external_memory_android_hardware_buffer>" );
16602 # endif
16603
16604 struct AHardwareBuffer * buffer;
16605 Result result = static_cast<Result>(
16606 d.vkGetMemoryAndroidHardwareBufferANDROID( m_device, reinterpret_cast<const VkMemoryGetAndroidHardwareBufferInfoANDROID *>( &info ), &buffer ) );
16607 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryAndroidHardwareBufferANDROID" );
16608
16609 return detail::createResultValueType( result, std::move( buffer ) );
16610 }
16611 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16612 #endif /*VK_USE_PLATFORM_ANDROID_KHR*/
16613
16614 #if defined( VK_ENABLE_BETA_EXTENSIONS )
16615 //=== VK_AMDX_shader_enqueue ===
16616
16617 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16618 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16619 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16620 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createExecutionGraphPipelinesAMDX( PipelineCache pipelineCache,
16621 uint32_t createInfoCount,
16622 const ExecutionGraphPipelineCreateInfoAMDX * pCreateInfos,
16623 const AllocationCallbacks * pAllocator,
16624 Pipeline * pPipelines,
16625 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16626 {
16627 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16628 return static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( static_cast<VkDevice>( m_device ),
16629 static_cast<VkPipelineCache>( pipelineCache ),
16630 createInfoCount,
16631 reinterpret_cast<const VkExecutionGraphPipelineCreateInfoAMDX *>( pCreateInfos ),
16632 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
16633 reinterpret_cast<VkPipeline *>( pPipelines ) ) );
16634 }
16635
16636 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16637 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16638 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16639 template <typename PipelineAllocator,
16640 typename Dispatch,
16641 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
16642 typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16643 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>>
16644 Device::createExecutionGraphPipelinesAMDX( PipelineCache pipelineCache,
16645 ArrayProxy<const ExecutionGraphPipelineCreateInfoAMDX> const & createInfos,
16646 Optional<const AllocationCallbacks> allocator,
16647 Dispatch const & d ) const
16648 {
16649 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16650 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16651 VULKAN_HPP_ASSERT( d.vkCreateExecutionGraphPipelinesAMDX && "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
16652 # endif
16653
16654 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size() );
16655 Result result =
16656 static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( m_device,
16657 static_cast<VkPipelineCache>( pipelineCache ),
16658 createInfos.size(),
16659 reinterpret_cast<const VkExecutionGraphPipelineCreateInfoAMDX *>( createInfos.data() ),
16660 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
16661 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
16662 detail::resultCheck( result,
16663 VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelinesAMDX",
16664 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
16665 m_device,
16666 pipelines,
16667 allocator.get(),
16668 d );
16669
16670 return ResultValue<std::vector<Pipeline, PipelineAllocator>>( result, std::move( pipelines ) );
16671 }
16672
16673 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16674 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16675 template <typename PipelineAllocator,
16676 typename Dispatch,
16677 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
16678 typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16679 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>>
16680 Device::createExecutionGraphPipelinesAMDX( PipelineCache pipelineCache,
16681 ArrayProxy<const ExecutionGraphPipelineCreateInfoAMDX> const & createInfos,
16682 Optional<const AllocationCallbacks> allocator,
16683 PipelineAllocator const & pipelineAllocator,
16684 Dispatch const & d ) const
16685 {
16686 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16687 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16688 VULKAN_HPP_ASSERT( d.vkCreateExecutionGraphPipelinesAMDX && "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
16689 # endif
16690
16691 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size(), {}, pipelineAllocator );
16692 Result result =
16693 static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( m_device,
16694 static_cast<VkPipelineCache>( pipelineCache ),
16695 createInfos.size(),
16696 reinterpret_cast<const VkExecutionGraphPipelineCreateInfoAMDX *>( createInfos.data() ),
16697 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
16698 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
16699 detail::resultCheck( result,
16700 VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelinesAMDX",
16701 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
16702 m_device,
16703 pipelines,
16704 allocator.get(),
16705 d );
16706
16707 return ResultValue<std::vector<Pipeline, PipelineAllocator>>( result, std::move( pipelines ) );
16708 }
16709
16710 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16711 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16712 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16713 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<Pipeline>
16714 Device::createExecutionGraphPipelineAMDX( PipelineCache pipelineCache,
16715 const ExecutionGraphPipelineCreateInfoAMDX & createInfo,
16716 Optional<const AllocationCallbacks> allocator,
16717 Dispatch const & d ) const
16718 {
16719 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16720 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16721 VULKAN_HPP_ASSERT( d.vkCreateExecutionGraphPipelinesAMDX && "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
16722 # endif
16723
16724 Pipeline pipeline;
16725 Result result = static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( m_device,
16726 static_cast<VkPipelineCache>( pipelineCache ),
16727 1,
16728 reinterpret_cast<const VkExecutionGraphPipelineCreateInfoAMDX *>( &createInfo ),
16729 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
16730 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
16731 detail::resultCheck(
16732 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelineAMDX", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
16733
16734 return ResultValue<Pipeline>( result, std::move( pipeline ) );
16735 }
16736
16737 # ifndef VULKAN_HPP_NO_SMART_HANDLE
16738 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16739 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16740 template <typename Dispatch,
16741 typename PipelineAllocator,
16742 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
16743 typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16744 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
16745 Device::createExecutionGraphPipelinesAMDXUnique( PipelineCache pipelineCache,
16746 ArrayProxy<const ExecutionGraphPipelineCreateInfoAMDX> const & createInfos,
16747 Optional<const AllocationCallbacks> allocator,
16748 Dispatch const & d ) const
16749 {
16750 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16751 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16752 VULKAN_HPP_ASSERT( d.vkCreateExecutionGraphPipelinesAMDX && "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
16753 # endif
16754
16755 std::vector<Pipeline> pipelines( createInfos.size() );
16756 Result result =
16757 static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( m_device,
16758 static_cast<VkPipelineCache>( pipelineCache ),
16759 createInfos.size(),
16760 reinterpret_cast<const VkExecutionGraphPipelineCreateInfoAMDX *>( createInfos.data() ),
16761 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
16762 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
16763 detail::resultCheck( result,
16764 VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelinesAMDXUnique",
16765 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
16766 m_device,
16767 pipelines,
16768 allocator.get(),
16769 d );
16770 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines;
16771 uniquePipelines.reserve( createInfos.size() );
16772 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
16773 for ( auto const & pipeline : pipelines )
16774 {
16775 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
16776 }
16777 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
16778 }
16779
16780 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16781 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16782 template <typename Dispatch,
16783 typename PipelineAllocator,
16784 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
16785 typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16786 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
16787 Device::createExecutionGraphPipelinesAMDXUnique( PipelineCache pipelineCache,
16788 ArrayProxy<const ExecutionGraphPipelineCreateInfoAMDX> const & createInfos,
16789 Optional<const AllocationCallbacks> allocator,
16790 PipelineAllocator const & pipelineAllocator,
16791 Dispatch const & d ) const
16792 {
16793 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16794 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16795 VULKAN_HPP_ASSERT( d.vkCreateExecutionGraphPipelinesAMDX && "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
16796 # endif
16797
16798 std::vector<Pipeline> pipelines( createInfos.size() );
16799 Result result =
16800 static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( m_device,
16801 static_cast<VkPipelineCache>( pipelineCache ),
16802 createInfos.size(),
16803 reinterpret_cast<const VkExecutionGraphPipelineCreateInfoAMDX *>( createInfos.data() ),
16804 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
16805 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
16806 detail::resultCheck( result,
16807 VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelinesAMDXUnique",
16808 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
16809 m_device,
16810 pipelines,
16811 allocator.get(),
16812 d );
16813 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines( pipelineAllocator );
16814 uniquePipelines.reserve( createInfos.size() );
16815 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
16816 for ( auto const & pipeline : pipelines )
16817 {
16818 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
16819 }
16820 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
16821 }
16822
16823 // wrapper function for command vkCreateExecutionGraphPipelinesAMDX, see
16824 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExecutionGraphPipelinesAMDX.html
16825 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateExecutionGraphPipelinesAMDX ), bool>::type>
16826 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<Pipeline, Dispatch>>
16827 Device::createExecutionGraphPipelineAMDXUnique( PipelineCache pipelineCache,
16828 const ExecutionGraphPipelineCreateInfoAMDX & createInfo,
16829 Optional<const AllocationCallbacks> allocator,
16830 Dispatch const & d ) const
16831 {
16832 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16833 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16834 VULKAN_HPP_ASSERT( d.vkCreateExecutionGraphPipelinesAMDX && "Function <vkCreateExecutionGraphPipelinesAMDX> requires <VK_AMDX_shader_enqueue>" );
16835 # endif
16836
16837 Pipeline pipeline;
16838 Result result = static_cast<Result>( d.vkCreateExecutionGraphPipelinesAMDX( m_device,
16839 static_cast<VkPipelineCache>( pipelineCache ),
16840 1,
16841 reinterpret_cast<const VkExecutionGraphPipelineCreateInfoAMDX *>( &createInfo ),
16842 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
16843 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
16844 detail::resultCheck(
16845 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createExecutionGraphPipelineAMDXUnique", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
16846
16847 return ResultValue<UniqueHandle<Pipeline, Dispatch>>(
16848 result, UniqueHandle<Pipeline, Dispatch>( pipeline, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
16849 }
16850 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
16851 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16852
16853 // wrapper function for command vkGetExecutionGraphPipelineScratchSizeAMDX, see
16854 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExecutionGraphPipelineScratchSizeAMDX.html
16855 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetExecutionGraphPipelineScratchSizeAMDX ), bool>::type>
16856 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getExecutionGraphPipelineScratchSizeAMDX( Pipeline executionGraph,
16857 ExecutionGraphPipelineScratchSizeAMDX * pSizeInfo,
16858 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16859 {
16860 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16861 return static_cast<Result>( d.vkGetExecutionGraphPipelineScratchSizeAMDX( static_cast<VkDevice>( m_device ),
16862 static_cast<VkPipeline>( executionGraph ),
16863 reinterpret_cast<VkExecutionGraphPipelineScratchSizeAMDX *>( pSizeInfo ) ) );
16864 }
16865
16866 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16867 // wrapper function for command vkGetExecutionGraphPipelineScratchSizeAMDX, see
16868 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExecutionGraphPipelineScratchSizeAMDX.html
16869 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetExecutionGraphPipelineScratchSizeAMDX ), bool>::type>
16870 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ExecutionGraphPipelineScratchSizeAMDX>::type
16871 Device::getExecutionGraphPipelineScratchSizeAMDX( Pipeline executionGraph, Dispatch const & d ) const
16872 {
16873 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16874 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16875 VULKAN_HPP_ASSERT( d.vkGetExecutionGraphPipelineScratchSizeAMDX &&
16876 "Function <vkGetExecutionGraphPipelineScratchSizeAMDX> requires <VK_AMDX_shader_enqueue>" );
16877 # endif
16878
16879 ExecutionGraphPipelineScratchSizeAMDX sizeInfo;
16880 Result result = static_cast<Result>( d.vkGetExecutionGraphPipelineScratchSizeAMDX(
16881 m_device, static_cast<VkPipeline>( executionGraph ), reinterpret_cast<VkExecutionGraphPipelineScratchSizeAMDX *>( &sizeInfo ) ) );
16882 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getExecutionGraphPipelineScratchSizeAMDX" );
16883
16884 return detail::createResultValueType( result, std::move( sizeInfo ) );
16885 }
16886 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16887
16888 // wrapper function for command vkGetExecutionGraphPipelineNodeIndexAMDX, see
16889 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExecutionGraphPipelineNodeIndexAMDX.html
16890 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetExecutionGraphPipelineNodeIndexAMDX ), bool>::type>
16891 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getExecutionGraphPipelineNodeIndexAMDX( Pipeline executionGraph,
16892 const PipelineShaderStageNodeCreateInfoAMDX * pNodeInfo,
16893 uint32_t * pNodeIndex,
16894 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16895 {
16896 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16897 return static_cast<Result>( d.vkGetExecutionGraphPipelineNodeIndexAMDX( static_cast<VkDevice>( m_device ),
16898 static_cast<VkPipeline>( executionGraph ),
16899 reinterpret_cast<const VkPipelineShaderStageNodeCreateInfoAMDX *>( pNodeInfo ),
16900 pNodeIndex ) );
16901 }
16902
16903 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16904 // wrapper function for command vkGetExecutionGraphPipelineNodeIndexAMDX, see
16905 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExecutionGraphPipelineNodeIndexAMDX.html
16906 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetExecutionGraphPipelineNodeIndexAMDX ), bool>::type>
16907 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint32_t>::type
16908 Device::getExecutionGraphPipelineNodeIndexAMDX( Pipeline executionGraph, const PipelineShaderStageNodeCreateInfoAMDX & nodeInfo, Dispatch const & d ) const
16909 {
16910 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16911 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16912 VULKAN_HPP_ASSERT( d.vkGetExecutionGraphPipelineNodeIndexAMDX && "Function <vkGetExecutionGraphPipelineNodeIndexAMDX> requires <VK_AMDX_shader_enqueue>" );
16913 # endif
16914
16915 uint32_t nodeIndex;
16916 Result result = static_cast<Result>( d.vkGetExecutionGraphPipelineNodeIndexAMDX(
16917 m_device, static_cast<VkPipeline>( executionGraph ), reinterpret_cast<const VkPipelineShaderStageNodeCreateInfoAMDX *>( &nodeInfo ), &nodeIndex ) );
16918 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getExecutionGraphPipelineNodeIndexAMDX" );
16919
16920 return detail::createResultValueType( result, std::move( nodeIndex ) );
16921 }
16922 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16923
16924 // wrapper function for command vkCmdInitializeGraphScratchMemoryAMDX, see
16925 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdInitializeGraphScratchMemoryAMDX.html
16926 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdInitializeGraphScratchMemoryAMDX ), bool>::type>
16927 VULKAN_HPP_INLINE void CommandBuffer::initializeGraphScratchMemoryAMDX( Pipeline executionGraph,
16928 DeviceAddress scratch,
16929 DeviceSize scratchSize,
16930 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16931 {
16932 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16933 d.vkCmdInitializeGraphScratchMemoryAMDX( static_cast<VkCommandBuffer>( m_commandBuffer ),
16934 static_cast<VkPipeline>( executionGraph ),
16935 static_cast<VkDeviceAddress>( scratch ),
16936 static_cast<VkDeviceSize>( scratchSize ) );
16937 }
16938
16939 // wrapper function for command vkCmdDispatchGraphAMDX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphAMDX.html
16940 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchGraphAMDX ), bool>::type>
16941 VULKAN_HPP_INLINE void CommandBuffer::dispatchGraphAMDX( DeviceAddress scratch,
16942 DeviceSize scratchSize,
16943 const DispatchGraphCountInfoAMDX * pCountInfo,
16944 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16945 {
16946 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16947 d.vkCmdDispatchGraphAMDX( static_cast<VkCommandBuffer>( m_commandBuffer ),
16948 static_cast<VkDeviceAddress>( scratch ),
16949 static_cast<VkDeviceSize>( scratchSize ),
16950 reinterpret_cast<const VkDispatchGraphCountInfoAMDX *>( pCountInfo ) );
16951 }
16952
16953 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16954 // wrapper function for command vkCmdDispatchGraphAMDX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphAMDX.html
16955 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchGraphAMDX ), bool>::type>
16956 VULKAN_HPP_INLINE void CommandBuffer::dispatchGraphAMDX( DeviceAddress scratch,
16957 DeviceSize scratchSize,
16958 const DispatchGraphCountInfoAMDX & countInfo,
16959 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16960 {
16961 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16962 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16963 VULKAN_HPP_ASSERT( d.vkCmdDispatchGraphAMDX && "Function <vkCmdDispatchGraphAMDX> requires <VK_AMDX_shader_enqueue>" );
16964 # endif
16965
16966 d.vkCmdDispatchGraphAMDX( m_commandBuffer,
16967 static_cast<VkDeviceAddress>( scratch ),
16968 static_cast<VkDeviceSize>( scratchSize ),
16969 reinterpret_cast<const VkDispatchGraphCountInfoAMDX *>( &countInfo ) );
16970 }
16971 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
16972
16973 // wrapper function for command vkCmdDispatchGraphIndirectAMDX, see
16974 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphIndirectAMDX.html
16975 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchGraphIndirectAMDX ), bool>::type>
16976 VULKAN_HPP_INLINE void CommandBuffer::dispatchGraphIndirectAMDX( DeviceAddress scratch,
16977 DeviceSize scratchSize,
16978 const DispatchGraphCountInfoAMDX * pCountInfo,
16979 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16980 {
16981 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16982 d.vkCmdDispatchGraphIndirectAMDX( static_cast<VkCommandBuffer>( m_commandBuffer ),
16983 static_cast<VkDeviceAddress>( scratch ),
16984 static_cast<VkDeviceSize>( scratchSize ),
16985 reinterpret_cast<const VkDispatchGraphCountInfoAMDX *>( pCountInfo ) );
16986 }
16987
16988 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
16989 // wrapper function for command vkCmdDispatchGraphIndirectAMDX, see
16990 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphIndirectAMDX.html
16991 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchGraphIndirectAMDX ), bool>::type>
16992 VULKAN_HPP_INLINE void CommandBuffer::dispatchGraphIndirectAMDX( DeviceAddress scratch,
16993 DeviceSize scratchSize,
16994 const DispatchGraphCountInfoAMDX & countInfo,
16995 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
16996 {
16997 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
16998 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
16999 VULKAN_HPP_ASSERT( d.vkCmdDispatchGraphIndirectAMDX && "Function <vkCmdDispatchGraphIndirectAMDX> requires <VK_AMDX_shader_enqueue>" );
17000 # endif
17001
17002 d.vkCmdDispatchGraphIndirectAMDX( m_commandBuffer,
17003 static_cast<VkDeviceAddress>( scratch ),
17004 static_cast<VkDeviceSize>( scratchSize ),
17005 reinterpret_cast<const VkDispatchGraphCountInfoAMDX *>( &countInfo ) );
17006 }
17007 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17008
17009 // wrapper function for command vkCmdDispatchGraphIndirectCountAMDX, see
17010 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchGraphIndirectCountAMDX.html
17011 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchGraphIndirectCountAMDX ), bool>::type>
17012 VULKAN_HPP_INLINE void CommandBuffer::dispatchGraphIndirectCountAMDX( DeviceAddress scratch,
17013 DeviceSize scratchSize,
17014 DeviceAddress countInfo,
17015 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17016 {
17017 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17018 d.vkCmdDispatchGraphIndirectCountAMDX( static_cast<VkCommandBuffer>( m_commandBuffer ),
17019 static_cast<VkDeviceAddress>( scratch ),
17020 static_cast<VkDeviceSize>( scratchSize ),
17021 static_cast<VkDeviceAddress>( countInfo ) );
17022 }
17023 #endif /*VK_ENABLE_BETA_EXTENSIONS*/
17024
17025 //=== VK_EXT_descriptor_heap ===
17026
17027 // wrapper function for command vkWriteSamplerDescriptorsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteSamplerDescriptorsEXT.html
17028 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteSamplerDescriptorsEXT ), bool>::type>
17029 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::writeSamplerDescriptorsEXT( uint32_t samplerCount,
17030 const SamplerCreateInfo * pSamplers,
17031 const HostAddressRangeEXT * pDescriptors,
17032 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17033 {
17034 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17035 return static_cast<Result>( d.vkWriteSamplerDescriptorsEXT( static_cast<VkDevice>( m_device ),
17036 samplerCount,
17037 reinterpret_cast<const VkSamplerCreateInfo *>( pSamplers ),
17038 reinterpret_cast<const VkHostAddressRangeEXT *>( pDescriptors ) ) );
17039 }
17040
17041 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17042 // wrapper function for command vkWriteSamplerDescriptorsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteSamplerDescriptorsEXT.html
17043 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteSamplerDescriptorsEXT ), bool>::type>
17044 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::writeSamplerDescriptorsEXT(
17045 ArrayProxy<const SamplerCreateInfo> const & samplers, ArrayProxy<const HostAddressRangeEXT> const & descriptors, Dispatch const & d ) const
17046 {
17047 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17048 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17049 VULKAN_HPP_ASSERT( d.vkWriteSamplerDescriptorsEXT && "Function <vkWriteSamplerDescriptorsEXT> requires <VK_EXT_descriptor_heap>" );
17050 # endif
17051 # ifdef VULKAN_HPP_NO_EXCEPTIONS
17052 VULKAN_HPP_ASSERT( samplers.size() == descriptors.size() );
17053 # else
17054 if ( samplers.size() != descriptors.size() )
17055 {
17056 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::writeSamplerDescriptorsEXT: samplers.size() != descriptors.size()" );
17057 }
17058 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
17059
17060 Result result = static_cast<Result>( d.vkWriteSamplerDescriptorsEXT( m_device,
17061 samplers.size(),
17062 reinterpret_cast<const VkSamplerCreateInfo *>( samplers.data() ),
17063 reinterpret_cast<const VkHostAddressRangeEXT *>( descriptors.data() ) ) );
17064 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeSamplerDescriptorsEXT" );
17065
17066 return detail::createResultValueType( result );
17067 }
17068 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17069
17070 // wrapper function for command vkWriteResourceDescriptorsEXT, see
17071 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteResourceDescriptorsEXT.html
17072 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteResourceDescriptorsEXT ), bool>::type>
17073 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::writeResourceDescriptorsEXT( uint32_t resourceCount,
17074 const ResourceDescriptorInfoEXT * pResources,
17075 const HostAddressRangeEXT * pDescriptors,
17076 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17077 {
17078 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17079 return static_cast<Result>( d.vkWriteResourceDescriptorsEXT( static_cast<VkDevice>( m_device ),
17080 resourceCount,
17081 reinterpret_cast<const VkResourceDescriptorInfoEXT *>( pResources ),
17082 reinterpret_cast<const VkHostAddressRangeEXT *>( pDescriptors ) ) );
17083 }
17084
17085 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17086 // wrapper function for command vkWriteResourceDescriptorsEXT, see
17087 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteResourceDescriptorsEXT.html
17088 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteResourceDescriptorsEXT ), bool>::type>
17089 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::writeResourceDescriptorsEXT(
17090 ArrayProxy<const ResourceDescriptorInfoEXT> const & resources, ArrayProxy<const HostAddressRangeEXT> const & descriptors, Dispatch const & d ) const
17091 {
17092 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17093 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17094 VULKAN_HPP_ASSERT( d.vkWriteResourceDescriptorsEXT && "Function <vkWriteResourceDescriptorsEXT> requires <VK_EXT_descriptor_heap>" );
17095 # endif
17096 # ifdef VULKAN_HPP_NO_EXCEPTIONS
17097 VULKAN_HPP_ASSERT( resources.size() == descriptors.size() );
17098 # else
17099 if ( resources.size() != descriptors.size() )
17100 {
17101 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::writeResourceDescriptorsEXT: resources.size() != descriptors.size()" );
17102 }
17103 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
17104
17105 Result result = static_cast<Result>( d.vkWriteResourceDescriptorsEXT( m_device,
17106 resources.size(),
17107 reinterpret_cast<const VkResourceDescriptorInfoEXT *>( resources.data() ),
17108 reinterpret_cast<const VkHostAddressRangeEXT *>( descriptors.data() ) ) );
17109 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeResourceDescriptorsEXT" );
17110
17111 return detail::createResultValueType( result );
17112 }
17113 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17114
17115 // wrapper function for command vkCmdBindSamplerHeapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindSamplerHeapEXT.html
17116 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindSamplerHeapEXT ), bool>::type>
17117 VULKAN_HPP_INLINE void CommandBuffer::bindSamplerHeapEXT( const BindHeapInfoEXT * pBindInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17118 {
17119 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17120 d.vkCmdBindSamplerHeapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkBindHeapInfoEXT *>( pBindInfo ) );
17121 }
17122
17123 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17124 // wrapper function for command vkCmdBindSamplerHeapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindSamplerHeapEXT.html
17125 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindSamplerHeapEXT ), bool>::type>
17126 VULKAN_HPP_INLINE void CommandBuffer::bindSamplerHeapEXT( const BindHeapInfoEXT & bindInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17127 {
17128 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17129 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17130 VULKAN_HPP_ASSERT( d.vkCmdBindSamplerHeapEXT && "Function <vkCmdBindSamplerHeapEXT> requires <VK_EXT_descriptor_heap>" );
17131 # endif
17132
17133 d.vkCmdBindSamplerHeapEXT( m_commandBuffer, reinterpret_cast<const VkBindHeapInfoEXT *>( &bindInfo ) );
17134 }
17135 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17136
17137 // wrapper function for command vkCmdBindResourceHeapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindResourceHeapEXT.html
17138 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindResourceHeapEXT ), bool>::type>
17139 VULKAN_HPP_INLINE void CommandBuffer::bindResourceHeapEXT( const BindHeapInfoEXT * pBindInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17140 {
17141 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17142 d.vkCmdBindResourceHeapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkBindHeapInfoEXT *>( pBindInfo ) );
17143 }
17144
17145 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17146 // wrapper function for command vkCmdBindResourceHeapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindResourceHeapEXT.html
17147 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindResourceHeapEXT ), bool>::type>
17148 VULKAN_HPP_INLINE void CommandBuffer::bindResourceHeapEXT( const BindHeapInfoEXT & bindInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17149 {
17150 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17151 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17152 VULKAN_HPP_ASSERT( d.vkCmdBindResourceHeapEXT && "Function <vkCmdBindResourceHeapEXT> requires <VK_EXT_descriptor_heap>" );
17153 # endif
17154
17155 d.vkCmdBindResourceHeapEXT( m_commandBuffer, reinterpret_cast<const VkBindHeapInfoEXT *>( &bindInfo ) );
17156 }
17157 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17158
17159 // wrapper function for command vkCmdPushDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDataEXT.html
17160 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDataEXT ), bool>::type>
17161 VULKAN_HPP_INLINE void CommandBuffer::pushDataEXT( const PushDataInfoEXT * pPushDataInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17162 {
17163 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17164 d.vkCmdPushDataEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkPushDataInfoEXT *>( pPushDataInfo ) );
17165 }
17166
17167 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17168 // wrapper function for command vkCmdPushDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDataEXT.html
17169 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDataEXT ), bool>::type>
17170 VULKAN_HPP_INLINE void CommandBuffer::pushDataEXT( const PushDataInfoEXT & pushDataInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17171 {
17172 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17173 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17174 VULKAN_HPP_ASSERT( d.vkCmdPushDataEXT && "Function <vkCmdPushDataEXT> requires <VK_EXT_descriptor_heap>" );
17175 # endif
17176
17177 d.vkCmdPushDataEXT( m_commandBuffer, reinterpret_cast<const VkPushDataInfoEXT *>( &pushDataInfo ) );
17178 }
17179 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17180
17181 // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see
17182 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html
17183 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageOpaqueCaptureDataEXT ), bool>::type>
17184 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getImageOpaqueCaptureDataEXT( uint32_t imageCount,
17185 const Image * pImages,
17186 HostAddressRangeEXT * pDatas,
17187 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17188 {
17189 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17190 return static_cast<Result>( d.vkGetImageOpaqueCaptureDataEXT(
17191 static_cast<VkDevice>( m_device ), imageCount, reinterpret_cast<const VkImage *>( pImages ), reinterpret_cast<VkHostAddressRangeEXT *>( pDatas ) ) );
17192 }
17193
17194 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17195 // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see
17196 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html
17197 template <typename HostAddressRangeEXTAllocator,
17198 typename Dispatch,
17199 typename std::enable_if<std::is_same<typename HostAddressRangeEXTAllocator::value_type, HostAddressRangeEXT>::value, int>::type,
17200 typename std::enable_if<IS_DISPATCHED( vkGetImageOpaqueCaptureDataEXT ), bool>::type>
17201 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<HostAddressRangeEXT, HostAddressRangeEXTAllocator>>::type
17202 Device::getImageOpaqueCaptureDataEXT( ArrayProxy<const Image> const & images, Dispatch const & d ) const
17203 {
17204 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17205 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17206 VULKAN_HPP_ASSERT( d.vkGetImageOpaqueCaptureDataEXT && "Function <vkGetImageOpaqueCaptureDataEXT> requires <VK_EXT_descriptor_heap>" );
17207 # endif
17208
17209 std::vector<HostAddressRangeEXT, HostAddressRangeEXTAllocator> datas( images.size() );
17210 Result result = static_cast<Result>( d.vkGetImageOpaqueCaptureDataEXT(
17211 m_device, images.size(), reinterpret_cast<const VkImage *>( images.data() ), reinterpret_cast<VkHostAddressRangeEXT *>( datas.data() ) ) );
17212 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDataEXT" );
17213
17214 return detail::createResultValueType( result, std::move( datas ) );
17215 }
17216
17217 // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see
17218 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html
17219 template <typename HostAddressRangeEXTAllocator,
17220 typename Dispatch,
17221 typename std::enable_if<std::is_same<typename HostAddressRangeEXTAllocator::value_type, HostAddressRangeEXT>::value, int>::type,
17222 typename std::enable_if<IS_DISPATCHED( vkGetImageOpaqueCaptureDataEXT ), bool>::type>
17223 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<HostAddressRangeEXT, HostAddressRangeEXTAllocator>>::type
17224 Device::getImageOpaqueCaptureDataEXT( ArrayProxy<const Image> const & images,
17225 HostAddressRangeEXTAllocator const & hostAddressRangeEXTAllocator,
17226 Dispatch const & d ) const
17227 {
17228 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17229 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17230 VULKAN_HPP_ASSERT( d.vkGetImageOpaqueCaptureDataEXT && "Function <vkGetImageOpaqueCaptureDataEXT> requires <VK_EXT_descriptor_heap>" );
17231 # endif
17232
17233 std::vector<HostAddressRangeEXT, HostAddressRangeEXTAllocator> datas( images.size(), {}, hostAddressRangeEXTAllocator );
17234 Result result = static_cast<Result>( d.vkGetImageOpaqueCaptureDataEXT(
17235 m_device, images.size(), reinterpret_cast<const VkImage *>( images.data() ), reinterpret_cast<VkHostAddressRangeEXT *>( datas.data() ) ) );
17236 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDataEXT" );
17237
17238 return detail::createResultValueType( result, std::move( datas ) );
17239 }
17240
17241 // wrapper function for command vkGetImageOpaqueCaptureDataEXT, see
17242 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDataEXT.html
17243 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageOpaqueCaptureDataEXT ), bool>::type>
17244 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HostAddressRangeEXT>::type Device::getImageOpaqueCaptureDataEXT( const Image & image,
17245 Dispatch const & d ) const
17246 {
17247 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17248 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17249 VULKAN_HPP_ASSERT( d.vkGetImageOpaqueCaptureDataEXT && "Function <vkGetImageOpaqueCaptureDataEXT> requires <VK_EXT_descriptor_heap>" );
17250 # endif
17251
17252 HostAddressRangeEXT data;
17253 Result result = static_cast<Result>(
17254 d.vkGetImageOpaqueCaptureDataEXT( m_device, 1, reinterpret_cast<const VkImage *>( &image ), reinterpret_cast<VkHostAddressRangeEXT *>( &data ) ) );
17255 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDataEXT" );
17256
17257 return detail::createResultValueType( result, std::move( data ) );
17258 }
17259 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17260
17261 // wrapper function for command vkGetPhysicalDeviceDescriptorSizeEXT, see
17262 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDescriptorSizeEXT.html
17263 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDescriptorSizeEXT ), bool>::type>
17264 VULKAN_HPP_INLINE DeviceSize PhysicalDevice::getDescriptorSizeEXT( DescriptorType descriptorType, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17265 {
17266 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17267 return static_cast<DeviceSize>(
17268 d.vkGetPhysicalDeviceDescriptorSizeEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDescriptorType>( descriptorType ) ) );
17269 }
17270
17271 // wrapper function for command vkRegisterCustomBorderColorEXT, see
17272 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterCustomBorderColorEXT.html
17273 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterCustomBorderColorEXT ), bool>::type>
17274 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::registerCustomBorderColorEXT( const SamplerCustomBorderColorCreateInfoEXT * pBorderColor,
17275 Bool32 requestIndex,
17276 uint32_t * pIndex,
17277 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17278 {
17279 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17280 return static_cast<Result>( d.vkRegisterCustomBorderColorEXT( static_cast<VkDevice>( m_device ),
17281 reinterpret_cast<const VkSamplerCustomBorderColorCreateInfoEXT *>( pBorderColor ),
17282 static_cast<VkBool32>( requestIndex ),
17283 pIndex ) );
17284 }
17285
17286 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17287 // wrapper function for command vkRegisterCustomBorderColorEXT, see
17288 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkRegisterCustomBorderColorEXT.html
17289 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkRegisterCustomBorderColorEXT ), bool>::type>
17290 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint32_t>::type
17291 Device::registerCustomBorderColorEXT( const SamplerCustomBorderColorCreateInfoEXT & borderColor, Bool32 requestIndex, Dispatch const & d ) const
17292 {
17293 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17294 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17295 VULKAN_HPP_ASSERT( d.vkRegisterCustomBorderColorEXT && "Function <vkRegisterCustomBorderColorEXT> requires <VK_EXT_descriptor_heap>" );
17296 # endif
17297
17298 uint32_t index;
17299 Result result = static_cast<Result>( d.vkRegisterCustomBorderColorEXT(
17300 m_device, reinterpret_cast<const VkSamplerCustomBorderColorCreateInfoEXT *>( &borderColor ), static_cast<VkBool32>( requestIndex ), &index ) );
17301 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::registerCustomBorderColorEXT" );
17302
17303 return detail::createResultValueType( result, std::move( index ) );
17304 }
17305 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17306
17307 // wrapper function for command vkUnregisterCustomBorderColorEXT, see
17308 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnregisterCustomBorderColorEXT.html
17309 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUnregisterCustomBorderColorEXT ), bool>::type>
17310 VULKAN_HPP_INLINE void Device::unregisterCustomBorderColorEXT( uint32_t index, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17311 {
17312 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17313 d.vkUnregisterCustomBorderColorEXT( static_cast<VkDevice>( m_device ), index );
17314 }
17315
17316 // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see
17317 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html
17318 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorOpaqueCaptureDataARM ), bool>::type>
17319 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getTensorOpaqueCaptureDataARM( uint32_t tensorCount,
17320 const TensorARM * pTensors,
17321 HostAddressRangeEXT * pDatas,
17322 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17323 {
17324 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17325 return static_cast<Result>( d.vkGetTensorOpaqueCaptureDataARM( static_cast<VkDevice>( m_device ),
17326 tensorCount,
17327 reinterpret_cast<const VkTensorARM *>( pTensors ),
17328 reinterpret_cast<VkHostAddressRangeEXT *>( pDatas ) ) );
17329 }
17330
17331 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17332 // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see
17333 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html
17334 template <typename HostAddressRangeEXTAllocator,
17335 typename Dispatch,
17336 typename std::enable_if<std::is_same<typename HostAddressRangeEXTAllocator::value_type, HostAddressRangeEXT>::value, int>::type,
17337 typename std::enable_if<IS_DISPATCHED( vkGetTensorOpaqueCaptureDataARM ), bool>::type>
17338 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<HostAddressRangeEXT, HostAddressRangeEXTAllocator>>::type
17339 Device::getTensorOpaqueCaptureDataARM( ArrayProxy<const TensorARM> const & tensors, Dispatch const & d ) const
17340 {
17341 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17342 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17343 VULKAN_HPP_ASSERT( d.vkGetTensorOpaqueCaptureDataARM && "Function <vkGetTensorOpaqueCaptureDataARM> requires <VK_EXT_descriptor_heap>" );
17344 # endif
17345
17346 std::vector<HostAddressRangeEXT, HostAddressRangeEXTAllocator> datas( tensors.size() );
17347 Result result = static_cast<Result>( d.vkGetTensorOpaqueCaptureDataARM(
17348 m_device, tensors.size(), reinterpret_cast<const VkTensorARM *>( tensors.data() ), reinterpret_cast<VkHostAddressRangeEXT *>( datas.data() ) ) );
17349 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getTensorOpaqueCaptureDataARM" );
17350
17351 return detail::createResultValueType( result, std::move( datas ) );
17352 }
17353
17354 // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see
17355 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html
17356 template <typename HostAddressRangeEXTAllocator,
17357 typename Dispatch,
17358 typename std::enable_if<std::is_same<typename HostAddressRangeEXTAllocator::value_type, HostAddressRangeEXT>::value, int>::type,
17359 typename std::enable_if<IS_DISPATCHED( vkGetTensorOpaqueCaptureDataARM ), bool>::type>
17360 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<HostAddressRangeEXT, HostAddressRangeEXTAllocator>>::type
17361 Device::getTensorOpaqueCaptureDataARM( ArrayProxy<const TensorARM> const & tensors,
17362 HostAddressRangeEXTAllocator const & hostAddressRangeEXTAllocator,
17363 Dispatch const & d ) const
17364 {
17365 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17366 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17367 VULKAN_HPP_ASSERT( d.vkGetTensorOpaqueCaptureDataARM && "Function <vkGetTensorOpaqueCaptureDataARM> requires <VK_EXT_descriptor_heap>" );
17368 # endif
17369
17370 std::vector<HostAddressRangeEXT, HostAddressRangeEXTAllocator> datas( tensors.size(), {}, hostAddressRangeEXTAllocator );
17371 Result result = static_cast<Result>( d.vkGetTensorOpaqueCaptureDataARM(
17372 m_device, tensors.size(), reinterpret_cast<const VkTensorARM *>( tensors.data() ), reinterpret_cast<VkHostAddressRangeEXT *>( datas.data() ) ) );
17373 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getTensorOpaqueCaptureDataARM" );
17374
17375 return detail::createResultValueType( result, std::move( datas ) );
17376 }
17377
17378 // wrapper function for command vkGetTensorOpaqueCaptureDataARM, see
17379 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDataARM.html
17380 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorOpaqueCaptureDataARM ), bool>::type>
17381 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<HostAddressRangeEXT>::type Device::getTensorOpaqueCaptureDataARM( const TensorARM & tensor,
17382 Dispatch const & d ) const
17383 {
17384 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17385 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17386 VULKAN_HPP_ASSERT( d.vkGetTensorOpaqueCaptureDataARM && "Function <vkGetTensorOpaqueCaptureDataARM> requires <VK_EXT_descriptor_heap>" );
17387 # endif
17388
17389 HostAddressRangeEXT data;
17390 Result result = static_cast<Result>(
17391 d.vkGetTensorOpaqueCaptureDataARM( m_device, 1, reinterpret_cast<const VkTensorARM *>( &tensor ), reinterpret_cast<VkHostAddressRangeEXT *>( &data ) ) );
17392 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getTensorOpaqueCaptureDataARM" );
17393
17394 return detail::createResultValueType( result, std::move( data ) );
17395 }
17396 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17397
17398 //=== VK_EXT_sample_locations ===
17399
17400 // wrapper function for command vkCmdSetSampleLocationsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleLocationsEXT.html
17401 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetSampleLocationsEXT ), bool>::type>
17402 VULKAN_HPP_INLINE void CommandBuffer::setSampleLocationsEXT( const SampleLocationsInfoEXT * pSampleLocationsInfo,
17403 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17404 {
17405 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17406 d.vkCmdSetSampleLocationsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkSampleLocationsInfoEXT *>( pSampleLocationsInfo ) );
17407 }
17408
17409 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17410 // wrapper function for command vkCmdSetSampleLocationsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleLocationsEXT.html
17411 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetSampleLocationsEXT ), bool>::type>
17412 VULKAN_HPP_INLINE void CommandBuffer::setSampleLocationsEXT( const SampleLocationsInfoEXT & sampleLocationsInfo,
17413 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17414 {
17415 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17416 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17417 VULKAN_HPP_ASSERT( d.vkCmdSetSampleLocationsEXT && "Function <vkCmdSetSampleLocationsEXT> requires <VK_EXT_sample_locations>" );
17418 # endif
17419
17420 d.vkCmdSetSampleLocationsEXT( m_commandBuffer, reinterpret_cast<const VkSampleLocationsInfoEXT *>( &sampleLocationsInfo ) );
17421 }
17422 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17423
17424 // wrapper function for command vkGetPhysicalDeviceMultisamplePropertiesEXT, see
17425 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMultisamplePropertiesEXT.html
17426 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMultisamplePropertiesEXT ), bool>::type>
17427 VULKAN_HPP_INLINE void PhysicalDevice::getMultisamplePropertiesEXT( SampleCountFlagBits samples,
17428 MultisamplePropertiesEXT * pMultisampleProperties,
17429 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17430 {
17431 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17432 d.vkGetPhysicalDeviceMultisamplePropertiesEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
17433 static_cast<VkSampleCountFlagBits>( samples ),
17434 reinterpret_cast<VkMultisamplePropertiesEXT *>( pMultisampleProperties ) );
17435 }
17436
17437 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17438 // wrapper function for command vkGetPhysicalDeviceMultisamplePropertiesEXT, see
17439 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceMultisamplePropertiesEXT.html
17440 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceMultisamplePropertiesEXT ), bool>::type>
17441 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MultisamplePropertiesEXT PhysicalDevice::getMultisamplePropertiesEXT( SampleCountFlagBits samples,
17442 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17443 {
17444 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17445 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17446 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceMultisamplePropertiesEXT &&
17447 "Function <vkGetPhysicalDeviceMultisamplePropertiesEXT> requires <VK_EXT_sample_locations>" );
17448 # endif
17449
17450 MultisamplePropertiesEXT multisampleProperties;
17451 d.vkGetPhysicalDeviceMultisamplePropertiesEXT(
17452 m_physicalDevice, static_cast<VkSampleCountFlagBits>( samples ), reinterpret_cast<VkMultisamplePropertiesEXT *>( &multisampleProperties ) );
17453
17454 return multisampleProperties;
17455 }
17456 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17457
17458 //=== VK_KHR_get_memory_requirements2 ===
17459
17460 // wrapper function for command vkGetImageMemoryRequirements2KHR, see
17461 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2KHR.html
17462 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements2KHR ), bool>::type>
17463 VULKAN_HPP_INLINE void Device::getImageMemoryRequirements2KHR( const ImageMemoryRequirementsInfo2 * pInfo,
17464 MemoryRequirements2 * pMemoryRequirements,
17465 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17466 {
17467 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17468 d.vkGetImageMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
17469 reinterpret_cast<const VkImageMemoryRequirementsInfo2 *>( pInfo ),
17470 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
17471 }
17472
17473 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17474 // wrapper function for command vkGetImageMemoryRequirements2KHR, see
17475 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2KHR.html
17476 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements2KHR ), bool>::type>
17477 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getImageMemoryRequirements2KHR( const ImageMemoryRequirementsInfo2 & info,
17478 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17479 {
17480 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17481 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17482 VULKAN_HPP_ASSERT( d.vkGetImageMemoryRequirements2KHR &&
17483 "Function <vkGetImageMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17484 # endif
17485
17486 MemoryRequirements2 memoryRequirements;
17487 d.vkGetImageMemoryRequirements2KHR(
17488 m_device, reinterpret_cast<const VkImageMemoryRequirementsInfo2 *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17489
17490 return memoryRequirements;
17491 }
17492
17493 // wrapper function for command vkGetImageMemoryRequirements2KHR, see
17494 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageMemoryRequirements2KHR.html
17495 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageMemoryRequirements2KHR ), bool>::type>
17496 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageMemoryRequirements2KHR( const ImageMemoryRequirementsInfo2 & info,
17497 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17498 {
17499 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17500 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17501 VULKAN_HPP_ASSERT( d.vkGetImageMemoryRequirements2KHR &&
17502 "Function <vkGetImageMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17503 # endif
17504
17505 StructureChain<X, Y, Z...> structureChain;
17506 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
17507 d.vkGetImageMemoryRequirements2KHR(
17508 m_device, reinterpret_cast<const VkImageMemoryRequirementsInfo2 *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17509
17510 return structureChain;
17511 }
17512 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17513
17514 // wrapper function for command vkGetBufferMemoryRequirements2KHR, see
17515 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2KHR.html
17516 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements2KHR ), bool>::type>
17517 VULKAN_HPP_INLINE void Device::getBufferMemoryRequirements2KHR( const BufferMemoryRequirementsInfo2 * pInfo,
17518 MemoryRequirements2 * pMemoryRequirements,
17519 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17520 {
17521 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17522 d.vkGetBufferMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
17523 reinterpret_cast<const VkBufferMemoryRequirementsInfo2 *>( pInfo ),
17524 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
17525 }
17526
17527 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17528 // wrapper function for command vkGetBufferMemoryRequirements2KHR, see
17529 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2KHR.html
17530 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements2KHR ), bool>::type>
17531 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getBufferMemoryRequirements2KHR( const BufferMemoryRequirementsInfo2 & info,
17532 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17533 {
17534 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17535 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17536 VULKAN_HPP_ASSERT( d.vkGetBufferMemoryRequirements2KHR &&
17537 "Function <vkGetBufferMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17538 # endif
17539
17540 MemoryRequirements2 memoryRequirements;
17541 d.vkGetBufferMemoryRequirements2KHR(
17542 m_device, reinterpret_cast<const VkBufferMemoryRequirementsInfo2 *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17543
17544 return memoryRequirements;
17545 }
17546
17547 // wrapper function for command vkGetBufferMemoryRequirements2KHR, see
17548 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferMemoryRequirements2KHR.html
17549 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferMemoryRequirements2KHR ), bool>::type>
17550 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getBufferMemoryRequirements2KHR( const BufferMemoryRequirementsInfo2 & info,
17551 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17552 {
17553 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17554 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17555 VULKAN_HPP_ASSERT( d.vkGetBufferMemoryRequirements2KHR &&
17556 "Function <vkGetBufferMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17557 # endif
17558
17559 StructureChain<X, Y, Z...> structureChain;
17560 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
17561 d.vkGetBufferMemoryRequirements2KHR(
17562 m_device, reinterpret_cast<const VkBufferMemoryRequirementsInfo2 *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
17563
17564 return structureChain;
17565 }
17566 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17567
17568 // wrapper function for command vkGetImageSparseMemoryRequirements2KHR, see
17569 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2KHR.html
17570 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements2KHR ), bool>::type>
17571 VULKAN_HPP_INLINE void Device::getImageSparseMemoryRequirements2KHR( const ImageSparseMemoryRequirementsInfo2 * pInfo,
17572 uint32_t * pSparseMemoryRequirementCount,
17573 SparseImageMemoryRequirements2 * pSparseMemoryRequirements,
17574 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17575 {
17576 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17577 d.vkGetImageSparseMemoryRequirements2KHR( static_cast<VkDevice>( m_device ),
17578 reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( pInfo ),
17579 pSparseMemoryRequirementCount,
17580 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( pSparseMemoryRequirements ) );
17581 }
17582
17583 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17584 // wrapper function for command vkGetImageSparseMemoryRequirements2KHR, see
17585 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2KHR.html
17586 template <
17587 typename SparseImageMemoryRequirements2Allocator,
17588 typename Dispatch,
17589 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
17590 typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements2KHR ), bool>::type>
17591 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
17592 Device::getImageSparseMemoryRequirements2KHR( const ImageSparseMemoryRequirementsInfo2 & info, Dispatch const & d ) const
17593 {
17594 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17595 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17596 VULKAN_HPP_ASSERT( d.vkGetImageSparseMemoryRequirements2KHR &&
17597 "Function <vkGetImageSparseMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17598 # endif
17599
17600 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements;
17601 uint32_t sparseMemoryRequirementCount;
17602 d.vkGetImageSparseMemoryRequirements2KHR(
17603 m_device, reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( &info ), &sparseMemoryRequirementCount, nullptr );
17604 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
17605 d.vkGetImageSparseMemoryRequirements2KHR( m_device,
17606 reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( &info ),
17607 &sparseMemoryRequirementCount,
17608 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
17609
17610 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
17611 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
17612 {
17613 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
17614 }
17615 return sparseMemoryRequirements;
17616 }
17617
17618 // wrapper function for command vkGetImageSparseMemoryRequirements2KHR, see
17619 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSparseMemoryRequirements2KHR.html
17620 template <
17621 typename SparseImageMemoryRequirements2Allocator,
17622 typename Dispatch,
17623 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
17624 typename std::enable_if<IS_DISPATCHED( vkGetImageSparseMemoryRequirements2KHR ), bool>::type>
17625 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
17626 Device::getImageSparseMemoryRequirements2KHR( const ImageSparseMemoryRequirementsInfo2 & info,
17627 SparseImageMemoryRequirements2Allocator const & sparseImageMemoryRequirements2Allocator,
17628 Dispatch const & d ) const
17629 {
17630 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17631 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17632 VULKAN_HPP_ASSERT( d.vkGetImageSparseMemoryRequirements2KHR &&
17633 "Function <vkGetImageSparseMemoryRequirements2KHR> requires <VK_KHR_get_memory_requirements2> or <VK_VERSION_1_1>" );
17634 # endif
17635
17636 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements( sparseImageMemoryRequirements2Allocator );
17637 uint32_t sparseMemoryRequirementCount;
17638 d.vkGetImageSparseMemoryRequirements2KHR(
17639 m_device, reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( &info ), &sparseMemoryRequirementCount, nullptr );
17640 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
17641 d.vkGetImageSparseMemoryRequirements2KHR( m_device,
17642 reinterpret_cast<const VkImageSparseMemoryRequirementsInfo2 *>( &info ),
17643 &sparseMemoryRequirementCount,
17644 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
17645
17646 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
17647 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
17648 {
17649 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
17650 }
17651 return sparseMemoryRequirements;
17652 }
17653 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17654
17655 //=== VK_KHR_acceleration_structure ===
17656
17657 // wrapper function for command vkCreateAccelerationStructureKHR, see
17658 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureKHR.html
17659 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructureKHR ), bool>::type>
17660 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createAccelerationStructureKHR( const AccelerationStructureCreateInfoKHR * pCreateInfo,
17661 const AllocationCallbacks * pAllocator,
17662 AccelerationStructureKHR * pAccelerationStructure,
17663 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17664 {
17665 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17666 return static_cast<Result>( d.vkCreateAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
17667 reinterpret_cast<const VkAccelerationStructureCreateInfoKHR *>( pCreateInfo ),
17668 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
17669 reinterpret_cast<VkAccelerationStructureKHR *>( pAccelerationStructure ) ) );
17670 }
17671
17672 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17673 // wrapper function for command vkCreateAccelerationStructureKHR, see
17674 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureKHR.html
17675 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructureKHR ), bool>::type>
17676 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<AccelerationStructureKHR>::type Device::createAccelerationStructureKHR(
17677 const AccelerationStructureCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
17678 {
17679 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17680 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17681 VULKAN_HPP_ASSERT( d.vkCreateAccelerationStructureKHR && "Function <vkCreateAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17682 # endif
17683
17684 AccelerationStructureKHR accelerationStructure;
17685 Result result = static_cast<Result>( d.vkCreateAccelerationStructureKHR( m_device,
17686 reinterpret_cast<const VkAccelerationStructureCreateInfoKHR *>( &createInfo ),
17687 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
17688 reinterpret_cast<VkAccelerationStructureKHR *>( &accelerationStructure ) ) );
17689 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createAccelerationStructureKHR" );
17690
17691 return detail::createResultValueType( result, std::move( accelerationStructure ) );
17692 }
17693
17694 # ifndef VULKAN_HPP_NO_SMART_HANDLE
17695 // wrapper function for command vkCreateAccelerationStructureKHR, see
17696 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureKHR.html
17697 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructureKHR ), bool>::type>
17698 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<AccelerationStructureKHR, Dispatch>>::type
17699 Device::createAccelerationStructureKHRUnique( const AccelerationStructureCreateInfoKHR & createInfo,
17700 Optional<const AllocationCallbacks> allocator,
17701 Dispatch const & d ) const
17702 {
17703 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17704 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17705 VULKAN_HPP_ASSERT( d.vkCreateAccelerationStructureKHR && "Function <vkCreateAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17706 # endif
17707
17708 AccelerationStructureKHR accelerationStructure;
17709 Result result = static_cast<Result>( d.vkCreateAccelerationStructureKHR( m_device,
17710 reinterpret_cast<const VkAccelerationStructureCreateInfoKHR *>( &createInfo ),
17711 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
17712 reinterpret_cast<VkAccelerationStructureKHR *>( &accelerationStructure ) ) );
17713 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createAccelerationStructureKHRUnique" );
17714
17715 return detail::createResultValueType(
17716 result, UniqueHandle<AccelerationStructureKHR, Dispatch>( accelerationStructure, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
17717 }
17718 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
17719 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17720
17721 // wrapper function for command vkDestroyAccelerationStructureKHR, see
17722 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureKHR.html
17723 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureKHR ), bool>::type>
17724 VULKAN_HPP_INLINE void Device::destroyAccelerationStructureKHR( AccelerationStructureKHR accelerationStructure,
17725 const AllocationCallbacks * pAllocator,
17726 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17727 {
17728 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17729 d.vkDestroyAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
17730 static_cast<VkAccelerationStructureKHR>( accelerationStructure ),
17731 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
17732 }
17733
17734 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17735 // wrapper function for command vkDestroyAccelerationStructureKHR, see
17736 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureKHR.html
17737 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureKHR ), bool>::type>
17738 VULKAN_HPP_INLINE void Device::destroyAccelerationStructureKHR( AccelerationStructureKHR accelerationStructure,
17739 Optional<const AllocationCallbacks> allocator,
17740 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17741 {
17742 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17743 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17744 VULKAN_HPP_ASSERT( d.vkDestroyAccelerationStructureKHR && "Function <vkDestroyAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17745 # endif
17746
17747 d.vkDestroyAccelerationStructureKHR(
17748 m_device, static_cast<VkAccelerationStructureKHR>( accelerationStructure ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
17749 }
17750 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17751
17752 // wrapper function for command vkDestroyAccelerationStructureKHR, see
17753 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureKHR.html
17754 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureKHR ), bool>::type>
17755 VULKAN_HPP_INLINE void
17756 Device::destroy( AccelerationStructureKHR accelerationStructure, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17757 {
17758 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17759 d.vkDestroyAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
17760 static_cast<VkAccelerationStructureKHR>( accelerationStructure ),
17761 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
17762 }
17763
17764 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17765 // wrapper function for command vkDestroyAccelerationStructureKHR, see
17766 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureKHR.html
17767 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureKHR ), bool>::type>
17768 VULKAN_HPP_INLINE void Device::destroy( AccelerationStructureKHR accelerationStructure,
17769 Optional<const AllocationCallbacks> allocator,
17770 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17771 {
17772 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17773 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17774 VULKAN_HPP_ASSERT( d.vkDestroyAccelerationStructureKHR && "Function <vkDestroyAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17775 # endif
17776
17777 d.vkDestroyAccelerationStructureKHR(
17778 m_device, static_cast<VkAccelerationStructureKHR>( accelerationStructure ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
17779 }
17780 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17781
17782 // wrapper function for command vkCmdBuildAccelerationStructuresKHR, see
17783 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructuresKHR.html
17784 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildAccelerationStructuresKHR ), bool>::type>
17785 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructuresKHR( uint32_t infoCount,
17786 const AccelerationStructureBuildGeometryInfoKHR * pInfos,
17787 const AccelerationStructureBuildRangeInfoKHR * const * ppBuildRangeInfos,
17788 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17789 {
17790 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17791 d.vkCmdBuildAccelerationStructuresKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17792 infoCount,
17793 reinterpret_cast<const VkAccelerationStructureBuildGeometryInfoKHR *>( pInfos ),
17794 reinterpret_cast<const VkAccelerationStructureBuildRangeInfoKHR * const *>( ppBuildRangeInfos ) );
17795 }
17796
17797 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17798 // wrapper function for command vkCmdBuildAccelerationStructuresKHR, see
17799 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructuresKHR.html
17800 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildAccelerationStructuresKHR ), bool>::type>
17801 VULKAN_HPP_INLINE void
17802 CommandBuffer::buildAccelerationStructuresKHR( ArrayProxy<const AccelerationStructureBuildGeometryInfoKHR> const & infos,
17803 ArrayProxy<const AccelerationStructureBuildRangeInfoKHR * const> const & pBuildRangeInfos,
17804 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
17805 {
17806 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17807 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17808 VULKAN_HPP_ASSERT( d.vkCmdBuildAccelerationStructuresKHR && "Function <vkCmdBuildAccelerationStructuresKHR> requires <VK_KHR_acceleration_structure>" );
17809 # endif
17810 # ifdef VULKAN_HPP_NO_EXCEPTIONS
17811 VULKAN_HPP_ASSERT( infos.size() == pBuildRangeInfos.size() );
17812 # else
17813 if ( infos.size() != pBuildRangeInfos.size() )
17814 {
17815 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::buildAccelerationStructuresKHR: infos.size() != pBuildRangeInfos.size()" );
17816 }
17817 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
17818
17819 d.vkCmdBuildAccelerationStructuresKHR( m_commandBuffer,
17820 infos.size(),
17821 reinterpret_cast<const VkAccelerationStructureBuildGeometryInfoKHR *>( infos.data() ),
17822 reinterpret_cast<const VkAccelerationStructureBuildRangeInfoKHR * const *>( pBuildRangeInfos.data() ) );
17823 }
17824 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17825
17826 // wrapper function for command vkCmdBuildAccelerationStructuresIndirectKHR, see
17827 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructuresIndirectKHR.html
17828 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildAccelerationStructuresIndirectKHR ), bool>::type>
17829 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructuresIndirectKHR( uint32_t infoCount,
17830 const AccelerationStructureBuildGeometryInfoKHR * pInfos,
17831 const DeviceAddress * pIndirectDeviceAddresses,
17832 const uint32_t * pIndirectStrides,
17833 const uint32_t * const * ppMaxPrimitiveCounts,
17834 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17835 {
17836 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17837 d.vkCmdBuildAccelerationStructuresIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
17838 infoCount,
17839 reinterpret_cast<const VkAccelerationStructureBuildGeometryInfoKHR *>( pInfos ),
17840 reinterpret_cast<const VkDeviceAddress *>( pIndirectDeviceAddresses ),
17841 pIndirectStrides,
17842 ppMaxPrimitiveCounts );
17843 }
17844
17845 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17846 // wrapper function for command vkCmdBuildAccelerationStructuresIndirectKHR, see
17847 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructuresIndirectKHR.html
17848 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildAccelerationStructuresIndirectKHR ), bool>::type>
17849 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructuresIndirectKHR( ArrayProxy<const AccelerationStructureBuildGeometryInfoKHR> const & infos,
17850 ArrayProxy<const DeviceAddress> const & indirectDeviceAddresses,
17851 ArrayProxy<const uint32_t> const & indirectStrides,
17852 ArrayProxy<const uint32_t * const> const & pMaxPrimitiveCounts,
17853 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
17854 {
17855 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17856 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17857 VULKAN_HPP_ASSERT( d.vkCmdBuildAccelerationStructuresIndirectKHR &&
17858 "Function <vkCmdBuildAccelerationStructuresIndirectKHR> requires <VK_KHR_acceleration_structure>" );
17859 # endif
17860 # ifdef VULKAN_HPP_NO_EXCEPTIONS
17861 VULKAN_HPP_ASSERT( infos.size() == indirectDeviceAddresses.size() );
17862 VULKAN_HPP_ASSERT( infos.size() == indirectStrides.size() );
17863 VULKAN_HPP_ASSERT( infos.size() == pMaxPrimitiveCounts.size() );
17864 # else
17865 if ( infos.size() != indirectDeviceAddresses.size() )
17866 {
17867 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::buildAccelerationStructuresIndirectKHR: infos.size() != indirectDeviceAddresses.size()" );
17868 }
17869 if ( infos.size() != indirectStrides.size() )
17870 {
17871 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::buildAccelerationStructuresIndirectKHR: infos.size() != indirectStrides.size()" );
17872 }
17873 if ( infos.size() != pMaxPrimitiveCounts.size() )
17874 {
17875 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::buildAccelerationStructuresIndirectKHR: infos.size() != pMaxPrimitiveCounts.size()" );
17876 }
17877 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
17878
17879 d.vkCmdBuildAccelerationStructuresIndirectKHR( m_commandBuffer,
17880 infos.size(),
17881 reinterpret_cast<const VkAccelerationStructureBuildGeometryInfoKHR *>( infos.data() ),
17882 reinterpret_cast<const VkDeviceAddress *>( indirectDeviceAddresses.data() ),
17883 indirectStrides.data(),
17884 pMaxPrimitiveCounts.data() );
17885 }
17886 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17887
17888 // wrapper function for command vkBuildAccelerationStructuresKHR, see
17889 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBuildAccelerationStructuresKHR.html
17890 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBuildAccelerationStructuresKHR ), bool>::type>
17891 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
17892 Device::buildAccelerationStructuresKHR( DeferredOperationKHR deferredOperation,
17893 uint32_t infoCount,
17894 const AccelerationStructureBuildGeometryInfoKHR * pInfos,
17895 const AccelerationStructureBuildRangeInfoKHR * const * ppBuildRangeInfos,
17896 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17897 {
17898 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17899 return static_cast<Result>(
17900 d.vkBuildAccelerationStructuresKHR( static_cast<VkDevice>( m_device ),
17901 static_cast<VkDeferredOperationKHR>( deferredOperation ),
17902 infoCount,
17903 reinterpret_cast<const VkAccelerationStructureBuildGeometryInfoKHR *>( pInfos ),
17904 reinterpret_cast<const VkAccelerationStructureBuildRangeInfoKHR * const *>( ppBuildRangeInfos ) ) );
17905 }
17906
17907 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17908 // wrapper function for command vkBuildAccelerationStructuresKHR, see
17909 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBuildAccelerationStructuresKHR.html
17910 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBuildAccelerationStructuresKHR ), bool>::type>
17911 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
17912 Device::buildAccelerationStructuresKHR( DeferredOperationKHR deferredOperation,
17913 ArrayProxy<const AccelerationStructureBuildGeometryInfoKHR> const & infos,
17914 ArrayProxy<const AccelerationStructureBuildRangeInfoKHR * const> const & pBuildRangeInfos,
17915 Dispatch const & d ) const
17916 {
17917 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17918 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17919 VULKAN_HPP_ASSERT( d.vkBuildAccelerationStructuresKHR && "Function <vkBuildAccelerationStructuresKHR> requires <VK_KHR_acceleration_structure>" );
17920 # endif
17921 # ifdef VULKAN_HPP_NO_EXCEPTIONS
17922 VULKAN_HPP_ASSERT( infos.size() == pBuildRangeInfos.size() );
17923 # else
17924 if ( infos.size() != pBuildRangeInfos.size() )
17925 {
17926 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::buildAccelerationStructuresKHR: infos.size() != pBuildRangeInfos.size()" );
17927 }
17928 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
17929
17930 Result result = static_cast<Result>(
17931 d.vkBuildAccelerationStructuresKHR( m_device,
17932 static_cast<VkDeferredOperationKHR>( deferredOperation ),
17933 infos.size(),
17934 reinterpret_cast<const VkAccelerationStructureBuildGeometryInfoKHR *>( infos.data() ),
17935 reinterpret_cast<const VkAccelerationStructureBuildRangeInfoKHR * const *>( pBuildRangeInfos.data() ) ) );
17936 detail::resultCheck( result,
17937 VULKAN_HPP_NAMESPACE_STRING "::Device::buildAccelerationStructuresKHR",
17938 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
17939
17940 return static_cast<Result>( result );
17941 }
17942 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17943
17944 // wrapper function for command vkCopyAccelerationStructureKHR, see
17945 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyAccelerationStructureKHR.html
17946 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyAccelerationStructureKHR ), bool>::type>
17947 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyAccelerationStructureKHR( DeferredOperationKHR deferredOperation,
17948 const CopyAccelerationStructureInfoKHR * pInfo,
17949 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17950 {
17951 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17952 return static_cast<Result>( d.vkCopyAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
17953 static_cast<VkDeferredOperationKHR>( deferredOperation ),
17954 reinterpret_cast<const VkCopyAccelerationStructureInfoKHR *>( pInfo ) ) );
17955 }
17956
17957 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17958 // wrapper function for command vkCopyAccelerationStructureKHR, see
17959 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyAccelerationStructureKHR.html
17960 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyAccelerationStructureKHR ), bool>::type>
17961 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyAccelerationStructureKHR( DeferredOperationKHR deferredOperation,
17962 const CopyAccelerationStructureInfoKHR & info,
17963 Dispatch const & d ) const
17964 {
17965 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17966 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
17967 VULKAN_HPP_ASSERT( d.vkCopyAccelerationStructureKHR && "Function <vkCopyAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
17968 # endif
17969
17970 Result result = static_cast<Result>( d.vkCopyAccelerationStructureKHR(
17971 m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<const VkCopyAccelerationStructureInfoKHR *>( &info ) ) );
17972 detail::resultCheck( result,
17973 VULKAN_HPP_NAMESPACE_STRING "::Device::copyAccelerationStructureKHR",
17974 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
17975
17976 return static_cast<Result>( result );
17977 }
17978 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
17979
17980 // wrapper function for command vkCopyAccelerationStructureToMemoryKHR, see
17981 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyAccelerationStructureToMemoryKHR.html
17982 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyAccelerationStructureToMemoryKHR ), bool>::type>
17983 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyAccelerationStructureToMemoryKHR( DeferredOperationKHR deferredOperation,
17984 const CopyAccelerationStructureToMemoryInfoKHR * pInfo,
17985 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
17986 {
17987 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
17988 return static_cast<Result>( d.vkCopyAccelerationStructureToMemoryKHR( static_cast<VkDevice>( m_device ),
17989 static_cast<VkDeferredOperationKHR>( deferredOperation ),
17990 reinterpret_cast<const VkCopyAccelerationStructureToMemoryInfoKHR *>( pInfo ) ) );
17991 }
17992
17993 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
17994 // wrapper function for command vkCopyAccelerationStructureToMemoryKHR, see
17995 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyAccelerationStructureToMemoryKHR.html
17996 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyAccelerationStructureToMemoryKHR ), bool>::type>
17997 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyAccelerationStructureToMemoryKHR( DeferredOperationKHR deferredOperation,
17998 const CopyAccelerationStructureToMemoryInfoKHR & info,
17999 Dispatch const & d ) const
18000 {
18001 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18002 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18003 VULKAN_HPP_ASSERT( d.vkCopyAccelerationStructureToMemoryKHR &&
18004 "Function <vkCopyAccelerationStructureToMemoryKHR> requires <VK_KHR_acceleration_structure>" );
18005 # endif
18006
18007 Result result = static_cast<Result>( d.vkCopyAccelerationStructureToMemoryKHR(
18008 m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<const VkCopyAccelerationStructureToMemoryInfoKHR *>( &info ) ) );
18009 detail::resultCheck( result,
18010 VULKAN_HPP_NAMESPACE_STRING "::Device::copyAccelerationStructureToMemoryKHR",
18011 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
18012
18013 return static_cast<Result>( result );
18014 }
18015 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18016
18017 // wrapper function for command vkCopyMemoryToAccelerationStructureKHR, see
18018 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToAccelerationStructureKHR.html
18019 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToAccelerationStructureKHR ), bool>::type>
18020 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToAccelerationStructureKHR( DeferredOperationKHR deferredOperation,
18021 const CopyMemoryToAccelerationStructureInfoKHR * pInfo,
18022 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18023 {
18024 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18025 return static_cast<Result>( d.vkCopyMemoryToAccelerationStructureKHR( static_cast<VkDevice>( m_device ),
18026 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18027 reinterpret_cast<const VkCopyMemoryToAccelerationStructureInfoKHR *>( pInfo ) ) );
18028 }
18029
18030 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18031 // wrapper function for command vkCopyMemoryToAccelerationStructureKHR, see
18032 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToAccelerationStructureKHR.html
18033 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToAccelerationStructureKHR ), bool>::type>
18034 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToAccelerationStructureKHR( DeferredOperationKHR deferredOperation,
18035 const CopyMemoryToAccelerationStructureInfoKHR & info,
18036 Dispatch const & d ) const
18037 {
18038 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18039 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18040 VULKAN_HPP_ASSERT( d.vkCopyMemoryToAccelerationStructureKHR &&
18041 "Function <vkCopyMemoryToAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
18042 # endif
18043
18044 Result result = static_cast<Result>( d.vkCopyMemoryToAccelerationStructureKHR(
18045 m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<const VkCopyMemoryToAccelerationStructureInfoKHR *>( &info ) ) );
18046 detail::resultCheck( result,
18047 VULKAN_HPP_NAMESPACE_STRING "::Device::copyMemoryToAccelerationStructureKHR",
18048 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
18049
18050 return static_cast<Result>( result );
18051 }
18052 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18053
18054 // wrapper function for command vkWriteAccelerationStructuresPropertiesKHR, see
18055 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteAccelerationStructuresPropertiesKHR.html
18056 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteAccelerationStructuresPropertiesKHR ), bool>::type>
18057 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::writeAccelerationStructuresPropertiesKHR( uint32_t accelerationStructureCount,
18058 const AccelerationStructureKHR * pAccelerationStructures,
18059 QueryType queryType,
18060 size_t dataSize,
18061 void * pData,
18062 size_t stride,
18063 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18064 {
18065 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18066 return static_cast<Result>( d.vkWriteAccelerationStructuresPropertiesKHR( static_cast<VkDevice>( m_device ),
18067 accelerationStructureCount,
18068 reinterpret_cast<const VkAccelerationStructureKHR *>( pAccelerationStructures ),
18069 static_cast<VkQueryType>( queryType ),
18070 dataSize,
18071 pData,
18072 stride ) );
18073 }
18074
18075 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18076 // wrapper function for command vkWriteAccelerationStructuresPropertiesKHR, see
18077 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteAccelerationStructuresPropertiesKHR.html
18078 template <typename DataType,
18079 typename DataTypeAllocator,
18080 typename Dispatch,
18081 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
18082 typename std::enable_if<IS_DISPATCHED( vkWriteAccelerationStructuresPropertiesKHR ), bool>::type>
18083 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType, DataTypeAllocator>>::type
18084 Device::writeAccelerationStructuresPropertiesKHR(
18085 ArrayProxy<const AccelerationStructureKHR> const & accelerationStructures, QueryType queryType, size_t dataSize, size_t stride, Dispatch const & d ) const
18086 {
18087 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18088 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18089 VULKAN_HPP_ASSERT( d.vkWriteAccelerationStructuresPropertiesKHR &&
18090 "Function <vkWriteAccelerationStructuresPropertiesKHR> requires <VK_KHR_acceleration_structure>" );
18091 # endif
18092
18093 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
18094 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
18095 Result result =
18096 static_cast<Result>( d.vkWriteAccelerationStructuresPropertiesKHR( m_device,
18097 accelerationStructures.size(),
18098 reinterpret_cast<const VkAccelerationStructureKHR *>( accelerationStructures.data() ),
18099 static_cast<VkQueryType>( queryType ),
18100 data.size() * sizeof( DataType ),
18101 reinterpret_cast<void *>( data.data() ),
18102 stride ) );
18103 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeAccelerationStructuresPropertiesKHR" );
18104
18105 return detail::createResultValueType( result, std::move( data ) );
18106 }
18107
18108 // wrapper function for command vkWriteAccelerationStructuresPropertiesKHR, see
18109 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteAccelerationStructuresPropertiesKHR.html
18110 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteAccelerationStructuresPropertiesKHR ), bool>::type>
18111 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type Device::writeAccelerationStructuresPropertyKHR(
18112 ArrayProxy<const AccelerationStructureKHR> const & accelerationStructures, QueryType queryType, size_t stride, Dispatch const & d ) const
18113 {
18114 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18115 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18116 VULKAN_HPP_ASSERT( d.vkWriteAccelerationStructuresPropertiesKHR &&
18117 "Function <vkWriteAccelerationStructuresPropertiesKHR> requires <VK_KHR_acceleration_structure>" );
18118 # endif
18119
18120 DataType data;
18121 Result result =
18122 static_cast<Result>( d.vkWriteAccelerationStructuresPropertiesKHR( m_device,
18123 accelerationStructures.size(),
18124 reinterpret_cast<const VkAccelerationStructureKHR *>( accelerationStructures.data() ),
18125 static_cast<VkQueryType>( queryType ),
18126 sizeof( DataType ),
18127 reinterpret_cast<void *>( &data ),
18128 stride ) );
18129 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeAccelerationStructuresPropertyKHR" );
18130
18131 return detail::createResultValueType( result, std::move( data ) );
18132 }
18133 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18134
18135 // wrapper function for command vkCmdCopyAccelerationStructureKHR, see
18136 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureKHR.html
18137 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyAccelerationStructureKHR ), bool>::type>
18138 VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureKHR( const CopyAccelerationStructureInfoKHR * pInfo,
18139 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18140 {
18141 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18142 d.vkCmdCopyAccelerationStructureKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
18143 reinterpret_cast<const VkCopyAccelerationStructureInfoKHR *>( pInfo ) );
18144 }
18145
18146 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18147 // wrapper function for command vkCmdCopyAccelerationStructureKHR, see
18148 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureKHR.html
18149 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyAccelerationStructureKHR ), bool>::type>
18150 VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureKHR( const CopyAccelerationStructureInfoKHR & info,
18151 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18152 {
18153 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18154 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18155 VULKAN_HPP_ASSERT( d.vkCmdCopyAccelerationStructureKHR && "Function <vkCmdCopyAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
18156 # endif
18157
18158 d.vkCmdCopyAccelerationStructureKHR( m_commandBuffer, reinterpret_cast<const VkCopyAccelerationStructureInfoKHR *>( &info ) );
18159 }
18160 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18161
18162 // wrapper function for command vkCmdCopyAccelerationStructureToMemoryKHR, see
18163 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureToMemoryKHR.html
18164 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyAccelerationStructureToMemoryKHR ), bool>::type>
18165 VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureToMemoryKHR( const CopyAccelerationStructureToMemoryInfoKHR * pInfo,
18166 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18167 {
18168 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18169 d.vkCmdCopyAccelerationStructureToMemoryKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
18170 reinterpret_cast<const VkCopyAccelerationStructureToMemoryInfoKHR *>( pInfo ) );
18171 }
18172
18173 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18174 // wrapper function for command vkCmdCopyAccelerationStructureToMemoryKHR, see
18175 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureToMemoryKHR.html
18176 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyAccelerationStructureToMemoryKHR ), bool>::type>
18177 VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureToMemoryKHR( const CopyAccelerationStructureToMemoryInfoKHR & info,
18178 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18179 {
18180 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18181 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18182 VULKAN_HPP_ASSERT( d.vkCmdCopyAccelerationStructureToMemoryKHR &&
18183 "Function <vkCmdCopyAccelerationStructureToMemoryKHR> requires <VK_KHR_acceleration_structure>" );
18184 # endif
18185
18186 d.vkCmdCopyAccelerationStructureToMemoryKHR( m_commandBuffer, reinterpret_cast<const VkCopyAccelerationStructureToMemoryInfoKHR *>( &info ) );
18187 }
18188 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18189
18190 // wrapper function for command vkCmdCopyMemoryToAccelerationStructureKHR, see
18191 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToAccelerationStructureKHR.html
18192 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToAccelerationStructureKHR ), bool>::type>
18193 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToAccelerationStructureKHR( const CopyMemoryToAccelerationStructureInfoKHR * pInfo,
18194 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18195 {
18196 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18197 d.vkCmdCopyMemoryToAccelerationStructureKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
18198 reinterpret_cast<const VkCopyMemoryToAccelerationStructureInfoKHR *>( pInfo ) );
18199 }
18200
18201 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18202 // wrapper function for command vkCmdCopyMemoryToAccelerationStructureKHR, see
18203 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToAccelerationStructureKHR.html
18204 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToAccelerationStructureKHR ), bool>::type>
18205 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToAccelerationStructureKHR( const CopyMemoryToAccelerationStructureInfoKHR & info,
18206 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18207 {
18208 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18209 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18210 VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToAccelerationStructureKHR &&
18211 "Function <vkCmdCopyMemoryToAccelerationStructureKHR> requires <VK_KHR_acceleration_structure>" );
18212 # endif
18213
18214 d.vkCmdCopyMemoryToAccelerationStructureKHR( m_commandBuffer, reinterpret_cast<const VkCopyMemoryToAccelerationStructureInfoKHR *>( &info ) );
18215 }
18216 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18217
18218 // wrapper function for command vkGetAccelerationStructureDeviceAddressKHR, see
18219 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureDeviceAddressKHR.html
18220 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureDeviceAddressKHR ), bool>::type>
18221 VULKAN_HPP_INLINE DeviceAddress Device::getAccelerationStructureAddressKHR( const AccelerationStructureDeviceAddressInfoKHR * pInfo,
18222 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18223 {
18224 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18225 return static_cast<DeviceAddress>( d.vkGetAccelerationStructureDeviceAddressKHR(
18226 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkAccelerationStructureDeviceAddressInfoKHR *>( pInfo ) ) );
18227 }
18228
18229 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18230 // wrapper function for command vkGetAccelerationStructureDeviceAddressKHR, see
18231 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureDeviceAddressKHR.html
18232 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureDeviceAddressKHR ), bool>::type>
18233 VULKAN_HPP_INLINE DeviceAddress Device::getAccelerationStructureAddressKHR( const AccelerationStructureDeviceAddressInfoKHR & info,
18234 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18235 {
18236 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18237 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18238 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureDeviceAddressKHR &&
18239 "Function <vkGetAccelerationStructureDeviceAddressKHR> requires <VK_KHR_acceleration_structure>" );
18240 # endif
18241
18242 VkDeviceAddress result =
18243 d.vkGetAccelerationStructureDeviceAddressKHR( m_device, reinterpret_cast<const VkAccelerationStructureDeviceAddressInfoKHR *>( &info ) );
18244
18245 return static_cast<DeviceAddress>( result );
18246 }
18247 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18248
18249 // wrapper function for command vkCmdWriteAccelerationStructuresPropertiesKHR, see
18250 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteAccelerationStructuresPropertiesKHR.html
18251 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteAccelerationStructuresPropertiesKHR ), bool>::type>
18252 VULKAN_HPP_INLINE void CommandBuffer::writeAccelerationStructuresPropertiesKHR( uint32_t accelerationStructureCount,
18253 const AccelerationStructureKHR * pAccelerationStructures,
18254 QueryType queryType,
18255 QueryPool queryPool,
18256 uint32_t firstQuery,
18257 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18258 {
18259 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18260 d.vkCmdWriteAccelerationStructuresPropertiesKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
18261 accelerationStructureCount,
18262 reinterpret_cast<const VkAccelerationStructureKHR *>( pAccelerationStructures ),
18263 static_cast<VkQueryType>( queryType ),
18264 static_cast<VkQueryPool>( queryPool ),
18265 firstQuery );
18266 }
18267
18268 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18269 // wrapper function for command vkCmdWriteAccelerationStructuresPropertiesKHR, see
18270 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteAccelerationStructuresPropertiesKHR.html
18271 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteAccelerationStructuresPropertiesKHR ), bool>::type>
18272 VULKAN_HPP_INLINE void CommandBuffer::writeAccelerationStructuresPropertiesKHR( ArrayProxy<const AccelerationStructureKHR> const & accelerationStructures,
18273 QueryType queryType,
18274 QueryPool queryPool,
18275 uint32_t firstQuery,
18276 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18277 {
18278 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18279 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18280 VULKAN_HPP_ASSERT( d.vkCmdWriteAccelerationStructuresPropertiesKHR &&
18281 "Function <vkCmdWriteAccelerationStructuresPropertiesKHR> requires <VK_KHR_acceleration_structure>" );
18282 # endif
18283
18284 d.vkCmdWriteAccelerationStructuresPropertiesKHR( m_commandBuffer,
18285 accelerationStructures.size(),
18286 reinterpret_cast<const VkAccelerationStructureKHR *>( accelerationStructures.data() ),
18287 static_cast<VkQueryType>( queryType ),
18288 static_cast<VkQueryPool>( queryPool ),
18289 firstQuery );
18290 }
18291 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18292
18293 // wrapper function for command vkGetDeviceAccelerationStructureCompatibilityKHR, see
18294 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceAccelerationStructureCompatibilityKHR.html
18295 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceAccelerationStructureCompatibilityKHR ), bool>::type>
18296 VULKAN_HPP_INLINE void Device::getAccelerationStructureCompatibilityKHR( const AccelerationStructureVersionInfoKHR * pVersionInfo,
18297 AccelerationStructureCompatibilityKHR * pCompatibility,
18298 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18299 {
18300 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18301 d.vkGetDeviceAccelerationStructureCompatibilityKHR( static_cast<VkDevice>( m_device ),
18302 reinterpret_cast<const VkAccelerationStructureVersionInfoKHR *>( pVersionInfo ),
18303 reinterpret_cast<VkAccelerationStructureCompatibilityKHR *>( pCompatibility ) );
18304 }
18305
18306 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18307 // wrapper function for command vkGetDeviceAccelerationStructureCompatibilityKHR, see
18308 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceAccelerationStructureCompatibilityKHR.html
18309 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceAccelerationStructureCompatibilityKHR ), bool>::type>
18310 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureCompatibilityKHR
18311 Device::getAccelerationStructureCompatibilityKHR( const AccelerationStructureVersionInfoKHR & versionInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18312 {
18313 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18314 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18315 VULKAN_HPP_ASSERT( d.vkGetDeviceAccelerationStructureCompatibilityKHR &&
18316 "Function <vkGetDeviceAccelerationStructureCompatibilityKHR> requires <VK_KHR_acceleration_structure>" );
18317 # endif
18318
18319 AccelerationStructureCompatibilityKHR compatibility;
18320 d.vkGetDeviceAccelerationStructureCompatibilityKHR( m_device,
18321 reinterpret_cast<const VkAccelerationStructureVersionInfoKHR *>( &versionInfo ),
18322 reinterpret_cast<VkAccelerationStructureCompatibilityKHR *>( &compatibility ) );
18323
18324 return compatibility;
18325 }
18326 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18327
18328 // wrapper function for command vkGetAccelerationStructureBuildSizesKHR, see
18329 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureBuildSizesKHR.html
18330 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureBuildSizesKHR ), bool>::type>
18331 VULKAN_HPP_INLINE void Device::getAccelerationStructureBuildSizesKHR( AccelerationStructureBuildTypeKHR buildType,
18332 const AccelerationStructureBuildGeometryInfoKHR * pBuildInfo,
18333 const uint32_t * pMaxPrimitiveCounts,
18334 AccelerationStructureBuildSizesInfoKHR * pSizeInfo,
18335 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18336 {
18337 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18338 d.vkGetAccelerationStructureBuildSizesKHR( static_cast<VkDevice>( m_device ),
18339 static_cast<VkAccelerationStructureBuildTypeKHR>( buildType ),
18340 reinterpret_cast<const VkAccelerationStructureBuildGeometryInfoKHR *>( pBuildInfo ),
18341 pMaxPrimitiveCounts,
18342 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( pSizeInfo ) );
18343 }
18344
18345 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18346 // wrapper function for command vkGetAccelerationStructureBuildSizesKHR, see
18347 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureBuildSizesKHR.html
18348 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureBuildSizesKHR ), bool>::type>
18349 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureBuildSizesInfoKHR
18350 Device::getAccelerationStructureBuildSizesKHR( AccelerationStructureBuildTypeKHR buildType,
18351 const AccelerationStructureBuildGeometryInfoKHR & buildInfo,
18352 ArrayProxy<const uint32_t> const & maxPrimitiveCounts,
18353 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
18354 {
18355 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18356 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18357 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureBuildSizesKHR &&
18358 "Function <vkGetAccelerationStructureBuildSizesKHR> requires <VK_KHR_acceleration_structure>" );
18359 # endif
18360 # ifdef VULKAN_HPP_NO_EXCEPTIONS
18361 VULKAN_HPP_ASSERT( maxPrimitiveCounts.size() == buildInfo.geometryCount );
18362 # else
18363 if ( maxPrimitiveCounts.size() != buildInfo.geometryCount )
18364 {
18365 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureBuildSizesKHR: maxPrimitiveCounts.size() != buildInfo.geometryCount" );
18366 }
18367 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
18368
18369 AccelerationStructureBuildSizesInfoKHR sizeInfo;
18370 d.vkGetAccelerationStructureBuildSizesKHR( m_device,
18371 static_cast<VkAccelerationStructureBuildTypeKHR>( buildType ),
18372 reinterpret_cast<const VkAccelerationStructureBuildGeometryInfoKHR *>( &buildInfo ),
18373 maxPrimitiveCounts.data(),
18374 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( &sizeInfo ) );
18375
18376 return sizeInfo;
18377 }
18378 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18379
18380 //=== VK_KHR_ray_tracing_pipeline ===
18381
18382 // wrapper function for command vkCmdTraceRaysKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysKHR.html
18383 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdTraceRaysKHR ), bool>::type>
18384 VULKAN_HPP_INLINE void CommandBuffer::traceRaysKHR( const StridedDeviceAddressRegionKHR * pRaygenShaderBindingTable,
18385 const StridedDeviceAddressRegionKHR * pMissShaderBindingTable,
18386 const StridedDeviceAddressRegionKHR * pHitShaderBindingTable,
18387 const StridedDeviceAddressRegionKHR * pCallableShaderBindingTable,
18388 uint32_t width,
18389 uint32_t height,
18390 uint32_t depth,
18391 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18392 {
18393 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18394 d.vkCmdTraceRaysKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
18395 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( pRaygenShaderBindingTable ),
18396 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( pMissShaderBindingTable ),
18397 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( pHitShaderBindingTable ),
18398 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( pCallableShaderBindingTable ),
18399 width,
18400 height,
18401 depth );
18402 }
18403
18404 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18405 // wrapper function for command vkCmdTraceRaysKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysKHR.html
18406 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdTraceRaysKHR ), bool>::type>
18407 VULKAN_HPP_INLINE void CommandBuffer::traceRaysKHR( const StridedDeviceAddressRegionKHR & raygenShaderBindingTable,
18408 const StridedDeviceAddressRegionKHR & missShaderBindingTable,
18409 const StridedDeviceAddressRegionKHR & hitShaderBindingTable,
18410 const StridedDeviceAddressRegionKHR & callableShaderBindingTable,
18411 uint32_t width,
18412 uint32_t height,
18413 uint32_t depth,
18414 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18415 {
18416 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18417 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18418 VULKAN_HPP_ASSERT( d.vkCmdTraceRaysKHR && "Function <vkCmdTraceRaysKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18419 # endif
18420
18421 d.vkCmdTraceRaysKHR( m_commandBuffer,
18422 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &raygenShaderBindingTable ),
18423 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &missShaderBindingTable ),
18424 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &hitShaderBindingTable ),
18425 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &callableShaderBindingTable ),
18426 width,
18427 height,
18428 depth );
18429 }
18430 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18431
18432 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
18433 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
18434 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
18435 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createRayTracingPipelinesKHR( DeferredOperationKHR deferredOperation,
18436 PipelineCache pipelineCache,
18437 uint32_t createInfoCount,
18438 const RayTracingPipelineCreateInfoKHR * pCreateInfos,
18439 const AllocationCallbacks * pAllocator,
18440 Pipeline * pPipelines,
18441 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18442 {
18443 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18444 return static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( static_cast<VkDevice>( m_device ),
18445 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18446 static_cast<VkPipelineCache>( pipelineCache ),
18447 createInfoCount,
18448 reinterpret_cast<const VkRayTracingPipelineCreateInfoKHR *>( pCreateInfos ),
18449 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
18450 reinterpret_cast<VkPipeline *>( pPipelines ) ) );
18451 }
18452
18453 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18454 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
18455 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
18456 template <typename PipelineAllocator,
18457 typename Dispatch,
18458 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
18459 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
18460 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>>
18461 Device::createRayTracingPipelinesKHR( DeferredOperationKHR deferredOperation,
18462 PipelineCache pipelineCache,
18463 ArrayProxy<const RayTracingPipelineCreateInfoKHR> const & createInfos,
18464 Optional<const AllocationCallbacks> allocator,
18465 Dispatch const & d ) const
18466 {
18467 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18468 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18469 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesKHR && "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18470 # endif
18471
18472 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size() );
18473 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( m_device,
18474 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18475 static_cast<VkPipelineCache>( pipelineCache ),
18476 createInfos.size(),
18477 reinterpret_cast<const VkRayTracingPipelineCreateInfoKHR *>( createInfos.data() ),
18478 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
18479 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
18480 detail::resultCheck( result,
18481 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesKHR",
18482 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT },
18483 m_device,
18484 pipelines,
18485 allocator.get(),
18486 d );
18487
18488 return ResultValue<std::vector<Pipeline, PipelineAllocator>>( result, std::move( pipelines ) );
18489 }
18490
18491 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
18492 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
18493 template <typename PipelineAllocator,
18494 typename Dispatch,
18495 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
18496 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
18497 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>>
18498 Device::createRayTracingPipelinesKHR( DeferredOperationKHR deferredOperation,
18499 PipelineCache pipelineCache,
18500 ArrayProxy<const RayTracingPipelineCreateInfoKHR> const & createInfos,
18501 Optional<const AllocationCallbacks> allocator,
18502 PipelineAllocator const & pipelineAllocator,
18503 Dispatch const & d ) const
18504 {
18505 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18506 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18507 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesKHR && "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18508 # endif
18509
18510 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size(), {}, pipelineAllocator );
18511 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( m_device,
18512 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18513 static_cast<VkPipelineCache>( pipelineCache ),
18514 createInfos.size(),
18515 reinterpret_cast<const VkRayTracingPipelineCreateInfoKHR *>( createInfos.data() ),
18516 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
18517 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
18518 detail::resultCheck( result,
18519 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesKHR",
18520 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT },
18521 m_device,
18522 pipelines,
18523 allocator.get(),
18524 d );
18525
18526 return ResultValue<std::vector<Pipeline, PipelineAllocator>>( result, std::move( pipelines ) );
18527 }
18528
18529 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
18530 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
18531 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
18532 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<Pipeline> Device::createRayTracingPipelineKHR( DeferredOperationKHR deferredOperation,
18533 PipelineCache pipelineCache,
18534 const RayTracingPipelineCreateInfoKHR & createInfo,
18535 Optional<const AllocationCallbacks> allocator,
18536 Dispatch const & d ) const
18537 {
18538 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18539 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18540 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesKHR && "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18541 # endif
18542
18543 Pipeline pipeline;
18544 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( m_device,
18545 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18546 static_cast<VkPipelineCache>( pipelineCache ),
18547 1,
18548 reinterpret_cast<const VkRayTracingPipelineCreateInfoKHR *>( &createInfo ),
18549 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
18550 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
18551 detail::resultCheck( result,
18552 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelineKHR",
18553 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT } );
18554
18555 return ResultValue<Pipeline>( result, std::move( pipeline ) );
18556 }
18557
18558 # ifndef VULKAN_HPP_NO_SMART_HANDLE
18559 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
18560 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
18561 template <typename Dispatch,
18562 typename PipelineAllocator,
18563 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
18564 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
18565 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
18566 Device::createRayTracingPipelinesKHRUnique( DeferredOperationKHR deferredOperation,
18567 PipelineCache pipelineCache,
18568 ArrayProxy<const RayTracingPipelineCreateInfoKHR> const & createInfos,
18569 Optional<const AllocationCallbacks> allocator,
18570 Dispatch const & d ) const
18571 {
18572 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18573 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18574 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesKHR && "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18575 # endif
18576
18577 std::vector<Pipeline> pipelines( createInfos.size() );
18578 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( m_device,
18579 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18580 static_cast<VkPipelineCache>( pipelineCache ),
18581 createInfos.size(),
18582 reinterpret_cast<const VkRayTracingPipelineCreateInfoKHR *>( createInfos.data() ),
18583 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
18584 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
18585 detail::resultCheck( result,
18586 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesKHRUnique",
18587 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT },
18588 m_device,
18589 pipelines,
18590 allocator.get(),
18591 d );
18592 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines;
18593 uniquePipelines.reserve( createInfos.size() );
18594 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
18595 for ( auto const & pipeline : pipelines )
18596 {
18597 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
18598 }
18599 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
18600 }
18601
18602 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
18603 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
18604 template <typename Dispatch,
18605 typename PipelineAllocator,
18606 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
18607 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
18608 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
18609 Device::createRayTracingPipelinesKHRUnique( DeferredOperationKHR deferredOperation,
18610 PipelineCache pipelineCache,
18611 ArrayProxy<const RayTracingPipelineCreateInfoKHR> const & createInfos,
18612 Optional<const AllocationCallbacks> allocator,
18613 PipelineAllocator const & pipelineAllocator,
18614 Dispatch const & d ) const
18615 {
18616 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18617 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18618 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesKHR && "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18619 # endif
18620
18621 std::vector<Pipeline> pipelines( createInfos.size() );
18622 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( m_device,
18623 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18624 static_cast<VkPipelineCache>( pipelineCache ),
18625 createInfos.size(),
18626 reinterpret_cast<const VkRayTracingPipelineCreateInfoKHR *>( createInfos.data() ),
18627 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
18628 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
18629 detail::resultCheck( result,
18630 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesKHRUnique",
18631 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT },
18632 m_device,
18633 pipelines,
18634 allocator.get(),
18635 d );
18636 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines( pipelineAllocator );
18637 uniquePipelines.reserve( createInfos.size() );
18638 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
18639 for ( auto const & pipeline : pipelines )
18640 {
18641 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
18642 }
18643 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
18644 }
18645
18646 // wrapper function for command vkCreateRayTracingPipelinesKHR, see
18647 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesKHR.html
18648 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesKHR ), bool>::type>
18649 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<Pipeline, Dispatch>>
18650 Device::createRayTracingPipelineKHRUnique( DeferredOperationKHR deferredOperation,
18651 PipelineCache pipelineCache,
18652 const RayTracingPipelineCreateInfoKHR & createInfo,
18653 Optional<const AllocationCallbacks> allocator,
18654 Dispatch const & d ) const
18655 {
18656 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18657 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18658 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesKHR && "Function <vkCreateRayTracingPipelinesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18659 # endif
18660
18661 Pipeline pipeline;
18662 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesKHR( m_device,
18663 static_cast<VkDeferredOperationKHR>( deferredOperation ),
18664 static_cast<VkPipelineCache>( pipelineCache ),
18665 1,
18666 reinterpret_cast<const VkRayTracingPipelineCreateInfoKHR *>( &createInfo ),
18667 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
18668 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
18669 detail::resultCheck( result,
18670 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelineKHRUnique",
18671 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR, Result::ePipelineCompileRequiredEXT } );
18672
18673 return ResultValue<UniqueHandle<Pipeline, Dispatch>>(
18674 result, UniqueHandle<Pipeline, Dispatch>( pipeline, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
18675 }
18676 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
18677 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18678
18679 // wrapper function for command vkGetRayTracingShaderGroupHandlesKHR, see
18680 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesKHR.html
18681 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupHandlesKHR ), bool>::type>
18682 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getRayTracingShaderGroupHandlesKHR(
18683 Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18684 {
18685 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18686 return static_cast<Result>( d.vkGetRayTracingShaderGroupHandlesKHR(
18687 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, dataSize, pData ) );
18688 }
18689
18690 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18691 // wrapper function for command vkGetRayTracingShaderGroupHandlesKHR, see
18692 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesKHR.html
18693 template <typename DataType,
18694 typename DataTypeAllocator,
18695 typename Dispatch,
18696 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
18697 typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupHandlesKHR ), bool>::type>
18698 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType, DataTypeAllocator>>::type
18699 Device::getRayTracingShaderGroupHandlesKHR( Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, Dispatch const & d ) const
18700 {
18701 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18702 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18703 VULKAN_HPP_ASSERT( d.vkGetRayTracingShaderGroupHandlesKHR &&
18704 "Function <vkGetRayTracingShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
18705 # endif
18706
18707 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
18708 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
18709 Result result = static_cast<Result>( d.vkGetRayTracingShaderGroupHandlesKHR(
18710 m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast<void *>( data.data() ) ) );
18711 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandlesKHR" );
18712
18713 return detail::createResultValueType( result, std::move( data ) );
18714 }
18715
18716 // wrapper function for command vkGetRayTracingShaderGroupHandlesKHR, see
18717 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesKHR.html
18718 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupHandlesKHR ), bool>::type>
18719 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
18720 Device::getRayTracingShaderGroupHandleKHR( Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, Dispatch const & d ) const
18721 {
18722 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18723 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18724 VULKAN_HPP_ASSERT( d.vkGetRayTracingShaderGroupHandlesKHR &&
18725 "Function <vkGetRayTracingShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
18726 # endif
18727
18728 DataType data;
18729 Result result = static_cast<Result>( d.vkGetRayTracingShaderGroupHandlesKHR(
18730 m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast<void *>( &data ) ) );
18731 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandleKHR" );
18732
18733 return detail::createResultValueType( result, std::move( data ) );
18734 }
18735 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18736
18737 // wrapper function for command vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, see
18738 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html
18739 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingCaptureReplayShaderGroupHandlesKHR ), bool>::type>
18740 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getRayTracingCaptureReplayShaderGroupHandlesKHR(
18741 Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18742 {
18743 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18744 return static_cast<Result>( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR(
18745 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, dataSize, pData ) );
18746 }
18747
18748 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18749 // wrapper function for command vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, see
18750 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html
18751 template <typename DataType,
18752 typename DataTypeAllocator,
18753 typename Dispatch,
18754 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
18755 typename std::enable_if<IS_DISPATCHED( vkGetRayTracingCaptureReplayShaderGroupHandlesKHR ), bool>::type>
18756 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType, DataTypeAllocator>>::type
18757 Device::getRayTracingCaptureReplayShaderGroupHandlesKHR(
18758 Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, Dispatch const & d ) const
18759 {
18760 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18761 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18762 VULKAN_HPP_ASSERT( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR &&
18763 "Function <vkGetRayTracingCaptureReplayShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18764 # endif
18765
18766 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
18767 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
18768 Result result = static_cast<Result>( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR(
18769 m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast<void *>( data.data() ) ) );
18770 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingCaptureReplayShaderGroupHandlesKHR" );
18771
18772 return detail::createResultValueType( result, std::move( data ) );
18773 }
18774
18775 // wrapper function for command vkGetRayTracingCaptureReplayShaderGroupHandlesKHR, see
18776 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingCaptureReplayShaderGroupHandlesKHR.html
18777 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingCaptureReplayShaderGroupHandlesKHR ), bool>::type>
18778 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
18779 Device::getRayTracingCaptureReplayShaderGroupHandleKHR( Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, Dispatch const & d ) const
18780 {
18781 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18782 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18783 VULKAN_HPP_ASSERT( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR &&
18784 "Function <vkGetRayTracingCaptureReplayShaderGroupHandlesKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18785 # endif
18786
18787 DataType data;
18788 Result result = static_cast<Result>( d.vkGetRayTracingCaptureReplayShaderGroupHandlesKHR(
18789 m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast<void *>( &data ) ) );
18790 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingCaptureReplayShaderGroupHandleKHR" );
18791
18792 return detail::createResultValueType( result, std::move( data ) );
18793 }
18794 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18795
18796 // wrapper function for command vkCmdTraceRaysIndirectKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysIndirectKHR.html
18797 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdTraceRaysIndirectKHR ), bool>::type>
18798 VULKAN_HPP_INLINE void CommandBuffer::traceRaysIndirectKHR( const StridedDeviceAddressRegionKHR * pRaygenShaderBindingTable,
18799 const StridedDeviceAddressRegionKHR * pMissShaderBindingTable,
18800 const StridedDeviceAddressRegionKHR * pHitShaderBindingTable,
18801 const StridedDeviceAddressRegionKHR * pCallableShaderBindingTable,
18802 DeviceAddress indirectDeviceAddress,
18803 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18804 {
18805 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18806 d.vkCmdTraceRaysIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
18807 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( pRaygenShaderBindingTable ),
18808 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( pMissShaderBindingTable ),
18809 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( pHitShaderBindingTable ),
18810 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( pCallableShaderBindingTable ),
18811 static_cast<VkDeviceAddress>( indirectDeviceAddress ) );
18812 }
18813
18814 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18815 // wrapper function for command vkCmdTraceRaysIndirectKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysIndirectKHR.html
18816 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdTraceRaysIndirectKHR ), bool>::type>
18817 VULKAN_HPP_INLINE void CommandBuffer::traceRaysIndirectKHR( const StridedDeviceAddressRegionKHR & raygenShaderBindingTable,
18818 const StridedDeviceAddressRegionKHR & missShaderBindingTable,
18819 const StridedDeviceAddressRegionKHR & hitShaderBindingTable,
18820 const StridedDeviceAddressRegionKHR & callableShaderBindingTable,
18821 DeviceAddress indirectDeviceAddress,
18822 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18823 {
18824 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18825 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18826 VULKAN_HPP_ASSERT( d.vkCmdTraceRaysIndirectKHR && "Function <vkCmdTraceRaysIndirectKHR> requires <VK_KHR_ray_tracing_pipeline>" );
18827 # endif
18828
18829 d.vkCmdTraceRaysIndirectKHR( m_commandBuffer,
18830 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &raygenShaderBindingTable ),
18831 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &missShaderBindingTable ),
18832 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &hitShaderBindingTable ),
18833 reinterpret_cast<const VkStridedDeviceAddressRegionKHR *>( &callableShaderBindingTable ),
18834 static_cast<VkDeviceAddress>( indirectDeviceAddress ) );
18835 }
18836 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18837
18838 // wrapper function for command vkGetRayTracingShaderGroupStackSizeKHR, see
18839 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupStackSizeKHR.html
18840 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupStackSizeKHR ), bool>::type>
18841 VULKAN_HPP_INLINE DeviceSize Device::getRayTracingShaderGroupStackSizeKHR( Pipeline pipeline,
18842 uint32_t group,
18843 ShaderGroupShaderKHR groupShader,
18844 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18845 {
18846 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18847 return static_cast<DeviceSize>( d.vkGetRayTracingShaderGroupStackSizeKHR(
18848 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), group, static_cast<VkShaderGroupShaderKHR>( groupShader ) ) );
18849 }
18850
18851 // wrapper function for command vkCmdSetRayTracingPipelineStackSizeKHR, see
18852 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRayTracingPipelineStackSizeKHR.html
18853 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRayTracingPipelineStackSizeKHR ), bool>::type>
18854 VULKAN_HPP_INLINE void CommandBuffer::setRayTracingPipelineStackSizeKHR( uint32_t pipelineStackSize, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18855 {
18856 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18857 d.vkCmdSetRayTracingPipelineStackSizeKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), pipelineStackSize );
18858 }
18859
18860 //=== VK_KHR_sampler_ycbcr_conversion ===
18861
18862 // wrapper function for command vkCreateSamplerYcbcrConversionKHR, see
18863 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversionKHR.html
18864 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSamplerYcbcrConversionKHR ), bool>::type>
18865 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createSamplerYcbcrConversionKHR( const SamplerYcbcrConversionCreateInfo * pCreateInfo,
18866 const AllocationCallbacks * pAllocator,
18867 SamplerYcbcrConversion * pYcbcrConversion,
18868 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18869 {
18870 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18871 return static_cast<Result>( d.vkCreateSamplerYcbcrConversionKHR( static_cast<VkDevice>( m_device ),
18872 reinterpret_cast<const VkSamplerYcbcrConversionCreateInfo *>( pCreateInfo ),
18873 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
18874 reinterpret_cast<VkSamplerYcbcrConversion *>( pYcbcrConversion ) ) );
18875 }
18876
18877 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18878 // wrapper function for command vkCreateSamplerYcbcrConversionKHR, see
18879 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversionKHR.html
18880 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSamplerYcbcrConversionKHR ), bool>::type>
18881 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SamplerYcbcrConversion>::type Device::createSamplerYcbcrConversionKHR(
18882 const SamplerYcbcrConversionCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
18883 {
18884 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18885 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18886 VULKAN_HPP_ASSERT( d.vkCreateSamplerYcbcrConversionKHR &&
18887 "Function <vkCreateSamplerYcbcrConversionKHR> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
18888 # endif
18889
18890 SamplerYcbcrConversion ycbcrConversion;
18891 Result result = static_cast<Result>( d.vkCreateSamplerYcbcrConversionKHR( m_device,
18892 reinterpret_cast<const VkSamplerYcbcrConversionCreateInfo *>( &createInfo ),
18893 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
18894 reinterpret_cast<VkSamplerYcbcrConversion *>( &ycbcrConversion ) ) );
18895 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerYcbcrConversionKHR" );
18896
18897 return detail::createResultValueType( result, std::move( ycbcrConversion ) );
18898 }
18899
18900 # ifndef VULKAN_HPP_NO_SMART_HANDLE
18901 // wrapper function for command vkCreateSamplerYcbcrConversionKHR, see
18902 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSamplerYcbcrConversionKHR.html
18903 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSamplerYcbcrConversionKHR ), bool>::type>
18904 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SamplerYcbcrConversion, Dispatch>>::type
18905 Device::createSamplerYcbcrConversionKHRUnique( const SamplerYcbcrConversionCreateInfo & createInfo,
18906 Optional<const AllocationCallbacks> allocator,
18907 Dispatch const & d ) const
18908 {
18909 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18910 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18911 VULKAN_HPP_ASSERT( d.vkCreateSamplerYcbcrConversionKHR &&
18912 "Function <vkCreateSamplerYcbcrConversionKHR> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
18913 # endif
18914
18915 SamplerYcbcrConversion ycbcrConversion;
18916 Result result = static_cast<Result>( d.vkCreateSamplerYcbcrConversionKHR( m_device,
18917 reinterpret_cast<const VkSamplerYcbcrConversionCreateInfo *>( &createInfo ),
18918 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
18919 reinterpret_cast<VkSamplerYcbcrConversion *>( &ycbcrConversion ) ) );
18920 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createSamplerYcbcrConversionKHRUnique" );
18921
18922 return detail::createResultValueType(
18923 result, UniqueHandle<SamplerYcbcrConversion, Dispatch>( ycbcrConversion, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
18924 }
18925 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
18926 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18927
18928 // wrapper function for command vkDestroySamplerYcbcrConversionKHR, see
18929 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversionKHR.html
18930 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySamplerYcbcrConversionKHR ), bool>::type>
18931 VULKAN_HPP_INLINE void Device::destroySamplerYcbcrConversionKHR( SamplerYcbcrConversion ycbcrConversion,
18932 const AllocationCallbacks * pAllocator,
18933 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18934 {
18935 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18936 d.vkDestroySamplerYcbcrConversionKHR( static_cast<VkDevice>( m_device ),
18937 static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ),
18938 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
18939 }
18940
18941 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18942 // wrapper function for command vkDestroySamplerYcbcrConversionKHR, see
18943 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroySamplerYcbcrConversionKHR.html
18944 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroySamplerYcbcrConversionKHR ), bool>::type>
18945 VULKAN_HPP_INLINE void Device::destroySamplerYcbcrConversionKHR( SamplerYcbcrConversion ycbcrConversion,
18946 Optional<const AllocationCallbacks> allocator,
18947 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18948 {
18949 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18950 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18951 VULKAN_HPP_ASSERT( d.vkDestroySamplerYcbcrConversionKHR &&
18952 "Function <vkDestroySamplerYcbcrConversionKHR> requires <VK_KHR_sampler_ycbcr_conversion> or <VK_VERSION_1_1>" );
18953 # endif
18954
18955 d.vkDestroySamplerYcbcrConversionKHR(
18956 m_device, static_cast<VkSamplerYcbcrConversion>( ycbcrConversion ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
18957 }
18958 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18959
18960 //=== VK_KHR_bind_memory2 ===
18961
18962 // wrapper function for command vkBindBufferMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory2KHR.html
18963 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindBufferMemory2KHR ), bool>::type>
18964 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindBufferMemory2KHR( uint32_t bindInfoCount,
18965 const BindBufferMemoryInfo * pBindInfos,
18966 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18967 {
18968 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18969 return static_cast<Result>(
18970 d.vkBindBufferMemory2KHR( static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<const VkBindBufferMemoryInfo *>( pBindInfos ) ) );
18971 }
18972
18973 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
18974 // wrapper function for command vkBindBufferMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindBufferMemory2KHR.html
18975 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindBufferMemory2KHR ), bool>::type>
18976 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
18977 Device::bindBufferMemory2KHR( ArrayProxy<const BindBufferMemoryInfo> const & bindInfos, Dispatch const & d ) const
18978 {
18979 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18980 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
18981 VULKAN_HPP_ASSERT( d.vkBindBufferMemory2KHR && "Function <vkBindBufferMemory2KHR> requires <VK_KHR_bind_memory2> or <VK_VERSION_1_1>" );
18982 # endif
18983
18984 Result result =
18985 static_cast<Result>( d.vkBindBufferMemory2KHR( m_device, bindInfos.size(), reinterpret_cast<const VkBindBufferMemoryInfo *>( bindInfos.data() ) ) );
18986 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindBufferMemory2KHR" );
18987
18988 return detail::createResultValueType( result );
18989 }
18990 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
18991
18992 // wrapper function for command vkBindImageMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory2KHR.html
18993 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindImageMemory2KHR ), bool>::type>
18994 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindImageMemory2KHR( uint32_t bindInfoCount,
18995 const BindImageMemoryInfo * pBindInfos,
18996 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
18997 {
18998 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
18999 return static_cast<Result>(
19000 d.vkBindImageMemory2KHR( static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<const VkBindImageMemoryInfo *>( pBindInfos ) ) );
19001 }
19002
19003 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19004 // wrapper function for command vkBindImageMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindImageMemory2KHR.html
19005 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindImageMemory2KHR ), bool>::type>
19006 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
19007 Device::bindImageMemory2KHR( ArrayProxy<const BindImageMemoryInfo> const & bindInfos, Dispatch const & d ) const
19008 {
19009 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19010 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19011 VULKAN_HPP_ASSERT( d.vkBindImageMemory2KHR && "Function <vkBindImageMemory2KHR> requires <VK_KHR_bind_memory2> or <VK_VERSION_1_1>" );
19012 # endif
19013
19014 Result result =
19015 static_cast<Result>( d.vkBindImageMemory2KHR( m_device, bindInfos.size(), reinterpret_cast<const VkBindImageMemoryInfo *>( bindInfos.data() ) ) );
19016 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindImageMemory2KHR" );
19017
19018 return detail::createResultValueType( result );
19019 }
19020 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19021
19022 //=== VK_EXT_image_drm_format_modifier ===
19023
19024 // wrapper function for command vkGetImageDrmFormatModifierPropertiesEXT, see
19025 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageDrmFormatModifierPropertiesEXT.html
19026 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageDrmFormatModifierPropertiesEXT ), bool>::type>
19027 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getImageDrmFormatModifierPropertiesEXT( Image image,
19028 ImageDrmFormatModifierPropertiesEXT * pProperties,
19029 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19030 {
19031 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19032 return static_cast<Result>( d.vkGetImageDrmFormatModifierPropertiesEXT(
19033 static_cast<VkDevice>( m_device ), static_cast<VkImage>( image ), reinterpret_cast<VkImageDrmFormatModifierPropertiesEXT *>( pProperties ) ) );
19034 }
19035
19036 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19037 // wrapper function for command vkGetImageDrmFormatModifierPropertiesEXT, see
19038 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageDrmFormatModifierPropertiesEXT.html
19039 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageDrmFormatModifierPropertiesEXT ), bool>::type>
19040 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ImageDrmFormatModifierPropertiesEXT>::type
19041 Device::getImageDrmFormatModifierPropertiesEXT( Image image, Dispatch const & d ) const
19042 {
19043 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19044 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19045 VULKAN_HPP_ASSERT( d.vkGetImageDrmFormatModifierPropertiesEXT &&
19046 "Function <vkGetImageDrmFormatModifierPropertiesEXT> requires <VK_EXT_image_drm_format_modifier>" );
19047 # endif
19048
19049 ImageDrmFormatModifierPropertiesEXT properties;
19050 Result result = static_cast<Result>( d.vkGetImageDrmFormatModifierPropertiesEXT(
19051 m_device, static_cast<VkImage>( image ), reinterpret_cast<VkImageDrmFormatModifierPropertiesEXT *>( &properties ) ) );
19052 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageDrmFormatModifierPropertiesEXT" );
19053
19054 return detail::createResultValueType( result, std::move( properties ) );
19055 }
19056 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19057
19058 //=== VK_EXT_validation_cache ===
19059
19060 // wrapper function for command vkCreateValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateValidationCacheEXT.html
19061 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateValidationCacheEXT ), bool>::type>
19062 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createValidationCacheEXT( const ValidationCacheCreateInfoEXT * pCreateInfo,
19063 const AllocationCallbacks * pAllocator,
19064 ValidationCacheEXT * pValidationCache,
19065 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19066 {
19067 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19068 return static_cast<Result>( d.vkCreateValidationCacheEXT( static_cast<VkDevice>( m_device ),
19069 reinterpret_cast<const VkValidationCacheCreateInfoEXT *>( pCreateInfo ),
19070 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
19071 reinterpret_cast<VkValidationCacheEXT *>( pValidationCache ) ) );
19072 }
19073
19074 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19075 // wrapper function for command vkCreateValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateValidationCacheEXT.html
19076 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateValidationCacheEXT ), bool>::type>
19077 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ValidationCacheEXT>::type
19078 Device::createValidationCacheEXT( const ValidationCacheCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
19079 {
19080 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19081 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19082 VULKAN_HPP_ASSERT( d.vkCreateValidationCacheEXT && "Function <vkCreateValidationCacheEXT> requires <VK_EXT_validation_cache>" );
19083 # endif
19084
19085 ValidationCacheEXT validationCache;
19086 Result result = static_cast<Result>( d.vkCreateValidationCacheEXT( m_device,
19087 reinterpret_cast<const VkValidationCacheCreateInfoEXT *>( &createInfo ),
19088 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
19089 reinterpret_cast<VkValidationCacheEXT *>( &validationCache ) ) );
19090 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createValidationCacheEXT" );
19091
19092 return detail::createResultValueType( result, std::move( validationCache ) );
19093 }
19094
19095 # ifndef VULKAN_HPP_NO_SMART_HANDLE
19096 // wrapper function for command vkCreateValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateValidationCacheEXT.html
19097 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateValidationCacheEXT ), bool>::type>
19098 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<ValidationCacheEXT, Dispatch>>::type Device::createValidationCacheEXTUnique(
19099 const ValidationCacheCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
19100 {
19101 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19102 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19103 VULKAN_HPP_ASSERT( d.vkCreateValidationCacheEXT && "Function <vkCreateValidationCacheEXT> requires <VK_EXT_validation_cache>" );
19104 # endif
19105
19106 ValidationCacheEXT validationCache;
19107 Result result = static_cast<Result>( d.vkCreateValidationCacheEXT( m_device,
19108 reinterpret_cast<const VkValidationCacheCreateInfoEXT *>( &createInfo ),
19109 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
19110 reinterpret_cast<VkValidationCacheEXT *>( &validationCache ) ) );
19111 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createValidationCacheEXTUnique" );
19112
19113 return detail::createResultValueType(
19114 result, UniqueHandle<ValidationCacheEXT, Dispatch>( validationCache, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
19115 }
19116 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
19117 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19118
19119 // wrapper function for command vkDestroyValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyValidationCacheEXT.html
19120 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyValidationCacheEXT ), bool>::type>
19121 VULKAN_HPP_INLINE void Device::destroyValidationCacheEXT( ValidationCacheEXT validationCache,
19122 const AllocationCallbacks * pAllocator,
19123 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19124 {
19125 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19126 d.vkDestroyValidationCacheEXT(
19127 static_cast<VkDevice>( m_device ), static_cast<VkValidationCacheEXT>( validationCache ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
19128 }
19129
19130 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19131 // wrapper function for command vkDestroyValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyValidationCacheEXT.html
19132 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyValidationCacheEXT ), bool>::type>
19133 VULKAN_HPP_INLINE void Device::destroyValidationCacheEXT( ValidationCacheEXT validationCache,
19134 Optional<const AllocationCallbacks> allocator,
19135 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19136 {
19137 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19138 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19139 VULKAN_HPP_ASSERT( d.vkDestroyValidationCacheEXT && "Function <vkDestroyValidationCacheEXT> requires <VK_EXT_validation_cache>" );
19140 # endif
19141
19142 d.vkDestroyValidationCacheEXT(
19143 m_device, static_cast<VkValidationCacheEXT>( validationCache ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
19144 }
19145 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19146
19147 // wrapper function for command vkDestroyValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyValidationCacheEXT.html
19148 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyValidationCacheEXT ), bool>::type>
19149 VULKAN_HPP_INLINE void
19150 Device::destroy( ValidationCacheEXT validationCache, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19151 {
19152 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19153 d.vkDestroyValidationCacheEXT(
19154 static_cast<VkDevice>( m_device ), static_cast<VkValidationCacheEXT>( validationCache ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
19155 }
19156
19157 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19158 // wrapper function for command vkDestroyValidationCacheEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyValidationCacheEXT.html
19159 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyValidationCacheEXT ), bool>::type>
19160 VULKAN_HPP_INLINE void
19161 Device::destroy( ValidationCacheEXT validationCache, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19162 {
19163 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19164 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19165 VULKAN_HPP_ASSERT( d.vkDestroyValidationCacheEXT && "Function <vkDestroyValidationCacheEXT> requires <VK_EXT_validation_cache>" );
19166 # endif
19167
19168 d.vkDestroyValidationCacheEXT(
19169 m_device, static_cast<VkValidationCacheEXT>( validationCache ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
19170 }
19171 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19172
19173 // wrapper function for command vkMergeValidationCachesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMergeValidationCachesEXT.html
19174 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMergeValidationCachesEXT ), bool>::type>
19175 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::mergeValidationCachesEXT( ValidationCacheEXT dstCache,
19176 uint32_t srcCacheCount,
19177 const ValidationCacheEXT * pSrcCaches,
19178 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19179 {
19180 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19181 return static_cast<Result>( d.vkMergeValidationCachesEXT( static_cast<VkDevice>( m_device ),
19182 static_cast<VkValidationCacheEXT>( dstCache ),
19183 srcCacheCount,
19184 reinterpret_cast<const VkValidationCacheEXT *>( pSrcCaches ) ) );
19185 }
19186
19187 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19188 // wrapper function for command vkMergeValidationCachesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMergeValidationCachesEXT.html
19189 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMergeValidationCachesEXT ), bool>::type>
19190 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
19191 Device::mergeValidationCachesEXT( ValidationCacheEXT dstCache, ArrayProxy<const ValidationCacheEXT> const & srcCaches, Dispatch const & d ) const
19192 {
19193 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19194 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19195 VULKAN_HPP_ASSERT( d.vkMergeValidationCachesEXT && "Function <vkMergeValidationCachesEXT> requires <VK_EXT_validation_cache>" );
19196 # endif
19197
19198 Result result = static_cast<Result>( d.vkMergeValidationCachesEXT(
19199 m_device, static_cast<VkValidationCacheEXT>( dstCache ), srcCaches.size(), reinterpret_cast<const VkValidationCacheEXT *>( srcCaches.data() ) ) );
19200 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mergeValidationCachesEXT" );
19201
19202 return detail::createResultValueType( result );
19203 }
19204 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19205
19206 // wrapper function for command vkGetValidationCacheDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetValidationCacheDataEXT.html
19207 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetValidationCacheDataEXT ), bool>::type>
19208 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
19209 Device::getValidationCacheDataEXT( ValidationCacheEXT validationCache, size_t * pDataSize, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19210 {
19211 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19212 return static_cast<Result>(
19213 d.vkGetValidationCacheDataEXT( static_cast<VkDevice>( m_device ), static_cast<VkValidationCacheEXT>( validationCache ), pDataSize, pData ) );
19214 }
19215
19216 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19217 // wrapper function for command vkGetValidationCacheDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetValidationCacheDataEXT.html
19218 template <typename Uint8_tAllocator,
19219 typename Dispatch,
19220 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
19221 typename std::enable_if<IS_DISPATCHED( vkGetValidationCacheDataEXT ), bool>::type>
19222 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
19223 Device::getValidationCacheDataEXT( ValidationCacheEXT validationCache, Dispatch const & d ) const
19224 {
19225 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19226 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19227 VULKAN_HPP_ASSERT( d.vkGetValidationCacheDataEXT && "Function <vkGetValidationCacheDataEXT> requires <VK_EXT_validation_cache>" );
19228 # endif
19229
19230 std::vector<uint8_t, Uint8_tAllocator> data;
19231 size_t dataSize;
19232 Result result;
19233 do
19234 {
19235 result = static_cast<Result>( d.vkGetValidationCacheDataEXT( m_device, static_cast<VkValidationCacheEXT>( validationCache ), &dataSize, nullptr ) );
19236 if ( ( result == Result::eSuccess ) && dataSize )
19237 {
19238 data.resize( dataSize );
19239 result = static_cast<Result>(
19240 d.vkGetValidationCacheDataEXT( m_device, static_cast<VkValidationCacheEXT>( validationCache ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
19241 }
19242 } while ( result == Result::eIncomplete );
19243 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getValidationCacheDataEXT" );
19244 VULKAN_HPP_ASSERT( dataSize <= data.size() );
19245 if ( dataSize < data.size() )
19246 {
19247 data.resize( dataSize );
19248 }
19249 return detail::createResultValueType( result, std::move( data ) );
19250 }
19251
19252 // wrapper function for command vkGetValidationCacheDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetValidationCacheDataEXT.html
19253 template <typename Uint8_tAllocator,
19254 typename Dispatch,
19255 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
19256 typename std::enable_if<IS_DISPATCHED( vkGetValidationCacheDataEXT ), bool>::type>
19257 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
19258 Device::getValidationCacheDataEXT( ValidationCacheEXT validationCache, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
19259 {
19260 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19261 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19262 VULKAN_HPP_ASSERT( d.vkGetValidationCacheDataEXT && "Function <vkGetValidationCacheDataEXT> requires <VK_EXT_validation_cache>" );
19263 # endif
19264
19265 std::vector<uint8_t, Uint8_tAllocator> data( uint8_tAllocator );
19266 size_t dataSize;
19267 Result result;
19268 do
19269 {
19270 result = static_cast<Result>( d.vkGetValidationCacheDataEXT( m_device, static_cast<VkValidationCacheEXT>( validationCache ), &dataSize, nullptr ) );
19271 if ( ( result == Result::eSuccess ) && dataSize )
19272 {
19273 data.resize( dataSize );
19274 result = static_cast<Result>(
19275 d.vkGetValidationCacheDataEXT( m_device, static_cast<VkValidationCacheEXT>( validationCache ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
19276 }
19277 } while ( result == Result::eIncomplete );
19278 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getValidationCacheDataEXT" );
19279 VULKAN_HPP_ASSERT( dataSize <= data.size() );
19280 if ( dataSize < data.size() )
19281 {
19282 data.resize( dataSize );
19283 }
19284 return detail::createResultValueType( result, std::move( data ) );
19285 }
19286 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19287
19288 //=== VK_NV_shading_rate_image ===
19289
19290 // wrapper function for command vkCmdBindShadingRateImageNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindShadingRateImageNV.html
19291 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindShadingRateImageNV ), bool>::type>
19292 VULKAN_HPP_INLINE void CommandBuffer::bindShadingRateImageNV( ImageView imageView, ImageLayout imageLayout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19293 {
19294 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19295 d.vkCmdBindShadingRateImageNV(
19296 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkImageView>( imageView ), static_cast<VkImageLayout>( imageLayout ) );
19297 }
19298
19299 // wrapper function for command vkCmdSetViewportShadingRatePaletteNV, see
19300 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportShadingRatePaletteNV.html
19301 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportShadingRatePaletteNV ), bool>::type>
19302 VULKAN_HPP_INLINE void CommandBuffer::setViewportShadingRatePaletteNV( uint32_t firstViewport,
19303 uint32_t viewportCount,
19304 const ShadingRatePaletteNV * pShadingRatePalettes,
19305 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19306 {
19307 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19308 d.vkCmdSetViewportShadingRatePaletteNV(
19309 static_cast<VkCommandBuffer>( m_commandBuffer ), firstViewport, viewportCount, reinterpret_cast<const VkShadingRatePaletteNV *>( pShadingRatePalettes ) );
19310 }
19311
19312 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19313 // wrapper function for command vkCmdSetViewportShadingRatePaletteNV, see
19314 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportShadingRatePaletteNV.html
19315 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportShadingRatePaletteNV ), bool>::type>
19316 VULKAN_HPP_INLINE void CommandBuffer::setViewportShadingRatePaletteNV( uint32_t firstViewport,
19317 ArrayProxy<const ShadingRatePaletteNV> const & shadingRatePalettes,
19318 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19319 {
19320 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19321 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19322 VULKAN_HPP_ASSERT( d.vkCmdSetViewportShadingRatePaletteNV && "Function <vkCmdSetViewportShadingRatePaletteNV> requires <VK_NV_shading_rate_image>" );
19323 # endif
19324
19325 d.vkCmdSetViewportShadingRatePaletteNV(
19326 m_commandBuffer, firstViewport, shadingRatePalettes.size(), reinterpret_cast<const VkShadingRatePaletteNV *>( shadingRatePalettes.data() ) );
19327 }
19328 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19329
19330 // wrapper function for command vkCmdSetCoarseSampleOrderNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoarseSampleOrderNV.html
19331 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoarseSampleOrderNV ), bool>::type>
19332 VULKAN_HPP_INLINE void CommandBuffer::setCoarseSampleOrderNV( CoarseSampleOrderTypeNV sampleOrderType,
19333 uint32_t customSampleOrderCount,
19334 const CoarseSampleOrderCustomNV * pCustomSampleOrders,
19335 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19336 {
19337 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19338 d.vkCmdSetCoarseSampleOrderNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19339 static_cast<VkCoarseSampleOrderTypeNV>( sampleOrderType ),
19340 customSampleOrderCount,
19341 reinterpret_cast<const VkCoarseSampleOrderCustomNV *>( pCustomSampleOrders ) );
19342 }
19343
19344 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19345 // wrapper function for command vkCmdSetCoarseSampleOrderNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoarseSampleOrderNV.html
19346 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoarseSampleOrderNV ), bool>::type>
19347 VULKAN_HPP_INLINE void CommandBuffer::setCoarseSampleOrderNV( CoarseSampleOrderTypeNV sampleOrderType,
19348 ArrayProxy<const CoarseSampleOrderCustomNV> const & customSampleOrders,
19349 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19350 {
19351 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19352 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19353 VULKAN_HPP_ASSERT( d.vkCmdSetCoarseSampleOrderNV && "Function <vkCmdSetCoarseSampleOrderNV> requires <VK_NV_shading_rate_image>" );
19354 # endif
19355
19356 d.vkCmdSetCoarseSampleOrderNV( m_commandBuffer,
19357 static_cast<VkCoarseSampleOrderTypeNV>( sampleOrderType ),
19358 customSampleOrders.size(),
19359 reinterpret_cast<const VkCoarseSampleOrderCustomNV *>( customSampleOrders.data() ) );
19360 }
19361 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19362
19363 //=== VK_NV_ray_tracing ===
19364
19365 // wrapper function for command vkCreateAccelerationStructureNV, see
19366 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureNV.html
19367 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructureNV ), bool>::type>
19368 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createAccelerationStructureNV( const AccelerationStructureCreateInfoNV * pCreateInfo,
19369 const AllocationCallbacks * pAllocator,
19370 AccelerationStructureNV * pAccelerationStructure,
19371 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19372 {
19373 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19374 return static_cast<Result>( d.vkCreateAccelerationStructureNV( static_cast<VkDevice>( m_device ),
19375 reinterpret_cast<const VkAccelerationStructureCreateInfoNV *>( pCreateInfo ),
19376 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
19377 reinterpret_cast<VkAccelerationStructureNV *>( pAccelerationStructure ) ) );
19378 }
19379
19380 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19381 // wrapper function for command vkCreateAccelerationStructureNV, see
19382 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureNV.html
19383 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructureNV ), bool>::type>
19384 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<AccelerationStructureNV>::type Device::createAccelerationStructureNV(
19385 const AccelerationStructureCreateInfoNV & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
19386 {
19387 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19388 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19389 VULKAN_HPP_ASSERT( d.vkCreateAccelerationStructureNV && "Function <vkCreateAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
19390 # endif
19391
19392 AccelerationStructureNV accelerationStructure;
19393 Result result = static_cast<Result>( d.vkCreateAccelerationStructureNV( m_device,
19394 reinterpret_cast<const VkAccelerationStructureCreateInfoNV *>( &createInfo ),
19395 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
19396 reinterpret_cast<VkAccelerationStructureNV *>( &accelerationStructure ) ) );
19397 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createAccelerationStructureNV" );
19398
19399 return detail::createResultValueType( result, std::move( accelerationStructure ) );
19400 }
19401
19402 # ifndef VULKAN_HPP_NO_SMART_HANDLE
19403 // wrapper function for command vkCreateAccelerationStructureNV, see
19404 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateAccelerationStructureNV.html
19405 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateAccelerationStructureNV ), bool>::type>
19406 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<AccelerationStructureNV, Dispatch>>::type
19407 Device::createAccelerationStructureNVUnique( const AccelerationStructureCreateInfoNV & createInfo,
19408 Optional<const AllocationCallbacks> allocator,
19409 Dispatch const & d ) const
19410 {
19411 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19412 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19413 VULKAN_HPP_ASSERT( d.vkCreateAccelerationStructureNV && "Function <vkCreateAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
19414 # endif
19415
19416 AccelerationStructureNV accelerationStructure;
19417 Result result = static_cast<Result>( d.vkCreateAccelerationStructureNV( m_device,
19418 reinterpret_cast<const VkAccelerationStructureCreateInfoNV *>( &createInfo ),
19419 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
19420 reinterpret_cast<VkAccelerationStructureNV *>( &accelerationStructure ) ) );
19421 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createAccelerationStructureNVUnique" );
19422
19423 return detail::createResultValueType(
19424 result, UniqueHandle<AccelerationStructureNV, Dispatch>( accelerationStructure, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
19425 }
19426 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
19427 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19428
19429 // wrapper function for command vkDestroyAccelerationStructureNV, see
19430 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureNV.html
19431 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureNV ), bool>::type>
19432 VULKAN_HPP_INLINE void Device::destroyAccelerationStructureNV( AccelerationStructureNV accelerationStructure,
19433 const AllocationCallbacks * pAllocator,
19434 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19435 {
19436 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19437 d.vkDestroyAccelerationStructureNV( static_cast<VkDevice>( m_device ),
19438 static_cast<VkAccelerationStructureNV>( accelerationStructure ),
19439 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
19440 }
19441
19442 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19443 // wrapper function for command vkDestroyAccelerationStructureNV, see
19444 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureNV.html
19445 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureNV ), bool>::type>
19446 VULKAN_HPP_INLINE void Device::destroyAccelerationStructureNV( AccelerationStructureNV accelerationStructure,
19447 Optional<const AllocationCallbacks> allocator,
19448 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19449 {
19450 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19451 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19452 VULKAN_HPP_ASSERT( d.vkDestroyAccelerationStructureNV && "Function <vkDestroyAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
19453 # endif
19454
19455 d.vkDestroyAccelerationStructureNV(
19456 m_device, static_cast<VkAccelerationStructureNV>( accelerationStructure ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
19457 }
19458 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19459
19460 // wrapper function for command vkDestroyAccelerationStructureNV, see
19461 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureNV.html
19462 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureNV ), bool>::type>
19463 VULKAN_HPP_INLINE void
19464 Device::destroy( AccelerationStructureNV accelerationStructure, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19465 {
19466 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19467 d.vkDestroyAccelerationStructureNV( static_cast<VkDevice>( m_device ),
19468 static_cast<VkAccelerationStructureNV>( accelerationStructure ),
19469 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
19470 }
19471
19472 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19473 // wrapper function for command vkDestroyAccelerationStructureNV, see
19474 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyAccelerationStructureNV.html
19475 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyAccelerationStructureNV ), bool>::type>
19476 VULKAN_HPP_INLINE void Device::destroy( AccelerationStructureNV accelerationStructure,
19477 Optional<const AllocationCallbacks> allocator,
19478 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19479 {
19480 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19481 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19482 VULKAN_HPP_ASSERT( d.vkDestroyAccelerationStructureNV && "Function <vkDestroyAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
19483 # endif
19484
19485 d.vkDestroyAccelerationStructureNV(
19486 m_device, static_cast<VkAccelerationStructureNV>( accelerationStructure ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
19487 }
19488 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19489
19490 // wrapper function for command vkGetAccelerationStructureMemoryRequirementsNV, see
19491 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureMemoryRequirementsNV.html
19492 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureMemoryRequirementsNV ), bool>::type>
19493 VULKAN_HPP_INLINE void Device::getAccelerationStructureMemoryRequirementsNV( const AccelerationStructureMemoryRequirementsInfoNV * pInfo,
19494 MemoryRequirements2KHR * pMemoryRequirements,
19495 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19496 {
19497 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19498 d.vkGetAccelerationStructureMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
19499 reinterpret_cast<const VkAccelerationStructureMemoryRequirementsInfoNV *>( pInfo ),
19500 reinterpret_cast<VkMemoryRequirements2KHR *>( pMemoryRequirements ) );
19501 }
19502
19503 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19504 // wrapper function for command vkGetAccelerationStructureMemoryRequirementsNV, see
19505 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureMemoryRequirementsNV.html
19506 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureMemoryRequirementsNV ), bool>::type>
19507 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2KHR Device::getAccelerationStructureMemoryRequirementsNV(
19508 const AccelerationStructureMemoryRequirementsInfoNV & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19509 {
19510 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19511 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19512 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureMemoryRequirementsNV &&
19513 "Function <vkGetAccelerationStructureMemoryRequirementsNV> requires <VK_NV_ray_tracing>" );
19514 # endif
19515
19516 MemoryRequirements2KHR memoryRequirements;
19517 d.vkGetAccelerationStructureMemoryRequirementsNV( m_device,
19518 reinterpret_cast<const VkAccelerationStructureMemoryRequirementsInfoNV *>( &info ),
19519 reinterpret_cast<VkMemoryRequirements2KHR *>( &memoryRequirements ) );
19520
19521 return memoryRequirements;
19522 }
19523
19524 // wrapper function for command vkGetAccelerationStructureMemoryRequirementsNV, see
19525 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureMemoryRequirementsNV.html
19526 template <typename X,
19527 typename Y,
19528 typename... Z,
19529 typename Dispatch,
19530 typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureMemoryRequirementsNV ), bool>::type>
19531 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
19532 Device::getAccelerationStructureMemoryRequirementsNV( const AccelerationStructureMemoryRequirementsInfoNV & info,
19533 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19534 {
19535 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19536 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19537 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureMemoryRequirementsNV &&
19538 "Function <vkGetAccelerationStructureMemoryRequirementsNV> requires <VK_NV_ray_tracing>" );
19539 # endif
19540
19541 StructureChain<X, Y, Z...> structureChain;
19542 MemoryRequirements2KHR & memoryRequirements = structureChain.template get<MemoryRequirements2KHR>();
19543 d.vkGetAccelerationStructureMemoryRequirementsNV( m_device,
19544 reinterpret_cast<const VkAccelerationStructureMemoryRequirementsInfoNV *>( &info ),
19545 reinterpret_cast<VkMemoryRequirements2KHR *>( &memoryRequirements ) );
19546
19547 return structureChain;
19548 }
19549 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19550
19551 // wrapper function for command vkBindAccelerationStructureMemoryNV, see
19552 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindAccelerationStructureMemoryNV.html
19553 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindAccelerationStructureMemoryNV ), bool>::type>
19554 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindAccelerationStructureMemoryNV( uint32_t bindInfoCount,
19555 const BindAccelerationStructureMemoryInfoNV * pBindInfos,
19556 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19557 {
19558 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19559 return static_cast<Result>( d.vkBindAccelerationStructureMemoryNV(
19560 static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<const VkBindAccelerationStructureMemoryInfoNV *>( pBindInfos ) ) );
19561 }
19562
19563 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19564 // wrapper function for command vkBindAccelerationStructureMemoryNV, see
19565 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindAccelerationStructureMemoryNV.html
19566 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindAccelerationStructureMemoryNV ), bool>::type>
19567 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
19568 Device::bindAccelerationStructureMemoryNV( ArrayProxy<const BindAccelerationStructureMemoryInfoNV> const & bindInfos, Dispatch const & d ) const
19569 {
19570 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19571 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19572 VULKAN_HPP_ASSERT( d.vkBindAccelerationStructureMemoryNV && "Function <vkBindAccelerationStructureMemoryNV> requires <VK_NV_ray_tracing>" );
19573 # endif
19574
19575 Result result = static_cast<Result>( d.vkBindAccelerationStructureMemoryNV(
19576 m_device, bindInfos.size(), reinterpret_cast<const VkBindAccelerationStructureMemoryInfoNV *>( bindInfos.data() ) ) );
19577 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindAccelerationStructureMemoryNV" );
19578
19579 return detail::createResultValueType( result );
19580 }
19581 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19582
19583 // wrapper function for command vkCmdBuildAccelerationStructureNV, see
19584 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructureNV.html
19585 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildAccelerationStructureNV ), bool>::type>
19586 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructureNV( const AccelerationStructureInfoNV * pInfo,
19587 Buffer instanceData,
19588 DeviceSize instanceOffset,
19589 Bool32 update,
19590 AccelerationStructureNV dst,
19591 AccelerationStructureNV src,
19592 Buffer scratch,
19593 DeviceSize scratchOffset,
19594 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19595 {
19596 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19597 d.vkCmdBuildAccelerationStructureNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19598 reinterpret_cast<const VkAccelerationStructureInfoNV *>( pInfo ),
19599 static_cast<VkBuffer>( instanceData ),
19600 static_cast<VkDeviceSize>( instanceOffset ),
19601 static_cast<VkBool32>( update ),
19602 static_cast<VkAccelerationStructureNV>( dst ),
19603 static_cast<VkAccelerationStructureNV>( src ),
19604 static_cast<VkBuffer>( scratch ),
19605 static_cast<VkDeviceSize>( scratchOffset ) );
19606 }
19607
19608 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19609 // wrapper function for command vkCmdBuildAccelerationStructureNV, see
19610 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildAccelerationStructureNV.html
19611 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildAccelerationStructureNV ), bool>::type>
19612 VULKAN_HPP_INLINE void CommandBuffer::buildAccelerationStructureNV( const AccelerationStructureInfoNV & info,
19613 Buffer instanceData,
19614 DeviceSize instanceOffset,
19615 Bool32 update,
19616 AccelerationStructureNV dst,
19617 AccelerationStructureNV src,
19618 Buffer scratch,
19619 DeviceSize scratchOffset,
19620 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19621 {
19622 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19623 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19624 VULKAN_HPP_ASSERT( d.vkCmdBuildAccelerationStructureNV && "Function <vkCmdBuildAccelerationStructureNV> requires <VK_NV_ray_tracing>" );
19625 # endif
19626
19627 d.vkCmdBuildAccelerationStructureNV( m_commandBuffer,
19628 reinterpret_cast<const VkAccelerationStructureInfoNV *>( &info ),
19629 static_cast<VkBuffer>( instanceData ),
19630 static_cast<VkDeviceSize>( instanceOffset ),
19631 static_cast<VkBool32>( update ),
19632 static_cast<VkAccelerationStructureNV>( dst ),
19633 static_cast<VkAccelerationStructureNV>( src ),
19634 static_cast<VkBuffer>( scratch ),
19635 static_cast<VkDeviceSize>( scratchOffset ) );
19636 }
19637 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19638
19639 // wrapper function for command vkCmdCopyAccelerationStructureNV, see
19640 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyAccelerationStructureNV.html
19641 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyAccelerationStructureNV ), bool>::type>
19642 VULKAN_HPP_INLINE void CommandBuffer::copyAccelerationStructureNV( AccelerationStructureNV dst,
19643 AccelerationStructureNV src,
19644 CopyAccelerationStructureModeKHR mode,
19645 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19646 {
19647 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19648 d.vkCmdCopyAccelerationStructureNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19649 static_cast<VkAccelerationStructureNV>( dst ),
19650 static_cast<VkAccelerationStructureNV>( src ),
19651 static_cast<VkCopyAccelerationStructureModeKHR>( mode ) );
19652 }
19653
19654 // wrapper function for command vkCmdTraceRaysNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysNV.html
19655 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdTraceRaysNV ), bool>::type>
19656 VULKAN_HPP_INLINE void CommandBuffer::traceRaysNV( Buffer raygenShaderBindingTableBuffer,
19657 DeviceSize raygenShaderBindingOffset,
19658 Buffer missShaderBindingTableBuffer,
19659 DeviceSize missShaderBindingOffset,
19660 DeviceSize missShaderBindingStride,
19661 Buffer hitShaderBindingTableBuffer,
19662 DeviceSize hitShaderBindingOffset,
19663 DeviceSize hitShaderBindingStride,
19664 Buffer callableShaderBindingTableBuffer,
19665 DeviceSize callableShaderBindingOffset,
19666 DeviceSize callableShaderBindingStride,
19667 uint32_t width,
19668 uint32_t height,
19669 uint32_t depth,
19670 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19671 {
19672 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19673 d.vkCmdTraceRaysNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
19674 static_cast<VkBuffer>( raygenShaderBindingTableBuffer ),
19675 static_cast<VkDeviceSize>( raygenShaderBindingOffset ),
19676 static_cast<VkBuffer>( missShaderBindingTableBuffer ),
19677 static_cast<VkDeviceSize>( missShaderBindingOffset ),
19678 static_cast<VkDeviceSize>( missShaderBindingStride ),
19679 static_cast<VkBuffer>( hitShaderBindingTableBuffer ),
19680 static_cast<VkDeviceSize>( hitShaderBindingOffset ),
19681 static_cast<VkDeviceSize>( hitShaderBindingStride ),
19682 static_cast<VkBuffer>( callableShaderBindingTableBuffer ),
19683 static_cast<VkDeviceSize>( callableShaderBindingOffset ),
19684 static_cast<VkDeviceSize>( callableShaderBindingStride ),
19685 width,
19686 height,
19687 depth );
19688 }
19689
19690 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19691 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19692 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19693 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createRayTracingPipelinesNV( PipelineCache pipelineCache,
19694 uint32_t createInfoCount,
19695 const RayTracingPipelineCreateInfoNV * pCreateInfos,
19696 const AllocationCallbacks * pAllocator,
19697 Pipeline * pPipelines,
19698 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19699 {
19700 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19701 return static_cast<Result>( d.vkCreateRayTracingPipelinesNV( static_cast<VkDevice>( m_device ),
19702 static_cast<VkPipelineCache>( pipelineCache ),
19703 createInfoCount,
19704 reinterpret_cast<const VkRayTracingPipelineCreateInfoNV *>( pCreateInfos ),
19705 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
19706 reinterpret_cast<VkPipeline *>( pPipelines ) ) );
19707 }
19708
19709 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19710 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19711 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19712 template <typename PipelineAllocator,
19713 typename Dispatch,
19714 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
19715 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19716 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>>
19717 Device::createRayTracingPipelinesNV( PipelineCache pipelineCache,
19718 ArrayProxy<const RayTracingPipelineCreateInfoNV> const & createInfos,
19719 Optional<const AllocationCallbacks> allocator,
19720 Dispatch const & d ) const
19721 {
19722 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19723 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19724 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
19725 # endif
19726
19727 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size() );
19728 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesNV( m_device,
19729 static_cast<VkPipelineCache>( pipelineCache ),
19730 createInfos.size(),
19731 reinterpret_cast<const VkRayTracingPipelineCreateInfoNV *>( createInfos.data() ),
19732 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
19733 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
19734 detail::resultCheck( result,
19735 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesNV",
19736 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
19737 m_device,
19738 pipelines,
19739 allocator.get(),
19740 d );
19741
19742 return ResultValue<std::vector<Pipeline, PipelineAllocator>>( result, std::move( pipelines ) );
19743 }
19744
19745 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19746 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19747 template <typename PipelineAllocator,
19748 typename Dispatch,
19749 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
19750 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19751 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>>
19752 Device::createRayTracingPipelinesNV( PipelineCache pipelineCache,
19753 ArrayProxy<const RayTracingPipelineCreateInfoNV> const & createInfos,
19754 Optional<const AllocationCallbacks> allocator,
19755 PipelineAllocator const & pipelineAllocator,
19756 Dispatch const & d ) const
19757 {
19758 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19759 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19760 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
19761 # endif
19762
19763 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size(), {}, pipelineAllocator );
19764 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesNV( m_device,
19765 static_cast<VkPipelineCache>( pipelineCache ),
19766 createInfos.size(),
19767 reinterpret_cast<const VkRayTracingPipelineCreateInfoNV *>( createInfos.data() ),
19768 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
19769 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
19770 detail::resultCheck( result,
19771 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesNV",
19772 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
19773 m_device,
19774 pipelines,
19775 allocator.get(),
19776 d );
19777
19778 return ResultValue<std::vector<Pipeline, PipelineAllocator>>( result, std::move( pipelines ) );
19779 }
19780
19781 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19782 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19783 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19784 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<Pipeline> Device::createRayTracingPipelineNV( PipelineCache pipelineCache,
19785 const RayTracingPipelineCreateInfoNV & createInfo,
19786 Optional<const AllocationCallbacks> allocator,
19787 Dispatch const & d ) const
19788 {
19789 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19790 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19791 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
19792 # endif
19793
19794 Pipeline pipeline;
19795 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesNV( m_device,
19796 static_cast<VkPipelineCache>( pipelineCache ),
19797 1,
19798 reinterpret_cast<const VkRayTracingPipelineCreateInfoNV *>( &createInfo ),
19799 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
19800 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
19801 detail::resultCheck(
19802 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelineNV", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
19803
19804 return ResultValue<Pipeline>( result, std::move( pipeline ) );
19805 }
19806
19807 # ifndef VULKAN_HPP_NO_SMART_HANDLE
19808 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19809 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19810 template <typename Dispatch,
19811 typename PipelineAllocator,
19812 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
19813 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19814 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
19815 Device::createRayTracingPipelinesNVUnique( PipelineCache pipelineCache,
19816 ArrayProxy<const RayTracingPipelineCreateInfoNV> const & createInfos,
19817 Optional<const AllocationCallbacks> allocator,
19818 Dispatch const & d ) const
19819 {
19820 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19821 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19822 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
19823 # endif
19824
19825 std::vector<Pipeline> pipelines( createInfos.size() );
19826 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesNV( m_device,
19827 static_cast<VkPipelineCache>( pipelineCache ),
19828 createInfos.size(),
19829 reinterpret_cast<const VkRayTracingPipelineCreateInfoNV *>( createInfos.data() ),
19830 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
19831 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
19832 detail::resultCheck( result,
19833 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesNVUnique",
19834 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
19835 m_device,
19836 pipelines,
19837 allocator.get(),
19838 d );
19839 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines;
19840 uniquePipelines.reserve( createInfos.size() );
19841 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
19842 for ( auto const & pipeline : pipelines )
19843 {
19844 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
19845 }
19846 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
19847 }
19848
19849 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19850 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19851 template <typename Dispatch,
19852 typename PipelineAllocator,
19853 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
19854 typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19855 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
19856 Device::createRayTracingPipelinesNVUnique( PipelineCache pipelineCache,
19857 ArrayProxy<const RayTracingPipelineCreateInfoNV> const & createInfos,
19858 Optional<const AllocationCallbacks> allocator,
19859 PipelineAllocator const & pipelineAllocator,
19860 Dispatch const & d ) const
19861 {
19862 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19863 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19864 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
19865 # endif
19866
19867 std::vector<Pipeline> pipelines( createInfos.size() );
19868 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesNV( m_device,
19869 static_cast<VkPipelineCache>( pipelineCache ),
19870 createInfos.size(),
19871 reinterpret_cast<const VkRayTracingPipelineCreateInfoNV *>( createInfos.data() ),
19872 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
19873 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
19874 detail::resultCheck( result,
19875 VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelinesNVUnique",
19876 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
19877 m_device,
19878 pipelines,
19879 allocator.get(),
19880 d );
19881 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines( pipelineAllocator );
19882 uniquePipelines.reserve( createInfos.size() );
19883 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
19884 for ( auto const & pipeline : pipelines )
19885 {
19886 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
19887 }
19888 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
19889 }
19890
19891 // wrapper function for command vkCreateRayTracingPipelinesNV, see
19892 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateRayTracingPipelinesNV.html
19893 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateRayTracingPipelinesNV ), bool>::type>
19894 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<Pipeline, Dispatch>> Device::createRayTracingPipelineNVUnique(
19895 PipelineCache pipelineCache, const RayTracingPipelineCreateInfoNV & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
19896 {
19897 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19898 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19899 VULKAN_HPP_ASSERT( d.vkCreateRayTracingPipelinesNV && "Function <vkCreateRayTracingPipelinesNV> requires <VK_NV_ray_tracing>" );
19900 # endif
19901
19902 Pipeline pipeline;
19903 Result result = static_cast<Result>( d.vkCreateRayTracingPipelinesNV( m_device,
19904 static_cast<VkPipelineCache>( pipelineCache ),
19905 1,
19906 reinterpret_cast<const VkRayTracingPipelineCreateInfoNV *>( &createInfo ),
19907 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
19908 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
19909 detail::resultCheck(
19910 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createRayTracingPipelineNVUnique", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
19911
19912 return ResultValue<UniqueHandle<Pipeline, Dispatch>>(
19913 result, UniqueHandle<Pipeline, Dispatch>( pipeline, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
19914 }
19915 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
19916 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19917
19918 // wrapper function for command vkGetRayTracingShaderGroupHandlesNV, see
19919 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesNV.html
19920 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupHandlesNV ), bool>::type>
19921 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getRayTracingShaderGroupHandlesNV(
19922 Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19923 {
19924 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19925 return static_cast<Result>( d.vkGetRayTracingShaderGroupHandlesNV(
19926 static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, dataSize, pData ) );
19927 }
19928
19929 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19930 // wrapper function for command vkGetRayTracingShaderGroupHandlesNV, see
19931 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesNV.html
19932 template <typename DataType,
19933 typename DataTypeAllocator,
19934 typename Dispatch,
19935 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
19936 typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupHandlesNV ), bool>::type>
19937 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType, DataTypeAllocator>>::type
19938 Device::getRayTracingShaderGroupHandlesNV( Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, size_t dataSize, Dispatch const & d ) const
19939 {
19940 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19941 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19942 VULKAN_HPP_ASSERT( d.vkGetRayTracingShaderGroupHandlesNV &&
19943 "Function <vkGetRayTracingShaderGroupHandlesNV> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
19944 # endif
19945
19946 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
19947 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
19948 Result result = static_cast<Result>( d.vkGetRayTracingShaderGroupHandlesNV(
19949 m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, data.size() * sizeof( DataType ), reinterpret_cast<void *>( data.data() ) ) );
19950 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandlesNV" );
19951
19952 return detail::createResultValueType( result, std::move( data ) );
19953 }
19954
19955 // wrapper function for command vkGetRayTracingShaderGroupHandlesNV, see
19956 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRayTracingShaderGroupHandlesNV.html
19957 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRayTracingShaderGroupHandlesNV ), bool>::type>
19958 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
19959 Device::getRayTracingShaderGroupHandleNV( Pipeline pipeline, uint32_t firstGroup, uint32_t groupCount, Dispatch const & d ) const
19960 {
19961 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19962 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
19963 VULKAN_HPP_ASSERT( d.vkGetRayTracingShaderGroupHandlesNV &&
19964 "Function <vkGetRayTracingShaderGroupHandlesNV> requires <VK_KHR_ray_tracing_pipeline> or <VK_NV_ray_tracing>" );
19965 # endif
19966
19967 DataType data;
19968 Result result = static_cast<Result>( d.vkGetRayTracingShaderGroupHandlesNV(
19969 m_device, static_cast<VkPipeline>( pipeline ), firstGroup, groupCount, sizeof( DataType ), reinterpret_cast<void *>( &data ) ) );
19970 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getRayTracingShaderGroupHandleNV" );
19971
19972 return detail::createResultValueType( result, std::move( data ) );
19973 }
19974 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
19975
19976 // wrapper function for command vkGetAccelerationStructureHandleNV, see
19977 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureHandleNV.html
19978 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureHandleNV ), bool>::type>
19979 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getAccelerationStructureHandleNV( AccelerationStructureNV accelerationStructure,
19980 size_t dataSize,
19981 void * pData,
19982 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
19983 {
19984 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
19985 return static_cast<Result>( d.vkGetAccelerationStructureHandleNV(
19986 static_cast<VkDevice>( m_device ), static_cast<VkAccelerationStructureNV>( accelerationStructure ), dataSize, pData ) );
19987 }
19988
19989 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
19990 // wrapper function for command vkGetAccelerationStructureHandleNV, see
19991 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureHandleNV.html
19992 template <typename DataType,
19993 typename DataTypeAllocator,
19994 typename Dispatch,
19995 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
19996 typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureHandleNV ), bool>::type>
19997 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType, DataTypeAllocator>>::type
19998 Device::getAccelerationStructureHandleNV( AccelerationStructureNV accelerationStructure, size_t dataSize, Dispatch const & d ) const
19999 {
20000 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20001 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20002 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureHandleNV && "Function <vkGetAccelerationStructureHandleNV> requires <VK_NV_ray_tracing>" );
20003 # endif
20004
20005 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
20006 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
20007 Result result = static_cast<Result>( d.vkGetAccelerationStructureHandleNV(
20008 m_device, static_cast<VkAccelerationStructureNV>( accelerationStructure ), data.size() * sizeof( DataType ), reinterpret_cast<void *>( data.data() ) ) );
20009 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureHandleNV" );
20010
20011 return detail::createResultValueType( result, std::move( data ) );
20012 }
20013
20014 // wrapper function for command vkGetAccelerationStructureHandleNV, see
20015 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureHandleNV.html
20016 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureHandleNV ), bool>::type>
20017 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
20018 Device::getAccelerationStructureHandleNV( AccelerationStructureNV accelerationStructure, Dispatch const & d ) const
20019 {
20020 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20021 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20022 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureHandleNV && "Function <vkGetAccelerationStructureHandleNV> requires <VK_NV_ray_tracing>" );
20023 # endif
20024
20025 DataType data;
20026 Result result = static_cast<Result>( d.vkGetAccelerationStructureHandleNV(
20027 m_device, static_cast<VkAccelerationStructureNV>( accelerationStructure ), sizeof( DataType ), reinterpret_cast<void *>( &data ) ) );
20028 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureHandleNV" );
20029
20030 return detail::createResultValueType( result, std::move( data ) );
20031 }
20032 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20033
20034 // wrapper function for command vkCmdWriteAccelerationStructuresPropertiesNV, see
20035 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteAccelerationStructuresPropertiesNV.html
20036 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteAccelerationStructuresPropertiesNV ), bool>::type>
20037 VULKAN_HPP_INLINE void CommandBuffer::writeAccelerationStructuresPropertiesNV( uint32_t accelerationStructureCount,
20038 const AccelerationStructureNV * pAccelerationStructures,
20039 QueryType queryType,
20040 QueryPool queryPool,
20041 uint32_t firstQuery,
20042 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20043 {
20044 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20045 d.vkCmdWriteAccelerationStructuresPropertiesNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
20046 accelerationStructureCount,
20047 reinterpret_cast<const VkAccelerationStructureNV *>( pAccelerationStructures ),
20048 static_cast<VkQueryType>( queryType ),
20049 static_cast<VkQueryPool>( queryPool ),
20050 firstQuery );
20051 }
20052
20053 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20054 // wrapper function for command vkCmdWriteAccelerationStructuresPropertiesNV, see
20055 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteAccelerationStructuresPropertiesNV.html
20056 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteAccelerationStructuresPropertiesNV ), bool>::type>
20057 VULKAN_HPP_INLINE void CommandBuffer::writeAccelerationStructuresPropertiesNV( ArrayProxy<const AccelerationStructureNV> const & accelerationStructures,
20058 QueryType queryType,
20059 QueryPool queryPool,
20060 uint32_t firstQuery,
20061 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20062 {
20063 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20064 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20065 VULKAN_HPP_ASSERT( d.vkCmdWriteAccelerationStructuresPropertiesNV &&
20066 "Function <vkCmdWriteAccelerationStructuresPropertiesNV> requires <VK_NV_ray_tracing>" );
20067 # endif
20068
20069 d.vkCmdWriteAccelerationStructuresPropertiesNV( m_commandBuffer,
20070 accelerationStructures.size(),
20071 reinterpret_cast<const VkAccelerationStructureNV *>( accelerationStructures.data() ),
20072 static_cast<VkQueryType>( queryType ),
20073 static_cast<VkQueryPool>( queryPool ),
20074 firstQuery );
20075 }
20076 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20077
20078 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
20079 // wrapper function for command vkCompileDeferredNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCompileDeferredNV.html
20080 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCompileDeferredNV ), bool>::type>
20081 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::compileDeferredNV( Pipeline pipeline, uint32_t shader, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20082 {
20083 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20084 return static_cast<Result>( d.vkCompileDeferredNV( static_cast<VkDevice>( m_device ), static_cast<VkPipeline>( pipeline ), shader ) );
20085 }
20086 #else
20087 // wrapper function for command vkCompileDeferredNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCompileDeferredNV.html
20088 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCompileDeferredNV ), bool>::type>
20089 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
20090 Device::compileDeferredNV( Pipeline pipeline, uint32_t shader, Dispatch const & d ) const
20091 {
20092 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20093 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20094 VULKAN_HPP_ASSERT( d.vkCompileDeferredNV && "Function <vkCompileDeferredNV> requires <VK_NV_ray_tracing>" );
20095 # endif
20096
20097 Result result = static_cast<Result>( d.vkCompileDeferredNV( m_device, static_cast<VkPipeline>( pipeline ), shader ) );
20098 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::compileDeferredNV" );
20099
20100 return detail::createResultValueType( result );
20101 }
20102 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
20103
20104 //=== VK_KHR_maintenance3 ===
20105
20106 // wrapper function for command vkGetDescriptorSetLayoutSupportKHR, see
20107 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupportKHR.html
20108 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSupportKHR ), bool>::type>
20109 VULKAN_HPP_INLINE void Device::getDescriptorSetLayoutSupportKHR( const DescriptorSetLayoutCreateInfo * pCreateInfo,
20110 DescriptorSetLayoutSupport * pSupport,
20111 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20112 {
20113 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20114 d.vkGetDescriptorSetLayoutSupportKHR( static_cast<VkDevice>( m_device ),
20115 reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( pCreateInfo ),
20116 reinterpret_cast<VkDescriptorSetLayoutSupport *>( pSupport ) );
20117 }
20118
20119 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20120 // wrapper function for command vkGetDescriptorSetLayoutSupportKHR, see
20121 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupportKHR.html
20122 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSupportKHR ), bool>::type>
20123 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DescriptorSetLayoutSupport Device::getDescriptorSetLayoutSupportKHR( const DescriptorSetLayoutCreateInfo & createInfo,
20124 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20125 {
20126 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20127 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20128 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutSupportKHR &&
20129 "Function <vkGetDescriptorSetLayoutSupportKHR> requires <VK_KHR_maintenance3> or <VK_VERSION_1_1>" );
20130 # endif
20131
20132 DescriptorSetLayoutSupport support;
20133 d.vkGetDescriptorSetLayoutSupportKHR(
20134 m_device, reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( &createInfo ), reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
20135
20136 return support;
20137 }
20138
20139 // wrapper function for command vkGetDescriptorSetLayoutSupportKHR, see
20140 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSupportKHR.html
20141 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSupportKHR ), bool>::type>
20142 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getDescriptorSetLayoutSupportKHR( const DescriptorSetLayoutCreateInfo & createInfo,
20143 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20144 {
20145 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20146 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20147 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutSupportKHR &&
20148 "Function <vkGetDescriptorSetLayoutSupportKHR> requires <VK_KHR_maintenance3> or <VK_VERSION_1_1>" );
20149 # endif
20150
20151 StructureChain<X, Y, Z...> structureChain;
20152 DescriptorSetLayoutSupport & support = structureChain.template get<DescriptorSetLayoutSupport>();
20153 d.vkGetDescriptorSetLayoutSupportKHR(
20154 m_device, reinterpret_cast<const VkDescriptorSetLayoutCreateInfo *>( &createInfo ), reinterpret_cast<VkDescriptorSetLayoutSupport *>( &support ) );
20155
20156 return structureChain;
20157 }
20158 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20159
20160 //=== VK_KHR_draw_indirect_count ===
20161
20162 // wrapper function for command vkCmdDrawIndirectCountKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndirectCountKHR.html
20163 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndirectCountKHR ), bool>::type>
20164 VULKAN_HPP_INLINE void CommandBuffer::drawIndirectCountKHR( Buffer buffer,
20165 DeviceSize offset,
20166 Buffer countBuffer,
20167 DeviceSize countBufferOffset,
20168 uint32_t maxDrawCount,
20169 uint32_t stride,
20170 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20171 {
20172 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20173 d.vkCmdDrawIndirectCountKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
20174 static_cast<VkBuffer>( buffer ),
20175 static_cast<VkDeviceSize>( offset ),
20176 static_cast<VkBuffer>( countBuffer ),
20177 static_cast<VkDeviceSize>( countBufferOffset ),
20178 maxDrawCount,
20179 stride );
20180 }
20181
20182 // wrapper function for command vkCmdDrawIndexedIndirectCountKHR, see
20183 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawIndexedIndirectCountKHR.html
20184 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawIndexedIndirectCountKHR ), bool>::type>
20185 VULKAN_HPP_INLINE void CommandBuffer::drawIndexedIndirectCountKHR( Buffer buffer,
20186 DeviceSize offset,
20187 Buffer countBuffer,
20188 DeviceSize countBufferOffset,
20189 uint32_t maxDrawCount,
20190 uint32_t stride,
20191 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20192 {
20193 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20194 d.vkCmdDrawIndexedIndirectCountKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
20195 static_cast<VkBuffer>( buffer ),
20196 static_cast<VkDeviceSize>( offset ),
20197 static_cast<VkBuffer>( countBuffer ),
20198 static_cast<VkDeviceSize>( countBufferOffset ),
20199 maxDrawCount,
20200 stride );
20201 }
20202
20203 //=== VK_EXT_external_memory_host ===
20204
20205 // wrapper function for command vkGetMemoryHostPointerPropertiesEXT, see
20206 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryHostPointerPropertiesEXT.html
20207 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryHostPointerPropertiesEXT ), bool>::type>
20208 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryHostPointerPropertiesEXT( ExternalMemoryHandleTypeFlagBits handleType,
20209 const void * pHostPointer,
20210 MemoryHostPointerPropertiesEXT * pMemoryHostPointerProperties,
20211 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20212 {
20213 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20214 return static_cast<Result>( d.vkGetMemoryHostPointerPropertiesEXT( static_cast<VkDevice>( m_device ),
20215 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
20216 pHostPointer,
20217 reinterpret_cast<VkMemoryHostPointerPropertiesEXT *>( pMemoryHostPointerProperties ) ) );
20218 }
20219
20220 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20221 // wrapper function for command vkGetMemoryHostPointerPropertiesEXT, see
20222 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryHostPointerPropertiesEXT.html
20223 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryHostPointerPropertiesEXT ), bool>::type>
20224 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryHostPointerPropertiesEXT>::type
20225 Device::getMemoryHostPointerPropertiesEXT( ExternalMemoryHandleTypeFlagBits handleType, const void * pHostPointer, Dispatch const & d ) const
20226 {
20227 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20228 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20229 VULKAN_HPP_ASSERT( d.vkGetMemoryHostPointerPropertiesEXT && "Function <vkGetMemoryHostPointerPropertiesEXT> requires <VK_EXT_external_memory_host>" );
20230 # endif
20231
20232 MemoryHostPointerPropertiesEXT memoryHostPointerProperties;
20233 Result result =
20234 static_cast<Result>( d.vkGetMemoryHostPointerPropertiesEXT( m_device,
20235 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
20236 pHostPointer,
20237 reinterpret_cast<VkMemoryHostPointerPropertiesEXT *>( &memoryHostPointerProperties ) ) );
20238 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryHostPointerPropertiesEXT" );
20239
20240 return detail::createResultValueType( result, std::move( memoryHostPointerProperties ) );
20241 }
20242 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20243
20244 //=== VK_AMD_buffer_marker ===
20245
20246 // wrapper function for command vkCmdWriteBufferMarkerAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteBufferMarkerAMD.html
20247 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteBufferMarkerAMD ), bool>::type>
20248 VULKAN_HPP_INLINE void CommandBuffer::writeBufferMarkerAMD(
20249 PipelineStageFlagBits pipelineStage, Buffer dstBuffer, DeviceSize dstOffset, uint32_t marker, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20250 {
20251 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20252 d.vkCmdWriteBufferMarkerAMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
20253 static_cast<VkPipelineStageFlagBits>( pipelineStage ),
20254 static_cast<VkBuffer>( dstBuffer ),
20255 static_cast<VkDeviceSize>( dstOffset ),
20256 marker );
20257 }
20258
20259 // wrapper function for command vkCmdWriteBufferMarker2AMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteBufferMarker2AMD.html
20260 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteBufferMarker2AMD ), bool>::type>
20261 VULKAN_HPP_INLINE void CommandBuffer::writeBufferMarker2AMD(
20262 PipelineStageFlags2 stage, Buffer dstBuffer, DeviceSize dstOffset, uint32_t marker, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20263 {
20264 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20265 d.vkCmdWriteBufferMarker2AMD( static_cast<VkCommandBuffer>( m_commandBuffer ),
20266 static_cast<VkPipelineStageFlags2>( stage ),
20267 static_cast<VkBuffer>( dstBuffer ),
20268 static_cast<VkDeviceSize>( dstOffset ),
20269 marker );
20270 }
20271
20272 //=== VK_EXT_calibrated_timestamps ===
20273
20274 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsEXT, see
20275 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsEXT.html
20276 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsEXT ), bool>::type>
20277 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCalibrateableTimeDomainsEXT( uint32_t * pTimeDomainCount,
20278 TimeDomainKHR * pTimeDomains,
20279 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20280 {
20281 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20282 return static_cast<Result>( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT(
20283 static_cast<VkPhysicalDevice>( m_physicalDevice ), pTimeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( pTimeDomains ) ) );
20284 }
20285
20286 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20287 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsEXT, see
20288 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsEXT.html
20289 template <typename TimeDomainKHRAllocator,
20290 typename Dispatch,
20291 typename std::enable_if<std::is_same<typename TimeDomainKHRAllocator::value_type, TimeDomainKHR>::value, int>::type,
20292 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsEXT ), bool>::type>
20293 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TimeDomainKHR, TimeDomainKHRAllocator>>::type
20294 PhysicalDevice::getCalibrateableTimeDomainsEXT( Dispatch const & d ) const
20295 {
20296 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20297 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20298 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT &&
20299 "Function <vkGetPhysicalDeviceCalibrateableTimeDomainsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
20300 # endif
20301
20302 std::vector<TimeDomainKHR, TimeDomainKHRAllocator> timeDomains;
20303 uint32_t timeDomainCount;
20304 Result result;
20305 do
20306 {
20307 result = static_cast<Result>( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( m_physicalDevice, &timeDomainCount, nullptr ) );
20308 if ( ( result == Result::eSuccess ) && timeDomainCount )
20309 {
20310 timeDomains.resize( timeDomainCount );
20311 result = static_cast<Result>(
20312 d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( m_physicalDevice, &timeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( timeDomains.data() ) ) );
20313 }
20314 } while ( result == Result::eIncomplete );
20315 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsEXT" );
20316 VULKAN_HPP_ASSERT( timeDomainCount <= timeDomains.size() );
20317 if ( timeDomainCount < timeDomains.size() )
20318 {
20319 timeDomains.resize( timeDomainCount );
20320 }
20321 return detail::createResultValueType( result, std::move( timeDomains ) );
20322 }
20323
20324 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsEXT, see
20325 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsEXT.html
20326 template <typename TimeDomainKHRAllocator,
20327 typename Dispatch,
20328 typename std::enable_if<std::is_same<typename TimeDomainKHRAllocator::value_type, TimeDomainKHR>::value, int>::type,
20329 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsEXT ), bool>::type>
20330 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TimeDomainKHR, TimeDomainKHRAllocator>>::type
20331 PhysicalDevice::getCalibrateableTimeDomainsEXT( TimeDomainKHRAllocator const & timeDomainKHRAllocator, Dispatch const & d ) const
20332 {
20333 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20334 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20335 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT &&
20336 "Function <vkGetPhysicalDeviceCalibrateableTimeDomainsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
20337 # endif
20338
20339 std::vector<TimeDomainKHR, TimeDomainKHRAllocator> timeDomains( timeDomainKHRAllocator );
20340 uint32_t timeDomainCount;
20341 Result result;
20342 do
20343 {
20344 result = static_cast<Result>( d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( m_physicalDevice, &timeDomainCount, nullptr ) );
20345 if ( ( result == Result::eSuccess ) && timeDomainCount )
20346 {
20347 timeDomains.resize( timeDomainCount );
20348 result = static_cast<Result>(
20349 d.vkGetPhysicalDeviceCalibrateableTimeDomainsEXT( m_physicalDevice, &timeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( timeDomains.data() ) ) );
20350 }
20351 } while ( result == Result::eIncomplete );
20352 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsEXT" );
20353 VULKAN_HPP_ASSERT( timeDomainCount <= timeDomains.size() );
20354 if ( timeDomainCount < timeDomains.size() )
20355 {
20356 timeDomains.resize( timeDomainCount );
20357 }
20358 return detail::createResultValueType( result, std::move( timeDomains ) );
20359 }
20360 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20361
20362 // wrapper function for command vkGetCalibratedTimestampsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsEXT.html
20363 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsEXT ), bool>::type>
20364 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getCalibratedTimestampsEXT( uint32_t timestampCount,
20365 const CalibratedTimestampInfoKHR * pTimestampInfos,
20366 uint64_t * pTimestamps,
20367 uint64_t * pMaxDeviation,
20368 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20369 {
20370 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20371 return static_cast<Result>( d.vkGetCalibratedTimestampsEXT( static_cast<VkDevice>( m_device ),
20372 timestampCount,
20373 reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( pTimestampInfos ),
20374 pTimestamps,
20375 pMaxDeviation ) );
20376 }
20377
20378 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20379 // wrapper function for command vkGetCalibratedTimestampsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsEXT.html
20380 template <typename Uint64_tAllocator,
20381 typename Dispatch,
20382 typename std::enable_if<std::is_same<typename Uint64_tAllocator::value_type, uint64_t>::value, int>::type,
20383 typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsEXT ), bool>::type>
20384 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t>>::type
20385 Device::getCalibratedTimestampsEXT( ArrayProxy<const CalibratedTimestampInfoKHR> const & timestampInfos, Dispatch const & d ) const
20386 {
20387 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20388 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20389 VULKAN_HPP_ASSERT( d.vkGetCalibratedTimestampsEXT &&
20390 "Function <vkGetCalibratedTimestampsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
20391 # endif
20392
20393 std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t> data_(
20394 std::piecewise_construct, std::forward_as_tuple( timestampInfos.size() ), std::forward_as_tuple( 0 ) );
20395 std::vector<uint64_t, Uint64_tAllocator> & timestamps = data_.first;
20396 uint64_t & maxDeviation = data_.second;
20397 Result result = static_cast<Result>( d.vkGetCalibratedTimestampsEXT(
20398 m_device, timestampInfos.size(), reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( timestampInfos.data() ), timestamps.data(), &maxDeviation ) );
20399 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" );
20400
20401 return detail::createResultValueType( result, std::move( data_ ) );
20402 }
20403
20404 // wrapper function for command vkGetCalibratedTimestampsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsEXT.html
20405 template <typename Uint64_tAllocator,
20406 typename Dispatch,
20407 typename std::enable_if<std::is_same<typename Uint64_tAllocator::value_type, uint64_t>::value, int>::type,
20408 typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsEXT ), bool>::type>
20409 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t>>::type
20410 Device::getCalibratedTimestampsEXT( ArrayProxy<const CalibratedTimestampInfoKHR> const & timestampInfos,
20411 Uint64_tAllocator const & uint64_tAllocator,
20412 Dispatch const & d ) const
20413 {
20414 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20415 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20416 VULKAN_HPP_ASSERT( d.vkGetCalibratedTimestampsEXT &&
20417 "Function <vkGetCalibratedTimestampsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
20418 # endif
20419
20420 std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t> data_(
20421 std::piecewise_construct, std::forward_as_tuple( timestampInfos.size(), uint64_tAllocator ), std::forward_as_tuple( 0 ) );
20422 std::vector<uint64_t, Uint64_tAllocator> & timestamps = data_.first;
20423 uint64_t & maxDeviation = data_.second;
20424 Result result = static_cast<Result>( d.vkGetCalibratedTimestampsEXT(
20425 m_device, timestampInfos.size(), reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( timestampInfos.data() ), timestamps.data(), &maxDeviation ) );
20426 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsEXT" );
20427
20428 return detail::createResultValueType( result, std::move( data_ ) );
20429 }
20430
20431 // wrapper function for command vkGetCalibratedTimestampsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsEXT.html
20432 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsEXT ), bool>::type>
20433 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<uint64_t, uint64_t>>::type
20434 Device::getCalibratedTimestampEXT( const CalibratedTimestampInfoKHR & timestampInfo, Dispatch const & d ) const
20435 {
20436 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20437 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20438 VULKAN_HPP_ASSERT( d.vkGetCalibratedTimestampsEXT &&
20439 "Function <vkGetCalibratedTimestampsEXT> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
20440 # endif
20441
20442 std::pair<uint64_t, uint64_t> data_;
20443 uint64_t & timestamp = data_.first;
20444 uint64_t & maxDeviation = data_.second;
20445 Result result = static_cast<Result>(
20446 d.vkGetCalibratedTimestampsEXT( m_device, 1, reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( &timestampInfo ), &timestamp, &maxDeviation ) );
20447 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampEXT" );
20448
20449 return detail::createResultValueType( result, std::move( data_ ) );
20450 }
20451 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20452
20453 //=== VK_NV_mesh_shader ===
20454
20455 // wrapper function for command vkCmdDrawMeshTasksNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksNV.html
20456 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksNV ), bool>::type>
20457 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksNV( uint32_t taskCount, uint32_t firstTask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20458 {
20459 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20460 d.vkCmdDrawMeshTasksNV( static_cast<VkCommandBuffer>( m_commandBuffer ), taskCount, firstTask );
20461 }
20462
20463 // wrapper function for command vkCmdDrawMeshTasksIndirectNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectNV.html
20464 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksIndirectNV ), bool>::type>
20465 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectNV(
20466 Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20467 {
20468 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20469 d.vkCmdDrawMeshTasksIndirectNV(
20470 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ), drawCount, stride );
20471 }
20472
20473 // wrapper function for command vkCmdDrawMeshTasksIndirectCountNV, see
20474 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectCountNV.html
20475 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksIndirectCountNV ), bool>::type>
20476 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectCountNV( Buffer buffer,
20477 DeviceSize offset,
20478 Buffer countBuffer,
20479 DeviceSize countBufferOffset,
20480 uint32_t maxDrawCount,
20481 uint32_t stride,
20482 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20483 {
20484 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20485 d.vkCmdDrawMeshTasksIndirectCountNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
20486 static_cast<VkBuffer>( buffer ),
20487 static_cast<VkDeviceSize>( offset ),
20488 static_cast<VkBuffer>( countBuffer ),
20489 static_cast<VkDeviceSize>( countBufferOffset ),
20490 maxDrawCount,
20491 stride );
20492 }
20493
20494 //=== VK_NV_scissor_exclusive ===
20495
20496 // wrapper function for command vkCmdSetExclusiveScissorEnableNV, see
20497 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExclusiveScissorEnableNV.html
20498 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetExclusiveScissorEnableNV ), bool>::type>
20499 VULKAN_HPP_INLINE void CommandBuffer::setExclusiveScissorEnableNV( uint32_t firstExclusiveScissor,
20500 uint32_t exclusiveScissorCount,
20501 const Bool32 * pExclusiveScissorEnables,
20502 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20503 {
20504 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20505 d.vkCmdSetExclusiveScissorEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
20506 firstExclusiveScissor,
20507 exclusiveScissorCount,
20508 reinterpret_cast<const VkBool32 *>( pExclusiveScissorEnables ) );
20509 }
20510
20511 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20512 // wrapper function for command vkCmdSetExclusiveScissorEnableNV, see
20513 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExclusiveScissorEnableNV.html
20514 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetExclusiveScissorEnableNV ), bool>::type>
20515 VULKAN_HPP_INLINE void CommandBuffer::setExclusiveScissorEnableNV( uint32_t firstExclusiveScissor,
20516 ArrayProxy<const Bool32> const & exclusiveScissorEnables,
20517 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20518 {
20519 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20520 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20521 VULKAN_HPP_ASSERT( d.vkCmdSetExclusiveScissorEnableNV && "Function <vkCmdSetExclusiveScissorEnableNV> requires <VK_NV_scissor_exclusive>" );
20522 # endif
20523
20524 d.vkCmdSetExclusiveScissorEnableNV(
20525 m_commandBuffer, firstExclusiveScissor, exclusiveScissorEnables.size(), reinterpret_cast<const VkBool32 *>( exclusiveScissorEnables.data() ) );
20526 }
20527 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20528
20529 // wrapper function for command vkCmdSetExclusiveScissorNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExclusiveScissorNV.html
20530 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetExclusiveScissorNV ), bool>::type>
20531 VULKAN_HPP_INLINE void CommandBuffer::setExclusiveScissorNV( uint32_t firstExclusiveScissor,
20532 uint32_t exclusiveScissorCount,
20533 const Rect2D * pExclusiveScissors,
20534 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20535 {
20536 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20537 d.vkCmdSetExclusiveScissorNV(
20538 static_cast<VkCommandBuffer>( m_commandBuffer ), firstExclusiveScissor, exclusiveScissorCount, reinterpret_cast<const VkRect2D *>( pExclusiveScissors ) );
20539 }
20540
20541 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20542 // wrapper function for command vkCmdSetExclusiveScissorNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExclusiveScissorNV.html
20543 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetExclusiveScissorNV ), bool>::type>
20544 VULKAN_HPP_INLINE void CommandBuffer::setExclusiveScissorNV( uint32_t firstExclusiveScissor,
20545 ArrayProxy<const Rect2D> const & exclusiveScissors,
20546 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20547 {
20548 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20549 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20550 VULKAN_HPP_ASSERT( d.vkCmdSetExclusiveScissorNV && "Function <vkCmdSetExclusiveScissorNV> requires <VK_NV_scissor_exclusive>" );
20551 # endif
20552
20553 d.vkCmdSetExclusiveScissorNV(
20554 m_commandBuffer, firstExclusiveScissor, exclusiveScissors.size(), reinterpret_cast<const VkRect2D *>( exclusiveScissors.data() ) );
20555 }
20556 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20557
20558 //=== VK_NV_device_diagnostic_checkpoints ===
20559
20560 // wrapper function for command vkCmdSetCheckpointNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCheckpointNV.html
20561 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCheckpointNV ), bool>::type>
20562 VULKAN_HPP_INLINE void CommandBuffer::setCheckpointNV( const void * pCheckpointMarker, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20563 {
20564 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20565 d.vkCmdSetCheckpointNV( static_cast<VkCommandBuffer>( m_commandBuffer ), pCheckpointMarker );
20566 }
20567
20568 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20569 // wrapper function for command vkCmdSetCheckpointNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCheckpointNV.html
20570 template <typename CheckpointMarkerType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCheckpointNV ), bool>::type>
20571 VULKAN_HPP_INLINE void CommandBuffer::setCheckpointNV( CheckpointMarkerType const & checkpointMarker, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20572 {
20573 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20574 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20575 VULKAN_HPP_ASSERT( d.vkCmdSetCheckpointNV && "Function <vkCmdSetCheckpointNV> requires <VK_NV_device_diagnostic_checkpoints>" );
20576 # endif
20577
20578 d.vkCmdSetCheckpointNV( m_commandBuffer, reinterpret_cast<const void *>( &checkpointMarker ) );
20579 }
20580 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20581
20582 // wrapper function for command vkGetQueueCheckpointDataNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointDataNV.html
20583 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetQueueCheckpointDataNV ), bool>::type>
20584 VULKAN_HPP_INLINE void
20585 Queue::getCheckpointDataNV( uint32_t * pCheckpointDataCount, CheckpointDataNV * pCheckpointData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20586 {
20587 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20588 d.vkGetQueueCheckpointDataNV( static_cast<VkQueue>( m_queue ), pCheckpointDataCount, reinterpret_cast<VkCheckpointDataNV *>( pCheckpointData ) );
20589 }
20590
20591 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20592 // wrapper function for command vkGetQueueCheckpointDataNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointDataNV.html
20593 template <typename CheckpointDataNVAllocator,
20594 typename Dispatch,
20595 typename std::enable_if<std::is_same<typename CheckpointDataNVAllocator::value_type, CheckpointDataNV>::value, int>::type,
20596 typename std::enable_if<IS_DISPATCHED( vkGetQueueCheckpointDataNV ), bool>::type>
20597 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<CheckpointDataNV, CheckpointDataNVAllocator> Queue::getCheckpointDataNV( Dispatch const & d ) const
20598 {
20599 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20600 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20601 VULKAN_HPP_ASSERT( d.vkGetQueueCheckpointDataNV && "Function <vkGetQueueCheckpointDataNV> requires <VK_NV_device_diagnostic_checkpoints>" );
20602 # endif
20603
20604 std::vector<CheckpointDataNV, CheckpointDataNVAllocator> checkpointData;
20605 uint32_t checkpointDataCount;
20606 d.vkGetQueueCheckpointDataNV( m_queue, &checkpointDataCount, nullptr );
20607 checkpointData.resize( checkpointDataCount );
20608 d.vkGetQueueCheckpointDataNV( m_queue, &checkpointDataCount, reinterpret_cast<VkCheckpointDataNV *>( checkpointData.data() ) );
20609
20610 VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() );
20611 if ( checkpointDataCount < checkpointData.size() )
20612 {
20613 checkpointData.resize( checkpointDataCount );
20614 }
20615 return checkpointData;
20616 }
20617
20618 // wrapper function for command vkGetQueueCheckpointDataNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointDataNV.html
20619 template <typename CheckpointDataNVAllocator,
20620 typename Dispatch,
20621 typename std::enable_if<std::is_same<typename CheckpointDataNVAllocator::value_type, CheckpointDataNV>::value, int>::type,
20622 typename std::enable_if<IS_DISPATCHED( vkGetQueueCheckpointDataNV ), bool>::type>
20623 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<CheckpointDataNV, CheckpointDataNVAllocator>
20624 Queue::getCheckpointDataNV( CheckpointDataNVAllocator const & checkpointDataNVAllocator, Dispatch const & d ) const
20625 {
20626 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20627 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20628 VULKAN_HPP_ASSERT( d.vkGetQueueCheckpointDataNV && "Function <vkGetQueueCheckpointDataNV> requires <VK_NV_device_diagnostic_checkpoints>" );
20629 # endif
20630
20631 std::vector<CheckpointDataNV, CheckpointDataNVAllocator> checkpointData( checkpointDataNVAllocator );
20632 uint32_t checkpointDataCount;
20633 d.vkGetQueueCheckpointDataNV( m_queue, &checkpointDataCount, nullptr );
20634 checkpointData.resize( checkpointDataCount );
20635 d.vkGetQueueCheckpointDataNV( m_queue, &checkpointDataCount, reinterpret_cast<VkCheckpointDataNV *>( checkpointData.data() ) );
20636
20637 VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() );
20638 if ( checkpointDataCount < checkpointData.size() )
20639 {
20640 checkpointData.resize( checkpointDataCount );
20641 }
20642 return checkpointData;
20643 }
20644 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20645
20646 // wrapper function for command vkGetQueueCheckpointData2NV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointData2NV.html
20647 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetQueueCheckpointData2NV ), bool>::type>
20648 VULKAN_HPP_INLINE void
20649 Queue::getCheckpointData2NV( uint32_t * pCheckpointDataCount, CheckpointData2NV * pCheckpointData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20650 {
20651 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20652 d.vkGetQueueCheckpointData2NV( static_cast<VkQueue>( m_queue ), pCheckpointDataCount, reinterpret_cast<VkCheckpointData2NV *>( pCheckpointData ) );
20653 }
20654
20655 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20656 // wrapper function for command vkGetQueueCheckpointData2NV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointData2NV.html
20657 template <typename CheckpointData2NVAllocator,
20658 typename Dispatch,
20659 typename std::enable_if<std::is_same<typename CheckpointData2NVAllocator::value_type, CheckpointData2NV>::value, int>::type,
20660 typename std::enable_if<IS_DISPATCHED( vkGetQueueCheckpointData2NV ), bool>::type>
20661 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<CheckpointData2NV, CheckpointData2NVAllocator> Queue::getCheckpointData2NV( Dispatch const & d ) const
20662 {
20663 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20664 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20665 VULKAN_HPP_ASSERT( d.vkGetQueueCheckpointData2NV && "Function <vkGetQueueCheckpointData2NV> requires <VK_NV_device_diagnostic_checkpoints>" );
20666 # endif
20667
20668 std::vector<CheckpointData2NV, CheckpointData2NVAllocator> checkpointData;
20669 uint32_t checkpointDataCount;
20670 d.vkGetQueueCheckpointData2NV( m_queue, &checkpointDataCount, nullptr );
20671 checkpointData.resize( checkpointDataCount );
20672 d.vkGetQueueCheckpointData2NV( m_queue, &checkpointDataCount, reinterpret_cast<VkCheckpointData2NV *>( checkpointData.data() ) );
20673
20674 VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() );
20675 if ( checkpointDataCount < checkpointData.size() )
20676 {
20677 checkpointData.resize( checkpointDataCount );
20678 }
20679 return checkpointData;
20680 }
20681
20682 // wrapper function for command vkGetQueueCheckpointData2NV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetQueueCheckpointData2NV.html
20683 template <typename CheckpointData2NVAllocator,
20684 typename Dispatch,
20685 typename std::enable_if<std::is_same<typename CheckpointData2NVAllocator::value_type, CheckpointData2NV>::value, int>::type,
20686 typename std::enable_if<IS_DISPATCHED( vkGetQueueCheckpointData2NV ), bool>::type>
20687 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<CheckpointData2NV, CheckpointData2NVAllocator>
20688 Queue::getCheckpointData2NV( CheckpointData2NVAllocator const & checkpointData2NVAllocator, Dispatch const & d ) const
20689 {
20690 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20691 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20692 VULKAN_HPP_ASSERT( d.vkGetQueueCheckpointData2NV && "Function <vkGetQueueCheckpointData2NV> requires <VK_NV_device_diagnostic_checkpoints>" );
20693 # endif
20694
20695 std::vector<CheckpointData2NV, CheckpointData2NVAllocator> checkpointData( checkpointData2NVAllocator );
20696 uint32_t checkpointDataCount;
20697 d.vkGetQueueCheckpointData2NV( m_queue, &checkpointDataCount, nullptr );
20698 checkpointData.resize( checkpointDataCount );
20699 d.vkGetQueueCheckpointData2NV( m_queue, &checkpointDataCount, reinterpret_cast<VkCheckpointData2NV *>( checkpointData.data() ) );
20700
20701 VULKAN_HPP_ASSERT( checkpointDataCount <= checkpointData.size() );
20702 if ( checkpointDataCount < checkpointData.size() )
20703 {
20704 checkpointData.resize( checkpointDataCount );
20705 }
20706 return checkpointData;
20707 }
20708 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20709
20710 //=== VK_KHR_timeline_semaphore ===
20711
20712 // wrapper function for command vkGetSemaphoreCounterValueKHR, see
20713 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValueKHR.html
20714 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreCounterValueKHR ), bool>::type>
20715 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSemaphoreCounterValueKHR( Semaphore semaphore,
20716 uint64_t * pValue,
20717 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20718 {
20719 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20720 return static_cast<Result>( d.vkGetSemaphoreCounterValueKHR( static_cast<VkDevice>( m_device ), static_cast<VkSemaphore>( semaphore ), pValue ) );
20721 }
20722
20723 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20724 // wrapper function for command vkGetSemaphoreCounterValueKHR, see
20725 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreCounterValueKHR.html
20726 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreCounterValueKHR ), bool>::type>
20727 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<uint64_t>::type Device::getSemaphoreCounterValueKHR( Semaphore semaphore,
20728 Dispatch const & d ) const
20729 {
20730 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20731 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20732 VULKAN_HPP_ASSERT( d.vkGetSemaphoreCounterValueKHR && "Function <vkGetSemaphoreCounterValueKHR> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
20733 # endif
20734
20735 uint64_t value;
20736 Result result = static_cast<Result>( d.vkGetSemaphoreCounterValueKHR( m_device, static_cast<VkSemaphore>( semaphore ), &value ) );
20737 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreCounterValueKHR" );
20738
20739 return detail::createResultValueType( result, std::move( value ) );
20740 }
20741 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20742
20743 // wrapper function for command vkWaitSemaphoresKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitSemaphoresKHR.html
20744 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitSemaphoresKHR ), bool>::type>
20745 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitSemaphoresKHR( const SemaphoreWaitInfo * pWaitInfo,
20746 uint64_t timeout,
20747 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20748 {
20749 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20750 return static_cast<Result>(
20751 d.vkWaitSemaphoresKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreWaitInfo *>( pWaitInfo ), timeout ) );
20752 }
20753
20754 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20755 // wrapper function for command vkWaitSemaphoresKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitSemaphoresKHR.html
20756 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitSemaphoresKHR ), bool>::type>
20757 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitSemaphoresKHR( const SemaphoreWaitInfo & waitInfo, uint64_t timeout, Dispatch const & d ) const
20758 {
20759 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20760 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20761 VULKAN_HPP_ASSERT( d.vkWaitSemaphoresKHR && "Function <vkWaitSemaphoresKHR> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
20762 # endif
20763
20764 Result result = static_cast<Result>( d.vkWaitSemaphoresKHR( m_device, reinterpret_cast<const VkSemaphoreWaitInfo *>( &waitInfo ), timeout ) );
20765 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitSemaphoresKHR", { Result::eSuccess, Result::eTimeout } );
20766
20767 return static_cast<Result>( result );
20768 }
20769 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20770
20771 // wrapper function for command vkSignalSemaphoreKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSignalSemaphoreKHR.html
20772 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSignalSemaphoreKHR ), bool>::type>
20773 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::signalSemaphoreKHR( const SemaphoreSignalInfo * pSignalInfo,
20774 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20775 {
20776 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20777 return static_cast<Result>( d.vkSignalSemaphoreKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreSignalInfo *>( pSignalInfo ) ) );
20778 }
20779
20780 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20781 // wrapper function for command vkSignalSemaphoreKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSignalSemaphoreKHR.html
20782 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSignalSemaphoreKHR ), bool>::type>
20783 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
20784 Device::signalSemaphoreKHR( const SemaphoreSignalInfo & signalInfo, Dispatch const & d ) const
20785 {
20786 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20787 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20788 VULKAN_HPP_ASSERT( d.vkSignalSemaphoreKHR && "Function <vkSignalSemaphoreKHR> requires <VK_KHR_timeline_semaphore> or <VK_VERSION_1_2>" );
20789 # endif
20790
20791 Result result = static_cast<Result>( d.vkSignalSemaphoreKHR( m_device, reinterpret_cast<const VkSemaphoreSignalInfo *>( &signalInfo ) ) );
20792 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::signalSemaphoreKHR" );
20793
20794 return detail::createResultValueType( result );
20795 }
20796 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20797
20798 //=== VK_EXT_present_timing ===
20799
20800 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
20801 // wrapper function for command vkSetSwapchainPresentTimingQueueSizeEXT, see
20802 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetSwapchainPresentTimingQueueSizeEXT.html
20803 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetSwapchainPresentTimingQueueSizeEXT ), bool>::type>
20804 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setSwapchainPresentTimingQueueSizeEXT( SwapchainKHR swapchain,
20805 uint32_t size,
20806 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20807 {
20808 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20809 return static_cast<Result>(
20810 d.vkSetSwapchainPresentTimingQueueSizeEXT( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), size ) );
20811 }
20812 #else
20813 // wrapper function for command vkSetSwapchainPresentTimingQueueSizeEXT, see
20814 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetSwapchainPresentTimingQueueSizeEXT.html
20815 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetSwapchainPresentTimingQueueSizeEXT ), bool>::type>
20816 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setSwapchainPresentTimingQueueSizeEXT( SwapchainKHR swapchain, uint32_t size, Dispatch const & d ) const
20817 {
20818 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20819 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20820 VULKAN_HPP_ASSERT( d.vkSetSwapchainPresentTimingQueueSizeEXT && "Function <vkSetSwapchainPresentTimingQueueSizeEXT> requires <VK_EXT_present_timing>" );
20821 # endif
20822
20823 Result result = static_cast<Result>( d.vkSetSwapchainPresentTimingQueueSizeEXT( m_device, static_cast<VkSwapchainKHR>( swapchain ), size ) );
20824 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setSwapchainPresentTimingQueueSizeEXT", { Result::eSuccess, Result::eNotReady } );
20825
20826 return static_cast<Result>( result );
20827 }
20828 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
20829
20830 // wrapper function for command vkGetSwapchainTimingPropertiesEXT, see
20831 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainTimingPropertiesEXT.html
20832 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainTimingPropertiesEXT ), bool>::type>
20833 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSwapchainTimingPropertiesEXT( SwapchainKHR swapchain,
20834 SwapchainTimingPropertiesEXT * pSwapchainTimingProperties,
20835 uint64_t * pSwapchainTimingPropertiesCounter,
20836 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20837 {
20838 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20839 return static_cast<Result>( d.vkGetSwapchainTimingPropertiesEXT( static_cast<VkDevice>( m_device ),
20840 static_cast<VkSwapchainKHR>( swapchain ),
20841 reinterpret_cast<VkSwapchainTimingPropertiesEXT *>( pSwapchainTimingProperties ),
20842 pSwapchainTimingPropertiesCounter ) );
20843 }
20844
20845 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20846 // wrapper function for command vkGetSwapchainTimingPropertiesEXT, see
20847 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainTimingPropertiesEXT.html
20848 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainTimingPropertiesEXT ), bool>::type>
20849 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::pair<SwapchainTimingPropertiesEXT, uint64_t>>
20850 Device::getSwapchainTimingPropertiesEXT( SwapchainKHR swapchain, Dispatch const & d ) const
20851 {
20852 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20853 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20854 VULKAN_HPP_ASSERT( d.vkGetSwapchainTimingPropertiesEXT && "Function <vkGetSwapchainTimingPropertiesEXT> requires <VK_EXT_present_timing>" );
20855 # endif
20856
20857 std::pair<SwapchainTimingPropertiesEXT, uint64_t> data_;
20858 SwapchainTimingPropertiesEXT & swapchainTimingProperties = data_.first;
20859 uint64_t & swapchainTimingPropertiesCounter = data_.second;
20860 Result result = static_cast<Result>( d.vkGetSwapchainTimingPropertiesEXT( m_device,
20861 static_cast<VkSwapchainKHR>( swapchain ),
20862 reinterpret_cast<VkSwapchainTimingPropertiesEXT *>( &swapchainTimingProperties ),
20863 &swapchainTimingPropertiesCounter ) );
20864 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSwapchainTimingPropertiesEXT", { Result::eSuccess, Result::eNotReady } );
20865
20866 return ResultValue<std::pair<SwapchainTimingPropertiesEXT, uint64_t>>( result, std::move( data_ ) );
20867 }
20868 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20869
20870 // wrapper function for command vkGetSwapchainTimeDomainPropertiesEXT, see
20871 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSwapchainTimeDomainPropertiesEXT.html
20872 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSwapchainTimeDomainPropertiesEXT ), bool>::type>
20873 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSwapchainTimeDomainPropertiesEXT( SwapchainKHR swapchain,
20874 SwapchainTimeDomainPropertiesEXT * pSwapchainTimeDomainProperties,
20875 uint64_t * pTimeDomainsCounter,
20876 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20877 {
20878 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20879 return static_cast<Result>(
20880 d.vkGetSwapchainTimeDomainPropertiesEXT( static_cast<VkDevice>( m_device ),
20881 static_cast<VkSwapchainKHR>( swapchain ),
20882 reinterpret_cast<VkSwapchainTimeDomainPropertiesEXT *>( pSwapchainTimeDomainProperties ),
20883 pTimeDomainsCounter ) );
20884 }
20885
20886 // wrapper function for command vkGetPastPresentationTimingEXT, see
20887 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPastPresentationTimingEXT.html
20888 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPastPresentationTimingEXT ), bool>::type>
20889 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPastPresentationTimingEXT( const PastPresentationTimingInfoEXT * pPastPresentationTimingInfo,
20890 PastPresentationTimingPropertiesEXT * pPastPresentationTimingProperties,
20891 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20892 {
20893 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20894 return static_cast<Result>(
20895 d.vkGetPastPresentationTimingEXT( static_cast<VkDevice>( m_device ),
20896 reinterpret_cast<const VkPastPresentationTimingInfoEXT *>( pPastPresentationTimingInfo ),
20897 reinterpret_cast<VkPastPresentationTimingPropertiesEXT *>( pPastPresentationTimingProperties ) ) );
20898 }
20899
20900 //=== VK_INTEL_performance_query ===
20901
20902 // wrapper function for command vkInitializePerformanceApiINTEL, see
20903 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkInitializePerformanceApiINTEL.html
20904 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkInitializePerformanceApiINTEL ), bool>::type>
20905 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::initializePerformanceApiINTEL( const InitializePerformanceApiInfoINTEL * pInitializeInfo,
20906 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20907 {
20908 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20909 return static_cast<Result>( d.vkInitializePerformanceApiINTEL( static_cast<VkDevice>( m_device ),
20910 reinterpret_cast<const VkInitializePerformanceApiInfoINTEL *>( pInitializeInfo ) ) );
20911 }
20912
20913 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20914 // wrapper function for command vkInitializePerformanceApiINTEL, see
20915 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkInitializePerformanceApiINTEL.html
20916 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkInitializePerformanceApiINTEL ), bool>::type>
20917 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
20918 Device::initializePerformanceApiINTEL( const InitializePerformanceApiInfoINTEL & initializeInfo, Dispatch const & d ) const
20919 {
20920 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20921 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20922 VULKAN_HPP_ASSERT( d.vkInitializePerformanceApiINTEL && "Function <vkInitializePerformanceApiINTEL> requires <VK_INTEL_performance_query>" );
20923 # endif
20924
20925 Result result =
20926 static_cast<Result>( d.vkInitializePerformanceApiINTEL( m_device, reinterpret_cast<const VkInitializePerformanceApiInfoINTEL *>( &initializeInfo ) ) );
20927 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::initializePerformanceApiINTEL" );
20928
20929 return detail::createResultValueType( result );
20930 }
20931 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20932
20933 // wrapper function for command vkUninitializePerformanceApiINTEL, see
20934 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUninitializePerformanceApiINTEL.html
20935 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUninitializePerformanceApiINTEL ), bool>::type>
20936 VULKAN_HPP_INLINE void Device::uninitializePerformanceApiINTEL( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20937 {
20938 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20939 d.vkUninitializePerformanceApiINTEL( static_cast<VkDevice>( m_device ) );
20940 }
20941
20942 // wrapper function for command vkCmdSetPerformanceMarkerINTEL, see
20943 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceMarkerINTEL.html
20944 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPerformanceMarkerINTEL ), bool>::type>
20945 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result CommandBuffer::setPerformanceMarkerINTEL( const PerformanceMarkerInfoINTEL * pMarkerInfo,
20946 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20947 {
20948 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20949 return static_cast<Result>( d.vkCmdSetPerformanceMarkerINTEL( static_cast<VkCommandBuffer>( m_commandBuffer ),
20950 reinterpret_cast<const VkPerformanceMarkerInfoINTEL *>( pMarkerInfo ) ) );
20951 }
20952
20953 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20954 // wrapper function for command vkCmdSetPerformanceMarkerINTEL, see
20955 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceMarkerINTEL.html
20956 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPerformanceMarkerINTEL ), bool>::type>
20957 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
20958 CommandBuffer::setPerformanceMarkerINTEL( const PerformanceMarkerInfoINTEL & markerInfo, Dispatch const & d ) const
20959 {
20960 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20961 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20962 VULKAN_HPP_ASSERT( d.vkCmdSetPerformanceMarkerINTEL && "Function <vkCmdSetPerformanceMarkerINTEL> requires <VK_INTEL_performance_query>" );
20963 # endif
20964
20965 Result result =
20966 static_cast<Result>( d.vkCmdSetPerformanceMarkerINTEL( m_commandBuffer, reinterpret_cast<const VkPerformanceMarkerInfoINTEL *>( &markerInfo ) ) );
20967 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setPerformanceMarkerINTEL" );
20968
20969 return detail::createResultValueType( result );
20970 }
20971 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
20972
20973 // wrapper function for command vkCmdSetPerformanceStreamMarkerINTEL, see
20974 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceStreamMarkerINTEL.html
20975 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPerformanceStreamMarkerINTEL ), bool>::type>
20976 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result CommandBuffer::setPerformanceStreamMarkerINTEL( const PerformanceStreamMarkerInfoINTEL * pMarkerInfo,
20977 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
20978 {
20979 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20980 return static_cast<Result>( d.vkCmdSetPerformanceStreamMarkerINTEL( static_cast<VkCommandBuffer>( m_commandBuffer ),
20981 reinterpret_cast<const VkPerformanceStreamMarkerInfoINTEL *>( pMarkerInfo ) ) );
20982 }
20983
20984 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
20985 // wrapper function for command vkCmdSetPerformanceStreamMarkerINTEL, see
20986 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceStreamMarkerINTEL.html
20987 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPerformanceStreamMarkerINTEL ), bool>::type>
20988 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
20989 CommandBuffer::setPerformanceStreamMarkerINTEL( const PerformanceStreamMarkerInfoINTEL & markerInfo, Dispatch const & d ) const
20990 {
20991 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
20992 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
20993 VULKAN_HPP_ASSERT( d.vkCmdSetPerformanceStreamMarkerINTEL && "Function <vkCmdSetPerformanceStreamMarkerINTEL> requires <VK_INTEL_performance_query>" );
20994 # endif
20995
20996 Result result = static_cast<Result>(
20997 d.vkCmdSetPerformanceStreamMarkerINTEL( m_commandBuffer, reinterpret_cast<const VkPerformanceStreamMarkerInfoINTEL *>( &markerInfo ) ) );
20998 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setPerformanceStreamMarkerINTEL" );
20999
21000 return detail::createResultValueType( result );
21001 }
21002 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21003
21004 // wrapper function for command vkCmdSetPerformanceOverrideINTEL, see
21005 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceOverrideINTEL.html
21006 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPerformanceOverrideINTEL ), bool>::type>
21007 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result CommandBuffer::setPerformanceOverrideINTEL( const PerformanceOverrideInfoINTEL * pOverrideInfo,
21008 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21009 {
21010 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21011 return static_cast<Result>( d.vkCmdSetPerformanceOverrideINTEL( static_cast<VkCommandBuffer>( m_commandBuffer ),
21012 reinterpret_cast<const VkPerformanceOverrideInfoINTEL *>( pOverrideInfo ) ) );
21013 }
21014
21015 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21016 // wrapper function for command vkCmdSetPerformanceOverrideINTEL, see
21017 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPerformanceOverrideINTEL.html
21018 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPerformanceOverrideINTEL ), bool>::type>
21019 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
21020 CommandBuffer::setPerformanceOverrideINTEL( const PerformanceOverrideInfoINTEL & overrideInfo, Dispatch const & d ) const
21021 {
21022 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21023 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21024 VULKAN_HPP_ASSERT( d.vkCmdSetPerformanceOverrideINTEL && "Function <vkCmdSetPerformanceOverrideINTEL> requires <VK_INTEL_performance_query>" );
21025 # endif
21026
21027 Result result =
21028 static_cast<Result>( d.vkCmdSetPerformanceOverrideINTEL( m_commandBuffer, reinterpret_cast<const VkPerformanceOverrideInfoINTEL *>( &overrideInfo ) ) );
21029 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setPerformanceOverrideINTEL" );
21030
21031 return detail::createResultValueType( result );
21032 }
21033 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21034
21035 // wrapper function for command vkAcquirePerformanceConfigurationINTEL, see
21036 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquirePerformanceConfigurationINTEL.html
21037 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquirePerformanceConfigurationINTEL ), bool>::type>
21038 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::acquirePerformanceConfigurationINTEL( const PerformanceConfigurationAcquireInfoINTEL * pAcquireInfo,
21039 PerformanceConfigurationINTEL * pConfiguration,
21040 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21041 {
21042 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21043 return static_cast<Result>( d.vkAcquirePerformanceConfigurationINTEL( static_cast<VkDevice>( m_device ),
21044 reinterpret_cast<const VkPerformanceConfigurationAcquireInfoINTEL *>( pAcquireInfo ),
21045 reinterpret_cast<VkPerformanceConfigurationINTEL *>( pConfiguration ) ) );
21046 }
21047
21048 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21049 // wrapper function for command vkAcquirePerformanceConfigurationINTEL, see
21050 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquirePerformanceConfigurationINTEL.html
21051 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquirePerformanceConfigurationINTEL ), bool>::type>
21052 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PerformanceConfigurationINTEL>::type
21053 Device::acquirePerformanceConfigurationINTEL( const PerformanceConfigurationAcquireInfoINTEL & acquireInfo, Dispatch const & d ) const
21054 {
21055 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21056 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21057 VULKAN_HPP_ASSERT( d.vkAcquirePerformanceConfigurationINTEL && "Function <vkAcquirePerformanceConfigurationINTEL> requires <VK_INTEL_performance_query>" );
21058 # endif
21059
21060 PerformanceConfigurationINTEL configuration;
21061 Result result =
21062 static_cast<Result>( d.vkAcquirePerformanceConfigurationINTEL( m_device,
21063 reinterpret_cast<const VkPerformanceConfigurationAcquireInfoINTEL *>( &acquireInfo ),
21064 reinterpret_cast<VkPerformanceConfigurationINTEL *>( &configuration ) ) );
21065 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquirePerformanceConfigurationINTEL" );
21066
21067 return detail::createResultValueType( result, std::move( configuration ) );
21068 }
21069
21070 # ifndef VULKAN_HPP_NO_SMART_HANDLE
21071 // wrapper function for command vkAcquirePerformanceConfigurationINTEL, see
21072 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquirePerformanceConfigurationINTEL.html
21073 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquirePerformanceConfigurationINTEL ), bool>::type>
21074 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<PerformanceConfigurationINTEL, Dispatch>>::type
21075 Device::acquirePerformanceConfigurationINTELUnique( const PerformanceConfigurationAcquireInfoINTEL & acquireInfo, Dispatch const & d ) const
21076 {
21077 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21078 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21079 VULKAN_HPP_ASSERT( d.vkAcquirePerformanceConfigurationINTEL && "Function <vkAcquirePerformanceConfigurationINTEL> requires <VK_INTEL_performance_query>" );
21080 # endif
21081
21082 PerformanceConfigurationINTEL configuration;
21083 Result result =
21084 static_cast<Result>( d.vkAcquirePerformanceConfigurationINTEL( m_device,
21085 reinterpret_cast<const VkPerformanceConfigurationAcquireInfoINTEL *>( &acquireInfo ),
21086 reinterpret_cast<VkPerformanceConfigurationINTEL *>( &configuration ) ) );
21087 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquirePerformanceConfigurationINTELUnique" );
21088
21089 return detail::createResultValueType(
21090 result, UniqueHandle<PerformanceConfigurationINTEL, Dispatch>( configuration, detail::ObjectRelease<Device, Dispatch>( *this, d ) ) );
21091 }
21092 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
21093 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21094
21095 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
21096 // wrapper function for command vkReleasePerformanceConfigurationINTEL, see
21097 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleasePerformanceConfigurationINTEL.html
21098 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleasePerformanceConfigurationINTEL ), bool>::type>
21099 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::releasePerformanceConfigurationINTEL( PerformanceConfigurationINTEL configuration,
21100 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21101 {
21102 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21103 return static_cast<Result>(
21104 d.vkReleasePerformanceConfigurationINTEL( static_cast<VkDevice>( m_device ), static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
21105 }
21106 #else
21107 // wrapper function for command vkReleasePerformanceConfigurationINTEL, see
21108 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleasePerformanceConfigurationINTEL.html
21109 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleasePerformanceConfigurationINTEL ), bool>::type>
21110 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
21111 Device::releasePerformanceConfigurationINTEL( PerformanceConfigurationINTEL configuration, Dispatch const & d ) const
21112 {
21113 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21114 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21115 VULKAN_HPP_ASSERT( d.vkReleasePerformanceConfigurationINTEL && "Function <vkReleasePerformanceConfigurationINTEL> requires <VK_INTEL_performance_query>" );
21116 # endif
21117
21118 Result result = static_cast<Result>( d.vkReleasePerformanceConfigurationINTEL( m_device, static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
21119 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releasePerformanceConfigurationINTEL" );
21120
21121 return detail::createResultValueType( result );
21122 }
21123 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
21124
21125 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
21126 // wrapper function for command vkReleasePerformanceConfigurationINTEL, see
21127 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleasePerformanceConfigurationINTEL.html
21128 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleasePerformanceConfigurationINTEL ), bool>::type>
21129 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::release( PerformanceConfigurationINTEL configuration, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21130 {
21131 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21132 return static_cast<Result>(
21133 d.vkReleasePerformanceConfigurationINTEL( static_cast<VkDevice>( m_device ), static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
21134 }
21135 #else
21136 // wrapper function for command vkReleasePerformanceConfigurationINTEL, see
21137 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleasePerformanceConfigurationINTEL.html
21138 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleasePerformanceConfigurationINTEL ), bool>::type>
21139 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::release( PerformanceConfigurationINTEL configuration,
21140 Dispatch const & d ) const
21141 {
21142 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21143 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21144 VULKAN_HPP_ASSERT( d.vkReleasePerformanceConfigurationINTEL && "Function <vkReleasePerformanceConfigurationINTEL> requires <VK_INTEL_performance_query>" );
21145 # endif
21146
21147 Result result = static_cast<Result>( d.vkReleasePerformanceConfigurationINTEL( m_device, static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
21148 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::release" );
21149
21150 return detail::createResultValueType( result );
21151 }
21152 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
21153
21154 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
21155 // wrapper function for command vkQueueSetPerformanceConfigurationINTEL, see
21156 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSetPerformanceConfigurationINTEL.html
21157 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSetPerformanceConfigurationINTEL ), bool>::type>
21158 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Queue::setPerformanceConfigurationINTEL( PerformanceConfigurationINTEL configuration,
21159 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21160 {
21161 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21162 return static_cast<Result>(
21163 d.vkQueueSetPerformanceConfigurationINTEL( static_cast<VkQueue>( m_queue ), static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
21164 }
21165 #else
21166 // wrapper function for command vkQueueSetPerformanceConfigurationINTEL, see
21167 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSetPerformanceConfigurationINTEL.html
21168 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSetPerformanceConfigurationINTEL ), bool>::type>
21169 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
21170 Queue::setPerformanceConfigurationINTEL( PerformanceConfigurationINTEL configuration, Dispatch const & d ) const
21171 {
21172 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21173 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21174 VULKAN_HPP_ASSERT( d.vkQueueSetPerformanceConfigurationINTEL &&
21175 "Function <vkQueueSetPerformanceConfigurationINTEL> requires <VK_INTEL_performance_query>" );
21176 # endif
21177
21178 Result result = static_cast<Result>( d.vkQueueSetPerformanceConfigurationINTEL( m_queue, static_cast<VkPerformanceConfigurationINTEL>( configuration ) ) );
21179 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::setPerformanceConfigurationINTEL" );
21180
21181 return detail::createResultValueType( result );
21182 }
21183 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
21184
21185 // wrapper function for command vkGetPerformanceParameterINTEL, see
21186 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPerformanceParameterINTEL.html
21187 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPerformanceParameterINTEL ), bool>::type>
21188 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPerformanceParameterINTEL( PerformanceParameterTypeINTEL parameter,
21189 PerformanceValueINTEL * pValue,
21190 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21191 {
21192 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21193 return static_cast<Result>( d.vkGetPerformanceParameterINTEL(
21194 static_cast<VkDevice>( m_device ), static_cast<VkPerformanceParameterTypeINTEL>( parameter ), reinterpret_cast<VkPerformanceValueINTEL *>( pValue ) ) );
21195 }
21196
21197 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21198 // wrapper function for command vkGetPerformanceParameterINTEL, see
21199 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPerformanceParameterINTEL.html
21200 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPerformanceParameterINTEL ), bool>::type>
21201 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PerformanceValueINTEL>::type
21202 Device::getPerformanceParameterINTEL( PerformanceParameterTypeINTEL parameter, Dispatch const & d ) const
21203 {
21204 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21205 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21206 VULKAN_HPP_ASSERT( d.vkGetPerformanceParameterINTEL && "Function <vkGetPerformanceParameterINTEL> requires <VK_INTEL_performance_query>" );
21207 # endif
21208
21209 PerformanceValueINTEL value;
21210 Result result = static_cast<Result>( d.vkGetPerformanceParameterINTEL(
21211 m_device, static_cast<VkPerformanceParameterTypeINTEL>( parameter ), reinterpret_cast<VkPerformanceValueINTEL *>( &value ) ) );
21212 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPerformanceParameterINTEL" );
21213
21214 return detail::createResultValueType( result, std::move( value ) );
21215 }
21216 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21217
21218 //=== VK_AMD_display_native_hdr ===
21219
21220 // wrapper function for command vkSetLocalDimmingAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLocalDimmingAMD.html
21221 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetLocalDimmingAMD ), bool>::type>
21222 VULKAN_HPP_INLINE void Device::setLocalDimmingAMD( SwapchainKHR swapChain, Bool32 localDimmingEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21223 {
21224 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21225 d.vkSetLocalDimmingAMD( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapChain ), static_cast<VkBool32>( localDimmingEnable ) );
21226 }
21227
21228 #if defined( VK_USE_PLATFORM_FUCHSIA )
21229 //=== VK_FUCHSIA_imagepipe_surface ===
21230
21231 // wrapper function for command vkCreateImagePipeSurfaceFUCHSIA, see
21232 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImagePipeSurfaceFUCHSIA.html
21233 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImagePipeSurfaceFUCHSIA ), bool>::type>
21234 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createImagePipeSurfaceFUCHSIA( const ImagePipeSurfaceCreateInfoFUCHSIA * pCreateInfo,
21235 const AllocationCallbacks * pAllocator,
21236 SurfaceKHR * pSurface,
21237 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21238 {
21239 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21240 return static_cast<Result>( d.vkCreateImagePipeSurfaceFUCHSIA( static_cast<VkInstance>( m_instance ),
21241 reinterpret_cast<const VkImagePipeSurfaceCreateInfoFUCHSIA *>( pCreateInfo ),
21242 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
21243 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
21244 }
21245
21246 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21247 // wrapper function for command vkCreateImagePipeSurfaceFUCHSIA, see
21248 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImagePipeSurfaceFUCHSIA.html
21249 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImagePipeSurfaceFUCHSIA ), bool>::type>
21250 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createImagePipeSurfaceFUCHSIA(
21251 const ImagePipeSurfaceCreateInfoFUCHSIA & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
21252 {
21253 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21254 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21255 VULKAN_HPP_ASSERT( d.vkCreateImagePipeSurfaceFUCHSIA && "Function <vkCreateImagePipeSurfaceFUCHSIA> requires <VK_FUCHSIA_imagepipe_surface>" );
21256 # endif
21257
21258 SurfaceKHR surface;
21259 Result result = static_cast<Result>( d.vkCreateImagePipeSurfaceFUCHSIA( m_instance,
21260 reinterpret_cast<const VkImagePipeSurfaceCreateInfoFUCHSIA *>( &createInfo ),
21261 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
21262 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
21263 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createImagePipeSurfaceFUCHSIA" );
21264
21265 return detail::createResultValueType( result, std::move( surface ) );
21266 }
21267
21268 # ifndef VULKAN_HPP_NO_SMART_HANDLE
21269 // wrapper function for command vkCreateImagePipeSurfaceFUCHSIA, see
21270 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateImagePipeSurfaceFUCHSIA.html
21271 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateImagePipeSurfaceFUCHSIA ), bool>::type>
21272 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createImagePipeSurfaceFUCHSIAUnique(
21273 const ImagePipeSurfaceCreateInfoFUCHSIA & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
21274 {
21275 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21276 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21277 VULKAN_HPP_ASSERT( d.vkCreateImagePipeSurfaceFUCHSIA && "Function <vkCreateImagePipeSurfaceFUCHSIA> requires <VK_FUCHSIA_imagepipe_surface>" );
21278 # endif
21279
21280 SurfaceKHR surface;
21281 Result result = static_cast<Result>( d.vkCreateImagePipeSurfaceFUCHSIA( m_instance,
21282 reinterpret_cast<const VkImagePipeSurfaceCreateInfoFUCHSIA *>( &createInfo ),
21283 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
21284 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
21285 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createImagePipeSurfaceFUCHSIAUnique" );
21286
21287 return detail::createResultValueType( result,
21288 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
21289 }
21290 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
21291 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21292 #endif /*VK_USE_PLATFORM_FUCHSIA*/
21293
21294 #if defined( VK_USE_PLATFORM_METAL_EXT )
21295 //=== VK_EXT_metal_surface ===
21296
21297 // wrapper function for command vkCreateMetalSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMetalSurfaceEXT.html
21298 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMetalSurfaceEXT ), bool>::type>
21299 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createMetalSurfaceEXT( const MetalSurfaceCreateInfoEXT * pCreateInfo,
21300 const AllocationCallbacks * pAllocator,
21301 SurfaceKHR * pSurface,
21302 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21303 {
21304 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21305 return static_cast<Result>( d.vkCreateMetalSurfaceEXT( static_cast<VkInstance>( m_instance ),
21306 reinterpret_cast<const VkMetalSurfaceCreateInfoEXT *>( pCreateInfo ),
21307 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
21308 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
21309 }
21310
21311 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21312 // wrapper function for command vkCreateMetalSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMetalSurfaceEXT.html
21313 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMetalSurfaceEXT ), bool>::type>
21314 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
21315 Instance::createMetalSurfaceEXT( const MetalSurfaceCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
21316 {
21317 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21318 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21319 VULKAN_HPP_ASSERT( d.vkCreateMetalSurfaceEXT && "Function <vkCreateMetalSurfaceEXT> requires <VK_EXT_metal_surface>" );
21320 # endif
21321
21322 SurfaceKHR surface;
21323 Result result = static_cast<Result>( d.vkCreateMetalSurfaceEXT( m_instance,
21324 reinterpret_cast<const VkMetalSurfaceCreateInfoEXT *>( &createInfo ),
21325 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
21326 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
21327 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createMetalSurfaceEXT" );
21328
21329 return detail::createResultValueType( result, std::move( surface ) );
21330 }
21331
21332 # ifndef VULKAN_HPP_NO_SMART_HANDLE
21333 // wrapper function for command vkCreateMetalSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMetalSurfaceEXT.html
21334 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMetalSurfaceEXT ), bool>::type>
21335 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createMetalSurfaceEXTUnique(
21336 const MetalSurfaceCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
21337 {
21338 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21339 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21340 VULKAN_HPP_ASSERT( d.vkCreateMetalSurfaceEXT && "Function <vkCreateMetalSurfaceEXT> requires <VK_EXT_metal_surface>" );
21341 # endif
21342
21343 SurfaceKHR surface;
21344 Result result = static_cast<Result>( d.vkCreateMetalSurfaceEXT( m_instance,
21345 reinterpret_cast<const VkMetalSurfaceCreateInfoEXT *>( &createInfo ),
21346 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
21347 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
21348 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createMetalSurfaceEXTUnique" );
21349
21350 return detail::createResultValueType( result,
21351 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
21352 }
21353 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
21354 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21355 #endif /*VK_USE_PLATFORM_METAL_EXT*/
21356
21357 //=== VK_KHR_fragment_shading_rate ===
21358
21359 // wrapper function for command vkGetPhysicalDeviceFragmentShadingRatesKHR, see
21360 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFragmentShadingRatesKHR.html
21361 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFragmentShadingRatesKHR ), bool>::type>
21362 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getFragmentShadingRatesKHR( uint32_t * pFragmentShadingRateCount,
21363 PhysicalDeviceFragmentShadingRateKHR * pFragmentShadingRates,
21364 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21365 {
21366 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21367 return static_cast<Result>(
21368 d.vkGetPhysicalDeviceFragmentShadingRatesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21369 pFragmentShadingRateCount,
21370 reinterpret_cast<VkPhysicalDeviceFragmentShadingRateKHR *>( pFragmentShadingRates ) ) );
21371 }
21372
21373 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21374 // wrapper function for command vkGetPhysicalDeviceFragmentShadingRatesKHR, see
21375 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFragmentShadingRatesKHR.html
21376 template <
21377 typename PhysicalDeviceFragmentShadingRateKHRAllocator,
21378 typename Dispatch,
21379 typename std::enable_if<std::is_same<typename PhysicalDeviceFragmentShadingRateKHRAllocator::value_type, PhysicalDeviceFragmentShadingRateKHR>::value,
21380 int>::type,
21381 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFragmentShadingRatesKHR ), bool>::type>
21382 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
21383 typename ResultValueType<std::vector<PhysicalDeviceFragmentShadingRateKHR, PhysicalDeviceFragmentShadingRateKHRAllocator>>::type
21384 PhysicalDevice::getFragmentShadingRatesKHR( Dispatch const & d ) const
21385 {
21386 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21387 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21388 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFragmentShadingRatesKHR &&
21389 "Function <vkGetPhysicalDeviceFragmentShadingRatesKHR> requires <VK_KHR_fragment_shading_rate>" );
21390 # endif
21391
21392 std::vector<PhysicalDeviceFragmentShadingRateKHR, PhysicalDeviceFragmentShadingRateKHRAllocator> fragmentShadingRates;
21393 uint32_t fragmentShadingRateCount;
21394 Result result;
21395 do
21396 {
21397 result = static_cast<Result>( d.vkGetPhysicalDeviceFragmentShadingRatesKHR( m_physicalDevice, &fragmentShadingRateCount, nullptr ) );
21398 if ( ( result == Result::eSuccess ) && fragmentShadingRateCount )
21399 {
21400 fragmentShadingRates.resize( fragmentShadingRateCount );
21401 result = static_cast<Result>( d.vkGetPhysicalDeviceFragmentShadingRatesKHR(
21402 m_physicalDevice, &fragmentShadingRateCount, reinterpret_cast<VkPhysicalDeviceFragmentShadingRateKHR *>( fragmentShadingRates.data() ) ) );
21403 }
21404 } while ( result == Result::eIncomplete );
21405 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getFragmentShadingRatesKHR" );
21406 VULKAN_HPP_ASSERT( fragmentShadingRateCount <= fragmentShadingRates.size() );
21407 if ( fragmentShadingRateCount < fragmentShadingRates.size() )
21408 {
21409 fragmentShadingRates.resize( fragmentShadingRateCount );
21410 }
21411 return detail::createResultValueType( result, std::move( fragmentShadingRates ) );
21412 }
21413
21414 // wrapper function for command vkGetPhysicalDeviceFragmentShadingRatesKHR, see
21415 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceFragmentShadingRatesKHR.html
21416 template <
21417 typename PhysicalDeviceFragmentShadingRateKHRAllocator,
21418 typename Dispatch,
21419 typename std::enable_if<std::is_same<typename PhysicalDeviceFragmentShadingRateKHRAllocator::value_type, PhysicalDeviceFragmentShadingRateKHR>::value,
21420 int>::type,
21421 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceFragmentShadingRatesKHR ), bool>::type>
21422 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
21423 typename ResultValueType<std::vector<PhysicalDeviceFragmentShadingRateKHR, PhysicalDeviceFragmentShadingRateKHRAllocator>>::type
21424 PhysicalDevice::getFragmentShadingRatesKHR( PhysicalDeviceFragmentShadingRateKHRAllocator const & physicalDeviceFragmentShadingRateKHRAllocator,
21425 Dispatch const & d ) const
21426 {
21427 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21428 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21429 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceFragmentShadingRatesKHR &&
21430 "Function <vkGetPhysicalDeviceFragmentShadingRatesKHR> requires <VK_KHR_fragment_shading_rate>" );
21431 # endif
21432
21433 std::vector<PhysicalDeviceFragmentShadingRateKHR, PhysicalDeviceFragmentShadingRateKHRAllocator> fragmentShadingRates(
21434 physicalDeviceFragmentShadingRateKHRAllocator );
21435 uint32_t fragmentShadingRateCount;
21436 Result result;
21437 do
21438 {
21439 result = static_cast<Result>( d.vkGetPhysicalDeviceFragmentShadingRatesKHR( m_physicalDevice, &fragmentShadingRateCount, nullptr ) );
21440 if ( ( result == Result::eSuccess ) && fragmentShadingRateCount )
21441 {
21442 fragmentShadingRates.resize( fragmentShadingRateCount );
21443 result = static_cast<Result>( d.vkGetPhysicalDeviceFragmentShadingRatesKHR(
21444 m_physicalDevice, &fragmentShadingRateCount, reinterpret_cast<VkPhysicalDeviceFragmentShadingRateKHR *>( fragmentShadingRates.data() ) ) );
21445 }
21446 } while ( result == Result::eIncomplete );
21447 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getFragmentShadingRatesKHR" );
21448 VULKAN_HPP_ASSERT( fragmentShadingRateCount <= fragmentShadingRates.size() );
21449 if ( fragmentShadingRateCount < fragmentShadingRates.size() )
21450 {
21451 fragmentShadingRates.resize( fragmentShadingRateCount );
21452 }
21453 return detail::createResultValueType( result, std::move( fragmentShadingRates ) );
21454 }
21455 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21456
21457 // wrapper function for command vkCmdSetFragmentShadingRateKHR, see
21458 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFragmentShadingRateKHR.html
21459 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetFragmentShadingRateKHR ), bool>::type>
21460 VULKAN_HPP_INLINE void CommandBuffer::setFragmentShadingRateKHR( const Extent2D * pFragmentSize,
21461 const FragmentShadingRateCombinerOpKHR combinerOps[2],
21462 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21463 {
21464 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21465 d.vkCmdSetFragmentShadingRateKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
21466 reinterpret_cast<const VkExtent2D *>( pFragmentSize ),
21467 reinterpret_cast<const VkFragmentShadingRateCombinerOpKHR *>( combinerOps ) );
21468 }
21469
21470 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21471 // wrapper function for command vkCmdSetFragmentShadingRateKHR, see
21472 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFragmentShadingRateKHR.html
21473 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetFragmentShadingRateKHR ), bool>::type>
21474 VULKAN_HPP_INLINE void CommandBuffer::setFragmentShadingRateKHR( const Extent2D & fragmentSize,
21475 const FragmentShadingRateCombinerOpKHR combinerOps[2],
21476 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21477 {
21478 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21479 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21480 VULKAN_HPP_ASSERT( d.vkCmdSetFragmentShadingRateKHR && "Function <vkCmdSetFragmentShadingRateKHR> requires <VK_KHR_fragment_shading_rate>" );
21481 # endif
21482
21483 d.vkCmdSetFragmentShadingRateKHR(
21484 m_commandBuffer, reinterpret_cast<const VkExtent2D *>( &fragmentSize ), reinterpret_cast<const VkFragmentShadingRateCombinerOpKHR *>( combinerOps ) );
21485 }
21486 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21487
21488 //=== VK_KHR_dynamic_rendering_local_read ===
21489
21490 // wrapper function for command vkCmdSetRenderingAttachmentLocationsKHR, see
21491 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingAttachmentLocationsKHR.html
21492 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingAttachmentLocationsKHR ), bool>::type>
21493 VULKAN_HPP_INLINE void CommandBuffer::setRenderingAttachmentLocationsKHR( const RenderingAttachmentLocationInfo * pLocationInfo,
21494 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21495 {
21496 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21497 d.vkCmdSetRenderingAttachmentLocationsKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
21498 reinterpret_cast<const VkRenderingAttachmentLocationInfo *>( pLocationInfo ) );
21499 }
21500
21501 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21502 // wrapper function for command vkCmdSetRenderingAttachmentLocationsKHR, see
21503 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingAttachmentLocationsKHR.html
21504 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingAttachmentLocationsKHR ), bool>::type>
21505 VULKAN_HPP_INLINE void CommandBuffer::setRenderingAttachmentLocationsKHR( const RenderingAttachmentLocationInfo & locationInfo,
21506 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21507 {
21508 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21509 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21510 VULKAN_HPP_ASSERT( d.vkCmdSetRenderingAttachmentLocationsKHR &&
21511 "Function <vkCmdSetRenderingAttachmentLocationsKHR> requires <VK_KHR_dynamic_rendering_local_read> or <VK_VERSION_1_4>" );
21512 # endif
21513
21514 d.vkCmdSetRenderingAttachmentLocationsKHR( m_commandBuffer, reinterpret_cast<const VkRenderingAttachmentLocationInfo *>( &locationInfo ) );
21515 }
21516 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21517
21518 // wrapper function for command vkCmdSetRenderingInputAttachmentIndicesKHR, see
21519 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingInputAttachmentIndicesKHR.html
21520 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingInputAttachmentIndicesKHR ), bool>::type>
21521 VULKAN_HPP_INLINE void CommandBuffer::setRenderingInputAttachmentIndicesKHR( const RenderingInputAttachmentIndexInfo * pInputAttachmentIndexInfo,
21522 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21523 {
21524 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21525 d.vkCmdSetRenderingInputAttachmentIndicesKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
21526 reinterpret_cast<const VkRenderingInputAttachmentIndexInfo *>( pInputAttachmentIndexInfo ) );
21527 }
21528
21529 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21530 // wrapper function for command vkCmdSetRenderingInputAttachmentIndicesKHR, see
21531 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRenderingInputAttachmentIndicesKHR.html
21532 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRenderingInputAttachmentIndicesKHR ), bool>::type>
21533 VULKAN_HPP_INLINE void CommandBuffer::setRenderingInputAttachmentIndicesKHR( const RenderingInputAttachmentIndexInfo & inputAttachmentIndexInfo,
21534 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21535 {
21536 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21537 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21538 VULKAN_HPP_ASSERT( d.vkCmdSetRenderingInputAttachmentIndicesKHR &&
21539 "Function <vkCmdSetRenderingInputAttachmentIndicesKHR> requires <VK_KHR_dynamic_rendering_local_read> or <VK_VERSION_1_4>" );
21540 # endif
21541
21542 d.vkCmdSetRenderingInputAttachmentIndicesKHR( m_commandBuffer, reinterpret_cast<const VkRenderingInputAttachmentIndexInfo *>( &inputAttachmentIndexInfo ) );
21543 }
21544 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21545
21546 //=== VK_EXT_buffer_device_address ===
21547
21548 // wrapper function for command vkGetBufferDeviceAddressEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddressEXT.html
21549 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferDeviceAddressEXT ), bool>::type>
21550 VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddressEXT( const BufferDeviceAddressInfo * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21551 {
21552 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21553 return static_cast<DeviceAddress>(
21554 d.vkGetBufferDeviceAddressEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkBufferDeviceAddressInfo *>( pInfo ) ) );
21555 }
21556
21557 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21558 // wrapper function for command vkGetBufferDeviceAddressEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddressEXT.html
21559 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferDeviceAddressEXT ), bool>::type>
21560 VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddressEXT( const BufferDeviceAddressInfo & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21561 {
21562 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21563 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21564 VULKAN_HPP_ASSERT( d.vkGetBufferDeviceAddressEXT &&
21565 "Function <vkGetBufferDeviceAddressEXT> requires <VK_EXT_buffer_device_address> or <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
21566 # endif
21567
21568 VkDeviceAddress result = d.vkGetBufferDeviceAddressEXT( m_device, reinterpret_cast<const VkBufferDeviceAddressInfo *>( &info ) );
21569
21570 return static_cast<DeviceAddress>( result );
21571 }
21572 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21573
21574 //=== VK_EXT_tooling_info ===
21575
21576 // wrapper function for command vkGetPhysicalDeviceToolPropertiesEXT, see
21577 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolPropertiesEXT.html
21578 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceToolPropertiesEXT ), bool>::type>
21579 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getToolPropertiesEXT( uint32_t * pToolCount,
21580 PhysicalDeviceToolProperties * pToolProperties,
21581 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21582 {
21583 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21584 return static_cast<Result>( d.vkGetPhysicalDeviceToolPropertiesEXT(
21585 static_cast<VkPhysicalDevice>( m_physicalDevice ), pToolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( pToolProperties ) ) );
21586 }
21587
21588 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21589 // wrapper function for command vkGetPhysicalDeviceToolPropertiesEXT, see
21590 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolPropertiesEXT.html
21591 template <typename PhysicalDeviceToolPropertiesAllocator,
21592 typename Dispatch,
21593 typename std::enable_if<std::is_same<typename PhysicalDeviceToolPropertiesAllocator::value_type, PhysicalDeviceToolProperties>::value, int>::type,
21594 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceToolPropertiesEXT ), bool>::type>
21595 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator>>::type
21596 PhysicalDevice::getToolPropertiesEXT( Dispatch const & d ) const
21597 {
21598 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21599 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21600 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceToolPropertiesEXT &&
21601 "Function <vkGetPhysicalDeviceToolPropertiesEXT> requires <VK_EXT_tooling_info> or <VK_VERSION_1_3>" );
21602 # endif
21603
21604 std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator> toolProperties;
21605 uint32_t toolCount;
21606 Result result;
21607 do
21608 {
21609 result = static_cast<Result>( d.vkGetPhysicalDeviceToolPropertiesEXT( m_physicalDevice, &toolCount, nullptr ) );
21610 if ( ( result == Result::eSuccess ) && toolCount )
21611 {
21612 toolProperties.resize( toolCount );
21613 result = static_cast<Result>(
21614 d.vkGetPhysicalDeviceToolPropertiesEXT( m_physicalDevice, &toolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( toolProperties.data() ) ) );
21615 }
21616 } while ( result == Result::eIncomplete );
21617 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolPropertiesEXT" );
21618 VULKAN_HPP_ASSERT( toolCount <= toolProperties.size() );
21619 if ( toolCount < toolProperties.size() )
21620 {
21621 toolProperties.resize( toolCount );
21622 }
21623 return detail::createResultValueType( result, std::move( toolProperties ) );
21624 }
21625
21626 // wrapper function for command vkGetPhysicalDeviceToolPropertiesEXT, see
21627 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceToolPropertiesEXT.html
21628 template <typename PhysicalDeviceToolPropertiesAllocator,
21629 typename Dispatch,
21630 typename std::enable_if<std::is_same<typename PhysicalDeviceToolPropertiesAllocator::value_type, PhysicalDeviceToolProperties>::value, int>::type,
21631 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceToolPropertiesEXT ), bool>::type>
21632 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator>>::type
21633 PhysicalDevice::getToolPropertiesEXT( PhysicalDeviceToolPropertiesAllocator const & physicalDeviceToolPropertiesAllocator, Dispatch const & d ) const
21634 {
21635 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21636 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21637 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceToolPropertiesEXT &&
21638 "Function <vkGetPhysicalDeviceToolPropertiesEXT> requires <VK_EXT_tooling_info> or <VK_VERSION_1_3>" );
21639 # endif
21640
21641 std::vector<PhysicalDeviceToolProperties, PhysicalDeviceToolPropertiesAllocator> toolProperties( physicalDeviceToolPropertiesAllocator );
21642 uint32_t toolCount;
21643 Result result;
21644 do
21645 {
21646 result = static_cast<Result>( d.vkGetPhysicalDeviceToolPropertiesEXT( m_physicalDevice, &toolCount, nullptr ) );
21647 if ( ( result == Result::eSuccess ) && toolCount )
21648 {
21649 toolProperties.resize( toolCount );
21650 result = static_cast<Result>(
21651 d.vkGetPhysicalDeviceToolPropertiesEXT( m_physicalDevice, &toolCount, reinterpret_cast<VkPhysicalDeviceToolProperties *>( toolProperties.data() ) ) );
21652 }
21653 } while ( result == Result::eIncomplete );
21654 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getToolPropertiesEXT" );
21655 VULKAN_HPP_ASSERT( toolCount <= toolProperties.size() );
21656 if ( toolCount < toolProperties.size() )
21657 {
21658 toolProperties.resize( toolCount );
21659 }
21660 return detail::createResultValueType( result, std::move( toolProperties ) );
21661 }
21662 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21663
21664 //=== VK_KHR_present_wait ===
21665
21666 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
21667 // wrapper function for command vkWaitForPresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForPresentKHR.html
21668 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitForPresentKHR ), bool>::type>
21669 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
21670 Device::waitForPresentKHR( SwapchainKHR swapchain, uint64_t presentId, uint64_t timeout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21671 {
21672 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21673 return static_cast<Result>( d.vkWaitForPresentKHR( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), presentId, timeout ) );
21674 }
21675 #else
21676 // wrapper function for command vkWaitForPresentKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForPresentKHR.html
21677 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitForPresentKHR ), bool>::type>
21678 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
21679 Device::waitForPresentKHR( SwapchainKHR swapchain, uint64_t presentId, uint64_t timeout, Dispatch const & d ) const
21680 {
21681 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21682 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21683 VULKAN_HPP_ASSERT( d.vkWaitForPresentKHR && "Function <vkWaitForPresentKHR> requires <VK_KHR_present_wait>" );
21684 # endif
21685
21686 Result result = static_cast<Result>( d.vkWaitForPresentKHR( m_device, static_cast<VkSwapchainKHR>( swapchain ), presentId, timeout ) );
21687
21688 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
21689 detail::resultCheck( result,
21690 VULKAN_HPP_NAMESPACE_STRING "::Device::waitForPresentKHR",
21691 { Result::eSuccess, Result::eTimeout, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
21692 # else
21693 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitForPresentKHR", { Result::eSuccess, Result::eTimeout, Result::eSuboptimalKHR } );
21694 # endif
21695
21696 return static_cast<Result>( result );
21697 }
21698 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
21699
21700 //=== VK_NV_cooperative_matrix ===
21701
21702 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesNV, see
21703 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesNV.html
21704 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesNV ), bool>::type>
21705 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCooperativeMatrixPropertiesNV( uint32_t * pPropertyCount,
21706 CooperativeMatrixPropertiesNV * pProperties,
21707 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21708 {
21709 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21710 return static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV(
21711 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesNV *>( pProperties ) ) );
21712 }
21713
21714 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21715 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesNV, see
21716 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesNV.html
21717 template <typename CooperativeMatrixPropertiesNVAllocator,
21718 typename Dispatch,
21719 typename std::enable_if<std::is_same<typename CooperativeMatrixPropertiesNVAllocator::value_type, CooperativeMatrixPropertiesNV>::value, int>::type,
21720 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesNV ), bool>::type>
21721 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeMatrixPropertiesNV, CooperativeMatrixPropertiesNVAllocator>>::type
21722 PhysicalDevice::getCooperativeMatrixPropertiesNV( Dispatch const & d ) const
21723 {
21724 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21725 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21726 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV &&
21727 "Function <vkGetPhysicalDeviceCooperativeMatrixPropertiesNV> requires <VK_NV_cooperative_matrix>" );
21728 # endif
21729
21730 std::vector<CooperativeMatrixPropertiesNV, CooperativeMatrixPropertiesNVAllocator> properties;
21731 uint32_t propertyCount;
21732 Result result;
21733 do
21734 {
21735 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) );
21736 if ( ( result == Result::eSuccess ) && propertyCount )
21737 {
21738 properties.resize( propertyCount );
21739 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV(
21740 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesNV *>( properties.data() ) ) );
21741 }
21742 } while ( result == Result::eIncomplete );
21743 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesNV" );
21744 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
21745 if ( propertyCount < properties.size() )
21746 {
21747 properties.resize( propertyCount );
21748 }
21749 return detail::createResultValueType( result, std::move( properties ) );
21750 }
21751
21752 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesNV, see
21753 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesNV.html
21754 template <typename CooperativeMatrixPropertiesNVAllocator,
21755 typename Dispatch,
21756 typename std::enable_if<std::is_same<typename CooperativeMatrixPropertiesNVAllocator::value_type, CooperativeMatrixPropertiesNV>::value, int>::type,
21757 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesNV ), bool>::type>
21758 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeMatrixPropertiesNV, CooperativeMatrixPropertiesNVAllocator>>::type
21759 PhysicalDevice::getCooperativeMatrixPropertiesNV( CooperativeMatrixPropertiesNVAllocator const & cooperativeMatrixPropertiesNVAllocator,
21760 Dispatch const & d ) const
21761 {
21762 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21763 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21764 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV &&
21765 "Function <vkGetPhysicalDeviceCooperativeMatrixPropertiesNV> requires <VK_NV_cooperative_matrix>" );
21766 # endif
21767
21768 std::vector<CooperativeMatrixPropertiesNV, CooperativeMatrixPropertiesNVAllocator> properties( cooperativeMatrixPropertiesNVAllocator );
21769 uint32_t propertyCount;
21770 Result result;
21771 do
21772 {
21773 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) );
21774 if ( ( result == Result::eSuccess ) && propertyCount )
21775 {
21776 properties.resize( propertyCount );
21777 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesNV(
21778 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesNV *>( properties.data() ) ) );
21779 }
21780 } while ( result == Result::eIncomplete );
21781 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesNV" );
21782 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
21783 if ( propertyCount < properties.size() )
21784 {
21785 properties.resize( propertyCount );
21786 }
21787 return detail::createResultValueType( result, std::move( properties ) );
21788 }
21789 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21790
21791 //=== VK_NV_coverage_reduction_mode ===
21792
21793 // wrapper function for command vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV, see
21794 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV.html
21795 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV ), bool>::type>
21796 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV(
21797 uint32_t * pCombinationCount, FramebufferMixedSamplesCombinationNV * pCombinations, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21798 {
21799 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21800 return static_cast<Result>( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
21801 static_cast<VkPhysicalDevice>( m_physicalDevice ), pCombinationCount, reinterpret_cast<VkFramebufferMixedSamplesCombinationNV *>( pCombinations ) ) );
21802 }
21803
21804 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21805 // wrapper function for command vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV, see
21806 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV.html
21807 template <
21808 typename FramebufferMixedSamplesCombinationNVAllocator,
21809 typename Dispatch,
21810 typename std::enable_if<std::is_same<typename FramebufferMixedSamplesCombinationNVAllocator::value_type, FramebufferMixedSamplesCombinationNV>::value,
21811 int>::type,
21812 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV ), bool>::type>
21813 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
21814 typename ResultValueType<std::vector<FramebufferMixedSamplesCombinationNV, FramebufferMixedSamplesCombinationNVAllocator>>::type
21815 PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV( Dispatch const & d ) const
21816 {
21817 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21818 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21819 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV &&
21820 "Function <vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV> requires <VK_NV_coverage_reduction_mode>" );
21821 # endif
21822
21823 std::vector<FramebufferMixedSamplesCombinationNV, FramebufferMixedSamplesCombinationNVAllocator> combinations;
21824 uint32_t combinationCount;
21825 Result result;
21826 do
21827 {
21828 result = static_cast<Result>( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( m_physicalDevice, &combinationCount, nullptr ) );
21829 if ( ( result == Result::eSuccess ) && combinationCount )
21830 {
21831 combinations.resize( combinationCount );
21832 result = static_cast<Result>( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
21833 m_physicalDevice, &combinationCount, reinterpret_cast<VkFramebufferMixedSamplesCombinationNV *>( combinations.data() ) ) );
21834 }
21835 } while ( result == Result::eIncomplete );
21836 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV" );
21837 VULKAN_HPP_ASSERT( combinationCount <= combinations.size() );
21838 if ( combinationCount < combinations.size() )
21839 {
21840 combinations.resize( combinationCount );
21841 }
21842 return detail::createResultValueType( result, std::move( combinations ) );
21843 }
21844
21845 // wrapper function for command vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV, see
21846 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV.html
21847 template <
21848 typename FramebufferMixedSamplesCombinationNVAllocator,
21849 typename Dispatch,
21850 typename std::enable_if<std::is_same<typename FramebufferMixedSamplesCombinationNVAllocator::value_type, FramebufferMixedSamplesCombinationNV>::value,
21851 int>::type,
21852 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV ), bool>::type>
21853 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
21854 typename ResultValueType<std::vector<FramebufferMixedSamplesCombinationNV, FramebufferMixedSamplesCombinationNVAllocator>>::type
21855 PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV(
21856 FramebufferMixedSamplesCombinationNVAllocator const & framebufferMixedSamplesCombinationNVAllocator, Dispatch const & d ) const
21857 {
21858 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21859 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21860 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV &&
21861 "Function <vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV> requires <VK_NV_coverage_reduction_mode>" );
21862 # endif
21863
21864 std::vector<FramebufferMixedSamplesCombinationNV, FramebufferMixedSamplesCombinationNVAllocator> combinations(
21865 framebufferMixedSamplesCombinationNVAllocator );
21866 uint32_t combinationCount;
21867 Result result;
21868 do
21869 {
21870 result = static_cast<Result>( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV( m_physicalDevice, &combinationCount, nullptr ) );
21871 if ( ( result == Result::eSuccess ) && combinationCount )
21872 {
21873 combinations.resize( combinationCount );
21874 result = static_cast<Result>( d.vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV(
21875 m_physicalDevice, &combinationCount, reinterpret_cast<VkFramebufferMixedSamplesCombinationNV *>( combinations.data() ) ) );
21876 }
21877 } while ( result == Result::eIncomplete );
21878 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSupportedFramebufferMixedSamplesCombinationsNV" );
21879 VULKAN_HPP_ASSERT( combinationCount <= combinations.size() );
21880 if ( combinationCount < combinations.size() )
21881 {
21882 combinations.resize( combinationCount );
21883 }
21884 return detail::createResultValueType( result, std::move( combinations ) );
21885 }
21886 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21887
21888 #if defined( VK_USE_PLATFORM_WIN32_KHR )
21889 //=== VK_EXT_full_screen_exclusive ===
21890
21891 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModes2EXT, see
21892 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModes2EXT.html
21893 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfacePresentModes2EXT ), bool>::type>
21894 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getSurfacePresentModes2EXT( const PhysicalDeviceSurfaceInfo2KHR * pSurfaceInfo,
21895 uint32_t * pPresentModeCount,
21896 PresentModeKHR * pPresentModes,
21897 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21898 {
21899 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21900 return static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( static_cast<VkPhysicalDevice>( m_physicalDevice ),
21901 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( pSurfaceInfo ),
21902 pPresentModeCount,
21903 reinterpret_cast<VkPresentModeKHR *>( pPresentModes ) ) );
21904 }
21905
21906 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
21907 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModes2EXT, see
21908 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModes2EXT.html
21909 template <typename PresentModeKHRAllocator,
21910 typename Dispatch,
21911 typename std::enable_if<std::is_same<typename PresentModeKHRAllocator::value_type, PresentModeKHR>::value, int>::type,
21912 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfacePresentModes2EXT ), bool>::type>
21913 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PresentModeKHR, PresentModeKHRAllocator>>::type
21914 PhysicalDevice::getSurfacePresentModes2EXT( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo, Dispatch const & d ) const
21915 {
21916 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21917 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21918 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfacePresentModes2EXT &&
21919 "Function <vkGetPhysicalDeviceSurfacePresentModes2EXT> requires <VK_EXT_full_screen_exclusive>" );
21920 # endif
21921
21922 std::vector<PresentModeKHR, PresentModeKHRAllocator> presentModes;
21923 uint32_t presentModeCount;
21924 Result result;
21925 do
21926 {
21927 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModes2EXT(
21928 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ), &presentModeCount, nullptr ) );
21929 if ( ( result == Result::eSuccess ) && presentModeCount )
21930 {
21931 presentModes.resize( presentModeCount );
21932 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( m_physicalDevice,
21933 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
21934 &presentModeCount,
21935 reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
21936 }
21937 } while ( result == Result::eIncomplete );
21938 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModes2EXT" );
21939 VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
21940 if ( presentModeCount < presentModes.size() )
21941 {
21942 presentModes.resize( presentModeCount );
21943 }
21944 return detail::createResultValueType( result, std::move( presentModes ) );
21945 }
21946
21947 // wrapper function for command vkGetPhysicalDeviceSurfacePresentModes2EXT, see
21948 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceSurfacePresentModes2EXT.html
21949 template <typename PresentModeKHRAllocator,
21950 typename Dispatch,
21951 typename std::enable_if<std::is_same<typename PresentModeKHRAllocator::value_type, PresentModeKHR>::value, int>::type,
21952 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceSurfacePresentModes2EXT ), bool>::type>
21953 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PresentModeKHR, PresentModeKHRAllocator>>::type
21954 PhysicalDevice::getSurfacePresentModes2EXT( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo,
21955 PresentModeKHRAllocator const & presentModeKHRAllocator,
21956 Dispatch const & d ) const
21957 {
21958 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21959 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
21960 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceSurfacePresentModes2EXT &&
21961 "Function <vkGetPhysicalDeviceSurfacePresentModes2EXT> requires <VK_EXT_full_screen_exclusive>" );
21962 # endif
21963
21964 std::vector<PresentModeKHR, PresentModeKHRAllocator> presentModes( presentModeKHRAllocator );
21965 uint32_t presentModeCount;
21966 Result result;
21967 do
21968 {
21969 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModes2EXT(
21970 m_physicalDevice, reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ), &presentModeCount, nullptr ) );
21971 if ( ( result == Result::eSuccess ) && presentModeCount )
21972 {
21973 presentModes.resize( presentModeCount );
21974 result = static_cast<Result>( d.vkGetPhysicalDeviceSurfacePresentModes2EXT( m_physicalDevice,
21975 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ),
21976 &presentModeCount,
21977 reinterpret_cast<VkPresentModeKHR *>( presentModes.data() ) ) );
21978 }
21979 } while ( result == Result::eIncomplete );
21980 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getSurfacePresentModes2EXT" );
21981 VULKAN_HPP_ASSERT( presentModeCount <= presentModes.size() );
21982 if ( presentModeCount < presentModes.size() )
21983 {
21984 presentModes.resize( presentModeCount );
21985 }
21986 return detail::createResultValueType( result, std::move( presentModes ) );
21987 }
21988 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
21989
21990 # ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
21991 // wrapper function for command vkAcquireFullScreenExclusiveModeEXT, see
21992 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireFullScreenExclusiveModeEXT.html
21993 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireFullScreenExclusiveModeEXT ), bool>::type>
21994 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::acquireFullScreenExclusiveModeEXT( SwapchainKHR swapchain,
21995 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
21996 {
21997 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
21998 return static_cast<Result>( d.vkAcquireFullScreenExclusiveModeEXT( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ) ) );
21999 }
22000 # else
22001 // wrapper function for command vkAcquireFullScreenExclusiveModeEXT, see
22002 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireFullScreenExclusiveModeEXT.html
22003 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireFullScreenExclusiveModeEXT ), bool>::type>
22004 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
22005 Device::acquireFullScreenExclusiveModeEXT( SwapchainKHR swapchain, Dispatch const & d ) const
22006 {
22007 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22008 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22009 VULKAN_HPP_ASSERT( d.vkAcquireFullScreenExclusiveModeEXT && "Function <vkAcquireFullScreenExclusiveModeEXT> requires <VK_EXT_full_screen_exclusive>" );
22010 # endif
22011
22012 Result result = static_cast<Result>( d.vkAcquireFullScreenExclusiveModeEXT( m_device, static_cast<VkSwapchainKHR>( swapchain ) ) );
22013 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::acquireFullScreenExclusiveModeEXT" );
22014
22015 return detail::createResultValueType( result );
22016 }
22017 # endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
22018
22019 # ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
22020 // wrapper function for command vkReleaseFullScreenExclusiveModeEXT, see
22021 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseFullScreenExclusiveModeEXT.html
22022 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseFullScreenExclusiveModeEXT ), bool>::type>
22023 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::releaseFullScreenExclusiveModeEXT( SwapchainKHR swapchain,
22024 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22025 {
22026 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22027 return static_cast<Result>( d.vkReleaseFullScreenExclusiveModeEXT( static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ) ) );
22028 }
22029 # else
22030 // wrapper function for command vkReleaseFullScreenExclusiveModeEXT, see
22031 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseFullScreenExclusiveModeEXT.html
22032 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseFullScreenExclusiveModeEXT ), bool>::type>
22033 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
22034 Device::releaseFullScreenExclusiveModeEXT( SwapchainKHR swapchain, Dispatch const & d ) const
22035 {
22036 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22037 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22038 VULKAN_HPP_ASSERT( d.vkReleaseFullScreenExclusiveModeEXT && "Function <vkReleaseFullScreenExclusiveModeEXT> requires <VK_EXT_full_screen_exclusive>" );
22039 # endif
22040
22041 Result result = static_cast<Result>( d.vkReleaseFullScreenExclusiveModeEXT( m_device, static_cast<VkSwapchainKHR>( swapchain ) ) );
22042 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releaseFullScreenExclusiveModeEXT" );
22043
22044 return detail::createResultValueType( result );
22045 }
22046 # endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
22047
22048 // wrapper function for command vkGetDeviceGroupSurfacePresentModes2EXT, see
22049 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupSurfacePresentModes2EXT.html
22050 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupSurfacePresentModes2EXT ), bool>::type>
22051 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getGroupSurfacePresentModes2EXT( const PhysicalDeviceSurfaceInfo2KHR * pSurfaceInfo,
22052 DeviceGroupPresentModeFlagsKHR * pModes,
22053 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22054 {
22055 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22056 return static_cast<Result>( d.vkGetDeviceGroupSurfacePresentModes2EXT( static_cast<VkDevice>( m_device ),
22057 reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( pSurfaceInfo ),
22058 reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( pModes ) ) );
22059 }
22060
22061 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22062 // wrapper function for command vkGetDeviceGroupSurfacePresentModes2EXT, see
22063 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceGroupSurfacePresentModes2EXT.html
22064 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceGroupSurfacePresentModes2EXT ), bool>::type>
22065 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeviceGroupPresentModeFlagsKHR>::type
22066 Device::getGroupSurfacePresentModes2EXT( const PhysicalDeviceSurfaceInfo2KHR & surfaceInfo, Dispatch const & d ) const
22067 {
22068 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22069 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22070 VULKAN_HPP_ASSERT( d.vkGetDeviceGroupSurfacePresentModes2EXT &&
22071 "Function <vkGetDeviceGroupSurfacePresentModes2EXT> requires <VK_EXT_full_screen_exclusive>" );
22072 # endif
22073
22074 DeviceGroupPresentModeFlagsKHR modes;
22075 Result result = static_cast<Result>( d.vkGetDeviceGroupSurfacePresentModes2EXT(
22076 m_device, reinterpret_cast<const VkPhysicalDeviceSurfaceInfo2KHR *>( &surfaceInfo ), reinterpret_cast<VkDeviceGroupPresentModeFlagsKHR *>( &modes ) ) );
22077 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getGroupSurfacePresentModes2EXT" );
22078
22079 return detail::createResultValueType( result, std::move( modes ) );
22080 }
22081 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22082 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
22083
22084 //=== VK_EXT_headless_surface ===
22085
22086 // wrapper function for command vkCreateHeadlessSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateHeadlessSurfaceEXT.html
22087 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateHeadlessSurfaceEXT ), bool>::type>
22088 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createHeadlessSurfaceEXT( const HeadlessSurfaceCreateInfoEXT * pCreateInfo,
22089 const AllocationCallbacks * pAllocator,
22090 SurfaceKHR * pSurface,
22091 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22092 {
22093 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22094 return static_cast<Result>( d.vkCreateHeadlessSurfaceEXT( static_cast<VkInstance>( m_instance ),
22095 reinterpret_cast<const VkHeadlessSurfaceCreateInfoEXT *>( pCreateInfo ),
22096 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
22097 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
22098 }
22099
22100 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22101 // wrapper function for command vkCreateHeadlessSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateHeadlessSurfaceEXT.html
22102 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateHeadlessSurfaceEXT ), bool>::type>
22103 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createHeadlessSurfaceEXT(
22104 const HeadlessSurfaceCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
22105 {
22106 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22107 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22108 VULKAN_HPP_ASSERT( d.vkCreateHeadlessSurfaceEXT && "Function <vkCreateHeadlessSurfaceEXT> requires <VK_EXT_headless_surface>" );
22109 # endif
22110
22111 SurfaceKHR surface;
22112 Result result = static_cast<Result>( d.vkCreateHeadlessSurfaceEXT( m_instance,
22113 reinterpret_cast<const VkHeadlessSurfaceCreateInfoEXT *>( &createInfo ),
22114 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
22115 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
22116 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createHeadlessSurfaceEXT" );
22117
22118 return detail::createResultValueType( result, std::move( surface ) );
22119 }
22120
22121 # ifndef VULKAN_HPP_NO_SMART_HANDLE
22122 // wrapper function for command vkCreateHeadlessSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateHeadlessSurfaceEXT.html
22123 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateHeadlessSurfaceEXT ), bool>::type>
22124 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createHeadlessSurfaceEXTUnique(
22125 const HeadlessSurfaceCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
22126 {
22127 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22128 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22129 VULKAN_HPP_ASSERT( d.vkCreateHeadlessSurfaceEXT && "Function <vkCreateHeadlessSurfaceEXT> requires <VK_EXT_headless_surface>" );
22130 # endif
22131
22132 SurfaceKHR surface;
22133 Result result = static_cast<Result>( d.vkCreateHeadlessSurfaceEXT( m_instance,
22134 reinterpret_cast<const VkHeadlessSurfaceCreateInfoEXT *>( &createInfo ),
22135 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
22136 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
22137 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createHeadlessSurfaceEXTUnique" );
22138
22139 return detail::createResultValueType( result,
22140 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
22141 }
22142 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
22143 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22144
22145 //=== VK_KHR_buffer_device_address ===
22146
22147 // wrapper function for command vkGetBufferDeviceAddressKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddressKHR.html
22148 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferDeviceAddressKHR ), bool>::type>
22149 VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddressKHR( const BufferDeviceAddressInfo * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22150 {
22151 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22152 return static_cast<DeviceAddress>(
22153 d.vkGetBufferDeviceAddressKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkBufferDeviceAddressInfo *>( pInfo ) ) );
22154 }
22155
22156 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22157 // wrapper function for command vkGetBufferDeviceAddressKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferDeviceAddressKHR.html
22158 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferDeviceAddressKHR ), bool>::type>
22159 VULKAN_HPP_INLINE DeviceAddress Device::getBufferAddressKHR( const BufferDeviceAddressInfo & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22160 {
22161 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22162 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22163 VULKAN_HPP_ASSERT( d.vkGetBufferDeviceAddressKHR &&
22164 "Function <vkGetBufferDeviceAddressKHR> requires <VK_EXT_buffer_device_address> or <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
22165 # endif
22166
22167 VkDeviceAddress result = d.vkGetBufferDeviceAddressKHR( m_device, reinterpret_cast<const VkBufferDeviceAddressInfo *>( &info ) );
22168
22169 return static_cast<DeviceAddress>( result );
22170 }
22171 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22172
22173 // wrapper function for command vkGetBufferOpaqueCaptureAddressKHR, see
22174 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureAddressKHR.html
22175 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferOpaqueCaptureAddressKHR ), bool>::type>
22176 VULKAN_HPP_INLINE uint64_t Device::getBufferOpaqueCaptureAddressKHR( const BufferDeviceAddressInfo * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22177 {
22178 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22179 return d.vkGetBufferOpaqueCaptureAddressKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkBufferDeviceAddressInfo *>( pInfo ) );
22180 }
22181
22182 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22183 // wrapper function for command vkGetBufferOpaqueCaptureAddressKHR, see
22184 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureAddressKHR.html
22185 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferOpaqueCaptureAddressKHR ), bool>::type>
22186 VULKAN_HPP_INLINE uint64_t Device::getBufferOpaqueCaptureAddressKHR( const BufferDeviceAddressInfo & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22187 {
22188 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22189 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22190 VULKAN_HPP_ASSERT( d.vkGetBufferOpaqueCaptureAddressKHR &&
22191 "Function <vkGetBufferOpaqueCaptureAddressKHR> requires <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
22192 # endif
22193
22194 uint64_t result = d.vkGetBufferOpaqueCaptureAddressKHR( m_device, reinterpret_cast<const VkBufferDeviceAddressInfo *>( &info ) );
22195
22196 return result;
22197 }
22198 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22199
22200 // wrapper function for command vkGetDeviceMemoryOpaqueCaptureAddressKHR, see
22201 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryOpaqueCaptureAddressKHR.html
22202 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMemoryOpaqueCaptureAddressKHR ), bool>::type>
22203 VULKAN_HPP_INLINE uint64_t Device::getMemoryOpaqueCaptureAddressKHR( const DeviceMemoryOpaqueCaptureAddressInfo * pInfo,
22204 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22205 {
22206 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22207 return d.vkGetDeviceMemoryOpaqueCaptureAddressKHR( static_cast<VkDevice>( m_device ),
22208 reinterpret_cast<const VkDeviceMemoryOpaqueCaptureAddressInfo *>( pInfo ) );
22209 }
22210
22211 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22212 // wrapper function for command vkGetDeviceMemoryOpaqueCaptureAddressKHR, see
22213 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMemoryOpaqueCaptureAddressKHR.html
22214 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMemoryOpaqueCaptureAddressKHR ), bool>::type>
22215 VULKAN_HPP_INLINE uint64_t Device::getMemoryOpaqueCaptureAddressKHR( const DeviceMemoryOpaqueCaptureAddressInfo & info,
22216 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22217 {
22218 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22219 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22220 VULKAN_HPP_ASSERT( d.vkGetDeviceMemoryOpaqueCaptureAddressKHR &&
22221 "Function <vkGetDeviceMemoryOpaqueCaptureAddressKHR> requires <VK_KHR_buffer_device_address> or <VK_VERSION_1_2>" );
22222 # endif
22223
22224 uint64_t result = d.vkGetDeviceMemoryOpaqueCaptureAddressKHR( m_device, reinterpret_cast<const VkDeviceMemoryOpaqueCaptureAddressInfo *>( &info ) );
22225
22226 return result;
22227 }
22228 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22229
22230 //=== VK_EXT_line_rasterization ===
22231
22232 // wrapper function for command vkCmdSetLineStippleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStippleEXT.html
22233 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLineStippleEXT ), bool>::type>
22234 VULKAN_HPP_INLINE void
22235 CommandBuffer::setLineStippleEXT( uint32_t lineStippleFactor, uint16_t lineStipplePattern, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22236 {
22237 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22238 d.vkCmdSetLineStippleEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), lineStippleFactor, lineStipplePattern );
22239 }
22240
22241 //=== VK_EXT_host_query_reset ===
22242
22243 // wrapper function for command vkResetQueryPoolEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkResetQueryPoolEXT.html
22244 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkResetQueryPoolEXT ), bool>::type>
22245 VULKAN_HPP_INLINE void
22246 Device::resetQueryPoolEXT( QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22247 {
22248 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22249 d.vkResetQueryPoolEXT( static_cast<VkDevice>( m_device ), static_cast<VkQueryPool>( queryPool ), firstQuery, queryCount );
22250 }
22251
22252 //=== VK_EXT_extended_dynamic_state ===
22253
22254 // wrapper function for command vkCmdSetCullModeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCullModeEXT.html
22255 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCullModeEXT ), bool>::type>
22256 VULKAN_HPP_INLINE void CommandBuffer::setCullModeEXT( CullModeFlags cullMode, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22257 {
22258 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22259 d.vkCmdSetCullModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCullModeFlags>( cullMode ) );
22260 }
22261
22262 // wrapper function for command vkCmdSetFrontFaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFrontFaceEXT.html
22263 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetFrontFaceEXT ), bool>::type>
22264 VULKAN_HPP_INLINE void CommandBuffer::setFrontFaceEXT( FrontFace frontFace, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22265 {
22266 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22267 d.vkCmdSetFrontFaceEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkFrontFace>( frontFace ) );
22268 }
22269
22270 // wrapper function for command vkCmdSetPrimitiveTopologyEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveTopologyEXT.html
22271 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPrimitiveTopologyEXT ), bool>::type>
22272 VULKAN_HPP_INLINE void CommandBuffer::setPrimitiveTopologyEXT( PrimitiveTopology primitiveTopology, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22273 {
22274 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22275 d.vkCmdSetPrimitiveTopologyEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPrimitiveTopology>( primitiveTopology ) );
22276 }
22277
22278 // wrapper function for command vkCmdSetViewportWithCountEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWithCountEXT.html
22279 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWithCountEXT ), bool>::type>
22280 VULKAN_HPP_INLINE void
22281 CommandBuffer::setViewportWithCountEXT( uint32_t viewportCount, const Viewport * pViewports, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22282 {
22283 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22284 d.vkCmdSetViewportWithCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), viewportCount, reinterpret_cast<const VkViewport *>( pViewports ) );
22285 }
22286
22287 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22288 // wrapper function for command vkCmdSetViewportWithCountEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWithCountEXT.html
22289 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWithCountEXT ), bool>::type>
22290 VULKAN_HPP_INLINE void CommandBuffer::setViewportWithCountEXT( ArrayProxy<const Viewport> const & viewports, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22291 {
22292 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22293 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22294 VULKAN_HPP_ASSERT( d.vkCmdSetViewportWithCountEXT &&
22295 "Function <vkCmdSetViewportWithCountEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
22296 # endif
22297
22298 d.vkCmdSetViewportWithCountEXT( m_commandBuffer, viewports.size(), reinterpret_cast<const VkViewport *>( viewports.data() ) );
22299 }
22300 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22301
22302 // wrapper function for command vkCmdSetScissorWithCountEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissorWithCountEXT.html
22303 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetScissorWithCountEXT ), bool>::type>
22304 VULKAN_HPP_INLINE void CommandBuffer::setScissorWithCountEXT( uint32_t scissorCount, const Rect2D * pScissors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22305 {
22306 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22307 d.vkCmdSetScissorWithCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), scissorCount, reinterpret_cast<const VkRect2D *>( pScissors ) );
22308 }
22309
22310 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22311 // wrapper function for command vkCmdSetScissorWithCountEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetScissorWithCountEXT.html
22312 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetScissorWithCountEXT ), bool>::type>
22313 VULKAN_HPP_INLINE void CommandBuffer::setScissorWithCountEXT( ArrayProxy<const Rect2D> const & scissors, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22314 {
22315 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22316 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22317 VULKAN_HPP_ASSERT( d.vkCmdSetScissorWithCountEXT &&
22318 "Function <vkCmdSetScissorWithCountEXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
22319 # endif
22320
22321 d.vkCmdSetScissorWithCountEXT( m_commandBuffer, scissors.size(), reinterpret_cast<const VkRect2D *>( scissors.data() ) );
22322 }
22323 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22324
22325 // wrapper function for command vkCmdBindVertexBuffers2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers2EXT.html
22326 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers2EXT ), bool>::type>
22327 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers2EXT( uint32_t firstBinding,
22328 uint32_t bindingCount,
22329 const Buffer * pBuffers,
22330 const DeviceSize * pOffsets,
22331 const DeviceSize * pSizes,
22332 const DeviceSize * pStrides,
22333 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22334 {
22335 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22336 d.vkCmdBindVertexBuffers2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
22337 firstBinding,
22338 bindingCount,
22339 reinterpret_cast<const VkBuffer *>( pBuffers ),
22340 reinterpret_cast<const VkDeviceSize *>( pOffsets ),
22341 reinterpret_cast<const VkDeviceSize *>( pSizes ),
22342 reinterpret_cast<const VkDeviceSize *>( pStrides ) );
22343 }
22344
22345 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22346 // wrapper function for command vkCmdBindVertexBuffers2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindVertexBuffers2EXT.html
22347 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindVertexBuffers2EXT ), bool>::type>
22348 VULKAN_HPP_INLINE void CommandBuffer::bindVertexBuffers2EXT( uint32_t firstBinding,
22349 ArrayProxy<const Buffer> const & buffers,
22350 ArrayProxy<const DeviceSize> const & offsets,
22351 ArrayProxy<const DeviceSize> const & sizes,
22352 ArrayProxy<const DeviceSize> const & strides,
22353 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
22354 {
22355 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22356 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22357 VULKAN_HPP_ASSERT( d.vkCmdBindVertexBuffers2EXT &&
22358 "Function <vkCmdBindVertexBuffers2EXT> requires <VK_EXT_extended_dynamic_state> or <VK_EXT_shader_object> or <VK_VERSION_1_3>" );
22359 # endif
22360 # ifdef VULKAN_HPP_NO_EXCEPTIONS
22361 VULKAN_HPP_ASSERT( buffers.size() == offsets.size() );
22362 VULKAN_HPP_ASSERT( sizes.empty() || buffers.size() == sizes.size() );
22363 VULKAN_HPP_ASSERT( strides.empty() || buffers.size() == strides.size() );
22364 # else
22365 if ( buffers.size() != offsets.size() )
22366 {
22367 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2EXT: buffers.size() != offsets.size()" );
22368 }
22369 if ( !sizes.empty() && buffers.size() != sizes.size() )
22370 {
22371 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2EXT: buffers.size() != sizes.size()" );
22372 }
22373 if ( !strides.empty() && buffers.size() != strides.size() )
22374 {
22375 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindVertexBuffers2EXT: buffers.size() != strides.size()" );
22376 }
22377 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
22378
22379 d.vkCmdBindVertexBuffers2EXT( m_commandBuffer,
22380 firstBinding,
22381 buffers.size(),
22382 reinterpret_cast<const VkBuffer *>( buffers.data() ),
22383 reinterpret_cast<const VkDeviceSize *>( offsets.data() ),
22384 reinterpret_cast<const VkDeviceSize *>( sizes.data() ),
22385 reinterpret_cast<const VkDeviceSize *>( strides.data() ) );
22386 }
22387 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22388
22389 // wrapper function for command vkCmdSetDepthTestEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthTestEnableEXT.html
22390 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthTestEnableEXT ), bool>::type>
22391 VULKAN_HPP_INLINE void CommandBuffer::setDepthTestEnableEXT( Bool32 depthTestEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22392 {
22393 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22394 d.vkCmdSetDepthTestEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthTestEnable ) );
22395 }
22396
22397 // wrapper function for command vkCmdSetDepthWriteEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthWriteEnableEXT.html
22398 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthWriteEnableEXT ), bool>::type>
22399 VULKAN_HPP_INLINE void CommandBuffer::setDepthWriteEnableEXT( Bool32 depthWriteEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22400 {
22401 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22402 d.vkCmdSetDepthWriteEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthWriteEnable ) );
22403 }
22404
22405 // wrapper function for command vkCmdSetDepthCompareOpEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthCompareOpEXT.html
22406 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthCompareOpEXT ), bool>::type>
22407 VULKAN_HPP_INLINE void CommandBuffer::setDepthCompareOpEXT( CompareOp depthCompareOp, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22408 {
22409 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22410 d.vkCmdSetDepthCompareOpEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCompareOp>( depthCompareOp ) );
22411 }
22412
22413 // wrapper function for command vkCmdSetDepthBoundsTestEnableEXT, see
22414 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBoundsTestEnableEXT.html
22415 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBoundsTestEnableEXT ), bool>::type>
22416 VULKAN_HPP_INLINE void CommandBuffer::setDepthBoundsTestEnableEXT( Bool32 depthBoundsTestEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22417 {
22418 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22419 d.vkCmdSetDepthBoundsTestEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBoundsTestEnable ) );
22420 }
22421
22422 // wrapper function for command vkCmdSetStencilTestEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilTestEnableEXT.html
22423 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilTestEnableEXT ), bool>::type>
22424 VULKAN_HPP_INLINE void CommandBuffer::setStencilTestEnableEXT( Bool32 stencilTestEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22425 {
22426 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22427 d.vkCmdSetStencilTestEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( stencilTestEnable ) );
22428 }
22429
22430 // wrapper function for command vkCmdSetStencilOpEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetStencilOpEXT.html
22431 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetStencilOpEXT ), bool>::type>
22432 VULKAN_HPP_INLINE void CommandBuffer::setStencilOpEXT(
22433 StencilFaceFlags faceMask, StencilOp failOp, StencilOp passOp, StencilOp depthFailOp, CompareOp compareOp, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22434 {
22435 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22436 d.vkCmdSetStencilOpEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
22437 static_cast<VkStencilFaceFlags>( faceMask ),
22438 static_cast<VkStencilOp>( failOp ),
22439 static_cast<VkStencilOp>( passOp ),
22440 static_cast<VkStencilOp>( depthFailOp ),
22441 static_cast<VkCompareOp>( compareOp ) );
22442 }
22443
22444 //=== VK_KHR_deferred_host_operations ===
22445
22446 // wrapper function for command vkCreateDeferredOperationKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDeferredOperationKHR.html
22447 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDeferredOperationKHR ), bool>::type>
22448 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDeferredOperationKHR( const AllocationCallbacks * pAllocator,
22449 DeferredOperationKHR * pDeferredOperation,
22450 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22451 {
22452 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22453 return static_cast<Result>( d.vkCreateDeferredOperationKHR( static_cast<VkDevice>( m_device ),
22454 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
22455 reinterpret_cast<VkDeferredOperationKHR *>( pDeferredOperation ) ) );
22456 }
22457
22458 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22459 // wrapper function for command vkCreateDeferredOperationKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDeferredOperationKHR.html
22460 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDeferredOperationKHR ), bool>::type>
22461 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DeferredOperationKHR>::type
22462 Device::createDeferredOperationKHR( Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
22463 {
22464 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22465 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22466 VULKAN_HPP_ASSERT( d.vkCreateDeferredOperationKHR && "Function <vkCreateDeferredOperationKHR> requires <VK_KHR_deferred_host_operations>" );
22467 # endif
22468
22469 DeferredOperationKHR deferredOperation;
22470 Result result = static_cast<Result>( d.vkCreateDeferredOperationKHR(
22471 m_device, reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ), reinterpret_cast<VkDeferredOperationKHR *>( &deferredOperation ) ) );
22472 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDeferredOperationKHR" );
22473
22474 return detail::createResultValueType( result, std::move( deferredOperation ) );
22475 }
22476
22477 # ifndef VULKAN_HPP_NO_SMART_HANDLE
22478 // wrapper function for command vkCreateDeferredOperationKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDeferredOperationKHR.html
22479 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDeferredOperationKHR ), bool>::type>
22480 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DeferredOperationKHR, Dispatch>>::type
22481 Device::createDeferredOperationKHRUnique( Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
22482 {
22483 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22484 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22485 VULKAN_HPP_ASSERT( d.vkCreateDeferredOperationKHR && "Function <vkCreateDeferredOperationKHR> requires <VK_KHR_deferred_host_operations>" );
22486 # endif
22487
22488 DeferredOperationKHR deferredOperation;
22489 Result result = static_cast<Result>( d.vkCreateDeferredOperationKHR(
22490 m_device, reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ), reinterpret_cast<VkDeferredOperationKHR *>( &deferredOperation ) ) );
22491 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDeferredOperationKHRUnique" );
22492
22493 return detail::createResultValueType(
22494 result, UniqueHandle<DeferredOperationKHR, Dispatch>( deferredOperation, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
22495 }
22496 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
22497 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22498
22499 // wrapper function for command vkDestroyDeferredOperationKHR, see
22500 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDeferredOperationKHR.html
22501 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDeferredOperationKHR ), bool>::type>
22502 VULKAN_HPP_INLINE void
22503 Device::destroyDeferredOperationKHR( DeferredOperationKHR operation, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22504 {
22505 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22506 d.vkDestroyDeferredOperationKHR(
22507 static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( operation ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
22508 }
22509
22510 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22511 // wrapper function for command vkDestroyDeferredOperationKHR, see
22512 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDeferredOperationKHR.html
22513 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDeferredOperationKHR ), bool>::type>
22514 VULKAN_HPP_INLINE void Device::destroyDeferredOperationKHR( DeferredOperationKHR operation,
22515 Optional<const AllocationCallbacks> allocator,
22516 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22517 {
22518 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22519 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22520 VULKAN_HPP_ASSERT( d.vkDestroyDeferredOperationKHR && "Function <vkDestroyDeferredOperationKHR> requires <VK_KHR_deferred_host_operations>" );
22521 # endif
22522
22523 d.vkDestroyDeferredOperationKHR(
22524 m_device, static_cast<VkDeferredOperationKHR>( operation ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
22525 }
22526 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22527
22528 // wrapper function for command vkDestroyDeferredOperationKHR, see
22529 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDeferredOperationKHR.html
22530 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDeferredOperationKHR ), bool>::type>
22531 VULKAN_HPP_INLINE void Device::destroy( DeferredOperationKHR operation, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22532 {
22533 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22534 d.vkDestroyDeferredOperationKHR(
22535 static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( operation ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
22536 }
22537
22538 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22539 // wrapper function for command vkDestroyDeferredOperationKHR, see
22540 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDeferredOperationKHR.html
22541 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDeferredOperationKHR ), bool>::type>
22542 VULKAN_HPP_INLINE void
22543 Device::destroy( DeferredOperationKHR operation, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22544 {
22545 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22546 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22547 VULKAN_HPP_ASSERT( d.vkDestroyDeferredOperationKHR && "Function <vkDestroyDeferredOperationKHR> requires <VK_KHR_deferred_host_operations>" );
22548 # endif
22549
22550 d.vkDestroyDeferredOperationKHR(
22551 m_device, static_cast<VkDeferredOperationKHR>( operation ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
22552 }
22553 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22554
22555 // wrapper function for command vkGetDeferredOperationMaxConcurrencyKHR, see
22556 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeferredOperationMaxConcurrencyKHR.html
22557 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeferredOperationMaxConcurrencyKHR ), bool>::type>
22558 VULKAN_HPP_INLINE uint32_t Device::getDeferredOperationMaxConcurrencyKHR( DeferredOperationKHR operation, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22559 {
22560 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22561 return d.vkGetDeferredOperationMaxConcurrencyKHR( static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( operation ) );
22562 }
22563
22564 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
22565 // wrapper function for command vkGetDeferredOperationResultKHR, see
22566 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeferredOperationResultKHR.html
22567 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeferredOperationResultKHR ), bool>::type>
22568 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getDeferredOperationResultKHR( DeferredOperationKHR operation,
22569 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22570 {
22571 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22572 return static_cast<Result>( d.vkGetDeferredOperationResultKHR( static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( operation ) ) );
22573 }
22574 #else
22575 // wrapper function for command vkGetDeferredOperationResultKHR, see
22576 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeferredOperationResultKHR.html
22577 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeferredOperationResultKHR ), bool>::type>
22578 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getDeferredOperationResultKHR( DeferredOperationKHR operation, Dispatch const & d ) const
22579 {
22580 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22581 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22582 VULKAN_HPP_ASSERT( d.vkGetDeferredOperationResultKHR && "Function <vkGetDeferredOperationResultKHR> requires <VK_KHR_deferred_host_operations>" );
22583 # endif
22584
22585 Result result = static_cast<Result>( d.vkGetDeferredOperationResultKHR( m_device, static_cast<VkDeferredOperationKHR>( operation ) ) );
22586 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDeferredOperationResultKHR", { Result::eSuccess, Result::eNotReady } );
22587
22588 return static_cast<Result>( result );
22589 }
22590 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
22591
22592 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
22593 // wrapper function for command vkDeferredOperationJoinKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeferredOperationJoinKHR.html
22594 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDeferredOperationJoinKHR ), bool>::type>
22595 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::deferredOperationJoinKHR( DeferredOperationKHR operation, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22596 {
22597 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22598 return static_cast<Result>( d.vkDeferredOperationJoinKHR( static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( operation ) ) );
22599 }
22600 #else
22601 // wrapper function for command vkDeferredOperationJoinKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDeferredOperationJoinKHR.html
22602 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDeferredOperationJoinKHR ), bool>::type>
22603 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::deferredOperationJoinKHR( DeferredOperationKHR operation, Dispatch const & d ) const
22604 {
22605 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22606 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22607 VULKAN_HPP_ASSERT( d.vkDeferredOperationJoinKHR && "Function <vkDeferredOperationJoinKHR> requires <VK_KHR_deferred_host_operations>" );
22608 # endif
22609
22610 Result result = static_cast<Result>( d.vkDeferredOperationJoinKHR( m_device, static_cast<VkDeferredOperationKHR>( operation ) ) );
22611 detail::resultCheck(
22612 result, VULKAN_HPP_NAMESPACE_STRING "::Device::deferredOperationJoinKHR", { Result::eSuccess, Result::eThreadDoneKHR, Result::eThreadIdleKHR } );
22613
22614 return static_cast<Result>( result );
22615 }
22616 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
22617
22618 //=== VK_KHR_pipeline_executable_properties ===
22619
22620 // wrapper function for command vkGetPipelineExecutablePropertiesKHR, see
22621 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutablePropertiesKHR.html
22622 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutablePropertiesKHR ), bool>::type>
22623 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelineExecutablePropertiesKHR( const PipelineInfoKHR * pPipelineInfo,
22624 uint32_t * pExecutableCount,
22625 PipelineExecutablePropertiesKHR * pProperties,
22626 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22627 {
22628 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22629 return static_cast<Result>( d.vkGetPipelineExecutablePropertiesKHR( static_cast<VkDevice>( m_device ),
22630 reinterpret_cast<const VkPipelineInfoKHR *>( pPipelineInfo ),
22631 pExecutableCount,
22632 reinterpret_cast<VkPipelineExecutablePropertiesKHR *>( pProperties ) ) );
22633 }
22634
22635 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22636 // wrapper function for command vkGetPipelineExecutablePropertiesKHR, see
22637 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutablePropertiesKHR.html
22638 template <
22639 typename PipelineExecutablePropertiesKHRAllocator,
22640 typename Dispatch,
22641 typename std::enable_if<std::is_same<typename PipelineExecutablePropertiesKHRAllocator::value_type, PipelineExecutablePropertiesKHR>::value, int>::type,
22642 typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutablePropertiesKHR ), bool>::type>
22643 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PipelineExecutablePropertiesKHR, PipelineExecutablePropertiesKHRAllocator>>::type
22644 Device::getPipelineExecutablePropertiesKHR( const PipelineInfoKHR & pipelineInfo, Dispatch const & d ) const
22645 {
22646 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22647 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22648 VULKAN_HPP_ASSERT( d.vkGetPipelineExecutablePropertiesKHR &&
22649 "Function <vkGetPipelineExecutablePropertiesKHR> requires <VK_KHR_pipeline_executable_properties>" );
22650 # endif
22651
22652 std::vector<PipelineExecutablePropertiesKHR, PipelineExecutablePropertiesKHRAllocator> properties;
22653 uint32_t executableCount;
22654 Result result;
22655 do
22656 {
22657 result = static_cast<Result>(
22658 d.vkGetPipelineExecutablePropertiesKHR( m_device, reinterpret_cast<const VkPipelineInfoKHR *>( &pipelineInfo ), &executableCount, nullptr ) );
22659 if ( ( result == Result::eSuccess ) && executableCount )
22660 {
22661 properties.resize( executableCount );
22662 result = static_cast<Result>( d.vkGetPipelineExecutablePropertiesKHR( m_device,
22663 reinterpret_cast<const VkPipelineInfoKHR *>( &pipelineInfo ),
22664 &executableCount,
22665 reinterpret_cast<VkPipelineExecutablePropertiesKHR *>( properties.data() ) ) );
22666 }
22667 } while ( result == Result::eIncomplete );
22668 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutablePropertiesKHR" );
22669 VULKAN_HPP_ASSERT( executableCount <= properties.size() );
22670 if ( executableCount < properties.size() )
22671 {
22672 properties.resize( executableCount );
22673 }
22674 return detail::createResultValueType( result, std::move( properties ) );
22675 }
22676
22677 // wrapper function for command vkGetPipelineExecutablePropertiesKHR, see
22678 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutablePropertiesKHR.html
22679 template <
22680 typename PipelineExecutablePropertiesKHRAllocator,
22681 typename Dispatch,
22682 typename std::enable_if<std::is_same<typename PipelineExecutablePropertiesKHRAllocator::value_type, PipelineExecutablePropertiesKHR>::value, int>::type,
22683 typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutablePropertiesKHR ), bool>::type>
22684 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PipelineExecutablePropertiesKHR, PipelineExecutablePropertiesKHRAllocator>>::type
22685 Device::getPipelineExecutablePropertiesKHR( const PipelineInfoKHR & pipelineInfo,
22686 PipelineExecutablePropertiesKHRAllocator const & pipelineExecutablePropertiesKHRAllocator,
22687 Dispatch const & d ) const
22688 {
22689 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22690 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22691 VULKAN_HPP_ASSERT( d.vkGetPipelineExecutablePropertiesKHR &&
22692 "Function <vkGetPipelineExecutablePropertiesKHR> requires <VK_KHR_pipeline_executable_properties>" );
22693 # endif
22694
22695 std::vector<PipelineExecutablePropertiesKHR, PipelineExecutablePropertiesKHRAllocator> properties( pipelineExecutablePropertiesKHRAllocator );
22696 uint32_t executableCount;
22697 Result result;
22698 do
22699 {
22700 result = static_cast<Result>(
22701 d.vkGetPipelineExecutablePropertiesKHR( m_device, reinterpret_cast<const VkPipelineInfoKHR *>( &pipelineInfo ), &executableCount, nullptr ) );
22702 if ( ( result == Result::eSuccess ) && executableCount )
22703 {
22704 properties.resize( executableCount );
22705 result = static_cast<Result>( d.vkGetPipelineExecutablePropertiesKHR( m_device,
22706 reinterpret_cast<const VkPipelineInfoKHR *>( &pipelineInfo ),
22707 &executableCount,
22708 reinterpret_cast<VkPipelineExecutablePropertiesKHR *>( properties.data() ) ) );
22709 }
22710 } while ( result == Result::eIncomplete );
22711 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutablePropertiesKHR" );
22712 VULKAN_HPP_ASSERT( executableCount <= properties.size() );
22713 if ( executableCount < properties.size() )
22714 {
22715 properties.resize( executableCount );
22716 }
22717 return detail::createResultValueType( result, std::move( properties ) );
22718 }
22719 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22720
22721 // wrapper function for command vkGetPipelineExecutableStatisticsKHR, see
22722 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableStatisticsKHR.html
22723 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutableStatisticsKHR ), bool>::type>
22724 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelineExecutableStatisticsKHR( const PipelineExecutableInfoKHR * pExecutableInfo,
22725 uint32_t * pStatisticCount,
22726 PipelineExecutableStatisticKHR * pStatistics,
22727 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22728 {
22729 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22730 return static_cast<Result>( d.vkGetPipelineExecutableStatisticsKHR( static_cast<VkDevice>( m_device ),
22731 reinterpret_cast<const VkPipelineExecutableInfoKHR *>( pExecutableInfo ),
22732 pStatisticCount,
22733 reinterpret_cast<VkPipelineExecutableStatisticKHR *>( pStatistics ) ) );
22734 }
22735
22736 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22737 // wrapper function for command vkGetPipelineExecutableStatisticsKHR, see
22738 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableStatisticsKHR.html
22739 template <
22740 typename PipelineExecutableStatisticKHRAllocator,
22741 typename Dispatch,
22742 typename std::enable_if<std::is_same<typename PipelineExecutableStatisticKHRAllocator::value_type, PipelineExecutableStatisticKHR>::value, int>::type,
22743 typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutableStatisticsKHR ), bool>::type>
22744 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PipelineExecutableStatisticKHR, PipelineExecutableStatisticKHRAllocator>>::type
22745 Device::getPipelineExecutableStatisticsKHR( const PipelineExecutableInfoKHR & executableInfo, Dispatch const & d ) const
22746 {
22747 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22748 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22749 VULKAN_HPP_ASSERT( d.vkGetPipelineExecutableStatisticsKHR &&
22750 "Function <vkGetPipelineExecutableStatisticsKHR> requires <VK_KHR_pipeline_executable_properties>" );
22751 # endif
22752
22753 std::vector<PipelineExecutableStatisticKHR, PipelineExecutableStatisticKHRAllocator> statistics;
22754 uint32_t statisticCount;
22755 Result result;
22756 do
22757 {
22758 result = static_cast<Result>( d.vkGetPipelineExecutableStatisticsKHR(
22759 m_device, reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ), &statisticCount, nullptr ) );
22760 if ( ( result == Result::eSuccess ) && statisticCount )
22761 {
22762 statistics.resize( statisticCount );
22763 result = static_cast<Result>( d.vkGetPipelineExecutableStatisticsKHR( m_device,
22764 reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ),
22765 &statisticCount,
22766 reinterpret_cast<VkPipelineExecutableStatisticKHR *>( statistics.data() ) ) );
22767 }
22768 } while ( result == Result::eIncomplete );
22769 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutableStatisticsKHR" );
22770 VULKAN_HPP_ASSERT( statisticCount <= statistics.size() );
22771 if ( statisticCount < statistics.size() )
22772 {
22773 statistics.resize( statisticCount );
22774 }
22775 return detail::createResultValueType( result, std::move( statistics ) );
22776 }
22777
22778 // wrapper function for command vkGetPipelineExecutableStatisticsKHR, see
22779 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableStatisticsKHR.html
22780 template <
22781 typename PipelineExecutableStatisticKHRAllocator,
22782 typename Dispatch,
22783 typename std::enable_if<std::is_same<typename PipelineExecutableStatisticKHRAllocator::value_type, PipelineExecutableStatisticKHR>::value, int>::type,
22784 typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutableStatisticsKHR ), bool>::type>
22785 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<PipelineExecutableStatisticKHR, PipelineExecutableStatisticKHRAllocator>>::type
22786 Device::getPipelineExecutableStatisticsKHR( const PipelineExecutableInfoKHR & executableInfo,
22787 PipelineExecutableStatisticKHRAllocator const & pipelineExecutableStatisticKHRAllocator,
22788 Dispatch const & d ) const
22789 {
22790 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22791 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22792 VULKAN_HPP_ASSERT( d.vkGetPipelineExecutableStatisticsKHR &&
22793 "Function <vkGetPipelineExecutableStatisticsKHR> requires <VK_KHR_pipeline_executable_properties>" );
22794 # endif
22795
22796 std::vector<PipelineExecutableStatisticKHR, PipelineExecutableStatisticKHRAllocator> statistics( pipelineExecutableStatisticKHRAllocator );
22797 uint32_t statisticCount;
22798 Result result;
22799 do
22800 {
22801 result = static_cast<Result>( d.vkGetPipelineExecutableStatisticsKHR(
22802 m_device, reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ), &statisticCount, nullptr ) );
22803 if ( ( result == Result::eSuccess ) && statisticCount )
22804 {
22805 statistics.resize( statisticCount );
22806 result = static_cast<Result>( d.vkGetPipelineExecutableStatisticsKHR( m_device,
22807 reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ),
22808 &statisticCount,
22809 reinterpret_cast<VkPipelineExecutableStatisticKHR *>( statistics.data() ) ) );
22810 }
22811 } while ( result == Result::eIncomplete );
22812 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutableStatisticsKHR" );
22813 VULKAN_HPP_ASSERT( statisticCount <= statistics.size() );
22814 if ( statisticCount < statistics.size() )
22815 {
22816 statistics.resize( statisticCount );
22817 }
22818 return detail::createResultValueType( result, std::move( statistics ) );
22819 }
22820 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22821
22822 // wrapper function for command vkGetPipelineExecutableInternalRepresentationsKHR, see
22823 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html
22824 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutableInternalRepresentationsKHR ), bool>::type>
22825 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
22826 Device::getPipelineExecutableInternalRepresentationsKHR( const PipelineExecutableInfoKHR * pExecutableInfo,
22827 uint32_t * pInternalRepresentationCount,
22828 PipelineExecutableInternalRepresentationKHR * pInternalRepresentations,
22829 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22830 {
22831 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22832 return static_cast<Result>(
22833 d.vkGetPipelineExecutableInternalRepresentationsKHR( static_cast<VkDevice>( m_device ),
22834 reinterpret_cast<const VkPipelineExecutableInfoKHR *>( pExecutableInfo ),
22835 pInternalRepresentationCount,
22836 reinterpret_cast<VkPipelineExecutableInternalRepresentationKHR *>( pInternalRepresentations ) ) );
22837 }
22838
22839 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22840 // wrapper function for command vkGetPipelineExecutableInternalRepresentationsKHR, see
22841 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html
22842 template <typename PipelineExecutableInternalRepresentationKHRAllocator,
22843 typename Dispatch,
22844 typename std::enable_if<
22845 std::is_same<typename PipelineExecutableInternalRepresentationKHRAllocator::value_type, PipelineExecutableInternalRepresentationKHR>::value,
22846 int>::type,
22847 typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutableInternalRepresentationsKHR ), bool>::type>
22848 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
22849 typename ResultValueType<std::vector<PipelineExecutableInternalRepresentationKHR, PipelineExecutableInternalRepresentationKHRAllocator>>::type
22850 Device::getPipelineExecutableInternalRepresentationsKHR( const PipelineExecutableInfoKHR & executableInfo, Dispatch const & d ) const
22851 {
22852 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22853 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22854 VULKAN_HPP_ASSERT( d.vkGetPipelineExecutableInternalRepresentationsKHR &&
22855 "Function <vkGetPipelineExecutableInternalRepresentationsKHR> requires <VK_KHR_pipeline_executable_properties>" );
22856 # endif
22857
22858 std::vector<PipelineExecutableInternalRepresentationKHR, PipelineExecutableInternalRepresentationKHRAllocator> internalRepresentations;
22859 uint32_t internalRepresentationCount;
22860 Result result;
22861 do
22862 {
22863 result = static_cast<Result>( d.vkGetPipelineExecutableInternalRepresentationsKHR(
22864 m_device, reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ), &internalRepresentationCount, nullptr ) );
22865 if ( ( result == Result::eSuccess ) && internalRepresentationCount )
22866 {
22867 internalRepresentations.resize( internalRepresentationCount );
22868 result = static_cast<Result>( d.vkGetPipelineExecutableInternalRepresentationsKHR(
22869 m_device,
22870 reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ),
22871 &internalRepresentationCount,
22872 reinterpret_cast<VkPipelineExecutableInternalRepresentationKHR *>( internalRepresentations.data() ) ) );
22873 }
22874 } while ( result == Result::eIncomplete );
22875 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutableInternalRepresentationsKHR" );
22876 VULKAN_HPP_ASSERT( internalRepresentationCount <= internalRepresentations.size() );
22877 if ( internalRepresentationCount < internalRepresentations.size() )
22878 {
22879 internalRepresentations.resize( internalRepresentationCount );
22880 }
22881 return detail::createResultValueType( result, std::move( internalRepresentations ) );
22882 }
22883
22884 // wrapper function for command vkGetPipelineExecutableInternalRepresentationsKHR, see
22885 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineExecutableInternalRepresentationsKHR.html
22886 template <typename PipelineExecutableInternalRepresentationKHRAllocator,
22887 typename Dispatch,
22888 typename std::enable_if<
22889 std::is_same<typename PipelineExecutableInternalRepresentationKHRAllocator::value_type, PipelineExecutableInternalRepresentationKHR>::value,
22890 int>::type,
22891 typename std::enable_if<IS_DISPATCHED( vkGetPipelineExecutableInternalRepresentationsKHR ), bool>::type>
22892 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
22893 typename ResultValueType<std::vector<PipelineExecutableInternalRepresentationKHR, PipelineExecutableInternalRepresentationKHRAllocator>>::type
22894 Device::getPipelineExecutableInternalRepresentationsKHR(
22895 const PipelineExecutableInfoKHR & executableInfo,
22896 PipelineExecutableInternalRepresentationKHRAllocator const & pipelineExecutableInternalRepresentationKHRAllocator,
22897 Dispatch const & d ) const
22898 {
22899 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22900 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22901 VULKAN_HPP_ASSERT( d.vkGetPipelineExecutableInternalRepresentationsKHR &&
22902 "Function <vkGetPipelineExecutableInternalRepresentationsKHR> requires <VK_KHR_pipeline_executable_properties>" );
22903 # endif
22904
22905 std::vector<PipelineExecutableInternalRepresentationKHR, PipelineExecutableInternalRepresentationKHRAllocator> internalRepresentations(
22906 pipelineExecutableInternalRepresentationKHRAllocator );
22907 uint32_t internalRepresentationCount;
22908 Result result;
22909 do
22910 {
22911 result = static_cast<Result>( d.vkGetPipelineExecutableInternalRepresentationsKHR(
22912 m_device, reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ), &internalRepresentationCount, nullptr ) );
22913 if ( ( result == Result::eSuccess ) && internalRepresentationCount )
22914 {
22915 internalRepresentations.resize( internalRepresentationCount );
22916 result = static_cast<Result>( d.vkGetPipelineExecutableInternalRepresentationsKHR(
22917 m_device,
22918 reinterpret_cast<const VkPipelineExecutableInfoKHR *>( &executableInfo ),
22919 &internalRepresentationCount,
22920 reinterpret_cast<VkPipelineExecutableInternalRepresentationKHR *>( internalRepresentations.data() ) ) );
22921 }
22922 } while ( result == Result::eIncomplete );
22923 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineExecutableInternalRepresentationsKHR" );
22924 VULKAN_HPP_ASSERT( internalRepresentationCount <= internalRepresentations.size() );
22925 if ( internalRepresentationCount < internalRepresentations.size() )
22926 {
22927 internalRepresentations.resize( internalRepresentationCount );
22928 }
22929 return detail::createResultValueType( result, std::move( internalRepresentations ) );
22930 }
22931 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22932
22933 //=== VK_EXT_host_image_copy ===
22934
22935 // wrapper function for command vkCopyMemoryToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImageEXT.html
22936 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToImageEXT ), bool>::type>
22937 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToImageEXT( const CopyMemoryToImageInfo * pCopyMemoryToImageInfo,
22938 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22939 {
22940 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22941 return static_cast<Result>(
22942 d.vkCopyMemoryToImageEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkCopyMemoryToImageInfo *>( pCopyMemoryToImageInfo ) ) );
22943 }
22944
22945 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22946 // wrapper function for command vkCopyMemoryToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToImageEXT.html
22947 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToImageEXT ), bool>::type>
22948 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
22949 Device::copyMemoryToImageEXT( const CopyMemoryToImageInfo & copyMemoryToImageInfo, Dispatch const & d ) const
22950 {
22951 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22952 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22953 VULKAN_HPP_ASSERT( d.vkCopyMemoryToImageEXT && "Function <vkCopyMemoryToImageEXT> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
22954 # endif
22955
22956 Result result = static_cast<Result>( d.vkCopyMemoryToImageEXT( m_device, reinterpret_cast<const VkCopyMemoryToImageInfo *>( &copyMemoryToImageInfo ) ) );
22957 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyMemoryToImageEXT" );
22958
22959 return detail::createResultValueType( result );
22960 }
22961 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22962
22963 // wrapper function for command vkCopyImageToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToMemoryEXT.html
22964 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToMemoryEXT ), bool>::type>
22965 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyImageToMemoryEXT( const CopyImageToMemoryInfo * pCopyImageToMemoryInfo,
22966 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22967 {
22968 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22969 return static_cast<Result>(
22970 d.vkCopyImageToMemoryEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkCopyImageToMemoryInfo *>( pCopyImageToMemoryInfo ) ) );
22971 }
22972
22973 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
22974 // wrapper function for command vkCopyImageToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToMemoryEXT.html
22975 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToMemoryEXT ), bool>::type>
22976 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
22977 Device::copyImageToMemoryEXT( const CopyImageToMemoryInfo & copyImageToMemoryInfo, Dispatch const & d ) const
22978 {
22979 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22980 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
22981 VULKAN_HPP_ASSERT( d.vkCopyImageToMemoryEXT && "Function <vkCopyImageToMemoryEXT> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
22982 # endif
22983
22984 Result result = static_cast<Result>( d.vkCopyImageToMemoryEXT( m_device, reinterpret_cast<const VkCopyImageToMemoryInfo *>( &copyImageToMemoryInfo ) ) );
22985 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyImageToMemoryEXT" );
22986
22987 return detail::createResultValueType( result );
22988 }
22989 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
22990
22991 // wrapper function for command vkCopyImageToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToImageEXT.html
22992 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToImageEXT ), bool>::type>
22993 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyImageToImageEXT( const CopyImageToImageInfo * pCopyImageToImageInfo,
22994 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
22995 {
22996 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
22997 return static_cast<Result>(
22998 d.vkCopyImageToImageEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkCopyImageToImageInfo *>( pCopyImageToImageInfo ) ) );
22999 }
23000
23001 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23002 // wrapper function for command vkCopyImageToImageEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyImageToImageEXT.html
23003 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyImageToImageEXT ), bool>::type>
23004 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
23005 Device::copyImageToImageEXT( const CopyImageToImageInfo & copyImageToImageInfo, Dispatch const & d ) const
23006 {
23007 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23008 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23009 VULKAN_HPP_ASSERT( d.vkCopyImageToImageEXT && "Function <vkCopyImageToImageEXT> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
23010 # endif
23011
23012 Result result = static_cast<Result>( d.vkCopyImageToImageEXT( m_device, reinterpret_cast<const VkCopyImageToImageInfo *>( &copyImageToImageInfo ) ) );
23013 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyImageToImageEXT" );
23014
23015 return detail::createResultValueType( result );
23016 }
23017 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23018
23019 // wrapper function for command vkTransitionImageLayoutEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTransitionImageLayoutEXT.html
23020 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkTransitionImageLayoutEXT ), bool>::type>
23021 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::transitionImageLayoutEXT( uint32_t transitionCount,
23022 const HostImageLayoutTransitionInfo * pTransitions,
23023 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23024 {
23025 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23026 return static_cast<Result>( d.vkTransitionImageLayoutEXT(
23027 static_cast<VkDevice>( m_device ), transitionCount, reinterpret_cast<const VkHostImageLayoutTransitionInfo *>( pTransitions ) ) );
23028 }
23029
23030 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23031 // wrapper function for command vkTransitionImageLayoutEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkTransitionImageLayoutEXT.html
23032 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkTransitionImageLayoutEXT ), bool>::type>
23033 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
23034 Device::transitionImageLayoutEXT( ArrayProxy<const HostImageLayoutTransitionInfo> const & transitions, Dispatch const & d ) const
23035 {
23036 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23037 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23038 VULKAN_HPP_ASSERT( d.vkTransitionImageLayoutEXT && "Function <vkTransitionImageLayoutEXT> requires <VK_EXT_host_image_copy> or <VK_VERSION_1_4>" );
23039 # endif
23040
23041 Result result = static_cast<Result>(
23042 d.vkTransitionImageLayoutEXT( m_device, transitions.size(), reinterpret_cast<const VkHostImageLayoutTransitionInfo *>( transitions.data() ) ) );
23043 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::transitionImageLayoutEXT" );
23044
23045 return detail::createResultValueType( result );
23046 }
23047 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23048
23049 // wrapper function for command vkGetImageSubresourceLayout2EXT, see
23050 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2EXT.html
23051 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2EXT ), bool>::type>
23052 VULKAN_HPP_INLINE void Device::getImageSubresourceLayout2EXT( Image image,
23053 const ImageSubresource2 * pSubresource,
23054 SubresourceLayout2 * pLayout,
23055 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23056 {
23057 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23058 d.vkGetImageSubresourceLayout2EXT( static_cast<VkDevice>( m_device ),
23059 static_cast<VkImage>( image ),
23060 reinterpret_cast<const VkImageSubresource2 *>( pSubresource ),
23061 reinterpret_cast<VkSubresourceLayout2 *>( pLayout ) );
23062 }
23063
23064 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23065 // wrapper function for command vkGetImageSubresourceLayout2EXT, see
23066 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2EXT.html
23067 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2EXT ), bool>::type>
23068 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Device::getImageSubresourceLayout2EXT( Image image,
23069 const ImageSubresource2 & subresource,
23070 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23071 {
23072 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23073 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23074 VULKAN_HPP_ASSERT(
23075 d.vkGetImageSubresourceLayout2EXT &&
23076 "Function <vkGetImageSubresourceLayout2EXT> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
23077 # endif
23078
23079 SubresourceLayout2 layout;
23080 d.vkGetImageSubresourceLayout2EXT( m_device,
23081 static_cast<VkImage>( image ),
23082 reinterpret_cast<const VkImageSubresource2 *>( &subresource ),
23083 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
23084
23085 return layout;
23086 }
23087
23088 // wrapper function for command vkGetImageSubresourceLayout2EXT, see
23089 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2EXT.html
23090 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2EXT ), bool>::type>
23091 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
23092 Device::getImageSubresourceLayout2EXT( Image image, const ImageSubresource2 & subresource, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23093 {
23094 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23095 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23096 VULKAN_HPP_ASSERT(
23097 d.vkGetImageSubresourceLayout2EXT &&
23098 "Function <vkGetImageSubresourceLayout2EXT> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
23099 # endif
23100
23101 StructureChain<X, Y, Z...> structureChain;
23102 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
23103 d.vkGetImageSubresourceLayout2EXT( m_device,
23104 static_cast<VkImage>( image ),
23105 reinterpret_cast<const VkImageSubresource2 *>( &subresource ),
23106 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
23107
23108 return structureChain;
23109 }
23110 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23111
23112 //=== VK_KHR_map_memory2 ===
23113
23114 // wrapper function for command vkMapMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory2KHR.html
23115 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMapMemory2KHR ), bool>::type>
23116 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::mapMemory2KHR( const MemoryMapInfo * pMemoryMapInfo,
23117 void ** ppData,
23118 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23119 {
23120 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23121 return static_cast<Result>( d.vkMapMemory2KHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryMapInfo *>( pMemoryMapInfo ), ppData ) );
23122 }
23123
23124 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23125 // wrapper function for command vkMapMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkMapMemory2KHR.html
23126 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkMapMemory2KHR ), bool>::type>
23127 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<void *>::type Device::mapMemory2KHR( const MemoryMapInfo & memoryMapInfo,
23128 Dispatch const & d ) const
23129 {
23130 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23131 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23132 VULKAN_HPP_ASSERT( d.vkMapMemory2KHR && "Function <vkMapMemory2KHR> requires <VK_KHR_map_memory2> or <VK_VERSION_1_4>" );
23133 # endif
23134
23135 void * pData;
23136 Result result = static_cast<Result>( d.vkMapMemory2KHR( m_device, reinterpret_cast<const VkMemoryMapInfo *>( &memoryMapInfo ), &pData ) );
23137 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::mapMemory2KHR" );
23138
23139 return detail::createResultValueType( result, std::move( pData ) );
23140 }
23141 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23142
23143 // wrapper function for command vkUnmapMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory2KHR.html
23144 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUnmapMemory2KHR ), bool>::type>
23145 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::unmapMemory2KHR( const MemoryUnmapInfo * pMemoryUnmapInfo,
23146 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23147 {
23148 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23149 return static_cast<Result>( d.vkUnmapMemory2KHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryUnmapInfo *>( pMemoryUnmapInfo ) ) );
23150 }
23151
23152 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23153 // wrapper function for command vkUnmapMemory2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkUnmapMemory2KHR.html
23154 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUnmapMemory2KHR ), bool>::type>
23155 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
23156 Device::unmapMemory2KHR( const MemoryUnmapInfo & memoryUnmapInfo, Dispatch const & d ) const
23157 {
23158 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23159 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23160 VULKAN_HPP_ASSERT( d.vkUnmapMemory2KHR && "Function <vkUnmapMemory2KHR> requires <VK_KHR_map_memory2> or <VK_VERSION_1_4>" );
23161 # endif
23162
23163 Result result = static_cast<Result>( d.vkUnmapMemory2KHR( m_device, reinterpret_cast<const VkMemoryUnmapInfo *>( &memoryUnmapInfo ) ) );
23164 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::unmapMemory2KHR" );
23165
23166 return detail::createResultValueType( result );
23167 }
23168 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23169
23170 //=== VK_EXT_swapchain_maintenance1 ===
23171
23172 // wrapper function for command vkReleaseSwapchainImagesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseSwapchainImagesEXT.html
23173 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseSwapchainImagesEXT ), bool>::type>
23174 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::releaseSwapchainImagesEXT( const ReleaseSwapchainImagesInfoKHR * pReleaseInfo,
23175 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23176 {
23177 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23178 return static_cast<Result>(
23179 d.vkReleaseSwapchainImagesEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkReleaseSwapchainImagesInfoKHR *>( pReleaseInfo ) ) );
23180 }
23181
23182 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23183 // wrapper function for command vkReleaseSwapchainImagesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseSwapchainImagesEXT.html
23184 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseSwapchainImagesEXT ), bool>::type>
23185 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
23186 Device::releaseSwapchainImagesEXT( const ReleaseSwapchainImagesInfoKHR & releaseInfo, Dispatch const & d ) const
23187 {
23188 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23189 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23190 VULKAN_HPP_ASSERT( d.vkReleaseSwapchainImagesEXT &&
23191 "Function <vkReleaseSwapchainImagesEXT> requires <VK_EXT_swapchain_maintenance1> or <VK_KHR_swapchain_maintenance1>" );
23192 # endif
23193
23194 Result result = static_cast<Result>( d.vkReleaseSwapchainImagesEXT( m_device, reinterpret_cast<const VkReleaseSwapchainImagesInfoKHR *>( &releaseInfo ) ) );
23195 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releaseSwapchainImagesEXT" );
23196
23197 return detail::createResultValueType( result );
23198 }
23199 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23200
23201 //=== VK_NV_device_generated_commands ===
23202
23203 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsNV, see
23204 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsNV.html
23205 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetGeneratedCommandsMemoryRequirementsNV ), bool>::type>
23206 VULKAN_HPP_INLINE void Device::getGeneratedCommandsMemoryRequirementsNV( const GeneratedCommandsMemoryRequirementsInfoNV * pInfo,
23207 MemoryRequirements2 * pMemoryRequirements,
23208 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23209 {
23210 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23211 d.vkGetGeneratedCommandsMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
23212 reinterpret_cast<const VkGeneratedCommandsMemoryRequirementsInfoNV *>( pInfo ),
23213 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
23214 }
23215
23216 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23217 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsNV, see
23218 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsNV.html
23219 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetGeneratedCommandsMemoryRequirementsNV ), bool>::type>
23220 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
23221 Device::getGeneratedCommandsMemoryRequirementsNV( const GeneratedCommandsMemoryRequirementsInfoNV & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23222 {
23223 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23224 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23225 VULKAN_HPP_ASSERT( d.vkGetGeneratedCommandsMemoryRequirementsNV &&
23226 "Function <vkGetGeneratedCommandsMemoryRequirementsNV> requires <VK_NV_device_generated_commands>" );
23227 # endif
23228
23229 MemoryRequirements2 memoryRequirements;
23230 d.vkGetGeneratedCommandsMemoryRequirementsNV( m_device,
23231 reinterpret_cast<const VkGeneratedCommandsMemoryRequirementsInfoNV *>( &info ),
23232 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
23233
23234 return memoryRequirements;
23235 }
23236
23237 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsNV, see
23238 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsNV.html
23239 template <typename X,
23240 typename Y,
23241 typename... Z,
23242 typename Dispatch,
23243 typename std::enable_if<IS_DISPATCHED( vkGetGeneratedCommandsMemoryRequirementsNV ), bool>::type>
23244 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
23245 Device::getGeneratedCommandsMemoryRequirementsNV( const GeneratedCommandsMemoryRequirementsInfoNV & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23246 {
23247 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23248 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23249 VULKAN_HPP_ASSERT( d.vkGetGeneratedCommandsMemoryRequirementsNV &&
23250 "Function <vkGetGeneratedCommandsMemoryRequirementsNV> requires <VK_NV_device_generated_commands>" );
23251 # endif
23252
23253 StructureChain<X, Y, Z...> structureChain;
23254 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
23255 d.vkGetGeneratedCommandsMemoryRequirementsNV( m_device,
23256 reinterpret_cast<const VkGeneratedCommandsMemoryRequirementsInfoNV *>( &info ),
23257 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
23258
23259 return structureChain;
23260 }
23261 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23262
23263 // wrapper function for command vkCmdPreprocessGeneratedCommandsNV, see
23264 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPreprocessGeneratedCommandsNV.html
23265 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPreprocessGeneratedCommandsNV ), bool>::type>
23266 VULKAN_HPP_INLINE void CommandBuffer::preprocessGeneratedCommandsNV( const GeneratedCommandsInfoNV * pGeneratedCommandsInfo,
23267 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23268 {
23269 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23270 d.vkCmdPreprocessGeneratedCommandsNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
23271 reinterpret_cast<const VkGeneratedCommandsInfoNV *>( pGeneratedCommandsInfo ) );
23272 }
23273
23274 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23275 // wrapper function for command vkCmdPreprocessGeneratedCommandsNV, see
23276 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPreprocessGeneratedCommandsNV.html
23277 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPreprocessGeneratedCommandsNV ), bool>::type>
23278 VULKAN_HPP_INLINE void CommandBuffer::preprocessGeneratedCommandsNV( const GeneratedCommandsInfoNV & generatedCommandsInfo,
23279 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23280 {
23281 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23282 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23283 VULKAN_HPP_ASSERT( d.vkCmdPreprocessGeneratedCommandsNV && "Function <vkCmdPreprocessGeneratedCommandsNV> requires <VK_NV_device_generated_commands>" );
23284 # endif
23285
23286 d.vkCmdPreprocessGeneratedCommandsNV( m_commandBuffer, reinterpret_cast<const VkGeneratedCommandsInfoNV *>( &generatedCommandsInfo ) );
23287 }
23288 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23289
23290 // wrapper function for command vkCmdExecuteGeneratedCommandsNV, see
23291 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteGeneratedCommandsNV.html
23292 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdExecuteGeneratedCommandsNV ), bool>::type>
23293 VULKAN_HPP_INLINE void CommandBuffer::executeGeneratedCommandsNV( Bool32 isPreprocessed,
23294 const GeneratedCommandsInfoNV * pGeneratedCommandsInfo,
23295 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23296 {
23297 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23298 d.vkCmdExecuteGeneratedCommandsNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
23299 static_cast<VkBool32>( isPreprocessed ),
23300 reinterpret_cast<const VkGeneratedCommandsInfoNV *>( pGeneratedCommandsInfo ) );
23301 }
23302
23303 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23304 // wrapper function for command vkCmdExecuteGeneratedCommandsNV, see
23305 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteGeneratedCommandsNV.html
23306 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdExecuteGeneratedCommandsNV ), bool>::type>
23307 VULKAN_HPP_INLINE void CommandBuffer::executeGeneratedCommandsNV( Bool32 isPreprocessed,
23308 const GeneratedCommandsInfoNV & generatedCommandsInfo,
23309 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23310 {
23311 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23312 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23313 VULKAN_HPP_ASSERT( d.vkCmdExecuteGeneratedCommandsNV && "Function <vkCmdExecuteGeneratedCommandsNV> requires <VK_NV_device_generated_commands>" );
23314 # endif
23315
23316 d.vkCmdExecuteGeneratedCommandsNV(
23317 m_commandBuffer, static_cast<VkBool32>( isPreprocessed ), reinterpret_cast<const VkGeneratedCommandsInfoNV *>( &generatedCommandsInfo ) );
23318 }
23319 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23320
23321 // wrapper function for command vkCmdBindPipelineShaderGroupNV, see
23322 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindPipelineShaderGroupNV.html
23323 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindPipelineShaderGroupNV ), bool>::type>
23324 VULKAN_HPP_INLINE void CommandBuffer::bindPipelineShaderGroupNV( PipelineBindPoint pipelineBindPoint,
23325 Pipeline pipeline,
23326 uint32_t groupIndex,
23327 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23328 {
23329 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23330 d.vkCmdBindPipelineShaderGroupNV(
23331 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipeline>( pipeline ), groupIndex );
23332 }
23333
23334 // wrapper function for command vkCreateIndirectCommandsLayoutNV, see
23335 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutNV.html
23336 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectCommandsLayoutNV ), bool>::type>
23337 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createIndirectCommandsLayoutNV( const IndirectCommandsLayoutCreateInfoNV * pCreateInfo,
23338 const AllocationCallbacks * pAllocator,
23339 IndirectCommandsLayoutNV * pIndirectCommandsLayout,
23340 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23341 {
23342 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23343 return static_cast<Result>( d.vkCreateIndirectCommandsLayoutNV( static_cast<VkDevice>( m_device ),
23344 reinterpret_cast<const VkIndirectCommandsLayoutCreateInfoNV *>( pCreateInfo ),
23345 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
23346 reinterpret_cast<VkIndirectCommandsLayoutNV *>( pIndirectCommandsLayout ) ) );
23347 }
23348
23349 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23350 // wrapper function for command vkCreateIndirectCommandsLayoutNV, see
23351 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutNV.html
23352 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectCommandsLayoutNV ), bool>::type>
23353 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<IndirectCommandsLayoutNV>::type Device::createIndirectCommandsLayoutNV(
23354 const IndirectCommandsLayoutCreateInfoNV & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
23355 {
23356 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23357 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23358 VULKAN_HPP_ASSERT( d.vkCreateIndirectCommandsLayoutNV && "Function <vkCreateIndirectCommandsLayoutNV> requires <VK_NV_device_generated_commands>" );
23359 # endif
23360
23361 IndirectCommandsLayoutNV indirectCommandsLayout;
23362 Result result = static_cast<Result>( d.vkCreateIndirectCommandsLayoutNV( m_device,
23363 reinterpret_cast<const VkIndirectCommandsLayoutCreateInfoNV *>( &createInfo ),
23364 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
23365 reinterpret_cast<VkIndirectCommandsLayoutNV *>( &indirectCommandsLayout ) ) );
23366 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectCommandsLayoutNV" );
23367
23368 return detail::createResultValueType( result, std::move( indirectCommandsLayout ) );
23369 }
23370
23371 # ifndef VULKAN_HPP_NO_SMART_HANDLE
23372 // wrapper function for command vkCreateIndirectCommandsLayoutNV, see
23373 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutNV.html
23374 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectCommandsLayoutNV ), bool>::type>
23375 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<IndirectCommandsLayoutNV, Dispatch>>::type
23376 Device::createIndirectCommandsLayoutNVUnique( const IndirectCommandsLayoutCreateInfoNV & createInfo,
23377 Optional<const AllocationCallbacks> allocator,
23378 Dispatch const & d ) const
23379 {
23380 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23381 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23382 VULKAN_HPP_ASSERT( d.vkCreateIndirectCommandsLayoutNV && "Function <vkCreateIndirectCommandsLayoutNV> requires <VK_NV_device_generated_commands>" );
23383 # endif
23384
23385 IndirectCommandsLayoutNV indirectCommandsLayout;
23386 Result result = static_cast<Result>( d.vkCreateIndirectCommandsLayoutNV( m_device,
23387 reinterpret_cast<const VkIndirectCommandsLayoutCreateInfoNV *>( &createInfo ),
23388 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
23389 reinterpret_cast<VkIndirectCommandsLayoutNV *>( &indirectCommandsLayout ) ) );
23390 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectCommandsLayoutNVUnique" );
23391
23392 return detail::createResultValueType(
23393 result, UniqueHandle<IndirectCommandsLayoutNV, Dispatch>( indirectCommandsLayout, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
23394 }
23395 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
23396 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23397
23398 // wrapper function for command vkDestroyIndirectCommandsLayoutNV, see
23399 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutNV.html
23400 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutNV ), bool>::type>
23401 VULKAN_HPP_INLINE void Device::destroyIndirectCommandsLayoutNV( IndirectCommandsLayoutNV indirectCommandsLayout,
23402 const AllocationCallbacks * pAllocator,
23403 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23404 {
23405 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23406 d.vkDestroyIndirectCommandsLayoutNV( static_cast<VkDevice>( m_device ),
23407 static_cast<VkIndirectCommandsLayoutNV>( indirectCommandsLayout ),
23408 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
23409 }
23410
23411 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23412 // wrapper function for command vkDestroyIndirectCommandsLayoutNV, see
23413 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutNV.html
23414 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutNV ), bool>::type>
23415 VULKAN_HPP_INLINE void Device::destroyIndirectCommandsLayoutNV( IndirectCommandsLayoutNV indirectCommandsLayout,
23416 Optional<const AllocationCallbacks> allocator,
23417 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23418 {
23419 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23420 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23421 VULKAN_HPP_ASSERT( d.vkDestroyIndirectCommandsLayoutNV && "Function <vkDestroyIndirectCommandsLayoutNV> requires <VK_NV_device_generated_commands>" );
23422 # endif
23423
23424 d.vkDestroyIndirectCommandsLayoutNV(
23425 m_device, static_cast<VkIndirectCommandsLayoutNV>( indirectCommandsLayout ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
23426 }
23427 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23428
23429 // wrapper function for command vkDestroyIndirectCommandsLayoutNV, see
23430 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutNV.html
23431 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutNV ), bool>::type>
23432 VULKAN_HPP_INLINE void
23433 Device::destroy( IndirectCommandsLayoutNV indirectCommandsLayout, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23434 {
23435 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23436 d.vkDestroyIndirectCommandsLayoutNV( static_cast<VkDevice>( m_device ),
23437 static_cast<VkIndirectCommandsLayoutNV>( indirectCommandsLayout ),
23438 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
23439 }
23440
23441 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23442 // wrapper function for command vkDestroyIndirectCommandsLayoutNV, see
23443 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutNV.html
23444 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutNV ), bool>::type>
23445 VULKAN_HPP_INLINE void Device::destroy( IndirectCommandsLayoutNV indirectCommandsLayout,
23446 Optional<const AllocationCallbacks> allocator,
23447 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23448 {
23449 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23450 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23451 VULKAN_HPP_ASSERT( d.vkDestroyIndirectCommandsLayoutNV && "Function <vkDestroyIndirectCommandsLayoutNV> requires <VK_NV_device_generated_commands>" );
23452 # endif
23453
23454 d.vkDestroyIndirectCommandsLayoutNV(
23455 m_device, static_cast<VkIndirectCommandsLayoutNV>( indirectCommandsLayout ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
23456 }
23457 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23458
23459 //=== VK_EXT_depth_bias_control ===
23460
23461 // wrapper function for command vkCmdSetDepthBias2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBias2EXT.html
23462 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBias2EXT ), bool>::type>
23463 VULKAN_HPP_INLINE void CommandBuffer::setDepthBias2EXT( const DepthBiasInfoEXT * pDepthBiasInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23464 {
23465 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23466 d.vkCmdSetDepthBias2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkDepthBiasInfoEXT *>( pDepthBiasInfo ) );
23467 }
23468
23469 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23470 // wrapper function for command vkCmdSetDepthBias2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBias2EXT.html
23471 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBias2EXT ), bool>::type>
23472 VULKAN_HPP_INLINE void CommandBuffer::setDepthBias2EXT( const DepthBiasInfoEXT & depthBiasInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23473 {
23474 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23475 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23476 VULKAN_HPP_ASSERT( d.vkCmdSetDepthBias2EXT && "Function <vkCmdSetDepthBias2EXT> requires <VK_EXT_depth_bias_control>" );
23477 # endif
23478
23479 d.vkCmdSetDepthBias2EXT( m_commandBuffer, reinterpret_cast<const VkDepthBiasInfoEXT *>( &depthBiasInfo ) );
23480 }
23481 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23482
23483 //=== VK_EXT_acquire_drm_display ===
23484
23485 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
23486 // wrapper function for command vkAcquireDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireDrmDisplayEXT.html
23487 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireDrmDisplayEXT ), bool>::type>
23488 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::acquireDrmDisplayEXT( int32_t drmFd,
23489 DisplayKHR display,
23490 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23491 {
23492 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23493 return static_cast<Result>( d.vkAcquireDrmDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), drmFd, static_cast<VkDisplayKHR>( display ) ) );
23494 }
23495 #else
23496 // wrapper function for command vkAcquireDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireDrmDisplayEXT.html
23497 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireDrmDisplayEXT ), bool>::type>
23498 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
23499 PhysicalDevice::acquireDrmDisplayEXT( int32_t drmFd, DisplayKHR display, Dispatch const & d ) const
23500 {
23501 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23502 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23503 VULKAN_HPP_ASSERT( d.vkAcquireDrmDisplayEXT && "Function <vkAcquireDrmDisplayEXT> requires <VK_EXT_acquire_drm_display>" );
23504 # endif
23505
23506 Result result = static_cast<Result>( d.vkAcquireDrmDisplayEXT( m_physicalDevice, drmFd, static_cast<VkDisplayKHR>( display ) ) );
23507 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::acquireDrmDisplayEXT" );
23508
23509 return detail::createResultValueType( result );
23510 }
23511 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
23512
23513 // wrapper function for command vkGetDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDrmDisplayEXT.html
23514 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDrmDisplayEXT ), bool>::type>
23515 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
23516 PhysicalDevice::getDrmDisplayEXT( int32_t drmFd, uint32_t connectorId, DisplayKHR * display, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23517 {
23518 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23519 return static_cast<Result>(
23520 d.vkGetDrmDisplayEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), drmFd, connectorId, reinterpret_cast<VkDisplayKHR *>( display ) ) );
23521 }
23522
23523 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23524 // wrapper function for command vkGetDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDrmDisplayEXT.html
23525 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDrmDisplayEXT ), bool>::type>
23526 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayKHR>::type
23527 PhysicalDevice::getDrmDisplayEXT( int32_t drmFd, uint32_t connectorId, Dispatch const & d ) const
23528 {
23529 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23530 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23531 VULKAN_HPP_ASSERT( d.vkGetDrmDisplayEXT && "Function <vkGetDrmDisplayEXT> requires <VK_EXT_acquire_drm_display>" );
23532 # endif
23533
23534 DisplayKHR display;
23535 Result result = static_cast<Result>( d.vkGetDrmDisplayEXT( m_physicalDevice, drmFd, connectorId, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
23536 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDrmDisplayEXT" );
23537
23538 return detail::createResultValueType( result, std::move( display ) );
23539 }
23540
23541 # ifndef VULKAN_HPP_NO_SMART_HANDLE
23542 // wrapper function for command vkGetDrmDisplayEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDrmDisplayEXT.html
23543 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDrmDisplayEXT ), bool>::type>
23544 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DisplayKHR, Dispatch>>::type
23545 PhysicalDevice::getDrmDisplayEXTUnique( int32_t drmFd, uint32_t connectorId, Dispatch const & d ) const
23546 {
23547 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23548 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23549 VULKAN_HPP_ASSERT( d.vkGetDrmDisplayEXT && "Function <vkGetDrmDisplayEXT> requires <VK_EXT_acquire_drm_display>" );
23550 # endif
23551
23552 DisplayKHR display;
23553 Result result = static_cast<Result>( d.vkGetDrmDisplayEXT( m_physicalDevice, drmFd, connectorId, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
23554 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getDrmDisplayEXTUnique" );
23555
23556 return detail::createResultValueType( result, UniqueHandle<DisplayKHR, Dispatch>( display, detail::ObjectRelease<PhysicalDevice, Dispatch>( *this, d ) ) );
23557 }
23558 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
23559 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23560
23561 //=== VK_EXT_private_data ===
23562
23563 // wrapper function for command vkCreatePrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlotEXT.html
23564 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePrivateDataSlotEXT ), bool>::type>
23565 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createPrivateDataSlotEXT( const PrivateDataSlotCreateInfo * pCreateInfo,
23566 const AllocationCallbacks * pAllocator,
23567 PrivateDataSlot * pPrivateDataSlot,
23568 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23569 {
23570 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23571 return static_cast<Result>( d.vkCreatePrivateDataSlotEXT( static_cast<VkDevice>( m_device ),
23572 reinterpret_cast<const VkPrivateDataSlotCreateInfo *>( pCreateInfo ),
23573 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
23574 reinterpret_cast<VkPrivateDataSlot *>( pPrivateDataSlot ) ) );
23575 }
23576
23577 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23578 // wrapper function for command vkCreatePrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlotEXT.html
23579 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePrivateDataSlotEXT ), bool>::type>
23580 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PrivateDataSlot>::type
23581 Device::createPrivateDataSlotEXT( const PrivateDataSlotCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
23582 {
23583 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23584 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23585 VULKAN_HPP_ASSERT( d.vkCreatePrivateDataSlotEXT && "Function <vkCreatePrivateDataSlotEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
23586 # endif
23587
23588 PrivateDataSlot privateDataSlot;
23589 Result result = static_cast<Result>( d.vkCreatePrivateDataSlotEXT( m_device,
23590 reinterpret_cast<const VkPrivateDataSlotCreateInfo *>( &createInfo ),
23591 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
23592 reinterpret_cast<VkPrivateDataSlot *>( &privateDataSlot ) ) );
23593 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPrivateDataSlotEXT" );
23594
23595 return detail::createResultValueType( result, std::move( privateDataSlot ) );
23596 }
23597
23598 # ifndef VULKAN_HPP_NO_SMART_HANDLE
23599 // wrapper function for command vkCreatePrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePrivateDataSlotEXT.html
23600 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePrivateDataSlotEXT ), bool>::type>
23601 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<PrivateDataSlot, Dispatch>>::type Device::createPrivateDataSlotEXTUnique(
23602 const PrivateDataSlotCreateInfo & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
23603 {
23604 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23605 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23606 VULKAN_HPP_ASSERT( d.vkCreatePrivateDataSlotEXT && "Function <vkCreatePrivateDataSlotEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
23607 # endif
23608
23609 PrivateDataSlot privateDataSlot;
23610 Result result = static_cast<Result>( d.vkCreatePrivateDataSlotEXT( m_device,
23611 reinterpret_cast<const VkPrivateDataSlotCreateInfo *>( &createInfo ),
23612 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
23613 reinterpret_cast<VkPrivateDataSlot *>( &privateDataSlot ) ) );
23614 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPrivateDataSlotEXTUnique" );
23615
23616 return detail::createResultValueType(
23617 result, UniqueHandle<PrivateDataSlot, Dispatch>( privateDataSlot, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
23618 }
23619 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
23620 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23621
23622 // wrapper function for command vkDestroyPrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlotEXT.html
23623 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPrivateDataSlotEXT ), bool>::type>
23624 VULKAN_HPP_INLINE void
23625 Device::destroyPrivateDataSlotEXT( PrivateDataSlot privateDataSlot, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23626 {
23627 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23628 d.vkDestroyPrivateDataSlotEXT(
23629 static_cast<VkDevice>( m_device ), static_cast<VkPrivateDataSlot>( privateDataSlot ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
23630 }
23631
23632 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23633 // wrapper function for command vkDestroyPrivateDataSlotEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPrivateDataSlotEXT.html
23634 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPrivateDataSlotEXT ), bool>::type>
23635 VULKAN_HPP_INLINE void Device::destroyPrivateDataSlotEXT( PrivateDataSlot privateDataSlot,
23636 Optional<const AllocationCallbacks> allocator,
23637 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23638 {
23639 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23640 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23641 VULKAN_HPP_ASSERT( d.vkDestroyPrivateDataSlotEXT && "Function <vkDestroyPrivateDataSlotEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
23642 # endif
23643
23644 d.vkDestroyPrivateDataSlotEXT(
23645 m_device, static_cast<VkPrivateDataSlot>( privateDataSlot ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
23646 }
23647 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23648
23649 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
23650 // wrapper function for command vkSetPrivateDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetPrivateDataEXT.html
23651 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetPrivateDataEXT ), bool>::type>
23652 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setPrivateDataEXT(
23653 ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, uint64_t data, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23654 {
23655 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23656 return static_cast<Result>( d.vkSetPrivateDataEXT(
23657 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), data ) );
23658 }
23659 #else
23660 // wrapper function for command vkSetPrivateDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetPrivateDataEXT.html
23661 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetPrivateDataEXT ), bool>::type>
23662 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
23663 Device::setPrivateDataEXT( ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, uint64_t data, Dispatch const & d ) const
23664 {
23665 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23666 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23667 VULKAN_HPP_ASSERT( d.vkSetPrivateDataEXT && "Function <vkSetPrivateDataEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
23668 # endif
23669
23670 Result result = static_cast<Result>(
23671 d.vkSetPrivateDataEXT( m_device, static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), data ) );
23672 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setPrivateDataEXT" );
23673
23674 return detail::createResultValueType( result );
23675 }
23676 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
23677
23678 // wrapper function for command vkGetPrivateDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPrivateDataEXT.html
23679 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPrivateDataEXT ), bool>::type>
23680 VULKAN_HPP_INLINE void Device::getPrivateDataEXT(
23681 ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, uint64_t * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23682 {
23683 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23684 d.vkGetPrivateDataEXT(
23685 static_cast<VkDevice>( m_device ), static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), pData );
23686 }
23687
23688 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23689 // wrapper function for command vkGetPrivateDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPrivateDataEXT.html
23690 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPrivateDataEXT ), bool>::type>
23691 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE uint64_t
23692 Device::getPrivateDataEXT( ObjectType objectType_, uint64_t objectHandle, PrivateDataSlot privateDataSlot, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23693 {
23694 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23695 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23696 VULKAN_HPP_ASSERT( d.vkGetPrivateDataEXT && "Function <vkGetPrivateDataEXT> requires <VK_EXT_private_data> or <VK_VERSION_1_3>" );
23697 # endif
23698
23699 uint64_t data;
23700 d.vkGetPrivateDataEXT( m_device, static_cast<VkObjectType>( objectType_ ), objectHandle, static_cast<VkPrivateDataSlot>( privateDataSlot ), &data );
23701
23702 return data;
23703 }
23704 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23705
23706 //=== VK_KHR_video_encode_queue ===
23707
23708 // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see
23709 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html
23710 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR ), bool>::type>
23711 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
23712 PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR( const PhysicalDeviceVideoEncodeQualityLevelInfoKHR * pQualityLevelInfo,
23713 VideoEncodeQualityLevelPropertiesKHR * pQualityLevelProperties,
23714 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23715 {
23716 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23717 return static_cast<Result>(
23718 d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR( static_cast<VkPhysicalDevice>( m_physicalDevice ),
23719 reinterpret_cast<const VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR *>( pQualityLevelInfo ),
23720 reinterpret_cast<VkVideoEncodeQualityLevelPropertiesKHR *>( pQualityLevelProperties ) ) );
23721 }
23722
23723 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23724 // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see
23725 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html
23726 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR ), bool>::type>
23727 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<VideoEncodeQualityLevelPropertiesKHR>::type
23728 PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR( const PhysicalDeviceVideoEncodeQualityLevelInfoKHR & qualityLevelInfo, Dispatch const & d ) const
23729 {
23730 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23731 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23732 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR &&
23733 "Function <vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR> requires <VK_KHR_video_encode_queue>" );
23734 # endif
23735
23736 VideoEncodeQualityLevelPropertiesKHR qualityLevelProperties;
23737 Result result = static_cast<Result>(
23738 d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR( m_physicalDevice,
23739 reinterpret_cast<const VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR *>( &qualityLevelInfo ),
23740 reinterpret_cast<VkVideoEncodeQualityLevelPropertiesKHR *>( &qualityLevelProperties ) ) );
23741 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR" );
23742
23743 return detail::createResultValueType( result, std::move( qualityLevelProperties ) );
23744 }
23745
23746 // wrapper function for command vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR, see
23747 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR.html
23748 template <typename X,
23749 typename Y,
23750 typename... Z,
23751 typename Dispatch,
23752 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR ), bool>::type>
23753 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
23754 PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR( const PhysicalDeviceVideoEncodeQualityLevelInfoKHR & qualityLevelInfo, Dispatch const & d ) const
23755 {
23756 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23757 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23758 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR &&
23759 "Function <vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR> requires <VK_KHR_video_encode_queue>" );
23760 # endif
23761
23762 StructureChain<X, Y, Z...> structureChain;
23763 VideoEncodeQualityLevelPropertiesKHR & qualityLevelProperties = structureChain.template get<VideoEncodeQualityLevelPropertiesKHR>();
23764 Result result = static_cast<Result>(
23765 d.vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR( m_physicalDevice,
23766 reinterpret_cast<const VkPhysicalDeviceVideoEncodeQualityLevelInfoKHR *>( &qualityLevelInfo ),
23767 reinterpret_cast<VkVideoEncodeQualityLevelPropertiesKHR *>( &qualityLevelProperties ) ) );
23768 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getVideoEncodeQualityLevelPropertiesKHR" );
23769
23770 return detail::createResultValueType( result, std::move( structureChain ) );
23771 }
23772 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23773
23774 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
23775 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
23776 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetEncodedVideoSessionParametersKHR ), bool>::type>
23777 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
23778 Device::getEncodedVideoSessionParametersKHR( const VideoEncodeSessionParametersGetInfoKHR * pVideoSessionParametersInfo,
23779 VideoEncodeSessionParametersFeedbackInfoKHR * pFeedbackInfo,
23780 size_t * pDataSize,
23781 void * pData,
23782 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23783 {
23784 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23785 return static_cast<Result>(
23786 d.vkGetEncodedVideoSessionParametersKHR( static_cast<VkDevice>( m_device ),
23787 reinterpret_cast<const VkVideoEncodeSessionParametersGetInfoKHR *>( pVideoSessionParametersInfo ),
23788 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( pFeedbackInfo ),
23789 pDataSize,
23790 pData ) );
23791 }
23792
23793 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23794 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
23795 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
23796 template <typename Uint8_tAllocator,
23797 typename Dispatch,
23798 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
23799 typename std::enable_if<IS_DISPATCHED( vkGetEncodedVideoSessionParametersKHR ), bool>::type>
23800 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
23801 typename ResultValueType<std::pair<VideoEncodeSessionParametersFeedbackInfoKHR, std::vector<uint8_t, Uint8_tAllocator>>>::type
23802 Device::getEncodedVideoSessionParametersKHR( const VideoEncodeSessionParametersGetInfoKHR & videoSessionParametersInfo, Dispatch const & d ) const
23803 {
23804 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23805 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23806 VULKAN_HPP_ASSERT( d.vkGetEncodedVideoSessionParametersKHR && "Function <vkGetEncodedVideoSessionParametersKHR> requires <VK_KHR_video_encode_queue>" );
23807 # endif
23808
23809 std::pair<VideoEncodeSessionParametersFeedbackInfoKHR, std::vector<uint8_t, Uint8_tAllocator>> data_;
23810 VideoEncodeSessionParametersFeedbackInfoKHR & feedbackInfo = data_.first;
23811 std::vector<uint8_t, Uint8_tAllocator> & data = data_.second;
23812 size_t dataSize;
23813 Result result;
23814 do
23815 {
23816 result = static_cast<Result>(
23817 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23818 reinterpret_cast<const VkVideoEncodeSessionParametersGetInfoKHR *>( &videoSessionParametersInfo ),
23819 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23820 &dataSize,
23821 nullptr ) );
23822 if ( ( result == Result::eSuccess ) && dataSize )
23823 {
23824 data.resize( dataSize );
23825 result = static_cast<Result>(
23826 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23827 reinterpret_cast<const VkVideoEncodeSessionParametersGetInfoKHR *>( &videoSessionParametersInfo ),
23828 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23829 &dataSize,
23830 reinterpret_cast<void *>( data.data() ) ) );
23831 }
23832 } while ( result == Result::eIncomplete );
23833 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEncodedVideoSessionParametersKHR" );
23834
23835 return detail::createResultValueType( result, std::move( data_ ) );
23836 }
23837
23838 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
23839 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
23840 template <typename Uint8_tAllocator,
23841 typename Dispatch,
23842 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
23843 typename std::enable_if<IS_DISPATCHED( vkGetEncodedVideoSessionParametersKHR ), bool>::type>
23844 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
23845 typename ResultValueType<std::pair<VideoEncodeSessionParametersFeedbackInfoKHR, std::vector<uint8_t, Uint8_tAllocator>>>::type
23846 Device::getEncodedVideoSessionParametersKHR( const VideoEncodeSessionParametersGetInfoKHR & videoSessionParametersInfo,
23847 Uint8_tAllocator const & uint8_tAllocator,
23848 Dispatch const & d ) const
23849 {
23850 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23851 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23852 VULKAN_HPP_ASSERT( d.vkGetEncodedVideoSessionParametersKHR && "Function <vkGetEncodedVideoSessionParametersKHR> requires <VK_KHR_video_encode_queue>" );
23853 # endif
23854
23855 std::pair<VideoEncodeSessionParametersFeedbackInfoKHR, std::vector<uint8_t, Uint8_tAllocator>> data_(
23856 std::piecewise_construct, std::forward_as_tuple(), std::forward_as_tuple( uint8_tAllocator ) );
23857 VideoEncodeSessionParametersFeedbackInfoKHR & feedbackInfo = data_.first;
23858 std::vector<uint8_t, Uint8_tAllocator> & data = data_.second;
23859 size_t dataSize;
23860 Result result;
23861 do
23862 {
23863 result = static_cast<Result>(
23864 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23865 reinterpret_cast<const VkVideoEncodeSessionParametersGetInfoKHR *>( &videoSessionParametersInfo ),
23866 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23867 &dataSize,
23868 nullptr ) );
23869 if ( ( result == Result::eSuccess ) && dataSize )
23870 {
23871 data.resize( dataSize );
23872 result = static_cast<Result>(
23873 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23874 reinterpret_cast<const VkVideoEncodeSessionParametersGetInfoKHR *>( &videoSessionParametersInfo ),
23875 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23876 &dataSize,
23877 reinterpret_cast<void *>( data.data() ) ) );
23878 }
23879 } while ( result == Result::eIncomplete );
23880 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEncodedVideoSessionParametersKHR" );
23881
23882 return detail::createResultValueType( result, std::move( data_ ) );
23883 }
23884
23885 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
23886 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
23887 template <typename X,
23888 typename Y,
23889 typename... Z,
23890 typename Uint8_tAllocator,
23891 typename Dispatch,
23892 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
23893 typename std::enable_if<IS_DISPATCHED( vkGetEncodedVideoSessionParametersKHR ), bool>::type>
23894 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<StructureChain<X, Y, Z...>, std::vector<uint8_t, Uint8_tAllocator>>>::type
23895 Device::getEncodedVideoSessionParametersKHR( const VideoEncodeSessionParametersGetInfoKHR & videoSessionParametersInfo, Dispatch const & d ) const
23896 {
23897 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23898 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23899 VULKAN_HPP_ASSERT( d.vkGetEncodedVideoSessionParametersKHR && "Function <vkGetEncodedVideoSessionParametersKHR> requires <VK_KHR_video_encode_queue>" );
23900 # endif
23901
23902 std::pair<StructureChain<X, Y, Z...>, std::vector<uint8_t, Uint8_tAllocator>> data_;
23903 VideoEncodeSessionParametersFeedbackInfoKHR & feedbackInfo = data_.first.template get<VideoEncodeSessionParametersFeedbackInfoKHR>();
23904 std::vector<uint8_t, Uint8_tAllocator> & data = data_.second;
23905 size_t dataSize;
23906 Result result;
23907 do
23908 {
23909 result = static_cast<Result>(
23910 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23911 reinterpret_cast<const VkVideoEncodeSessionParametersGetInfoKHR *>( &videoSessionParametersInfo ),
23912 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23913 &dataSize,
23914 nullptr ) );
23915 if ( ( result == Result::eSuccess ) && dataSize )
23916 {
23917 data.resize( dataSize );
23918 result = static_cast<Result>(
23919 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23920 reinterpret_cast<const VkVideoEncodeSessionParametersGetInfoKHR *>( &videoSessionParametersInfo ),
23921 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23922 &dataSize,
23923 reinterpret_cast<void *>( data.data() ) ) );
23924 }
23925 } while ( result == Result::eIncomplete );
23926 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEncodedVideoSessionParametersKHR" );
23927
23928 return detail::createResultValueType( result, std::move( data_ ) );
23929 }
23930
23931 // wrapper function for command vkGetEncodedVideoSessionParametersKHR, see
23932 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetEncodedVideoSessionParametersKHR.html
23933 template <typename X,
23934 typename Y,
23935 typename... Z,
23936 typename Uint8_tAllocator,
23937 typename Dispatch,
23938 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
23939 typename std::enable_if<IS_DISPATCHED( vkGetEncodedVideoSessionParametersKHR ), bool>::type>
23940 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<StructureChain<X, Y, Z...>, std::vector<uint8_t, Uint8_tAllocator>>>::type
23941 Device::getEncodedVideoSessionParametersKHR( const VideoEncodeSessionParametersGetInfoKHR & videoSessionParametersInfo,
23942 Uint8_tAllocator const & uint8_tAllocator,
23943 Dispatch const & d ) const
23944 {
23945 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23946 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23947 VULKAN_HPP_ASSERT( d.vkGetEncodedVideoSessionParametersKHR && "Function <vkGetEncodedVideoSessionParametersKHR> requires <VK_KHR_video_encode_queue>" );
23948 # endif
23949
23950 std::pair<StructureChain<X, Y, Z...>, std::vector<uint8_t, Uint8_tAllocator>> data_(
23951 std::piecewise_construct, std::forward_as_tuple(), std::forward_as_tuple( uint8_tAllocator ) );
23952 VideoEncodeSessionParametersFeedbackInfoKHR & feedbackInfo = data_.first.template get<VideoEncodeSessionParametersFeedbackInfoKHR>();
23953 std::vector<uint8_t, Uint8_tAllocator> & data = data_.second;
23954 size_t dataSize;
23955 Result result;
23956 do
23957 {
23958 result = static_cast<Result>(
23959 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23960 reinterpret_cast<const VkVideoEncodeSessionParametersGetInfoKHR *>( &videoSessionParametersInfo ),
23961 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23962 &dataSize,
23963 nullptr ) );
23964 if ( ( result == Result::eSuccess ) && dataSize )
23965 {
23966 data.resize( dataSize );
23967 result = static_cast<Result>(
23968 d.vkGetEncodedVideoSessionParametersKHR( m_device,
23969 reinterpret_cast<const VkVideoEncodeSessionParametersGetInfoKHR *>( &videoSessionParametersInfo ),
23970 reinterpret_cast<VkVideoEncodeSessionParametersFeedbackInfoKHR *>( &feedbackInfo ),
23971 &dataSize,
23972 reinterpret_cast<void *>( data.data() ) ) );
23973 }
23974 } while ( result == Result::eIncomplete );
23975 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getEncodedVideoSessionParametersKHR" );
23976
23977 return detail::createResultValueType( result, std::move( data_ ) );
23978 }
23979 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
23980
23981 // wrapper function for command vkCmdEncodeVideoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEncodeVideoKHR.html
23982 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEncodeVideoKHR ), bool>::type>
23983 VULKAN_HPP_INLINE void CommandBuffer::encodeVideoKHR( const VideoEncodeInfoKHR * pEncodeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23984 {
23985 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23986 d.vkCmdEncodeVideoKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkVideoEncodeInfoKHR *>( pEncodeInfo ) );
23987 }
23988
23989 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
23990 // wrapper function for command vkCmdEncodeVideoKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEncodeVideoKHR.html
23991 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEncodeVideoKHR ), bool>::type>
23992 VULKAN_HPP_INLINE void CommandBuffer::encodeVideoKHR( const VideoEncodeInfoKHR & encodeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
23993 {
23994 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
23995 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
23996 VULKAN_HPP_ASSERT( d.vkCmdEncodeVideoKHR && "Function <vkCmdEncodeVideoKHR> requires <VK_KHR_video_encode_queue>" );
23997 # endif
23998
23999 d.vkCmdEncodeVideoKHR( m_commandBuffer, reinterpret_cast<const VkVideoEncodeInfoKHR *>( &encodeInfo ) );
24000 }
24001 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24002
24003 #if defined( VK_ENABLE_BETA_EXTENSIONS )
24004 //=== VK_NV_cuda_kernel_launch ===
24005
24006 // wrapper function for command vkCreateCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaModuleNV.html
24007 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCudaModuleNV ), bool>::type>
24008 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createCudaModuleNV( const CudaModuleCreateInfoNV * pCreateInfo,
24009 const AllocationCallbacks * pAllocator,
24010 CudaModuleNV * pModule,
24011 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24012 {
24013 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24014 return static_cast<Result>( d.vkCreateCudaModuleNV( static_cast<VkDevice>( m_device ),
24015 reinterpret_cast<const VkCudaModuleCreateInfoNV *>( pCreateInfo ),
24016 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
24017 reinterpret_cast<VkCudaModuleNV *>( pModule ) ) );
24018 }
24019
24020 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24021 // wrapper function for command vkCreateCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaModuleNV.html
24022 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCudaModuleNV ), bool>::type>
24023 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CudaModuleNV>::type
24024 Device::createCudaModuleNV( const CudaModuleCreateInfoNV & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
24025 {
24026 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24027 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24028 VULKAN_HPP_ASSERT( d.vkCreateCudaModuleNV && "Function <vkCreateCudaModuleNV> requires <VK_NV_cuda_kernel_launch>" );
24029 # endif
24030
24031 CudaModuleNV module;
24032 Result result = static_cast<Result>( d.vkCreateCudaModuleNV( m_device,
24033 reinterpret_cast<const VkCudaModuleCreateInfoNV *>( &createInfo ),
24034 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
24035 reinterpret_cast<VkCudaModuleNV *>( &module ) ) );
24036 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCudaModuleNV" );
24037
24038 return detail::createResultValueType( result, std::move( module ) );
24039 }
24040
24041 # ifndef VULKAN_HPP_NO_SMART_HANDLE
24042 // wrapper function for command vkCreateCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaModuleNV.html
24043 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCudaModuleNV ), bool>::type>
24044 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<CudaModuleNV, Dispatch>>::type
24045 Device::createCudaModuleNVUnique( const CudaModuleCreateInfoNV & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
24046 {
24047 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24048 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24049 VULKAN_HPP_ASSERT( d.vkCreateCudaModuleNV && "Function <vkCreateCudaModuleNV> requires <VK_NV_cuda_kernel_launch>" );
24050 # endif
24051
24052 CudaModuleNV module;
24053 Result result = static_cast<Result>( d.vkCreateCudaModuleNV( m_device,
24054 reinterpret_cast<const VkCudaModuleCreateInfoNV *>( &createInfo ),
24055 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
24056 reinterpret_cast<VkCudaModuleNV *>( &module ) ) );
24057 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCudaModuleNVUnique" );
24058
24059 return detail::createResultValueType( result,
24060 UniqueHandle<CudaModuleNV, Dispatch>( module, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
24061 }
24062 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
24063 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24064
24065 // wrapper function for command vkGetCudaModuleCacheNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCudaModuleCacheNV.html
24066 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetCudaModuleCacheNV ), bool>::type>
24067 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
24068 Device::getCudaModuleCacheNV( CudaModuleNV module, size_t * pCacheSize, void * pCacheData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24069 {
24070 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24071 return static_cast<Result>( d.vkGetCudaModuleCacheNV( static_cast<VkDevice>( m_device ), static_cast<VkCudaModuleNV>( module ), pCacheSize, pCacheData ) );
24072 }
24073
24074 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24075 // wrapper function for command vkGetCudaModuleCacheNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCudaModuleCacheNV.html
24076 template <typename Uint8_tAllocator,
24077 typename Dispatch,
24078 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
24079 typename std::enable_if<IS_DISPATCHED( vkGetCudaModuleCacheNV ), bool>::type>
24080 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
24081 Device::getCudaModuleCacheNV( CudaModuleNV module, Dispatch const & d ) const
24082 {
24083 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24084 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24085 VULKAN_HPP_ASSERT( d.vkGetCudaModuleCacheNV && "Function <vkGetCudaModuleCacheNV> requires <VK_NV_cuda_kernel_launch>" );
24086 # endif
24087
24088 std::vector<uint8_t, Uint8_tAllocator> cacheData;
24089 size_t cacheSize;
24090 Result result;
24091 do
24092 {
24093 result = static_cast<Result>( d.vkGetCudaModuleCacheNV( m_device, static_cast<VkCudaModuleNV>( module ), &cacheSize, nullptr ) );
24094 if ( ( result == Result::eSuccess ) && cacheSize )
24095 {
24096 cacheData.resize( cacheSize );
24097 result = static_cast<Result>(
24098 d.vkGetCudaModuleCacheNV( m_device, static_cast<VkCudaModuleNV>( module ), &cacheSize, reinterpret_cast<void *>( cacheData.data() ) ) );
24099 }
24100 } while ( result == Result::eIncomplete );
24101 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCudaModuleCacheNV" );
24102 VULKAN_HPP_ASSERT( cacheSize <= cacheData.size() );
24103 if ( cacheSize < cacheData.size() )
24104 {
24105 cacheData.resize( cacheSize );
24106 }
24107 return detail::createResultValueType( result, std::move( cacheData ) );
24108 }
24109
24110 // wrapper function for command vkGetCudaModuleCacheNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCudaModuleCacheNV.html
24111 template <typename Uint8_tAllocator,
24112 typename Dispatch,
24113 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
24114 typename std::enable_if<IS_DISPATCHED( vkGetCudaModuleCacheNV ), bool>::type>
24115 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
24116 Device::getCudaModuleCacheNV( CudaModuleNV module, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
24117 {
24118 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24119 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24120 VULKAN_HPP_ASSERT( d.vkGetCudaModuleCacheNV && "Function <vkGetCudaModuleCacheNV> requires <VK_NV_cuda_kernel_launch>" );
24121 # endif
24122
24123 std::vector<uint8_t, Uint8_tAllocator> cacheData( uint8_tAllocator );
24124 size_t cacheSize;
24125 Result result;
24126 do
24127 {
24128 result = static_cast<Result>( d.vkGetCudaModuleCacheNV( m_device, static_cast<VkCudaModuleNV>( module ), &cacheSize, nullptr ) );
24129 if ( ( result == Result::eSuccess ) && cacheSize )
24130 {
24131 cacheData.resize( cacheSize );
24132 result = static_cast<Result>(
24133 d.vkGetCudaModuleCacheNV( m_device, static_cast<VkCudaModuleNV>( module ), &cacheSize, reinterpret_cast<void *>( cacheData.data() ) ) );
24134 }
24135 } while ( result == Result::eIncomplete );
24136 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCudaModuleCacheNV" );
24137 VULKAN_HPP_ASSERT( cacheSize <= cacheData.size() );
24138 if ( cacheSize < cacheData.size() )
24139 {
24140 cacheData.resize( cacheSize );
24141 }
24142 return detail::createResultValueType( result, std::move( cacheData ) );
24143 }
24144 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24145
24146 // wrapper function for command vkCreateCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaFunctionNV.html
24147 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCudaFunctionNV ), bool>::type>
24148 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createCudaFunctionNV( const CudaFunctionCreateInfoNV * pCreateInfo,
24149 const AllocationCallbacks * pAllocator,
24150 CudaFunctionNV * pFunction,
24151 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24152 {
24153 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24154 return static_cast<Result>( d.vkCreateCudaFunctionNV( static_cast<VkDevice>( m_device ),
24155 reinterpret_cast<const VkCudaFunctionCreateInfoNV *>( pCreateInfo ),
24156 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
24157 reinterpret_cast<VkCudaFunctionNV *>( pFunction ) ) );
24158 }
24159
24160 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24161 // wrapper function for command vkCreateCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaFunctionNV.html
24162 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCudaFunctionNV ), bool>::type>
24163 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<CudaFunctionNV>::type
24164 Device::createCudaFunctionNV( const CudaFunctionCreateInfoNV & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
24165 {
24166 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24167 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24168 VULKAN_HPP_ASSERT( d.vkCreateCudaFunctionNV && "Function <vkCreateCudaFunctionNV> requires <VK_NV_cuda_kernel_launch>" );
24169 # endif
24170
24171 CudaFunctionNV function;
24172 Result result = static_cast<Result>( d.vkCreateCudaFunctionNV( m_device,
24173 reinterpret_cast<const VkCudaFunctionCreateInfoNV *>( &createInfo ),
24174 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
24175 reinterpret_cast<VkCudaFunctionNV *>( &function ) ) );
24176 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCudaFunctionNV" );
24177
24178 return detail::createResultValueType( result, std::move( function ) );
24179 }
24180
24181 # ifndef VULKAN_HPP_NO_SMART_HANDLE
24182 // wrapper function for command vkCreateCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateCudaFunctionNV.html
24183 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateCudaFunctionNV ), bool>::type>
24184 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<CudaFunctionNV, Dispatch>>::type
24185 Device::createCudaFunctionNVUnique( const CudaFunctionCreateInfoNV & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
24186 {
24187 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24188 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24189 VULKAN_HPP_ASSERT( d.vkCreateCudaFunctionNV && "Function <vkCreateCudaFunctionNV> requires <VK_NV_cuda_kernel_launch>" );
24190 # endif
24191
24192 CudaFunctionNV function;
24193 Result result = static_cast<Result>( d.vkCreateCudaFunctionNV( m_device,
24194 reinterpret_cast<const VkCudaFunctionCreateInfoNV *>( &createInfo ),
24195 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
24196 reinterpret_cast<VkCudaFunctionNV *>( &function ) ) );
24197 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createCudaFunctionNVUnique" );
24198
24199 return detail::createResultValueType( result,
24200 UniqueHandle<CudaFunctionNV, Dispatch>( function, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
24201 }
24202 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
24203 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24204
24205 // wrapper function for command vkDestroyCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaModuleNV.html
24206 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaModuleNV ), bool>::type>
24207 VULKAN_HPP_INLINE void
24208 Device::destroyCudaModuleNV( CudaModuleNV module, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24209 {
24210 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24211 d.vkDestroyCudaModuleNV(
24212 static_cast<VkDevice>( m_device ), static_cast<VkCudaModuleNV>( module ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
24213 }
24214
24215 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24216 // wrapper function for command vkDestroyCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaModuleNV.html
24217 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaModuleNV ), bool>::type>
24218 VULKAN_HPP_INLINE void
24219 Device::destroyCudaModuleNV( CudaModuleNV module, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24220 {
24221 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24222 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24223 VULKAN_HPP_ASSERT( d.vkDestroyCudaModuleNV && "Function <vkDestroyCudaModuleNV> requires <VK_NV_cuda_kernel_launch>" );
24224 # endif
24225
24226 d.vkDestroyCudaModuleNV( m_device, static_cast<VkCudaModuleNV>( module ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
24227 }
24228 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24229
24230 // wrapper function for command vkDestroyCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaModuleNV.html
24231 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaModuleNV ), bool>::type>
24232 VULKAN_HPP_INLINE void Device::destroy( CudaModuleNV module, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24233 {
24234 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24235 d.vkDestroyCudaModuleNV(
24236 static_cast<VkDevice>( m_device ), static_cast<VkCudaModuleNV>( module ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
24237 }
24238
24239 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24240 // wrapper function for command vkDestroyCudaModuleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaModuleNV.html
24241 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaModuleNV ), bool>::type>
24242 VULKAN_HPP_INLINE void Device::destroy( CudaModuleNV module, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24243 {
24244 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24245 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24246 VULKAN_HPP_ASSERT( d.vkDestroyCudaModuleNV && "Function <vkDestroyCudaModuleNV> requires <VK_NV_cuda_kernel_launch>" );
24247 # endif
24248
24249 d.vkDestroyCudaModuleNV( m_device, static_cast<VkCudaModuleNV>( module ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
24250 }
24251 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24252
24253 // wrapper function for command vkDestroyCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaFunctionNV.html
24254 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaFunctionNV ), bool>::type>
24255 VULKAN_HPP_INLINE void
24256 Device::destroyCudaFunctionNV( CudaFunctionNV function, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24257 {
24258 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24259 d.vkDestroyCudaFunctionNV(
24260 static_cast<VkDevice>( m_device ), static_cast<VkCudaFunctionNV>( function ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
24261 }
24262
24263 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24264 // wrapper function for command vkDestroyCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaFunctionNV.html
24265 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaFunctionNV ), bool>::type>
24266 VULKAN_HPP_INLINE void
24267 Device::destroyCudaFunctionNV( CudaFunctionNV function, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24268 {
24269 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24270 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24271 VULKAN_HPP_ASSERT( d.vkDestroyCudaFunctionNV && "Function <vkDestroyCudaFunctionNV> requires <VK_NV_cuda_kernel_launch>" );
24272 # endif
24273
24274 d.vkDestroyCudaFunctionNV( m_device, static_cast<VkCudaFunctionNV>( function ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
24275 }
24276 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24277
24278 // wrapper function for command vkDestroyCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaFunctionNV.html
24279 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaFunctionNV ), bool>::type>
24280 VULKAN_HPP_INLINE void Device::destroy( CudaFunctionNV function, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24281 {
24282 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24283 d.vkDestroyCudaFunctionNV(
24284 static_cast<VkDevice>( m_device ), static_cast<VkCudaFunctionNV>( function ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
24285 }
24286
24287 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24288 // wrapper function for command vkDestroyCudaFunctionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyCudaFunctionNV.html
24289 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyCudaFunctionNV ), bool>::type>
24290 VULKAN_HPP_INLINE void Device::destroy( CudaFunctionNV function, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24291 {
24292 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24293 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24294 VULKAN_HPP_ASSERT( d.vkDestroyCudaFunctionNV && "Function <vkDestroyCudaFunctionNV> requires <VK_NV_cuda_kernel_launch>" );
24295 # endif
24296
24297 d.vkDestroyCudaFunctionNV( m_device, static_cast<VkCudaFunctionNV>( function ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
24298 }
24299 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24300
24301 // wrapper function for command vkCmdCudaLaunchKernelNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCudaLaunchKernelNV.html
24302 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCudaLaunchKernelNV ), bool>::type>
24303 VULKAN_HPP_INLINE void CommandBuffer::cudaLaunchKernelNV( const CudaLaunchInfoNV * pLaunchInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24304 {
24305 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24306 d.vkCmdCudaLaunchKernelNV( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCudaLaunchInfoNV *>( pLaunchInfo ) );
24307 }
24308
24309 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24310 // wrapper function for command vkCmdCudaLaunchKernelNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCudaLaunchKernelNV.html
24311 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCudaLaunchKernelNV ), bool>::type>
24312 VULKAN_HPP_INLINE void CommandBuffer::cudaLaunchKernelNV( const CudaLaunchInfoNV & launchInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24313 {
24314 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24315 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24316 VULKAN_HPP_ASSERT( d.vkCmdCudaLaunchKernelNV && "Function <vkCmdCudaLaunchKernelNV> requires <VK_NV_cuda_kernel_launch>" );
24317 # endif
24318
24319 d.vkCmdCudaLaunchKernelNV( m_commandBuffer, reinterpret_cast<const VkCudaLaunchInfoNV *>( &launchInfo ) );
24320 }
24321 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24322 #endif /*VK_ENABLE_BETA_EXTENSIONS*/
24323
24324 //=== VK_QCOM_tile_shading ===
24325
24326 // wrapper function for command vkCmdDispatchTileQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchTileQCOM.html
24327 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchTileQCOM ), bool>::type>
24328 VULKAN_HPP_INLINE void CommandBuffer::dispatchTileQCOM( const DispatchTileInfoQCOM * pDispatchTileInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24329 {
24330 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24331 d.vkCmdDispatchTileQCOM( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkDispatchTileInfoQCOM *>( pDispatchTileInfo ) );
24332 }
24333
24334 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24335 // wrapper function for command vkCmdDispatchTileQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchTileQCOM.html
24336 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchTileQCOM ), bool>::type>
24337 VULKAN_HPP_INLINE void CommandBuffer::dispatchTileQCOM( const DispatchTileInfoQCOM & dispatchTileInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24338 {
24339 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24340 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24341 VULKAN_HPP_ASSERT( d.vkCmdDispatchTileQCOM && "Function <vkCmdDispatchTileQCOM> requires <VK_QCOM_tile_shading>" );
24342 # endif
24343
24344 d.vkCmdDispatchTileQCOM( m_commandBuffer, reinterpret_cast<const VkDispatchTileInfoQCOM *>( &dispatchTileInfo ) );
24345 }
24346 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24347
24348 // wrapper function for command vkCmdBeginPerTileExecutionQCOM, see
24349 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginPerTileExecutionQCOM.html
24350 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginPerTileExecutionQCOM ), bool>::type>
24351 VULKAN_HPP_INLINE void CommandBuffer::beginPerTileExecutionQCOM( const PerTileBeginInfoQCOM * pPerTileBeginInfo,
24352 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24353 {
24354 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24355 d.vkCmdBeginPerTileExecutionQCOM( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkPerTileBeginInfoQCOM *>( pPerTileBeginInfo ) );
24356 }
24357
24358 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24359 // wrapper function for command vkCmdBeginPerTileExecutionQCOM, see
24360 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginPerTileExecutionQCOM.html
24361 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginPerTileExecutionQCOM ), bool>::type>
24362 VULKAN_HPP_INLINE void CommandBuffer::beginPerTileExecutionQCOM( const PerTileBeginInfoQCOM & perTileBeginInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24363 {
24364 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24365 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24366 VULKAN_HPP_ASSERT( d.vkCmdBeginPerTileExecutionQCOM && "Function <vkCmdBeginPerTileExecutionQCOM> requires <VK_QCOM_tile_shading>" );
24367 # endif
24368
24369 d.vkCmdBeginPerTileExecutionQCOM( m_commandBuffer, reinterpret_cast<const VkPerTileBeginInfoQCOM *>( &perTileBeginInfo ) );
24370 }
24371 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24372
24373 // wrapper function for command vkCmdEndPerTileExecutionQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndPerTileExecutionQCOM.html
24374 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndPerTileExecutionQCOM ), bool>::type>
24375 VULKAN_HPP_INLINE void CommandBuffer::endPerTileExecutionQCOM( const PerTileEndInfoQCOM * pPerTileEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24376 {
24377 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24378 d.vkCmdEndPerTileExecutionQCOM( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkPerTileEndInfoQCOM *>( pPerTileEndInfo ) );
24379 }
24380
24381 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24382 // wrapper function for command vkCmdEndPerTileExecutionQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndPerTileExecutionQCOM.html
24383 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndPerTileExecutionQCOM ), bool>::type>
24384 VULKAN_HPP_INLINE void CommandBuffer::endPerTileExecutionQCOM( const PerTileEndInfoQCOM & perTileEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24385 {
24386 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24387 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24388 VULKAN_HPP_ASSERT( d.vkCmdEndPerTileExecutionQCOM && "Function <vkCmdEndPerTileExecutionQCOM> requires <VK_QCOM_tile_shading>" );
24389 # endif
24390
24391 d.vkCmdEndPerTileExecutionQCOM( m_commandBuffer, reinterpret_cast<const VkPerTileEndInfoQCOM *>( &perTileEndInfo ) );
24392 }
24393 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24394
24395 #if defined( VK_USE_PLATFORM_METAL_EXT )
24396 //=== VK_EXT_metal_objects ===
24397
24398 // wrapper function for command vkExportMetalObjectsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkExportMetalObjectsEXT.html
24399 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkExportMetalObjectsEXT ), bool>::type>
24400 VULKAN_HPP_INLINE void Device::exportMetalObjectsEXT( ExportMetalObjectsInfoEXT * pMetalObjectsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24401 {
24402 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24403 d.vkExportMetalObjectsEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<VkExportMetalObjectsInfoEXT *>( pMetalObjectsInfo ) );
24404 }
24405
24406 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24407 // wrapper function for command vkExportMetalObjectsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkExportMetalObjectsEXT.html
24408 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkExportMetalObjectsEXT ), bool>::type>
24409 VULKAN_HPP_INLINE void Device::exportMetalObjectsEXT( ExportMetalObjectsInfoEXT & metalObjectsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24410 {
24411 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24412 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24413 VULKAN_HPP_ASSERT( d.vkExportMetalObjectsEXT && "Function <vkExportMetalObjectsEXT> requires <VK_EXT_metal_objects>" );
24414 # endif
24415
24416 d.vkExportMetalObjectsEXT( m_device, reinterpret_cast<VkExportMetalObjectsInfoEXT *>( &metalObjectsInfo ) );
24417 }
24418 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24419 #endif /*VK_USE_PLATFORM_METAL_EXT*/
24420
24421 //=== VK_KHR_synchronization2 ===
24422
24423 // wrapper function for command vkCmdSetEvent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent2KHR.html
24424 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetEvent2KHR ), bool>::type>
24425 VULKAN_HPP_INLINE void CommandBuffer::setEvent2KHR( Event event, const DependencyInfo * pDependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24426 {
24427 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24428 d.vkCmdSetEvent2KHR(
24429 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), reinterpret_cast<const VkDependencyInfo *>( pDependencyInfo ) );
24430 }
24431
24432 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24433 // wrapper function for command vkCmdSetEvent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetEvent2KHR.html
24434 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetEvent2KHR ), bool>::type>
24435 VULKAN_HPP_INLINE void CommandBuffer::setEvent2KHR( Event event, const DependencyInfo & dependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24436 {
24437 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24438 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24439 VULKAN_HPP_ASSERT( d.vkCmdSetEvent2KHR && "Function <vkCmdSetEvent2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
24440 # endif
24441
24442 d.vkCmdSetEvent2KHR( m_commandBuffer, static_cast<VkEvent>( event ), reinterpret_cast<const VkDependencyInfo *>( &dependencyInfo ) );
24443 }
24444 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24445
24446 // wrapper function for command vkCmdResetEvent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResetEvent2KHR.html
24447 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResetEvent2KHR ), bool>::type>
24448 VULKAN_HPP_INLINE void CommandBuffer::resetEvent2KHR( Event event, PipelineStageFlags2 stageMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24449 {
24450 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24451 d.vkCmdResetEvent2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkEvent>( event ), static_cast<VkPipelineStageFlags2>( stageMask ) );
24452 }
24453
24454 // wrapper function for command vkCmdWaitEvents2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents2KHR.html
24455 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWaitEvents2KHR ), bool>::type>
24456 VULKAN_HPP_INLINE void CommandBuffer::waitEvents2KHR( uint32_t eventCount,
24457 const Event * pEvents,
24458 const DependencyInfo * pDependencyInfos,
24459 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24460 {
24461 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24462 d.vkCmdWaitEvents2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
24463 eventCount,
24464 reinterpret_cast<const VkEvent *>( pEvents ),
24465 reinterpret_cast<const VkDependencyInfo *>( pDependencyInfos ) );
24466 }
24467
24468 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24469 // wrapper function for command vkCmdWaitEvents2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWaitEvents2KHR.html
24470 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWaitEvents2KHR ), bool>::type>
24471 VULKAN_HPP_INLINE void CommandBuffer::waitEvents2KHR( ArrayProxy<const Event> const & events,
24472 ArrayProxy<const DependencyInfo> const & dependencyInfos,
24473 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
24474 {
24475 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24476 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24477 VULKAN_HPP_ASSERT( d.vkCmdWaitEvents2KHR && "Function <vkCmdWaitEvents2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
24478 # endif
24479 # ifdef VULKAN_HPP_NO_EXCEPTIONS
24480 VULKAN_HPP_ASSERT( events.size() == dependencyInfos.size() );
24481 # else
24482 if ( events.size() != dependencyInfos.size() )
24483 {
24484 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::waitEvents2KHR: events.size() != dependencyInfos.size()" );
24485 }
24486 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
24487
24488 d.vkCmdWaitEvents2KHR( m_commandBuffer,
24489 events.size(),
24490 reinterpret_cast<const VkEvent *>( events.data() ),
24491 reinterpret_cast<const VkDependencyInfo *>( dependencyInfos.data() ) );
24492 }
24493 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24494
24495 // wrapper function for command vkCmdPipelineBarrier2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier2KHR.html
24496 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPipelineBarrier2KHR ), bool>::type>
24497 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier2KHR( const DependencyInfo * pDependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24498 {
24499 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24500 d.vkCmdPipelineBarrier2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkDependencyInfo *>( pDependencyInfo ) );
24501 }
24502
24503 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24504 // wrapper function for command vkCmdPipelineBarrier2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPipelineBarrier2KHR.html
24505 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPipelineBarrier2KHR ), bool>::type>
24506 VULKAN_HPP_INLINE void CommandBuffer::pipelineBarrier2KHR( const DependencyInfo & dependencyInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24507 {
24508 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24509 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24510 VULKAN_HPP_ASSERT( d.vkCmdPipelineBarrier2KHR && "Function <vkCmdPipelineBarrier2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
24511 # endif
24512
24513 d.vkCmdPipelineBarrier2KHR( m_commandBuffer, reinterpret_cast<const VkDependencyInfo *>( &dependencyInfo ) );
24514 }
24515 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24516
24517 // wrapper function for command vkCmdWriteTimestamp2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteTimestamp2KHR.html
24518 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteTimestamp2KHR ), bool>::type>
24519 VULKAN_HPP_INLINE void
24520 CommandBuffer::writeTimestamp2KHR( PipelineStageFlags2 stage, QueryPool queryPool, uint32_t query, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24521 {
24522 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24523 d.vkCmdWriteTimestamp2KHR(
24524 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineStageFlags2>( stage ), static_cast<VkQueryPool>( queryPool ), query );
24525 }
24526
24527 // wrapper function for command vkQueueSubmit2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2KHR.html
24528 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSubmit2KHR ), bool>::type>
24529 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
24530 Queue::submit2KHR( uint32_t submitCount, const SubmitInfo2 * pSubmits, Fence fence, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24531 {
24532 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24533 return static_cast<Result>(
24534 d.vkQueueSubmit2KHR( static_cast<VkQueue>( m_queue ), submitCount, reinterpret_cast<const VkSubmitInfo2 *>( pSubmits ), static_cast<VkFence>( fence ) ) );
24535 }
24536
24537 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24538 // wrapper function for command vkQueueSubmit2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueSubmit2KHR.html
24539 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueSubmit2KHR ), bool>::type>
24540 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
24541 Queue::submit2KHR( ArrayProxy<const SubmitInfo2> const & submits, Fence fence, Dispatch const & d ) const
24542 {
24543 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24544 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24545 VULKAN_HPP_ASSERT( d.vkQueueSubmit2KHR && "Function <vkQueueSubmit2KHR> requires <VK_KHR_synchronization2> or <VK_VERSION_1_3>" );
24546 # endif
24547
24548 Result result = static_cast<Result>(
24549 d.vkQueueSubmit2KHR( m_queue, submits.size(), reinterpret_cast<const VkSubmitInfo2 *>( submits.data() ), static_cast<VkFence>( fence ) ) );
24550 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Queue::submit2KHR" );
24551
24552 return detail::createResultValueType( result );
24553 }
24554 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24555
24556 //=== VK_EXT_descriptor_buffer ===
24557
24558 // wrapper function for command vkGetDescriptorSetLayoutSizeEXT, see
24559 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSizeEXT.html
24560 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSizeEXT ), bool>::type>
24561 VULKAN_HPP_INLINE void
24562 Device::getDescriptorSetLayoutSizeEXT( DescriptorSetLayout layout, DeviceSize * pLayoutSizeInBytes, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24563 {
24564 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24565 d.vkGetDescriptorSetLayoutSizeEXT(
24566 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorSetLayout>( layout ), reinterpret_cast<VkDeviceSize *>( pLayoutSizeInBytes ) );
24567 }
24568
24569 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24570 // wrapper function for command vkGetDescriptorSetLayoutSizeEXT, see
24571 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutSizeEXT.html
24572 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutSizeEXT ), bool>::type>
24573 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceSize Device::getDescriptorSetLayoutSizeEXT( DescriptorSetLayout layout,
24574 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24575 {
24576 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24577 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24578 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutSizeEXT && "Function <vkGetDescriptorSetLayoutSizeEXT> requires <VK_EXT_descriptor_buffer>" );
24579 # endif
24580
24581 DeviceSize layoutSizeInBytes;
24582 d.vkGetDescriptorSetLayoutSizeEXT( m_device, static_cast<VkDescriptorSetLayout>( layout ), reinterpret_cast<VkDeviceSize *>( &layoutSizeInBytes ) );
24583
24584 return layoutSizeInBytes;
24585 }
24586 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24587
24588 // wrapper function for command vkGetDescriptorSetLayoutBindingOffsetEXT, see
24589 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutBindingOffsetEXT.html
24590 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutBindingOffsetEXT ), bool>::type>
24591 VULKAN_HPP_INLINE void Device::getDescriptorSetLayoutBindingOffsetEXT( DescriptorSetLayout layout,
24592 uint32_t binding,
24593 DeviceSize * pOffset,
24594 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24595 {
24596 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24597 d.vkGetDescriptorSetLayoutBindingOffsetEXT(
24598 static_cast<VkDevice>( m_device ), static_cast<VkDescriptorSetLayout>( layout ), binding, reinterpret_cast<VkDeviceSize *>( pOffset ) );
24599 }
24600
24601 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24602 // wrapper function for command vkGetDescriptorSetLayoutBindingOffsetEXT, see
24603 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutBindingOffsetEXT.html
24604 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutBindingOffsetEXT ), bool>::type>
24605 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DeviceSize Device::getDescriptorSetLayoutBindingOffsetEXT( DescriptorSetLayout layout,
24606 uint32_t binding,
24607 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24608 {
24609 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24610 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24611 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutBindingOffsetEXT &&
24612 "Function <vkGetDescriptorSetLayoutBindingOffsetEXT> requires <VK_EXT_descriptor_buffer>" );
24613 # endif
24614
24615 DeviceSize offset;
24616 d.vkGetDescriptorSetLayoutBindingOffsetEXT( m_device, static_cast<VkDescriptorSetLayout>( layout ), binding, reinterpret_cast<VkDeviceSize *>( &offset ) );
24617
24618 return offset;
24619 }
24620 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24621
24622 // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html
24623 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorEXT ), bool>::type>
24624 VULKAN_HPP_INLINE void
24625 Device::getDescriptorEXT( const DescriptorGetInfoEXT * pDescriptorInfo, size_t dataSize, void * pDescriptor, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24626 {
24627 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24628 d.vkGetDescriptorEXT( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkDescriptorGetInfoEXT *>( pDescriptorInfo ), dataSize, pDescriptor );
24629 }
24630
24631 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24632 // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html
24633 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorEXT ), bool>::type>
24634 VULKAN_HPP_INLINE void
24635 Device::getDescriptorEXT( const DescriptorGetInfoEXT & descriptorInfo, size_t dataSize, void * pDescriptor, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24636 {
24637 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24638 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24639 VULKAN_HPP_ASSERT( d.vkGetDescriptorEXT && "Function <vkGetDescriptorEXT> requires <VK_EXT_descriptor_buffer>" );
24640 # endif
24641
24642 d.vkGetDescriptorEXT( m_device, reinterpret_cast<const VkDescriptorGetInfoEXT *>( &descriptorInfo ), dataSize, pDescriptor );
24643 }
24644
24645 // wrapper function for command vkGetDescriptorEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorEXT.html
24646 template <typename DescriptorType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorEXT ), bool>::type>
24647 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DescriptorType Device::getDescriptorEXT( const DescriptorGetInfoEXT & descriptorInfo,
24648 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24649 {
24650 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24651 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24652 VULKAN_HPP_ASSERT( d.vkGetDescriptorEXT && "Function <vkGetDescriptorEXT> requires <VK_EXT_descriptor_buffer>" );
24653 # endif
24654
24655 DescriptorType descriptor;
24656 d.vkGetDescriptorEXT(
24657 m_device, reinterpret_cast<const VkDescriptorGetInfoEXT *>( &descriptorInfo ), sizeof( DescriptorType ), reinterpret_cast<void *>( &descriptor ) );
24658
24659 return descriptor;
24660 }
24661 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24662
24663 // wrapper function for command vkCmdBindDescriptorBuffersEXT, see
24664 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBuffersEXT.html
24665 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorBuffersEXT ), bool>::type>
24666 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorBuffersEXT( uint32_t bufferCount,
24667 const DescriptorBufferBindingInfoEXT * pBindingInfos,
24668 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24669 {
24670 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24671 d.vkCmdBindDescriptorBuffersEXT(
24672 static_cast<VkCommandBuffer>( m_commandBuffer ), bufferCount, reinterpret_cast<const VkDescriptorBufferBindingInfoEXT *>( pBindingInfos ) );
24673 }
24674
24675 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24676 // wrapper function for command vkCmdBindDescriptorBuffersEXT, see
24677 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBuffersEXT.html
24678 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorBuffersEXT ), bool>::type>
24679 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorBuffersEXT( ArrayProxy<const DescriptorBufferBindingInfoEXT> const & bindingInfos,
24680 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24681 {
24682 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24683 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24684 VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorBuffersEXT && "Function <vkCmdBindDescriptorBuffersEXT> requires <VK_EXT_descriptor_buffer>" );
24685 # endif
24686
24687 d.vkCmdBindDescriptorBuffersEXT( m_commandBuffer, bindingInfos.size(), reinterpret_cast<const VkDescriptorBufferBindingInfoEXT *>( bindingInfos.data() ) );
24688 }
24689 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24690
24691 // wrapper function for command vkCmdSetDescriptorBufferOffsetsEXT, see
24692 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDescriptorBufferOffsetsEXT.html
24693 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDescriptorBufferOffsetsEXT ), bool>::type>
24694 VULKAN_HPP_INLINE void CommandBuffer::setDescriptorBufferOffsetsEXT( PipelineBindPoint pipelineBindPoint,
24695 PipelineLayout layout,
24696 uint32_t firstSet,
24697 uint32_t setCount,
24698 const uint32_t * pBufferIndices,
24699 const DeviceSize * pOffsets,
24700 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24701 {
24702 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24703 d.vkCmdSetDescriptorBufferOffsetsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
24704 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
24705 static_cast<VkPipelineLayout>( layout ),
24706 firstSet,
24707 setCount,
24708 pBufferIndices,
24709 reinterpret_cast<const VkDeviceSize *>( pOffsets ) );
24710 }
24711
24712 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24713 // wrapper function for command vkCmdSetDescriptorBufferOffsetsEXT, see
24714 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDescriptorBufferOffsetsEXT.html
24715 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDescriptorBufferOffsetsEXT ), bool>::type>
24716 VULKAN_HPP_INLINE void CommandBuffer::setDescriptorBufferOffsetsEXT( PipelineBindPoint pipelineBindPoint,
24717 PipelineLayout layout,
24718 uint32_t firstSet,
24719 ArrayProxy<const uint32_t> const & bufferIndices,
24720 ArrayProxy<const DeviceSize> const & offsets,
24721 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
24722 {
24723 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24724 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24725 VULKAN_HPP_ASSERT( d.vkCmdSetDescriptorBufferOffsetsEXT && "Function <vkCmdSetDescriptorBufferOffsetsEXT> requires <VK_EXT_descriptor_buffer>" );
24726 # endif
24727 # ifdef VULKAN_HPP_NO_EXCEPTIONS
24728 VULKAN_HPP_ASSERT( bufferIndices.size() == offsets.size() );
24729 # else
24730 if ( bufferIndices.size() != offsets.size() )
24731 {
24732 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setDescriptorBufferOffsetsEXT: bufferIndices.size() != offsets.size()" );
24733 }
24734 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
24735
24736 d.vkCmdSetDescriptorBufferOffsetsEXT( m_commandBuffer,
24737 static_cast<VkPipelineBindPoint>( pipelineBindPoint ),
24738 static_cast<VkPipelineLayout>( layout ),
24739 firstSet,
24740 bufferIndices.size(),
24741 bufferIndices.data(),
24742 reinterpret_cast<const VkDeviceSize *>( offsets.data() ) );
24743 }
24744 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24745
24746 // wrapper function for command vkCmdBindDescriptorBufferEmbeddedSamplersEXT, see
24747 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBufferEmbeddedSamplersEXT.html
24748 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorBufferEmbeddedSamplersEXT ), bool>::type>
24749 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorBufferEmbeddedSamplersEXT( PipelineBindPoint pipelineBindPoint,
24750 PipelineLayout layout,
24751 uint32_t set,
24752 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24753 {
24754 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24755 d.vkCmdBindDescriptorBufferEmbeddedSamplersEXT(
24756 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipelineLayout>( layout ), set );
24757 }
24758
24759 // wrapper function for command vkGetBufferOpaqueCaptureDescriptorDataEXT, see
24760 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureDescriptorDataEXT.html
24761 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferOpaqueCaptureDescriptorDataEXT ), bool>::type>
24762 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getBufferOpaqueCaptureDescriptorDataEXT( const BufferCaptureDescriptorDataInfoEXT * pInfo,
24763 void * pData,
24764 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24765 {
24766 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24767 return static_cast<Result>( d.vkGetBufferOpaqueCaptureDescriptorDataEXT(
24768 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkBufferCaptureDescriptorDataInfoEXT *>( pInfo ), pData ) );
24769 }
24770
24771 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24772 // wrapper function for command vkGetBufferOpaqueCaptureDescriptorDataEXT, see
24773 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferOpaqueCaptureDescriptorDataEXT.html
24774 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferOpaqueCaptureDescriptorDataEXT ), bool>::type>
24775 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
24776 Device::getBufferOpaqueCaptureDescriptorDataEXT( const BufferCaptureDescriptorDataInfoEXT & info, Dispatch const & d ) const
24777 {
24778 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24779 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24780 VULKAN_HPP_ASSERT( d.vkGetBufferOpaqueCaptureDescriptorDataEXT &&
24781 "Function <vkGetBufferOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
24782 # endif
24783
24784 DataType data;
24785 Result result = static_cast<Result>(
24786 d.vkGetBufferOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast<const VkBufferCaptureDescriptorDataInfoEXT *>( &info ), &data ) );
24787 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getBufferOpaqueCaptureDescriptorDataEXT" );
24788
24789 return detail::createResultValueType( result, std::move( data ) );
24790 }
24791 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24792
24793 // wrapper function for command vkGetImageOpaqueCaptureDescriptorDataEXT, see
24794 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDescriptorDataEXT.html
24795 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageOpaqueCaptureDescriptorDataEXT ), bool>::type>
24796 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getImageOpaqueCaptureDescriptorDataEXT( const ImageCaptureDescriptorDataInfoEXT * pInfo,
24797 void * pData,
24798 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24799 {
24800 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24801 return static_cast<Result>( d.vkGetImageOpaqueCaptureDescriptorDataEXT(
24802 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImageCaptureDescriptorDataInfoEXT *>( pInfo ), pData ) );
24803 }
24804
24805 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24806 // wrapper function for command vkGetImageOpaqueCaptureDescriptorDataEXT, see
24807 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageOpaqueCaptureDescriptorDataEXT.html
24808 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageOpaqueCaptureDescriptorDataEXT ), bool>::type>
24809 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
24810 Device::getImageOpaqueCaptureDescriptorDataEXT( const ImageCaptureDescriptorDataInfoEXT & info, Dispatch const & d ) const
24811 {
24812 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24813 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24814 VULKAN_HPP_ASSERT( d.vkGetImageOpaqueCaptureDescriptorDataEXT &&
24815 "Function <vkGetImageOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
24816 # endif
24817
24818 DataType data;
24819 Result result = static_cast<Result>(
24820 d.vkGetImageOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast<const VkImageCaptureDescriptorDataInfoEXT *>( &info ), &data ) );
24821 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageOpaqueCaptureDescriptorDataEXT" );
24822
24823 return detail::createResultValueType( result, std::move( data ) );
24824 }
24825 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24826
24827 // wrapper function for command vkGetImageViewOpaqueCaptureDescriptorDataEXT, see
24828 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewOpaqueCaptureDescriptorDataEXT.html
24829 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewOpaqueCaptureDescriptorDataEXT ), bool>::type>
24830 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getImageViewOpaqueCaptureDescriptorDataEXT( const ImageViewCaptureDescriptorDataInfoEXT * pInfo,
24831 void * pData,
24832 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24833 {
24834 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24835 return static_cast<Result>( d.vkGetImageViewOpaqueCaptureDescriptorDataEXT(
24836 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImageViewCaptureDescriptorDataInfoEXT *>( pInfo ), pData ) );
24837 }
24838
24839 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24840 // wrapper function for command vkGetImageViewOpaqueCaptureDescriptorDataEXT, see
24841 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageViewOpaqueCaptureDescriptorDataEXT.html
24842 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageViewOpaqueCaptureDescriptorDataEXT ), bool>::type>
24843 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
24844 Device::getImageViewOpaqueCaptureDescriptorDataEXT( const ImageViewCaptureDescriptorDataInfoEXT & info, Dispatch const & d ) const
24845 {
24846 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24847 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24848 VULKAN_HPP_ASSERT( d.vkGetImageViewOpaqueCaptureDescriptorDataEXT &&
24849 "Function <vkGetImageViewOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
24850 # endif
24851
24852 DataType data;
24853 Result result = static_cast<Result>(
24854 d.vkGetImageViewOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast<const VkImageViewCaptureDescriptorDataInfoEXT *>( &info ), &data ) );
24855 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getImageViewOpaqueCaptureDescriptorDataEXT" );
24856
24857 return detail::createResultValueType( result, std::move( data ) );
24858 }
24859 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24860
24861 // wrapper function for command vkGetSamplerOpaqueCaptureDescriptorDataEXT, see
24862 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSamplerOpaqueCaptureDescriptorDataEXT.html
24863 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSamplerOpaqueCaptureDescriptorDataEXT ), bool>::type>
24864 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSamplerOpaqueCaptureDescriptorDataEXT( const SamplerCaptureDescriptorDataInfoEXT * pInfo,
24865 void * pData,
24866 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24867 {
24868 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24869 return static_cast<Result>( d.vkGetSamplerOpaqueCaptureDescriptorDataEXT(
24870 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSamplerCaptureDescriptorDataInfoEXT *>( pInfo ), pData ) );
24871 }
24872
24873 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24874 // wrapper function for command vkGetSamplerOpaqueCaptureDescriptorDataEXT, see
24875 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSamplerOpaqueCaptureDescriptorDataEXT.html
24876 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSamplerOpaqueCaptureDescriptorDataEXT ), bool>::type>
24877 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
24878 Device::getSamplerOpaqueCaptureDescriptorDataEXT( const SamplerCaptureDescriptorDataInfoEXT & info, Dispatch const & d ) const
24879 {
24880 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24881 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24882 VULKAN_HPP_ASSERT( d.vkGetSamplerOpaqueCaptureDescriptorDataEXT &&
24883 "Function <vkGetSamplerOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
24884 # endif
24885
24886 DataType data;
24887 Result result = static_cast<Result>(
24888 d.vkGetSamplerOpaqueCaptureDescriptorDataEXT( m_device, reinterpret_cast<const VkSamplerCaptureDescriptorDataInfoEXT *>( &info ), &data ) );
24889 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSamplerOpaqueCaptureDescriptorDataEXT" );
24890
24891 return detail::createResultValueType( result, std::move( data ) );
24892 }
24893 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24894
24895 // wrapper function for command vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT, see
24896 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT.html
24897 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT ), bool>::type>
24898 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getAccelerationStructureOpaqueCaptureDescriptorDataEXT(
24899 const AccelerationStructureCaptureDescriptorDataInfoEXT * pInfo, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24900 {
24901 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24902 return static_cast<Result>( d.vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT(
24903 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkAccelerationStructureCaptureDescriptorDataInfoEXT *>( pInfo ), pData ) );
24904 }
24905
24906 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24907 // wrapper function for command vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT, see
24908 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT.html
24909 template <typename DataType,
24910 typename Dispatch,
24911 typename std::enable_if<IS_DISPATCHED( vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT ), bool>::type>
24912 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
24913 Device::getAccelerationStructureOpaqueCaptureDescriptorDataEXT( const AccelerationStructureCaptureDescriptorDataInfoEXT & info, Dispatch const & d ) const
24914 {
24915 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24916 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
24917 VULKAN_HPP_ASSERT( d.vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT &&
24918 "Function <vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT> requires <VK_EXT_descriptor_buffer>" );
24919 # endif
24920
24921 DataType data;
24922 Result result = static_cast<Result>( d.vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT(
24923 m_device, reinterpret_cast<const VkAccelerationStructureCaptureDescriptorDataInfoEXT *>( &info ), &data ) );
24924 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getAccelerationStructureOpaqueCaptureDescriptorDataEXT" );
24925
24926 return detail::createResultValueType( result, std::move( data ) );
24927 }
24928 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
24929
24930 //=== VK_NV_fragment_shading_rate_enums ===
24931
24932 // wrapper function for command vkCmdSetFragmentShadingRateEnumNV, see
24933 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetFragmentShadingRateEnumNV.html
24934 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetFragmentShadingRateEnumNV ), bool>::type>
24935 VULKAN_HPP_INLINE void CommandBuffer::setFragmentShadingRateEnumNV( FragmentShadingRateNV shadingRate,
24936 const FragmentShadingRateCombinerOpKHR combinerOps[2],
24937 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24938 {
24939 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24940 d.vkCmdSetFragmentShadingRateEnumNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
24941 static_cast<VkFragmentShadingRateNV>( shadingRate ),
24942 reinterpret_cast<const VkFragmentShadingRateCombinerOpKHR *>( combinerOps ) );
24943 }
24944
24945 //=== VK_EXT_mesh_shader ===
24946
24947 // wrapper function for command vkCmdDrawMeshTasksEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksEXT.html
24948 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksEXT ), bool>::type>
24949 VULKAN_HPP_INLINE void
24950 CommandBuffer::drawMeshTasksEXT( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24951 {
24952 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24953 d.vkCmdDrawMeshTasksEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), groupCountX, groupCountY, groupCountZ );
24954 }
24955
24956 // wrapper function for command vkCmdDrawMeshTasksIndirectEXT, see
24957 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectEXT.html
24958 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksIndirectEXT ), bool>::type>
24959 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectEXT(
24960 Buffer buffer, DeviceSize offset, uint32_t drawCount, uint32_t stride, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24961 {
24962 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24963 d.vkCmdDrawMeshTasksIndirectEXT(
24964 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ), drawCount, stride );
24965 }
24966
24967 // wrapper function for command vkCmdDrawMeshTasksIndirectCountEXT, see
24968 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMeshTasksIndirectCountEXT.html
24969 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMeshTasksIndirectCountEXT ), bool>::type>
24970 VULKAN_HPP_INLINE void CommandBuffer::drawMeshTasksIndirectCountEXT( Buffer buffer,
24971 DeviceSize offset,
24972 Buffer countBuffer,
24973 DeviceSize countBufferOffset,
24974 uint32_t maxDrawCount,
24975 uint32_t stride,
24976 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24977 {
24978 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24979 d.vkCmdDrawMeshTasksIndirectCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
24980 static_cast<VkBuffer>( buffer ),
24981 static_cast<VkDeviceSize>( offset ),
24982 static_cast<VkBuffer>( countBuffer ),
24983 static_cast<VkDeviceSize>( countBufferOffset ),
24984 maxDrawCount,
24985 stride );
24986 }
24987
24988 //=== VK_KHR_copy_commands2 ===
24989
24990 // wrapper function for command vkCmdCopyBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer2KHR.html
24991 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBuffer2KHR ), bool>::type>
24992 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer2KHR( const CopyBufferInfo2 * pCopyBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
24993 {
24994 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
24995 d.vkCmdCopyBuffer2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyBufferInfo2 *>( pCopyBufferInfo ) );
24996 }
24997
24998 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
24999 // wrapper function for command vkCmdCopyBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBuffer2KHR.html
25000 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBuffer2KHR ), bool>::type>
25001 VULKAN_HPP_INLINE void CommandBuffer::copyBuffer2KHR( const CopyBufferInfo2 & copyBufferInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25002 {
25003 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25004 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25005 VULKAN_HPP_ASSERT( d.vkCmdCopyBuffer2KHR && "Function <vkCmdCopyBuffer2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
25006 # endif
25007
25008 d.vkCmdCopyBuffer2KHR( m_commandBuffer, reinterpret_cast<const VkCopyBufferInfo2 *>( &copyBufferInfo ) );
25009 }
25010 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25011
25012 // wrapper function for command vkCmdCopyImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage2KHR.html
25013 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImage2KHR ), bool>::type>
25014 VULKAN_HPP_INLINE void CommandBuffer::copyImage2KHR( const CopyImageInfo2 * pCopyImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25015 {
25016 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25017 d.vkCmdCopyImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyImageInfo2 *>( pCopyImageInfo ) );
25018 }
25019
25020 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25021 // wrapper function for command vkCmdCopyImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImage2KHR.html
25022 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImage2KHR ), bool>::type>
25023 VULKAN_HPP_INLINE void CommandBuffer::copyImage2KHR( const CopyImageInfo2 & copyImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25024 {
25025 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25026 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25027 VULKAN_HPP_ASSERT( d.vkCmdCopyImage2KHR && "Function <vkCmdCopyImage2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
25028 # endif
25029
25030 d.vkCmdCopyImage2KHR( m_commandBuffer, reinterpret_cast<const VkCopyImageInfo2 *>( &copyImageInfo ) );
25031 }
25032 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25033
25034 // wrapper function for command vkCmdCopyBufferToImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage2KHR.html
25035 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBufferToImage2KHR ), bool>::type>
25036 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage2KHR( const CopyBufferToImageInfo2 * pCopyBufferToImageInfo,
25037 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25038 {
25039 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25040 d.vkCmdCopyBufferToImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25041 reinterpret_cast<const VkCopyBufferToImageInfo2 *>( pCopyBufferToImageInfo ) );
25042 }
25043
25044 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25045 // wrapper function for command vkCmdCopyBufferToImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyBufferToImage2KHR.html
25046 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyBufferToImage2KHR ), bool>::type>
25047 VULKAN_HPP_INLINE void CommandBuffer::copyBufferToImage2KHR( const CopyBufferToImageInfo2 & copyBufferToImageInfo,
25048 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25049 {
25050 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25051 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25052 VULKAN_HPP_ASSERT( d.vkCmdCopyBufferToImage2KHR && "Function <vkCmdCopyBufferToImage2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
25053 # endif
25054
25055 d.vkCmdCopyBufferToImage2KHR( m_commandBuffer, reinterpret_cast<const VkCopyBufferToImageInfo2 *>( &copyBufferToImageInfo ) );
25056 }
25057 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25058
25059 // wrapper function for command vkCmdCopyImageToBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer2KHR.html
25060 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToBuffer2KHR ), bool>::type>
25061 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer2KHR( const CopyImageToBufferInfo2 * pCopyImageToBufferInfo,
25062 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25063 {
25064 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25065 d.vkCmdCopyImageToBuffer2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
25066 reinterpret_cast<const VkCopyImageToBufferInfo2 *>( pCopyImageToBufferInfo ) );
25067 }
25068
25069 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25070 // wrapper function for command vkCmdCopyImageToBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyImageToBuffer2KHR.html
25071 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyImageToBuffer2KHR ), bool>::type>
25072 VULKAN_HPP_INLINE void CommandBuffer::copyImageToBuffer2KHR( const CopyImageToBufferInfo2 & copyImageToBufferInfo,
25073 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25074 {
25075 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25076 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25077 VULKAN_HPP_ASSERT( d.vkCmdCopyImageToBuffer2KHR && "Function <vkCmdCopyImageToBuffer2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
25078 # endif
25079
25080 d.vkCmdCopyImageToBuffer2KHR( m_commandBuffer, reinterpret_cast<const VkCopyImageToBufferInfo2 *>( &copyImageToBufferInfo ) );
25081 }
25082 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25083
25084 // wrapper function for command vkCmdBlitImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage2KHR.html
25085 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBlitImage2KHR ), bool>::type>
25086 VULKAN_HPP_INLINE void CommandBuffer::blitImage2KHR( const BlitImageInfo2 * pBlitImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25087 {
25088 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25089 d.vkCmdBlitImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkBlitImageInfo2 *>( pBlitImageInfo ) );
25090 }
25091
25092 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25093 // wrapper function for command vkCmdBlitImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBlitImage2KHR.html
25094 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBlitImage2KHR ), bool>::type>
25095 VULKAN_HPP_INLINE void CommandBuffer::blitImage2KHR( const BlitImageInfo2 & blitImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25096 {
25097 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25098 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25099 VULKAN_HPP_ASSERT( d.vkCmdBlitImage2KHR && "Function <vkCmdBlitImage2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
25100 # endif
25101
25102 d.vkCmdBlitImage2KHR( m_commandBuffer, reinterpret_cast<const VkBlitImageInfo2 *>( &blitImageInfo ) );
25103 }
25104 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25105
25106 // wrapper function for command vkCmdResolveImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage2KHR.html
25107 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResolveImage2KHR ), bool>::type>
25108 VULKAN_HPP_INLINE void CommandBuffer::resolveImage2KHR( const ResolveImageInfo2 * pResolveImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25109 {
25110 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25111 d.vkCmdResolveImage2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkResolveImageInfo2 *>( pResolveImageInfo ) );
25112 }
25113
25114 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25115 // wrapper function for command vkCmdResolveImage2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdResolveImage2KHR.html
25116 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdResolveImage2KHR ), bool>::type>
25117 VULKAN_HPP_INLINE void CommandBuffer::resolveImage2KHR( const ResolveImageInfo2 & resolveImageInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25118 {
25119 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25120 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25121 VULKAN_HPP_ASSERT( d.vkCmdResolveImage2KHR && "Function <vkCmdResolveImage2KHR> requires <VK_KHR_copy_commands2> or <VK_VERSION_1_3>" );
25122 # endif
25123
25124 d.vkCmdResolveImage2KHR( m_commandBuffer, reinterpret_cast<const VkResolveImageInfo2 *>( &resolveImageInfo ) );
25125 }
25126 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25127
25128 //=== VK_EXT_device_fault ===
25129
25130 // wrapper function for command vkGetDeviceFaultInfoEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceFaultInfoEXT.html
25131 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceFaultInfoEXT ), bool>::type>
25132 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFaultInfoEXT( DeviceFaultCountsEXT * pFaultCounts,
25133 DeviceFaultInfoEXT * pFaultInfo,
25134 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25135 {
25136 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25137 return static_cast<Result>( d.vkGetDeviceFaultInfoEXT(
25138 static_cast<VkDevice>( m_device ), reinterpret_cast<VkDeviceFaultCountsEXT *>( pFaultCounts ), reinterpret_cast<VkDeviceFaultInfoEXT *>( pFaultInfo ) ) );
25139 }
25140
25141 #if defined( VK_USE_PLATFORM_WIN32_KHR )
25142 //=== VK_NV_acquire_winrt_display ===
25143
25144 # ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
25145 // wrapper function for command vkAcquireWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireWinrtDisplayNV.html
25146 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireWinrtDisplayNV ), bool>::type>
25147 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::acquireWinrtDisplayNV( DisplayKHR display, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25148 {
25149 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25150 return static_cast<Result>( d.vkAcquireWinrtDisplayNV( static_cast<VkPhysicalDevice>( m_physicalDevice ), static_cast<VkDisplayKHR>( display ) ) );
25151 }
25152 # else
25153 // wrapper function for command vkAcquireWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAcquireWinrtDisplayNV.html
25154 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAcquireWinrtDisplayNV ), bool>::type>
25155 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
25156 PhysicalDevice::acquireWinrtDisplayNV( DisplayKHR display, Dispatch const & d ) const
25157 {
25158 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25159 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25160 VULKAN_HPP_ASSERT( d.vkAcquireWinrtDisplayNV && "Function <vkAcquireWinrtDisplayNV> requires <VK_NV_acquire_winrt_display>" );
25161 # endif
25162
25163 Result result = static_cast<Result>( d.vkAcquireWinrtDisplayNV( m_physicalDevice, static_cast<VkDisplayKHR>( display ) ) );
25164 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::acquireWinrtDisplayNV" );
25165
25166 return detail::createResultValueType( result );
25167 }
25168 # endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
25169
25170 // wrapper function for command vkGetWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetWinrtDisplayNV.html
25171 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetWinrtDisplayNV ), bool>::type>
25172 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getWinrtDisplayNV( uint32_t deviceRelativeId,
25173 DisplayKHR * pDisplay,
25174 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25175 {
25176 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25177 return static_cast<Result>(
25178 d.vkGetWinrtDisplayNV( static_cast<VkPhysicalDevice>( m_physicalDevice ), deviceRelativeId, reinterpret_cast<VkDisplayKHR *>( pDisplay ) ) );
25179 }
25180
25181 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25182 // wrapper function for command vkGetWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetWinrtDisplayNV.html
25183 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetWinrtDisplayNV ), bool>::type>
25184 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DisplayKHR>::type PhysicalDevice::getWinrtDisplayNV( uint32_t deviceRelativeId,
25185 Dispatch const & d ) const
25186 {
25187 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25188 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25189 VULKAN_HPP_ASSERT( d.vkGetWinrtDisplayNV && "Function <vkGetWinrtDisplayNV> requires <VK_NV_acquire_winrt_display>" );
25190 # endif
25191
25192 DisplayKHR display;
25193 Result result = static_cast<Result>( d.vkGetWinrtDisplayNV( m_physicalDevice, deviceRelativeId, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
25194 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getWinrtDisplayNV" );
25195
25196 return detail::createResultValueType( result, std::move( display ) );
25197 }
25198
25199 # ifndef VULKAN_HPP_NO_SMART_HANDLE
25200 // wrapper function for command vkGetWinrtDisplayNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetWinrtDisplayNV.html
25201 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetWinrtDisplayNV ), bool>::type>
25202 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DisplayKHR, Dispatch>>::type
25203 PhysicalDevice::getWinrtDisplayNVUnique( uint32_t deviceRelativeId, Dispatch const & d ) const
25204 {
25205 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25206 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25207 VULKAN_HPP_ASSERT( d.vkGetWinrtDisplayNV && "Function <vkGetWinrtDisplayNV> requires <VK_NV_acquire_winrt_display>" );
25208 # endif
25209
25210 DisplayKHR display;
25211 Result result = static_cast<Result>( d.vkGetWinrtDisplayNV( m_physicalDevice, deviceRelativeId, reinterpret_cast<VkDisplayKHR *>( &display ) ) );
25212 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getWinrtDisplayNVUnique" );
25213
25214 return detail::createResultValueType( result, UniqueHandle<DisplayKHR, Dispatch>( display, detail::ObjectRelease<PhysicalDevice, Dispatch>( *this, d ) ) );
25215 }
25216 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
25217 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25218 #endif /*VK_USE_PLATFORM_WIN32_KHR*/
25219
25220 #if defined( VK_USE_PLATFORM_DIRECTFB_EXT )
25221 //=== VK_EXT_directfb_surface ===
25222
25223 // wrapper function for command vkCreateDirectFBSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDirectFBSurfaceEXT.html
25224 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDirectFBSurfaceEXT ), bool>::type>
25225 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createDirectFBSurfaceEXT( const DirectFBSurfaceCreateInfoEXT * pCreateInfo,
25226 const AllocationCallbacks * pAllocator,
25227 SurfaceKHR * pSurface,
25228 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25229 {
25230 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25231 return static_cast<Result>( d.vkCreateDirectFBSurfaceEXT( static_cast<VkInstance>( m_instance ),
25232 reinterpret_cast<const VkDirectFBSurfaceCreateInfoEXT *>( pCreateInfo ),
25233 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
25234 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
25235 }
25236
25237 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25238 // wrapper function for command vkCreateDirectFBSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDirectFBSurfaceEXT.html
25239 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDirectFBSurfaceEXT ), bool>::type>
25240 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type Instance::createDirectFBSurfaceEXT(
25241 const DirectFBSurfaceCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
25242 {
25243 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25244 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25245 VULKAN_HPP_ASSERT( d.vkCreateDirectFBSurfaceEXT && "Function <vkCreateDirectFBSurfaceEXT> requires <VK_EXT_directfb_surface>" );
25246 # endif
25247
25248 SurfaceKHR surface;
25249 Result result = static_cast<Result>( d.vkCreateDirectFBSurfaceEXT( m_instance,
25250 reinterpret_cast<const VkDirectFBSurfaceCreateInfoEXT *>( &createInfo ),
25251 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
25252 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
25253 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDirectFBSurfaceEXT" );
25254
25255 return detail::createResultValueType( result, std::move( surface ) );
25256 }
25257
25258 # ifndef VULKAN_HPP_NO_SMART_HANDLE
25259 // wrapper function for command vkCreateDirectFBSurfaceEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDirectFBSurfaceEXT.html
25260 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDirectFBSurfaceEXT ), bool>::type>
25261 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createDirectFBSurfaceEXTUnique(
25262 const DirectFBSurfaceCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
25263 {
25264 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25265 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25266 VULKAN_HPP_ASSERT( d.vkCreateDirectFBSurfaceEXT && "Function <vkCreateDirectFBSurfaceEXT> requires <VK_EXT_directfb_surface>" );
25267 # endif
25268
25269 SurfaceKHR surface;
25270 Result result = static_cast<Result>( d.vkCreateDirectFBSurfaceEXT( m_instance,
25271 reinterpret_cast<const VkDirectFBSurfaceCreateInfoEXT *>( &createInfo ),
25272 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
25273 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
25274 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createDirectFBSurfaceEXTUnique" );
25275
25276 return detail::createResultValueType( result,
25277 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
25278 }
25279 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
25280 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25281
25282 // wrapper function for command vkGetPhysicalDeviceDirectFBPresentationSupportEXT, see
25283 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDirectFBPresentationSupportEXT.html
25284 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDirectFBPresentationSupportEXT ), bool>::type>
25285 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getDirectFBPresentationSupportEXT( uint32_t queueFamilyIndex,
25286 IDirectFB * dfb,
25287 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25288 {
25289 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25290 return static_cast<Bool32>(
25291 d.vkGetPhysicalDeviceDirectFBPresentationSupportEXT( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, dfb ) );
25292 }
25293
25294 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25295 // wrapper function for command vkGetPhysicalDeviceDirectFBPresentationSupportEXT, see
25296 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceDirectFBPresentationSupportEXT.html
25297 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceDirectFBPresentationSupportEXT ), bool>::type>
25298 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getDirectFBPresentationSupportEXT( uint32_t queueFamilyIndex,
25299 IDirectFB & dfb,
25300 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25301 {
25302 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25303 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25304 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceDirectFBPresentationSupportEXT &&
25305 "Function <vkGetPhysicalDeviceDirectFBPresentationSupportEXT> requires <VK_EXT_directfb_surface>" );
25306 # endif
25307
25308 VkBool32 result = d.vkGetPhysicalDeviceDirectFBPresentationSupportEXT( m_physicalDevice, queueFamilyIndex, &dfb );
25309
25310 return static_cast<Bool32>( result );
25311 }
25312 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25313 #endif /*VK_USE_PLATFORM_DIRECTFB_EXT*/
25314
25315 //=== VK_EXT_vertex_input_dynamic_state ===
25316
25317 // wrapper function for command vkCmdSetVertexInputEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetVertexInputEXT.html
25318 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetVertexInputEXT ), bool>::type>
25319 VULKAN_HPP_INLINE void CommandBuffer::setVertexInputEXT( uint32_t vertexBindingDescriptionCount,
25320 const VertexInputBindingDescription2EXT * pVertexBindingDescriptions,
25321 uint32_t vertexAttributeDescriptionCount,
25322 const VertexInputAttributeDescription2EXT * pVertexAttributeDescriptions,
25323 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25324 {
25325 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25326 d.vkCmdSetVertexInputEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
25327 vertexBindingDescriptionCount,
25328 reinterpret_cast<const VkVertexInputBindingDescription2EXT *>( pVertexBindingDescriptions ),
25329 vertexAttributeDescriptionCount,
25330 reinterpret_cast<const VkVertexInputAttributeDescription2EXT *>( pVertexAttributeDescriptions ) );
25331 }
25332
25333 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25334 // wrapper function for command vkCmdSetVertexInputEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetVertexInputEXT.html
25335 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetVertexInputEXT ), bool>::type>
25336 VULKAN_HPP_INLINE void CommandBuffer::setVertexInputEXT( ArrayProxy<const VertexInputBindingDescription2EXT> const & vertexBindingDescriptions,
25337 ArrayProxy<const VertexInputAttributeDescription2EXT> const & vertexAttributeDescriptions,
25338 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25339 {
25340 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25341 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25342 VULKAN_HPP_ASSERT( d.vkCmdSetVertexInputEXT && "Function <vkCmdSetVertexInputEXT> requires <VK_EXT_shader_object> or <VK_EXT_vertex_input_dynamic_state>" );
25343 # endif
25344
25345 d.vkCmdSetVertexInputEXT( m_commandBuffer,
25346 vertexBindingDescriptions.size(),
25347 reinterpret_cast<const VkVertexInputBindingDescription2EXT *>( vertexBindingDescriptions.data() ),
25348 vertexAttributeDescriptions.size(),
25349 reinterpret_cast<const VkVertexInputAttributeDescription2EXT *>( vertexAttributeDescriptions.data() ) );
25350 }
25351 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25352
25353 #if defined( VK_USE_PLATFORM_FUCHSIA )
25354 //=== VK_FUCHSIA_external_memory ===
25355
25356 // wrapper function for command vkGetMemoryZirconHandleFUCHSIA, see
25357 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryZirconHandleFUCHSIA.html
25358 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryZirconHandleFUCHSIA ), bool>::type>
25359 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryZirconHandleFUCHSIA( const MemoryGetZirconHandleInfoFUCHSIA * pGetZirconHandleInfo,
25360 zx_handle_t * pZirconHandle,
25361 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25362 {
25363 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25364 return static_cast<Result>( d.vkGetMemoryZirconHandleFUCHSIA(
25365 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryGetZirconHandleInfoFUCHSIA *>( pGetZirconHandleInfo ), pZirconHandle ) );
25366 }
25367
25368 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25369 // wrapper function for command vkGetMemoryZirconHandleFUCHSIA, see
25370 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryZirconHandleFUCHSIA.html
25371 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryZirconHandleFUCHSIA ), bool>::type>
25372 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<zx_handle_t>::type
25373 Device::getMemoryZirconHandleFUCHSIA( const MemoryGetZirconHandleInfoFUCHSIA & getZirconHandleInfo, Dispatch const & d ) const
25374 {
25375 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25376 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25377 VULKAN_HPP_ASSERT( d.vkGetMemoryZirconHandleFUCHSIA && "Function <vkGetMemoryZirconHandleFUCHSIA> requires <VK_FUCHSIA_external_memory>" );
25378 # endif
25379
25380 zx_handle_t zirconHandle;
25381 Result result = static_cast<Result>(
25382 d.vkGetMemoryZirconHandleFUCHSIA( m_device, reinterpret_cast<const VkMemoryGetZirconHandleInfoFUCHSIA *>( &getZirconHandleInfo ), &zirconHandle ) );
25383 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryZirconHandleFUCHSIA" );
25384
25385 return detail::createResultValueType( result, std::move( zirconHandle ) );
25386 }
25387 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25388
25389 // wrapper function for command vkGetMemoryZirconHandlePropertiesFUCHSIA, see
25390 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryZirconHandlePropertiesFUCHSIA.html
25391 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryZirconHandlePropertiesFUCHSIA ), bool>::type>
25392 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
25393 Device::getMemoryZirconHandlePropertiesFUCHSIA( ExternalMemoryHandleTypeFlagBits handleType,
25394 zx_handle_t zirconHandle,
25395 MemoryZirconHandlePropertiesFUCHSIA * pMemoryZirconHandleProperties,
25396 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25397 {
25398 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25399 return static_cast<Result>(
25400 d.vkGetMemoryZirconHandlePropertiesFUCHSIA( static_cast<VkDevice>( m_device ),
25401 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
25402 zirconHandle,
25403 reinterpret_cast<VkMemoryZirconHandlePropertiesFUCHSIA *>( pMemoryZirconHandleProperties ) ) );
25404 }
25405
25406 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25407 // wrapper function for command vkGetMemoryZirconHandlePropertiesFUCHSIA, see
25408 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryZirconHandlePropertiesFUCHSIA.html
25409 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryZirconHandlePropertiesFUCHSIA ), bool>::type>
25410 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryZirconHandlePropertiesFUCHSIA>::type
25411 Device::getMemoryZirconHandlePropertiesFUCHSIA( ExternalMemoryHandleTypeFlagBits handleType, zx_handle_t zirconHandle, Dispatch const & d ) const
25412 {
25413 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25414 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25415 VULKAN_HPP_ASSERT( d.vkGetMemoryZirconHandlePropertiesFUCHSIA &&
25416 "Function <vkGetMemoryZirconHandlePropertiesFUCHSIA> requires <VK_FUCHSIA_external_memory>" );
25417 # endif
25418
25419 MemoryZirconHandlePropertiesFUCHSIA memoryZirconHandleProperties;
25420 Result result = static_cast<Result>(
25421 d.vkGetMemoryZirconHandlePropertiesFUCHSIA( m_device,
25422 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
25423 zirconHandle,
25424 reinterpret_cast<VkMemoryZirconHandlePropertiesFUCHSIA *>( &memoryZirconHandleProperties ) ) );
25425 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryZirconHandlePropertiesFUCHSIA" );
25426
25427 return detail::createResultValueType( result, std::move( memoryZirconHandleProperties ) );
25428 }
25429 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25430 #endif /*VK_USE_PLATFORM_FUCHSIA*/
25431
25432 #if defined( VK_USE_PLATFORM_FUCHSIA )
25433 //=== VK_FUCHSIA_external_semaphore ===
25434
25435 // wrapper function for command vkImportSemaphoreZirconHandleFUCHSIA, see
25436 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreZirconHandleFUCHSIA.html
25437 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportSemaphoreZirconHandleFUCHSIA ), bool>::type>
25438 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::importSemaphoreZirconHandleFUCHSIA(
25439 const ImportSemaphoreZirconHandleInfoFUCHSIA * pImportSemaphoreZirconHandleInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25440 {
25441 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25442 return static_cast<Result>( d.vkImportSemaphoreZirconHandleFUCHSIA(
25443 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkImportSemaphoreZirconHandleInfoFUCHSIA *>( pImportSemaphoreZirconHandleInfo ) ) );
25444 }
25445
25446 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25447 // wrapper function for command vkImportSemaphoreZirconHandleFUCHSIA, see
25448 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkImportSemaphoreZirconHandleFUCHSIA.html
25449 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkImportSemaphoreZirconHandleFUCHSIA ), bool>::type>
25450 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
25451 Device::importSemaphoreZirconHandleFUCHSIA( const ImportSemaphoreZirconHandleInfoFUCHSIA & importSemaphoreZirconHandleInfo, Dispatch const & d ) const
25452 {
25453 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25454 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25455 VULKAN_HPP_ASSERT( d.vkImportSemaphoreZirconHandleFUCHSIA && "Function <vkImportSemaphoreZirconHandleFUCHSIA> requires <VK_FUCHSIA_external_semaphore>" );
25456 # endif
25457
25458 Result result = static_cast<Result>( d.vkImportSemaphoreZirconHandleFUCHSIA(
25459 m_device, reinterpret_cast<const VkImportSemaphoreZirconHandleInfoFUCHSIA *>( &importSemaphoreZirconHandleInfo ) ) );
25460 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::importSemaphoreZirconHandleFUCHSIA" );
25461
25462 return detail::createResultValueType( result );
25463 }
25464 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25465
25466 // wrapper function for command vkGetSemaphoreZirconHandleFUCHSIA, see
25467 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreZirconHandleFUCHSIA.html
25468 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreZirconHandleFUCHSIA ), bool>::type>
25469 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSemaphoreZirconHandleFUCHSIA( const SemaphoreGetZirconHandleInfoFUCHSIA * pGetZirconHandleInfo,
25470 zx_handle_t * pZirconHandle,
25471 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25472 {
25473 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25474 return static_cast<Result>( d.vkGetSemaphoreZirconHandleFUCHSIA(
25475 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkSemaphoreGetZirconHandleInfoFUCHSIA *>( pGetZirconHandleInfo ), pZirconHandle ) );
25476 }
25477
25478 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25479 // wrapper function for command vkGetSemaphoreZirconHandleFUCHSIA, see
25480 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetSemaphoreZirconHandleFUCHSIA.html
25481 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetSemaphoreZirconHandleFUCHSIA ), bool>::type>
25482 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<zx_handle_t>::type
25483 Device::getSemaphoreZirconHandleFUCHSIA( const SemaphoreGetZirconHandleInfoFUCHSIA & getZirconHandleInfo, Dispatch const & d ) const
25484 {
25485 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25486 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25487 VULKAN_HPP_ASSERT( d.vkGetSemaphoreZirconHandleFUCHSIA && "Function <vkGetSemaphoreZirconHandleFUCHSIA> requires <VK_FUCHSIA_external_semaphore>" );
25488 # endif
25489
25490 zx_handle_t zirconHandle;
25491 Result result = static_cast<Result>(
25492 d.vkGetSemaphoreZirconHandleFUCHSIA( m_device, reinterpret_cast<const VkSemaphoreGetZirconHandleInfoFUCHSIA *>( &getZirconHandleInfo ), &zirconHandle ) );
25493 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSemaphoreZirconHandleFUCHSIA" );
25494
25495 return detail::createResultValueType( result, std::move( zirconHandle ) );
25496 }
25497 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25498 #endif /*VK_USE_PLATFORM_FUCHSIA*/
25499
25500 #if defined( VK_USE_PLATFORM_FUCHSIA )
25501 //=== VK_FUCHSIA_buffer_collection ===
25502
25503 // wrapper function for command vkCreateBufferCollectionFUCHSIA, see
25504 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferCollectionFUCHSIA.html
25505 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBufferCollectionFUCHSIA ), bool>::type>
25506 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createBufferCollectionFUCHSIA( const BufferCollectionCreateInfoFUCHSIA * pCreateInfo,
25507 const AllocationCallbacks * pAllocator,
25508 BufferCollectionFUCHSIA * pCollection,
25509 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25510 {
25511 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25512 return static_cast<Result>( d.vkCreateBufferCollectionFUCHSIA( static_cast<VkDevice>( m_device ),
25513 reinterpret_cast<const VkBufferCollectionCreateInfoFUCHSIA *>( pCreateInfo ),
25514 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
25515 reinterpret_cast<VkBufferCollectionFUCHSIA *>( pCollection ) ) );
25516 }
25517
25518 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25519 // wrapper function for command vkCreateBufferCollectionFUCHSIA, see
25520 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferCollectionFUCHSIA.html
25521 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBufferCollectionFUCHSIA ), bool>::type>
25522 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<BufferCollectionFUCHSIA>::type Device::createBufferCollectionFUCHSIA(
25523 const BufferCollectionCreateInfoFUCHSIA & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
25524 {
25525 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25526 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25527 VULKAN_HPP_ASSERT( d.vkCreateBufferCollectionFUCHSIA && "Function <vkCreateBufferCollectionFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25528 # endif
25529
25530 BufferCollectionFUCHSIA collection;
25531 Result result = static_cast<Result>( d.vkCreateBufferCollectionFUCHSIA( m_device,
25532 reinterpret_cast<const VkBufferCollectionCreateInfoFUCHSIA *>( &createInfo ),
25533 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
25534 reinterpret_cast<VkBufferCollectionFUCHSIA *>( &collection ) ) );
25535 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferCollectionFUCHSIA" );
25536
25537 return detail::createResultValueType( result, std::move( collection ) );
25538 }
25539
25540 # ifndef VULKAN_HPP_NO_SMART_HANDLE
25541 // wrapper function for command vkCreateBufferCollectionFUCHSIA, see
25542 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateBufferCollectionFUCHSIA.html
25543 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateBufferCollectionFUCHSIA ), bool>::type>
25544 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<BufferCollectionFUCHSIA, Dispatch>>::type
25545 Device::createBufferCollectionFUCHSIAUnique( const BufferCollectionCreateInfoFUCHSIA & createInfo,
25546 Optional<const AllocationCallbacks> allocator,
25547 Dispatch const & d ) const
25548 {
25549 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25550 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25551 VULKAN_HPP_ASSERT( d.vkCreateBufferCollectionFUCHSIA && "Function <vkCreateBufferCollectionFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25552 # endif
25553
25554 BufferCollectionFUCHSIA collection;
25555 Result result = static_cast<Result>( d.vkCreateBufferCollectionFUCHSIA( m_device,
25556 reinterpret_cast<const VkBufferCollectionCreateInfoFUCHSIA *>( &createInfo ),
25557 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
25558 reinterpret_cast<VkBufferCollectionFUCHSIA *>( &collection ) ) );
25559 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createBufferCollectionFUCHSIAUnique" );
25560
25561 return detail::createResultValueType(
25562 result, UniqueHandle<BufferCollectionFUCHSIA, Dispatch>( collection, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
25563 }
25564 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
25565 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25566
25567 // wrapper function for command vkSetBufferCollectionImageConstraintsFUCHSIA, see
25568 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetBufferCollectionImageConstraintsFUCHSIA.html
25569 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetBufferCollectionImageConstraintsFUCHSIA ), bool>::type>
25570 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setBufferCollectionImageConstraintsFUCHSIA( BufferCollectionFUCHSIA collection,
25571 const ImageConstraintsInfoFUCHSIA * pImageConstraintsInfo,
25572 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25573 {
25574 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25575 return static_cast<Result>(
25576 d.vkSetBufferCollectionImageConstraintsFUCHSIA( static_cast<VkDevice>( m_device ),
25577 static_cast<VkBufferCollectionFUCHSIA>( collection ),
25578 reinterpret_cast<const VkImageConstraintsInfoFUCHSIA *>( pImageConstraintsInfo ) ) );
25579 }
25580
25581 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25582 // wrapper function for command vkSetBufferCollectionImageConstraintsFUCHSIA, see
25583 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetBufferCollectionImageConstraintsFUCHSIA.html
25584 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetBufferCollectionImageConstraintsFUCHSIA ), bool>::type>
25585 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setBufferCollectionImageConstraintsFUCHSIA(
25586 BufferCollectionFUCHSIA collection, const ImageConstraintsInfoFUCHSIA & imageConstraintsInfo, Dispatch const & d ) const
25587 {
25588 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25589 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25590 VULKAN_HPP_ASSERT( d.vkSetBufferCollectionImageConstraintsFUCHSIA &&
25591 "Function <vkSetBufferCollectionImageConstraintsFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25592 # endif
25593
25594 Result result = static_cast<Result>( d.vkSetBufferCollectionImageConstraintsFUCHSIA(
25595 m_device, static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<const VkImageConstraintsInfoFUCHSIA *>( &imageConstraintsInfo ) ) );
25596 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setBufferCollectionImageConstraintsFUCHSIA" );
25597
25598 return detail::createResultValueType( result );
25599 }
25600 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25601
25602 // wrapper function for command vkSetBufferCollectionBufferConstraintsFUCHSIA, see
25603 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetBufferCollectionBufferConstraintsFUCHSIA.html
25604 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetBufferCollectionBufferConstraintsFUCHSIA ), bool>::type>
25605 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setBufferCollectionBufferConstraintsFUCHSIA(
25606 BufferCollectionFUCHSIA collection, const BufferConstraintsInfoFUCHSIA * pBufferConstraintsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25607 {
25608 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25609 return static_cast<Result>(
25610 d.vkSetBufferCollectionBufferConstraintsFUCHSIA( static_cast<VkDevice>( m_device ),
25611 static_cast<VkBufferCollectionFUCHSIA>( collection ),
25612 reinterpret_cast<const VkBufferConstraintsInfoFUCHSIA *>( pBufferConstraintsInfo ) ) );
25613 }
25614
25615 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25616 // wrapper function for command vkSetBufferCollectionBufferConstraintsFUCHSIA, see
25617 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetBufferCollectionBufferConstraintsFUCHSIA.html
25618 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetBufferCollectionBufferConstraintsFUCHSIA ), bool>::type>
25619 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::setBufferCollectionBufferConstraintsFUCHSIA(
25620 BufferCollectionFUCHSIA collection, const BufferConstraintsInfoFUCHSIA & bufferConstraintsInfo, Dispatch const & d ) const
25621 {
25622 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25623 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25624 VULKAN_HPP_ASSERT( d.vkSetBufferCollectionBufferConstraintsFUCHSIA &&
25625 "Function <vkSetBufferCollectionBufferConstraintsFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25626 # endif
25627
25628 Result result = static_cast<Result>( d.vkSetBufferCollectionBufferConstraintsFUCHSIA(
25629 m_device, static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<const VkBufferConstraintsInfoFUCHSIA *>( &bufferConstraintsInfo ) ) );
25630 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setBufferCollectionBufferConstraintsFUCHSIA" );
25631
25632 return detail::createResultValueType( result );
25633 }
25634 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25635
25636 // wrapper function for command vkDestroyBufferCollectionFUCHSIA, see
25637 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferCollectionFUCHSIA.html
25638 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferCollectionFUCHSIA ), bool>::type>
25639 VULKAN_HPP_INLINE void Device::destroyBufferCollectionFUCHSIA( BufferCollectionFUCHSIA collection,
25640 const AllocationCallbacks * pAllocator,
25641 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25642 {
25643 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25644 d.vkDestroyBufferCollectionFUCHSIA(
25645 static_cast<VkDevice>( m_device ), static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
25646 }
25647
25648 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25649 // wrapper function for command vkDestroyBufferCollectionFUCHSIA, see
25650 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferCollectionFUCHSIA.html
25651 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferCollectionFUCHSIA ), bool>::type>
25652 VULKAN_HPP_INLINE void Device::destroyBufferCollectionFUCHSIA( BufferCollectionFUCHSIA collection,
25653 Optional<const AllocationCallbacks> allocator,
25654 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25655 {
25656 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25657 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25658 VULKAN_HPP_ASSERT( d.vkDestroyBufferCollectionFUCHSIA && "Function <vkDestroyBufferCollectionFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25659 # endif
25660
25661 d.vkDestroyBufferCollectionFUCHSIA(
25662 m_device, static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
25663 }
25664 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25665
25666 // wrapper function for command vkDestroyBufferCollectionFUCHSIA, see
25667 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferCollectionFUCHSIA.html
25668 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferCollectionFUCHSIA ), bool>::type>
25669 VULKAN_HPP_INLINE void
25670 Device::destroy( BufferCollectionFUCHSIA collection, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25671 {
25672 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25673 d.vkDestroyBufferCollectionFUCHSIA(
25674 static_cast<VkDevice>( m_device ), static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
25675 }
25676
25677 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25678 // wrapper function for command vkDestroyBufferCollectionFUCHSIA, see
25679 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyBufferCollectionFUCHSIA.html
25680 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyBufferCollectionFUCHSIA ), bool>::type>
25681 VULKAN_HPP_INLINE void
25682 Device::destroy( BufferCollectionFUCHSIA collection, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25683 {
25684 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25685 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25686 VULKAN_HPP_ASSERT( d.vkDestroyBufferCollectionFUCHSIA && "Function <vkDestroyBufferCollectionFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25687 # endif
25688
25689 d.vkDestroyBufferCollectionFUCHSIA(
25690 m_device, static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
25691 }
25692 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25693
25694 // wrapper function for command vkGetBufferCollectionPropertiesFUCHSIA, see
25695 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferCollectionPropertiesFUCHSIA.html
25696 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferCollectionPropertiesFUCHSIA ), bool>::type>
25697 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getBufferCollectionPropertiesFUCHSIA( BufferCollectionFUCHSIA collection,
25698 BufferCollectionPropertiesFUCHSIA * pProperties,
25699 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25700 {
25701 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25702 return static_cast<Result>( d.vkGetBufferCollectionPropertiesFUCHSIA( static_cast<VkDevice>( m_device ),
25703 static_cast<VkBufferCollectionFUCHSIA>( collection ),
25704 reinterpret_cast<VkBufferCollectionPropertiesFUCHSIA *>( pProperties ) ) );
25705 }
25706
25707 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25708 // wrapper function for command vkGetBufferCollectionPropertiesFUCHSIA, see
25709 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetBufferCollectionPropertiesFUCHSIA.html
25710 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetBufferCollectionPropertiesFUCHSIA ), bool>::type>
25711 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<BufferCollectionPropertiesFUCHSIA>::type
25712 Device::getBufferCollectionPropertiesFUCHSIA( BufferCollectionFUCHSIA collection, Dispatch const & d ) const
25713 {
25714 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25715 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25716 VULKAN_HPP_ASSERT( d.vkGetBufferCollectionPropertiesFUCHSIA &&
25717 "Function <vkGetBufferCollectionPropertiesFUCHSIA> requires <VK_FUCHSIA_buffer_collection>" );
25718 # endif
25719
25720 BufferCollectionPropertiesFUCHSIA properties;
25721 Result result = static_cast<Result>( d.vkGetBufferCollectionPropertiesFUCHSIA(
25722 m_device, static_cast<VkBufferCollectionFUCHSIA>( collection ), reinterpret_cast<VkBufferCollectionPropertiesFUCHSIA *>( &properties ) ) );
25723 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getBufferCollectionPropertiesFUCHSIA" );
25724
25725 return detail::createResultValueType( result, std::move( properties ) );
25726 }
25727 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25728 #endif /*VK_USE_PLATFORM_FUCHSIA*/
25729
25730 //=== VK_HUAWEI_subpass_shading ===
25731
25732 // wrapper function for command vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI, see
25733 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI.html
25734 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI ), bool>::type>
25735 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getSubpassShadingMaxWorkgroupSizeHUAWEI( RenderPass renderpass,
25736 Extent2D * pMaxWorkgroupSize,
25737 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25738 {
25739 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25740 return static_cast<Result>( d.vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI(
25741 static_cast<VkDevice>( m_device ), static_cast<VkRenderPass>( renderpass ), reinterpret_cast<VkExtent2D *>( pMaxWorkgroupSize ) ) );
25742 }
25743
25744 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25745 // wrapper function for command vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI, see
25746 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI.html
25747 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI ), bool>::type>
25748 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<Extent2D>::type Device::getSubpassShadingMaxWorkgroupSizeHUAWEI( RenderPass renderpass,
25749 Dispatch const & d ) const
25750 {
25751 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25752 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25753 VULKAN_HPP_ASSERT( d.vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI &&
25754 "Function <vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI> requires <VK_HUAWEI_subpass_shading>" );
25755 # endif
25756
25757 Extent2D maxWorkgroupSize;
25758 Result result = static_cast<Result>( d.vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI(
25759 m_device, static_cast<VkRenderPass>( renderpass ), reinterpret_cast<VkExtent2D *>( &maxWorkgroupSize ) ) );
25760 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getSubpassShadingMaxWorkgroupSizeHUAWEI" );
25761
25762 return detail::createResultValueType( result, std::move( maxWorkgroupSize ) );
25763 }
25764 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25765
25766 // wrapper function for command vkCmdSubpassShadingHUAWEI, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSubpassShadingHUAWEI.html
25767 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSubpassShadingHUAWEI ), bool>::type>
25768 VULKAN_HPP_INLINE void CommandBuffer::subpassShadingHUAWEI( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25769 {
25770 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25771 d.vkCmdSubpassShadingHUAWEI( static_cast<VkCommandBuffer>( m_commandBuffer ) );
25772 }
25773
25774 //=== VK_HUAWEI_invocation_mask ===
25775
25776 // wrapper function for command vkCmdBindInvocationMaskHUAWEI, see
25777 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindInvocationMaskHUAWEI.html
25778 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindInvocationMaskHUAWEI ), bool>::type>
25779 VULKAN_HPP_INLINE void CommandBuffer::bindInvocationMaskHUAWEI( ImageView imageView, ImageLayout imageLayout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25780 {
25781 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25782 d.vkCmdBindInvocationMaskHUAWEI(
25783 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkImageView>( imageView ), static_cast<VkImageLayout>( imageLayout ) );
25784 }
25785
25786 //=== VK_NV_external_memory_rdma ===
25787
25788 // wrapper function for command vkGetMemoryRemoteAddressNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryRemoteAddressNV.html
25789 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryRemoteAddressNV ), bool>::type>
25790 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryRemoteAddressNV( const MemoryGetRemoteAddressInfoNV * pMemoryGetRemoteAddressInfo,
25791 RemoteAddressNV * pAddress,
25792 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25793 {
25794 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25795 return static_cast<Result>( d.vkGetMemoryRemoteAddressNV( static_cast<VkDevice>( m_device ),
25796 reinterpret_cast<const VkMemoryGetRemoteAddressInfoNV *>( pMemoryGetRemoteAddressInfo ),
25797 reinterpret_cast<VkRemoteAddressNV *>( pAddress ) ) );
25798 }
25799
25800 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25801 // wrapper function for command vkGetMemoryRemoteAddressNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryRemoteAddressNV.html
25802 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryRemoteAddressNV ), bool>::type>
25803 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<RemoteAddressNV>::type
25804 Device::getMemoryRemoteAddressNV( const MemoryGetRemoteAddressInfoNV & memoryGetRemoteAddressInfo, Dispatch const & d ) const
25805 {
25806 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25807 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25808 VULKAN_HPP_ASSERT( d.vkGetMemoryRemoteAddressNV && "Function <vkGetMemoryRemoteAddressNV> requires <VK_NV_external_memory_rdma>" );
25809 # endif
25810
25811 RemoteAddressNV address;
25812 Result result = static_cast<Result>( d.vkGetMemoryRemoteAddressNV(
25813 m_device, reinterpret_cast<const VkMemoryGetRemoteAddressInfoNV *>( &memoryGetRemoteAddressInfo ), reinterpret_cast<VkRemoteAddressNV *>( &address ) ) );
25814 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryRemoteAddressNV" );
25815
25816 return detail::createResultValueType( result, std::move( address ) );
25817 }
25818 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25819
25820 //=== VK_EXT_pipeline_properties ===
25821
25822 // wrapper function for command vkGetPipelinePropertiesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelinePropertiesEXT.html
25823 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelinePropertiesEXT ), bool>::type>
25824 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelinePropertiesEXT( const PipelineInfoEXT * pPipelineInfo,
25825 BaseOutStructure * pPipelineProperties,
25826 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25827 {
25828 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25829 return static_cast<Result>( d.vkGetPipelinePropertiesEXT( static_cast<VkDevice>( m_device ),
25830 reinterpret_cast<const VkPipelineInfoEXT *>( pPipelineInfo ),
25831 reinterpret_cast<VkBaseOutStructure *>( pPipelineProperties ) ) );
25832 }
25833
25834 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25835 // wrapper function for command vkGetPipelinePropertiesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelinePropertiesEXT.html
25836 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelinePropertiesEXT ), bool>::type>
25837 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<BaseOutStructure>::type
25838 Device::getPipelinePropertiesEXT( const PipelineInfoEXT & pipelineInfo, Dispatch const & d ) const
25839 {
25840 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25841 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25842 VULKAN_HPP_ASSERT( d.vkGetPipelinePropertiesEXT && "Function <vkGetPipelinePropertiesEXT> requires <VK_EXT_pipeline_properties>" );
25843 # endif
25844
25845 BaseOutStructure pipelineProperties;
25846 Result result = static_cast<Result>( d.vkGetPipelinePropertiesEXT(
25847 m_device, reinterpret_cast<const VkPipelineInfoEXT *>( &pipelineInfo ), reinterpret_cast<VkBaseOutStructure *>( &pipelineProperties ) ) );
25848 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelinePropertiesEXT" );
25849
25850 return detail::createResultValueType( result, std::move( pipelineProperties ) );
25851 }
25852 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25853
25854 //=== VK_EXT_extended_dynamic_state2 ===
25855
25856 // wrapper function for command vkCmdSetPatchControlPointsEXT, see
25857 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPatchControlPointsEXT.html
25858 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPatchControlPointsEXT ), bool>::type>
25859 VULKAN_HPP_INLINE void CommandBuffer::setPatchControlPointsEXT( uint32_t patchControlPoints, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25860 {
25861 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25862 d.vkCmdSetPatchControlPointsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), patchControlPoints );
25863 }
25864
25865 // wrapper function for command vkCmdSetRasterizerDiscardEnableEXT, see
25866 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizerDiscardEnableEXT.html
25867 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRasterizerDiscardEnableEXT ), bool>::type>
25868 VULKAN_HPP_INLINE void CommandBuffer::setRasterizerDiscardEnableEXT( Bool32 rasterizerDiscardEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25869 {
25870 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25871 d.vkCmdSetRasterizerDiscardEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( rasterizerDiscardEnable ) );
25872 }
25873
25874 // wrapper function for command vkCmdSetDepthBiasEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthBiasEnableEXT.html
25875 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthBiasEnableEXT ), bool>::type>
25876 VULKAN_HPP_INLINE void CommandBuffer::setDepthBiasEnableEXT( Bool32 depthBiasEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25877 {
25878 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25879 d.vkCmdSetDepthBiasEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthBiasEnable ) );
25880 }
25881
25882 // wrapper function for command vkCmdSetLogicOpEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLogicOpEXT.html
25883 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLogicOpEXT ), bool>::type>
25884 VULKAN_HPP_INLINE void CommandBuffer::setLogicOpEXT( LogicOp logicOp, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25885 {
25886 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25887 d.vkCmdSetLogicOpEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkLogicOp>( logicOp ) );
25888 }
25889
25890 // wrapper function for command vkCmdSetPrimitiveRestartEnableEXT, see
25891 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPrimitiveRestartEnableEXT.html
25892 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPrimitiveRestartEnableEXT ), bool>::type>
25893 VULKAN_HPP_INLINE void CommandBuffer::setPrimitiveRestartEnableEXT( Bool32 primitiveRestartEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25894 {
25895 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25896 d.vkCmdSetPrimitiveRestartEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( primitiveRestartEnable ) );
25897 }
25898
25899 #if defined( VK_USE_PLATFORM_SCREEN_QNX )
25900 //=== VK_QNX_screen_surface ===
25901
25902 // wrapper function for command vkCreateScreenSurfaceQNX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateScreenSurfaceQNX.html
25903 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateScreenSurfaceQNX ), bool>::type>
25904 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createScreenSurfaceQNX( const ScreenSurfaceCreateInfoQNX * pCreateInfo,
25905 const AllocationCallbacks * pAllocator,
25906 SurfaceKHR * pSurface,
25907 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25908 {
25909 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25910 return static_cast<Result>( d.vkCreateScreenSurfaceQNX( static_cast<VkInstance>( m_instance ),
25911 reinterpret_cast<const VkScreenSurfaceCreateInfoQNX *>( pCreateInfo ),
25912 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
25913 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
25914 }
25915
25916 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25917 // wrapper function for command vkCreateScreenSurfaceQNX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateScreenSurfaceQNX.html
25918 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateScreenSurfaceQNX ), bool>::type>
25919 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
25920 Instance::createScreenSurfaceQNX( const ScreenSurfaceCreateInfoQNX & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
25921 {
25922 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25923 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25924 VULKAN_HPP_ASSERT( d.vkCreateScreenSurfaceQNX && "Function <vkCreateScreenSurfaceQNX> requires <VK_QNX_screen_surface>" );
25925 # endif
25926
25927 SurfaceKHR surface;
25928 Result result = static_cast<Result>( d.vkCreateScreenSurfaceQNX( m_instance,
25929 reinterpret_cast<const VkScreenSurfaceCreateInfoQNX *>( &createInfo ),
25930 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
25931 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
25932 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createScreenSurfaceQNX" );
25933
25934 return detail::createResultValueType( result, std::move( surface ) );
25935 }
25936
25937 # ifndef VULKAN_HPP_NO_SMART_HANDLE
25938 // wrapper function for command vkCreateScreenSurfaceQNX, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateScreenSurfaceQNX.html
25939 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateScreenSurfaceQNX ), bool>::type>
25940 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type Instance::createScreenSurfaceQNXUnique(
25941 const ScreenSurfaceCreateInfoQNX & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
25942 {
25943 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25944 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25945 VULKAN_HPP_ASSERT( d.vkCreateScreenSurfaceQNX && "Function <vkCreateScreenSurfaceQNX> requires <VK_QNX_screen_surface>" );
25946 # endif
25947
25948 SurfaceKHR surface;
25949 Result result = static_cast<Result>( d.vkCreateScreenSurfaceQNX( m_instance,
25950 reinterpret_cast<const VkScreenSurfaceCreateInfoQNX *>( &createInfo ),
25951 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
25952 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
25953 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createScreenSurfaceQNXUnique" );
25954
25955 return detail::createResultValueType( result,
25956 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
25957 }
25958 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
25959 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25960
25961 // wrapper function for command vkGetPhysicalDeviceScreenPresentationSupportQNX, see
25962 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceScreenPresentationSupportQNX.html
25963 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceScreenPresentationSupportQNX ), bool>::type>
25964 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getScreenPresentationSupportQNX( uint32_t queueFamilyIndex,
25965 struct _screen_window * window,
25966 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25967 {
25968 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25969 return static_cast<Bool32>(
25970 d.vkGetPhysicalDeviceScreenPresentationSupportQNX( static_cast<VkPhysicalDevice>( m_physicalDevice ), queueFamilyIndex, window ) );
25971 }
25972
25973 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
25974 // wrapper function for command vkGetPhysicalDeviceScreenPresentationSupportQNX, see
25975 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceScreenPresentationSupportQNX.html
25976 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceScreenPresentationSupportQNX ), bool>::type>
25977 VULKAN_HPP_INLINE Bool32 PhysicalDevice::getScreenPresentationSupportQNX( uint32_t queueFamilyIndex,
25978 struct _screen_window & window,
25979 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
25980 {
25981 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
25982 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
25983 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceScreenPresentationSupportQNX &&
25984 "Function <vkGetPhysicalDeviceScreenPresentationSupportQNX> requires <VK_QNX_screen_surface>" );
25985 # endif
25986
25987 VkBool32 result = d.vkGetPhysicalDeviceScreenPresentationSupportQNX( m_physicalDevice, queueFamilyIndex, &window );
25988
25989 return static_cast<Bool32>( result );
25990 }
25991 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
25992 #endif /*VK_USE_PLATFORM_SCREEN_QNX*/
25993
25994 //=== VK_EXT_color_write_enable ===
25995
25996 // wrapper function for command vkCmdSetColorWriteEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorWriteEnableEXT.html
25997 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorWriteEnableEXT ), bool>::type>
25998 VULKAN_HPP_INLINE void
25999 CommandBuffer::setColorWriteEnableEXT( uint32_t attachmentCount, const Bool32 * pColorWriteEnables, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26000 {
26001 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26002 d.vkCmdSetColorWriteEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), attachmentCount, reinterpret_cast<const VkBool32 *>( pColorWriteEnables ) );
26003 }
26004
26005 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26006 // wrapper function for command vkCmdSetColorWriteEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorWriteEnableEXT.html
26007 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorWriteEnableEXT ), bool>::type>
26008 VULKAN_HPP_INLINE void CommandBuffer::setColorWriteEnableEXT( ArrayProxy<const Bool32> const & colorWriteEnables,
26009 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26010 {
26011 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26012 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26013 VULKAN_HPP_ASSERT( d.vkCmdSetColorWriteEnableEXT && "Function <vkCmdSetColorWriteEnableEXT> requires <VK_EXT_color_write_enable>" );
26014 # endif
26015
26016 d.vkCmdSetColorWriteEnableEXT( m_commandBuffer, colorWriteEnables.size(), reinterpret_cast<const VkBool32 *>( colorWriteEnables.data() ) );
26017 }
26018 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26019
26020 //=== VK_KHR_ray_tracing_maintenance1 ===
26021
26022 // wrapper function for command vkCmdTraceRaysIndirect2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdTraceRaysIndirect2KHR.html
26023 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdTraceRaysIndirect2KHR ), bool>::type>
26024 VULKAN_HPP_INLINE void CommandBuffer::traceRaysIndirect2KHR( DeviceAddress indirectDeviceAddress, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26025 {
26026 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26027 d.vkCmdTraceRaysIndirect2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkDeviceAddress>( indirectDeviceAddress ) );
26028 }
26029
26030 //=== VK_EXT_multi_draw ===
26031
26032 // wrapper function for command vkCmdDrawMultiEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMultiEXT.html
26033 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMultiEXT ), bool>::type>
26034 VULKAN_HPP_INLINE void CommandBuffer::drawMultiEXT( uint32_t drawCount,
26035 const MultiDrawInfoEXT * pVertexInfo,
26036 uint32_t instanceCount,
26037 uint32_t firstInstance,
26038 uint32_t stride,
26039 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26040 {
26041 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26042 d.vkCmdDrawMultiEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
26043 drawCount,
26044 reinterpret_cast<const VkMultiDrawInfoEXT *>( pVertexInfo ),
26045 instanceCount,
26046 firstInstance,
26047 stride );
26048 }
26049
26050 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26051 // wrapper function for command vkCmdDrawMultiEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMultiEXT.html
26052 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMultiEXT ), bool>::type>
26053 VULKAN_HPP_INLINE void CommandBuffer::drawMultiEXT( StridedArrayProxy<const MultiDrawInfoEXT> const & vertexInfo,
26054 uint32_t instanceCount,
26055 uint32_t firstInstance,
26056 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26057 {
26058 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26059 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26060 VULKAN_HPP_ASSERT( d.vkCmdDrawMultiEXT && "Function <vkCmdDrawMultiEXT> requires <VK_EXT_multi_draw>" );
26061 # endif
26062
26063 d.vkCmdDrawMultiEXT( m_commandBuffer,
26064 vertexInfo.size(),
26065 reinterpret_cast<const VkMultiDrawInfoEXT *>( vertexInfo.data() ),
26066 instanceCount,
26067 firstInstance,
26068 vertexInfo.stride() );
26069 }
26070 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26071
26072 // wrapper function for command vkCmdDrawMultiIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMultiIndexedEXT.html
26073 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMultiIndexedEXT ), bool>::type>
26074 VULKAN_HPP_INLINE void CommandBuffer::drawMultiIndexedEXT( uint32_t drawCount,
26075 const MultiDrawIndexedInfoEXT * pIndexInfo,
26076 uint32_t instanceCount,
26077 uint32_t firstInstance,
26078 uint32_t stride,
26079 const int32_t * pVertexOffset,
26080 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26081 {
26082 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26083 d.vkCmdDrawMultiIndexedEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
26084 drawCount,
26085 reinterpret_cast<const VkMultiDrawIndexedInfoEXT *>( pIndexInfo ),
26086 instanceCount,
26087 firstInstance,
26088 stride,
26089 pVertexOffset );
26090 }
26091
26092 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26093 // wrapper function for command vkCmdDrawMultiIndexedEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawMultiIndexedEXT.html
26094 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawMultiIndexedEXT ), bool>::type>
26095 VULKAN_HPP_INLINE void CommandBuffer::drawMultiIndexedEXT( StridedArrayProxy<const MultiDrawIndexedInfoEXT> const & indexInfo,
26096 uint32_t instanceCount,
26097 uint32_t firstInstance,
26098 Optional<const int32_t> vertexOffset,
26099 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26100 {
26101 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26102 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26103 VULKAN_HPP_ASSERT( d.vkCmdDrawMultiIndexedEXT && "Function <vkCmdDrawMultiIndexedEXT> requires <VK_EXT_multi_draw>" );
26104 # endif
26105
26106 d.vkCmdDrawMultiIndexedEXT( m_commandBuffer,
26107 indexInfo.size(),
26108 reinterpret_cast<const VkMultiDrawIndexedInfoEXT *>( indexInfo.data() ),
26109 instanceCount,
26110 firstInstance,
26111 indexInfo.stride(),
26112 vertexOffset.get() );
26113 }
26114 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26115
26116 //=== VK_EXT_opacity_micromap ===
26117
26118 // wrapper function for command vkCreateMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMicromapEXT.html
26119 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMicromapEXT ), bool>::type>
26120 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createMicromapEXT( const MicromapCreateInfoEXT * pCreateInfo,
26121 const AllocationCallbacks * pAllocator,
26122 MicromapEXT * pMicromap,
26123 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26124 {
26125 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26126 return static_cast<Result>( d.vkCreateMicromapEXT( static_cast<VkDevice>( m_device ),
26127 reinterpret_cast<const VkMicromapCreateInfoEXT *>( pCreateInfo ),
26128 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
26129 reinterpret_cast<VkMicromapEXT *>( pMicromap ) ) );
26130 }
26131
26132 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26133 // wrapper function for command vkCreateMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMicromapEXT.html
26134 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMicromapEXT ), bool>::type>
26135 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MicromapEXT>::type
26136 Device::createMicromapEXT( const MicromapCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
26137 {
26138 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26139 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26140 VULKAN_HPP_ASSERT( d.vkCreateMicromapEXT && "Function <vkCreateMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26141 # endif
26142
26143 MicromapEXT micromap;
26144 Result result = static_cast<Result>( d.vkCreateMicromapEXT( m_device,
26145 reinterpret_cast<const VkMicromapCreateInfoEXT *>( &createInfo ),
26146 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
26147 reinterpret_cast<VkMicromapEXT *>( &micromap ) ) );
26148 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createMicromapEXT" );
26149
26150 return detail::createResultValueType( result, std::move( micromap ) );
26151 }
26152
26153 # ifndef VULKAN_HPP_NO_SMART_HANDLE
26154 // wrapper function for command vkCreateMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateMicromapEXT.html
26155 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateMicromapEXT ), bool>::type>
26156 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<MicromapEXT, Dispatch>>::type
26157 Device::createMicromapEXTUnique( const MicromapCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
26158 {
26159 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26160 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26161 VULKAN_HPP_ASSERT( d.vkCreateMicromapEXT && "Function <vkCreateMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26162 # endif
26163
26164 MicromapEXT micromap;
26165 Result result = static_cast<Result>( d.vkCreateMicromapEXT( m_device,
26166 reinterpret_cast<const VkMicromapCreateInfoEXT *>( &createInfo ),
26167 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
26168 reinterpret_cast<VkMicromapEXT *>( &micromap ) ) );
26169 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createMicromapEXTUnique" );
26170
26171 return detail::createResultValueType( result,
26172 UniqueHandle<MicromapEXT, Dispatch>( micromap, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
26173 }
26174 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
26175 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26176
26177 // wrapper function for command vkDestroyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyMicromapEXT.html
26178 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyMicromapEXT ), bool>::type>
26179 VULKAN_HPP_INLINE void
26180 Device::destroyMicromapEXT( MicromapEXT micromap, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26181 {
26182 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26183 d.vkDestroyMicromapEXT(
26184 static_cast<VkDevice>( m_device ), static_cast<VkMicromapEXT>( micromap ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
26185 }
26186
26187 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26188 // wrapper function for command vkDestroyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyMicromapEXT.html
26189 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyMicromapEXT ), bool>::type>
26190 VULKAN_HPP_INLINE void
26191 Device::destroyMicromapEXT( MicromapEXT micromap, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26192 {
26193 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26194 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26195 VULKAN_HPP_ASSERT( d.vkDestroyMicromapEXT && "Function <vkDestroyMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26196 # endif
26197
26198 d.vkDestroyMicromapEXT( m_device, static_cast<VkMicromapEXT>( micromap ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
26199 }
26200 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26201
26202 // wrapper function for command vkDestroyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyMicromapEXT.html
26203 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyMicromapEXT ), bool>::type>
26204 VULKAN_HPP_INLINE void Device::destroy( MicromapEXT micromap, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26205 {
26206 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26207 d.vkDestroyMicromapEXT(
26208 static_cast<VkDevice>( m_device ), static_cast<VkMicromapEXT>( micromap ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
26209 }
26210
26211 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26212 // wrapper function for command vkDestroyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyMicromapEXT.html
26213 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyMicromapEXT ), bool>::type>
26214 VULKAN_HPP_INLINE void Device::destroy( MicromapEXT micromap, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26215 {
26216 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26217 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26218 VULKAN_HPP_ASSERT( d.vkDestroyMicromapEXT && "Function <vkDestroyMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26219 # endif
26220
26221 d.vkDestroyMicromapEXT( m_device, static_cast<VkMicromapEXT>( micromap ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
26222 }
26223 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26224
26225 // wrapper function for command vkCmdBuildMicromapsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildMicromapsEXT.html
26226 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildMicromapsEXT ), bool>::type>
26227 VULKAN_HPP_INLINE void
26228 CommandBuffer::buildMicromapsEXT( uint32_t infoCount, const MicromapBuildInfoEXT * pInfos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26229 {
26230 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26231 d.vkCmdBuildMicromapsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), infoCount, reinterpret_cast<const VkMicromapBuildInfoEXT *>( pInfos ) );
26232 }
26233
26234 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26235 // wrapper function for command vkCmdBuildMicromapsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildMicromapsEXT.html
26236 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildMicromapsEXT ), bool>::type>
26237 VULKAN_HPP_INLINE void CommandBuffer::buildMicromapsEXT( ArrayProxy<const MicromapBuildInfoEXT> const & infos, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26238 {
26239 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26240 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26241 VULKAN_HPP_ASSERT( d.vkCmdBuildMicromapsEXT && "Function <vkCmdBuildMicromapsEXT> requires <VK_EXT_opacity_micromap>" );
26242 # endif
26243
26244 d.vkCmdBuildMicromapsEXT( m_commandBuffer, infos.size(), reinterpret_cast<const VkMicromapBuildInfoEXT *>( infos.data() ) );
26245 }
26246 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26247
26248 // wrapper function for command vkBuildMicromapsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBuildMicromapsEXT.html
26249 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBuildMicromapsEXT ), bool>::type>
26250 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::buildMicromapsEXT( DeferredOperationKHR deferredOperation,
26251 uint32_t infoCount,
26252 const MicromapBuildInfoEXT * pInfos,
26253 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26254 {
26255 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26256 return static_cast<Result>( d.vkBuildMicromapsEXT( static_cast<VkDevice>( m_device ),
26257 static_cast<VkDeferredOperationKHR>( deferredOperation ),
26258 infoCount,
26259 reinterpret_cast<const VkMicromapBuildInfoEXT *>( pInfos ) ) );
26260 }
26261
26262 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26263 // wrapper function for command vkBuildMicromapsEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBuildMicromapsEXT.html
26264 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBuildMicromapsEXT ), bool>::type>
26265 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::buildMicromapsEXT( DeferredOperationKHR deferredOperation,
26266 ArrayProxy<const MicromapBuildInfoEXT> const & infos,
26267 Dispatch const & d ) const
26268 {
26269 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26270 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26271 VULKAN_HPP_ASSERT( d.vkBuildMicromapsEXT && "Function <vkBuildMicromapsEXT> requires <VK_EXT_opacity_micromap>" );
26272 # endif
26273
26274 Result result = static_cast<Result>( d.vkBuildMicromapsEXT(
26275 m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), infos.size(), reinterpret_cast<const VkMicromapBuildInfoEXT *>( infos.data() ) ) );
26276 detail::resultCheck( result,
26277 VULKAN_HPP_NAMESPACE_STRING "::Device::buildMicromapsEXT",
26278 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
26279
26280 return static_cast<Result>( result );
26281 }
26282 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26283
26284 // wrapper function for command vkCopyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMicromapEXT.html
26285 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMicromapEXT ), bool>::type>
26286 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMicromapEXT( DeferredOperationKHR deferredOperation,
26287 const CopyMicromapInfoEXT * pInfo,
26288 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26289 {
26290 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26291 return static_cast<Result>( d.vkCopyMicromapEXT(
26292 static_cast<VkDevice>( m_device ), static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<const VkCopyMicromapInfoEXT *>( pInfo ) ) );
26293 }
26294
26295 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26296 // wrapper function for command vkCopyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMicromapEXT.html
26297 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMicromapEXT ), bool>::type>
26298 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMicromapEXT( DeferredOperationKHR deferredOperation,
26299 const CopyMicromapInfoEXT & info,
26300 Dispatch const & d ) const
26301 {
26302 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26303 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26304 VULKAN_HPP_ASSERT( d.vkCopyMicromapEXT && "Function <vkCopyMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26305 # endif
26306
26307 Result result = static_cast<Result>(
26308 d.vkCopyMicromapEXT( m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<const VkCopyMicromapInfoEXT *>( &info ) ) );
26309 detail::resultCheck(
26310 result, VULKAN_HPP_NAMESPACE_STRING "::Device::copyMicromapEXT", { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
26311
26312 return static_cast<Result>( result );
26313 }
26314 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26315
26316 // wrapper function for command vkCopyMicromapToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMicromapToMemoryEXT.html
26317 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMicromapToMemoryEXT ), bool>::type>
26318 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMicromapToMemoryEXT( DeferredOperationKHR deferredOperation,
26319 const CopyMicromapToMemoryInfoEXT * pInfo,
26320 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26321 {
26322 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26323 return static_cast<Result>( d.vkCopyMicromapToMemoryEXT( static_cast<VkDevice>( m_device ),
26324 static_cast<VkDeferredOperationKHR>( deferredOperation ),
26325 reinterpret_cast<const VkCopyMicromapToMemoryInfoEXT *>( pInfo ) ) );
26326 }
26327
26328 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26329 // wrapper function for command vkCopyMicromapToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMicromapToMemoryEXT.html
26330 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMicromapToMemoryEXT ), bool>::type>
26331 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMicromapToMemoryEXT( DeferredOperationKHR deferredOperation,
26332 const CopyMicromapToMemoryInfoEXT & info,
26333 Dispatch const & d ) const
26334 {
26335 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26336 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26337 VULKAN_HPP_ASSERT( d.vkCopyMicromapToMemoryEXT && "Function <vkCopyMicromapToMemoryEXT> requires <VK_EXT_opacity_micromap>" );
26338 # endif
26339
26340 Result result = static_cast<Result>( d.vkCopyMicromapToMemoryEXT(
26341 m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<const VkCopyMicromapToMemoryInfoEXT *>( &info ) ) );
26342 detail::resultCheck( result,
26343 VULKAN_HPP_NAMESPACE_STRING "::Device::copyMicromapToMemoryEXT",
26344 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
26345
26346 return static_cast<Result>( result );
26347 }
26348 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26349
26350 // wrapper function for command vkCopyMemoryToMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToMicromapEXT.html
26351 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToMicromapEXT ), bool>::type>
26352 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToMicromapEXT( DeferredOperationKHR deferredOperation,
26353 const CopyMemoryToMicromapInfoEXT * pInfo,
26354 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26355 {
26356 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26357 return static_cast<Result>( d.vkCopyMemoryToMicromapEXT( static_cast<VkDevice>( m_device ),
26358 static_cast<VkDeferredOperationKHR>( deferredOperation ),
26359 reinterpret_cast<const VkCopyMemoryToMicromapInfoEXT *>( pInfo ) ) );
26360 }
26361
26362 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26363 // wrapper function for command vkCopyMemoryToMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCopyMemoryToMicromapEXT.html
26364 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCopyMemoryToMicromapEXT ), bool>::type>
26365 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::copyMemoryToMicromapEXT( DeferredOperationKHR deferredOperation,
26366 const CopyMemoryToMicromapInfoEXT & info,
26367 Dispatch const & d ) const
26368 {
26369 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26370 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26371 VULKAN_HPP_ASSERT( d.vkCopyMemoryToMicromapEXT && "Function <vkCopyMemoryToMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26372 # endif
26373
26374 Result result = static_cast<Result>( d.vkCopyMemoryToMicromapEXT(
26375 m_device, static_cast<VkDeferredOperationKHR>( deferredOperation ), reinterpret_cast<const VkCopyMemoryToMicromapInfoEXT *>( &info ) ) );
26376 detail::resultCheck( result,
26377 VULKAN_HPP_NAMESPACE_STRING "::Device::copyMemoryToMicromapEXT",
26378 { Result::eSuccess, Result::eOperationDeferredKHR, Result::eOperationNotDeferredKHR } );
26379
26380 return static_cast<Result>( result );
26381 }
26382 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26383
26384 // wrapper function for command vkWriteMicromapsPropertiesEXT, see
26385 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteMicromapsPropertiesEXT.html
26386 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteMicromapsPropertiesEXT ), bool>::type>
26387 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::writeMicromapsPropertiesEXT( uint32_t micromapCount,
26388 const MicromapEXT * pMicromaps,
26389 QueryType queryType,
26390 size_t dataSize,
26391 void * pData,
26392 size_t stride,
26393 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26394 {
26395 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26396 return static_cast<Result>( d.vkWriteMicromapsPropertiesEXT( static_cast<VkDevice>( m_device ),
26397 micromapCount,
26398 reinterpret_cast<const VkMicromapEXT *>( pMicromaps ),
26399 static_cast<VkQueryType>( queryType ),
26400 dataSize,
26401 pData,
26402 stride ) );
26403 }
26404
26405 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26406 // wrapper function for command vkWriteMicromapsPropertiesEXT, see
26407 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteMicromapsPropertiesEXT.html
26408 template <typename DataType,
26409 typename DataTypeAllocator,
26410 typename Dispatch,
26411 typename std::enable_if<std::is_same<typename DataTypeAllocator::value_type, DataType>::value, int>::type,
26412 typename std::enable_if<IS_DISPATCHED( vkWriteMicromapsPropertiesEXT ), bool>::type>
26413 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataType, DataTypeAllocator>>::type Device::writeMicromapsPropertiesEXT(
26414 ArrayProxy<const MicromapEXT> const & micromaps, QueryType queryType, size_t dataSize, size_t stride, Dispatch const & d ) const
26415 {
26416 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26417 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26418 VULKAN_HPP_ASSERT( d.vkWriteMicromapsPropertiesEXT && "Function <vkWriteMicromapsPropertiesEXT> requires <VK_EXT_opacity_micromap>" );
26419 # endif
26420
26421 VULKAN_HPP_ASSERT( dataSize % sizeof( DataType ) == 0 );
26422 std::vector<DataType, DataTypeAllocator> data( dataSize / sizeof( DataType ) );
26423 Result result = static_cast<Result>( d.vkWriteMicromapsPropertiesEXT( m_device,
26424 micromaps.size(),
26425 reinterpret_cast<const VkMicromapEXT *>( micromaps.data() ),
26426 static_cast<VkQueryType>( queryType ),
26427 data.size() * sizeof( DataType ),
26428 reinterpret_cast<void *>( data.data() ),
26429 stride ) );
26430 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeMicromapsPropertiesEXT" );
26431
26432 return detail::createResultValueType( result, std::move( data ) );
26433 }
26434
26435 // wrapper function for command vkWriteMicromapsPropertiesEXT, see
26436 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkWriteMicromapsPropertiesEXT.html
26437 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWriteMicromapsPropertiesEXT ), bool>::type>
26438 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
26439 Device::writeMicromapsPropertyEXT( ArrayProxy<const MicromapEXT> const & micromaps, QueryType queryType, size_t stride, Dispatch const & d ) const
26440 {
26441 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26442 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26443 VULKAN_HPP_ASSERT( d.vkWriteMicromapsPropertiesEXT && "Function <vkWriteMicromapsPropertiesEXT> requires <VK_EXT_opacity_micromap>" );
26444 # endif
26445
26446 DataType data;
26447 Result result = static_cast<Result>( d.vkWriteMicromapsPropertiesEXT( m_device,
26448 micromaps.size(),
26449 reinterpret_cast<const VkMicromapEXT *>( micromaps.data() ),
26450 static_cast<VkQueryType>( queryType ),
26451 sizeof( DataType ),
26452 reinterpret_cast<void *>( &data ),
26453 stride ) );
26454 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::writeMicromapsPropertyEXT" );
26455
26456 return detail::createResultValueType( result, std::move( data ) );
26457 }
26458 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26459
26460 // wrapper function for command vkCmdCopyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMicromapEXT.html
26461 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMicromapEXT ), bool>::type>
26462 VULKAN_HPP_INLINE void CommandBuffer::copyMicromapEXT( const CopyMicromapInfoEXT * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26463 {
26464 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26465 d.vkCmdCopyMicromapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyMicromapInfoEXT *>( pInfo ) );
26466 }
26467
26468 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26469 // wrapper function for command vkCmdCopyMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMicromapEXT.html
26470 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMicromapEXT ), bool>::type>
26471 VULKAN_HPP_INLINE void CommandBuffer::copyMicromapEXT( const CopyMicromapInfoEXT & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26472 {
26473 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26474 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26475 VULKAN_HPP_ASSERT( d.vkCmdCopyMicromapEXT && "Function <vkCmdCopyMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26476 # endif
26477
26478 d.vkCmdCopyMicromapEXT( m_commandBuffer, reinterpret_cast<const VkCopyMicromapInfoEXT *>( &info ) );
26479 }
26480 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26481
26482 // wrapper function for command vkCmdCopyMicromapToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMicromapToMemoryEXT.html
26483 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMicromapToMemoryEXT ), bool>::type>
26484 VULKAN_HPP_INLINE void CommandBuffer::copyMicromapToMemoryEXT( const CopyMicromapToMemoryInfoEXT * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26485 {
26486 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26487 d.vkCmdCopyMicromapToMemoryEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyMicromapToMemoryInfoEXT *>( pInfo ) );
26488 }
26489
26490 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26491 // wrapper function for command vkCmdCopyMicromapToMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMicromapToMemoryEXT.html
26492 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMicromapToMemoryEXT ), bool>::type>
26493 VULKAN_HPP_INLINE void CommandBuffer::copyMicromapToMemoryEXT( const CopyMicromapToMemoryInfoEXT & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26494 {
26495 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26496 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26497 VULKAN_HPP_ASSERT( d.vkCmdCopyMicromapToMemoryEXT && "Function <vkCmdCopyMicromapToMemoryEXT> requires <VK_EXT_opacity_micromap>" );
26498 # endif
26499
26500 d.vkCmdCopyMicromapToMemoryEXT( m_commandBuffer, reinterpret_cast<const VkCopyMicromapToMemoryInfoEXT *>( &info ) );
26501 }
26502 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26503
26504 // wrapper function for command vkCmdCopyMemoryToMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToMicromapEXT.html
26505 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToMicromapEXT ), bool>::type>
26506 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToMicromapEXT( const CopyMemoryToMicromapInfoEXT * pInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26507 {
26508 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26509 d.vkCmdCopyMemoryToMicromapEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyMemoryToMicromapInfoEXT *>( pInfo ) );
26510 }
26511
26512 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26513 // wrapper function for command vkCmdCopyMemoryToMicromapEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToMicromapEXT.html
26514 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToMicromapEXT ), bool>::type>
26515 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToMicromapEXT( const CopyMemoryToMicromapInfoEXT & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26516 {
26517 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26518 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26519 VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToMicromapEXT && "Function <vkCmdCopyMemoryToMicromapEXT> requires <VK_EXT_opacity_micromap>" );
26520 # endif
26521
26522 d.vkCmdCopyMemoryToMicromapEXT( m_commandBuffer, reinterpret_cast<const VkCopyMemoryToMicromapInfoEXT *>( &info ) );
26523 }
26524 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26525
26526 // wrapper function for command vkCmdWriteMicromapsPropertiesEXT, see
26527 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteMicromapsPropertiesEXT.html
26528 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteMicromapsPropertiesEXT ), bool>::type>
26529 VULKAN_HPP_INLINE void CommandBuffer::writeMicromapsPropertiesEXT( uint32_t micromapCount,
26530 const MicromapEXT * pMicromaps,
26531 QueryType queryType,
26532 QueryPool queryPool,
26533 uint32_t firstQuery,
26534 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26535 {
26536 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26537 d.vkCmdWriteMicromapsPropertiesEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
26538 micromapCount,
26539 reinterpret_cast<const VkMicromapEXT *>( pMicromaps ),
26540 static_cast<VkQueryType>( queryType ),
26541 static_cast<VkQueryPool>( queryPool ),
26542 firstQuery );
26543 }
26544
26545 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26546 // wrapper function for command vkCmdWriteMicromapsPropertiesEXT, see
26547 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdWriteMicromapsPropertiesEXT.html
26548 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdWriteMicromapsPropertiesEXT ), bool>::type>
26549 VULKAN_HPP_INLINE void CommandBuffer::writeMicromapsPropertiesEXT( ArrayProxy<const MicromapEXT> const & micromaps,
26550 QueryType queryType,
26551 QueryPool queryPool,
26552 uint32_t firstQuery,
26553 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26554 {
26555 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26556 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26557 VULKAN_HPP_ASSERT( d.vkCmdWriteMicromapsPropertiesEXT && "Function <vkCmdWriteMicromapsPropertiesEXT> requires <VK_EXT_opacity_micromap>" );
26558 # endif
26559
26560 d.vkCmdWriteMicromapsPropertiesEXT( m_commandBuffer,
26561 micromaps.size(),
26562 reinterpret_cast<const VkMicromapEXT *>( micromaps.data() ),
26563 static_cast<VkQueryType>( queryType ),
26564 static_cast<VkQueryPool>( queryPool ),
26565 firstQuery );
26566 }
26567 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26568
26569 // wrapper function for command vkGetDeviceMicromapCompatibilityEXT, see
26570 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMicromapCompatibilityEXT.html
26571 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMicromapCompatibilityEXT ), bool>::type>
26572 VULKAN_HPP_INLINE void Device::getMicromapCompatibilityEXT( const MicromapVersionInfoEXT * pVersionInfo,
26573 AccelerationStructureCompatibilityKHR * pCompatibility,
26574 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26575 {
26576 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26577 d.vkGetDeviceMicromapCompatibilityEXT( static_cast<VkDevice>( m_device ),
26578 reinterpret_cast<const VkMicromapVersionInfoEXT *>( pVersionInfo ),
26579 reinterpret_cast<VkAccelerationStructureCompatibilityKHR *>( pCompatibility ) );
26580 }
26581
26582 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26583 // wrapper function for command vkGetDeviceMicromapCompatibilityEXT, see
26584 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceMicromapCompatibilityEXT.html
26585 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceMicromapCompatibilityEXT ), bool>::type>
26586 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureCompatibilityKHR
26587 Device::getMicromapCompatibilityEXT( const MicromapVersionInfoEXT & versionInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26588 {
26589 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26590 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26591 VULKAN_HPP_ASSERT( d.vkGetDeviceMicromapCompatibilityEXT && "Function <vkGetDeviceMicromapCompatibilityEXT> requires <VK_EXT_opacity_micromap>" );
26592 # endif
26593
26594 AccelerationStructureCompatibilityKHR compatibility;
26595 d.vkGetDeviceMicromapCompatibilityEXT( m_device,
26596 reinterpret_cast<const VkMicromapVersionInfoEXT *>( &versionInfo ),
26597 reinterpret_cast<VkAccelerationStructureCompatibilityKHR *>( &compatibility ) );
26598
26599 return compatibility;
26600 }
26601 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26602
26603 // wrapper function for command vkGetMicromapBuildSizesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMicromapBuildSizesEXT.html
26604 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMicromapBuildSizesEXT ), bool>::type>
26605 VULKAN_HPP_INLINE void Device::getMicromapBuildSizesEXT( AccelerationStructureBuildTypeKHR buildType,
26606 const MicromapBuildInfoEXT * pBuildInfo,
26607 MicromapBuildSizesInfoEXT * pSizeInfo,
26608 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26609 {
26610 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26611 d.vkGetMicromapBuildSizesEXT( static_cast<VkDevice>( m_device ),
26612 static_cast<VkAccelerationStructureBuildTypeKHR>( buildType ),
26613 reinterpret_cast<const VkMicromapBuildInfoEXT *>( pBuildInfo ),
26614 reinterpret_cast<VkMicromapBuildSizesInfoEXT *>( pSizeInfo ) );
26615 }
26616
26617 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26618 // wrapper function for command vkGetMicromapBuildSizesEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMicromapBuildSizesEXT.html
26619 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMicromapBuildSizesEXT ), bool>::type>
26620 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MicromapBuildSizesInfoEXT Device::getMicromapBuildSizesEXT( AccelerationStructureBuildTypeKHR buildType,
26621 const MicromapBuildInfoEXT & buildInfo,
26622 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26623 {
26624 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26625 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26626 VULKAN_HPP_ASSERT( d.vkGetMicromapBuildSizesEXT && "Function <vkGetMicromapBuildSizesEXT> requires <VK_EXT_opacity_micromap>" );
26627 # endif
26628
26629 MicromapBuildSizesInfoEXT sizeInfo;
26630 d.vkGetMicromapBuildSizesEXT( m_device,
26631 static_cast<VkAccelerationStructureBuildTypeKHR>( buildType ),
26632 reinterpret_cast<const VkMicromapBuildInfoEXT *>( &buildInfo ),
26633 reinterpret_cast<VkMicromapBuildSizesInfoEXT *>( &sizeInfo ) );
26634
26635 return sizeInfo;
26636 }
26637 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26638
26639 //=== VK_HUAWEI_cluster_culling_shader ===
26640
26641 // wrapper function for command vkCmdDrawClusterHUAWEI, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawClusterHUAWEI.html
26642 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawClusterHUAWEI ), bool>::type>
26643 VULKAN_HPP_INLINE void
26644 CommandBuffer::drawClusterHUAWEI( uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26645 {
26646 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26647 d.vkCmdDrawClusterHUAWEI( static_cast<VkCommandBuffer>( m_commandBuffer ), groupCountX, groupCountY, groupCountZ );
26648 }
26649
26650 // wrapper function for command vkCmdDrawClusterIndirectHUAWEI, see
26651 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDrawClusterIndirectHUAWEI.html
26652 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDrawClusterIndirectHUAWEI ), bool>::type>
26653 VULKAN_HPP_INLINE void CommandBuffer::drawClusterIndirectHUAWEI( Buffer buffer, DeviceSize offset, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26654 {
26655 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26656 d.vkCmdDrawClusterIndirectHUAWEI( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBuffer>( buffer ), static_cast<VkDeviceSize>( offset ) );
26657 }
26658
26659 //=== VK_EXT_pageable_device_local_memory ===
26660
26661 // wrapper function for command vkSetDeviceMemoryPriorityEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetDeviceMemoryPriorityEXT.html
26662 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetDeviceMemoryPriorityEXT ), bool>::type>
26663 VULKAN_HPP_INLINE void Device::setMemoryPriorityEXT( DeviceMemory memory, float priority, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26664 {
26665 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26666 d.vkSetDeviceMemoryPriorityEXT( static_cast<VkDevice>( m_device ), static_cast<VkDeviceMemory>( memory ), priority );
26667 }
26668
26669 //=== VK_KHR_maintenance4 ===
26670
26671 // wrapper function for command vkGetDeviceBufferMemoryRequirementsKHR, see
26672 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirementsKHR.html
26673 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceBufferMemoryRequirementsKHR ), bool>::type>
26674 VULKAN_HPP_INLINE void Device::getBufferMemoryRequirementsKHR( const DeviceBufferMemoryRequirements * pInfo,
26675 MemoryRequirements2 * pMemoryRequirements,
26676 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26677 {
26678 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26679 d.vkGetDeviceBufferMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
26680 reinterpret_cast<const VkDeviceBufferMemoryRequirements *>( pInfo ),
26681 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
26682 }
26683
26684 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26685 // wrapper function for command vkGetDeviceBufferMemoryRequirementsKHR, see
26686 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirementsKHR.html
26687 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceBufferMemoryRequirementsKHR ), bool>::type>
26688 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getBufferMemoryRequirementsKHR( const DeviceBufferMemoryRequirements & info,
26689 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26690 {
26691 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26692 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26693 VULKAN_HPP_ASSERT( d.vkGetDeviceBufferMemoryRequirementsKHR &&
26694 "Function <vkGetDeviceBufferMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26695 # endif
26696
26697 MemoryRequirements2 memoryRequirements;
26698 d.vkGetDeviceBufferMemoryRequirementsKHR(
26699 m_device, reinterpret_cast<const VkDeviceBufferMemoryRequirements *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26700
26701 return memoryRequirements;
26702 }
26703
26704 // wrapper function for command vkGetDeviceBufferMemoryRequirementsKHR, see
26705 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceBufferMemoryRequirementsKHR.html
26706 template <typename X,
26707 typename Y,
26708 typename... Z,
26709 typename Dispatch,
26710 typename std::enable_if<IS_DISPATCHED( vkGetDeviceBufferMemoryRequirementsKHR ), bool>::type>
26711 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getBufferMemoryRequirementsKHR( const DeviceBufferMemoryRequirements & info,
26712 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26713 {
26714 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26715 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26716 VULKAN_HPP_ASSERT( d.vkGetDeviceBufferMemoryRequirementsKHR &&
26717 "Function <vkGetDeviceBufferMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26718 # endif
26719
26720 StructureChain<X, Y, Z...> structureChain;
26721 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
26722 d.vkGetDeviceBufferMemoryRequirementsKHR(
26723 m_device, reinterpret_cast<const VkDeviceBufferMemoryRequirements *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26724
26725 return structureChain;
26726 }
26727 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26728
26729 // wrapper function for command vkGetDeviceImageMemoryRequirementsKHR, see
26730 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirementsKHR.html
26731 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageMemoryRequirementsKHR ), bool>::type>
26732 VULKAN_HPP_INLINE void Device::getImageMemoryRequirementsKHR( const DeviceImageMemoryRequirements * pInfo,
26733 MemoryRequirements2 * pMemoryRequirements,
26734 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26735 {
26736 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26737 d.vkGetDeviceImageMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
26738 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( pInfo ),
26739 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
26740 }
26741
26742 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26743 // wrapper function for command vkGetDeviceImageMemoryRequirementsKHR, see
26744 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirementsKHR.html
26745 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageMemoryRequirementsKHR ), bool>::type>
26746 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getImageMemoryRequirementsKHR( const DeviceImageMemoryRequirements & info,
26747 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26748 {
26749 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26750 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26751 VULKAN_HPP_ASSERT( d.vkGetDeviceImageMemoryRequirementsKHR &&
26752 "Function <vkGetDeviceImageMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26753 # endif
26754
26755 MemoryRequirements2 memoryRequirements;
26756 d.vkGetDeviceImageMemoryRequirementsKHR(
26757 m_device, reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26758
26759 return memoryRequirements;
26760 }
26761
26762 // wrapper function for command vkGetDeviceImageMemoryRequirementsKHR, see
26763 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageMemoryRequirementsKHR.html
26764 template <typename X,
26765 typename Y,
26766 typename... Z,
26767 typename Dispatch,
26768 typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageMemoryRequirementsKHR ), bool>::type>
26769 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageMemoryRequirementsKHR( const DeviceImageMemoryRequirements & info,
26770 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26771 {
26772 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26773 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26774 VULKAN_HPP_ASSERT( d.vkGetDeviceImageMemoryRequirementsKHR &&
26775 "Function <vkGetDeviceImageMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26776 # endif
26777
26778 StructureChain<X, Y, Z...> structureChain;
26779 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
26780 d.vkGetDeviceImageMemoryRequirementsKHR(
26781 m_device, reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
26782
26783 return structureChain;
26784 }
26785 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26786
26787 // wrapper function for command vkGetDeviceImageSparseMemoryRequirementsKHR, see
26788 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirementsKHR.html
26789 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSparseMemoryRequirementsKHR ), bool>::type>
26790 VULKAN_HPP_INLINE void Device::getImageSparseMemoryRequirementsKHR( const DeviceImageMemoryRequirements * pInfo,
26791 uint32_t * pSparseMemoryRequirementCount,
26792 SparseImageMemoryRequirements2 * pSparseMemoryRequirements,
26793 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26794 {
26795 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26796 d.vkGetDeviceImageSparseMemoryRequirementsKHR( static_cast<VkDevice>( m_device ),
26797 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( pInfo ),
26798 pSparseMemoryRequirementCount,
26799 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( pSparseMemoryRequirements ) );
26800 }
26801
26802 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26803 // wrapper function for command vkGetDeviceImageSparseMemoryRequirementsKHR, see
26804 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirementsKHR.html
26805 template <
26806 typename SparseImageMemoryRequirements2Allocator,
26807 typename Dispatch,
26808 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
26809 typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSparseMemoryRequirementsKHR ), bool>::type>
26810 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
26811 Device::getImageSparseMemoryRequirementsKHR( const DeviceImageMemoryRequirements & info, Dispatch const & d ) const
26812 {
26813 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26814 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26815 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSparseMemoryRequirementsKHR &&
26816 "Function <vkGetDeviceImageSparseMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26817 # endif
26818
26819 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements;
26820 uint32_t sparseMemoryRequirementCount;
26821 d.vkGetDeviceImageSparseMemoryRequirementsKHR(
26822 m_device, reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ), &sparseMemoryRequirementCount, nullptr );
26823 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
26824 d.vkGetDeviceImageSparseMemoryRequirementsKHR( m_device,
26825 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ),
26826 &sparseMemoryRequirementCount,
26827 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
26828
26829 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
26830 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
26831 {
26832 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
26833 }
26834 return sparseMemoryRequirements;
26835 }
26836
26837 // wrapper function for command vkGetDeviceImageSparseMemoryRequirementsKHR, see
26838 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSparseMemoryRequirementsKHR.html
26839 template <
26840 typename SparseImageMemoryRequirements2Allocator,
26841 typename Dispatch,
26842 typename std::enable_if<std::is_same<typename SparseImageMemoryRequirements2Allocator::value_type, SparseImageMemoryRequirements2>::value, int>::type,
26843 typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSparseMemoryRequirementsKHR ), bool>::type>
26844 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator>
26845 Device::getImageSparseMemoryRequirementsKHR( const DeviceImageMemoryRequirements & info,
26846 SparseImageMemoryRequirements2Allocator const & sparseImageMemoryRequirements2Allocator,
26847 Dispatch const & d ) const
26848 {
26849 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26850 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26851 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSparseMemoryRequirementsKHR &&
26852 "Function <vkGetDeviceImageSparseMemoryRequirementsKHR> requires <VK_KHR_maintenance4> or <VK_VERSION_1_3>" );
26853 # endif
26854
26855 std::vector<SparseImageMemoryRequirements2, SparseImageMemoryRequirements2Allocator> sparseMemoryRequirements( sparseImageMemoryRequirements2Allocator );
26856 uint32_t sparseMemoryRequirementCount;
26857 d.vkGetDeviceImageSparseMemoryRequirementsKHR(
26858 m_device, reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ), &sparseMemoryRequirementCount, nullptr );
26859 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
26860 d.vkGetDeviceImageSparseMemoryRequirementsKHR( m_device,
26861 reinterpret_cast<const VkDeviceImageMemoryRequirements *>( &info ),
26862 &sparseMemoryRequirementCount,
26863 reinterpret_cast<VkSparseImageMemoryRequirements2 *>( sparseMemoryRequirements.data() ) );
26864
26865 VULKAN_HPP_ASSERT( sparseMemoryRequirementCount <= sparseMemoryRequirements.size() );
26866 if ( sparseMemoryRequirementCount < sparseMemoryRequirements.size() )
26867 {
26868 sparseMemoryRequirements.resize( sparseMemoryRequirementCount );
26869 }
26870 return sparseMemoryRequirements;
26871 }
26872 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26873
26874 //=== VK_VALVE_descriptor_set_host_mapping ===
26875
26876 // wrapper function for command vkGetDescriptorSetLayoutHostMappingInfoVALVE, see
26877 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutHostMappingInfoVALVE.html
26878 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutHostMappingInfoVALVE ), bool>::type>
26879 VULKAN_HPP_INLINE void Device::getDescriptorSetLayoutHostMappingInfoVALVE( const DescriptorSetBindingReferenceVALVE * pBindingReference,
26880 DescriptorSetLayoutHostMappingInfoVALVE * pHostMapping,
26881 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26882 {
26883 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26884 d.vkGetDescriptorSetLayoutHostMappingInfoVALVE( static_cast<VkDevice>( m_device ),
26885 reinterpret_cast<const VkDescriptorSetBindingReferenceVALVE *>( pBindingReference ),
26886 reinterpret_cast<VkDescriptorSetLayoutHostMappingInfoVALVE *>( pHostMapping ) );
26887 }
26888
26889 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26890 // wrapper function for command vkGetDescriptorSetLayoutHostMappingInfoVALVE, see
26891 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetLayoutHostMappingInfoVALVE.html
26892 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetLayoutHostMappingInfoVALVE ), bool>::type>
26893 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE DescriptorSetLayoutHostMappingInfoVALVE Device::getDescriptorSetLayoutHostMappingInfoVALVE(
26894 const DescriptorSetBindingReferenceVALVE & bindingReference, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26895 {
26896 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26897 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26898 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetLayoutHostMappingInfoVALVE &&
26899 "Function <vkGetDescriptorSetLayoutHostMappingInfoVALVE> requires <VK_VALVE_descriptor_set_host_mapping>" );
26900 # endif
26901
26902 DescriptorSetLayoutHostMappingInfoVALVE hostMapping;
26903 d.vkGetDescriptorSetLayoutHostMappingInfoVALVE( m_device,
26904 reinterpret_cast<const VkDescriptorSetBindingReferenceVALVE *>( &bindingReference ),
26905 reinterpret_cast<VkDescriptorSetLayoutHostMappingInfoVALVE *>( &hostMapping ) );
26906
26907 return hostMapping;
26908 }
26909 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26910
26911 // wrapper function for command vkGetDescriptorSetHostMappingVALVE, see
26912 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetHostMappingVALVE.html
26913 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetHostMappingVALVE ), bool>::type>
26914 VULKAN_HPP_INLINE void Device::getDescriptorSetHostMappingVALVE( DescriptorSet descriptorSet, void ** ppData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26915 {
26916 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26917 d.vkGetDescriptorSetHostMappingVALVE( static_cast<VkDevice>( m_device ), static_cast<VkDescriptorSet>( descriptorSet ), ppData );
26918 }
26919
26920 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26921 // wrapper function for command vkGetDescriptorSetHostMappingVALVE, see
26922 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDescriptorSetHostMappingVALVE.html
26923 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDescriptorSetHostMappingVALVE ), bool>::type>
26924 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE void * Device::getDescriptorSetHostMappingVALVE( DescriptorSet descriptorSet,
26925 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26926 {
26927 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26928 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26929 VULKAN_HPP_ASSERT( d.vkGetDescriptorSetHostMappingVALVE &&
26930 "Function <vkGetDescriptorSetHostMappingVALVE> requires <VK_VALVE_descriptor_set_host_mapping>" );
26931 # endif
26932
26933 void * pData;
26934 d.vkGetDescriptorSetHostMappingVALVE( m_device, static_cast<VkDescriptorSet>( descriptorSet ), &pData );
26935
26936 return pData;
26937 }
26938 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26939
26940 //=== VK_NV_copy_memory_indirect ===
26941
26942 // wrapper function for command vkCmdCopyMemoryIndirectNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryIndirectNV.html
26943 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryIndirectNV ), bool>::type>
26944 VULKAN_HPP_INLINE void
26945 CommandBuffer::copyMemoryIndirectNV( DeviceAddress copyBufferAddress, uint32_t copyCount, uint32_t stride, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26946 {
26947 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26948 d.vkCmdCopyMemoryIndirectNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkDeviceAddress>( copyBufferAddress ), copyCount, stride );
26949 }
26950
26951 // wrapper function for command vkCmdCopyMemoryToImageIndirectNV, see
26952 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageIndirectNV.html
26953 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToImageIndirectNV ), bool>::type>
26954 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToImageIndirectNV( DeviceAddress copyBufferAddress,
26955 uint32_t copyCount,
26956 uint32_t stride,
26957 Image dstImage,
26958 ImageLayout dstImageLayout,
26959 const ImageSubresourceLayers * pImageSubresources,
26960 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26961 {
26962 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26963 d.vkCmdCopyMemoryToImageIndirectNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
26964 static_cast<VkDeviceAddress>( copyBufferAddress ),
26965 copyCount,
26966 stride,
26967 static_cast<VkImage>( dstImage ),
26968 static_cast<VkImageLayout>( dstImageLayout ),
26969 reinterpret_cast<const VkImageSubresourceLayers *>( pImageSubresources ) );
26970 }
26971
26972 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
26973 // wrapper function for command vkCmdCopyMemoryToImageIndirectNV, see
26974 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageIndirectNV.html
26975 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToImageIndirectNV ), bool>::type>
26976 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToImageIndirectNV( DeviceAddress copyBufferAddress,
26977 uint32_t stride,
26978 Image dstImage,
26979 ImageLayout dstImageLayout,
26980 ArrayProxy<const ImageSubresourceLayers> const & imageSubresources,
26981 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
26982 {
26983 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
26984 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
26985 VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToImageIndirectNV && "Function <vkCmdCopyMemoryToImageIndirectNV> requires <VK_NV_copy_memory_indirect>" );
26986 # endif
26987
26988 d.vkCmdCopyMemoryToImageIndirectNV( m_commandBuffer,
26989 static_cast<VkDeviceAddress>( copyBufferAddress ),
26990 imageSubresources.size(),
26991 stride,
26992 static_cast<VkImage>( dstImage ),
26993 static_cast<VkImageLayout>( dstImageLayout ),
26994 reinterpret_cast<const VkImageSubresourceLayers *>( imageSubresources.data() ) );
26995 }
26996 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
26997
26998 //=== VK_NV_memory_decompression ===
26999
27000 // wrapper function for command vkCmdDecompressMemoryNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryNV.html
27001 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecompressMemoryNV ), bool>::type>
27002 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryNV( uint32_t decompressRegionCount,
27003 const DecompressMemoryRegionNV * pDecompressMemoryRegions,
27004 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27005 {
27006 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27007 d.vkCmdDecompressMemoryNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
27008 decompressRegionCount,
27009 reinterpret_cast<const VkDecompressMemoryRegionNV *>( pDecompressMemoryRegions ) );
27010 }
27011
27012 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27013 // wrapper function for command vkCmdDecompressMemoryNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryNV.html
27014 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecompressMemoryNV ), bool>::type>
27015 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryNV( ArrayProxy<const DecompressMemoryRegionNV> const & decompressMemoryRegions,
27016 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27017 {
27018 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27019 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27020 VULKAN_HPP_ASSERT( d.vkCmdDecompressMemoryNV && "Function <vkCmdDecompressMemoryNV> requires <VK_NV_memory_decompression>" );
27021 # endif
27022
27023 d.vkCmdDecompressMemoryNV(
27024 m_commandBuffer, decompressMemoryRegions.size(), reinterpret_cast<const VkDecompressMemoryRegionNV *>( decompressMemoryRegions.data() ) );
27025 }
27026 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27027
27028 // wrapper function for command vkCmdDecompressMemoryIndirectCountNV, see
27029 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryIndirectCountNV.html
27030 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecompressMemoryIndirectCountNV ), bool>::type>
27031 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryIndirectCountNV( DeviceAddress indirectCommandsAddress,
27032 DeviceAddress indirectCommandsCountAddress,
27033 uint32_t stride,
27034 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27035 {
27036 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27037 d.vkCmdDecompressMemoryIndirectCountNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
27038 static_cast<VkDeviceAddress>( indirectCommandsAddress ),
27039 static_cast<VkDeviceAddress>( indirectCommandsCountAddress ),
27040 stride );
27041 }
27042
27043 //=== VK_NV_device_generated_commands_compute ===
27044
27045 // wrapper function for command vkGetPipelineIndirectMemoryRequirementsNV, see
27046 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectMemoryRequirementsNV.html
27047 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineIndirectMemoryRequirementsNV ), bool>::type>
27048 VULKAN_HPP_INLINE void Device::getPipelineIndirectMemoryRequirementsNV( const ComputePipelineCreateInfo * pCreateInfo,
27049 MemoryRequirements2 * pMemoryRequirements,
27050 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27051 {
27052 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27053 d.vkGetPipelineIndirectMemoryRequirementsNV( static_cast<VkDevice>( m_device ),
27054 reinterpret_cast<const VkComputePipelineCreateInfo *>( pCreateInfo ),
27055 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
27056 }
27057
27058 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27059 // wrapper function for command vkGetPipelineIndirectMemoryRequirementsNV, see
27060 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectMemoryRequirementsNV.html
27061 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineIndirectMemoryRequirementsNV ), bool>::type>
27062 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getPipelineIndirectMemoryRequirementsNV( const ComputePipelineCreateInfo & createInfo,
27063 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27064 {
27065 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27066 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27067 VULKAN_HPP_ASSERT( d.vkGetPipelineIndirectMemoryRequirementsNV &&
27068 "Function <vkGetPipelineIndirectMemoryRequirementsNV> requires <VK_NV_device_generated_commands_compute>" );
27069 # endif
27070
27071 MemoryRequirements2 memoryRequirements;
27072 d.vkGetPipelineIndirectMemoryRequirementsNV(
27073 m_device, reinterpret_cast<const VkComputePipelineCreateInfo *>( &createInfo ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27074
27075 return memoryRequirements;
27076 }
27077
27078 // wrapper function for command vkGetPipelineIndirectMemoryRequirementsNV, see
27079 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectMemoryRequirementsNV.html
27080 template <typename X,
27081 typename Y,
27082 typename... Z,
27083 typename Dispatch,
27084 typename std::enable_if<IS_DISPATCHED( vkGetPipelineIndirectMemoryRequirementsNV ), bool>::type>
27085 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
27086 Device::getPipelineIndirectMemoryRequirementsNV( const ComputePipelineCreateInfo & createInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27087 {
27088 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27089 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27090 VULKAN_HPP_ASSERT( d.vkGetPipelineIndirectMemoryRequirementsNV &&
27091 "Function <vkGetPipelineIndirectMemoryRequirementsNV> requires <VK_NV_device_generated_commands_compute>" );
27092 # endif
27093
27094 StructureChain<X, Y, Z...> structureChain;
27095 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
27096 d.vkGetPipelineIndirectMemoryRequirementsNV(
27097 m_device, reinterpret_cast<const VkComputePipelineCreateInfo *>( &createInfo ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27098
27099 return structureChain;
27100 }
27101 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27102
27103 // wrapper function for command vkCmdUpdatePipelineIndirectBufferNV, see
27104 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdUpdatePipelineIndirectBufferNV.html
27105 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdUpdatePipelineIndirectBufferNV ), bool>::type>
27106 VULKAN_HPP_INLINE void
27107 CommandBuffer::updatePipelineIndirectBufferNV( PipelineBindPoint pipelineBindPoint, Pipeline pipeline, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27108 {
27109 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27110 d.vkCmdUpdatePipelineIndirectBufferNV(
27111 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPipelineBindPoint>( pipelineBindPoint ), static_cast<VkPipeline>( pipeline ) );
27112 }
27113
27114 // wrapper function for command vkGetPipelineIndirectDeviceAddressNV, see
27115 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectDeviceAddressNV.html
27116 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineIndirectDeviceAddressNV ), bool>::type>
27117 VULKAN_HPP_INLINE DeviceAddress Device::getPipelineIndirectAddressNV( const PipelineIndirectDeviceAddressInfoNV * pInfo,
27118 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27119 {
27120 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27121 return static_cast<DeviceAddress>(
27122 d.vkGetPipelineIndirectDeviceAddressNV( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkPipelineIndirectDeviceAddressInfoNV *>( pInfo ) ) );
27123 }
27124
27125 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27126 // wrapper function for command vkGetPipelineIndirectDeviceAddressNV, see
27127 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineIndirectDeviceAddressNV.html
27128 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineIndirectDeviceAddressNV ), bool>::type>
27129 VULKAN_HPP_INLINE DeviceAddress Device::getPipelineIndirectAddressNV( const PipelineIndirectDeviceAddressInfoNV & info,
27130 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27131 {
27132 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27133 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27134 VULKAN_HPP_ASSERT( d.vkGetPipelineIndirectDeviceAddressNV &&
27135 "Function <vkGetPipelineIndirectDeviceAddressNV> requires <VK_NV_device_generated_commands_compute>" );
27136 # endif
27137
27138 VkDeviceAddress result = d.vkGetPipelineIndirectDeviceAddressNV( m_device, reinterpret_cast<const VkPipelineIndirectDeviceAddressInfoNV *>( &info ) );
27139
27140 return static_cast<DeviceAddress>( result );
27141 }
27142 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27143
27144 #if defined( VK_USE_PLATFORM_OHOS )
27145 //=== VK_OHOS_external_memory ===
27146
27147 // wrapper function for command vkGetNativeBufferPropertiesOHOS, see
27148 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html
27149 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetNativeBufferPropertiesOHOS ), bool>::type>
27150 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getNativeBufferPropertiesOHOS( const struct OH_NativeBuffer * buffer,
27151 NativeBufferPropertiesOHOS * pProperties,
27152 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27153 {
27154 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27155 return static_cast<Result>(
27156 d.vkGetNativeBufferPropertiesOHOS( static_cast<VkDevice>( m_device ), buffer, reinterpret_cast<VkNativeBufferPropertiesOHOS *>( pProperties ) ) );
27157 }
27158
27159 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27160 // wrapper function for command vkGetNativeBufferPropertiesOHOS, see
27161 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html
27162 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetNativeBufferPropertiesOHOS ), bool>::type>
27163 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<NativeBufferPropertiesOHOS>::type
27164 Device::getNativeBufferPropertiesOHOS( const struct OH_NativeBuffer & buffer, Dispatch const & d ) const
27165 {
27166 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27167 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27168 VULKAN_HPP_ASSERT( d.vkGetNativeBufferPropertiesOHOS && "Function <vkGetNativeBufferPropertiesOHOS> requires <VK_OHOS_external_memory>" );
27169 # endif
27170
27171 NativeBufferPropertiesOHOS properties;
27172 Result result =
27173 static_cast<Result>( d.vkGetNativeBufferPropertiesOHOS( m_device, &buffer, reinterpret_cast<VkNativeBufferPropertiesOHOS *>( &properties ) ) );
27174 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getNativeBufferPropertiesOHOS" );
27175
27176 return detail::createResultValueType( result, std::move( properties ) );
27177 }
27178
27179 // wrapper function for command vkGetNativeBufferPropertiesOHOS, see
27180 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetNativeBufferPropertiesOHOS.html
27181 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetNativeBufferPropertiesOHOS ), bool>::type>
27182 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
27183 Device::getNativeBufferPropertiesOHOS( const struct OH_NativeBuffer & buffer, Dispatch const & d ) const
27184 {
27185 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27186 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27187 VULKAN_HPP_ASSERT( d.vkGetNativeBufferPropertiesOHOS && "Function <vkGetNativeBufferPropertiesOHOS> requires <VK_OHOS_external_memory>" );
27188 # endif
27189
27190 StructureChain<X, Y, Z...> structureChain;
27191 NativeBufferPropertiesOHOS & properties = structureChain.template get<NativeBufferPropertiesOHOS>();
27192 Result result =
27193 static_cast<Result>( d.vkGetNativeBufferPropertiesOHOS( m_device, &buffer, reinterpret_cast<VkNativeBufferPropertiesOHOS *>( &properties ) ) );
27194 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getNativeBufferPropertiesOHOS" );
27195
27196 return detail::createResultValueType( result, std::move( structureChain ) );
27197 }
27198 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27199
27200 // wrapper function for command vkGetMemoryNativeBufferOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryNativeBufferOHOS.html
27201 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryNativeBufferOHOS ), bool>::type>
27202 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryNativeBufferOHOS( const MemoryGetNativeBufferInfoOHOS * pInfo,
27203 struct OH_NativeBuffer ** pBuffer,
27204 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27205 {
27206 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27207 return static_cast<Result>(
27208 d.vkGetMemoryNativeBufferOHOS( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryGetNativeBufferInfoOHOS *>( pInfo ), pBuffer ) );
27209 }
27210
27211 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27212 // wrapper function for command vkGetMemoryNativeBufferOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryNativeBufferOHOS.html
27213 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryNativeBufferOHOS ), bool>::type>
27214 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<struct OH_NativeBuffer *>::type
27215 Device::getMemoryNativeBufferOHOS( const MemoryGetNativeBufferInfoOHOS & info, Dispatch const & d ) const
27216 {
27217 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27218 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27219 VULKAN_HPP_ASSERT( d.vkGetMemoryNativeBufferOHOS && "Function <vkGetMemoryNativeBufferOHOS> requires <VK_OHOS_external_memory>" );
27220 # endif
27221
27222 struct OH_NativeBuffer * buffer;
27223 Result result =
27224 static_cast<Result>( d.vkGetMemoryNativeBufferOHOS( m_device, reinterpret_cast<const VkMemoryGetNativeBufferInfoOHOS *>( &info ), &buffer ) );
27225 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryNativeBufferOHOS" );
27226
27227 return detail::createResultValueType( result, std::move( buffer ) );
27228 }
27229 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27230 #endif /*VK_USE_PLATFORM_OHOS*/
27231
27232 //=== VK_EXT_extended_dynamic_state3 ===
27233
27234 // wrapper function for command vkCmdSetDepthClampEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClampEnableEXT.html
27235 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthClampEnableEXT ), bool>::type>
27236 VULKAN_HPP_INLINE void CommandBuffer::setDepthClampEnableEXT( Bool32 depthClampEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27237 {
27238 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27239 d.vkCmdSetDepthClampEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthClampEnable ) );
27240 }
27241
27242 // wrapper function for command vkCmdSetPolygonModeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetPolygonModeEXT.html
27243 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetPolygonModeEXT ), bool>::type>
27244 VULKAN_HPP_INLINE void CommandBuffer::setPolygonModeEXT( PolygonMode polygonMode, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27245 {
27246 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27247 d.vkCmdSetPolygonModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkPolygonMode>( polygonMode ) );
27248 }
27249
27250 // wrapper function for command vkCmdSetRasterizationSamplesEXT, see
27251 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizationSamplesEXT.html
27252 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRasterizationSamplesEXT ), bool>::type>
27253 VULKAN_HPP_INLINE void CommandBuffer::setRasterizationSamplesEXT( SampleCountFlagBits rasterizationSamples, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27254 {
27255 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27256 d.vkCmdSetRasterizationSamplesEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkSampleCountFlagBits>( rasterizationSamples ) );
27257 }
27258
27259 // wrapper function for command vkCmdSetSampleMaskEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleMaskEXT.html
27260 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetSampleMaskEXT ), bool>::type>
27261 VULKAN_HPP_INLINE void
27262 CommandBuffer::setSampleMaskEXT( SampleCountFlagBits samples, const SampleMask * pSampleMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27263 {
27264 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27265 d.vkCmdSetSampleMaskEXT(
27266 static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkSampleCountFlagBits>( samples ), reinterpret_cast<const VkSampleMask *>( pSampleMask ) );
27267 }
27268
27269 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27270 // wrapper function for command vkCmdSetSampleMaskEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleMaskEXT.html
27271 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetSampleMaskEXT ), bool>::type>
27272 VULKAN_HPP_INLINE void CommandBuffer::setSampleMaskEXT( SampleCountFlagBits samples,
27273 ArrayProxy<const SampleMask> const & sampleMask,
27274 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
27275 {
27276 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27277 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27278 VULKAN_HPP_ASSERT( d.vkCmdSetSampleMaskEXT && "Function <vkCmdSetSampleMaskEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27279 # endif
27280 # ifdef VULKAN_HPP_NO_EXCEPTIONS
27281 VULKAN_HPP_ASSERT( sampleMask.size() == ( static_cast<uint32_t>( samples ) + 31 ) / 32 );
27282 # else
27283 if ( sampleMask.size() != ( static_cast<uint32_t>( samples ) + 31 ) / 32 )
27284 {
27285 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::setSampleMaskEXT: sampleMask.size() != ( static_cast<uint32_t>( samples ) + 31 ) / 32" );
27286 }
27287 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
27288
27289 d.vkCmdSetSampleMaskEXT( m_commandBuffer, static_cast<VkSampleCountFlagBits>( samples ), reinterpret_cast<const VkSampleMask *>( sampleMask.data() ) );
27290 }
27291 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27292
27293 // wrapper function for command vkCmdSetAlphaToCoverageEnableEXT, see
27294 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetAlphaToCoverageEnableEXT.html
27295 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetAlphaToCoverageEnableEXT ), bool>::type>
27296 VULKAN_HPP_INLINE void CommandBuffer::setAlphaToCoverageEnableEXT( Bool32 alphaToCoverageEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27297 {
27298 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27299 d.vkCmdSetAlphaToCoverageEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( alphaToCoverageEnable ) );
27300 }
27301
27302 // wrapper function for command vkCmdSetAlphaToOneEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetAlphaToOneEnableEXT.html
27303 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetAlphaToOneEnableEXT ), bool>::type>
27304 VULKAN_HPP_INLINE void CommandBuffer::setAlphaToOneEnableEXT( Bool32 alphaToOneEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27305 {
27306 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27307 d.vkCmdSetAlphaToOneEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( alphaToOneEnable ) );
27308 }
27309
27310 // wrapper function for command vkCmdSetLogicOpEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLogicOpEnableEXT.html
27311 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLogicOpEnableEXT ), bool>::type>
27312 VULKAN_HPP_INLINE void CommandBuffer::setLogicOpEnableEXT( Bool32 logicOpEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27313 {
27314 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27315 d.vkCmdSetLogicOpEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( logicOpEnable ) );
27316 }
27317
27318 // wrapper function for command vkCmdSetColorBlendEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendEnableEXT.html
27319 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorBlendEnableEXT ), bool>::type>
27320 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendEnableEXT( uint32_t firstAttachment,
27321 uint32_t attachmentCount,
27322 const Bool32 * pColorBlendEnables,
27323 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27324 {
27325 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27326 d.vkCmdSetColorBlendEnableEXT(
27327 static_cast<VkCommandBuffer>( m_commandBuffer ), firstAttachment, attachmentCount, reinterpret_cast<const VkBool32 *>( pColorBlendEnables ) );
27328 }
27329
27330 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27331 // wrapper function for command vkCmdSetColorBlendEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendEnableEXT.html
27332 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorBlendEnableEXT ), bool>::type>
27333 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendEnableEXT( uint32_t firstAttachment,
27334 ArrayProxy<const Bool32> const & colorBlendEnables,
27335 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27336 {
27337 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27338 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27339 VULKAN_HPP_ASSERT( d.vkCmdSetColorBlendEnableEXT &&
27340 "Function <vkCmdSetColorBlendEnableEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27341 # endif
27342
27343 d.vkCmdSetColorBlendEnableEXT( m_commandBuffer, firstAttachment, colorBlendEnables.size(), reinterpret_cast<const VkBool32 *>( colorBlendEnables.data() ) );
27344 }
27345 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27346
27347 // wrapper function for command vkCmdSetColorBlendEquationEXT, see
27348 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendEquationEXT.html
27349 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorBlendEquationEXT ), bool>::type>
27350 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendEquationEXT( uint32_t firstAttachment,
27351 uint32_t attachmentCount,
27352 const ColorBlendEquationEXT * pColorBlendEquations,
27353 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27354 {
27355 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27356 d.vkCmdSetColorBlendEquationEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27357 firstAttachment,
27358 attachmentCount,
27359 reinterpret_cast<const VkColorBlendEquationEXT *>( pColorBlendEquations ) );
27360 }
27361
27362 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27363 // wrapper function for command vkCmdSetColorBlendEquationEXT, see
27364 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendEquationEXT.html
27365 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorBlendEquationEXT ), bool>::type>
27366 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendEquationEXT( uint32_t firstAttachment,
27367 ArrayProxy<const ColorBlendEquationEXT> const & colorBlendEquations,
27368 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27369 {
27370 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27371 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27372 VULKAN_HPP_ASSERT( d.vkCmdSetColorBlendEquationEXT &&
27373 "Function <vkCmdSetColorBlendEquationEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27374 # endif
27375
27376 d.vkCmdSetColorBlendEquationEXT(
27377 m_commandBuffer, firstAttachment, colorBlendEquations.size(), reinterpret_cast<const VkColorBlendEquationEXT *>( colorBlendEquations.data() ) );
27378 }
27379 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27380
27381 // wrapper function for command vkCmdSetColorWriteMaskEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorWriteMaskEXT.html
27382 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorWriteMaskEXT ), bool>::type>
27383 VULKAN_HPP_INLINE void CommandBuffer::setColorWriteMaskEXT( uint32_t firstAttachment,
27384 uint32_t attachmentCount,
27385 const ColorComponentFlags * pColorWriteMasks,
27386 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27387 {
27388 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27389 d.vkCmdSetColorWriteMaskEXT(
27390 static_cast<VkCommandBuffer>( m_commandBuffer ), firstAttachment, attachmentCount, reinterpret_cast<const VkColorComponentFlags *>( pColorWriteMasks ) );
27391 }
27392
27393 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27394 // wrapper function for command vkCmdSetColorWriteMaskEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorWriteMaskEXT.html
27395 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorWriteMaskEXT ), bool>::type>
27396 VULKAN_HPP_INLINE void CommandBuffer::setColorWriteMaskEXT( uint32_t firstAttachment,
27397 ArrayProxy<const ColorComponentFlags> const & colorWriteMasks,
27398 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27399 {
27400 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27401 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27402 VULKAN_HPP_ASSERT( d.vkCmdSetColorWriteMaskEXT &&
27403 "Function <vkCmdSetColorWriteMaskEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27404 # endif
27405
27406 d.vkCmdSetColorWriteMaskEXT(
27407 m_commandBuffer, firstAttachment, colorWriteMasks.size(), reinterpret_cast<const VkColorComponentFlags *>( colorWriteMasks.data() ) );
27408 }
27409 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27410
27411 // wrapper function for command vkCmdSetTessellationDomainOriginEXT, see
27412 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetTessellationDomainOriginEXT.html
27413 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetTessellationDomainOriginEXT ), bool>::type>
27414 VULKAN_HPP_INLINE void CommandBuffer::setTessellationDomainOriginEXT( TessellationDomainOrigin domainOrigin, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27415 {
27416 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27417 d.vkCmdSetTessellationDomainOriginEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkTessellationDomainOrigin>( domainOrigin ) );
27418 }
27419
27420 // wrapper function for command vkCmdSetRasterizationStreamEXT, see
27421 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRasterizationStreamEXT.html
27422 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRasterizationStreamEXT ), bool>::type>
27423 VULKAN_HPP_INLINE void CommandBuffer::setRasterizationStreamEXT( uint32_t rasterizationStream, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27424 {
27425 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27426 d.vkCmdSetRasterizationStreamEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), rasterizationStream );
27427 }
27428
27429 // wrapper function for command vkCmdSetConservativeRasterizationModeEXT, see
27430 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetConservativeRasterizationModeEXT.html
27431 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetConservativeRasterizationModeEXT ), bool>::type>
27432 VULKAN_HPP_INLINE void CommandBuffer::setConservativeRasterizationModeEXT( ConservativeRasterizationModeEXT conservativeRasterizationMode,
27433 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27434 {
27435 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27436 d.vkCmdSetConservativeRasterizationModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27437 static_cast<VkConservativeRasterizationModeEXT>( conservativeRasterizationMode ) );
27438 }
27439
27440 // wrapper function for command vkCmdSetExtraPrimitiveOverestimationSizeEXT, see
27441 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetExtraPrimitiveOverestimationSizeEXT.html
27442 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetExtraPrimitiveOverestimationSizeEXT ), bool>::type>
27443 VULKAN_HPP_INLINE void CommandBuffer::setExtraPrimitiveOverestimationSizeEXT( float extraPrimitiveOverestimationSize,
27444 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27445 {
27446 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27447 d.vkCmdSetExtraPrimitiveOverestimationSizeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), extraPrimitiveOverestimationSize );
27448 }
27449
27450 // wrapper function for command vkCmdSetDepthClipEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClipEnableEXT.html
27451 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthClipEnableEXT ), bool>::type>
27452 VULKAN_HPP_INLINE void CommandBuffer::setDepthClipEnableEXT( Bool32 depthClipEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27453 {
27454 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27455 d.vkCmdSetDepthClipEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( depthClipEnable ) );
27456 }
27457
27458 // wrapper function for command vkCmdSetSampleLocationsEnableEXT, see
27459 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetSampleLocationsEnableEXT.html
27460 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetSampleLocationsEnableEXT ), bool>::type>
27461 VULKAN_HPP_INLINE void CommandBuffer::setSampleLocationsEnableEXT( Bool32 sampleLocationsEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27462 {
27463 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27464 d.vkCmdSetSampleLocationsEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( sampleLocationsEnable ) );
27465 }
27466
27467 // wrapper function for command vkCmdSetColorBlendAdvancedEXT, see
27468 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendAdvancedEXT.html
27469 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorBlendAdvancedEXT ), bool>::type>
27470 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendAdvancedEXT( uint32_t firstAttachment,
27471 uint32_t attachmentCount,
27472 const ColorBlendAdvancedEXT * pColorBlendAdvanced,
27473 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27474 {
27475 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27476 d.vkCmdSetColorBlendAdvancedEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
27477 firstAttachment,
27478 attachmentCount,
27479 reinterpret_cast<const VkColorBlendAdvancedEXT *>( pColorBlendAdvanced ) );
27480 }
27481
27482 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27483 // wrapper function for command vkCmdSetColorBlendAdvancedEXT, see
27484 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetColorBlendAdvancedEXT.html
27485 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetColorBlendAdvancedEXT ), bool>::type>
27486 VULKAN_HPP_INLINE void CommandBuffer::setColorBlendAdvancedEXT( uint32_t firstAttachment,
27487 ArrayProxy<const ColorBlendAdvancedEXT> const & colorBlendAdvanced,
27488 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27489 {
27490 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27491 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27492 VULKAN_HPP_ASSERT( d.vkCmdSetColorBlendAdvancedEXT &&
27493 "Function <vkCmdSetColorBlendAdvancedEXT> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27494 # endif
27495
27496 d.vkCmdSetColorBlendAdvancedEXT(
27497 m_commandBuffer, firstAttachment, colorBlendAdvanced.size(), reinterpret_cast<const VkColorBlendAdvancedEXT *>( colorBlendAdvanced.data() ) );
27498 }
27499 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27500
27501 // wrapper function for command vkCmdSetProvokingVertexModeEXT, see
27502 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetProvokingVertexModeEXT.html
27503 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetProvokingVertexModeEXT ), bool>::type>
27504 VULKAN_HPP_INLINE void CommandBuffer::setProvokingVertexModeEXT( ProvokingVertexModeEXT provokingVertexMode, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27505 {
27506 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27507 d.vkCmdSetProvokingVertexModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkProvokingVertexModeEXT>( provokingVertexMode ) );
27508 }
27509
27510 // wrapper function for command vkCmdSetLineRasterizationModeEXT, see
27511 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineRasterizationModeEXT.html
27512 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLineRasterizationModeEXT ), bool>::type>
27513 VULKAN_HPP_INLINE void CommandBuffer::setLineRasterizationModeEXT( LineRasterizationModeEXT lineRasterizationMode,
27514 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27515 {
27516 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27517 d.vkCmdSetLineRasterizationModeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkLineRasterizationModeEXT>( lineRasterizationMode ) );
27518 }
27519
27520 // wrapper function for command vkCmdSetLineStippleEnableEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStippleEnableEXT.html
27521 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLineStippleEnableEXT ), bool>::type>
27522 VULKAN_HPP_INLINE void CommandBuffer::setLineStippleEnableEXT( Bool32 stippledLineEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27523 {
27524 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27525 d.vkCmdSetLineStippleEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( stippledLineEnable ) );
27526 }
27527
27528 // wrapper function for command vkCmdSetDepthClipNegativeOneToOneEXT, see
27529 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClipNegativeOneToOneEXT.html
27530 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthClipNegativeOneToOneEXT ), bool>::type>
27531 VULKAN_HPP_INLINE void CommandBuffer::setDepthClipNegativeOneToOneEXT( Bool32 negativeOneToOne, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27532 {
27533 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27534 d.vkCmdSetDepthClipNegativeOneToOneEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( negativeOneToOne ) );
27535 }
27536
27537 // wrapper function for command vkCmdSetViewportWScalingEnableNV, see
27538 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportWScalingEnableNV.html
27539 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportWScalingEnableNV ), bool>::type>
27540 VULKAN_HPP_INLINE void CommandBuffer::setViewportWScalingEnableNV( Bool32 viewportWScalingEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27541 {
27542 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27543 d.vkCmdSetViewportWScalingEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( viewportWScalingEnable ) );
27544 }
27545
27546 // wrapper function for command vkCmdSetViewportSwizzleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportSwizzleNV.html
27547 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportSwizzleNV ), bool>::type>
27548 VULKAN_HPP_INLINE void CommandBuffer::setViewportSwizzleNV( uint32_t firstViewport,
27549 uint32_t viewportCount,
27550 const ViewportSwizzleNV * pViewportSwizzles,
27551 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27552 {
27553 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27554 d.vkCmdSetViewportSwizzleNV(
27555 static_cast<VkCommandBuffer>( m_commandBuffer ), firstViewport, viewportCount, reinterpret_cast<const VkViewportSwizzleNV *>( pViewportSwizzles ) );
27556 }
27557
27558 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27559 // wrapper function for command vkCmdSetViewportSwizzleNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetViewportSwizzleNV.html
27560 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetViewportSwizzleNV ), bool>::type>
27561 VULKAN_HPP_INLINE void CommandBuffer::setViewportSwizzleNV( uint32_t firstViewport,
27562 ArrayProxy<const ViewportSwizzleNV> const & viewportSwizzles,
27563 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27564 {
27565 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27566 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27567 VULKAN_HPP_ASSERT( d.vkCmdSetViewportSwizzleNV &&
27568 "Function <vkCmdSetViewportSwizzleNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27569 # endif
27570
27571 d.vkCmdSetViewportSwizzleNV(
27572 m_commandBuffer, firstViewport, viewportSwizzles.size(), reinterpret_cast<const VkViewportSwizzleNV *>( viewportSwizzles.data() ) );
27573 }
27574 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27575
27576 // wrapper function for command vkCmdSetCoverageToColorEnableNV, see
27577 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageToColorEnableNV.html
27578 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageToColorEnableNV ), bool>::type>
27579 VULKAN_HPP_INLINE void CommandBuffer::setCoverageToColorEnableNV( Bool32 coverageToColorEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27580 {
27581 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27582 d.vkCmdSetCoverageToColorEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( coverageToColorEnable ) );
27583 }
27584
27585 // wrapper function for command vkCmdSetCoverageToColorLocationNV, see
27586 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageToColorLocationNV.html
27587 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageToColorLocationNV ), bool>::type>
27588 VULKAN_HPP_INLINE void CommandBuffer::setCoverageToColorLocationNV( uint32_t coverageToColorLocation, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27589 {
27590 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27591 d.vkCmdSetCoverageToColorLocationNV( static_cast<VkCommandBuffer>( m_commandBuffer ), coverageToColorLocation );
27592 }
27593
27594 // wrapper function for command vkCmdSetCoverageModulationModeNV, see
27595 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationModeNV.html
27596 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageModulationModeNV ), bool>::type>
27597 VULKAN_HPP_INLINE void CommandBuffer::setCoverageModulationModeNV( CoverageModulationModeNV coverageModulationMode,
27598 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27599 {
27600 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27601 d.vkCmdSetCoverageModulationModeNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCoverageModulationModeNV>( coverageModulationMode ) );
27602 }
27603
27604 // wrapper function for command vkCmdSetCoverageModulationTableEnableNV, see
27605 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationTableEnableNV.html
27606 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageModulationTableEnableNV ), bool>::type>
27607 VULKAN_HPP_INLINE void CommandBuffer::setCoverageModulationTableEnableNV( Bool32 coverageModulationTableEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27608 {
27609 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27610 d.vkCmdSetCoverageModulationTableEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( coverageModulationTableEnable ) );
27611 }
27612
27613 // wrapper function for command vkCmdSetCoverageModulationTableNV, see
27614 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationTableNV.html
27615 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageModulationTableNV ), bool>::type>
27616 VULKAN_HPP_INLINE void CommandBuffer::setCoverageModulationTableNV( uint32_t coverageModulationTableCount,
27617 const float * pCoverageModulationTable,
27618 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27619 {
27620 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27621 d.vkCmdSetCoverageModulationTableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), coverageModulationTableCount, pCoverageModulationTable );
27622 }
27623
27624 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27625 // wrapper function for command vkCmdSetCoverageModulationTableNV, see
27626 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageModulationTableNV.html
27627 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageModulationTableNV ), bool>::type>
27628 VULKAN_HPP_INLINE void CommandBuffer::setCoverageModulationTableNV( ArrayProxy<const float> const & coverageModulationTable,
27629 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27630 {
27631 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27632 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27633 VULKAN_HPP_ASSERT( d.vkCmdSetCoverageModulationTableNV &&
27634 "Function <vkCmdSetCoverageModulationTableNV> requires <VK_EXT_extended_dynamic_state3> or <VK_EXT_shader_object>" );
27635 # endif
27636
27637 d.vkCmdSetCoverageModulationTableNV( m_commandBuffer, coverageModulationTable.size(), coverageModulationTable.data() );
27638 }
27639 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27640
27641 // wrapper function for command vkCmdSetShadingRateImageEnableNV, see
27642 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetShadingRateImageEnableNV.html
27643 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetShadingRateImageEnableNV ), bool>::type>
27644 VULKAN_HPP_INLINE void CommandBuffer::setShadingRateImageEnableNV( Bool32 shadingRateImageEnable, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27645 {
27646 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27647 d.vkCmdSetShadingRateImageEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( shadingRateImageEnable ) );
27648 }
27649
27650 // wrapper function for command vkCmdSetRepresentativeFragmentTestEnableNV, see
27651 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetRepresentativeFragmentTestEnableNV.html
27652 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetRepresentativeFragmentTestEnableNV ), bool>::type>
27653 VULKAN_HPP_INLINE void CommandBuffer::setRepresentativeFragmentTestEnableNV( Bool32 representativeFragmentTestEnable,
27654 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27655 {
27656 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27657 d.vkCmdSetRepresentativeFragmentTestEnableNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkBool32>( representativeFragmentTestEnable ) );
27658 }
27659
27660 // wrapper function for command vkCmdSetCoverageReductionModeNV, see
27661 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetCoverageReductionModeNV.html
27662 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetCoverageReductionModeNV ), bool>::type>
27663 VULKAN_HPP_INLINE void CommandBuffer::setCoverageReductionModeNV( CoverageReductionModeNV coverageReductionMode,
27664 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27665 {
27666 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27667 d.vkCmdSetCoverageReductionModeNV( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkCoverageReductionModeNV>( coverageReductionMode ) );
27668 }
27669
27670 //=== VK_ARM_tensors ===
27671
27672 // wrapper function for command vkCreateTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorARM.html
27673 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateTensorARM ), bool>::type>
27674 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createTensorARM( const TensorCreateInfoARM * pCreateInfo,
27675 const AllocationCallbacks * pAllocator,
27676 TensorARM * pTensor,
27677 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27678 {
27679 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27680 return static_cast<Result>( d.vkCreateTensorARM( static_cast<VkDevice>( m_device ),
27681 reinterpret_cast<const VkTensorCreateInfoARM *>( pCreateInfo ),
27682 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
27683 reinterpret_cast<VkTensorARM *>( pTensor ) ) );
27684 }
27685
27686 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27687 // wrapper function for command vkCreateTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorARM.html
27688 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateTensorARM ), bool>::type>
27689 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<TensorARM>::type
27690 Device::createTensorARM( const TensorCreateInfoARM & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
27691 {
27692 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27693 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27694 VULKAN_HPP_ASSERT( d.vkCreateTensorARM && "Function <vkCreateTensorARM> requires <VK_ARM_tensors>" );
27695 # endif
27696
27697 TensorARM tensor;
27698 Result result = static_cast<Result>( d.vkCreateTensorARM( m_device,
27699 reinterpret_cast<const VkTensorCreateInfoARM *>( &createInfo ),
27700 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
27701 reinterpret_cast<VkTensorARM *>( &tensor ) ) );
27702 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createTensorARM" );
27703
27704 return detail::createResultValueType( result, std::move( tensor ) );
27705 }
27706
27707 # ifndef VULKAN_HPP_NO_SMART_HANDLE
27708 // wrapper function for command vkCreateTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorARM.html
27709 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateTensorARM ), bool>::type>
27710 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<TensorARM, Dispatch>>::type
27711 Device::createTensorARMUnique( const TensorCreateInfoARM & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
27712 {
27713 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27714 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27715 VULKAN_HPP_ASSERT( d.vkCreateTensorARM && "Function <vkCreateTensorARM> requires <VK_ARM_tensors>" );
27716 # endif
27717
27718 TensorARM tensor;
27719 Result result = static_cast<Result>( d.vkCreateTensorARM( m_device,
27720 reinterpret_cast<const VkTensorCreateInfoARM *>( &createInfo ),
27721 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
27722 reinterpret_cast<VkTensorARM *>( &tensor ) ) );
27723 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createTensorARMUnique" );
27724
27725 return detail::createResultValueType( result, UniqueHandle<TensorARM, Dispatch>( tensor, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
27726 }
27727 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
27728 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27729
27730 // wrapper function for command vkDestroyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorARM.html
27731 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorARM ), bool>::type>
27732 VULKAN_HPP_INLINE void Device::destroyTensorARM( TensorARM tensor, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27733 {
27734 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27735 d.vkDestroyTensorARM(
27736 static_cast<VkDevice>( m_device ), static_cast<VkTensorARM>( tensor ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
27737 }
27738
27739 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27740 // wrapper function for command vkDestroyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorARM.html
27741 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorARM ), bool>::type>
27742 VULKAN_HPP_INLINE void
27743 Device::destroyTensorARM( TensorARM tensor, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27744 {
27745 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27746 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27747 VULKAN_HPP_ASSERT( d.vkDestroyTensorARM && "Function <vkDestroyTensorARM> requires <VK_ARM_tensors>" );
27748 # endif
27749
27750 d.vkDestroyTensorARM( m_device, static_cast<VkTensorARM>( tensor ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
27751 }
27752 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27753
27754 // wrapper function for command vkDestroyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorARM.html
27755 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorARM ), bool>::type>
27756 VULKAN_HPP_INLINE void Device::destroy( TensorARM tensor, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27757 {
27758 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27759 d.vkDestroyTensorARM(
27760 static_cast<VkDevice>( m_device ), static_cast<VkTensorARM>( tensor ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
27761 }
27762
27763 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27764 // wrapper function for command vkDestroyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorARM.html
27765 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorARM ), bool>::type>
27766 VULKAN_HPP_INLINE void Device::destroy( TensorARM tensor, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27767 {
27768 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27769 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27770 VULKAN_HPP_ASSERT( d.vkDestroyTensorARM && "Function <vkDestroyTensorARM> requires <VK_ARM_tensors>" );
27771 # endif
27772
27773 d.vkDestroyTensorARM( m_device, static_cast<VkTensorARM>( tensor ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
27774 }
27775 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27776
27777 // wrapper function for command vkCreateTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorViewARM.html
27778 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateTensorViewARM ), bool>::type>
27779 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createTensorViewARM( const TensorViewCreateInfoARM * pCreateInfo,
27780 const AllocationCallbacks * pAllocator,
27781 TensorViewARM * pView,
27782 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27783 {
27784 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27785 return static_cast<Result>( d.vkCreateTensorViewARM( static_cast<VkDevice>( m_device ),
27786 reinterpret_cast<const VkTensorViewCreateInfoARM *>( pCreateInfo ),
27787 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
27788 reinterpret_cast<VkTensorViewARM *>( pView ) ) );
27789 }
27790
27791 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27792 // wrapper function for command vkCreateTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorViewARM.html
27793 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateTensorViewARM ), bool>::type>
27794 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<TensorViewARM>::type
27795 Device::createTensorViewARM( const TensorViewCreateInfoARM & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
27796 {
27797 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27798 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27799 VULKAN_HPP_ASSERT( d.vkCreateTensorViewARM && "Function <vkCreateTensorViewARM> requires <VK_ARM_tensors>" );
27800 # endif
27801
27802 TensorViewARM view;
27803 Result result = static_cast<Result>( d.vkCreateTensorViewARM( m_device,
27804 reinterpret_cast<const VkTensorViewCreateInfoARM *>( &createInfo ),
27805 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
27806 reinterpret_cast<VkTensorViewARM *>( &view ) ) );
27807 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createTensorViewARM" );
27808
27809 return detail::createResultValueType( result, std::move( view ) );
27810 }
27811
27812 # ifndef VULKAN_HPP_NO_SMART_HANDLE
27813 // wrapper function for command vkCreateTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateTensorViewARM.html
27814 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateTensorViewARM ), bool>::type>
27815 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<TensorViewARM, Dispatch>>::type
27816 Device::createTensorViewARMUnique( const TensorViewCreateInfoARM & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
27817 {
27818 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27819 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27820 VULKAN_HPP_ASSERT( d.vkCreateTensorViewARM && "Function <vkCreateTensorViewARM> requires <VK_ARM_tensors>" );
27821 # endif
27822
27823 TensorViewARM view;
27824 Result result = static_cast<Result>( d.vkCreateTensorViewARM( m_device,
27825 reinterpret_cast<const VkTensorViewCreateInfoARM *>( &createInfo ),
27826 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
27827 reinterpret_cast<VkTensorViewARM *>( &view ) ) );
27828 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createTensorViewARMUnique" );
27829
27830 return detail::createResultValueType( result,
27831 UniqueHandle<TensorViewARM, Dispatch>( view, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
27832 }
27833 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
27834 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27835
27836 // wrapper function for command vkDestroyTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorViewARM.html
27837 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorViewARM ), bool>::type>
27838 VULKAN_HPP_INLINE void
27839 Device::destroyTensorViewARM( TensorViewARM tensorView, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27840 {
27841 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27842 d.vkDestroyTensorViewARM(
27843 static_cast<VkDevice>( m_device ), static_cast<VkTensorViewARM>( tensorView ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
27844 }
27845
27846 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27847 // wrapper function for command vkDestroyTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorViewARM.html
27848 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorViewARM ), bool>::type>
27849 VULKAN_HPP_INLINE void
27850 Device::destroyTensorViewARM( TensorViewARM tensorView, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27851 {
27852 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27853 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27854 VULKAN_HPP_ASSERT( d.vkDestroyTensorViewARM && "Function <vkDestroyTensorViewARM> requires <VK_ARM_tensors>" );
27855 # endif
27856
27857 d.vkDestroyTensorViewARM( m_device, static_cast<VkTensorViewARM>( tensorView ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
27858 }
27859 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27860
27861 // wrapper function for command vkDestroyTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorViewARM.html
27862 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorViewARM ), bool>::type>
27863 VULKAN_HPP_INLINE void Device::destroy( TensorViewARM tensorView, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27864 {
27865 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27866 d.vkDestroyTensorViewARM(
27867 static_cast<VkDevice>( m_device ), static_cast<VkTensorViewARM>( tensorView ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
27868 }
27869
27870 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27871 // wrapper function for command vkDestroyTensorViewARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyTensorViewARM.html
27872 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyTensorViewARM ), bool>::type>
27873 VULKAN_HPP_INLINE void
27874 Device::destroy( TensorViewARM tensorView, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27875 {
27876 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27877 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27878 VULKAN_HPP_ASSERT( d.vkDestroyTensorViewARM && "Function <vkDestroyTensorViewARM> requires <VK_ARM_tensors>" );
27879 # endif
27880
27881 d.vkDestroyTensorViewARM( m_device, static_cast<VkTensorViewARM>( tensorView ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
27882 }
27883 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27884
27885 // wrapper function for command vkGetTensorMemoryRequirementsARM, see
27886 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorMemoryRequirementsARM.html
27887 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorMemoryRequirementsARM ), bool>::type>
27888 VULKAN_HPP_INLINE void Device::getTensorMemoryRequirementsARM( const TensorMemoryRequirementsInfoARM * pInfo,
27889 MemoryRequirements2 * pMemoryRequirements,
27890 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27891 {
27892 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27893 d.vkGetTensorMemoryRequirementsARM( static_cast<VkDevice>( m_device ),
27894 reinterpret_cast<const VkTensorMemoryRequirementsInfoARM *>( pInfo ),
27895 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
27896 }
27897
27898 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27899 // wrapper function for command vkGetTensorMemoryRequirementsARM, see
27900 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorMemoryRequirementsARM.html
27901 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorMemoryRequirementsARM ), bool>::type>
27902 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getTensorMemoryRequirementsARM( const TensorMemoryRequirementsInfoARM & info,
27903 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27904 {
27905 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27906 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27907 VULKAN_HPP_ASSERT( d.vkGetTensorMemoryRequirementsARM && "Function <vkGetTensorMemoryRequirementsARM> requires <VK_ARM_tensors>" );
27908 # endif
27909
27910 MemoryRequirements2 memoryRequirements;
27911 d.vkGetTensorMemoryRequirementsARM(
27912 m_device, reinterpret_cast<const VkTensorMemoryRequirementsInfoARM *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27913
27914 return memoryRequirements;
27915 }
27916
27917 // wrapper function for command vkGetTensorMemoryRequirementsARM, see
27918 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorMemoryRequirementsARM.html
27919 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorMemoryRequirementsARM ), bool>::type>
27920 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getTensorMemoryRequirementsARM( const TensorMemoryRequirementsInfoARM & info,
27921 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27922 {
27923 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27924 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27925 VULKAN_HPP_ASSERT( d.vkGetTensorMemoryRequirementsARM && "Function <vkGetTensorMemoryRequirementsARM> requires <VK_ARM_tensors>" );
27926 # endif
27927
27928 StructureChain<X, Y, Z...> structureChain;
27929 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
27930 d.vkGetTensorMemoryRequirementsARM(
27931 m_device, reinterpret_cast<const VkTensorMemoryRequirementsInfoARM *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27932
27933 return structureChain;
27934 }
27935 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27936
27937 // wrapper function for command vkBindTensorMemoryARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindTensorMemoryARM.html
27938 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindTensorMemoryARM ), bool>::type>
27939 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindTensorMemoryARM( uint32_t bindInfoCount,
27940 const BindTensorMemoryInfoARM * pBindInfos,
27941 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27942 {
27943 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27944 return static_cast<Result>(
27945 d.vkBindTensorMemoryARM( static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<const VkBindTensorMemoryInfoARM *>( pBindInfos ) ) );
27946 }
27947
27948 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27949 // wrapper function for command vkBindTensorMemoryARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindTensorMemoryARM.html
27950 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindTensorMemoryARM ), bool>::type>
27951 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
27952 Device::bindTensorMemoryARM( ArrayProxy<const BindTensorMemoryInfoARM> const & bindInfos, Dispatch const & d ) const
27953 {
27954 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27955 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27956 VULKAN_HPP_ASSERT( d.vkBindTensorMemoryARM && "Function <vkBindTensorMemoryARM> requires <VK_ARM_tensors>" );
27957 # endif
27958
27959 Result result =
27960 static_cast<Result>( d.vkBindTensorMemoryARM( m_device, bindInfos.size(), reinterpret_cast<const VkBindTensorMemoryInfoARM *>( bindInfos.data() ) ) );
27961 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindTensorMemoryARM" );
27962
27963 return detail::createResultValueType( result );
27964 }
27965 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
27966
27967 // wrapper function for command vkGetDeviceTensorMemoryRequirementsARM, see
27968 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceTensorMemoryRequirementsARM.html
27969 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceTensorMemoryRequirementsARM ), bool>::type>
27970 VULKAN_HPP_INLINE void Device::getTensorMemoryRequirementsARM( const DeviceTensorMemoryRequirementsARM * pInfo,
27971 MemoryRequirements2 * pMemoryRequirements,
27972 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27973 {
27974 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27975 d.vkGetDeviceTensorMemoryRequirementsARM( static_cast<VkDevice>( m_device ),
27976 reinterpret_cast<const VkDeviceTensorMemoryRequirementsARM *>( pInfo ),
27977 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
27978 }
27979
27980 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
27981 // wrapper function for command vkGetDeviceTensorMemoryRequirementsARM, see
27982 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceTensorMemoryRequirementsARM.html
27983 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceTensorMemoryRequirementsARM ), bool>::type>
27984 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getTensorMemoryRequirementsARM( const DeviceTensorMemoryRequirementsARM & info,
27985 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
27986 {
27987 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
27988 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
27989 VULKAN_HPP_ASSERT( d.vkGetDeviceTensorMemoryRequirementsARM && "Function <vkGetDeviceTensorMemoryRequirementsARM> requires <VK_ARM_tensors>" );
27990 # endif
27991
27992 MemoryRequirements2 memoryRequirements;
27993 d.vkGetDeviceTensorMemoryRequirementsARM(
27994 m_device, reinterpret_cast<const VkDeviceTensorMemoryRequirementsARM *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
27995
27996 return memoryRequirements;
27997 }
27998
27999 // wrapper function for command vkGetDeviceTensorMemoryRequirementsARM, see
28000 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceTensorMemoryRequirementsARM.html
28001 template <typename X,
28002 typename Y,
28003 typename... Z,
28004 typename Dispatch,
28005 typename std::enable_if<IS_DISPATCHED( vkGetDeviceTensorMemoryRequirementsARM ), bool>::type>
28006 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getTensorMemoryRequirementsARM( const DeviceTensorMemoryRequirementsARM & info,
28007 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28008 {
28009 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28010 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28011 VULKAN_HPP_ASSERT( d.vkGetDeviceTensorMemoryRequirementsARM && "Function <vkGetDeviceTensorMemoryRequirementsARM> requires <VK_ARM_tensors>" );
28012 # endif
28013
28014 StructureChain<X, Y, Z...> structureChain;
28015 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
28016 d.vkGetDeviceTensorMemoryRequirementsARM(
28017 m_device, reinterpret_cast<const VkDeviceTensorMemoryRequirementsARM *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
28018
28019 return structureChain;
28020 }
28021 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28022
28023 // wrapper function for command vkCmdCopyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyTensorARM.html
28024 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyTensorARM ), bool>::type>
28025 VULKAN_HPP_INLINE void CommandBuffer::copyTensorARM( const CopyTensorInfoARM * pCopyTensorInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28026 {
28027 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28028 d.vkCmdCopyTensorARM( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkCopyTensorInfoARM *>( pCopyTensorInfo ) );
28029 }
28030
28031 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28032 // wrapper function for command vkCmdCopyTensorARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyTensorARM.html
28033 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyTensorARM ), bool>::type>
28034 VULKAN_HPP_INLINE void CommandBuffer::copyTensorARM( const CopyTensorInfoARM & copyTensorInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28035 {
28036 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28037 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28038 VULKAN_HPP_ASSERT( d.vkCmdCopyTensorARM && "Function <vkCmdCopyTensorARM> requires <VK_ARM_tensors>" );
28039 # endif
28040
28041 d.vkCmdCopyTensorARM( m_commandBuffer, reinterpret_cast<const VkCopyTensorInfoARM *>( &copyTensorInfo ) );
28042 }
28043 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28044
28045 // wrapper function for command vkGetPhysicalDeviceExternalTensorPropertiesARM, see
28046 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalTensorPropertiesARM.html
28047 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalTensorPropertiesARM ), bool>::type>
28048 VULKAN_HPP_INLINE void PhysicalDevice::getExternalTensorPropertiesARM( const PhysicalDeviceExternalTensorInfoARM * pExternalTensorInfo,
28049 ExternalTensorPropertiesARM * pExternalTensorProperties,
28050 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28051 {
28052 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28053 d.vkGetPhysicalDeviceExternalTensorPropertiesARM( static_cast<VkPhysicalDevice>( m_physicalDevice ),
28054 reinterpret_cast<const VkPhysicalDeviceExternalTensorInfoARM *>( pExternalTensorInfo ),
28055 reinterpret_cast<VkExternalTensorPropertiesARM *>( pExternalTensorProperties ) );
28056 }
28057
28058 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28059 // wrapper function for command vkGetPhysicalDeviceExternalTensorPropertiesARM, see
28060 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceExternalTensorPropertiesARM.html
28061 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceExternalTensorPropertiesARM ), bool>::type>
28062 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ExternalTensorPropertiesARM PhysicalDevice::getExternalTensorPropertiesARM(
28063 const PhysicalDeviceExternalTensorInfoARM & externalTensorInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28064 {
28065 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28066 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28067 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceExternalTensorPropertiesARM &&
28068 "Function <vkGetPhysicalDeviceExternalTensorPropertiesARM> requires <VK_ARM_tensors>" );
28069 # endif
28070
28071 ExternalTensorPropertiesARM externalTensorProperties;
28072 d.vkGetPhysicalDeviceExternalTensorPropertiesARM( m_physicalDevice,
28073 reinterpret_cast<const VkPhysicalDeviceExternalTensorInfoARM *>( &externalTensorInfo ),
28074 reinterpret_cast<VkExternalTensorPropertiesARM *>( &externalTensorProperties ) );
28075
28076 return externalTensorProperties;
28077 }
28078 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28079
28080 // wrapper function for command vkGetTensorOpaqueCaptureDescriptorDataARM, see
28081 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDescriptorDataARM.html
28082 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorOpaqueCaptureDescriptorDataARM ), bool>::type>
28083 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getTensorOpaqueCaptureDescriptorDataARM( const TensorCaptureDescriptorDataInfoARM * pInfo,
28084 void * pData,
28085 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28086 {
28087 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28088 return static_cast<Result>( d.vkGetTensorOpaqueCaptureDescriptorDataARM(
28089 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkTensorCaptureDescriptorDataInfoARM *>( pInfo ), pData ) );
28090 }
28091
28092 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28093 // wrapper function for command vkGetTensorOpaqueCaptureDescriptorDataARM, see
28094 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorOpaqueCaptureDescriptorDataARM.html
28095 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorOpaqueCaptureDescriptorDataARM ), bool>::type>
28096 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
28097 Device::getTensorOpaqueCaptureDescriptorDataARM( const TensorCaptureDescriptorDataInfoARM & info, Dispatch const & d ) const
28098 {
28099 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28100 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28101 VULKAN_HPP_ASSERT( d.vkGetTensorOpaqueCaptureDescriptorDataARM && "Function <vkGetTensorOpaqueCaptureDescriptorDataARM> requires <VK_ARM_tensors>" );
28102 # endif
28103
28104 DataType data;
28105 Result result = static_cast<Result>(
28106 d.vkGetTensorOpaqueCaptureDescriptorDataARM( m_device, reinterpret_cast<const VkTensorCaptureDescriptorDataInfoARM *>( &info ), &data ) );
28107 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getTensorOpaqueCaptureDescriptorDataARM" );
28108
28109 return detail::createResultValueType( result, std::move( data ) );
28110 }
28111 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28112
28113 // wrapper function for command vkGetTensorViewOpaqueCaptureDescriptorDataARM, see
28114 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorViewOpaqueCaptureDescriptorDataARM.html
28115 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorViewOpaqueCaptureDescriptorDataARM ), bool>::type>
28116 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getTensorViewOpaqueCaptureDescriptorDataARM( const TensorViewCaptureDescriptorDataInfoARM * pInfo,
28117 void * pData,
28118 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28119 {
28120 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28121 return static_cast<Result>( d.vkGetTensorViewOpaqueCaptureDescriptorDataARM(
28122 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkTensorViewCaptureDescriptorDataInfoARM *>( pInfo ), pData ) );
28123 }
28124
28125 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28126 // wrapper function for command vkGetTensorViewOpaqueCaptureDescriptorDataARM, see
28127 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetTensorViewOpaqueCaptureDescriptorDataARM.html
28128 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetTensorViewOpaqueCaptureDescriptorDataARM ), bool>::type>
28129 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataType>::type
28130 Device::getTensorViewOpaqueCaptureDescriptorDataARM( const TensorViewCaptureDescriptorDataInfoARM & info, Dispatch const & d ) const
28131 {
28132 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28133 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28134 VULKAN_HPP_ASSERT( d.vkGetTensorViewOpaqueCaptureDescriptorDataARM &&
28135 "Function <vkGetTensorViewOpaqueCaptureDescriptorDataARM> requires <VK_ARM_tensors>" );
28136 # endif
28137
28138 DataType data;
28139 Result result = static_cast<Result>(
28140 d.vkGetTensorViewOpaqueCaptureDescriptorDataARM( m_device, reinterpret_cast<const VkTensorViewCaptureDescriptorDataInfoARM *>( &info ), &data ) );
28141 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getTensorViewOpaqueCaptureDescriptorDataARM" );
28142
28143 return detail::createResultValueType( result, std::move( data ) );
28144 }
28145 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28146
28147 //=== VK_EXT_shader_module_identifier ===
28148
28149 // wrapper function for command vkGetShaderModuleIdentifierEXT, see
28150 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderModuleIdentifierEXT.html
28151 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderModuleIdentifierEXT ), bool>::type>
28152 VULKAN_HPP_INLINE void
28153 Device::getShaderModuleIdentifierEXT( ShaderModule shaderModule, ShaderModuleIdentifierEXT * pIdentifier, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28154 {
28155 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28156 d.vkGetShaderModuleIdentifierEXT(
28157 static_cast<VkDevice>( m_device ), static_cast<VkShaderModule>( shaderModule ), reinterpret_cast<VkShaderModuleIdentifierEXT *>( pIdentifier ) );
28158 }
28159
28160 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28161 // wrapper function for command vkGetShaderModuleIdentifierEXT, see
28162 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderModuleIdentifierEXT.html
28163 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderModuleIdentifierEXT ), bool>::type>
28164 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ShaderModuleIdentifierEXT Device::getShaderModuleIdentifierEXT( ShaderModule shaderModule,
28165 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28166 {
28167 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28168 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28169 VULKAN_HPP_ASSERT( d.vkGetShaderModuleIdentifierEXT && "Function <vkGetShaderModuleIdentifierEXT> requires <VK_EXT_shader_module_identifier>" );
28170 # endif
28171
28172 ShaderModuleIdentifierEXT identifier;
28173 d.vkGetShaderModuleIdentifierEXT( m_device, static_cast<VkShaderModule>( shaderModule ), reinterpret_cast<VkShaderModuleIdentifierEXT *>( &identifier ) );
28174
28175 return identifier;
28176 }
28177 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28178
28179 // wrapper function for command vkGetShaderModuleCreateInfoIdentifierEXT, see
28180 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderModuleCreateInfoIdentifierEXT.html
28181 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderModuleCreateInfoIdentifierEXT ), bool>::type>
28182 VULKAN_HPP_INLINE void Device::getShaderModuleCreateInfoIdentifierEXT( const ShaderModuleCreateInfo * pCreateInfo,
28183 ShaderModuleIdentifierEXT * pIdentifier,
28184 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28185 {
28186 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28187 d.vkGetShaderModuleCreateInfoIdentifierEXT( static_cast<VkDevice>( m_device ),
28188 reinterpret_cast<const VkShaderModuleCreateInfo *>( pCreateInfo ),
28189 reinterpret_cast<VkShaderModuleIdentifierEXT *>( pIdentifier ) );
28190 }
28191
28192 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28193 // wrapper function for command vkGetShaderModuleCreateInfoIdentifierEXT, see
28194 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderModuleCreateInfoIdentifierEXT.html
28195 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderModuleCreateInfoIdentifierEXT ), bool>::type>
28196 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ShaderModuleIdentifierEXT
28197 Device::getShaderModuleCreateInfoIdentifierEXT( const ShaderModuleCreateInfo & createInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28198 {
28199 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28200 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28201 VULKAN_HPP_ASSERT( d.vkGetShaderModuleCreateInfoIdentifierEXT &&
28202 "Function <vkGetShaderModuleCreateInfoIdentifierEXT> requires <VK_EXT_shader_module_identifier>" );
28203 # endif
28204
28205 ShaderModuleIdentifierEXT identifier;
28206 d.vkGetShaderModuleCreateInfoIdentifierEXT(
28207 m_device, reinterpret_cast<const VkShaderModuleCreateInfo *>( &createInfo ), reinterpret_cast<VkShaderModuleIdentifierEXT *>( &identifier ) );
28208
28209 return identifier;
28210 }
28211 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28212
28213 //=== VK_NV_optical_flow ===
28214
28215 // wrapper function for command vkGetPhysicalDeviceOpticalFlowImageFormatsNV, see
28216 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceOpticalFlowImageFormatsNV.html
28217 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceOpticalFlowImageFormatsNV ), bool>::type>
28218 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getOpticalFlowImageFormatsNV( const OpticalFlowImageFormatInfoNV * pOpticalFlowImageFormatInfo,
28219 uint32_t * pFormatCount,
28220 OpticalFlowImageFormatPropertiesNV * pImageFormatProperties,
28221 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28222 {
28223 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28224 return static_cast<Result>(
28225 d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( static_cast<VkPhysicalDevice>( m_physicalDevice ),
28226 reinterpret_cast<const VkOpticalFlowImageFormatInfoNV *>( pOpticalFlowImageFormatInfo ),
28227 pFormatCount,
28228 reinterpret_cast<VkOpticalFlowImageFormatPropertiesNV *>( pImageFormatProperties ) ) );
28229 }
28230
28231 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28232 // wrapper function for command vkGetPhysicalDeviceOpticalFlowImageFormatsNV, see
28233 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceOpticalFlowImageFormatsNV.html
28234 template <typename OpticalFlowImageFormatPropertiesNVAllocator,
28235 typename Dispatch,
28236 typename std::enable_if<std::is_same<typename OpticalFlowImageFormatPropertiesNVAllocator::value_type, OpticalFlowImageFormatPropertiesNV>::value,
28237 int>::type,
28238 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceOpticalFlowImageFormatsNV ), bool>::type>
28239 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
28240 typename ResultValueType<std::vector<OpticalFlowImageFormatPropertiesNV, OpticalFlowImageFormatPropertiesNVAllocator>>::type
28241 PhysicalDevice::getOpticalFlowImageFormatsNV( const OpticalFlowImageFormatInfoNV & opticalFlowImageFormatInfo, Dispatch const & d ) const
28242 {
28243 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28244 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28245 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV &&
28246 "Function <vkGetPhysicalDeviceOpticalFlowImageFormatsNV> requires <VK_NV_optical_flow>" );
28247 # endif
28248
28249 std::vector<OpticalFlowImageFormatPropertiesNV, OpticalFlowImageFormatPropertiesNVAllocator> imageFormatProperties;
28250 uint32_t formatCount;
28251 Result result;
28252 do
28253 {
28254 result = static_cast<Result>( d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV(
28255 m_physicalDevice, reinterpret_cast<const VkOpticalFlowImageFormatInfoNV *>( &opticalFlowImageFormatInfo ), &formatCount, nullptr ) );
28256 if ( ( result == Result::eSuccess ) && formatCount )
28257 {
28258 imageFormatProperties.resize( formatCount );
28259 result = static_cast<Result>(
28260 d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( m_physicalDevice,
28261 reinterpret_cast<const VkOpticalFlowImageFormatInfoNV *>( &opticalFlowImageFormatInfo ),
28262 &formatCount,
28263 reinterpret_cast<VkOpticalFlowImageFormatPropertiesNV *>( imageFormatProperties.data() ) ) );
28264 }
28265 } while ( result == Result::eIncomplete );
28266 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getOpticalFlowImageFormatsNV" );
28267 VULKAN_HPP_ASSERT( formatCount <= imageFormatProperties.size() );
28268 if ( formatCount < imageFormatProperties.size() )
28269 {
28270 imageFormatProperties.resize( formatCount );
28271 }
28272 return detail::createResultValueType( result, std::move( imageFormatProperties ) );
28273 }
28274
28275 // wrapper function for command vkGetPhysicalDeviceOpticalFlowImageFormatsNV, see
28276 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceOpticalFlowImageFormatsNV.html
28277 template <typename OpticalFlowImageFormatPropertiesNVAllocator,
28278 typename Dispatch,
28279 typename std::enable_if<std::is_same<typename OpticalFlowImageFormatPropertiesNVAllocator::value_type, OpticalFlowImageFormatPropertiesNV>::value,
28280 int>::type,
28281 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceOpticalFlowImageFormatsNV ), bool>::type>
28282 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
28283 typename ResultValueType<std::vector<OpticalFlowImageFormatPropertiesNV, OpticalFlowImageFormatPropertiesNVAllocator>>::type
28284 PhysicalDevice::getOpticalFlowImageFormatsNV( const OpticalFlowImageFormatInfoNV & opticalFlowImageFormatInfo,
28285 OpticalFlowImageFormatPropertiesNVAllocator const & opticalFlowImageFormatPropertiesNVAllocator,
28286 Dispatch const & d ) const
28287 {
28288 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28289 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28290 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV &&
28291 "Function <vkGetPhysicalDeviceOpticalFlowImageFormatsNV> requires <VK_NV_optical_flow>" );
28292 # endif
28293
28294 std::vector<OpticalFlowImageFormatPropertiesNV, OpticalFlowImageFormatPropertiesNVAllocator> imageFormatProperties(
28295 opticalFlowImageFormatPropertiesNVAllocator );
28296 uint32_t formatCount;
28297 Result result;
28298 do
28299 {
28300 result = static_cast<Result>( d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV(
28301 m_physicalDevice, reinterpret_cast<const VkOpticalFlowImageFormatInfoNV *>( &opticalFlowImageFormatInfo ), &formatCount, nullptr ) );
28302 if ( ( result == Result::eSuccess ) && formatCount )
28303 {
28304 imageFormatProperties.resize( formatCount );
28305 result = static_cast<Result>(
28306 d.vkGetPhysicalDeviceOpticalFlowImageFormatsNV( m_physicalDevice,
28307 reinterpret_cast<const VkOpticalFlowImageFormatInfoNV *>( &opticalFlowImageFormatInfo ),
28308 &formatCount,
28309 reinterpret_cast<VkOpticalFlowImageFormatPropertiesNV *>( imageFormatProperties.data() ) ) );
28310 }
28311 } while ( result == Result::eIncomplete );
28312 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getOpticalFlowImageFormatsNV" );
28313 VULKAN_HPP_ASSERT( formatCount <= imageFormatProperties.size() );
28314 if ( formatCount < imageFormatProperties.size() )
28315 {
28316 imageFormatProperties.resize( formatCount );
28317 }
28318 return detail::createResultValueType( result, std::move( imageFormatProperties ) );
28319 }
28320 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28321
28322 // wrapper function for command vkCreateOpticalFlowSessionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateOpticalFlowSessionNV.html
28323 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateOpticalFlowSessionNV ), bool>::type>
28324 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createOpticalFlowSessionNV( const OpticalFlowSessionCreateInfoNV * pCreateInfo,
28325 const AllocationCallbacks * pAllocator,
28326 OpticalFlowSessionNV * pSession,
28327 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28328 {
28329 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28330 return static_cast<Result>( d.vkCreateOpticalFlowSessionNV( static_cast<VkDevice>( m_device ),
28331 reinterpret_cast<const VkOpticalFlowSessionCreateInfoNV *>( pCreateInfo ),
28332 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
28333 reinterpret_cast<VkOpticalFlowSessionNV *>( pSession ) ) );
28334 }
28335
28336 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28337 // wrapper function for command vkCreateOpticalFlowSessionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateOpticalFlowSessionNV.html
28338 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateOpticalFlowSessionNV ), bool>::type>
28339 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<OpticalFlowSessionNV>::type Device::createOpticalFlowSessionNV(
28340 const OpticalFlowSessionCreateInfoNV & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
28341 {
28342 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28343 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28344 VULKAN_HPP_ASSERT( d.vkCreateOpticalFlowSessionNV && "Function <vkCreateOpticalFlowSessionNV> requires <VK_NV_optical_flow>" );
28345 # endif
28346
28347 OpticalFlowSessionNV session;
28348 Result result = static_cast<Result>( d.vkCreateOpticalFlowSessionNV( m_device,
28349 reinterpret_cast<const VkOpticalFlowSessionCreateInfoNV *>( &createInfo ),
28350 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
28351 reinterpret_cast<VkOpticalFlowSessionNV *>( &session ) ) );
28352 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createOpticalFlowSessionNV" );
28353
28354 return detail::createResultValueType( result, std::move( session ) );
28355 }
28356
28357 # ifndef VULKAN_HPP_NO_SMART_HANDLE
28358 // wrapper function for command vkCreateOpticalFlowSessionNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateOpticalFlowSessionNV.html
28359 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateOpticalFlowSessionNV ), bool>::type>
28360 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<OpticalFlowSessionNV, Dispatch>>::type Device::createOpticalFlowSessionNVUnique(
28361 const OpticalFlowSessionCreateInfoNV & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
28362 {
28363 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28364 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28365 VULKAN_HPP_ASSERT( d.vkCreateOpticalFlowSessionNV && "Function <vkCreateOpticalFlowSessionNV> requires <VK_NV_optical_flow>" );
28366 # endif
28367
28368 OpticalFlowSessionNV session;
28369 Result result = static_cast<Result>( d.vkCreateOpticalFlowSessionNV( m_device,
28370 reinterpret_cast<const VkOpticalFlowSessionCreateInfoNV *>( &createInfo ),
28371 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
28372 reinterpret_cast<VkOpticalFlowSessionNV *>( &session ) ) );
28373 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createOpticalFlowSessionNVUnique" );
28374
28375 return detail::createResultValueType(
28376 result, UniqueHandle<OpticalFlowSessionNV, Dispatch>( session, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
28377 }
28378 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
28379 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28380
28381 // wrapper function for command vkDestroyOpticalFlowSessionNV, see
28382 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyOpticalFlowSessionNV.html
28383 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyOpticalFlowSessionNV ), bool>::type>
28384 VULKAN_HPP_INLINE void
28385 Device::destroyOpticalFlowSessionNV( OpticalFlowSessionNV session, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28386 {
28387 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28388 d.vkDestroyOpticalFlowSessionNV(
28389 static_cast<VkDevice>( m_device ), static_cast<VkOpticalFlowSessionNV>( session ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
28390 }
28391
28392 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28393 // wrapper function for command vkDestroyOpticalFlowSessionNV, see
28394 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyOpticalFlowSessionNV.html
28395 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyOpticalFlowSessionNV ), bool>::type>
28396 VULKAN_HPP_INLINE void Device::destroyOpticalFlowSessionNV( OpticalFlowSessionNV session,
28397 Optional<const AllocationCallbacks> allocator,
28398 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28399 {
28400 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28401 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28402 VULKAN_HPP_ASSERT( d.vkDestroyOpticalFlowSessionNV && "Function <vkDestroyOpticalFlowSessionNV> requires <VK_NV_optical_flow>" );
28403 # endif
28404
28405 d.vkDestroyOpticalFlowSessionNV(
28406 m_device, static_cast<VkOpticalFlowSessionNV>( session ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
28407 }
28408 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28409
28410 // wrapper function for command vkDestroyOpticalFlowSessionNV, see
28411 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyOpticalFlowSessionNV.html
28412 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyOpticalFlowSessionNV ), bool>::type>
28413 VULKAN_HPP_INLINE void Device::destroy( OpticalFlowSessionNV session, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28414 {
28415 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28416 d.vkDestroyOpticalFlowSessionNV(
28417 static_cast<VkDevice>( m_device ), static_cast<VkOpticalFlowSessionNV>( session ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
28418 }
28419
28420 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28421 // wrapper function for command vkDestroyOpticalFlowSessionNV, see
28422 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyOpticalFlowSessionNV.html
28423 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyOpticalFlowSessionNV ), bool>::type>
28424 VULKAN_HPP_INLINE void
28425 Device::destroy( OpticalFlowSessionNV session, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28426 {
28427 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28428 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28429 VULKAN_HPP_ASSERT( d.vkDestroyOpticalFlowSessionNV && "Function <vkDestroyOpticalFlowSessionNV> requires <VK_NV_optical_flow>" );
28430 # endif
28431
28432 d.vkDestroyOpticalFlowSessionNV(
28433 m_device, static_cast<VkOpticalFlowSessionNV>( session ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
28434 }
28435 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28436
28437 #ifdef VULKAN_HPP_DISABLE_ENHANCED_MODE
28438 // wrapper function for command vkBindOpticalFlowSessionImageNV, see
28439 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindOpticalFlowSessionImageNV.html
28440 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindOpticalFlowSessionImageNV ), bool>::type>
28441 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindOpticalFlowSessionImageNV( OpticalFlowSessionNV session,
28442 OpticalFlowSessionBindingPointNV bindingPoint,
28443 ImageView view,
28444 ImageLayout layout,
28445 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28446 {
28447 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28448 return static_cast<Result>( d.vkBindOpticalFlowSessionImageNV( static_cast<VkDevice>( m_device ),
28449 static_cast<VkOpticalFlowSessionNV>( session ),
28450 static_cast<VkOpticalFlowSessionBindingPointNV>( bindingPoint ),
28451 static_cast<VkImageView>( view ),
28452 static_cast<VkImageLayout>( layout ) ) );
28453 }
28454 #else
28455 // wrapper function for command vkBindOpticalFlowSessionImageNV, see
28456 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindOpticalFlowSessionImageNV.html
28457 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindOpticalFlowSessionImageNV ), bool>::type>
28458 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::bindOpticalFlowSessionImageNV(
28459 OpticalFlowSessionNV session, OpticalFlowSessionBindingPointNV bindingPoint, ImageView view, ImageLayout layout, Dispatch const & d ) const
28460 {
28461 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28462 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28463 VULKAN_HPP_ASSERT( d.vkBindOpticalFlowSessionImageNV && "Function <vkBindOpticalFlowSessionImageNV> requires <VK_NV_optical_flow>" );
28464 # endif
28465
28466 Result result = static_cast<Result>( d.vkBindOpticalFlowSessionImageNV( m_device,
28467 static_cast<VkOpticalFlowSessionNV>( session ),
28468 static_cast<VkOpticalFlowSessionBindingPointNV>( bindingPoint ),
28469 static_cast<VkImageView>( view ),
28470 static_cast<VkImageLayout>( layout ) ) );
28471 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindOpticalFlowSessionImageNV" );
28472
28473 return detail::createResultValueType( result );
28474 }
28475 #endif /*VULKAN_HPP_DISABLE_ENHANCED_MODE*/
28476
28477 // wrapper function for command vkCmdOpticalFlowExecuteNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdOpticalFlowExecuteNV.html
28478 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdOpticalFlowExecuteNV ), bool>::type>
28479 VULKAN_HPP_INLINE void CommandBuffer::opticalFlowExecuteNV( OpticalFlowSessionNV session,
28480 const OpticalFlowExecuteInfoNV * pExecuteInfo,
28481 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28482 {
28483 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28484 d.vkCmdOpticalFlowExecuteNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
28485 static_cast<VkOpticalFlowSessionNV>( session ),
28486 reinterpret_cast<const VkOpticalFlowExecuteInfoNV *>( pExecuteInfo ) );
28487 }
28488
28489 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28490 // wrapper function for command vkCmdOpticalFlowExecuteNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdOpticalFlowExecuteNV.html
28491 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdOpticalFlowExecuteNV ), bool>::type>
28492 VULKAN_HPP_INLINE void CommandBuffer::opticalFlowExecuteNV( OpticalFlowSessionNV session,
28493 const OpticalFlowExecuteInfoNV & executeInfo,
28494 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28495 {
28496 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28497 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28498 VULKAN_HPP_ASSERT( d.vkCmdOpticalFlowExecuteNV && "Function <vkCmdOpticalFlowExecuteNV> requires <VK_NV_optical_flow>" );
28499 # endif
28500
28501 d.vkCmdOpticalFlowExecuteNV(
28502 m_commandBuffer, static_cast<VkOpticalFlowSessionNV>( session ), reinterpret_cast<const VkOpticalFlowExecuteInfoNV *>( &executeInfo ) );
28503 }
28504 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28505
28506 //=== VK_KHR_maintenance5 ===
28507
28508 // wrapper function for command vkCmdBindIndexBuffer2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindIndexBuffer2KHR.html
28509 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindIndexBuffer2KHR ), bool>::type>
28510 VULKAN_HPP_INLINE void
28511 CommandBuffer::bindIndexBuffer2KHR( Buffer buffer, DeviceSize offset, DeviceSize size, IndexType indexType, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28512 {
28513 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28514 d.vkCmdBindIndexBuffer2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
28515 static_cast<VkBuffer>( buffer ),
28516 static_cast<VkDeviceSize>( offset ),
28517 static_cast<VkDeviceSize>( size ),
28518 static_cast<VkIndexType>( indexType ) );
28519 }
28520
28521 // wrapper function for command vkGetRenderingAreaGranularityKHR, see
28522 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderingAreaGranularityKHR.html
28523 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRenderingAreaGranularityKHR ), bool>::type>
28524 VULKAN_HPP_INLINE void Device::getRenderingAreaGranularityKHR( const RenderingAreaInfo * pRenderingAreaInfo,
28525 Extent2D * pGranularity,
28526 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28527 {
28528 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28529 d.vkGetRenderingAreaGranularityKHR(
28530 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkRenderingAreaInfo *>( pRenderingAreaInfo ), reinterpret_cast<VkExtent2D *>( pGranularity ) );
28531 }
28532
28533 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28534 // wrapper function for command vkGetRenderingAreaGranularityKHR, see
28535 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetRenderingAreaGranularityKHR.html
28536 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetRenderingAreaGranularityKHR ), bool>::type>
28537 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Extent2D Device::getRenderingAreaGranularityKHR( const RenderingAreaInfo & renderingAreaInfo,
28538 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28539 {
28540 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28541 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28542 VULKAN_HPP_ASSERT( d.vkGetRenderingAreaGranularityKHR && "Function <vkGetRenderingAreaGranularityKHR> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
28543 # endif
28544
28545 Extent2D granularity;
28546 d.vkGetRenderingAreaGranularityKHR(
28547 m_device, reinterpret_cast<const VkRenderingAreaInfo *>( &renderingAreaInfo ), reinterpret_cast<VkExtent2D *>( &granularity ) );
28548
28549 return granularity;
28550 }
28551 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28552
28553 // wrapper function for command vkGetDeviceImageSubresourceLayoutKHR, see
28554 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayoutKHR.html
28555 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSubresourceLayoutKHR ), bool>::type>
28556 VULKAN_HPP_INLINE void
28557 Device::getImageSubresourceLayoutKHR( const DeviceImageSubresourceInfo * pInfo, SubresourceLayout2 * pLayout, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28558 {
28559 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28560 d.vkGetDeviceImageSubresourceLayoutKHR(
28561 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkDeviceImageSubresourceInfo *>( pInfo ), reinterpret_cast<VkSubresourceLayout2 *>( pLayout ) );
28562 }
28563
28564 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28565 // wrapper function for command vkGetDeviceImageSubresourceLayoutKHR, see
28566 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayoutKHR.html
28567 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSubresourceLayoutKHR ), bool>::type>
28568 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Device::getImageSubresourceLayoutKHR( const DeviceImageSubresourceInfo & info,
28569 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28570 {
28571 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28572 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28573 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSubresourceLayoutKHR &&
28574 "Function <vkGetDeviceImageSubresourceLayoutKHR> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
28575 # endif
28576
28577 SubresourceLayout2 layout;
28578 d.vkGetDeviceImageSubresourceLayoutKHR(
28579 m_device, reinterpret_cast<const VkDeviceImageSubresourceInfo *>( &info ), reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
28580
28581 return layout;
28582 }
28583
28584 // wrapper function for command vkGetDeviceImageSubresourceLayoutKHR, see
28585 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDeviceImageSubresourceLayoutKHR.html
28586 template <typename X,
28587 typename Y,
28588 typename... Z,
28589 typename Dispatch,
28590 typename std::enable_if<IS_DISPATCHED( vkGetDeviceImageSubresourceLayoutKHR ), bool>::type>
28591 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...> Device::getImageSubresourceLayoutKHR( const DeviceImageSubresourceInfo & info,
28592 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28593 {
28594 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28595 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28596 VULKAN_HPP_ASSERT( d.vkGetDeviceImageSubresourceLayoutKHR &&
28597 "Function <vkGetDeviceImageSubresourceLayoutKHR> requires <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
28598 # endif
28599
28600 StructureChain<X, Y, Z...> structureChain;
28601 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
28602 d.vkGetDeviceImageSubresourceLayoutKHR(
28603 m_device, reinterpret_cast<const VkDeviceImageSubresourceInfo *>( &info ), reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
28604
28605 return structureChain;
28606 }
28607 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28608
28609 // wrapper function for command vkGetImageSubresourceLayout2KHR, see
28610 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2KHR.html
28611 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2KHR ), bool>::type>
28612 VULKAN_HPP_INLINE void Device::getImageSubresourceLayout2KHR( Image image,
28613 const ImageSubresource2 * pSubresource,
28614 SubresourceLayout2 * pLayout,
28615 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28616 {
28617 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28618 d.vkGetImageSubresourceLayout2KHR( static_cast<VkDevice>( m_device ),
28619 static_cast<VkImage>( image ),
28620 reinterpret_cast<const VkImageSubresource2 *>( pSubresource ),
28621 reinterpret_cast<VkSubresourceLayout2 *>( pLayout ) );
28622 }
28623
28624 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28625 // wrapper function for command vkGetImageSubresourceLayout2KHR, see
28626 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2KHR.html
28627 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2KHR ), bool>::type>
28628 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE SubresourceLayout2 Device::getImageSubresourceLayout2KHR( Image image,
28629 const ImageSubresource2 & subresource,
28630 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28631 {
28632 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28633 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28634 VULKAN_HPP_ASSERT(
28635 d.vkGetImageSubresourceLayout2KHR &&
28636 "Function <vkGetImageSubresourceLayout2KHR> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
28637 # endif
28638
28639 SubresourceLayout2 layout;
28640 d.vkGetImageSubresourceLayout2KHR( m_device,
28641 static_cast<VkImage>( image ),
28642 reinterpret_cast<const VkImageSubresource2 *>( &subresource ),
28643 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
28644
28645 return layout;
28646 }
28647
28648 // wrapper function for command vkGetImageSubresourceLayout2KHR, see
28649 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetImageSubresourceLayout2KHR.html
28650 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetImageSubresourceLayout2KHR ), bool>::type>
28651 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
28652 Device::getImageSubresourceLayout2KHR( Image image, const ImageSubresource2 & subresource, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28653 {
28654 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28655 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28656 VULKAN_HPP_ASSERT(
28657 d.vkGetImageSubresourceLayout2KHR &&
28658 "Function <vkGetImageSubresourceLayout2KHR> requires <VK_EXT_host_image_copy> or <VK_EXT_image_compression_control> or <VK_KHR_maintenance5> or <VK_VERSION_1_4>" );
28659 # endif
28660
28661 StructureChain<X, Y, Z...> structureChain;
28662 SubresourceLayout2 & layout = structureChain.template get<SubresourceLayout2>();
28663 d.vkGetImageSubresourceLayout2KHR( m_device,
28664 static_cast<VkImage>( image ),
28665 reinterpret_cast<const VkImageSubresource2 *>( &subresource ),
28666 reinterpret_cast<VkSubresourceLayout2 *>( &layout ) );
28667
28668 return structureChain;
28669 }
28670 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28671
28672 //=== VK_AMD_anti_lag ===
28673
28674 // wrapper function for command vkAntiLagUpdateAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAntiLagUpdateAMD.html
28675 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAntiLagUpdateAMD ), bool>::type>
28676 VULKAN_HPP_INLINE void Device::antiLagUpdateAMD( const AntiLagDataAMD * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28677 {
28678 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28679 d.vkAntiLagUpdateAMD( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkAntiLagDataAMD *>( pData ) );
28680 }
28681
28682 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28683 // wrapper function for command vkAntiLagUpdateAMD, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkAntiLagUpdateAMD.html
28684 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkAntiLagUpdateAMD ), bool>::type>
28685 VULKAN_HPP_INLINE void Device::antiLagUpdateAMD( const AntiLagDataAMD & data, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28686 {
28687 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28688 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28689 VULKAN_HPP_ASSERT( d.vkAntiLagUpdateAMD && "Function <vkAntiLagUpdateAMD> requires <VK_AMD_anti_lag>" );
28690 # endif
28691
28692 d.vkAntiLagUpdateAMD( m_device, reinterpret_cast<const VkAntiLagDataAMD *>( &data ) );
28693 }
28694 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28695
28696 //=== VK_KHR_present_wait2 ===
28697
28698 // wrapper function for command vkWaitForPresent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForPresent2KHR.html
28699 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitForPresent2KHR ), bool>::type>
28700 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForPresent2KHR( SwapchainKHR swapchain,
28701 const PresentWait2InfoKHR * pPresentWait2Info,
28702 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28703 {
28704 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28705 return static_cast<Result>( d.vkWaitForPresent2KHR(
28706 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<const VkPresentWait2InfoKHR *>( pPresentWait2Info ) ) );
28707 }
28708
28709 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28710 // wrapper function for command vkWaitForPresent2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkWaitForPresent2KHR.html
28711 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkWaitForPresent2KHR ), bool>::type>
28712 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::waitForPresent2KHR( SwapchainKHR swapchain,
28713 const PresentWait2InfoKHR & presentWait2Info,
28714 Dispatch const & d ) const
28715 {
28716 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28717 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28718 VULKAN_HPP_ASSERT( d.vkWaitForPresent2KHR && "Function <vkWaitForPresent2KHR> requires <VK_KHR_present_wait2>" );
28719 # endif
28720
28721 Result result = static_cast<Result>(
28722 d.vkWaitForPresent2KHR( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<const VkPresentWait2InfoKHR *>( &presentWait2Info ) ) );
28723
28724 # if defined( VULKAN_HPP_HANDLE_ERROR_OUT_OF_DATE_AS_SUCCESS )
28725 detail::resultCheck( result,
28726 VULKAN_HPP_NAMESPACE_STRING "::Device::waitForPresent2KHR",
28727 { Result::eSuccess, Result::eTimeout, Result::eSuboptimalKHR, Result::eErrorOutOfDateKHR } );
28728 # else
28729 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::waitForPresent2KHR", { Result::eSuccess, Result::eTimeout, Result::eSuboptimalKHR } );
28730 # endif
28731
28732 return static_cast<Result>( result );
28733 }
28734 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28735
28736 //=== VK_EXT_shader_object ===
28737
28738 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28739 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28740 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createShadersEXT( uint32_t createInfoCount,
28741 const ShaderCreateInfoEXT * pCreateInfos,
28742 const AllocationCallbacks * pAllocator,
28743 ShaderEXT * pShaders,
28744 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28745 {
28746 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28747 return static_cast<Result>( d.vkCreateShadersEXT( static_cast<VkDevice>( m_device ),
28748 createInfoCount,
28749 reinterpret_cast<const VkShaderCreateInfoEXT *>( pCreateInfos ),
28750 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
28751 reinterpret_cast<VkShaderEXT *>( pShaders ) ) );
28752 }
28753
28754 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28755 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28756 template <typename ShaderEXTAllocator,
28757 typename Dispatch,
28758 typename std::enable_if<std::is_same<typename ShaderEXTAllocator::value_type, ShaderEXT>::value, int>::type,
28759 typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28760 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<ShaderEXT, ShaderEXTAllocator>> Device::createShadersEXT(
28761 ArrayProxy<const ShaderCreateInfoEXT> const & createInfos, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
28762 {
28763 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28764 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28765 VULKAN_HPP_ASSERT( d.vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
28766 # endif
28767
28768 std::vector<ShaderEXT, ShaderEXTAllocator> shaders( createInfos.size() );
28769 Result result = static_cast<Result>( d.vkCreateShadersEXT( m_device,
28770 createInfos.size(),
28771 reinterpret_cast<const VkShaderCreateInfoEXT *>( createInfos.data() ),
28772 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
28773 reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) );
28774 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXT", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
28775
28776 return ResultValue<std::vector<ShaderEXT, ShaderEXTAllocator>>( result, std::move( shaders ) );
28777 }
28778
28779 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28780 template <typename ShaderEXTAllocator,
28781 typename Dispatch,
28782 typename std::enable_if<std::is_same<typename ShaderEXTAllocator::value_type, ShaderEXT>::value, int>::type,
28783 typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28784 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<ShaderEXT, ShaderEXTAllocator>>
28785 Device::createShadersEXT( ArrayProxy<const ShaderCreateInfoEXT> const & createInfos,
28786 Optional<const AllocationCallbacks> allocator,
28787 ShaderEXTAllocator const & shaderEXTAllocator,
28788 Dispatch const & d ) const
28789 {
28790 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28791 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28792 VULKAN_HPP_ASSERT( d.vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
28793 # endif
28794
28795 std::vector<ShaderEXT, ShaderEXTAllocator> shaders( createInfos.size(), {}, shaderEXTAllocator );
28796 Result result = static_cast<Result>( d.vkCreateShadersEXT( m_device,
28797 createInfos.size(),
28798 reinterpret_cast<const VkShaderCreateInfoEXT *>( createInfos.data() ),
28799 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
28800 reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) );
28801 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXT", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
28802
28803 return ResultValue<std::vector<ShaderEXT, ShaderEXTAllocator>>( result, std::move( shaders ) );
28804 }
28805
28806 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28807 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28808 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<ShaderEXT>
28809 Device::createShaderEXT( const ShaderCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
28810 {
28811 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28812 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28813 VULKAN_HPP_ASSERT( d.vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
28814 # endif
28815
28816 ShaderEXT shader;
28817 Result result = static_cast<Result>( d.vkCreateShadersEXT( m_device,
28818 1,
28819 reinterpret_cast<const VkShaderCreateInfoEXT *>( &createInfo ),
28820 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
28821 reinterpret_cast<VkShaderEXT *>( &shader ) ) );
28822 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderEXT", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
28823
28824 return ResultValue<ShaderEXT>( result, std::move( shader ) );
28825 }
28826
28827 # ifndef VULKAN_HPP_NO_SMART_HANDLE
28828 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28829 template <typename Dispatch,
28830 typename ShaderEXTAllocator,
28831 typename std::enable_if<std::is_same<typename ShaderEXTAllocator::value_type, UniqueHandle<ShaderEXT, Dispatch>>::value, int>::type,
28832 typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28833 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<ShaderEXT, Dispatch>, ShaderEXTAllocator>> Device::createShadersEXTUnique(
28834 ArrayProxy<const ShaderCreateInfoEXT> const & createInfos, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
28835 {
28836 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28837 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28838 VULKAN_HPP_ASSERT( d.vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
28839 # endif
28840
28841 std::vector<ShaderEXT> shaders( createInfos.size() );
28842 Result result = static_cast<Result>( d.vkCreateShadersEXT( m_device,
28843 createInfos.size(),
28844 reinterpret_cast<const VkShaderCreateInfoEXT *>( createInfos.data() ),
28845 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
28846 reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) );
28847 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXTUnique", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
28848 std::vector<UniqueHandle<ShaderEXT, Dispatch>, ShaderEXTAllocator> uniqueShaders;
28849 uniqueShaders.reserve( createInfos.size() );
28850 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
28851 for ( auto const & shader : shaders )
28852 {
28853 uniqueShaders.push_back( UniqueHandle<ShaderEXT, Dispatch>( shader, deleter ) );
28854 }
28855 return ResultValue<std::vector<UniqueHandle<ShaderEXT, Dispatch>, ShaderEXTAllocator>>( result, std::move( uniqueShaders ) );
28856 }
28857
28858 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28859 template <typename Dispatch,
28860 typename ShaderEXTAllocator,
28861 typename std::enable_if<std::is_same<typename ShaderEXTAllocator::value_type, UniqueHandle<ShaderEXT, Dispatch>>::value, int>::type,
28862 typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28863 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<ShaderEXT, Dispatch>, ShaderEXTAllocator>>
28864 Device::createShadersEXTUnique( ArrayProxy<const ShaderCreateInfoEXT> const & createInfos,
28865 Optional<const AllocationCallbacks> allocator,
28866 ShaderEXTAllocator const & shaderEXTAllocator,
28867 Dispatch const & d ) const
28868 {
28869 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28870 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28871 VULKAN_HPP_ASSERT( d.vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
28872 # endif
28873
28874 std::vector<ShaderEXT> shaders( createInfos.size() );
28875 Result result = static_cast<Result>( d.vkCreateShadersEXT( m_device,
28876 createInfos.size(),
28877 reinterpret_cast<const VkShaderCreateInfoEXT *>( createInfos.data() ),
28878 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
28879 reinterpret_cast<VkShaderEXT *>( shaders.data() ) ) );
28880 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShadersEXTUnique", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
28881 std::vector<UniqueHandle<ShaderEXT, Dispatch>, ShaderEXTAllocator> uniqueShaders( shaderEXTAllocator );
28882 uniqueShaders.reserve( createInfos.size() );
28883 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
28884 for ( auto const & shader : shaders )
28885 {
28886 uniqueShaders.push_back( UniqueHandle<ShaderEXT, Dispatch>( shader, deleter ) );
28887 }
28888 return ResultValue<std::vector<UniqueHandle<ShaderEXT, Dispatch>, ShaderEXTAllocator>>( result, std::move( uniqueShaders ) );
28889 }
28890
28891 // wrapper function for command vkCreateShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateShadersEXT.html
28892 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateShadersEXT ), bool>::type>
28893 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<ShaderEXT, Dispatch>>
28894 Device::createShaderEXTUnique( const ShaderCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
28895 {
28896 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28897 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28898 VULKAN_HPP_ASSERT( d.vkCreateShadersEXT && "Function <vkCreateShadersEXT> requires <VK_EXT_shader_object>" );
28899 # endif
28900
28901 ShaderEXT shader;
28902 Result result = static_cast<Result>( d.vkCreateShadersEXT( m_device,
28903 1,
28904 reinterpret_cast<const VkShaderCreateInfoEXT *>( &createInfo ),
28905 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
28906 reinterpret_cast<VkShaderEXT *>( &shader ) ) );
28907 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createShaderEXTUnique", { Result::eSuccess, Result::eIncompatibleShaderBinaryEXT } );
28908
28909 return ResultValue<UniqueHandle<ShaderEXT, Dispatch>>(
28910 result, UniqueHandle<ShaderEXT, Dispatch>( shader, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
28911 }
28912 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
28913 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28914
28915 // wrapper function for command vkDestroyShaderEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderEXT.html
28916 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderEXT ), bool>::type>
28917 VULKAN_HPP_INLINE void Device::destroyShaderEXT( ShaderEXT shader, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28918 {
28919 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28920 d.vkDestroyShaderEXT(
28921 static_cast<VkDevice>( m_device ), static_cast<VkShaderEXT>( shader ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
28922 }
28923
28924 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28925 // wrapper function for command vkDestroyShaderEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderEXT.html
28926 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderEXT ), bool>::type>
28927 VULKAN_HPP_INLINE void
28928 Device::destroyShaderEXT( ShaderEXT shader, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28929 {
28930 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28931 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28932 VULKAN_HPP_ASSERT( d.vkDestroyShaderEXT && "Function <vkDestroyShaderEXT> requires <VK_EXT_shader_object>" );
28933 # endif
28934
28935 d.vkDestroyShaderEXT( m_device, static_cast<VkShaderEXT>( shader ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
28936 }
28937 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28938
28939 // wrapper function for command vkDestroyShaderEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderEXT.html
28940 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderEXT ), bool>::type>
28941 VULKAN_HPP_INLINE void Device::destroy( ShaderEXT shader, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28942 {
28943 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28944 d.vkDestroyShaderEXT(
28945 static_cast<VkDevice>( m_device ), static_cast<VkShaderEXT>( shader ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
28946 }
28947
28948 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28949 // wrapper function for command vkDestroyShaderEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyShaderEXT.html
28950 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyShaderEXT ), bool>::type>
28951 VULKAN_HPP_INLINE void Device::destroy( ShaderEXT shader, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28952 {
28953 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28954 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28955 VULKAN_HPP_ASSERT( d.vkDestroyShaderEXT && "Function <vkDestroyShaderEXT> requires <VK_EXT_shader_object>" );
28956 # endif
28957
28958 d.vkDestroyShaderEXT( m_device, static_cast<VkShaderEXT>( shader ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
28959 }
28960 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
28961
28962 // wrapper function for command vkGetShaderBinaryDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderBinaryDataEXT.html
28963 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetShaderBinaryDataEXT ), bool>::type>
28964 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
28965 Device::getShaderBinaryDataEXT( ShaderEXT shader, size_t * pDataSize, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
28966 {
28967 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28968 return static_cast<Result>( d.vkGetShaderBinaryDataEXT( static_cast<VkDevice>( m_device ), static_cast<VkShaderEXT>( shader ), pDataSize, pData ) );
28969 }
28970
28971 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
28972 // wrapper function for command vkGetShaderBinaryDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderBinaryDataEXT.html
28973 template <typename Uint8_tAllocator,
28974 typename Dispatch,
28975 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
28976 typename std::enable_if<IS_DISPATCHED( vkGetShaderBinaryDataEXT ), bool>::type>
28977 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
28978 Device::getShaderBinaryDataEXT( ShaderEXT shader, Dispatch const & d ) const
28979 {
28980 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
28981 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
28982 VULKAN_HPP_ASSERT( d.vkGetShaderBinaryDataEXT && "Function <vkGetShaderBinaryDataEXT> requires <VK_EXT_shader_object>" );
28983 # endif
28984
28985 std::vector<uint8_t, Uint8_tAllocator> data;
28986 size_t dataSize;
28987 Result result;
28988 do
28989 {
28990 result = static_cast<Result>( d.vkGetShaderBinaryDataEXT( m_device, static_cast<VkShaderEXT>( shader ), &dataSize, nullptr ) );
28991 if ( ( result == Result::eSuccess ) && dataSize )
28992 {
28993 data.resize( dataSize );
28994 result =
28995 static_cast<Result>( d.vkGetShaderBinaryDataEXT( m_device, static_cast<VkShaderEXT>( shader ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
28996 }
28997 } while ( result == Result::eIncomplete );
28998 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getShaderBinaryDataEXT" );
28999 VULKAN_HPP_ASSERT( dataSize <= data.size() );
29000 if ( dataSize < data.size() )
29001 {
29002 data.resize( dataSize );
29003 }
29004 return detail::createResultValueType( result, std::move( data ) );
29005 }
29006
29007 // wrapper function for command vkGetShaderBinaryDataEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetShaderBinaryDataEXT.html
29008 template <typename Uint8_tAllocator,
29009 typename Dispatch,
29010 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
29011 typename std::enable_if<IS_DISPATCHED( vkGetShaderBinaryDataEXT ), bool>::type>
29012 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<uint8_t, Uint8_tAllocator>>::type
29013 Device::getShaderBinaryDataEXT( ShaderEXT shader, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
29014 {
29015 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29016 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29017 VULKAN_HPP_ASSERT( d.vkGetShaderBinaryDataEXT && "Function <vkGetShaderBinaryDataEXT> requires <VK_EXT_shader_object>" );
29018 # endif
29019
29020 std::vector<uint8_t, Uint8_tAllocator> data( uint8_tAllocator );
29021 size_t dataSize;
29022 Result result;
29023 do
29024 {
29025 result = static_cast<Result>( d.vkGetShaderBinaryDataEXT( m_device, static_cast<VkShaderEXT>( shader ), &dataSize, nullptr ) );
29026 if ( ( result == Result::eSuccess ) && dataSize )
29027 {
29028 data.resize( dataSize );
29029 result =
29030 static_cast<Result>( d.vkGetShaderBinaryDataEXT( m_device, static_cast<VkShaderEXT>( shader ), &dataSize, reinterpret_cast<void *>( data.data() ) ) );
29031 }
29032 } while ( result == Result::eIncomplete );
29033 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getShaderBinaryDataEXT" );
29034 VULKAN_HPP_ASSERT( dataSize <= data.size() );
29035 if ( dataSize < data.size() )
29036 {
29037 data.resize( dataSize );
29038 }
29039 return detail::createResultValueType( result, std::move( data ) );
29040 }
29041 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29042
29043 // wrapper function for command vkCmdBindShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindShadersEXT.html
29044 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindShadersEXT ), bool>::type>
29045 VULKAN_HPP_INLINE void CommandBuffer::bindShadersEXT( uint32_t stageCount,
29046 const ShaderStageFlagBits * pStages,
29047 const ShaderEXT * pShaders,
29048 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29049 {
29050 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29051 d.vkCmdBindShadersEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
29052 stageCount,
29053 reinterpret_cast<const VkShaderStageFlagBits *>( pStages ),
29054 reinterpret_cast<const VkShaderEXT *>( pShaders ) );
29055 }
29056
29057 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29058 // wrapper function for command vkCmdBindShadersEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindShadersEXT.html
29059 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindShadersEXT ), bool>::type>
29060 VULKAN_HPP_INLINE void CommandBuffer::bindShadersEXT( ArrayProxy<const ShaderStageFlagBits> const & stages,
29061 ArrayProxy<const ShaderEXT> const & shaders,
29062 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
29063 {
29064 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29065 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29066 VULKAN_HPP_ASSERT( d.vkCmdBindShadersEXT && "Function <vkCmdBindShadersEXT> requires <VK_EXT_shader_object>" );
29067 # endif
29068 # ifdef VULKAN_HPP_NO_EXCEPTIONS
29069 VULKAN_HPP_ASSERT( stages.size() == shaders.size() );
29070 # else
29071 if ( stages.size() != shaders.size() )
29072 {
29073 throw LogicError( VULKAN_HPP_NAMESPACE_STRING "::CommandBuffer::bindShadersEXT: stages.size() != shaders.size()" );
29074 }
29075 # endif /*VULKAN_HPP_NO_EXCEPTIONS*/
29076
29077 d.vkCmdBindShadersEXT( m_commandBuffer,
29078 stages.size(),
29079 reinterpret_cast<const VkShaderStageFlagBits *>( stages.data() ),
29080 reinterpret_cast<const VkShaderEXT *>( shaders.data() ) );
29081 }
29082 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29083
29084 // wrapper function for command vkCmdSetDepthClampRangeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClampRangeEXT.html
29085 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthClampRangeEXT ), bool>::type>
29086 VULKAN_HPP_INLINE void CommandBuffer::setDepthClampRangeEXT( DepthClampModeEXT depthClampMode,
29087 const DepthClampRangeEXT * pDepthClampRange,
29088 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29089 {
29090 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29091 d.vkCmdSetDepthClampRangeEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
29092 static_cast<VkDepthClampModeEXT>( depthClampMode ),
29093 reinterpret_cast<const VkDepthClampRangeEXT *>( pDepthClampRange ) );
29094 }
29095
29096 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29097 // wrapper function for command vkCmdSetDepthClampRangeEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDepthClampRangeEXT.html
29098 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDepthClampRangeEXT ), bool>::type>
29099 VULKAN_HPP_INLINE void CommandBuffer::setDepthClampRangeEXT( DepthClampModeEXT depthClampMode,
29100 Optional<const DepthClampRangeEXT> depthClampRange,
29101 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29102 {
29103 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29104 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29105 VULKAN_HPP_ASSERT( d.vkCmdSetDepthClampRangeEXT &&
29106 "Function <vkCmdSetDepthClampRangeEXT> requires <VK_EXT_depth_clamp_control> or <VK_EXT_shader_object>" );
29107 # endif
29108
29109 d.vkCmdSetDepthClampRangeEXT(
29110 m_commandBuffer, static_cast<VkDepthClampModeEXT>( depthClampMode ), reinterpret_cast<const VkDepthClampRangeEXT *>( depthClampRange.get() ) );
29111 }
29112 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29113
29114 //=== VK_KHR_pipeline_binary ===
29115
29116 // wrapper function for command vkCreatePipelineBinariesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html
29117 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreatePipelineBinariesKHR ), bool>::type>
29118 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createPipelineBinariesKHR( const PipelineBinaryCreateInfoKHR * pCreateInfo,
29119 const AllocationCallbacks * pAllocator,
29120 PipelineBinaryHandlesInfoKHR * pBinaries,
29121 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29122 {
29123 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29124 return static_cast<Result>( d.vkCreatePipelineBinariesKHR( static_cast<VkDevice>( m_device ),
29125 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( pCreateInfo ),
29126 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
29127 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( pBinaries ) ) );
29128 }
29129
29130 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29131 // wrapper function for command vkCreatePipelineBinariesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html
29132 template <typename PipelineBinaryKHRAllocator,
29133 typename Dispatch,
29134 typename std::enable_if<std::is_same<typename PipelineBinaryKHRAllocator::value_type, PipelineBinaryKHR>::value, int>::type,
29135 typename std::enable_if<IS_DISPATCHED( vkCreatePipelineBinariesKHR ), bool>::type>
29136 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<PipelineBinaryKHR, PipelineBinaryKHRAllocator>>
29137 Device::createPipelineBinariesKHR( const PipelineBinaryCreateInfoKHR & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
29138 {
29139 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29140 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29141 VULKAN_HPP_ASSERT( d.vkCreatePipelineBinariesKHR && "Function <vkCreatePipelineBinariesKHR> requires <VK_KHR_pipeline_binary>" );
29142 # endif
29143
29144 std::vector<PipelineBinaryKHR, PipelineBinaryKHRAllocator> pipelineBinaries;
29145 PipelineBinaryHandlesInfoKHR binaries;
29146 Result result;
29147 if ( createInfo.pKeysAndDataInfo )
29148 {
29149 VULKAN_HPP_ASSERT( !createInfo.pipeline && !createInfo.pPipelineCreateInfo );
29150 pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount );
29151 binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount;
29152 binaries.pPipelineBinaries = pipelineBinaries.data();
29153 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29154 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( &createInfo ),
29155 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
29156 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29157 }
29158 else
29159 {
29160 VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo );
29161 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29162 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( &createInfo ),
29163 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
29164 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29165 if ( result == Result::eSuccess )
29166 {
29167 pipelineBinaries.resize( binaries.pipelineBinaryCount );
29168 binaries.pPipelineBinaries = pipelineBinaries.data();
29169 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29170 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( &createInfo ),
29171 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
29172 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29173 }
29174 }
29175
29176 detail::resultCheck(
29177 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineBinariesKHR", { Result::eSuccess, Result::eIncomplete, Result::ePipelineBinaryMissingKHR } );
29178
29179 return ResultValue<std::vector<PipelineBinaryKHR, PipelineBinaryKHRAllocator>>( result, std::move( pipelineBinaries ) );
29180 }
29181
29182 // wrapper function for command vkCreatePipelineBinariesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html
29183 template <typename PipelineBinaryKHRAllocator,
29184 typename Dispatch,
29185 typename std::enable_if<std::is_same<typename PipelineBinaryKHRAllocator::value_type, PipelineBinaryKHR>::value, int>::type,
29186 typename std::enable_if<IS_DISPATCHED( vkCreatePipelineBinariesKHR ), bool>::type>
29187 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<PipelineBinaryKHR, PipelineBinaryKHRAllocator>>
29188 Device::createPipelineBinariesKHR( const PipelineBinaryCreateInfoKHR & createInfo,
29189 Optional<const AllocationCallbacks> allocator,
29190 PipelineBinaryKHRAllocator const & pipelineBinaryKHRAllocator,
29191 Dispatch const & d ) const
29192 {
29193 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29194 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29195 VULKAN_HPP_ASSERT( d.vkCreatePipelineBinariesKHR && "Function <vkCreatePipelineBinariesKHR> requires <VK_KHR_pipeline_binary>" );
29196 # endif
29197
29198 std::vector<PipelineBinaryKHR, PipelineBinaryKHRAllocator> pipelineBinaries( pipelineBinaryKHRAllocator );
29199 PipelineBinaryHandlesInfoKHR binaries;
29200 Result result;
29201 if ( createInfo.pKeysAndDataInfo )
29202 {
29203 VULKAN_HPP_ASSERT( !createInfo.pipeline && !createInfo.pPipelineCreateInfo );
29204 pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount );
29205 binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount;
29206 binaries.pPipelineBinaries = pipelineBinaries.data();
29207 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29208 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( &createInfo ),
29209 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
29210 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29211 }
29212 else
29213 {
29214 VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo );
29215 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29216 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( &createInfo ),
29217 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
29218 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29219 if ( result == Result::eSuccess )
29220 {
29221 pipelineBinaries.resize( binaries.pipelineBinaryCount );
29222 binaries.pPipelineBinaries = pipelineBinaries.data();
29223 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29224 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( &createInfo ),
29225 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
29226 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29227 }
29228 }
29229
29230 detail::resultCheck(
29231 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineBinariesKHR", { Result::eSuccess, Result::eIncomplete, Result::ePipelineBinaryMissingKHR } );
29232
29233 return ResultValue<std::vector<PipelineBinaryKHR, PipelineBinaryKHRAllocator>>( result, std::move( pipelineBinaries ) );
29234 }
29235
29236 # ifndef VULKAN_HPP_NO_SMART_HANDLE
29237 // wrapper function for command vkCreatePipelineBinariesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html
29238 template <typename Dispatch,
29239 typename PipelineBinaryKHRAllocator,
29240 typename std::enable_if<std::is_same<typename PipelineBinaryKHRAllocator::value_type, UniqueHandle<PipelineBinaryKHR, Dispatch>>::value, int>::type,
29241 typename std::enable_if<IS_DISPATCHED( vkCreatePipelineBinariesKHR ), bool>::type>
29242 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<PipelineBinaryKHR, Dispatch>, PipelineBinaryKHRAllocator>>
29243 Device::createPipelineBinariesKHRUnique( const PipelineBinaryCreateInfoKHR & createInfo,
29244 Optional<const AllocationCallbacks> allocator,
29245 Dispatch const & d ) const
29246 {
29247 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29248 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29249 VULKAN_HPP_ASSERT( d.vkCreatePipelineBinariesKHR && "Function <vkCreatePipelineBinariesKHR> requires <VK_KHR_pipeline_binary>" );
29250 # endif
29251
29252 std::vector<PipelineBinaryKHR> pipelineBinaries;
29253 PipelineBinaryHandlesInfoKHR binaries;
29254 Result result;
29255 if ( createInfo.pKeysAndDataInfo )
29256 {
29257 VULKAN_HPP_ASSERT( !createInfo.pipeline && !createInfo.pPipelineCreateInfo );
29258 pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount );
29259 binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount;
29260 binaries.pPipelineBinaries = pipelineBinaries.data();
29261 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29262 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( &createInfo ),
29263 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
29264 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29265 }
29266 else
29267 {
29268 VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo );
29269 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29270 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( &createInfo ),
29271 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
29272 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29273 if ( result == Result::eSuccess )
29274 {
29275 pipelineBinaries.resize( binaries.pipelineBinaryCount );
29276 binaries.pPipelineBinaries = pipelineBinaries.data();
29277 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29278 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( &createInfo ),
29279 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
29280 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29281 }
29282 }
29283
29284 detail::resultCheck( result,
29285 VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineBinariesKHRUnique",
29286 { Result::eSuccess, Result::eIncomplete, Result::ePipelineBinaryMissingKHR } );
29287 std::vector<UniqueHandle<PipelineBinaryKHR, Dispatch>, PipelineBinaryKHRAllocator> uniquePipelineBinaries;
29288 uniquePipelineBinaries.reserve( pipelineBinaries.size() );
29289 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
29290 for ( auto const & pipelineBinary : pipelineBinaries )
29291 {
29292 uniquePipelineBinaries.push_back( UniqueHandle<PipelineBinaryKHR, Dispatch>( pipelineBinary, deleter ) );
29293 }
29294 return ResultValue<std::vector<UniqueHandle<PipelineBinaryKHR, Dispatch>, PipelineBinaryKHRAllocator>>( result, std::move( uniquePipelineBinaries ) );
29295 }
29296
29297 // wrapper function for command vkCreatePipelineBinariesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreatePipelineBinariesKHR.html
29298 template <typename Dispatch,
29299 typename PipelineBinaryKHRAllocator,
29300 typename std::enable_if<std::is_same<typename PipelineBinaryKHRAllocator::value_type, UniqueHandle<PipelineBinaryKHR, Dispatch>>::value, int>::type,
29301 typename std::enable_if<IS_DISPATCHED( vkCreatePipelineBinariesKHR ), bool>::type>
29302 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<PipelineBinaryKHR, Dispatch>, PipelineBinaryKHRAllocator>>
29303 Device::createPipelineBinariesKHRUnique( const PipelineBinaryCreateInfoKHR & createInfo,
29304 Optional<const AllocationCallbacks> allocator,
29305 PipelineBinaryKHRAllocator const & pipelineBinaryKHRAllocator,
29306 Dispatch const & d ) const
29307 {
29308 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29309 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29310 VULKAN_HPP_ASSERT( d.vkCreatePipelineBinariesKHR && "Function <vkCreatePipelineBinariesKHR> requires <VK_KHR_pipeline_binary>" );
29311 # endif
29312
29313 std::vector<PipelineBinaryKHR> pipelineBinaries;
29314 PipelineBinaryHandlesInfoKHR binaries;
29315 Result result;
29316 if ( createInfo.pKeysAndDataInfo )
29317 {
29318 VULKAN_HPP_ASSERT( !createInfo.pipeline && !createInfo.pPipelineCreateInfo );
29319 pipelineBinaries.resize( createInfo.pKeysAndDataInfo->binaryCount );
29320 binaries.pipelineBinaryCount = createInfo.pKeysAndDataInfo->binaryCount;
29321 binaries.pPipelineBinaries = pipelineBinaries.data();
29322 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29323 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( &createInfo ),
29324 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
29325 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29326 }
29327 else
29328 {
29329 VULKAN_HPP_ASSERT( !createInfo.pipeline ^ !createInfo.pPipelineCreateInfo );
29330 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29331 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( &createInfo ),
29332 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
29333 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29334 if ( result == Result::eSuccess )
29335 {
29336 pipelineBinaries.resize( binaries.pipelineBinaryCount );
29337 binaries.pPipelineBinaries = pipelineBinaries.data();
29338 result = static_cast<Result>( d.vkCreatePipelineBinariesKHR( m_device,
29339 reinterpret_cast<const VkPipelineBinaryCreateInfoKHR *>( &createInfo ),
29340 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
29341 reinterpret_cast<VkPipelineBinaryHandlesInfoKHR *>( &binaries ) ) );
29342 }
29343 }
29344
29345 detail::resultCheck( result,
29346 VULKAN_HPP_NAMESPACE_STRING "::Device::createPipelineBinariesKHRUnique",
29347 { Result::eSuccess, Result::eIncomplete, Result::ePipelineBinaryMissingKHR } );
29348 std::vector<UniqueHandle<PipelineBinaryKHR, Dispatch>, PipelineBinaryKHRAllocator> uniquePipelineBinaries( pipelineBinaryKHRAllocator );
29349 uniquePipelineBinaries.reserve( pipelineBinaries.size() );
29350 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
29351 for ( auto const & pipelineBinary : pipelineBinaries )
29352 {
29353 uniquePipelineBinaries.push_back( UniqueHandle<PipelineBinaryKHR, Dispatch>( pipelineBinary, deleter ) );
29354 }
29355 return ResultValue<std::vector<UniqueHandle<PipelineBinaryKHR, Dispatch>, PipelineBinaryKHRAllocator>>( result, std::move( uniquePipelineBinaries ) );
29356 }
29357 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
29358 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29359
29360 // wrapper function for command vkDestroyPipelineBinaryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineBinaryKHR.html
29361 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineBinaryKHR ), bool>::type>
29362 VULKAN_HPP_INLINE void
29363 Device::destroyPipelineBinaryKHR( PipelineBinaryKHR pipelineBinary, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29364 {
29365 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29366 d.vkDestroyPipelineBinaryKHR(
29367 static_cast<VkDevice>( m_device ), static_cast<VkPipelineBinaryKHR>( pipelineBinary ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
29368 }
29369
29370 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29371 // wrapper function for command vkDestroyPipelineBinaryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineBinaryKHR.html
29372 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineBinaryKHR ), bool>::type>
29373 VULKAN_HPP_INLINE void Device::destroyPipelineBinaryKHR( PipelineBinaryKHR pipelineBinary,
29374 Optional<const AllocationCallbacks> allocator,
29375 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29376 {
29377 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29378 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29379 VULKAN_HPP_ASSERT( d.vkDestroyPipelineBinaryKHR && "Function <vkDestroyPipelineBinaryKHR> requires <VK_KHR_pipeline_binary>" );
29380 # endif
29381
29382 d.vkDestroyPipelineBinaryKHR(
29383 m_device, static_cast<VkPipelineBinaryKHR>( pipelineBinary ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
29384 }
29385 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29386
29387 // wrapper function for command vkDestroyPipelineBinaryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineBinaryKHR.html
29388 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineBinaryKHR ), bool>::type>
29389 VULKAN_HPP_INLINE void
29390 Device::destroy( PipelineBinaryKHR pipelineBinary, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29391 {
29392 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29393 d.vkDestroyPipelineBinaryKHR(
29394 static_cast<VkDevice>( m_device ), static_cast<VkPipelineBinaryKHR>( pipelineBinary ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
29395 }
29396
29397 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29398 // wrapper function for command vkDestroyPipelineBinaryKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyPipelineBinaryKHR.html
29399 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyPipelineBinaryKHR ), bool>::type>
29400 VULKAN_HPP_INLINE void
29401 Device::destroy( PipelineBinaryKHR pipelineBinary, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29402 {
29403 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29404 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29405 VULKAN_HPP_ASSERT( d.vkDestroyPipelineBinaryKHR && "Function <vkDestroyPipelineBinaryKHR> requires <VK_KHR_pipeline_binary>" );
29406 # endif
29407
29408 d.vkDestroyPipelineBinaryKHR(
29409 m_device, static_cast<VkPipelineBinaryKHR>( pipelineBinary ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
29410 }
29411 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29412
29413 // wrapper function for command vkGetPipelineKeyKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineKeyKHR.html
29414 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineKeyKHR ), bool>::type>
29415 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelineKeyKHR( const PipelineCreateInfoKHR * pPipelineCreateInfo,
29416 PipelineBinaryKeyKHR * pPipelineKey,
29417 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29418 {
29419 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29420 return static_cast<Result>( d.vkGetPipelineKeyKHR( static_cast<VkDevice>( m_device ),
29421 reinterpret_cast<const VkPipelineCreateInfoKHR *>( pPipelineCreateInfo ),
29422 reinterpret_cast<VkPipelineBinaryKeyKHR *>( pPipelineKey ) ) );
29423 }
29424
29425 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29426 // wrapper function for command vkGetPipelineKeyKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineKeyKHR.html
29427 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineKeyKHR ), bool>::type>
29428 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<PipelineBinaryKeyKHR>::type
29429 Device::getPipelineKeyKHR( Optional<const PipelineCreateInfoKHR> pipelineCreateInfo, Dispatch const & d ) const
29430 {
29431 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29432 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29433 VULKAN_HPP_ASSERT( d.vkGetPipelineKeyKHR && "Function <vkGetPipelineKeyKHR> requires <VK_KHR_pipeline_binary>" );
29434 # endif
29435
29436 PipelineBinaryKeyKHR pipelineKey;
29437 Result result = static_cast<Result>( d.vkGetPipelineKeyKHR(
29438 m_device, reinterpret_cast<const VkPipelineCreateInfoKHR *>( pipelineCreateInfo.get() ), reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineKey ) ) );
29439 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineKeyKHR" );
29440
29441 return detail::createResultValueType( result, std::move( pipelineKey ) );
29442 }
29443 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29444
29445 // wrapper function for command vkGetPipelineBinaryDataKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineBinaryDataKHR.html
29446 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPipelineBinaryDataKHR ), bool>::type>
29447 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getPipelineBinaryDataKHR( const PipelineBinaryDataInfoKHR * pInfo,
29448 PipelineBinaryKeyKHR * pPipelineBinaryKey,
29449 size_t * pPipelineBinaryDataSize,
29450 void * pPipelineBinaryData,
29451 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29452 {
29453 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29454 return static_cast<Result>( d.vkGetPipelineBinaryDataKHR( static_cast<VkDevice>( m_device ),
29455 reinterpret_cast<const VkPipelineBinaryDataInfoKHR *>( pInfo ),
29456 reinterpret_cast<VkPipelineBinaryKeyKHR *>( pPipelineBinaryKey ),
29457 pPipelineBinaryDataSize,
29458 pPipelineBinaryData ) );
29459 }
29460
29461 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29462 // wrapper function for command vkGetPipelineBinaryDataKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineBinaryDataKHR.html
29463 template <typename Uint8_tAllocator,
29464 typename Dispatch,
29465 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
29466 typename std::enable_if<IS_DISPATCHED( vkGetPipelineBinaryDataKHR ), bool>::type>
29467 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<PipelineBinaryKeyKHR, std::vector<uint8_t, Uint8_tAllocator>>>::type
29468 Device::getPipelineBinaryDataKHR( const PipelineBinaryDataInfoKHR & info, Dispatch const & d ) const
29469 {
29470 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29471 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29472 VULKAN_HPP_ASSERT( d.vkGetPipelineBinaryDataKHR && "Function <vkGetPipelineBinaryDataKHR> requires <VK_KHR_pipeline_binary>" );
29473 # endif
29474
29475 std::pair<PipelineBinaryKeyKHR, std::vector<uint8_t, Uint8_tAllocator>> data_;
29476 PipelineBinaryKeyKHR & pipelineBinaryKey = data_.first;
29477 std::vector<uint8_t, Uint8_tAllocator> & pipelineBinaryData = data_.second;
29478 size_t pipelineBinaryDataSize;
29479 Result result = static_cast<Result>( d.vkGetPipelineBinaryDataKHR( m_device,
29480 reinterpret_cast<const VkPipelineBinaryDataInfoKHR *>( &info ),
29481 reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineBinaryKey ),
29482 &pipelineBinaryDataSize,
29483 nullptr ) );
29484 if ( result == Result::eSuccess )
29485 {
29486 pipelineBinaryData.resize( pipelineBinaryDataSize );
29487 result = static_cast<Result>( d.vkGetPipelineBinaryDataKHR( m_device,
29488 reinterpret_cast<const VkPipelineBinaryDataInfoKHR *>( &info ),
29489 reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineBinaryKey ),
29490 &pipelineBinaryDataSize,
29491 reinterpret_cast<void *>( pipelineBinaryData.data() ) ) );
29492 }
29493
29494 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineBinaryDataKHR" );
29495
29496 return detail::createResultValueType( result, std::move( data_ ) );
29497 }
29498
29499 // wrapper function for command vkGetPipelineBinaryDataKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPipelineBinaryDataKHR.html
29500 template <typename Uint8_tAllocator,
29501 typename Dispatch,
29502 typename std::enable_if<std::is_same<typename Uint8_tAllocator::value_type, uint8_t>::value, int>::type,
29503 typename std::enable_if<IS_DISPATCHED( vkGetPipelineBinaryDataKHR ), bool>::type>
29504 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<PipelineBinaryKeyKHR, std::vector<uint8_t, Uint8_tAllocator>>>::type
29505 Device::getPipelineBinaryDataKHR( const PipelineBinaryDataInfoKHR & info, Uint8_tAllocator const & uint8_tAllocator, Dispatch const & d ) const
29506 {
29507 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29508 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29509 VULKAN_HPP_ASSERT( d.vkGetPipelineBinaryDataKHR && "Function <vkGetPipelineBinaryDataKHR> requires <VK_KHR_pipeline_binary>" );
29510 # endif
29511
29512 std::pair<PipelineBinaryKeyKHR, std::vector<uint8_t, Uint8_tAllocator>> data_(
29513 std::piecewise_construct, std::forward_as_tuple(), std::forward_as_tuple( uint8_tAllocator ) );
29514 PipelineBinaryKeyKHR & pipelineBinaryKey = data_.first;
29515 std::vector<uint8_t, Uint8_tAllocator> & pipelineBinaryData = data_.second;
29516 size_t pipelineBinaryDataSize;
29517 Result result = static_cast<Result>( d.vkGetPipelineBinaryDataKHR( m_device,
29518 reinterpret_cast<const VkPipelineBinaryDataInfoKHR *>( &info ),
29519 reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineBinaryKey ),
29520 &pipelineBinaryDataSize,
29521 nullptr ) );
29522 if ( result == Result::eSuccess )
29523 {
29524 pipelineBinaryData.resize( pipelineBinaryDataSize );
29525 result = static_cast<Result>( d.vkGetPipelineBinaryDataKHR( m_device,
29526 reinterpret_cast<const VkPipelineBinaryDataInfoKHR *>( &info ),
29527 reinterpret_cast<VkPipelineBinaryKeyKHR *>( &pipelineBinaryKey ),
29528 &pipelineBinaryDataSize,
29529 reinterpret_cast<void *>( pipelineBinaryData.data() ) ) );
29530 }
29531
29532 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getPipelineBinaryDataKHR" );
29533
29534 return detail::createResultValueType( result, std::move( data_ ) );
29535 }
29536 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29537
29538 // wrapper function for command vkReleaseCapturedPipelineDataKHR, see
29539 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseCapturedPipelineDataKHR.html
29540 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseCapturedPipelineDataKHR ), bool>::type>
29541 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::releaseCapturedPipelineDataKHR( const ReleaseCapturedPipelineDataInfoKHR * pInfo,
29542 const AllocationCallbacks * pAllocator,
29543 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29544 {
29545 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29546 return static_cast<Result>( d.vkReleaseCapturedPipelineDataKHR( static_cast<VkDevice>( m_device ),
29547 reinterpret_cast<const VkReleaseCapturedPipelineDataInfoKHR *>( pInfo ),
29548 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) ) );
29549 }
29550
29551 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29552 // wrapper function for command vkReleaseCapturedPipelineDataKHR, see
29553 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseCapturedPipelineDataKHR.html
29554 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseCapturedPipelineDataKHR ), bool>::type>
29555 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type Device::releaseCapturedPipelineDataKHR(
29556 const ReleaseCapturedPipelineDataInfoKHR & info, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
29557 {
29558 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29559 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29560 VULKAN_HPP_ASSERT( d.vkReleaseCapturedPipelineDataKHR && "Function <vkReleaseCapturedPipelineDataKHR> requires <VK_KHR_pipeline_binary>" );
29561 # endif
29562
29563 Result result = static_cast<Result>( d.vkReleaseCapturedPipelineDataKHR(
29564 m_device, reinterpret_cast<const VkReleaseCapturedPipelineDataInfoKHR *>( &info ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) ) );
29565 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releaseCapturedPipelineDataKHR" );
29566
29567 return detail::createResultValueType( result );
29568 }
29569 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29570
29571 //=== VK_QCOM_tile_properties ===
29572
29573 // wrapper function for command vkGetFramebufferTilePropertiesQCOM, see
29574 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFramebufferTilePropertiesQCOM.html
29575 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetFramebufferTilePropertiesQCOM ), bool>::type>
29576 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getFramebufferTilePropertiesQCOM( Framebuffer framebuffer,
29577 uint32_t * pPropertiesCount,
29578 TilePropertiesQCOM * pProperties,
29579 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29580 {
29581 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29582 return static_cast<Result>( d.vkGetFramebufferTilePropertiesQCOM( static_cast<VkDevice>( m_device ),
29583 static_cast<VkFramebuffer>( framebuffer ),
29584 pPropertiesCount,
29585 reinterpret_cast<VkTilePropertiesQCOM *>( pProperties ) ) );
29586 }
29587
29588 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29589 // wrapper function for command vkGetFramebufferTilePropertiesQCOM, see
29590 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFramebufferTilePropertiesQCOM.html
29591 template <typename TilePropertiesQCOMAllocator,
29592 typename Dispatch,
29593 typename std::enable_if<std::is_same<typename TilePropertiesQCOMAllocator::value_type, TilePropertiesQCOM>::value, int>::type,
29594 typename std::enable_if<IS_DISPATCHED( vkGetFramebufferTilePropertiesQCOM ), bool>::type>
29595 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TilePropertiesQCOM, TilePropertiesQCOMAllocator>>::type
29596 Device::getFramebufferTilePropertiesQCOM( Framebuffer framebuffer, Dispatch const & d ) const
29597 {
29598 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29599 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29600 VULKAN_HPP_ASSERT( d.vkGetFramebufferTilePropertiesQCOM && "Function <vkGetFramebufferTilePropertiesQCOM> requires <VK_QCOM_tile_properties>" );
29601 # endif
29602
29603 std::vector<TilePropertiesQCOM, TilePropertiesQCOMAllocator> properties;
29604 uint32_t propertiesCount;
29605 Result result;
29606 do
29607 {
29608 result = static_cast<Result>( d.vkGetFramebufferTilePropertiesQCOM( m_device, static_cast<VkFramebuffer>( framebuffer ), &propertiesCount, nullptr ) );
29609 if ( ( result == Result::eSuccess ) && propertiesCount )
29610 {
29611 properties.resize( propertiesCount );
29612 result = static_cast<Result>( d.vkGetFramebufferTilePropertiesQCOM(
29613 m_device, static_cast<VkFramebuffer>( framebuffer ), &propertiesCount, reinterpret_cast<VkTilePropertiesQCOM *>( properties.data() ) ) );
29614 }
29615 } while ( result == Result::eIncomplete );
29616 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFramebufferTilePropertiesQCOM" );
29617 VULKAN_HPP_ASSERT( propertiesCount <= properties.size() );
29618 if ( propertiesCount < properties.size() )
29619 {
29620 properties.resize( propertiesCount );
29621 }
29622 return detail::createResultValueType( result, std::move( properties ) );
29623 }
29624
29625 // wrapper function for command vkGetFramebufferTilePropertiesQCOM, see
29626 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetFramebufferTilePropertiesQCOM.html
29627 template <typename TilePropertiesQCOMAllocator,
29628 typename Dispatch,
29629 typename std::enable_if<std::is_same<typename TilePropertiesQCOMAllocator::value_type, TilePropertiesQCOM>::value, int>::type,
29630 typename std::enable_if<IS_DISPATCHED( vkGetFramebufferTilePropertiesQCOM ), bool>::type>
29631 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TilePropertiesQCOM, TilePropertiesQCOMAllocator>>::type
29632 Device::getFramebufferTilePropertiesQCOM( Framebuffer framebuffer,
29633 TilePropertiesQCOMAllocator const & tilePropertiesQCOMAllocator,
29634 Dispatch const & d ) const
29635 {
29636 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29637 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29638 VULKAN_HPP_ASSERT( d.vkGetFramebufferTilePropertiesQCOM && "Function <vkGetFramebufferTilePropertiesQCOM> requires <VK_QCOM_tile_properties>" );
29639 # endif
29640
29641 std::vector<TilePropertiesQCOM, TilePropertiesQCOMAllocator> properties( tilePropertiesQCOMAllocator );
29642 uint32_t propertiesCount;
29643 Result result;
29644 do
29645 {
29646 result = static_cast<Result>( d.vkGetFramebufferTilePropertiesQCOM( m_device, static_cast<VkFramebuffer>( framebuffer ), &propertiesCount, nullptr ) );
29647 if ( ( result == Result::eSuccess ) && propertiesCount )
29648 {
29649 properties.resize( propertiesCount );
29650 result = static_cast<Result>( d.vkGetFramebufferTilePropertiesQCOM(
29651 m_device, static_cast<VkFramebuffer>( framebuffer ), &propertiesCount, reinterpret_cast<VkTilePropertiesQCOM *>( properties.data() ) ) );
29652 }
29653 } while ( result == Result::eIncomplete );
29654 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getFramebufferTilePropertiesQCOM" );
29655 VULKAN_HPP_ASSERT( propertiesCount <= properties.size() );
29656 if ( propertiesCount < properties.size() )
29657 {
29658 properties.resize( propertiesCount );
29659 }
29660 return detail::createResultValueType( result, std::move( properties ) );
29661 }
29662 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29663
29664 // wrapper function for command vkGetDynamicRenderingTilePropertiesQCOM, see
29665 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDynamicRenderingTilePropertiesQCOM.html
29666 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDynamicRenderingTilePropertiesQCOM ), bool>::type>
29667 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getDynamicRenderingTilePropertiesQCOM( const RenderingInfo * pRenderingInfo,
29668 TilePropertiesQCOM * pProperties,
29669 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29670 {
29671 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29672 return static_cast<Result>( d.vkGetDynamicRenderingTilePropertiesQCOM( static_cast<VkDevice>( m_device ),
29673 reinterpret_cast<const VkRenderingInfo *>( pRenderingInfo ),
29674 reinterpret_cast<VkTilePropertiesQCOM *>( pProperties ) ) );
29675 }
29676
29677 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29678 // wrapper function for command vkGetDynamicRenderingTilePropertiesQCOM, see
29679 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDynamicRenderingTilePropertiesQCOM.html
29680 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDynamicRenderingTilePropertiesQCOM ), bool>::type>
29681 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<TilePropertiesQCOM>::type
29682 Device::getDynamicRenderingTilePropertiesQCOM( const RenderingInfo & renderingInfo, Dispatch const & d ) const
29683 {
29684 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29685 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29686 VULKAN_HPP_ASSERT( d.vkGetDynamicRenderingTilePropertiesQCOM && "Function <vkGetDynamicRenderingTilePropertiesQCOM> requires <VK_QCOM_tile_properties>" );
29687 # endif
29688
29689 TilePropertiesQCOM properties;
29690 Result result = static_cast<Result>( d.vkGetDynamicRenderingTilePropertiesQCOM(
29691 m_device, reinterpret_cast<const VkRenderingInfo *>( &renderingInfo ), reinterpret_cast<VkTilePropertiesQCOM *>( &properties ) ) );
29692 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDynamicRenderingTilePropertiesQCOM" );
29693
29694 return detail::createResultValueType( result, std::move( properties ) );
29695 }
29696 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29697
29698 //=== VK_KHR_swapchain_maintenance1 ===
29699
29700 // wrapper function for command vkReleaseSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseSwapchainImagesKHR.html
29701 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseSwapchainImagesKHR ), bool>::type>
29702 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::releaseSwapchainImagesKHR( const ReleaseSwapchainImagesInfoKHR * pReleaseInfo,
29703 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29704 {
29705 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29706 return static_cast<Result>(
29707 d.vkReleaseSwapchainImagesKHR( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkReleaseSwapchainImagesInfoKHR *>( pReleaseInfo ) ) );
29708 }
29709
29710 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29711 // wrapper function for command vkReleaseSwapchainImagesKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkReleaseSwapchainImagesKHR.html
29712 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkReleaseSwapchainImagesKHR ), bool>::type>
29713 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
29714 Device::releaseSwapchainImagesKHR( const ReleaseSwapchainImagesInfoKHR & releaseInfo, Dispatch const & d ) const
29715 {
29716 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29717 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29718 VULKAN_HPP_ASSERT( d.vkReleaseSwapchainImagesKHR &&
29719 "Function <vkReleaseSwapchainImagesKHR> requires <VK_EXT_swapchain_maintenance1> or <VK_KHR_swapchain_maintenance1>" );
29720 # endif
29721
29722 Result result = static_cast<Result>( d.vkReleaseSwapchainImagesKHR( m_device, reinterpret_cast<const VkReleaseSwapchainImagesInfoKHR *>( &releaseInfo ) ) );
29723 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::releaseSwapchainImagesKHR" );
29724
29725 return detail::createResultValueType( result );
29726 }
29727 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29728
29729 //=== VK_NV_cooperative_vector ===
29730
29731 // wrapper function for command vkGetPhysicalDeviceCooperativeVectorPropertiesNV, see
29732 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeVectorPropertiesNV.html
29733 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeVectorPropertiesNV ), bool>::type>
29734 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCooperativeVectorPropertiesNV( uint32_t * pPropertyCount,
29735 CooperativeVectorPropertiesNV * pProperties,
29736 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29737 {
29738 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29739 return static_cast<Result>( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV(
29740 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkCooperativeVectorPropertiesNV *>( pProperties ) ) );
29741 }
29742
29743 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29744 // wrapper function for command vkGetPhysicalDeviceCooperativeVectorPropertiesNV, see
29745 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeVectorPropertiesNV.html
29746 template <typename CooperativeVectorPropertiesNVAllocator,
29747 typename Dispatch,
29748 typename std::enable_if<std::is_same<typename CooperativeVectorPropertiesNVAllocator::value_type, CooperativeVectorPropertiesNV>::value, int>::type,
29749 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeVectorPropertiesNV ), bool>::type>
29750 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeVectorPropertiesNV, CooperativeVectorPropertiesNVAllocator>>::type
29751 PhysicalDevice::getCooperativeVectorPropertiesNV( Dispatch const & d ) const
29752 {
29753 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29754 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29755 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV &&
29756 "Function <vkGetPhysicalDeviceCooperativeVectorPropertiesNV> requires <VK_NV_cooperative_vector>" );
29757 # endif
29758
29759 std::vector<CooperativeVectorPropertiesNV, CooperativeVectorPropertiesNVAllocator> properties;
29760 uint32_t propertyCount;
29761 Result result;
29762 do
29763 {
29764 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) );
29765 if ( ( result == Result::eSuccess ) && propertyCount )
29766 {
29767 properties.resize( propertyCount );
29768 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV(
29769 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeVectorPropertiesNV *>( properties.data() ) ) );
29770 }
29771 } while ( result == Result::eIncomplete );
29772 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeVectorPropertiesNV" );
29773 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
29774 if ( propertyCount < properties.size() )
29775 {
29776 properties.resize( propertyCount );
29777 }
29778 return detail::createResultValueType( result, std::move( properties ) );
29779 }
29780
29781 // wrapper function for command vkGetPhysicalDeviceCooperativeVectorPropertiesNV, see
29782 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeVectorPropertiesNV.html
29783 template <typename CooperativeVectorPropertiesNVAllocator,
29784 typename Dispatch,
29785 typename std::enable_if<std::is_same<typename CooperativeVectorPropertiesNVAllocator::value_type, CooperativeVectorPropertiesNV>::value, int>::type,
29786 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeVectorPropertiesNV ), bool>::type>
29787 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeVectorPropertiesNV, CooperativeVectorPropertiesNVAllocator>>::type
29788 PhysicalDevice::getCooperativeVectorPropertiesNV( CooperativeVectorPropertiesNVAllocator const & cooperativeVectorPropertiesNVAllocator,
29789 Dispatch const & d ) const
29790 {
29791 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29792 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29793 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV &&
29794 "Function <vkGetPhysicalDeviceCooperativeVectorPropertiesNV> requires <VK_NV_cooperative_vector>" );
29795 # endif
29796
29797 std::vector<CooperativeVectorPropertiesNV, CooperativeVectorPropertiesNVAllocator> properties( cooperativeVectorPropertiesNVAllocator );
29798 uint32_t propertyCount;
29799 Result result;
29800 do
29801 {
29802 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) );
29803 if ( ( result == Result::eSuccess ) && propertyCount )
29804 {
29805 properties.resize( propertyCount );
29806 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeVectorPropertiesNV(
29807 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeVectorPropertiesNV *>( properties.data() ) ) );
29808 }
29809 } while ( result == Result::eIncomplete );
29810 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeVectorPropertiesNV" );
29811 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
29812 if ( propertyCount < properties.size() )
29813 {
29814 properties.resize( propertyCount );
29815 }
29816 return detail::createResultValueType( result, std::move( properties ) );
29817 }
29818 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29819
29820 // wrapper function for command vkConvertCooperativeVectorMatrixNV, see
29821 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkConvertCooperativeVectorMatrixNV.html
29822 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkConvertCooperativeVectorMatrixNV ), bool>::type>
29823 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::convertCooperativeVectorMatrixNV( const ConvertCooperativeVectorMatrixInfoNV * pInfo,
29824 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29825 {
29826 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29827 return static_cast<Result>(
29828 d.vkConvertCooperativeVectorMatrixNV( static_cast<VkDevice>( m_device ), reinterpret_cast<const VkConvertCooperativeVectorMatrixInfoNV *>( pInfo ) ) );
29829 }
29830
29831 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29832 // wrapper function for command vkConvertCooperativeVectorMatrixNV, see
29833 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkConvertCooperativeVectorMatrixNV.html
29834 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkConvertCooperativeVectorMatrixNV ), bool>::type>
29835 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::convertCooperativeVectorMatrixNV( const ConvertCooperativeVectorMatrixInfoNV & info,
29836 Dispatch const & d ) const
29837 {
29838 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29839 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29840 VULKAN_HPP_ASSERT( d.vkConvertCooperativeVectorMatrixNV && "Function <vkConvertCooperativeVectorMatrixNV> requires <VK_NV_cooperative_vector>" );
29841 # endif
29842
29843 Result result =
29844 static_cast<Result>( d.vkConvertCooperativeVectorMatrixNV( m_device, reinterpret_cast<const VkConvertCooperativeVectorMatrixInfoNV *>( &info ) ) );
29845 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::convertCooperativeVectorMatrixNV", { Result::eSuccess, Result::eIncomplete } );
29846
29847 return static_cast<Result>( result );
29848 }
29849 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29850
29851 // wrapper function for command vkCmdConvertCooperativeVectorMatrixNV, see
29852 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdConvertCooperativeVectorMatrixNV.html
29853 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdConvertCooperativeVectorMatrixNV ), bool>::type>
29854 VULKAN_HPP_INLINE void CommandBuffer::convertCooperativeVectorMatrixNV( uint32_t infoCount,
29855 const ConvertCooperativeVectorMatrixInfoNV * pInfos,
29856 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29857 {
29858 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29859 d.vkCmdConvertCooperativeVectorMatrixNV(
29860 static_cast<VkCommandBuffer>( m_commandBuffer ), infoCount, reinterpret_cast<const VkConvertCooperativeVectorMatrixInfoNV *>( pInfos ) );
29861 }
29862
29863 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29864 // wrapper function for command vkCmdConvertCooperativeVectorMatrixNV, see
29865 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdConvertCooperativeVectorMatrixNV.html
29866 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdConvertCooperativeVectorMatrixNV ), bool>::type>
29867 VULKAN_HPP_INLINE void CommandBuffer::convertCooperativeVectorMatrixNV( ArrayProxy<const ConvertCooperativeVectorMatrixInfoNV> const & infos,
29868 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29869 {
29870 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29871 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29872 VULKAN_HPP_ASSERT( d.vkCmdConvertCooperativeVectorMatrixNV && "Function <vkCmdConvertCooperativeVectorMatrixNV> requires <VK_NV_cooperative_vector>" );
29873 # endif
29874
29875 d.vkCmdConvertCooperativeVectorMatrixNV( m_commandBuffer, infos.size(), reinterpret_cast<const VkConvertCooperativeVectorMatrixInfoNV *>( infos.data() ) );
29876 }
29877 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29878
29879 //=== VK_NV_low_latency2 ===
29880
29881 // wrapper function for command vkSetLatencySleepModeNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencySleepModeNV.html
29882 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetLatencySleepModeNV ), bool>::type>
29883 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::setLatencySleepModeNV( SwapchainKHR swapchain,
29884 const LatencySleepModeInfoNV * pSleepModeInfo,
29885 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29886 {
29887 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29888 return static_cast<Result>( d.vkSetLatencySleepModeNV(
29889 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<const VkLatencySleepModeInfoNV *>( pSleepModeInfo ) ) );
29890 }
29891
29892 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29893 // wrapper function for command vkSetLatencySleepModeNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencySleepModeNV.html
29894 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetLatencySleepModeNV ), bool>::type>
29895 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
29896 Device::setLatencySleepModeNV( SwapchainKHR swapchain, const LatencySleepModeInfoNV & sleepModeInfo, Dispatch const & d ) const
29897 {
29898 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29899 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29900 VULKAN_HPP_ASSERT( d.vkSetLatencySleepModeNV && "Function <vkSetLatencySleepModeNV> requires <VK_NV_low_latency2>" );
29901 # endif
29902
29903 Result result = static_cast<Result>(
29904 d.vkSetLatencySleepModeNV( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<const VkLatencySleepModeInfoNV *>( &sleepModeInfo ) ) );
29905 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::setLatencySleepModeNV" );
29906
29907 return detail::createResultValueType( result );
29908 }
29909 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29910
29911 // wrapper function for command vkLatencySleepNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkLatencySleepNV.html
29912 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkLatencySleepNV ), bool>::type>
29913 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::latencySleepNV( SwapchainKHR swapchain,
29914 const LatencySleepInfoNV * pSleepInfo,
29915 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29916 {
29917 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29918 return static_cast<Result>( d.vkLatencySleepNV(
29919 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<const VkLatencySleepInfoNV *>( pSleepInfo ) ) );
29920 }
29921
29922 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29923 // wrapper function for command vkLatencySleepNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkLatencySleepNV.html
29924 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkLatencySleepNV ), bool>::type>
29925 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
29926 Device::latencySleepNV( SwapchainKHR swapchain, const LatencySleepInfoNV & sleepInfo, Dispatch const & d ) const
29927 {
29928 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29929 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29930 VULKAN_HPP_ASSERT( d.vkLatencySleepNV && "Function <vkLatencySleepNV> requires <VK_NV_low_latency2>" );
29931 # endif
29932
29933 Result result = static_cast<Result>(
29934 d.vkLatencySleepNV( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<const VkLatencySleepInfoNV *>( &sleepInfo ) ) );
29935 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::latencySleepNV" );
29936
29937 return detail::createResultValueType( result );
29938 }
29939 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29940
29941 // wrapper function for command vkSetLatencyMarkerNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencyMarkerNV.html
29942 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetLatencyMarkerNV ), bool>::type>
29943 VULKAN_HPP_INLINE void
29944 Device::setLatencyMarkerNV( SwapchainKHR swapchain, const SetLatencyMarkerInfoNV * pLatencyMarkerInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29945 {
29946 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29947 d.vkSetLatencyMarkerNV(
29948 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<const VkSetLatencyMarkerInfoNV *>( pLatencyMarkerInfo ) );
29949 }
29950
29951 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29952 // wrapper function for command vkSetLatencyMarkerNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkSetLatencyMarkerNV.html
29953 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkSetLatencyMarkerNV ), bool>::type>
29954 VULKAN_HPP_INLINE void
29955 Device::setLatencyMarkerNV( SwapchainKHR swapchain, const SetLatencyMarkerInfoNV & latencyMarkerInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29956 {
29957 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29958 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29959 VULKAN_HPP_ASSERT( d.vkSetLatencyMarkerNV && "Function <vkSetLatencyMarkerNV> requires <VK_NV_low_latency2>" );
29960 # endif
29961
29962 d.vkSetLatencyMarkerNV( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<const VkSetLatencyMarkerInfoNV *>( &latencyMarkerInfo ) );
29963 }
29964 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
29965
29966 // wrapper function for command vkGetLatencyTimingsNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsNV.html
29967 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetLatencyTimingsNV ), bool>::type>
29968 VULKAN_HPP_INLINE void
29969 Device::getLatencyTimingsNV( SwapchainKHR swapchain, GetLatencyMarkerInfoNV * pLatencyMarkerInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
29970 {
29971 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29972 d.vkGetLatencyTimingsNV(
29973 static_cast<VkDevice>( m_device ), static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkGetLatencyMarkerInfoNV *>( pLatencyMarkerInfo ) );
29974 }
29975
29976 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
29977 // wrapper function for command vkGetLatencyTimingsNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsNV.html
29978 template <typename LatencyTimingsFrameReportNVAllocator,
29979 typename Dispatch,
29980 typename std::enable_if<std::is_same<typename LatencyTimingsFrameReportNVAllocator::value_type, LatencyTimingsFrameReportNV>::value, int>::type,
29981 typename std::enable_if<IS_DISPATCHED( vkGetLatencyTimingsNV ), bool>::type>
29982 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<LatencyTimingsFrameReportNV, LatencyTimingsFrameReportNVAllocator>
29983 Device::getLatencyTimingsNV( SwapchainKHR swapchain, Dispatch const & d ) const
29984 {
29985 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
29986 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
29987 VULKAN_HPP_ASSERT( d.vkGetLatencyTimingsNV && "Function <vkGetLatencyTimingsNV> requires <VK_NV_low_latency2>" );
29988 # endif
29989
29990 std::vector<LatencyTimingsFrameReportNV, LatencyTimingsFrameReportNVAllocator> timings;
29991 GetLatencyMarkerInfoNV latencyMarkerInfo;
29992 d.vkGetLatencyTimingsNV( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkGetLatencyMarkerInfoNV *>( &latencyMarkerInfo ) );
29993 timings.resize( latencyMarkerInfo.timingCount );
29994 latencyMarkerInfo.pTimings = timings.data();
29995 d.vkGetLatencyTimingsNV( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkGetLatencyMarkerInfoNV *>( &latencyMarkerInfo ) );
29996
29997 return timings;
29998 }
29999
30000 // wrapper function for command vkGetLatencyTimingsNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetLatencyTimingsNV.html
30001 template <typename LatencyTimingsFrameReportNVAllocator,
30002 typename Dispatch,
30003 typename std::enable_if<std::is_same<typename LatencyTimingsFrameReportNVAllocator::value_type, LatencyTimingsFrameReportNV>::value, int>::type,
30004 typename std::enable_if<IS_DISPATCHED( vkGetLatencyTimingsNV ), bool>::type>
30005 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::vector<LatencyTimingsFrameReportNV, LatencyTimingsFrameReportNVAllocator> Device::getLatencyTimingsNV(
30006 SwapchainKHR swapchain, LatencyTimingsFrameReportNVAllocator const & latencyTimingsFrameReportNVAllocator, Dispatch const & d ) const
30007 {
30008 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30009 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30010 VULKAN_HPP_ASSERT( d.vkGetLatencyTimingsNV && "Function <vkGetLatencyTimingsNV> requires <VK_NV_low_latency2>" );
30011 # endif
30012
30013 std::vector<LatencyTimingsFrameReportNV, LatencyTimingsFrameReportNVAllocator> timings( latencyTimingsFrameReportNVAllocator );
30014 GetLatencyMarkerInfoNV latencyMarkerInfo;
30015 d.vkGetLatencyTimingsNV( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkGetLatencyMarkerInfoNV *>( &latencyMarkerInfo ) );
30016 timings.resize( latencyMarkerInfo.timingCount );
30017 latencyMarkerInfo.pTimings = timings.data();
30018 d.vkGetLatencyTimingsNV( m_device, static_cast<VkSwapchainKHR>( swapchain ), reinterpret_cast<VkGetLatencyMarkerInfoNV *>( &latencyMarkerInfo ) );
30019
30020 return timings;
30021 }
30022 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30023
30024 // wrapper function for command vkQueueNotifyOutOfBandNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueNotifyOutOfBandNV.html
30025 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueNotifyOutOfBandNV ), bool>::type>
30026 VULKAN_HPP_INLINE void Queue::notifyOutOfBandNV( const OutOfBandQueueTypeInfoNV * pQueueTypeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30027 {
30028 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30029 d.vkQueueNotifyOutOfBandNV( static_cast<VkQueue>( m_queue ), reinterpret_cast<const VkOutOfBandQueueTypeInfoNV *>( pQueueTypeInfo ) );
30030 }
30031
30032 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30033 // wrapper function for command vkQueueNotifyOutOfBandNV, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkQueueNotifyOutOfBandNV.html
30034 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkQueueNotifyOutOfBandNV ), bool>::type>
30035 VULKAN_HPP_INLINE void Queue::notifyOutOfBandNV( const OutOfBandQueueTypeInfoNV & queueTypeInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30036 {
30037 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30038 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30039 VULKAN_HPP_ASSERT( d.vkQueueNotifyOutOfBandNV && "Function <vkQueueNotifyOutOfBandNV> requires <VK_NV_low_latency2>" );
30040 # endif
30041
30042 d.vkQueueNotifyOutOfBandNV( m_queue, reinterpret_cast<const VkOutOfBandQueueTypeInfoNV *>( &queueTypeInfo ) );
30043 }
30044 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30045
30046 //=== VK_KHR_cooperative_matrix ===
30047
30048 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR, see
30049 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR.html
30050 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR ), bool>::type>
30051 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCooperativeMatrixPropertiesKHR( uint32_t * pPropertyCount,
30052 CooperativeMatrixPropertiesKHR * pProperties,
30053 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30054 {
30055 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30056 return static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR(
30057 static_cast<VkPhysicalDevice>( m_physicalDevice ), pPropertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesKHR *>( pProperties ) ) );
30058 }
30059
30060 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30061 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR, see
30062 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR.html
30063 template <
30064 typename CooperativeMatrixPropertiesKHRAllocator,
30065 typename Dispatch,
30066 typename std::enable_if<std::is_same<typename CooperativeMatrixPropertiesKHRAllocator::value_type, CooperativeMatrixPropertiesKHR>::value, int>::type,
30067 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR ), bool>::type>
30068 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeMatrixPropertiesKHR, CooperativeMatrixPropertiesKHRAllocator>>::type
30069 PhysicalDevice::getCooperativeMatrixPropertiesKHR( Dispatch const & d ) const
30070 {
30071 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30072 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30073 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR &&
30074 "Function <vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR> requires <VK_KHR_cooperative_matrix>" );
30075 # endif
30076
30077 std::vector<CooperativeMatrixPropertiesKHR, CooperativeMatrixPropertiesKHRAllocator> properties;
30078 uint32_t propertyCount;
30079 Result result;
30080 do
30081 {
30082 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
30083 if ( ( result == Result::eSuccess ) && propertyCount )
30084 {
30085 properties.resize( propertyCount );
30086 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR(
30087 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesKHR *>( properties.data() ) ) );
30088 }
30089 } while ( result == Result::eIncomplete );
30090 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesKHR" );
30091 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
30092 if ( propertyCount < properties.size() )
30093 {
30094 properties.resize( propertyCount );
30095 }
30096 return detail::createResultValueType( result, std::move( properties ) );
30097 }
30098
30099 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR, see
30100 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR.html
30101 template <
30102 typename CooperativeMatrixPropertiesKHRAllocator,
30103 typename Dispatch,
30104 typename std::enable_if<std::is_same<typename CooperativeMatrixPropertiesKHRAllocator::value_type, CooperativeMatrixPropertiesKHR>::value, int>::type,
30105 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR ), bool>::type>
30106 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<CooperativeMatrixPropertiesKHR, CooperativeMatrixPropertiesKHRAllocator>>::type
30107 PhysicalDevice::getCooperativeMatrixPropertiesKHR( CooperativeMatrixPropertiesKHRAllocator const & cooperativeMatrixPropertiesKHRAllocator,
30108 Dispatch const & d ) const
30109 {
30110 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30111 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30112 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR &&
30113 "Function <vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR> requires <VK_KHR_cooperative_matrix>" );
30114 # endif
30115
30116 std::vector<CooperativeMatrixPropertiesKHR, CooperativeMatrixPropertiesKHRAllocator> properties( cooperativeMatrixPropertiesKHRAllocator );
30117 uint32_t propertyCount;
30118 Result result;
30119 do
30120 {
30121 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
30122 if ( ( result == Result::eSuccess ) && propertyCount )
30123 {
30124 properties.resize( propertyCount );
30125 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR(
30126 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeMatrixPropertiesKHR *>( properties.data() ) ) );
30127 }
30128 } while ( result == Result::eIncomplete );
30129 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixPropertiesKHR" );
30130 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
30131 if ( propertyCount < properties.size() )
30132 {
30133 properties.resize( propertyCount );
30134 }
30135 return detail::createResultValueType( result, std::move( properties ) );
30136 }
30137 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30138
30139 //=== VK_ARM_data_graph ===
30140
30141 // wrapper function for command vkCreateDataGraphPipelinesARM, see
30142 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
30143 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
30144 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDataGraphPipelinesARM( DeferredOperationKHR deferredOperation,
30145 PipelineCache pipelineCache,
30146 uint32_t createInfoCount,
30147 const DataGraphPipelineCreateInfoARM * pCreateInfos,
30148 const AllocationCallbacks * pAllocator,
30149 Pipeline * pPipelines,
30150 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30151 {
30152 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30153 return static_cast<Result>( d.vkCreateDataGraphPipelinesARM( static_cast<VkDevice>( m_device ),
30154 static_cast<VkDeferredOperationKHR>( deferredOperation ),
30155 static_cast<VkPipelineCache>( pipelineCache ),
30156 createInfoCount,
30157 reinterpret_cast<const VkDataGraphPipelineCreateInfoARM *>( pCreateInfos ),
30158 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
30159 reinterpret_cast<VkPipeline *>( pPipelines ) ) );
30160 }
30161
30162 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30163 // wrapper function for command vkCreateDataGraphPipelinesARM, see
30164 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
30165 template <typename PipelineAllocator,
30166 typename Dispatch,
30167 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
30168 typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
30169 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>>
30170 Device::createDataGraphPipelinesARM( DeferredOperationKHR deferredOperation,
30171 PipelineCache pipelineCache,
30172 ArrayProxy<const DataGraphPipelineCreateInfoARM> const & createInfos,
30173 Optional<const AllocationCallbacks> allocator,
30174 Dispatch const & d ) const
30175 {
30176 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30177 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30178 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
30179 # endif
30180
30181 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size() );
30182 Result result = static_cast<Result>( d.vkCreateDataGraphPipelinesARM( m_device,
30183 static_cast<VkDeferredOperationKHR>( deferredOperation ),
30184 static_cast<VkPipelineCache>( pipelineCache ),
30185 createInfos.size(),
30186 reinterpret_cast<const VkDataGraphPipelineCreateInfoARM *>( createInfos.data() ),
30187 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
30188 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
30189 detail::resultCheck( result,
30190 VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelinesARM",
30191 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
30192 m_device,
30193 pipelines,
30194 allocator.get(),
30195 d );
30196
30197 return ResultValue<std::vector<Pipeline, PipelineAllocator>>( result, std::move( pipelines ) );
30198 }
30199
30200 // wrapper function for command vkCreateDataGraphPipelinesARM, see
30201 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
30202 template <typename PipelineAllocator,
30203 typename Dispatch,
30204 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, Pipeline>::value, int>::type,
30205 typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
30206 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<Pipeline, PipelineAllocator>>
30207 Device::createDataGraphPipelinesARM( DeferredOperationKHR deferredOperation,
30208 PipelineCache pipelineCache,
30209 ArrayProxy<const DataGraphPipelineCreateInfoARM> const & createInfos,
30210 Optional<const AllocationCallbacks> allocator,
30211 PipelineAllocator const & pipelineAllocator,
30212 Dispatch const & d ) const
30213 {
30214 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30215 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30216 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
30217 # endif
30218
30219 std::vector<Pipeline, PipelineAllocator> pipelines( createInfos.size(), {}, pipelineAllocator );
30220 Result result = static_cast<Result>( d.vkCreateDataGraphPipelinesARM( m_device,
30221 static_cast<VkDeferredOperationKHR>( deferredOperation ),
30222 static_cast<VkPipelineCache>( pipelineCache ),
30223 createInfos.size(),
30224 reinterpret_cast<const VkDataGraphPipelineCreateInfoARM *>( createInfos.data() ),
30225 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
30226 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
30227 detail::resultCheck( result,
30228 VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelinesARM",
30229 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
30230 m_device,
30231 pipelines,
30232 allocator.get(),
30233 d );
30234
30235 return ResultValue<std::vector<Pipeline, PipelineAllocator>>( result, std::move( pipelines ) );
30236 }
30237
30238 // wrapper function for command vkCreateDataGraphPipelinesARM, see
30239 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
30240 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
30241 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<Pipeline> Device::createDataGraphPipelineARM( DeferredOperationKHR deferredOperation,
30242 PipelineCache pipelineCache,
30243 const DataGraphPipelineCreateInfoARM & createInfo,
30244 Optional<const AllocationCallbacks> allocator,
30245 Dispatch const & d ) const
30246 {
30247 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30248 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30249 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
30250 # endif
30251
30252 Pipeline pipeline;
30253 Result result = static_cast<Result>( d.vkCreateDataGraphPipelinesARM( m_device,
30254 static_cast<VkDeferredOperationKHR>( deferredOperation ),
30255 static_cast<VkPipelineCache>( pipelineCache ),
30256 1,
30257 reinterpret_cast<const VkDataGraphPipelineCreateInfoARM *>( &createInfo ),
30258 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
30259 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
30260 detail::resultCheck(
30261 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelineARM", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
30262
30263 return ResultValue<Pipeline>( result, std::move( pipeline ) );
30264 }
30265
30266 # ifndef VULKAN_HPP_NO_SMART_HANDLE
30267 // wrapper function for command vkCreateDataGraphPipelinesARM, see
30268 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
30269 template <typename Dispatch,
30270 typename PipelineAllocator,
30271 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
30272 typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
30273 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
30274 Device::createDataGraphPipelinesARMUnique( DeferredOperationKHR deferredOperation,
30275 PipelineCache pipelineCache,
30276 ArrayProxy<const DataGraphPipelineCreateInfoARM> const & createInfos,
30277 Optional<const AllocationCallbacks> allocator,
30278 Dispatch const & d ) const
30279 {
30280 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30281 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30282 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
30283 # endif
30284
30285 std::vector<Pipeline> pipelines( createInfos.size() );
30286 Result result = static_cast<Result>( d.vkCreateDataGraphPipelinesARM( m_device,
30287 static_cast<VkDeferredOperationKHR>( deferredOperation ),
30288 static_cast<VkPipelineCache>( pipelineCache ),
30289 createInfos.size(),
30290 reinterpret_cast<const VkDataGraphPipelineCreateInfoARM *>( createInfos.data() ),
30291 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
30292 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
30293 detail::resultCheck( result,
30294 VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelinesARMUnique",
30295 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
30296 m_device,
30297 pipelines,
30298 allocator.get(),
30299 d );
30300 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines;
30301 uniquePipelines.reserve( createInfos.size() );
30302 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
30303 for ( auto const & pipeline : pipelines )
30304 {
30305 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
30306 }
30307 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
30308 }
30309
30310 // wrapper function for command vkCreateDataGraphPipelinesARM, see
30311 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
30312 template <typename Dispatch,
30313 typename PipelineAllocator,
30314 typename std::enable_if<std::is_same<typename PipelineAllocator::value_type, UniqueHandle<Pipeline, Dispatch>>::value, int>::type,
30315 typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
30316 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>
30317 Device::createDataGraphPipelinesARMUnique( DeferredOperationKHR deferredOperation,
30318 PipelineCache pipelineCache,
30319 ArrayProxy<const DataGraphPipelineCreateInfoARM> const & createInfos,
30320 Optional<const AllocationCallbacks> allocator,
30321 PipelineAllocator const & pipelineAllocator,
30322 Dispatch const & d ) const
30323 {
30324 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30325 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30326 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
30327 # endif
30328
30329 std::vector<Pipeline> pipelines( createInfos.size() );
30330 Result result = static_cast<Result>( d.vkCreateDataGraphPipelinesARM( m_device,
30331 static_cast<VkDeferredOperationKHR>( deferredOperation ),
30332 static_cast<VkPipelineCache>( pipelineCache ),
30333 createInfos.size(),
30334 reinterpret_cast<const VkDataGraphPipelineCreateInfoARM *>( createInfos.data() ),
30335 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
30336 reinterpret_cast<VkPipeline *>( pipelines.data() ) ) );
30337 detail::resultCheck( result,
30338 VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelinesARMUnique",
30339 { Result::eSuccess, Result::ePipelineCompileRequiredEXT },
30340 m_device,
30341 pipelines,
30342 allocator.get(),
30343 d );
30344 std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator> uniquePipelines( pipelineAllocator );
30345 uniquePipelines.reserve( createInfos.size() );
30346 detail::ObjectDestroy<Device, Dispatch> deleter( *this, allocator, d );
30347 for ( auto const & pipeline : pipelines )
30348 {
30349 uniquePipelines.push_back( UniqueHandle<Pipeline, Dispatch>( pipeline, deleter ) );
30350 }
30351 return ResultValue<std::vector<UniqueHandle<Pipeline, Dispatch>, PipelineAllocator>>( result, std::move( uniquePipelines ) );
30352 }
30353
30354 // wrapper function for command vkCreateDataGraphPipelinesARM, see
30355 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelinesARM.html
30356 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelinesARM ), bool>::type>
30357 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE ResultValue<UniqueHandle<Pipeline, Dispatch>>
30358 Device::createDataGraphPipelineARMUnique( DeferredOperationKHR deferredOperation,
30359 PipelineCache pipelineCache,
30360 const DataGraphPipelineCreateInfoARM & createInfo,
30361 Optional<const AllocationCallbacks> allocator,
30362 Dispatch const & d ) const
30363 {
30364 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30365 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30366 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelinesARM && "Function <vkCreateDataGraphPipelinesARM> requires <VK_ARM_data_graph>" );
30367 # endif
30368
30369 Pipeline pipeline;
30370 Result result = static_cast<Result>( d.vkCreateDataGraphPipelinesARM( m_device,
30371 static_cast<VkDeferredOperationKHR>( deferredOperation ),
30372 static_cast<VkPipelineCache>( pipelineCache ),
30373 1,
30374 reinterpret_cast<const VkDataGraphPipelineCreateInfoARM *>( &createInfo ),
30375 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
30376 reinterpret_cast<VkPipeline *>( &pipeline ) ) );
30377 detail::resultCheck(
30378 result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelineARMUnique", { Result::eSuccess, Result::ePipelineCompileRequiredEXT } );
30379
30380 return ResultValue<UniqueHandle<Pipeline, Dispatch>>(
30381 result, UniqueHandle<Pipeline, Dispatch>( pipeline, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
30382 }
30383 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
30384 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30385
30386 // wrapper function for command vkCreateDataGraphPipelineSessionARM, see
30387 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelineSessionARM.html
30388 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelineSessionARM ), bool>::type>
30389 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createDataGraphPipelineSessionARM( const DataGraphPipelineSessionCreateInfoARM * pCreateInfo,
30390 const AllocationCallbacks * pAllocator,
30391 DataGraphPipelineSessionARM * pSession,
30392 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30393 {
30394 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30395 return static_cast<Result>( d.vkCreateDataGraphPipelineSessionARM( static_cast<VkDevice>( m_device ),
30396 reinterpret_cast<const VkDataGraphPipelineSessionCreateInfoARM *>( pCreateInfo ),
30397 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
30398 reinterpret_cast<VkDataGraphPipelineSessionARM *>( pSession ) ) );
30399 }
30400
30401 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30402 // wrapper function for command vkCreateDataGraphPipelineSessionARM, see
30403 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelineSessionARM.html
30404 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelineSessionARM ), bool>::type>
30405 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<DataGraphPipelineSessionARM>::type Device::createDataGraphPipelineSessionARM(
30406 const DataGraphPipelineSessionCreateInfoARM & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
30407 {
30408 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30409 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30410 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelineSessionARM && "Function <vkCreateDataGraphPipelineSessionARM> requires <VK_ARM_data_graph>" );
30411 # endif
30412
30413 DataGraphPipelineSessionARM session;
30414 Result result =
30415 static_cast<Result>( d.vkCreateDataGraphPipelineSessionARM( m_device,
30416 reinterpret_cast<const VkDataGraphPipelineSessionCreateInfoARM *>( &createInfo ),
30417 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
30418 reinterpret_cast<VkDataGraphPipelineSessionARM *>( &session ) ) );
30419 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelineSessionARM" );
30420
30421 return detail::createResultValueType( result, std::move( session ) );
30422 }
30423
30424 # ifndef VULKAN_HPP_NO_SMART_HANDLE
30425 // wrapper function for command vkCreateDataGraphPipelineSessionARM, see
30426 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateDataGraphPipelineSessionARM.html
30427 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateDataGraphPipelineSessionARM ), bool>::type>
30428 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<DataGraphPipelineSessionARM, Dispatch>>::type
30429 Device::createDataGraphPipelineSessionARMUnique( const DataGraphPipelineSessionCreateInfoARM & createInfo,
30430 Optional<const AllocationCallbacks> allocator,
30431 Dispatch const & d ) const
30432 {
30433 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30434 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30435 VULKAN_HPP_ASSERT( d.vkCreateDataGraphPipelineSessionARM && "Function <vkCreateDataGraphPipelineSessionARM> requires <VK_ARM_data_graph>" );
30436 # endif
30437
30438 DataGraphPipelineSessionARM session;
30439 Result result =
30440 static_cast<Result>( d.vkCreateDataGraphPipelineSessionARM( m_device,
30441 reinterpret_cast<const VkDataGraphPipelineSessionCreateInfoARM *>( &createInfo ),
30442 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
30443 reinterpret_cast<VkDataGraphPipelineSessionARM *>( &session ) ) );
30444 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createDataGraphPipelineSessionARMUnique" );
30445
30446 return detail::createResultValueType(
30447 result, UniqueHandle<DataGraphPipelineSessionARM, Dispatch>( session, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
30448 }
30449 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
30450 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30451
30452 // wrapper function for command vkGetDataGraphPipelineSessionBindPointRequirementsARM, see
30453 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionBindPointRequirementsARM.html
30454 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineSessionBindPointRequirementsARM ), bool>::type>
30455 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
30456 Device::getDataGraphPipelineSessionBindPointRequirementsARM( const DataGraphPipelineSessionBindPointRequirementsInfoARM * pInfo,
30457 uint32_t * pBindPointRequirementCount,
30458 DataGraphPipelineSessionBindPointRequirementARM * pBindPointRequirements,
30459 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30460 {
30461 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30462 return static_cast<Result>( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM(
30463 static_cast<VkDevice>( m_device ),
30464 reinterpret_cast<const VkDataGraphPipelineSessionBindPointRequirementsInfoARM *>( pInfo ),
30465 pBindPointRequirementCount,
30466 reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementARM *>( pBindPointRequirements ) ) );
30467 }
30468
30469 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30470 // wrapper function for command vkGetDataGraphPipelineSessionBindPointRequirementsARM, see
30471 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionBindPointRequirementsARM.html
30472 template <typename DataGraphPipelineSessionBindPointRequirementARMAllocator,
30473 typename Dispatch,
30474 typename std::enable_if<std::is_same<typename DataGraphPipelineSessionBindPointRequirementARMAllocator::value_type,
30475 DataGraphPipelineSessionBindPointRequirementARM>::value,
30476 int>::type,
30477 typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineSessionBindPointRequirementsARM ), bool>::type>
30478 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
30479 typename ResultValueType<std::vector<DataGraphPipelineSessionBindPointRequirementARM, DataGraphPipelineSessionBindPointRequirementARMAllocator>>::type
30480 Device::getDataGraphPipelineSessionBindPointRequirementsARM( const DataGraphPipelineSessionBindPointRequirementsInfoARM & info, Dispatch const & d ) const
30481 {
30482 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30483 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30484 VULKAN_HPP_ASSERT( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM &&
30485 "Function <vkGetDataGraphPipelineSessionBindPointRequirementsARM> requires <VK_ARM_data_graph>" );
30486 # endif
30487
30488 std::vector<DataGraphPipelineSessionBindPointRequirementARM, DataGraphPipelineSessionBindPointRequirementARMAllocator> bindPointRequirements;
30489 uint32_t bindPointRequirementCount;
30490 Result result;
30491 do
30492 {
30493 result = static_cast<Result>( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM(
30494 m_device, reinterpret_cast<const VkDataGraphPipelineSessionBindPointRequirementsInfoARM *>( &info ), &bindPointRequirementCount, nullptr ) );
30495 if ( ( result == Result::eSuccess ) && bindPointRequirementCount )
30496 {
30497 bindPointRequirements.resize( bindPointRequirementCount );
30498 result = static_cast<Result>( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM(
30499 m_device,
30500 reinterpret_cast<const VkDataGraphPipelineSessionBindPointRequirementsInfoARM *>( &info ),
30501 &bindPointRequirementCount,
30502 reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementARM *>( bindPointRequirements.data() ) ) );
30503 }
30504 } while ( result == Result::eIncomplete );
30505 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDataGraphPipelineSessionBindPointRequirementsARM" );
30506 VULKAN_HPP_ASSERT( bindPointRequirementCount <= bindPointRequirements.size() );
30507 if ( bindPointRequirementCount < bindPointRequirements.size() )
30508 {
30509 bindPointRequirements.resize( bindPointRequirementCount );
30510 }
30511 return detail::createResultValueType( result, std::move( bindPointRequirements ) );
30512 }
30513
30514 // wrapper function for command vkGetDataGraphPipelineSessionBindPointRequirementsARM, see
30515 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionBindPointRequirementsARM.html
30516 template <typename DataGraphPipelineSessionBindPointRequirementARMAllocator,
30517 typename Dispatch,
30518 typename std::enable_if<std::is_same<typename DataGraphPipelineSessionBindPointRequirementARMAllocator::value_type,
30519 DataGraphPipelineSessionBindPointRequirementARM>::value,
30520 int>::type,
30521 typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineSessionBindPointRequirementsARM ), bool>::type>
30522 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
30523 typename ResultValueType<std::vector<DataGraphPipelineSessionBindPointRequirementARM, DataGraphPipelineSessionBindPointRequirementARMAllocator>>::type
30524 Device::getDataGraphPipelineSessionBindPointRequirementsARM(
30525 const DataGraphPipelineSessionBindPointRequirementsInfoARM & info,
30526 DataGraphPipelineSessionBindPointRequirementARMAllocator const & dataGraphPipelineSessionBindPointRequirementARMAllocator,
30527 Dispatch const & d ) const
30528 {
30529 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30530 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30531 VULKAN_HPP_ASSERT( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM &&
30532 "Function <vkGetDataGraphPipelineSessionBindPointRequirementsARM> requires <VK_ARM_data_graph>" );
30533 # endif
30534
30535 std::vector<DataGraphPipelineSessionBindPointRequirementARM, DataGraphPipelineSessionBindPointRequirementARMAllocator> bindPointRequirements(
30536 dataGraphPipelineSessionBindPointRequirementARMAllocator );
30537 uint32_t bindPointRequirementCount;
30538 Result result;
30539 do
30540 {
30541 result = static_cast<Result>( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM(
30542 m_device, reinterpret_cast<const VkDataGraphPipelineSessionBindPointRequirementsInfoARM *>( &info ), &bindPointRequirementCount, nullptr ) );
30543 if ( ( result == Result::eSuccess ) && bindPointRequirementCount )
30544 {
30545 bindPointRequirements.resize( bindPointRequirementCount );
30546 result = static_cast<Result>( d.vkGetDataGraphPipelineSessionBindPointRequirementsARM(
30547 m_device,
30548 reinterpret_cast<const VkDataGraphPipelineSessionBindPointRequirementsInfoARM *>( &info ),
30549 &bindPointRequirementCount,
30550 reinterpret_cast<VkDataGraphPipelineSessionBindPointRequirementARM *>( bindPointRequirements.data() ) ) );
30551 }
30552 } while ( result == Result::eIncomplete );
30553 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDataGraphPipelineSessionBindPointRequirementsARM" );
30554 VULKAN_HPP_ASSERT( bindPointRequirementCount <= bindPointRequirements.size() );
30555 if ( bindPointRequirementCount < bindPointRequirements.size() )
30556 {
30557 bindPointRequirements.resize( bindPointRequirementCount );
30558 }
30559 return detail::createResultValueType( result, std::move( bindPointRequirements ) );
30560 }
30561 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30562
30563 // wrapper function for command vkGetDataGraphPipelineSessionMemoryRequirementsARM, see
30564 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionMemoryRequirementsARM.html
30565 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineSessionMemoryRequirementsARM ), bool>::type>
30566 VULKAN_HPP_INLINE void Device::getDataGraphPipelineSessionMemoryRequirementsARM( const DataGraphPipelineSessionMemoryRequirementsInfoARM * pInfo,
30567 MemoryRequirements2 * pMemoryRequirements,
30568 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30569 {
30570 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30571 d.vkGetDataGraphPipelineSessionMemoryRequirementsARM( static_cast<VkDevice>( m_device ),
30572 reinterpret_cast<const VkDataGraphPipelineSessionMemoryRequirementsInfoARM *>( pInfo ),
30573 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
30574 }
30575
30576 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30577 // wrapper function for command vkGetDataGraphPipelineSessionMemoryRequirementsARM, see
30578 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionMemoryRequirementsARM.html
30579 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineSessionMemoryRequirementsARM ), bool>::type>
30580 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2 Device::getDataGraphPipelineSessionMemoryRequirementsARM(
30581 const DataGraphPipelineSessionMemoryRequirementsInfoARM & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30582 {
30583 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30584 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30585 VULKAN_HPP_ASSERT( d.vkGetDataGraphPipelineSessionMemoryRequirementsARM &&
30586 "Function <vkGetDataGraphPipelineSessionMemoryRequirementsARM> requires <VK_ARM_data_graph>" );
30587 # endif
30588
30589 MemoryRequirements2 memoryRequirements;
30590 d.vkGetDataGraphPipelineSessionMemoryRequirementsARM( m_device,
30591 reinterpret_cast<const VkDataGraphPipelineSessionMemoryRequirementsInfoARM *>( &info ),
30592 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
30593
30594 return memoryRequirements;
30595 }
30596
30597 // wrapper function for command vkGetDataGraphPipelineSessionMemoryRequirementsARM, see
30598 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineSessionMemoryRequirementsARM.html
30599 template <typename X,
30600 typename Y,
30601 typename... Z,
30602 typename Dispatch,
30603 typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineSessionMemoryRequirementsARM ), bool>::type>
30604 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
30605 Device::getDataGraphPipelineSessionMemoryRequirementsARM( const DataGraphPipelineSessionMemoryRequirementsInfoARM & info,
30606 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30607 {
30608 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30609 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30610 VULKAN_HPP_ASSERT( d.vkGetDataGraphPipelineSessionMemoryRequirementsARM &&
30611 "Function <vkGetDataGraphPipelineSessionMemoryRequirementsARM> requires <VK_ARM_data_graph>" );
30612 # endif
30613
30614 StructureChain<X, Y, Z...> structureChain;
30615 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
30616 d.vkGetDataGraphPipelineSessionMemoryRequirementsARM( m_device,
30617 reinterpret_cast<const VkDataGraphPipelineSessionMemoryRequirementsInfoARM *>( &info ),
30618 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
30619
30620 return structureChain;
30621 }
30622 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30623
30624 // wrapper function for command vkBindDataGraphPipelineSessionMemoryARM, see
30625 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindDataGraphPipelineSessionMemoryARM.html
30626 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindDataGraphPipelineSessionMemoryARM ), bool>::type>
30627 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindDataGraphPipelineSessionMemoryARM( uint32_t bindInfoCount,
30628 const BindDataGraphPipelineSessionMemoryInfoARM * pBindInfos,
30629 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30630 {
30631 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30632 return static_cast<Result>( d.vkBindDataGraphPipelineSessionMemoryARM(
30633 static_cast<VkDevice>( m_device ), bindInfoCount, reinterpret_cast<const VkBindDataGraphPipelineSessionMemoryInfoARM *>( pBindInfos ) ) );
30634 }
30635
30636 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30637 // wrapper function for command vkBindDataGraphPipelineSessionMemoryARM, see
30638 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkBindDataGraphPipelineSessionMemoryARM.html
30639 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkBindDataGraphPipelineSessionMemoryARM ), bool>::type>
30640 VULKAN_HPP_NODISCARD_WHEN_NO_EXCEPTIONS VULKAN_HPP_INLINE typename ResultValueType<void>::type
30641 Device::bindDataGraphPipelineSessionMemoryARM( ArrayProxy<const BindDataGraphPipelineSessionMemoryInfoARM> const & bindInfos, Dispatch const & d ) const
30642 {
30643 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30644 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30645 VULKAN_HPP_ASSERT( d.vkBindDataGraphPipelineSessionMemoryARM && "Function <vkBindDataGraphPipelineSessionMemoryARM> requires <VK_ARM_data_graph>" );
30646 # endif
30647
30648 Result result = static_cast<Result>( d.vkBindDataGraphPipelineSessionMemoryARM(
30649 m_device, bindInfos.size(), reinterpret_cast<const VkBindDataGraphPipelineSessionMemoryInfoARM *>( bindInfos.data() ) ) );
30650 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::bindDataGraphPipelineSessionMemoryARM" );
30651
30652 return detail::createResultValueType( result );
30653 }
30654 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30655
30656 // wrapper function for command vkDestroyDataGraphPipelineSessionARM, see
30657 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDataGraphPipelineSessionARM.html
30658 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDataGraphPipelineSessionARM ), bool>::type>
30659 VULKAN_HPP_INLINE void Device::destroyDataGraphPipelineSessionARM( DataGraphPipelineSessionARM session,
30660 const AllocationCallbacks * pAllocator,
30661 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30662 {
30663 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30664 d.vkDestroyDataGraphPipelineSessionARM(
30665 static_cast<VkDevice>( m_device ), static_cast<VkDataGraphPipelineSessionARM>( session ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
30666 }
30667
30668 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30669 // wrapper function for command vkDestroyDataGraphPipelineSessionARM, see
30670 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDataGraphPipelineSessionARM.html
30671 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDataGraphPipelineSessionARM ), bool>::type>
30672 VULKAN_HPP_INLINE void Device::destroyDataGraphPipelineSessionARM( DataGraphPipelineSessionARM session,
30673 Optional<const AllocationCallbacks> allocator,
30674 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30675 {
30676 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30677 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30678 VULKAN_HPP_ASSERT( d.vkDestroyDataGraphPipelineSessionARM && "Function <vkDestroyDataGraphPipelineSessionARM> requires <VK_ARM_data_graph>" );
30679 # endif
30680
30681 d.vkDestroyDataGraphPipelineSessionARM(
30682 m_device, static_cast<VkDataGraphPipelineSessionARM>( session ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
30683 }
30684 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30685
30686 // wrapper function for command vkDestroyDataGraphPipelineSessionARM, see
30687 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDataGraphPipelineSessionARM.html
30688 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDataGraphPipelineSessionARM ), bool>::type>
30689 VULKAN_HPP_INLINE void
30690 Device::destroy( DataGraphPipelineSessionARM session, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30691 {
30692 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30693 d.vkDestroyDataGraphPipelineSessionARM(
30694 static_cast<VkDevice>( m_device ), static_cast<VkDataGraphPipelineSessionARM>( session ), reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
30695 }
30696
30697 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30698 // wrapper function for command vkDestroyDataGraphPipelineSessionARM, see
30699 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyDataGraphPipelineSessionARM.html
30700 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyDataGraphPipelineSessionARM ), bool>::type>
30701 VULKAN_HPP_INLINE void
30702 Device::destroy( DataGraphPipelineSessionARM session, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30703 {
30704 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30705 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30706 VULKAN_HPP_ASSERT( d.vkDestroyDataGraphPipelineSessionARM && "Function <vkDestroyDataGraphPipelineSessionARM> requires <VK_ARM_data_graph>" );
30707 # endif
30708
30709 d.vkDestroyDataGraphPipelineSessionARM(
30710 m_device, static_cast<VkDataGraphPipelineSessionARM>( session ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
30711 }
30712 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30713
30714 // wrapper function for command vkCmdDispatchDataGraphARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchDataGraphARM.html
30715 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchDataGraphARM ), bool>::type>
30716 VULKAN_HPP_INLINE void CommandBuffer::dispatchDataGraphARM( DataGraphPipelineSessionARM session,
30717 const DataGraphPipelineDispatchInfoARM * pInfo,
30718 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30719 {
30720 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30721 d.vkCmdDispatchDataGraphARM( static_cast<VkCommandBuffer>( m_commandBuffer ),
30722 static_cast<VkDataGraphPipelineSessionARM>( session ),
30723 reinterpret_cast<const VkDataGraphPipelineDispatchInfoARM *>( pInfo ) );
30724 }
30725
30726 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30727 // wrapper function for command vkCmdDispatchDataGraphARM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDispatchDataGraphARM.html
30728 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDispatchDataGraphARM ), bool>::type>
30729 VULKAN_HPP_INLINE void CommandBuffer::dispatchDataGraphARM( DataGraphPipelineSessionARM session,
30730 Optional<const DataGraphPipelineDispatchInfoARM> info,
30731 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30732 {
30733 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30734 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30735 VULKAN_HPP_ASSERT( d.vkCmdDispatchDataGraphARM && "Function <vkCmdDispatchDataGraphARM> requires <VK_ARM_data_graph>" );
30736 # endif
30737
30738 d.vkCmdDispatchDataGraphARM(
30739 m_commandBuffer, static_cast<VkDataGraphPipelineSessionARM>( session ), reinterpret_cast<const VkDataGraphPipelineDispatchInfoARM *>( info.get() ) );
30740 }
30741 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30742
30743 // wrapper function for command vkGetDataGraphPipelineAvailablePropertiesARM, see
30744 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineAvailablePropertiesARM.html
30745 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineAvailablePropertiesARM ), bool>::type>
30746 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getDataGraphPipelineAvailablePropertiesARM( const DataGraphPipelineInfoARM * pPipelineInfo,
30747 uint32_t * pPropertiesCount,
30748 DataGraphPipelinePropertyARM * pProperties,
30749 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30750 {
30751 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30752 return static_cast<Result>( d.vkGetDataGraphPipelineAvailablePropertiesARM( static_cast<VkDevice>( m_device ),
30753 reinterpret_cast<const VkDataGraphPipelineInfoARM *>( pPipelineInfo ),
30754 pPropertiesCount,
30755 reinterpret_cast<VkDataGraphPipelinePropertyARM *>( pProperties ) ) );
30756 }
30757
30758 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30759 // wrapper function for command vkGetDataGraphPipelineAvailablePropertiesARM, see
30760 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineAvailablePropertiesARM.html
30761 template <typename DataGraphPipelinePropertyARMAllocator,
30762 typename Dispatch,
30763 typename std::enable_if<std::is_same<typename DataGraphPipelinePropertyARMAllocator::value_type, DataGraphPipelinePropertyARM>::value, int>::type,
30764 typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineAvailablePropertiesARM ), bool>::type>
30765 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataGraphPipelinePropertyARM, DataGraphPipelinePropertyARMAllocator>>::type
30766 Device::getDataGraphPipelineAvailablePropertiesARM( const DataGraphPipelineInfoARM & pipelineInfo, Dispatch const & d ) const
30767 {
30768 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30769 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30770 VULKAN_HPP_ASSERT( d.vkGetDataGraphPipelineAvailablePropertiesARM &&
30771 "Function <vkGetDataGraphPipelineAvailablePropertiesARM> requires <VK_ARM_data_graph>" );
30772 # endif
30773
30774 std::vector<DataGraphPipelinePropertyARM, DataGraphPipelinePropertyARMAllocator> properties;
30775 uint32_t propertiesCount;
30776 Result result;
30777 do
30778 {
30779 result = static_cast<Result>( d.vkGetDataGraphPipelineAvailablePropertiesARM(
30780 m_device, reinterpret_cast<const VkDataGraphPipelineInfoARM *>( &pipelineInfo ), &propertiesCount, nullptr ) );
30781 if ( ( result == Result::eSuccess ) && propertiesCount )
30782 {
30783 properties.resize( propertiesCount );
30784 result =
30785 static_cast<Result>( d.vkGetDataGraphPipelineAvailablePropertiesARM( m_device,
30786 reinterpret_cast<const VkDataGraphPipelineInfoARM *>( &pipelineInfo ),
30787 &propertiesCount,
30788 reinterpret_cast<VkDataGraphPipelinePropertyARM *>( properties.data() ) ) );
30789 }
30790 } while ( result == Result::eIncomplete );
30791 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDataGraphPipelineAvailablePropertiesARM" );
30792 VULKAN_HPP_ASSERT( propertiesCount <= properties.size() );
30793 if ( propertiesCount < properties.size() )
30794 {
30795 properties.resize( propertiesCount );
30796 }
30797 return detail::createResultValueType( result, std::move( properties ) );
30798 }
30799
30800 // wrapper function for command vkGetDataGraphPipelineAvailablePropertiesARM, see
30801 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelineAvailablePropertiesARM.html
30802 template <typename DataGraphPipelinePropertyARMAllocator,
30803 typename Dispatch,
30804 typename std::enable_if<std::is_same<typename DataGraphPipelinePropertyARMAllocator::value_type, DataGraphPipelinePropertyARM>::value, int>::type,
30805 typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelineAvailablePropertiesARM ), bool>::type>
30806 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<DataGraphPipelinePropertyARM, DataGraphPipelinePropertyARMAllocator>>::type
30807 Device::getDataGraphPipelineAvailablePropertiesARM( const DataGraphPipelineInfoARM & pipelineInfo,
30808 DataGraphPipelinePropertyARMAllocator const & dataGraphPipelinePropertyARMAllocator,
30809 Dispatch const & d ) const
30810 {
30811 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30812 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30813 VULKAN_HPP_ASSERT( d.vkGetDataGraphPipelineAvailablePropertiesARM &&
30814 "Function <vkGetDataGraphPipelineAvailablePropertiesARM> requires <VK_ARM_data_graph>" );
30815 # endif
30816
30817 std::vector<DataGraphPipelinePropertyARM, DataGraphPipelinePropertyARMAllocator> properties( dataGraphPipelinePropertyARMAllocator );
30818 uint32_t propertiesCount;
30819 Result result;
30820 do
30821 {
30822 result = static_cast<Result>( d.vkGetDataGraphPipelineAvailablePropertiesARM(
30823 m_device, reinterpret_cast<const VkDataGraphPipelineInfoARM *>( &pipelineInfo ), &propertiesCount, nullptr ) );
30824 if ( ( result == Result::eSuccess ) && propertiesCount )
30825 {
30826 properties.resize( propertiesCount );
30827 result =
30828 static_cast<Result>( d.vkGetDataGraphPipelineAvailablePropertiesARM( m_device,
30829 reinterpret_cast<const VkDataGraphPipelineInfoARM *>( &pipelineInfo ),
30830 &propertiesCount,
30831 reinterpret_cast<VkDataGraphPipelinePropertyARM *>( properties.data() ) ) );
30832 }
30833 } while ( result == Result::eIncomplete );
30834 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getDataGraphPipelineAvailablePropertiesARM" );
30835 VULKAN_HPP_ASSERT( propertiesCount <= properties.size() );
30836 if ( propertiesCount < properties.size() )
30837 {
30838 properties.resize( propertiesCount );
30839 }
30840 return detail::createResultValueType( result, std::move( properties ) );
30841 }
30842 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30843
30844 // wrapper function for command vkGetDataGraphPipelinePropertiesARM, see
30845 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetDataGraphPipelinePropertiesARM.html
30846 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetDataGraphPipelinePropertiesARM ), bool>::type>
30847 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getDataGraphPipelinePropertiesARM( const DataGraphPipelineInfoARM * pPipelineInfo,
30848 uint32_t propertiesCount,
30849 DataGraphPipelinePropertyQueryResultARM * pProperties,
30850 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30851 {
30852 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30853 return static_cast<Result>( d.vkGetDataGraphPipelinePropertiesARM( static_cast<VkDevice>( m_device ),
30854 reinterpret_cast<const VkDataGraphPipelineInfoARM *>( pPipelineInfo ),
30855 propertiesCount,
30856 reinterpret_cast<VkDataGraphPipelinePropertyQueryResultARM *>( pProperties ) ) );
30857 }
30858
30859 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM, see
30860 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM.html
30861 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM ), bool>::type>
30862 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
30863 PhysicalDevice::getQueueFamilyDataGraphPropertiesARM( uint32_t queueFamilyIndex,
30864 uint32_t * pQueueFamilyDataGraphPropertyCount,
30865 QueueFamilyDataGraphPropertiesARM * pQueueFamilyDataGraphProperties,
30866 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30867 {
30868 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30869 return static_cast<Result>(
30870 d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM( static_cast<VkPhysicalDevice>( m_physicalDevice ),
30871 queueFamilyIndex,
30872 pQueueFamilyDataGraphPropertyCount,
30873 reinterpret_cast<VkQueueFamilyDataGraphPropertiesARM *>( pQueueFamilyDataGraphProperties ) ) );
30874 }
30875
30876 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30877 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM, see
30878 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM.html
30879 template <
30880 typename QueueFamilyDataGraphPropertiesARMAllocator,
30881 typename Dispatch,
30882 typename std::enable_if<std::is_same<typename QueueFamilyDataGraphPropertiesARMAllocator::value_type, QueueFamilyDataGraphPropertiesARM>::value, int>::type,
30883 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM ), bool>::type>
30884 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
30885 typename ResultValueType<std::vector<QueueFamilyDataGraphPropertiesARM, QueueFamilyDataGraphPropertiesARMAllocator>>::type
30886 PhysicalDevice::getQueueFamilyDataGraphPropertiesARM( uint32_t queueFamilyIndex, Dispatch const & d ) const
30887 {
30888 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30889 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30890 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM &&
30891 "Function <vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM> requires <VK_ARM_data_graph>" );
30892 # endif
30893
30894 std::vector<QueueFamilyDataGraphPropertiesARM, QueueFamilyDataGraphPropertiesARMAllocator> queueFamilyDataGraphProperties;
30895 uint32_t queueFamilyDataGraphPropertyCount;
30896 Result result;
30897 do
30898 {
30899 result = static_cast<Result>(
30900 d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM( m_physicalDevice, queueFamilyIndex, &queueFamilyDataGraphPropertyCount, nullptr ) );
30901 if ( ( result == Result::eSuccess ) && queueFamilyDataGraphPropertyCount )
30902 {
30903 queueFamilyDataGraphProperties.resize( queueFamilyDataGraphPropertyCount );
30904 result = static_cast<Result>( d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM(
30905 m_physicalDevice,
30906 queueFamilyIndex,
30907 &queueFamilyDataGraphPropertyCount,
30908 reinterpret_cast<VkQueueFamilyDataGraphPropertiesARM *>( queueFamilyDataGraphProperties.data() ) ) );
30909 }
30910 } while ( result == Result::eIncomplete );
30911 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getQueueFamilyDataGraphPropertiesARM" );
30912 VULKAN_HPP_ASSERT( queueFamilyDataGraphPropertyCount <= queueFamilyDataGraphProperties.size() );
30913 if ( queueFamilyDataGraphPropertyCount < queueFamilyDataGraphProperties.size() )
30914 {
30915 queueFamilyDataGraphProperties.resize( queueFamilyDataGraphPropertyCount );
30916 }
30917 return detail::createResultValueType( result, std::move( queueFamilyDataGraphProperties ) );
30918 }
30919
30920 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM, see
30921 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM.html
30922 template <
30923 typename QueueFamilyDataGraphPropertiesARMAllocator,
30924 typename Dispatch,
30925 typename std::enable_if<std::is_same<typename QueueFamilyDataGraphPropertiesARMAllocator::value_type, QueueFamilyDataGraphPropertiesARM>::value, int>::type,
30926 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM ), bool>::type>
30927 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
30928 typename ResultValueType<std::vector<QueueFamilyDataGraphPropertiesARM, QueueFamilyDataGraphPropertiesARMAllocator>>::type
30929 PhysicalDevice::getQueueFamilyDataGraphPropertiesARM( uint32_t queueFamilyIndex,
30930 QueueFamilyDataGraphPropertiesARMAllocator const & queueFamilyDataGraphPropertiesARMAllocator,
30931 Dispatch const & d ) const
30932 {
30933 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30934 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30935 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM &&
30936 "Function <vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM> requires <VK_ARM_data_graph>" );
30937 # endif
30938
30939 std::vector<QueueFamilyDataGraphPropertiesARM, QueueFamilyDataGraphPropertiesARMAllocator> queueFamilyDataGraphProperties(
30940 queueFamilyDataGraphPropertiesARMAllocator );
30941 uint32_t queueFamilyDataGraphPropertyCount;
30942 Result result;
30943 do
30944 {
30945 result = static_cast<Result>(
30946 d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM( m_physicalDevice, queueFamilyIndex, &queueFamilyDataGraphPropertyCount, nullptr ) );
30947 if ( ( result == Result::eSuccess ) && queueFamilyDataGraphPropertyCount )
30948 {
30949 queueFamilyDataGraphProperties.resize( queueFamilyDataGraphPropertyCount );
30950 result = static_cast<Result>( d.vkGetPhysicalDeviceQueueFamilyDataGraphPropertiesARM(
30951 m_physicalDevice,
30952 queueFamilyIndex,
30953 &queueFamilyDataGraphPropertyCount,
30954 reinterpret_cast<VkQueueFamilyDataGraphPropertiesARM *>( queueFamilyDataGraphProperties.data() ) ) );
30955 }
30956 } while ( result == Result::eIncomplete );
30957 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getQueueFamilyDataGraphPropertiesARM" );
30958 VULKAN_HPP_ASSERT( queueFamilyDataGraphPropertyCount <= queueFamilyDataGraphProperties.size() );
30959 if ( queueFamilyDataGraphPropertyCount < queueFamilyDataGraphProperties.size() )
30960 {
30961 queueFamilyDataGraphProperties.resize( queueFamilyDataGraphPropertyCount );
30962 }
30963 return detail::createResultValueType( result, std::move( queueFamilyDataGraphProperties ) );
30964 }
30965 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
30966
30967 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM, see
30968 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM.html
30969 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM ), bool>::type>
30970 VULKAN_HPP_INLINE void PhysicalDevice::getQueueFamilyDataGraphProcessingEnginePropertiesARM(
30971 const PhysicalDeviceQueueFamilyDataGraphProcessingEngineInfoARM * pQueueFamilyDataGraphProcessingEngineInfo,
30972 QueueFamilyDataGraphProcessingEnginePropertiesARM * pQueueFamilyDataGraphProcessingEngineProperties,
30973 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30974 {
30975 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30976 d.vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM(
30977 static_cast<VkPhysicalDevice>( m_physicalDevice ),
30978 reinterpret_cast<const VkPhysicalDeviceQueueFamilyDataGraphProcessingEngineInfoARM *>( pQueueFamilyDataGraphProcessingEngineInfo ),
30979 reinterpret_cast<VkQueueFamilyDataGraphProcessingEnginePropertiesARM *>( pQueueFamilyDataGraphProcessingEngineProperties ) );
30980 }
30981
30982 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
30983 // wrapper function for command vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM, see
30984 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM.html
30985 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM ), bool>::type>
30986 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE QueueFamilyDataGraphProcessingEnginePropertiesARM PhysicalDevice::getQueueFamilyDataGraphProcessingEnginePropertiesARM(
30987 const PhysicalDeviceQueueFamilyDataGraphProcessingEngineInfoARM & queueFamilyDataGraphProcessingEngineInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
30988 {
30989 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
30990 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
30991 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM &&
30992 "Function <vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM> requires <VK_ARM_data_graph>" );
30993 # endif
30994
30995 QueueFamilyDataGraphProcessingEnginePropertiesARM queueFamilyDataGraphProcessingEngineProperties;
30996 d.vkGetPhysicalDeviceQueueFamilyDataGraphProcessingEnginePropertiesARM(
30997 m_physicalDevice,
30998 reinterpret_cast<const VkPhysicalDeviceQueueFamilyDataGraphProcessingEngineInfoARM *>( &queueFamilyDataGraphProcessingEngineInfo ),
30999 reinterpret_cast<VkQueueFamilyDataGraphProcessingEnginePropertiesARM *>( &queueFamilyDataGraphProcessingEngineProperties ) );
31000
31001 return queueFamilyDataGraphProcessingEngineProperties;
31002 }
31003 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31004
31005 //=== VK_EXT_attachment_feedback_loop_dynamic_state ===
31006
31007 // wrapper function for command vkCmdSetAttachmentFeedbackLoopEnableEXT, see
31008 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetAttachmentFeedbackLoopEnableEXT.html
31009 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetAttachmentFeedbackLoopEnableEXT ), bool>::type>
31010 VULKAN_HPP_INLINE void CommandBuffer::setAttachmentFeedbackLoopEnableEXT( ImageAspectFlags aspectMask, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31011 {
31012 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31013 d.vkCmdSetAttachmentFeedbackLoopEnableEXT( static_cast<VkCommandBuffer>( m_commandBuffer ), static_cast<VkImageAspectFlags>( aspectMask ) );
31014 }
31015
31016 #if defined( VK_USE_PLATFORM_SCREEN_QNX )
31017 //=== VK_QNX_external_memory_screen_buffer ===
31018
31019 // wrapper function for command vkGetScreenBufferPropertiesQNX, see
31020 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html
31021 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetScreenBufferPropertiesQNX ), bool>::type>
31022 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getScreenBufferPropertiesQNX( const struct _screen_buffer * buffer,
31023 ScreenBufferPropertiesQNX * pProperties,
31024 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31025 {
31026 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31027 return static_cast<Result>(
31028 d.vkGetScreenBufferPropertiesQNX( static_cast<VkDevice>( m_device ), buffer, reinterpret_cast<VkScreenBufferPropertiesQNX *>( pProperties ) ) );
31029 }
31030
31031 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31032 // wrapper function for command vkGetScreenBufferPropertiesQNX, see
31033 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html
31034 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetScreenBufferPropertiesQNX ), bool>::type>
31035 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ScreenBufferPropertiesQNX>::type
31036 Device::getScreenBufferPropertiesQNX( const struct _screen_buffer & buffer, Dispatch const & d ) const
31037 {
31038 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31039 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31040 VULKAN_HPP_ASSERT( d.vkGetScreenBufferPropertiesQNX && "Function <vkGetScreenBufferPropertiesQNX> requires <VK_QNX_external_memory_screen_buffer>" );
31041 # endif
31042
31043 ScreenBufferPropertiesQNX properties;
31044 Result result =
31045 static_cast<Result>( d.vkGetScreenBufferPropertiesQNX( m_device, &buffer, reinterpret_cast<VkScreenBufferPropertiesQNX *>( &properties ) ) );
31046 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" );
31047
31048 return detail::createResultValueType( result, std::move( properties ) );
31049 }
31050
31051 // wrapper function for command vkGetScreenBufferPropertiesQNX, see
31052 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetScreenBufferPropertiesQNX.html
31053 template <typename X, typename Y, typename... Z, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetScreenBufferPropertiesQNX ), bool>::type>
31054 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<StructureChain<X, Y, Z...>>::type
31055 Device::getScreenBufferPropertiesQNX( const struct _screen_buffer & buffer, Dispatch const & d ) const
31056 {
31057 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31058 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31059 VULKAN_HPP_ASSERT( d.vkGetScreenBufferPropertiesQNX && "Function <vkGetScreenBufferPropertiesQNX> requires <VK_QNX_external_memory_screen_buffer>" );
31060 # endif
31061
31062 StructureChain<X, Y, Z...> structureChain;
31063 ScreenBufferPropertiesQNX & properties = structureChain.template get<ScreenBufferPropertiesQNX>();
31064 Result result =
31065 static_cast<Result>( d.vkGetScreenBufferPropertiesQNX( m_device, &buffer, reinterpret_cast<VkScreenBufferPropertiesQNX *>( &properties ) ) );
31066 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getScreenBufferPropertiesQNX" );
31067
31068 return detail::createResultValueType( result, std::move( structureChain ) );
31069 }
31070 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31071 #endif /*VK_USE_PLATFORM_SCREEN_QNX*/
31072
31073 //=== VK_KHR_line_rasterization ===
31074
31075 // wrapper function for command vkCmdSetLineStippleKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetLineStippleKHR.html
31076 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetLineStippleKHR ), bool>::type>
31077 VULKAN_HPP_INLINE void
31078 CommandBuffer::setLineStippleKHR( uint32_t lineStippleFactor, uint16_t lineStipplePattern, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31079 {
31080 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31081 d.vkCmdSetLineStippleKHR( static_cast<VkCommandBuffer>( m_commandBuffer ), lineStippleFactor, lineStipplePattern );
31082 }
31083
31084 //=== VK_KHR_calibrated_timestamps ===
31085
31086 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsKHR, see
31087 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsKHR.html
31088 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsKHR ), bool>::type>
31089 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCalibrateableTimeDomainsKHR( uint32_t * pTimeDomainCount,
31090 TimeDomainKHR * pTimeDomains,
31091 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31092 {
31093 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31094 return static_cast<Result>( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR(
31095 static_cast<VkPhysicalDevice>( m_physicalDevice ), pTimeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( pTimeDomains ) ) );
31096 }
31097
31098 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31099 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsKHR, see
31100 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsKHR.html
31101 template <typename TimeDomainKHRAllocator,
31102 typename Dispatch,
31103 typename std::enable_if<std::is_same<typename TimeDomainKHRAllocator::value_type, TimeDomainKHR>::value, int>::type,
31104 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsKHR ), bool>::type>
31105 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TimeDomainKHR, TimeDomainKHRAllocator>>::type
31106 PhysicalDevice::getCalibrateableTimeDomainsKHR( Dispatch const & d ) const
31107 {
31108 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31109 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31110 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR &&
31111 "Function <vkGetPhysicalDeviceCalibrateableTimeDomainsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
31112 # endif
31113
31114 std::vector<TimeDomainKHR, TimeDomainKHRAllocator> timeDomains;
31115 uint32_t timeDomainCount;
31116 Result result;
31117 do
31118 {
31119 result = static_cast<Result>( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( m_physicalDevice, &timeDomainCount, nullptr ) );
31120 if ( ( result == Result::eSuccess ) && timeDomainCount )
31121 {
31122 timeDomains.resize( timeDomainCount );
31123 result = static_cast<Result>(
31124 d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( m_physicalDevice, &timeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( timeDomains.data() ) ) );
31125 }
31126 } while ( result == Result::eIncomplete );
31127 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsKHR" );
31128 VULKAN_HPP_ASSERT( timeDomainCount <= timeDomains.size() );
31129 if ( timeDomainCount < timeDomains.size() )
31130 {
31131 timeDomains.resize( timeDomainCount );
31132 }
31133 return detail::createResultValueType( result, std::move( timeDomains ) );
31134 }
31135
31136 // wrapper function for command vkGetPhysicalDeviceCalibrateableTimeDomainsKHR, see
31137 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCalibrateableTimeDomainsKHR.html
31138 template <typename TimeDomainKHRAllocator,
31139 typename Dispatch,
31140 typename std::enable_if<std::is_same<typename TimeDomainKHRAllocator::value_type, TimeDomainKHR>::value, int>::type,
31141 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCalibrateableTimeDomainsKHR ), bool>::type>
31142 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::vector<TimeDomainKHR, TimeDomainKHRAllocator>>::type
31143 PhysicalDevice::getCalibrateableTimeDomainsKHR( TimeDomainKHRAllocator const & timeDomainKHRAllocator, Dispatch const & d ) const
31144 {
31145 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31146 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31147 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR &&
31148 "Function <vkGetPhysicalDeviceCalibrateableTimeDomainsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
31149 # endif
31150
31151 std::vector<TimeDomainKHR, TimeDomainKHRAllocator> timeDomains( timeDomainKHRAllocator );
31152 uint32_t timeDomainCount;
31153 Result result;
31154 do
31155 {
31156 result = static_cast<Result>( d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( m_physicalDevice, &timeDomainCount, nullptr ) );
31157 if ( ( result == Result::eSuccess ) && timeDomainCount )
31158 {
31159 timeDomains.resize( timeDomainCount );
31160 result = static_cast<Result>(
31161 d.vkGetPhysicalDeviceCalibrateableTimeDomainsKHR( m_physicalDevice, &timeDomainCount, reinterpret_cast<VkTimeDomainKHR *>( timeDomains.data() ) ) );
31162 }
31163 } while ( result == Result::eIncomplete );
31164 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCalibrateableTimeDomainsKHR" );
31165 VULKAN_HPP_ASSERT( timeDomainCount <= timeDomains.size() );
31166 if ( timeDomainCount < timeDomains.size() )
31167 {
31168 timeDomains.resize( timeDomainCount );
31169 }
31170 return detail::createResultValueType( result, std::move( timeDomains ) );
31171 }
31172 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31173
31174 // wrapper function for command vkGetCalibratedTimestampsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsKHR.html
31175 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsKHR ), bool>::type>
31176 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getCalibratedTimestampsKHR( uint32_t timestampCount,
31177 const CalibratedTimestampInfoKHR * pTimestampInfos,
31178 uint64_t * pTimestamps,
31179 uint64_t * pMaxDeviation,
31180 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31181 {
31182 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31183 return static_cast<Result>( d.vkGetCalibratedTimestampsKHR( static_cast<VkDevice>( m_device ),
31184 timestampCount,
31185 reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( pTimestampInfos ),
31186 pTimestamps,
31187 pMaxDeviation ) );
31188 }
31189
31190 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31191 // wrapper function for command vkGetCalibratedTimestampsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsKHR.html
31192 template <typename Uint64_tAllocator,
31193 typename Dispatch,
31194 typename std::enable_if<std::is_same<typename Uint64_tAllocator::value_type, uint64_t>::value, int>::type,
31195 typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsKHR ), bool>::type>
31196 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t>>::type
31197 Device::getCalibratedTimestampsKHR( ArrayProxy<const CalibratedTimestampInfoKHR> const & timestampInfos, Dispatch const & d ) const
31198 {
31199 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31200 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31201 VULKAN_HPP_ASSERT( d.vkGetCalibratedTimestampsKHR &&
31202 "Function <vkGetCalibratedTimestampsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
31203 # endif
31204
31205 std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t> data_(
31206 std::piecewise_construct, std::forward_as_tuple( timestampInfos.size() ), std::forward_as_tuple( 0 ) );
31207 std::vector<uint64_t, Uint64_tAllocator> & timestamps = data_.first;
31208 uint64_t & maxDeviation = data_.second;
31209 Result result = static_cast<Result>( d.vkGetCalibratedTimestampsKHR(
31210 m_device, timestampInfos.size(), reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( timestampInfos.data() ), timestamps.data(), &maxDeviation ) );
31211 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsKHR" );
31212
31213 return detail::createResultValueType( result, std::move( data_ ) );
31214 }
31215
31216 // wrapper function for command vkGetCalibratedTimestampsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsKHR.html
31217 template <typename Uint64_tAllocator,
31218 typename Dispatch,
31219 typename std::enable_if<std::is_same<typename Uint64_tAllocator::value_type, uint64_t>::value, int>::type,
31220 typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsKHR ), bool>::type>
31221 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t>>::type
31222 Device::getCalibratedTimestampsKHR( ArrayProxy<const CalibratedTimestampInfoKHR> const & timestampInfos,
31223 Uint64_tAllocator const & uint64_tAllocator,
31224 Dispatch const & d ) const
31225 {
31226 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31227 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31228 VULKAN_HPP_ASSERT( d.vkGetCalibratedTimestampsKHR &&
31229 "Function <vkGetCalibratedTimestampsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
31230 # endif
31231
31232 std::pair<std::vector<uint64_t, Uint64_tAllocator>, uint64_t> data_(
31233 std::piecewise_construct, std::forward_as_tuple( timestampInfos.size(), uint64_tAllocator ), std::forward_as_tuple( 0 ) );
31234 std::vector<uint64_t, Uint64_tAllocator> & timestamps = data_.first;
31235 uint64_t & maxDeviation = data_.second;
31236 Result result = static_cast<Result>( d.vkGetCalibratedTimestampsKHR(
31237 m_device, timestampInfos.size(), reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( timestampInfos.data() ), timestamps.data(), &maxDeviation ) );
31238 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampsKHR" );
31239
31240 return detail::createResultValueType( result, std::move( data_ ) );
31241 }
31242
31243 // wrapper function for command vkGetCalibratedTimestampsKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetCalibratedTimestampsKHR.html
31244 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetCalibratedTimestampsKHR ), bool>::type>
31245 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<std::pair<uint64_t, uint64_t>>::type
31246 Device::getCalibratedTimestampKHR( const CalibratedTimestampInfoKHR & timestampInfo, Dispatch const & d ) const
31247 {
31248 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31249 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31250 VULKAN_HPP_ASSERT( d.vkGetCalibratedTimestampsKHR &&
31251 "Function <vkGetCalibratedTimestampsKHR> requires <VK_EXT_calibrated_timestamps> or <VK_KHR_calibrated_timestamps>" );
31252 # endif
31253
31254 std::pair<uint64_t, uint64_t> data_;
31255 uint64_t & timestamp = data_.first;
31256 uint64_t & maxDeviation = data_.second;
31257 Result result = static_cast<Result>(
31258 d.vkGetCalibratedTimestampsKHR( m_device, 1, reinterpret_cast<const VkCalibratedTimestampInfoKHR *>( &timestampInfo ), &timestamp, &maxDeviation ) );
31259 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getCalibratedTimestampKHR" );
31260
31261 return detail::createResultValueType( result, std::move( data_ ) );
31262 }
31263 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31264
31265 //=== VK_KHR_maintenance6 ===
31266
31267 // wrapper function for command vkCmdBindDescriptorSets2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets2KHR.html
31268 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorSets2KHR ), bool>::type>
31269 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets2KHR( const BindDescriptorSetsInfo * pBindDescriptorSetsInfo,
31270 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31271 {
31272 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31273 d.vkCmdBindDescriptorSets2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
31274 reinterpret_cast<const VkBindDescriptorSetsInfo *>( pBindDescriptorSetsInfo ) );
31275 }
31276
31277 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31278 // wrapper function for command vkCmdBindDescriptorSets2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorSets2KHR.html
31279 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorSets2KHR ), bool>::type>
31280 VULKAN_HPP_INLINE void CommandBuffer::bindDescriptorSets2KHR( const BindDescriptorSetsInfo & bindDescriptorSetsInfo,
31281 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31282 {
31283 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31284 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31285 VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorSets2KHR && "Function <vkCmdBindDescriptorSets2KHR> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
31286 # endif
31287
31288 d.vkCmdBindDescriptorSets2KHR( m_commandBuffer, reinterpret_cast<const VkBindDescriptorSetsInfo *>( &bindDescriptorSetsInfo ) );
31289 }
31290 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31291
31292 // wrapper function for command vkCmdPushConstants2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants2KHR.html
31293 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushConstants2KHR ), bool>::type>
31294 VULKAN_HPP_INLINE void CommandBuffer::pushConstants2KHR( const PushConstantsInfo * pPushConstantsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31295 {
31296 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31297 d.vkCmdPushConstants2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkPushConstantsInfo *>( pPushConstantsInfo ) );
31298 }
31299
31300 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31301 // wrapper function for command vkCmdPushConstants2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushConstants2KHR.html
31302 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushConstants2KHR ), bool>::type>
31303 VULKAN_HPP_INLINE void CommandBuffer::pushConstants2KHR( const PushConstantsInfo & pushConstantsInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31304 {
31305 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31306 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31307 VULKAN_HPP_ASSERT( d.vkCmdPushConstants2KHR && "Function <vkCmdPushConstants2KHR> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
31308 # endif
31309
31310 d.vkCmdPushConstants2KHR( m_commandBuffer, reinterpret_cast<const VkPushConstantsInfo *>( &pushConstantsInfo ) );
31311 }
31312 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31313
31314 // wrapper function for command vkCmdPushDescriptorSet2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet2KHR.html
31315 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSet2KHR ), bool>::type>
31316 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet2KHR( const PushDescriptorSetInfo * pPushDescriptorSetInfo,
31317 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31318 {
31319 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31320 d.vkCmdPushDescriptorSet2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
31321 reinterpret_cast<const VkPushDescriptorSetInfo *>( pPushDescriptorSetInfo ) );
31322 }
31323
31324 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31325 // wrapper function for command vkCmdPushDescriptorSet2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSet2KHR.html
31326 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSet2KHR ), bool>::type>
31327 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSet2KHR( const PushDescriptorSetInfo & pushDescriptorSetInfo,
31328 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31329 {
31330 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31331 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31332 VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSet2KHR && "Function <vkCmdPushDescriptorSet2KHR> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
31333 # endif
31334
31335 d.vkCmdPushDescriptorSet2KHR( m_commandBuffer, reinterpret_cast<const VkPushDescriptorSetInfo *>( &pushDescriptorSetInfo ) );
31336 }
31337 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31338
31339 // wrapper function for command vkCmdPushDescriptorSetWithTemplate2KHR, see
31340 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate2KHR.html
31341 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplate2KHR ), bool>::type>
31342 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate2KHR( const PushDescriptorSetWithTemplateInfo * pPushDescriptorSetWithTemplateInfo,
31343 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31344 {
31345 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31346 d.vkCmdPushDescriptorSetWithTemplate2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
31347 reinterpret_cast<const VkPushDescriptorSetWithTemplateInfo *>( pPushDescriptorSetWithTemplateInfo ) );
31348 }
31349
31350 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31351 // wrapper function for command vkCmdPushDescriptorSetWithTemplate2KHR, see
31352 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPushDescriptorSetWithTemplate2KHR.html
31353 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPushDescriptorSetWithTemplate2KHR ), bool>::type>
31354 VULKAN_HPP_INLINE void CommandBuffer::pushDescriptorSetWithTemplate2KHR( const PushDescriptorSetWithTemplateInfo & pushDescriptorSetWithTemplateInfo,
31355 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31356 {
31357 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31358 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31359 VULKAN_HPP_ASSERT( d.vkCmdPushDescriptorSetWithTemplate2KHR &&
31360 "Function <vkCmdPushDescriptorSetWithTemplate2KHR> requires <VK_KHR_maintenance6> or <VK_VERSION_1_4>" );
31361 # endif
31362
31363 d.vkCmdPushDescriptorSetWithTemplate2KHR( m_commandBuffer,
31364 reinterpret_cast<const VkPushDescriptorSetWithTemplateInfo *>( &pushDescriptorSetWithTemplateInfo ) );
31365 }
31366 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31367
31368 // wrapper function for command vkCmdSetDescriptorBufferOffsets2EXT, see
31369 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDescriptorBufferOffsets2EXT.html
31370 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDescriptorBufferOffsets2EXT ), bool>::type>
31371 VULKAN_HPP_INLINE void CommandBuffer::setDescriptorBufferOffsets2EXT( const SetDescriptorBufferOffsetsInfoEXT * pSetDescriptorBufferOffsetsInfo,
31372 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31373 {
31374 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31375 d.vkCmdSetDescriptorBufferOffsets2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
31376 reinterpret_cast<const VkSetDescriptorBufferOffsetsInfoEXT *>( pSetDescriptorBufferOffsetsInfo ) );
31377 }
31378
31379 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31380 // wrapper function for command vkCmdSetDescriptorBufferOffsets2EXT, see
31381 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetDescriptorBufferOffsets2EXT.html
31382 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetDescriptorBufferOffsets2EXT ), bool>::type>
31383 VULKAN_HPP_INLINE void CommandBuffer::setDescriptorBufferOffsets2EXT( const SetDescriptorBufferOffsetsInfoEXT & setDescriptorBufferOffsetsInfo,
31384 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31385 {
31386 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31387 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31388 VULKAN_HPP_ASSERT( d.vkCmdSetDescriptorBufferOffsets2EXT && "Function <vkCmdSetDescriptorBufferOffsets2EXT> requires <VK_KHR_maintenance6>" );
31389 # endif
31390
31391 d.vkCmdSetDescriptorBufferOffsets2EXT( m_commandBuffer, reinterpret_cast<const VkSetDescriptorBufferOffsetsInfoEXT *>( &setDescriptorBufferOffsetsInfo ) );
31392 }
31393 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31394
31395 // wrapper function for command vkCmdBindDescriptorBufferEmbeddedSamplers2EXT, see
31396 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBufferEmbeddedSamplers2EXT.html
31397 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorBufferEmbeddedSamplers2EXT ), bool>::type>
31398 VULKAN_HPP_INLINE void
31399 CommandBuffer::bindDescriptorBufferEmbeddedSamplers2EXT( const BindDescriptorBufferEmbeddedSamplersInfoEXT * pBindDescriptorBufferEmbeddedSamplersInfo,
31400 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31401 {
31402 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31403 d.vkCmdBindDescriptorBufferEmbeddedSamplers2EXT(
31404 static_cast<VkCommandBuffer>( m_commandBuffer ),
31405 reinterpret_cast<const VkBindDescriptorBufferEmbeddedSamplersInfoEXT *>( pBindDescriptorBufferEmbeddedSamplersInfo ) );
31406 }
31407
31408 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31409 // wrapper function for command vkCmdBindDescriptorBufferEmbeddedSamplers2EXT, see
31410 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindDescriptorBufferEmbeddedSamplers2EXT.html
31411 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindDescriptorBufferEmbeddedSamplers2EXT ), bool>::type>
31412 VULKAN_HPP_INLINE void
31413 CommandBuffer::bindDescriptorBufferEmbeddedSamplers2EXT( const BindDescriptorBufferEmbeddedSamplersInfoEXT & bindDescriptorBufferEmbeddedSamplersInfo,
31414 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31415 {
31416 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31417 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31418 VULKAN_HPP_ASSERT( d.vkCmdBindDescriptorBufferEmbeddedSamplers2EXT &&
31419 "Function <vkCmdBindDescriptorBufferEmbeddedSamplers2EXT> requires <VK_KHR_maintenance6>" );
31420 # endif
31421
31422 d.vkCmdBindDescriptorBufferEmbeddedSamplers2EXT(
31423 m_commandBuffer, reinterpret_cast<const VkBindDescriptorBufferEmbeddedSamplersInfoEXT *>( &bindDescriptorBufferEmbeddedSamplersInfo ) );
31424 }
31425 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31426
31427 //=== VK_QCOM_tile_memory_heap ===
31428
31429 // wrapper function for command vkCmdBindTileMemoryQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTileMemoryQCOM.html
31430 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindTileMemoryQCOM ), bool>::type>
31431 VULKAN_HPP_INLINE void CommandBuffer::bindTileMemoryQCOM( const TileMemoryBindInfoQCOM * pTileMemoryBindInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31432 {
31433 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31434 d.vkCmdBindTileMemoryQCOM( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkTileMemoryBindInfoQCOM *>( pTileMemoryBindInfo ) );
31435 }
31436
31437 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31438 // wrapper function for command vkCmdBindTileMemoryQCOM, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBindTileMemoryQCOM.html
31439 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBindTileMemoryQCOM ), bool>::type>
31440 VULKAN_HPP_INLINE void CommandBuffer::bindTileMemoryQCOM( Optional<const TileMemoryBindInfoQCOM> tileMemoryBindInfo,
31441 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31442 {
31443 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31444 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31445 VULKAN_HPP_ASSERT( d.vkCmdBindTileMemoryQCOM && "Function <vkCmdBindTileMemoryQCOM> requires <VK_QCOM_tile_memory_heap>" );
31446 # endif
31447
31448 d.vkCmdBindTileMemoryQCOM( m_commandBuffer, reinterpret_cast<const VkTileMemoryBindInfoQCOM *>( tileMemoryBindInfo.get() ) );
31449 }
31450 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31451
31452 //=== VK_KHR_copy_memory_indirect ===
31453
31454 // wrapper function for command vkCmdCopyMemoryIndirectKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryIndirectKHR.html
31455 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryIndirectKHR ), bool>::type>
31456 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryIndirectKHR( const CopyMemoryIndirectInfoKHR * pCopyMemoryIndirectInfo,
31457 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31458 {
31459 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31460 d.vkCmdCopyMemoryIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
31461 reinterpret_cast<const VkCopyMemoryIndirectInfoKHR *>( pCopyMemoryIndirectInfo ) );
31462 }
31463
31464 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31465 // wrapper function for command vkCmdCopyMemoryIndirectKHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryIndirectKHR.html
31466 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryIndirectKHR ), bool>::type>
31467 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryIndirectKHR( const CopyMemoryIndirectInfoKHR & copyMemoryIndirectInfo,
31468 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31469 {
31470 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31471 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31472 VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryIndirectKHR && "Function <vkCmdCopyMemoryIndirectKHR> requires <VK_KHR_copy_memory_indirect>" );
31473 # endif
31474
31475 d.vkCmdCopyMemoryIndirectKHR( m_commandBuffer, reinterpret_cast<const VkCopyMemoryIndirectInfoKHR *>( &copyMemoryIndirectInfo ) );
31476 }
31477 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31478
31479 // wrapper function for command vkCmdCopyMemoryToImageIndirectKHR, see
31480 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageIndirectKHR.html
31481 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToImageIndirectKHR ), bool>::type>
31482 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToImageIndirectKHR( const CopyMemoryToImageIndirectInfoKHR * pCopyMemoryToImageIndirectInfo,
31483 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31484 {
31485 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31486 d.vkCmdCopyMemoryToImageIndirectKHR( static_cast<VkCommandBuffer>( m_commandBuffer ),
31487 reinterpret_cast<const VkCopyMemoryToImageIndirectInfoKHR *>( pCopyMemoryToImageIndirectInfo ) );
31488 }
31489
31490 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31491 // wrapper function for command vkCmdCopyMemoryToImageIndirectKHR, see
31492 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdCopyMemoryToImageIndirectKHR.html
31493 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdCopyMemoryToImageIndirectKHR ), bool>::type>
31494 VULKAN_HPP_INLINE void CommandBuffer::copyMemoryToImageIndirectKHR( const CopyMemoryToImageIndirectInfoKHR & copyMemoryToImageIndirectInfo,
31495 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31496 {
31497 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31498 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31499 VULKAN_HPP_ASSERT( d.vkCmdCopyMemoryToImageIndirectKHR && "Function <vkCmdCopyMemoryToImageIndirectKHR> requires <VK_KHR_copy_memory_indirect>" );
31500 # endif
31501
31502 d.vkCmdCopyMemoryToImageIndirectKHR( m_commandBuffer, reinterpret_cast<const VkCopyMemoryToImageIndirectInfoKHR *>( &copyMemoryToImageIndirectInfo ) );
31503 }
31504 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31505
31506 //=== VK_EXT_memory_decompression ===
31507
31508 // wrapper function for command vkCmdDecompressMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryEXT.html
31509 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecompressMemoryEXT ), bool>::type>
31510 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryEXT( const DecompressMemoryInfoEXT * pDecompressMemoryInfoEXT,
31511 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31512 {
31513 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31514 d.vkCmdDecompressMemoryEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
31515 reinterpret_cast<const VkDecompressMemoryInfoEXT *>( pDecompressMemoryInfoEXT ) );
31516 }
31517
31518 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31519 // wrapper function for command vkCmdDecompressMemoryEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryEXT.html
31520 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecompressMemoryEXT ), bool>::type>
31521 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryEXT( const DecompressMemoryInfoEXT & decompressMemoryInfoEXT,
31522 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31523 {
31524 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31525 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31526 VULKAN_HPP_ASSERT( d.vkCmdDecompressMemoryEXT && "Function <vkCmdDecompressMemoryEXT> requires <VK_EXT_memory_decompression>" );
31527 # endif
31528
31529 d.vkCmdDecompressMemoryEXT( m_commandBuffer, reinterpret_cast<const VkDecompressMemoryInfoEXT *>( &decompressMemoryInfoEXT ) );
31530 }
31531 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31532
31533 // wrapper function for command vkCmdDecompressMemoryIndirectCountEXT, see
31534 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdDecompressMemoryIndirectCountEXT.html
31535 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdDecompressMemoryIndirectCountEXT ), bool>::type>
31536 VULKAN_HPP_INLINE void CommandBuffer::decompressMemoryIndirectCountEXT( MemoryDecompressionMethodFlagsEXT decompressionMethod,
31537 DeviceAddress indirectCommandsAddress,
31538 DeviceAddress indirectCommandsCountAddress,
31539 uint32_t maxDecompressionCount,
31540 uint32_t stride,
31541 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31542 {
31543 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31544 d.vkCmdDecompressMemoryIndirectCountEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
31545 static_cast<VkMemoryDecompressionMethodFlagsEXT>( decompressionMethod ),
31546 static_cast<VkDeviceAddress>( indirectCommandsAddress ),
31547 static_cast<VkDeviceAddress>( indirectCommandsCountAddress ),
31548 maxDecompressionCount,
31549 stride );
31550 }
31551
31552 //=== VK_NV_external_compute_queue ===
31553
31554 // wrapper function for command vkCreateExternalComputeQueueNV, see
31555 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExternalComputeQueueNV.html
31556 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateExternalComputeQueueNV ), bool>::type>
31557 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createExternalComputeQueueNV( const ExternalComputeQueueCreateInfoNV * pCreateInfo,
31558 const AllocationCallbacks * pAllocator,
31559 ExternalComputeQueueNV * pExternalQueue,
31560 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31561 {
31562 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31563 return static_cast<Result>( d.vkCreateExternalComputeQueueNV( static_cast<VkDevice>( m_device ),
31564 reinterpret_cast<const VkExternalComputeQueueCreateInfoNV *>( pCreateInfo ),
31565 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
31566 reinterpret_cast<VkExternalComputeQueueNV *>( pExternalQueue ) ) );
31567 }
31568
31569 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31570 // wrapper function for command vkCreateExternalComputeQueueNV, see
31571 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExternalComputeQueueNV.html
31572 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateExternalComputeQueueNV ), bool>::type>
31573 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<ExternalComputeQueueNV>::type Device::createExternalComputeQueueNV(
31574 const ExternalComputeQueueCreateInfoNV & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
31575 {
31576 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31577 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31578 VULKAN_HPP_ASSERT( d.vkCreateExternalComputeQueueNV && "Function <vkCreateExternalComputeQueueNV> requires <VK_NV_external_compute_queue>" );
31579 # endif
31580
31581 ExternalComputeQueueNV externalQueue;
31582 Result result = static_cast<Result>( d.vkCreateExternalComputeQueueNV( m_device,
31583 reinterpret_cast<const VkExternalComputeQueueCreateInfoNV *>( &createInfo ),
31584 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
31585 reinterpret_cast<VkExternalComputeQueueNV *>( &externalQueue ) ) );
31586 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createExternalComputeQueueNV" );
31587
31588 return detail::createResultValueType( result, std::move( externalQueue ) );
31589 }
31590
31591 # ifndef VULKAN_HPP_NO_SMART_HANDLE
31592 // wrapper function for command vkCreateExternalComputeQueueNV, see
31593 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateExternalComputeQueueNV.html
31594 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateExternalComputeQueueNV ), bool>::type>
31595 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<ExternalComputeQueueNV, Dispatch>>::type
31596 Device::createExternalComputeQueueNVUnique( const ExternalComputeQueueCreateInfoNV & createInfo,
31597 Optional<const AllocationCallbacks> allocator,
31598 Dispatch const & d ) const
31599 {
31600 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31601 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31602 VULKAN_HPP_ASSERT( d.vkCreateExternalComputeQueueNV && "Function <vkCreateExternalComputeQueueNV> requires <VK_NV_external_compute_queue>" );
31603 # endif
31604
31605 ExternalComputeQueueNV externalQueue;
31606 Result result = static_cast<Result>( d.vkCreateExternalComputeQueueNV( m_device,
31607 reinterpret_cast<const VkExternalComputeQueueCreateInfoNV *>( &createInfo ),
31608 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
31609 reinterpret_cast<VkExternalComputeQueueNV *>( &externalQueue ) ) );
31610 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createExternalComputeQueueNVUnique" );
31611
31612 return detail::createResultValueType(
31613 result, UniqueHandle<ExternalComputeQueueNV, Dispatch>( externalQueue, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
31614 }
31615 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
31616 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31617
31618 // wrapper function for command vkDestroyExternalComputeQueueNV, see
31619 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyExternalComputeQueueNV.html
31620 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyExternalComputeQueueNV ), bool>::type>
31621 VULKAN_HPP_INLINE void Device::destroyExternalComputeQueueNV( ExternalComputeQueueNV externalQueue,
31622 const AllocationCallbacks * pAllocator,
31623 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31624 {
31625 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31626 d.vkDestroyExternalComputeQueueNV( static_cast<VkDevice>( m_device ),
31627 static_cast<VkExternalComputeQueueNV>( externalQueue ),
31628 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
31629 }
31630
31631 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31632 // wrapper function for command vkDestroyExternalComputeQueueNV, see
31633 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyExternalComputeQueueNV.html
31634 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyExternalComputeQueueNV ), bool>::type>
31635 VULKAN_HPP_INLINE void Device::destroyExternalComputeQueueNV( ExternalComputeQueueNV externalQueue,
31636 Optional<const AllocationCallbacks> allocator,
31637 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31638 {
31639 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31640 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31641 VULKAN_HPP_ASSERT( d.vkDestroyExternalComputeQueueNV && "Function <vkDestroyExternalComputeQueueNV> requires <VK_NV_external_compute_queue>" );
31642 # endif
31643
31644 d.vkDestroyExternalComputeQueueNV(
31645 m_device, static_cast<VkExternalComputeQueueNV>( externalQueue ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
31646 }
31647 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31648
31649 // wrapper function for command vkDestroyExternalComputeQueueNV, see
31650 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyExternalComputeQueueNV.html
31651 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyExternalComputeQueueNV ), bool>::type>
31652 VULKAN_HPP_INLINE void
31653 Device::destroy( ExternalComputeQueueNV externalQueue, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31654 {
31655 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31656 d.vkDestroyExternalComputeQueueNV( static_cast<VkDevice>( m_device ),
31657 static_cast<VkExternalComputeQueueNV>( externalQueue ),
31658 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
31659 }
31660
31661 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31662 // wrapper function for command vkDestroyExternalComputeQueueNV, see
31663 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyExternalComputeQueueNV.html
31664 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyExternalComputeQueueNV ), bool>::type>
31665 VULKAN_HPP_INLINE void
31666 Device::destroy( ExternalComputeQueueNV externalQueue, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31667 {
31668 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31669 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31670 VULKAN_HPP_ASSERT( d.vkDestroyExternalComputeQueueNV && "Function <vkDestroyExternalComputeQueueNV> requires <VK_NV_external_compute_queue>" );
31671 # endif
31672
31673 d.vkDestroyExternalComputeQueueNV(
31674 m_device, static_cast<VkExternalComputeQueueNV>( externalQueue ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
31675 }
31676 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31677
31678 // wrapper function for command vkGetExternalComputeQueueDataNV, see
31679 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExternalComputeQueueDataNV.html
31680 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetExternalComputeQueueDataNV ), bool>::type>
31681 VULKAN_HPP_INLINE void
31682 ExternalComputeQueueNV::getData( ExternalComputeQueueDataParamsNV * params, void * pData, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31683 {
31684 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31685 d.vkGetExternalComputeQueueDataNV(
31686 static_cast<VkExternalComputeQueueNV>( m_externalComputeQueueNV ), reinterpret_cast<VkExternalComputeQueueDataParamsNV *>( params ), pData );
31687 }
31688
31689 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31690 // wrapper function for command vkGetExternalComputeQueueDataNV, see
31691 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetExternalComputeQueueDataNV.html
31692 template <typename DataType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetExternalComputeQueueDataNV ), bool>::type>
31693 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE std::pair<ExternalComputeQueueDataParamsNV, DataType>
31694 ExternalComputeQueueNV::getData( Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31695 {
31696 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31697 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31698 VULKAN_HPP_ASSERT( d.vkGetExternalComputeQueueDataNV && "Function <vkGetExternalComputeQueueDataNV> requires <VK_NV_external_compute_queue>" );
31699 # endif
31700
31701 std::pair<ExternalComputeQueueDataParamsNV, DataType> data_;
31702 ExternalComputeQueueDataParamsNV & arams = data_.first;
31703 DataType & data = data_.second;
31704 d.vkGetExternalComputeQueueDataNV( m_externalComputeQueueNV, reinterpret_cast<VkExternalComputeQueueDataParamsNV *>( &arams ), &data );
31705
31706 return data_;
31707 }
31708 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31709
31710 //=== VK_NV_cluster_acceleration_structure ===
31711
31712 // wrapper function for command vkGetClusterAccelerationStructureBuildSizesNV, see
31713 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetClusterAccelerationStructureBuildSizesNV.html
31714 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetClusterAccelerationStructureBuildSizesNV ), bool>::type>
31715 VULKAN_HPP_INLINE void Device::getClusterAccelerationStructureBuildSizesNV( const ClusterAccelerationStructureInputInfoNV * pInfo,
31716 AccelerationStructureBuildSizesInfoKHR * pSizeInfo,
31717 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31718 {
31719 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31720 d.vkGetClusterAccelerationStructureBuildSizesNV( static_cast<VkDevice>( m_device ),
31721 reinterpret_cast<const VkClusterAccelerationStructureInputInfoNV *>( pInfo ),
31722 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( pSizeInfo ) );
31723 }
31724
31725 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31726 // wrapper function for command vkGetClusterAccelerationStructureBuildSizesNV, see
31727 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetClusterAccelerationStructureBuildSizesNV.html
31728 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetClusterAccelerationStructureBuildSizesNV ), bool>::type>
31729 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureBuildSizesInfoKHR
31730 Device::getClusterAccelerationStructureBuildSizesNV( const ClusterAccelerationStructureInputInfoNV & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31731 {
31732 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31733 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31734 VULKAN_HPP_ASSERT( d.vkGetClusterAccelerationStructureBuildSizesNV &&
31735 "Function <vkGetClusterAccelerationStructureBuildSizesNV> requires <VK_NV_cluster_acceleration_structure>" );
31736 # endif
31737
31738 AccelerationStructureBuildSizesInfoKHR sizeInfo;
31739 d.vkGetClusterAccelerationStructureBuildSizesNV( m_device,
31740 reinterpret_cast<const VkClusterAccelerationStructureInputInfoNV *>( &info ),
31741 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( &sizeInfo ) );
31742
31743 return sizeInfo;
31744 }
31745 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31746
31747 // wrapper function for command vkCmdBuildClusterAccelerationStructureIndirectNV, see
31748 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildClusterAccelerationStructureIndirectNV.html
31749 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildClusterAccelerationStructureIndirectNV ), bool>::type>
31750 VULKAN_HPP_INLINE void CommandBuffer::buildClusterAccelerationStructureIndirectNV( const ClusterAccelerationStructureCommandsInfoNV * pCommandInfos,
31751 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31752 {
31753 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31754 d.vkCmdBuildClusterAccelerationStructureIndirectNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
31755 reinterpret_cast<const VkClusterAccelerationStructureCommandsInfoNV *>( pCommandInfos ) );
31756 }
31757
31758 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31759 // wrapper function for command vkCmdBuildClusterAccelerationStructureIndirectNV, see
31760 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildClusterAccelerationStructureIndirectNV.html
31761 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildClusterAccelerationStructureIndirectNV ), bool>::type>
31762 VULKAN_HPP_INLINE void CommandBuffer::buildClusterAccelerationStructureIndirectNV( const ClusterAccelerationStructureCommandsInfoNV & commandInfos,
31763 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31764 {
31765 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31766 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31767 VULKAN_HPP_ASSERT( d.vkCmdBuildClusterAccelerationStructureIndirectNV &&
31768 "Function <vkCmdBuildClusterAccelerationStructureIndirectNV> requires <VK_NV_cluster_acceleration_structure>" );
31769 # endif
31770
31771 d.vkCmdBuildClusterAccelerationStructureIndirectNV( m_commandBuffer,
31772 reinterpret_cast<const VkClusterAccelerationStructureCommandsInfoNV *>( &commandInfos ) );
31773 }
31774 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31775
31776 //=== VK_NV_partitioned_acceleration_structure ===
31777
31778 // wrapper function for command vkGetPartitionedAccelerationStructuresBuildSizesNV, see
31779 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPartitionedAccelerationStructuresBuildSizesNV.html
31780 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPartitionedAccelerationStructuresBuildSizesNV ), bool>::type>
31781 VULKAN_HPP_INLINE void Device::getPartitionedAccelerationStructuresBuildSizesNV( const PartitionedAccelerationStructureInstancesInputNV * pInfo,
31782 AccelerationStructureBuildSizesInfoKHR * pSizeInfo,
31783 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31784 {
31785 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31786 d.vkGetPartitionedAccelerationStructuresBuildSizesNV( static_cast<VkDevice>( m_device ),
31787 reinterpret_cast<const VkPartitionedAccelerationStructureInstancesInputNV *>( pInfo ),
31788 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( pSizeInfo ) );
31789 }
31790
31791 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31792 // wrapper function for command vkGetPartitionedAccelerationStructuresBuildSizesNV, see
31793 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPartitionedAccelerationStructuresBuildSizesNV.html
31794 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPartitionedAccelerationStructuresBuildSizesNV ), bool>::type>
31795 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE AccelerationStructureBuildSizesInfoKHR Device::getPartitionedAccelerationStructuresBuildSizesNV(
31796 const PartitionedAccelerationStructureInstancesInputNV & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31797 {
31798 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31799 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31800 VULKAN_HPP_ASSERT( d.vkGetPartitionedAccelerationStructuresBuildSizesNV &&
31801 "Function <vkGetPartitionedAccelerationStructuresBuildSizesNV> requires <VK_NV_partitioned_acceleration_structure>" );
31802 # endif
31803
31804 AccelerationStructureBuildSizesInfoKHR sizeInfo;
31805 d.vkGetPartitionedAccelerationStructuresBuildSizesNV( m_device,
31806 reinterpret_cast<const VkPartitionedAccelerationStructureInstancesInputNV *>( &info ),
31807 reinterpret_cast<VkAccelerationStructureBuildSizesInfoKHR *>( &sizeInfo ) );
31808
31809 return sizeInfo;
31810 }
31811 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31812
31813 // wrapper function for command vkCmdBuildPartitionedAccelerationStructuresNV, see
31814 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildPartitionedAccelerationStructuresNV.html
31815 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildPartitionedAccelerationStructuresNV ), bool>::type>
31816 VULKAN_HPP_INLINE void CommandBuffer::buildPartitionedAccelerationStructuresNV( const BuildPartitionedAccelerationStructureInfoNV * pBuildInfo,
31817 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31818 {
31819 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31820 d.vkCmdBuildPartitionedAccelerationStructuresNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
31821 reinterpret_cast<const VkBuildPartitionedAccelerationStructureInfoNV *>( pBuildInfo ) );
31822 }
31823
31824 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31825 // wrapper function for command vkCmdBuildPartitionedAccelerationStructuresNV, see
31826 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBuildPartitionedAccelerationStructuresNV.html
31827 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBuildPartitionedAccelerationStructuresNV ), bool>::type>
31828 VULKAN_HPP_INLINE void CommandBuffer::buildPartitionedAccelerationStructuresNV( const BuildPartitionedAccelerationStructureInfoNV & buildInfo,
31829 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31830 {
31831 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31832 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31833 VULKAN_HPP_ASSERT( d.vkCmdBuildPartitionedAccelerationStructuresNV &&
31834 "Function <vkCmdBuildPartitionedAccelerationStructuresNV> requires <VK_NV_partitioned_acceleration_structure>" );
31835 # endif
31836
31837 d.vkCmdBuildPartitionedAccelerationStructuresNV( m_commandBuffer, reinterpret_cast<const VkBuildPartitionedAccelerationStructureInfoNV *>( &buildInfo ) );
31838 }
31839 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31840
31841 //=== VK_EXT_device_generated_commands ===
31842
31843 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsEXT, see
31844 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsEXT.html
31845 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetGeneratedCommandsMemoryRequirementsEXT ), bool>::type>
31846 VULKAN_HPP_INLINE void Device::getGeneratedCommandsMemoryRequirementsEXT( const GeneratedCommandsMemoryRequirementsInfoEXT * pInfo,
31847 MemoryRequirements2 * pMemoryRequirements,
31848 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31849 {
31850 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31851 d.vkGetGeneratedCommandsMemoryRequirementsEXT( static_cast<VkDevice>( m_device ),
31852 reinterpret_cast<const VkGeneratedCommandsMemoryRequirementsInfoEXT *>( pInfo ),
31853 reinterpret_cast<VkMemoryRequirements2 *>( pMemoryRequirements ) );
31854 }
31855
31856 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31857 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsEXT, see
31858 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsEXT.html
31859 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetGeneratedCommandsMemoryRequirementsEXT ), bool>::type>
31860 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE MemoryRequirements2
31861 Device::getGeneratedCommandsMemoryRequirementsEXT( const GeneratedCommandsMemoryRequirementsInfoEXT & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31862 {
31863 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31864 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31865 VULKAN_HPP_ASSERT( d.vkGetGeneratedCommandsMemoryRequirementsEXT &&
31866 "Function <vkGetGeneratedCommandsMemoryRequirementsEXT> requires <VK_EXT_device_generated_commands>" );
31867 # endif
31868
31869 MemoryRequirements2 memoryRequirements;
31870 d.vkGetGeneratedCommandsMemoryRequirementsEXT( m_device,
31871 reinterpret_cast<const VkGeneratedCommandsMemoryRequirementsInfoEXT *>( &info ),
31872 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
31873
31874 return memoryRequirements;
31875 }
31876
31877 // wrapper function for command vkGetGeneratedCommandsMemoryRequirementsEXT, see
31878 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetGeneratedCommandsMemoryRequirementsEXT.html
31879 template <typename X,
31880 typename Y,
31881 typename... Z,
31882 typename Dispatch,
31883 typename std::enable_if<IS_DISPATCHED( vkGetGeneratedCommandsMemoryRequirementsEXT ), bool>::type>
31884 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE StructureChain<X, Y, Z...>
31885 Device::getGeneratedCommandsMemoryRequirementsEXT( const GeneratedCommandsMemoryRequirementsInfoEXT & info, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31886 {
31887 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31888 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31889 VULKAN_HPP_ASSERT( d.vkGetGeneratedCommandsMemoryRequirementsEXT &&
31890 "Function <vkGetGeneratedCommandsMemoryRequirementsEXT> requires <VK_EXT_device_generated_commands>" );
31891 # endif
31892
31893 StructureChain<X, Y, Z...> structureChain;
31894 MemoryRequirements2 & memoryRequirements = structureChain.template get<MemoryRequirements2>();
31895 d.vkGetGeneratedCommandsMemoryRequirementsEXT( m_device,
31896 reinterpret_cast<const VkGeneratedCommandsMemoryRequirementsInfoEXT *>( &info ),
31897 reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) );
31898
31899 return structureChain;
31900 }
31901 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31902
31903 // wrapper function for command vkCmdPreprocessGeneratedCommandsEXT, see
31904 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPreprocessGeneratedCommandsEXT.html
31905 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPreprocessGeneratedCommandsEXT ), bool>::type>
31906 VULKAN_HPP_INLINE void CommandBuffer::preprocessGeneratedCommandsEXT( const GeneratedCommandsInfoEXT * pGeneratedCommandsInfo,
31907 CommandBuffer stateCommandBuffer,
31908 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31909 {
31910 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31911 d.vkCmdPreprocessGeneratedCommandsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
31912 reinterpret_cast<const VkGeneratedCommandsInfoEXT *>( pGeneratedCommandsInfo ),
31913 static_cast<VkCommandBuffer>( stateCommandBuffer ) );
31914 }
31915
31916 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31917 // wrapper function for command vkCmdPreprocessGeneratedCommandsEXT, see
31918 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdPreprocessGeneratedCommandsEXT.html
31919 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdPreprocessGeneratedCommandsEXT ), bool>::type>
31920 VULKAN_HPP_INLINE void CommandBuffer::preprocessGeneratedCommandsEXT( const GeneratedCommandsInfoEXT & generatedCommandsInfo,
31921 CommandBuffer stateCommandBuffer,
31922 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31923 {
31924 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31925 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31926 VULKAN_HPP_ASSERT( d.vkCmdPreprocessGeneratedCommandsEXT && "Function <vkCmdPreprocessGeneratedCommandsEXT> requires <VK_EXT_device_generated_commands>" );
31927 # endif
31928
31929 d.vkCmdPreprocessGeneratedCommandsEXT(
31930 m_commandBuffer, reinterpret_cast<const VkGeneratedCommandsInfoEXT *>( &generatedCommandsInfo ), static_cast<VkCommandBuffer>( stateCommandBuffer ) );
31931 }
31932 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31933
31934 // wrapper function for command vkCmdExecuteGeneratedCommandsEXT, see
31935 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteGeneratedCommandsEXT.html
31936 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdExecuteGeneratedCommandsEXT ), bool>::type>
31937 VULKAN_HPP_INLINE void CommandBuffer::executeGeneratedCommandsEXT( Bool32 isPreprocessed,
31938 const GeneratedCommandsInfoEXT * pGeneratedCommandsInfo,
31939 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31940 {
31941 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31942 d.vkCmdExecuteGeneratedCommandsEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
31943 static_cast<VkBool32>( isPreprocessed ),
31944 reinterpret_cast<const VkGeneratedCommandsInfoEXT *>( pGeneratedCommandsInfo ) );
31945 }
31946
31947 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31948 // wrapper function for command vkCmdExecuteGeneratedCommandsEXT, see
31949 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdExecuteGeneratedCommandsEXT.html
31950 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdExecuteGeneratedCommandsEXT ), bool>::type>
31951 VULKAN_HPP_INLINE void CommandBuffer::executeGeneratedCommandsEXT( Bool32 isPreprocessed,
31952 const GeneratedCommandsInfoEXT & generatedCommandsInfo,
31953 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31954 {
31955 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31956 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31957 VULKAN_HPP_ASSERT( d.vkCmdExecuteGeneratedCommandsEXT && "Function <vkCmdExecuteGeneratedCommandsEXT> requires <VK_EXT_device_generated_commands>" );
31958 # endif
31959
31960 d.vkCmdExecuteGeneratedCommandsEXT(
31961 m_commandBuffer, static_cast<VkBool32>( isPreprocessed ), reinterpret_cast<const VkGeneratedCommandsInfoEXT *>( &generatedCommandsInfo ) );
31962 }
31963 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
31964
31965 // wrapper function for command vkCreateIndirectCommandsLayoutEXT, see
31966 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutEXT.html
31967 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectCommandsLayoutEXT ), bool>::type>
31968 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createIndirectCommandsLayoutEXT( const IndirectCommandsLayoutCreateInfoEXT * pCreateInfo,
31969 const AllocationCallbacks * pAllocator,
31970 IndirectCommandsLayoutEXT * pIndirectCommandsLayout,
31971 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
31972 {
31973 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31974 return static_cast<Result>( d.vkCreateIndirectCommandsLayoutEXT( static_cast<VkDevice>( m_device ),
31975 reinterpret_cast<const VkIndirectCommandsLayoutCreateInfoEXT *>( pCreateInfo ),
31976 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
31977 reinterpret_cast<VkIndirectCommandsLayoutEXT *>( pIndirectCommandsLayout ) ) );
31978 }
31979
31980 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
31981 // wrapper function for command vkCreateIndirectCommandsLayoutEXT, see
31982 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutEXT.html
31983 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectCommandsLayoutEXT ), bool>::type>
31984 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<IndirectCommandsLayoutEXT>::type Device::createIndirectCommandsLayoutEXT(
31985 const IndirectCommandsLayoutCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
31986 {
31987 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
31988 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
31989 VULKAN_HPP_ASSERT( d.vkCreateIndirectCommandsLayoutEXT && "Function <vkCreateIndirectCommandsLayoutEXT> requires <VK_EXT_device_generated_commands>" );
31990 # endif
31991
31992 IndirectCommandsLayoutEXT indirectCommandsLayout;
31993 Result result = static_cast<Result>( d.vkCreateIndirectCommandsLayoutEXT( m_device,
31994 reinterpret_cast<const VkIndirectCommandsLayoutCreateInfoEXT *>( &createInfo ),
31995 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
31996 reinterpret_cast<VkIndirectCommandsLayoutEXT *>( &indirectCommandsLayout ) ) );
31997 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectCommandsLayoutEXT" );
31998
31999 return detail::createResultValueType( result, std::move( indirectCommandsLayout ) );
32000 }
32001
32002 # ifndef VULKAN_HPP_NO_SMART_HANDLE
32003 // wrapper function for command vkCreateIndirectCommandsLayoutEXT, see
32004 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectCommandsLayoutEXT.html
32005 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectCommandsLayoutEXT ), bool>::type>
32006 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<IndirectCommandsLayoutEXT, Dispatch>>::type
32007 Device::createIndirectCommandsLayoutEXTUnique( const IndirectCommandsLayoutCreateInfoEXT & createInfo,
32008 Optional<const AllocationCallbacks> allocator,
32009 Dispatch const & d ) const
32010 {
32011 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32012 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32013 VULKAN_HPP_ASSERT( d.vkCreateIndirectCommandsLayoutEXT && "Function <vkCreateIndirectCommandsLayoutEXT> requires <VK_EXT_device_generated_commands>" );
32014 # endif
32015
32016 IndirectCommandsLayoutEXT indirectCommandsLayout;
32017 Result result = static_cast<Result>( d.vkCreateIndirectCommandsLayoutEXT( m_device,
32018 reinterpret_cast<const VkIndirectCommandsLayoutCreateInfoEXT *>( &createInfo ),
32019 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
32020 reinterpret_cast<VkIndirectCommandsLayoutEXT *>( &indirectCommandsLayout ) ) );
32021 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectCommandsLayoutEXTUnique" );
32022
32023 return detail::createResultValueType(
32024 result, UniqueHandle<IndirectCommandsLayoutEXT, Dispatch>( indirectCommandsLayout, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
32025 }
32026 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
32027 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32028
32029 // wrapper function for command vkDestroyIndirectCommandsLayoutEXT, see
32030 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutEXT.html
32031 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutEXT ), bool>::type>
32032 VULKAN_HPP_INLINE void Device::destroyIndirectCommandsLayoutEXT( IndirectCommandsLayoutEXT indirectCommandsLayout,
32033 const AllocationCallbacks * pAllocator,
32034 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32035 {
32036 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32037 d.vkDestroyIndirectCommandsLayoutEXT( static_cast<VkDevice>( m_device ),
32038 static_cast<VkIndirectCommandsLayoutEXT>( indirectCommandsLayout ),
32039 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
32040 }
32041
32042 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32043 // wrapper function for command vkDestroyIndirectCommandsLayoutEXT, see
32044 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutEXT.html
32045 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutEXT ), bool>::type>
32046 VULKAN_HPP_INLINE void Device::destroyIndirectCommandsLayoutEXT( IndirectCommandsLayoutEXT indirectCommandsLayout,
32047 Optional<const AllocationCallbacks> allocator,
32048 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32049 {
32050 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32051 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32052 VULKAN_HPP_ASSERT( d.vkDestroyIndirectCommandsLayoutEXT && "Function <vkDestroyIndirectCommandsLayoutEXT> requires <VK_EXT_device_generated_commands>" );
32053 # endif
32054
32055 d.vkDestroyIndirectCommandsLayoutEXT(
32056 m_device, static_cast<VkIndirectCommandsLayoutEXT>( indirectCommandsLayout ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
32057 }
32058 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32059
32060 // wrapper function for command vkDestroyIndirectCommandsLayoutEXT, see
32061 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutEXT.html
32062 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutEXT ), bool>::type>
32063 VULKAN_HPP_INLINE void
32064 Device::destroy( IndirectCommandsLayoutEXT indirectCommandsLayout, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32065 {
32066 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32067 d.vkDestroyIndirectCommandsLayoutEXT( static_cast<VkDevice>( m_device ),
32068 static_cast<VkIndirectCommandsLayoutEXT>( indirectCommandsLayout ),
32069 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
32070 }
32071
32072 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32073 // wrapper function for command vkDestroyIndirectCommandsLayoutEXT, see
32074 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectCommandsLayoutEXT.html
32075 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectCommandsLayoutEXT ), bool>::type>
32076 VULKAN_HPP_INLINE void Device::destroy( IndirectCommandsLayoutEXT indirectCommandsLayout,
32077 Optional<const AllocationCallbacks> allocator,
32078 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32079 {
32080 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32081 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32082 VULKAN_HPP_ASSERT( d.vkDestroyIndirectCommandsLayoutEXT && "Function <vkDestroyIndirectCommandsLayoutEXT> requires <VK_EXT_device_generated_commands>" );
32083 # endif
32084
32085 d.vkDestroyIndirectCommandsLayoutEXT(
32086 m_device, static_cast<VkIndirectCommandsLayoutEXT>( indirectCommandsLayout ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
32087 }
32088 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32089
32090 // wrapper function for command vkCreateIndirectExecutionSetEXT, see
32091 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectExecutionSetEXT.html
32092 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectExecutionSetEXT ), bool>::type>
32093 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::createIndirectExecutionSetEXT( const IndirectExecutionSetCreateInfoEXT * pCreateInfo,
32094 const AllocationCallbacks * pAllocator,
32095 IndirectExecutionSetEXT * pIndirectExecutionSet,
32096 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32097 {
32098 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32099 return static_cast<Result>( d.vkCreateIndirectExecutionSetEXT( static_cast<VkDevice>( m_device ),
32100 reinterpret_cast<const VkIndirectExecutionSetCreateInfoEXT *>( pCreateInfo ),
32101 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
32102 reinterpret_cast<VkIndirectExecutionSetEXT *>( pIndirectExecutionSet ) ) );
32103 }
32104
32105 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32106 // wrapper function for command vkCreateIndirectExecutionSetEXT, see
32107 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectExecutionSetEXT.html
32108 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectExecutionSetEXT ), bool>::type>
32109 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<IndirectExecutionSetEXT>::type Device::createIndirectExecutionSetEXT(
32110 const IndirectExecutionSetCreateInfoEXT & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
32111 {
32112 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32113 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32114 VULKAN_HPP_ASSERT( d.vkCreateIndirectExecutionSetEXT && "Function <vkCreateIndirectExecutionSetEXT> requires <VK_EXT_device_generated_commands>" );
32115 # endif
32116
32117 IndirectExecutionSetEXT indirectExecutionSet;
32118 Result result = static_cast<Result>( d.vkCreateIndirectExecutionSetEXT( m_device,
32119 reinterpret_cast<const VkIndirectExecutionSetCreateInfoEXT *>( &createInfo ),
32120 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
32121 reinterpret_cast<VkIndirectExecutionSetEXT *>( &indirectExecutionSet ) ) );
32122 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectExecutionSetEXT" );
32123
32124 return detail::createResultValueType( result, std::move( indirectExecutionSet ) );
32125 }
32126
32127 # ifndef VULKAN_HPP_NO_SMART_HANDLE
32128 // wrapper function for command vkCreateIndirectExecutionSetEXT, see
32129 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateIndirectExecutionSetEXT.html
32130 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateIndirectExecutionSetEXT ), bool>::type>
32131 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<IndirectExecutionSetEXT, Dispatch>>::type
32132 Device::createIndirectExecutionSetEXTUnique( const IndirectExecutionSetCreateInfoEXT & createInfo,
32133 Optional<const AllocationCallbacks> allocator,
32134 Dispatch const & d ) const
32135 {
32136 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32137 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32138 VULKAN_HPP_ASSERT( d.vkCreateIndirectExecutionSetEXT && "Function <vkCreateIndirectExecutionSetEXT> requires <VK_EXT_device_generated_commands>" );
32139 # endif
32140
32141 IndirectExecutionSetEXT indirectExecutionSet;
32142 Result result = static_cast<Result>( d.vkCreateIndirectExecutionSetEXT( m_device,
32143 reinterpret_cast<const VkIndirectExecutionSetCreateInfoEXT *>( &createInfo ),
32144 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
32145 reinterpret_cast<VkIndirectExecutionSetEXT *>( &indirectExecutionSet ) ) );
32146 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::createIndirectExecutionSetEXTUnique" );
32147
32148 return detail::createResultValueType(
32149 result, UniqueHandle<IndirectExecutionSetEXT, Dispatch>( indirectExecutionSet, detail::ObjectDestroy<Device, Dispatch>( *this, allocator, d ) ) );
32150 }
32151 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
32152 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32153
32154 // wrapper function for command vkDestroyIndirectExecutionSetEXT, see
32155 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectExecutionSetEXT.html
32156 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectExecutionSetEXT ), bool>::type>
32157 VULKAN_HPP_INLINE void Device::destroyIndirectExecutionSetEXT( IndirectExecutionSetEXT indirectExecutionSet,
32158 const AllocationCallbacks * pAllocator,
32159 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32160 {
32161 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32162 d.vkDestroyIndirectExecutionSetEXT( static_cast<VkDevice>( m_device ),
32163 static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ),
32164 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
32165 }
32166
32167 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32168 // wrapper function for command vkDestroyIndirectExecutionSetEXT, see
32169 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectExecutionSetEXT.html
32170 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectExecutionSetEXT ), bool>::type>
32171 VULKAN_HPP_INLINE void Device::destroyIndirectExecutionSetEXT( IndirectExecutionSetEXT indirectExecutionSet,
32172 Optional<const AllocationCallbacks> allocator,
32173 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32174 {
32175 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32176 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32177 VULKAN_HPP_ASSERT( d.vkDestroyIndirectExecutionSetEXT && "Function <vkDestroyIndirectExecutionSetEXT> requires <VK_EXT_device_generated_commands>" );
32178 # endif
32179
32180 d.vkDestroyIndirectExecutionSetEXT(
32181 m_device, static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
32182 }
32183 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32184
32185 // wrapper function for command vkDestroyIndirectExecutionSetEXT, see
32186 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectExecutionSetEXT.html
32187 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectExecutionSetEXT ), bool>::type>
32188 VULKAN_HPP_INLINE void
32189 Device::destroy( IndirectExecutionSetEXT indirectExecutionSet, const AllocationCallbacks * pAllocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32190 {
32191 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32192 d.vkDestroyIndirectExecutionSetEXT( static_cast<VkDevice>( m_device ),
32193 static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ),
32194 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ) );
32195 }
32196
32197 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32198 // wrapper function for command vkDestroyIndirectExecutionSetEXT, see
32199 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkDestroyIndirectExecutionSetEXT.html
32200 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkDestroyIndirectExecutionSetEXT ), bool>::type>
32201 VULKAN_HPP_INLINE void
32202 Device::destroy( IndirectExecutionSetEXT indirectExecutionSet, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32203 {
32204 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32205 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32206 VULKAN_HPP_ASSERT( d.vkDestroyIndirectExecutionSetEXT && "Function <vkDestroyIndirectExecutionSetEXT> requires <VK_EXT_device_generated_commands>" );
32207 # endif
32208
32209 d.vkDestroyIndirectExecutionSetEXT(
32210 m_device, static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ), reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ) );
32211 }
32212 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32213
32214 // wrapper function for command vkUpdateIndirectExecutionSetPipelineEXT, see
32215 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateIndirectExecutionSetPipelineEXT.html
32216 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateIndirectExecutionSetPipelineEXT ), bool>::type>
32217 VULKAN_HPP_INLINE void Device::updateIndirectExecutionSetPipelineEXT( IndirectExecutionSetEXT indirectExecutionSet,
32218 uint32_t executionSetWriteCount,
32219 const WriteIndirectExecutionSetPipelineEXT * pExecutionSetWrites,
32220 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32221 {
32222 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32223 d.vkUpdateIndirectExecutionSetPipelineEXT( static_cast<VkDevice>( m_device ),
32224 static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ),
32225 executionSetWriteCount,
32226 reinterpret_cast<const VkWriteIndirectExecutionSetPipelineEXT *>( pExecutionSetWrites ) );
32227 }
32228
32229 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32230 // wrapper function for command vkUpdateIndirectExecutionSetPipelineEXT, see
32231 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateIndirectExecutionSetPipelineEXT.html
32232 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateIndirectExecutionSetPipelineEXT ), bool>::type>
32233 VULKAN_HPP_INLINE void Device::updateIndirectExecutionSetPipelineEXT( IndirectExecutionSetEXT indirectExecutionSet,
32234 ArrayProxy<const WriteIndirectExecutionSetPipelineEXT> const & executionSetWrites,
32235 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32236 {
32237 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32238 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32239 VULKAN_HPP_ASSERT( d.vkUpdateIndirectExecutionSetPipelineEXT &&
32240 "Function <vkUpdateIndirectExecutionSetPipelineEXT> requires <VK_EXT_device_generated_commands>" );
32241 # endif
32242
32243 d.vkUpdateIndirectExecutionSetPipelineEXT( m_device,
32244 static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ),
32245 executionSetWrites.size(),
32246 reinterpret_cast<const VkWriteIndirectExecutionSetPipelineEXT *>( executionSetWrites.data() ) );
32247 }
32248 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32249
32250 // wrapper function for command vkUpdateIndirectExecutionSetShaderEXT, see
32251 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateIndirectExecutionSetShaderEXT.html
32252 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateIndirectExecutionSetShaderEXT ), bool>::type>
32253 VULKAN_HPP_INLINE void Device::updateIndirectExecutionSetShaderEXT( IndirectExecutionSetEXT indirectExecutionSet,
32254 uint32_t executionSetWriteCount,
32255 const WriteIndirectExecutionSetShaderEXT * pExecutionSetWrites,
32256 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32257 {
32258 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32259 d.vkUpdateIndirectExecutionSetShaderEXT( static_cast<VkDevice>( m_device ),
32260 static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ),
32261 executionSetWriteCount,
32262 reinterpret_cast<const VkWriteIndirectExecutionSetShaderEXT *>( pExecutionSetWrites ) );
32263 }
32264
32265 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32266 // wrapper function for command vkUpdateIndirectExecutionSetShaderEXT, see
32267 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkUpdateIndirectExecutionSetShaderEXT.html
32268 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkUpdateIndirectExecutionSetShaderEXT ), bool>::type>
32269 VULKAN_HPP_INLINE void Device::updateIndirectExecutionSetShaderEXT( IndirectExecutionSetEXT indirectExecutionSet,
32270 ArrayProxy<const WriteIndirectExecutionSetShaderEXT> const & executionSetWrites,
32271 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32272 {
32273 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32274 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32275 VULKAN_HPP_ASSERT( d.vkUpdateIndirectExecutionSetShaderEXT &&
32276 "Function <vkUpdateIndirectExecutionSetShaderEXT> requires <VK_EXT_device_generated_commands>" );
32277 # endif
32278
32279 d.vkUpdateIndirectExecutionSetShaderEXT( m_device,
32280 static_cast<VkIndirectExecutionSetEXT>( indirectExecutionSet ),
32281 executionSetWrites.size(),
32282 reinterpret_cast<const VkWriteIndirectExecutionSetShaderEXT *>( executionSetWrites.data() ) );
32283 }
32284 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32285
32286 #if defined( VK_USE_PLATFORM_OHOS )
32287 //=== VK_OHOS_surface ===
32288
32289 // wrapper function for command vkCreateSurfaceOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSurfaceOHOS.html
32290 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSurfaceOHOS ), bool>::type>
32291 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Instance::createSurfaceOHOS( const SurfaceCreateInfoOHOS * pCreateInfo,
32292 const AllocationCallbacks * pAllocator,
32293 SurfaceKHR * pSurface,
32294 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32295 {
32296 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32297 return static_cast<Result>( d.vkCreateSurfaceOHOS( static_cast<VkInstance>( m_instance ),
32298 reinterpret_cast<const VkSurfaceCreateInfoOHOS *>( pCreateInfo ),
32299 reinterpret_cast<const VkAllocationCallbacks *>( pAllocator ),
32300 reinterpret_cast<VkSurfaceKHR *>( pSurface ) ) );
32301 }
32302
32303 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32304 // wrapper function for command vkCreateSurfaceOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSurfaceOHOS.html
32305 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSurfaceOHOS ), bool>::type>
32306 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<SurfaceKHR>::type
32307 Instance::createSurfaceOHOS( const SurfaceCreateInfoOHOS & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
32308 {
32309 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32310 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32311 VULKAN_HPP_ASSERT( d.vkCreateSurfaceOHOS && "Function <vkCreateSurfaceOHOS> requires <VK_OHOS_surface>" );
32312 # endif
32313
32314 SurfaceKHR surface;
32315 Result result = static_cast<Result>( d.vkCreateSurfaceOHOS( m_instance,
32316 reinterpret_cast<const VkSurfaceCreateInfoOHOS *>( &createInfo ),
32317 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
32318 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
32319 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createSurfaceOHOS" );
32320
32321 return detail::createResultValueType( result, std::move( surface ) );
32322 }
32323
32324 # ifndef VULKAN_HPP_NO_SMART_HANDLE
32325 // wrapper function for command vkCreateSurfaceOHOS, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCreateSurfaceOHOS.html
32326 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCreateSurfaceOHOS ), bool>::type>
32327 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<SurfaceKHR, Dispatch>>::type
32328 Instance::createSurfaceOHOSUnique( const SurfaceCreateInfoOHOS & createInfo, Optional<const AllocationCallbacks> allocator, Dispatch const & d ) const
32329 {
32330 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32331 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32332 VULKAN_HPP_ASSERT( d.vkCreateSurfaceOHOS && "Function <vkCreateSurfaceOHOS> requires <VK_OHOS_surface>" );
32333 # endif
32334
32335 SurfaceKHR surface;
32336 Result result = static_cast<Result>( d.vkCreateSurfaceOHOS( m_instance,
32337 reinterpret_cast<const VkSurfaceCreateInfoOHOS *>( &createInfo ),
32338 reinterpret_cast<const VkAllocationCallbacks *>( allocator.get() ),
32339 reinterpret_cast<VkSurfaceKHR *>( &surface ) ) );
32340 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Instance::createSurfaceOHOSUnique" );
32341
32342 return detail::createResultValueType( result,
32343 UniqueHandle<SurfaceKHR, Dispatch>( surface, detail::ObjectDestroy<Instance, Dispatch>( *this, allocator, d ) ) );
32344 }
32345 # endif /* VULKAN_HPP_NO_SMART_HANDLE */
32346 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32347 #endif /*VK_USE_PLATFORM_OHOS*/
32348
32349 //=== VK_NV_cooperative_matrix2 ===
32350
32351 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV, see
32352 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV.html
32353 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV ), bool>::type>
32354 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV(
32355 uint32_t * pPropertyCount, CooperativeMatrixFlexibleDimensionsPropertiesNV * pProperties, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32356 {
32357 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32358 return static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV(
32359 static_cast<VkPhysicalDevice>( m_physicalDevice ),
32360 pPropertyCount,
32361 reinterpret_cast<VkCooperativeMatrixFlexibleDimensionsPropertiesNV *>( pProperties ) ) );
32362 }
32363
32364 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32365 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV, see
32366 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV.html
32367 template <typename CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator,
32368 typename Dispatch,
32369 typename std::enable_if<std::is_same<typename CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator::value_type,
32370 CooperativeMatrixFlexibleDimensionsPropertiesNV>::value,
32371 int>::type,
32372 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV ), bool>::type>
32373 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
32374 typename ResultValueType<std::vector<CooperativeMatrixFlexibleDimensionsPropertiesNV, CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator>>::type
32375 PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV( Dispatch const & d ) const
32376 {
32377 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32378 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32379 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV &&
32380 "Function <vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV> requires <VK_NV_cooperative_matrix2>" );
32381 # endif
32382
32383 std::vector<CooperativeMatrixFlexibleDimensionsPropertiesNV, CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator> properties;
32384 uint32_t propertyCount;
32385 Result result;
32386 do
32387 {
32388 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) );
32389 if ( ( result == Result::eSuccess ) && propertyCount )
32390 {
32391 properties.resize( propertyCount );
32392 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV(
32393 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeMatrixFlexibleDimensionsPropertiesNV *>( properties.data() ) ) );
32394 }
32395 } while ( result == Result::eIncomplete );
32396 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV" );
32397 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
32398 if ( propertyCount < properties.size() )
32399 {
32400 properties.resize( propertyCount );
32401 }
32402 return detail::createResultValueType( result, std::move( properties ) );
32403 }
32404
32405 // wrapper function for command vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV, see
32406 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV.html
32407 template <typename CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator,
32408 typename Dispatch,
32409 typename std::enable_if<std::is_same<typename CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator::value_type,
32410 CooperativeMatrixFlexibleDimensionsPropertiesNV>::value,
32411 int>::type,
32412 typename std::enable_if<IS_DISPATCHED( vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV ), bool>::type>
32413 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
32414 typename ResultValueType<std::vector<CooperativeMatrixFlexibleDimensionsPropertiesNV, CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator>>::type
32415 PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV(
32416 CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator const & cooperativeMatrixFlexibleDimensionsPropertiesNVAllocator, Dispatch const & d ) const
32417 {
32418 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32419 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32420 VULKAN_HPP_ASSERT( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV &&
32421 "Function <vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV> requires <VK_NV_cooperative_matrix2>" );
32422 # endif
32423
32424 std::vector<CooperativeMatrixFlexibleDimensionsPropertiesNV, CooperativeMatrixFlexibleDimensionsPropertiesNVAllocator> properties(
32425 cooperativeMatrixFlexibleDimensionsPropertiesNVAllocator );
32426 uint32_t propertyCount;
32427 Result result;
32428 do
32429 {
32430 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV( m_physicalDevice, &propertyCount, nullptr ) );
32431 if ( ( result == Result::eSuccess ) && propertyCount )
32432 {
32433 properties.resize( propertyCount );
32434 result = static_cast<Result>( d.vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV(
32435 m_physicalDevice, &propertyCount, reinterpret_cast<VkCooperativeMatrixFlexibleDimensionsPropertiesNV *>( properties.data() ) ) );
32436 }
32437 } while ( result == Result::eIncomplete );
32438 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::getCooperativeMatrixFlexibleDimensionsPropertiesNV" );
32439 VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
32440 if ( propertyCount < properties.size() )
32441 {
32442 properties.resize( propertyCount );
32443 }
32444 return detail::createResultValueType( result, std::move( properties ) );
32445 }
32446 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32447
32448 #if defined( VK_USE_PLATFORM_METAL_EXT )
32449 //=== VK_EXT_external_memory_metal ===
32450
32451 // wrapper function for command vkGetMemoryMetalHandleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryMetalHandleEXT.html
32452 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryMetalHandleEXT ), bool>::type>
32453 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryMetalHandleEXT( const MemoryGetMetalHandleInfoEXT * pGetMetalHandleInfo,
32454 void ** pHandle,
32455 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32456 {
32457 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32458 return static_cast<Result>( d.vkGetMemoryMetalHandleEXT(
32459 static_cast<VkDevice>( m_device ), reinterpret_cast<const VkMemoryGetMetalHandleInfoEXT *>( pGetMetalHandleInfo ), pHandle ) );
32460 }
32461
32462 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32463 // wrapper function for command vkGetMemoryMetalHandleEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryMetalHandleEXT.html
32464 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryMetalHandleEXT ), bool>::type>
32465 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<void *>::type
32466 Device::getMemoryMetalHandleEXT( const MemoryGetMetalHandleInfoEXT & getMetalHandleInfo, Dispatch const & d ) const
32467 {
32468 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32469 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32470 VULKAN_HPP_ASSERT( d.vkGetMemoryMetalHandleEXT && "Function <vkGetMemoryMetalHandleEXT> requires <VK_EXT_external_memory_metal>" );
32471 # endif
32472
32473 void * handle;
32474 Result result =
32475 static_cast<Result>( d.vkGetMemoryMetalHandleEXT( m_device, reinterpret_cast<const VkMemoryGetMetalHandleInfoEXT *>( &getMetalHandleInfo ), &handle ) );
32476 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryMetalHandleEXT" );
32477
32478 return detail::createResultValueType( result, std::move( handle ) );
32479 }
32480 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32481
32482 // wrapper function for command vkGetMemoryMetalHandlePropertiesEXT, see
32483 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryMetalHandlePropertiesEXT.html
32484 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryMetalHandlePropertiesEXT ), bool>::type>
32485 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::getMemoryMetalHandlePropertiesEXT( ExternalMemoryHandleTypeFlagBits handleType,
32486 const void * pHandle,
32487 MemoryMetalHandlePropertiesEXT * pMemoryMetalHandleProperties,
32488 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32489 {
32490 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32491 return static_cast<Result>( d.vkGetMemoryMetalHandlePropertiesEXT( static_cast<VkDevice>( m_device ),
32492 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
32493 pHandle,
32494 reinterpret_cast<VkMemoryMetalHandlePropertiesEXT *>( pMemoryMetalHandleProperties ) ) );
32495 }
32496
32497 # ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32498 // wrapper function for command vkGetMemoryMetalHandlePropertiesEXT, see
32499 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkGetMemoryMetalHandlePropertiesEXT.html
32500 template <typename HandleType, typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkGetMemoryMetalHandlePropertiesEXT ), bool>::type>
32501 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE typename ResultValueType<MemoryMetalHandlePropertiesEXT>::type
32502 Device::getMemoryMetalHandlePropertiesEXT( ExternalMemoryHandleTypeFlagBits handleType, HandleType const & handle, Dispatch const & d ) const
32503 {
32504 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32505 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32506 VULKAN_HPP_ASSERT( d.vkGetMemoryMetalHandlePropertiesEXT && "Function <vkGetMemoryMetalHandlePropertiesEXT> requires <VK_EXT_external_memory_metal>" );
32507 # endif
32508
32509 MemoryMetalHandlePropertiesEXT memoryMetalHandleProperties;
32510 Result result =
32511 static_cast<Result>( d.vkGetMemoryMetalHandlePropertiesEXT( m_device,
32512 static_cast<VkExternalMemoryHandleTypeFlagBits>( handleType ),
32513 reinterpret_cast<const void *>( &handle ),
32514 reinterpret_cast<VkMemoryMetalHandlePropertiesEXT *>( &memoryMetalHandleProperties ) ) );
32515 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::Device::getMemoryMetalHandlePropertiesEXT" );
32516
32517 return detail::createResultValueType( result, std::move( memoryMetalHandleProperties ) );
32518 }
32519 # endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32520 #endif /*VK_USE_PLATFORM_METAL_EXT*/
32521
32522 //=== VK_ARM_performance_counters_by_region ===
32523
32524 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM, see
32525 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM.html
32526 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM ), bool>::type>
32527 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result
32528 PhysicalDevice::enumerateQueueFamilyPerformanceCountersByRegionARM( uint32_t queueFamilyIndex,
32529 uint32_t * pCounterCount,
32530 PerformanceCounterARM * pCounters,
32531 PerformanceCounterDescriptionARM * pCounterDescriptions,
32532 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32533 {
32534 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32535 return static_cast<Result>(
32536 d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( static_cast<VkPhysicalDevice>( m_physicalDevice ),
32537 queueFamilyIndex,
32538 pCounterCount,
32539 reinterpret_cast<VkPerformanceCounterARM *>( pCounters ),
32540 reinterpret_cast<VkPerformanceCounterDescriptionARM *>( pCounterDescriptions ) ) );
32541 }
32542
32543 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32544 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM, see
32545 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM.html
32546 template <typename PerformanceCounterARMAllocator,
32547 typename PerformanceCounterDescriptionARMAllocator,
32548 typename Dispatch,
32549 typename std::enable_if<std::is_same<typename PerformanceCounterARMAllocator::value_type, PerformanceCounterARM>::value &&
32550 std::is_same<typename PerformanceCounterDescriptionARMAllocator::value_type, PerformanceCounterDescriptionARM>::value,
32551 int>::type,
32552 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM ), bool>::type>
32553 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
32554 typename ResultValueType<std::pair<std::vector<PerformanceCounterARM, PerformanceCounterARMAllocator>,
32555 std::vector<PerformanceCounterDescriptionARM, PerformanceCounterDescriptionARMAllocator>>>::type
32556 PhysicalDevice::enumerateQueueFamilyPerformanceCountersByRegionARM( uint32_t queueFamilyIndex, Dispatch const & d ) const
32557 {
32558 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32559 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32560 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM &&
32561 "Function <vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM> requires <VK_ARM_performance_counters_by_region>" );
32562 # endif
32563
32564 std::pair<std::vector<PerformanceCounterARM, PerformanceCounterARMAllocator>,
32565 std::vector<PerformanceCounterDescriptionARM, PerformanceCounterDescriptionARMAllocator>>
32566 data_;
32567 std::vector<PerformanceCounterARM, PerformanceCounterARMAllocator> & counters = data_.first;
32568 std::vector<PerformanceCounterDescriptionARM, PerformanceCounterDescriptionARMAllocator> & counterDescriptions = data_.second;
32569 uint32_t counterCount;
32570 Result result;
32571 do
32572 {
32573 result = static_cast<Result>(
32574 d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( m_physicalDevice, queueFamilyIndex, &counterCount, nullptr, nullptr ) );
32575 if ( ( result == Result::eSuccess ) && counterCount )
32576 {
32577 counters.resize( counterCount );
32578 counterDescriptions.resize( counterCount );
32579 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM(
32580 m_physicalDevice,
32581 queueFamilyIndex,
32582 &counterCount,
32583 reinterpret_cast<VkPerformanceCounterARM *>( counters.data() ),
32584 reinterpret_cast<VkPerformanceCounterDescriptionARM *>( counterDescriptions.data() ) ) );
32585 }
32586 } while ( result == Result::eIncomplete );
32587 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateQueueFamilyPerformanceCountersByRegionARM" );
32588 VULKAN_HPP_ASSERT( counterCount <= counters.size() );
32589 if ( counterCount < counters.size() )
32590 {
32591 counters.resize( counterCount );
32592 counterDescriptions.resize( counterCount );
32593 }
32594 return detail::createResultValueType( result, std::move( data_ ) );
32595 }
32596
32597 // wrapper function for command vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM, see
32598 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM.html
32599 template <typename PerformanceCounterARMAllocator,
32600 typename PerformanceCounterDescriptionARMAllocator,
32601 typename Dispatch,
32602 typename std::enable_if<std::is_same<typename PerformanceCounterARMAllocator::value_type, PerformanceCounterARM>::value &&
32603 std::is_same<typename PerformanceCounterDescriptionARMAllocator::value_type, PerformanceCounterDescriptionARM>::value,
32604 int>::type,
32605 typename std::enable_if<IS_DISPATCHED( vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM ), bool>::type>
32606 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE
32607 typename ResultValueType<std::pair<std::vector<PerformanceCounterARM, PerformanceCounterARMAllocator>,
32608 std::vector<PerformanceCounterDescriptionARM, PerformanceCounterDescriptionARMAllocator>>>::type
32609 PhysicalDevice::enumerateQueueFamilyPerformanceCountersByRegionARM(
32610 uint32_t queueFamilyIndex,
32611 PerformanceCounterARMAllocator const & performanceCounterARMAllocator,
32612 PerformanceCounterDescriptionARMAllocator const & performanceCounterDescriptionARMAllocator,
32613 Dispatch const & d ) const
32614 {
32615 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32616 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32617 VULKAN_HPP_ASSERT( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM &&
32618 "Function <vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM> requires <VK_ARM_performance_counters_by_region>" );
32619 # endif
32620
32621 std::pair<std::vector<PerformanceCounterARM, PerformanceCounterARMAllocator>,
32622 std::vector<PerformanceCounterDescriptionARM, PerformanceCounterDescriptionARMAllocator>>
32623 data_(
32624 std::piecewise_construct, std::forward_as_tuple( performanceCounterARMAllocator ), std::forward_as_tuple( performanceCounterDescriptionARMAllocator ) );
32625 std::vector<PerformanceCounterARM, PerformanceCounterARMAllocator> & counters = data_.first;
32626 std::vector<PerformanceCounterDescriptionARM, PerformanceCounterDescriptionARMAllocator> & counterDescriptions = data_.second;
32627 uint32_t counterCount;
32628 Result result;
32629 do
32630 {
32631 result = static_cast<Result>(
32632 d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM( m_physicalDevice, queueFamilyIndex, &counterCount, nullptr, nullptr ) );
32633 if ( ( result == Result::eSuccess ) && counterCount )
32634 {
32635 counters.resize( counterCount );
32636 counterDescriptions.resize( counterCount );
32637 result = static_cast<Result>( d.vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM(
32638 m_physicalDevice,
32639 queueFamilyIndex,
32640 &counterCount,
32641 reinterpret_cast<VkPerformanceCounterARM *>( counters.data() ),
32642 reinterpret_cast<VkPerformanceCounterDescriptionARM *>( counterDescriptions.data() ) ) );
32643 }
32644 } while ( result == Result::eIncomplete );
32645 detail::resultCheck( result, VULKAN_HPP_NAMESPACE_STRING "::PhysicalDevice::enumerateQueueFamilyPerformanceCountersByRegionARM" );
32646 VULKAN_HPP_ASSERT( counterCount <= counters.size() );
32647 if ( counterCount < counters.size() )
32648 {
32649 counters.resize( counterCount );
32650 counterDescriptions.resize( counterCount );
32651 }
32652 return detail::createResultValueType( result, std::move( data_ ) );
32653 }
32654 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32655
32656 //=== VK_EXT_fragment_density_map_offset ===
32657
32658 // wrapper function for command vkCmdEndRendering2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering2EXT.html
32659 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRendering2EXT ), bool>::type>
32660 VULKAN_HPP_INLINE void CommandBuffer::endRendering2EXT( const RenderingEndInfoKHR * pRenderingEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32661 {
32662 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32663 d.vkCmdEndRendering2EXT( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkRenderingEndInfoKHR *>( pRenderingEndInfo ) );
32664 }
32665
32666 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32667 // wrapper function for command vkCmdEndRendering2EXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering2EXT.html
32668 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRendering2EXT ), bool>::type>
32669 VULKAN_HPP_INLINE void CommandBuffer::endRendering2EXT( Optional<const RenderingEndInfoKHR> renderingEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32670 {
32671 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32672 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32673 VULKAN_HPP_ASSERT( d.vkCmdEndRendering2EXT && "Function <vkCmdEndRendering2EXT> requires <VK_EXT_fragment_density_map_offset> or <VK_KHR_maintenance10>" );
32674 # endif
32675
32676 d.vkCmdEndRendering2EXT( m_commandBuffer, reinterpret_cast<const VkRenderingEndInfoKHR *>( renderingEndInfo.get() ) );
32677 }
32678 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32679
32680 //=== VK_EXT_custom_resolve ===
32681
32682 // wrapper function for command vkCmdBeginCustomResolveEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginCustomResolveEXT.html
32683 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginCustomResolveEXT ), bool>::type>
32684 VULKAN_HPP_INLINE void CommandBuffer::beginCustomResolveEXT( const BeginCustomResolveInfoEXT * pBeginCustomResolveInfo,
32685 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32686 {
32687 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32688 d.vkCmdBeginCustomResolveEXT( static_cast<VkCommandBuffer>( m_commandBuffer ),
32689 reinterpret_cast<const VkBeginCustomResolveInfoEXT *>( pBeginCustomResolveInfo ) );
32690 }
32691
32692 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32693 // wrapper function for command vkCmdBeginCustomResolveEXT, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdBeginCustomResolveEXT.html
32694 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdBeginCustomResolveEXT ), bool>::type>
32695 VULKAN_HPP_INLINE void CommandBuffer::beginCustomResolveEXT( Optional<const BeginCustomResolveInfoEXT> beginCustomResolveInfo,
32696 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32697 {
32698 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32699 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32700 VULKAN_HPP_ASSERT( d.vkCmdBeginCustomResolveEXT && "Function <vkCmdBeginCustomResolveEXT> requires <VK_EXT_custom_resolve>" );
32701 # endif
32702
32703 d.vkCmdBeginCustomResolveEXT( m_commandBuffer, reinterpret_cast<const VkBeginCustomResolveInfoEXT *>( beginCustomResolveInfo.get() ) );
32704 }
32705 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32706
32707 //=== VK_KHR_maintenance10 ===
32708
32709 // wrapper function for command vkCmdEndRendering2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering2KHR.html
32710 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRendering2KHR ), bool>::type>
32711 VULKAN_HPP_INLINE void CommandBuffer::endRendering2KHR( const RenderingEndInfoKHR * pRenderingEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32712 {
32713 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32714 d.vkCmdEndRendering2KHR( static_cast<VkCommandBuffer>( m_commandBuffer ), reinterpret_cast<const VkRenderingEndInfoKHR *>( pRenderingEndInfo ) );
32715 }
32716
32717 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32718 // wrapper function for command vkCmdEndRendering2KHR, see https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdEndRendering2KHR.html
32719 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdEndRendering2KHR ), bool>::type>
32720 VULKAN_HPP_INLINE void CommandBuffer::endRendering2KHR( Optional<const RenderingEndInfoKHR> renderingEndInfo, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32721 {
32722 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32723 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32724 VULKAN_HPP_ASSERT( d.vkCmdEndRendering2KHR && "Function <vkCmdEndRendering2KHR> requires <VK_EXT_fragment_density_map_offset> or <VK_KHR_maintenance10>" );
32725 # endif
32726
32727 d.vkCmdEndRendering2KHR( m_commandBuffer, reinterpret_cast<const VkRenderingEndInfoKHR *>( renderingEndInfo.get() ) );
32728 }
32729 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32730
32731 //=== VK_NV_compute_occupancy_priority ===
32732
32733 // wrapper function for command vkCmdSetComputeOccupancyPriorityNV, see
32734 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetComputeOccupancyPriorityNV.html
32735 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetComputeOccupancyPriorityNV ), bool>::type>
32736 VULKAN_HPP_INLINE void CommandBuffer::setComputeOccupancyPriorityNV( const ComputeOccupancyPriorityParametersNV * pParameters,
32737 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32738 {
32739 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32740 d.vkCmdSetComputeOccupancyPriorityNV( static_cast<VkCommandBuffer>( m_commandBuffer ),
32741 reinterpret_cast<const VkComputeOccupancyPriorityParametersNV *>( pParameters ) );
32742 }
32743
32744 #ifndef VULKAN_HPP_DISABLE_ENHANCED_MODE
32745 // wrapper function for command vkCmdSetComputeOccupancyPriorityNV, see
32746 // https://registry.khronos.org/vulkan/specs/latest/man/html/vkCmdSetComputeOccupancyPriorityNV.html
32747 template <typename Dispatch, typename std::enable_if<IS_DISPATCHED( vkCmdSetComputeOccupancyPriorityNV ), bool>::type>
32748 VULKAN_HPP_INLINE void CommandBuffer::setComputeOccupancyPriorityNV( const ComputeOccupancyPriorityParametersNV & parameters,
32749 Dispatch const & d ) const VULKAN_HPP_NOEXCEPT
32750 {
32751 VULKAN_HPP_ASSERT( d.getVkHeaderVersion() == VK_HEADER_VERSION );
32752 # if ( VULKAN_HPP_DISPATCH_LOADER_DYNAMIC == 1 )
32753 VULKAN_HPP_ASSERT( d.vkCmdSetComputeOccupancyPriorityNV && "Function <vkCmdSetComputeOccupancyPriorityNV> requires <VK_NV_compute_occupancy_priority>" );
32754 # endif
32755
32756 d.vkCmdSetComputeOccupancyPriorityNV( m_commandBuffer, reinterpret_cast<const VkComputeOccupancyPriorityParametersNV *>( &parameters ) );
32757 }
32758 #endif /* VULKAN_HPP_DISABLE_ENHANCED_MODE */
32759
32760 } // namespace VULKAN_HPP_NAMESPACE
32761 #endif